Browse Source

Merge branch '缓存bug' into 修改状态颜色

xiaohaizhao 3 months ago
parent
commit
67d28cb05e
4 changed files with 4 additions and 0 deletions
  1. 1 0
      app.js
  2. 1 0
      packageA/remitVoucher/detail.js
  3. 1 0
      pages/tabbar/mine/index.js
  4. 1 0
      utils/language.js

+ 1 - 0
app.js

@@ -20,6 +20,7 @@ App({
             wx.setStorageSync('siteP', JSON.parse(options.query.site));
             wx.setStorageSync('templetList', JSON.parse(options.query.templetList));
             console.log("options.query.templetList", options.query.templetList)
+            wx.removeStorageSync('languagecode');
             wx.setStorageSync('languagecode', options.query.languagecode);
             //获取用户权限 
             this.globalData.http.basic({

+ 1 - 0
packageA/remitVoucher/detail.js

@@ -32,6 +32,7 @@ Page({
 			sa_paybillid: options.id
 		});
 		this.getDetail(true);
+    getApp().globalData.Language.getLanguagePackage(this, 'E-订单');
 	},
 	/* 获取详情 */
 	getDetail(init = false, show = true) {

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

@@ -80,6 +80,7 @@ Page({
 				wx.clearStorageSync();
 				wx.setStorageSync('loginMsg', loginMsg)
 				wx.setStorageSync('isAgree', true)
+				wx.removeStorageSync('languagecode');
 				wx.setStorageSync('languagecode', languagecode)
 				setTimeout(() => {
 					wx.reLaunch({

+ 1 - 0
utils/language.js

@@ -19,6 +19,7 @@ class Language {
 				this.languagePackage = res.data[languagecode] || {};
 				resolve(this.languagePackage)
 				this.languagecode = languagecode;
+				wx.removeStorageSync('languagecode');
 				wx.setStorageSync('languagecode', languagecode)
 			})
 		})