xiaohaizhao 1 月之前
父节点
当前提交
6108601742
共有 4 个文件被更改,包括 5 次插入3 次删除
  1. 1 0
      app.js
  2. 2 1
      packageA/orderForm/index.js
  3. 1 1
      pages/tabbar/mine/index.js
  4. 1 1
      project.private.config.json

+ 1 - 0
app.js

@@ -20,6 +20,7 @@ App({
             wx.removeStorageSync('templetList');
             wx.removeStorageSync('siteP');
             wx.setStorageSync('userrole', userMsg.usertype == 1 ? '业务员' : '经销商');
+            console.log("userrole", wx.getStorageSync('userrole'))
             wx.setStorageSync('siteP', JSON.parse(options.query.site));
             wx.setStorageSync('templetList', JSON.parse(options.query.templetList));
             wx.removeStorageSync('languagecode');

+ 2 - 1
packageA/orderForm/index.js

@@ -68,7 +68,7 @@ Page({
         if (init) content.pageNumber = 1;
         if (content.pageNumber > content.pageTotal) return;
         _Http.basic({
-            "id": this.data.userrole == '业务员' ? 20221111145202 : 20221224180302,
+            "id": wx.getStorageSync('userrole') == '业务员' ? 20221111145202 : 20221224180302,
             content
         }).then(res => {
             console.log("订单列表", res)
@@ -88,6 +88,7 @@ Page({
                 "content.sort": res.sort,
                 "content.total": res.total,
                 loading: false,
+                userrole: wx.getStorageSync('userrole'),
                 amount: currency(res.tips.amount, {
                     symbol: "¥",
                     precision: 2

+ 1 - 1
pages/tabbar/mine/index.js

@@ -180,7 +180,7 @@ Page({
 								"wechat_code": res.code,
 								isbinging, // 0解绑 1绑定
 								wechatuserinfo: userInfo,
-								"appid": "wx197f219a82a89d7b"
+								"appid": "wxc1b6ae925ac1d06a"
 							}
 						}).then(s => {
 							console.log("微信绑定", isbinging, s)

+ 1 - 1
project.private.config.json

@@ -5,7 +5,7 @@
     "compileHotReLoad": true,
     "urlCheck": false
   },
-  "libVersion": "3.7.1",
+  "libVersion": "3.8.2",
   "condition": {
     "miniprogram": {
       "list": [