zhanghongrui 2 lat temu
rodzic
commit
9950fa4d45

+ 2 - 1
app.json

@@ -37,7 +37,8 @@
     "pages/maillist/maillist",
     "pages/maillist/serch/maillist_serch",
     "pages/xqzgdetail/xqzgdetail",
-    "pages/fcdetail/fcdetail"
+    "pages/fcdetail/fcdetail",
+    "pages/xunjianqrcode/xunjianqrcode"
   ],
   "requiredPrivateInfos": [
     "getLocation"

+ 4 - 0
app.wxss

@@ -63,6 +63,10 @@ page{
   font-size: 55rpx;
   color: rgb(206, 205, 205);
 }
+.icon-saoyisao1{
+  font-size: 55rpx;
+  color: rgb(206, 205, 205);
+}
 
   /* 列表 */
   .list_vi{

+ 1 - 1
base/httputil.js

@@ -1,6 +1,6 @@
 // let BASE_Server = "http://127.0.0.1:8329"
 
-//  let BASE_Server = "https://192.168.1.100:18080"
+  //let BASE_Server = "https://192.168.1.100:18080"
 let BASE_Server = "https://sookajs.top:18080"
 
 

+ 11 - 3
iconfont.wxss

@@ -1,8 +1,8 @@
 @font-face {
   font-family: "iconfont"; /* Project id 3264694 */
-  src: url('//at.alicdn.com/t/c/font_3264694_c16807h1x3f.woff2?t=1673399002024') format('woff2'),
-       url('//at.alicdn.com/t/c/font_3264694_c16807h1x3f.woff?t=1673399002024') format('woff'),
-       url('//at.alicdn.com/t/c/font_3264694_c16807h1x3f.ttf?t=1673399002024') format('truetype');
+  src: url('//at.alicdn.com/t/c/font_3264694_x9zg6v6niy.woff2?t=1674957069538') format('woff2'),
+       url('//at.alicdn.com/t/c/font_3264694_x9zg6v6niy.woff?t=1674957069538') format('woff'),
+       url('//at.alicdn.com/t/c/font_3264694_x9zg6v6niy.ttf?t=1674957069538') format('truetype');
 }
 
 .iconfont {
@@ -13,6 +13,14 @@
   -moz-osx-font-smoothing: grayscale;
 }
 
+.icon-saoyisao1:before {
+  content: "\e86d";
+}
+
+.icon-saoyisao:before {
+  content: "\e685";
+}
+
 .icon-yonghutouxiang:before {
   content: "\e606";
 }

+ 3 - 3
pages/index/index.js

@@ -163,9 +163,9 @@ Page({
   },
   //巡检跳转
   bindViewXunJian() {
-    // wx.navigateTo({
-    // url: '../xunjian/xunjian',
-    // })
+     wx.navigateTo({
+     url: '../xunjianqrcode/xunjianqrcode',
+     })
   },
   // 使用攻略跳转
   bindViewIntroduction() {

+ 1 - 1
pages/qiye/qiye.wxml

@@ -6,7 +6,7 @@
       <input type="text" bindtap="bindViewSearchEnd" placeholder="搜索" />
     </view>
     <button bindtap="bindViewSearchEnd" class="search-right">
-      <text class="iconfont icon-sousuo"></text>
+      <text class="iconfont icon-saoyisao1"></text>
     </button>
   </view>
   <!-- 企业录入数量 -->

+ 4 - 0
pages/qiyemore/qiyemore.js

@@ -18,6 +18,7 @@ Page({
       latitude: Number,
       businessName: null,
       orgCode: null,
+      qrCode:null,
       officeAddress: null,
       businessAddress: null,
       supervisor: null,
@@ -36,6 +37,9 @@ Page({
   get_orgCode(e) {
     this.data.form.orgCode = e.detail.value
   },
+  get_qrCode(e) {
+    this.data.form.qrCode = e.detail.value
+  },
   get_officeAddress(e) {
     this.data.form.officeAddress = e.detail.value
   },

+ 7 - 1
pages/qiyemore/qiyemore.wxml

@@ -4,7 +4,7 @@
   <view class="page-section">
     <view class="input_vi">
       <view class="input_title">经度</view>
-      <input bindtap="getLocation" value="{{form.longitude}}" disabled="true" class="inp_txt" auto-focus placeholder="点击获取当前" />
+      <input bindtap="getLocation" value="{{form.longitude}}" disabled="true" class="inp_txt" auto-focus placeholder="点击获取当前位置" />
     </view>
     <view class="input_vi">
       <view class="input_title">纬度</view>
@@ -15,6 +15,12 @@
       <input bindinput="get_businessName" class="inp_txt" placeholder="请输入企业名称" />
     </view>
     <view class="input_vi">
+      <view class="input_title">企业编码</view>
+      <input bindinput="get_qrCode" class="inp_txt" placeholder="请输入或扫描" />
+
+   
+    </view>
+    <view class="input_vi">
       <view class="input_title">机构代码</view>
       <input bindinput="get_orgCode" class="inp_txt" placeholder="请输入机构代码证号" />
     </view>

+ 45 - 0
pages/xunjianqrcode/xunjianqrcode.js

@@ -0,0 +1,45 @@
+// pages/xunjianqrcode.js
+let app = getApp();
+
+Page({
+
+   data: {
+
+    // img: "/images/1.jpg"
+    result:"等待扫描",
+    scanType: ""
+   },
+
+   onLoad() {
+    this.scan()
+   },
+
+   scan() {
+
+     wx.scanCode({
+
+       success: (res) => {
+
+         console.log("扫码结果");
+
+         console.log("$$$",res);
+
+         this.setData({
+
+           result: res.result,
+           scanType: res.scanType
+         })
+
+       },
+
+       fail: (res) => {
+
+         console.log(res);
+
+       }
+
+     })
+
+  }
+
+})

+ 3 - 0
pages/xunjianqrcode/xunjianqrcode.json

@@ -0,0 +1,3 @@
+{
+  "usingComponents": {}
+}

+ 4 - 0
pages/xunjianqrcode/xunjianqrcode.wxml

@@ -0,0 +1,4 @@
+<!--pages/xunjianqrcode.wxml-->
+<view><text>你扫到的是{{scanType}}码</text></view>
+<view><text>内容为:{{result}}</text></view>
+<button type="primary" bindtap="scan">扫码</button>

+ 1 - 0
pages/xunjianqrcode/xunjianqrcode.wxss

@@ -0,0 +1 @@
+/* pages/xunjianqrcode.wxss */

+ 1 - 1
project.config.json

@@ -47,5 +47,5 @@
     "ignore": [],
     "include": []
   },
-  "appid": "wx29240c3e95eeed24"
+  "appid": "wx817eadb51417de38"
 }

+ 1 - 1
project.private.config.json

@@ -1,7 +1,7 @@
 {
   "projectname": "sooka_edyj_minapp",
   "setting": {
-    "compileHotReLoad": false,
+    "compileHotReLoad": true,
     "urlCheck": false
   },
   "description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",