ソースを参照

跳转传递使用的语言包

xiaohaizhao 1 年間 前
コミット
7c62d80603
2 ファイル変更3 行追加2 行削除
  1. 2 1
      pages/tabbar/home/index.js
  2. 1 1
      pages/tabbar/home/index.wxml

+ 2 - 1
pages/tabbar/home/index.js

@@ -41,7 +41,8 @@ Page({
     /* 更新站点信息 */
     refreshData() {
         this.setData({
-            user: wx.getStorageSync('userMsg')
+            user: wx.getStorageSync('userMsg'),
+            languagecode: wx.getStorageSync('languagecode')
         })
         if (wx.getStorageSync('userauth').length != 0) {
             initWorkbench(this)

+ 1 - 1
pages/tabbar/home/index.wxml

@@ -25,7 +25,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='develop' 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+'&templetList='+templetList}}" url="{{it.path}}" open-type="{{it.openType||'navigate'}}" wx:key="name" data-it="{{it}}" data-item="{{item}}" bindtap="openRecord">
+                <navigator version='develop' 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+'&templetList='+templetList+'$languagecode='+languagecode}}" 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>