From a0ea1ece4e3ffb728aee73e954d65a2209ebde32 Mon Sep 17 00:00:00 2001 From: 陶杰 <1378534974@qq.com> Date: 星期三, 06 十一月 2024 17:51:45 +0800 Subject: [PATCH] 1.提现不能超过500 --- store/index.js | 39 +++++++++++++++++++++++++++++++-------- 1 files changed, 31 insertions(+), 8 deletions(-) diff --git a/store/index.js b/store/index.js index a12972b..59b090f 100644 --- a/store/index.js +++ b/store/index.js @@ -30,9 +30,17 @@ 'shopping': 0, 'follow': 0, 'delivery': 0, - 'order': 0 + 'order': 0, + 'shopnum': 0, + 'coupon': 0, + 'cache_topay':0, }, - defaultaddress: {} + cache: { + coupon: {}, + goods:[], + }, + defaultaddress: {}, + addressDesc:'', }, mutations: { @@ -54,15 +62,19 @@ state.currentInfo = {} storage.removeItem('token') message.showToast('退出登录成功') - // uni.redirectTo({ - // url: '/views/login/login' - // }) + }, setOpenid(state, openid) { state.openid = openid }, setDefaultAddress(state, defaultaddress) { state.defaultaddress = defaultaddress + }, + setAddressDesc(state, addressDesc) { + console.log('setAddressDesc',addressDesc) + state.addressDesc = addressDesc + storage.setItem("defaultaddress",addressDesc || "") + }, setTestTrue(state) { state.testvuex = true @@ -120,6 +132,19 @@ console.log('sign_clear', key) state.sign[key] = 0 }, + cache_coupon_select: async function({ + commit, + state + }, dto) { + state.cache['coupon'] = dto || {} + }, + cache_goods_select: async function({ + commit, + state + }, goods) { + state.cache['goods'] = goods || [] + }, + // lazy loading openid logout: async function({ commit, @@ -353,9 +378,7 @@ console.log("启用结果2:", ret); }); // #endif - // uni.redirectTo({ - // url: '/views/app/app-home/app-home' - // }) + uni.reLaunch({ url: '/pages/home/supplier-home' }) -- Gitblit v1.9.3