فهرست منبع

跨小程序跳转携带站点信息

zhaoxiaohai 3 سال پیش
والد
کامیت
f4e8f13fcc
2فایلهای تغییر یافته به همراه9 افزوده شده و 8 حذف شده
  1. 7 6
      pages/tabbar/workbench/index.js
  2. 2 2
      pages/tabbar/workbench/index.wxml

+ 7 - 6
pages/tabbar/workbench/index.js

@@ -81,7 +81,7 @@ Page({
                     icon: "work-a-shouyejingangqutonggao"
                 }, {
                     name: "营销物料",
-                    path: "/pages/tabbar/smartStore/index",
+                    path: "/pages/mediaLibrary/index",
                     icon: "work-a-shouyejingangquyingxiaowuliao",
                     openType: "switchTab"
                 }, {
@@ -263,19 +263,19 @@ Page({
                     name: "工单",
                     path: "/Eservice/workOrder/index",
                     icon: "work-gongdan"
-                  }, {
+                }, {
                     name: "申请单",
                     path: "/Eservice/agent/serviceBillList/index",
                     icon: "work-shenqingdan"
-                  }, {
+                }, {
                     name: "申请单管理",
                     path: "/Eservice/workerLeader/serviceBillList/index",
                     icon: "work-shenqingdanguanli"
-                  }, {
+                }, {
                     name: "业务员服务申请单",
                     path: "/Eservice/saler/serviceBillList/index",
                     icon: "work-yewuyuanfuwushenqingdan"
-                  }];
+                }];
                 let eservice = getApp().globalData.queryPer.query(wx.getStorageSync('userauth'), ["E-服务"], ["工单管理"]),
                     list = [];
                 eservice.forEach(v => {
@@ -354,7 +354,8 @@ Page({
             this.setData({
                 entrance,
                 auth: JSON.stringify(authList),
-                userMsg: JSON.stringify(wx.getStorageSync('userMsg'))
+                userMsg: JSON.stringify(wx.getStorageSync('userMsg')),
+                site: JSON.stringify(wx.getStorageSync('siteP'))
             })
         } else {
             setTimeout(this.refreshData, 10);

+ 2 - 2
pages/tabbar/workbench/index.wxml

@@ -2,7 +2,7 @@
     <view class="group">
         <view class="label"><text class="work work-zuijinshiyong" />最近使用</view>
         <view class="main">
-            <navigator version='trial' class="item" target='{{it.appid!=appid?"miniProgram":"self"}}' app-id='{{it.appid}}' path="{{it.path+'?auth='+auth+'&userMsg='+userMsg}}" wx:for="{{recorded}}" wx:for-item="it" wx:for-index="i" url="{{it.path}}" open-type="{{it.openType||'navigate'}}" wx:key="name" data-item="{{it}}">
+            <navigator version='trial' class="item" target='{{it.appid!=appid?"miniProgram":"self"}}' app-id='{{it.appid}}' path="{{it.path+'?auth='+auth+'&userMsg='+userMsg+'&site='+site}}" wx:for="{{recorded}}" wx:for-item="it" wx:for-index="i" url="{{it.path}}" open-type="{{it.openType||'navigate'}}" wx:key="name" data-item="{{it}}">
                 <view class="icon-box" style="background-color: {{it.bColor}};">
                     <text class="work {{it.icon}}" style="color: {{it.color}};" />
                 </view>
@@ -16,7 +16,7 @@
         <view class="group" wx:if="{{item.list.length}}">
             <view class="label"><text class="work {{item.icon}}" />{{item.label}}</view>
             <view class="main">
-                <navigator version='trial' class="item" wx:for="{{item.list}}" wx:for-item="it" wx:for-index="i" target='{{item.appid!=appid?"miniProgram":"self"}}' app-id='{{item.appid}}' path="{{it.path+'?auth='+auth+'&userMsg='+userMsg}}" url="{{it.path}}" open-type="{{it.openType||'navigate'}}" wx:key="name" data-it="{{it}}" data-item="{{item}}" bindtap="openRecord">
+                <navigator version='trial' class="item" wx:for="{{item.list}}" wx:for-item="it" wx:for-index="i" target='{{item.appid!=appid?"miniProgram":"self"}}' app-id='{{item.appid}}' path="{{it.path+'?auth='+auth+'&userMsg='+userMsg+'&site='+site}}" url="{{it.path}}" open-type="{{it.openType||'navigate'}}" wx:key="name" data-it="{{it}}" data-item="{{item}}" bindtap="openRecord">
                     <view class="icon-box" style="background-color: {{it.bColor}};">
                         <text class="work {{it.icon}}" style="color: {{it.color}};" />
                     </view>