This commit is contained in:
haomingming
2023-04-08 09:51:45 +08:00
parent 6fa2a5eaa9
commit 3f40c4c237
69 changed files with 1274 additions and 338 deletions
+4 -11
View File
@@ -60,7 +60,6 @@ Component({
},
attached() {
const usertype = wx.getStorageSync('usertype')
console.log("usertype: " ,usertype);
if (usertype == 2) {
this.setData({
usertype: usertype,
@@ -74,7 +73,7 @@ Component({
}
let _this = this;
let userID = wx.getStorageSync('user_id_'+usertype);
setInterval(() => {
let info_inter = setInterval(() => {
let index_info = wx.getStorageSync(userID+'_index_info');
let wenzhen_info = wx.getStorageSync(userID+'_wenzhen_info');
let my_info = wx.getStorageSync(userID+'_my_info');
@@ -84,6 +83,8 @@ Component({
my_info: my_info,
})
}, 500);
app.globalData.app_inter.push(info_inter);
},
methods: {
// swichNav: function (e) {
@@ -102,7 +103,6 @@ Component({
// }
// },
onChange(e) {
console.log("custom tab bar onChange");
const usertype = wx.getStorageSync('usertype');
let userID = wx.getStorageSync('user_id_'+usertype);
let idcard_status = wx.getStorageSync(userID+'_idcard_status');
@@ -110,15 +110,10 @@ Component({
let multi_point_status = wx.getStorageSync(userID+'_multi_point_status');
let is_bind_bank = wx.getStorageSync(userID+'_is_bind_bank');
console.log("idcard_status: ", idcard_status);
console.log("iden_auth_status: ", iden_auth_status);
console.log("multi_point_status: ", iden_auth_status);
console.log("is_bind_bank: ", is_bind_bank);
if(idcard_status != 1 && usertype != 3){
this.setData({
dialog_visible: true,
dialog_content: "请您先实名认证",
dialog_content: "请您先完成实名认证",
next_url: "/Pages/yishi/identity/index",
})
return;
@@ -140,7 +135,6 @@ Component({
return;
}
let url = this.data.items[e.detail].pagePath;
console.log(url);
wx.switchTab({
url: url,
})
@@ -149,7 +143,6 @@ Component({
this.setData({
dialog_visible: false
})
console.log("next_url: ", this.data.next_url);
let next_url = this.data.next_url;
app.go(next_url);
},