From cb623fcefa72d5b54b1e536aa84c3f3851743975 Mon Sep 17 00:00:00 2001
From: xuxueyang <xuxy@fengyuntec.com>
Date: 星期三, 20 十一月 2024 11:01:43 +0800
Subject: [PATCH] update 打印可能的空白(不能确定是不是纸张大小超出还是空数据的问题,已经提交了
---
store/index.js | 48 ++++++++++++++++++++++++++++++++++++++++--------
1 files changed, 40 insertions(+), 8 deletions(-)
diff --git a/store/index.js b/store/index.js
index a12972b..7ebfdfd 100644
--- a/store/index.js
+++ b/store/index.js
@@ -30,9 +30,18 @@
'shopping': 0,
'follow': 0,
'delivery': 0,
- 'order': 0
+ 'order': 0,
+ 'shopnum': 0,
+ 'coupon': 0,
+ 'cache_topay':0,
},
- defaultaddress: {}
+ cache: {
+ coupon: {},
+ goods:[],
+ cache_coupon_select_cancel:0
+ },
+ defaultaddress: {},
+ addressDesc:'',
},
mutations: {
@@ -54,15 +63,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 +133,27 @@
console.log('sign_clear', key)
state.sign[key] = 0
},
+ cache_coupon_select: async function({
+ commit,
+ state
+ }, dto) {
+ state.cache['coupon'] = dto || {}
+ },
+
+ cache_coupon_select_cancel: async function({
+ commit,
+ state
+ }, val) {
+ state.cache['cache_coupon_select_cancel'] = val || 0
+ },
+
+ cache_goods_select: async function({
+ commit,
+ state
+ }, goods) {
+ state.cache['goods'] = goods || []
+ },
+
// lazy loading openid
logout: async function({
commit,
@@ -353,9 +387,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