From 0abe6ac3b77cd414e860df4979aa06c62c3e6143 Mon Sep 17 00:00:00 2001
From: 陶杰 <1378534974@qq.com>
Date: 星期五, 06 九月 2024 19:06:46 +0800
Subject: [PATCH] 1、【花满芫小程序项目】 小程序-花店:申请售后-售后理由字段布局调整,字数过多显示会跨行 2、【花满芫小程序项目】 管理端-合伙人:质检详情-降级、缺货、补货高亮显示 3、【花满芫小程序项目】 小程序-花店:浏览记录-浏览记录默认状态按照时间倒序排列 因为目前只显示10条记录,不按时间顺序的话最新的浏览记录就不会被看到; 4、【花满芫小程序项目】 小程序-合伙人:合伙人审核-1.已经审核通过后,现在还可以再次提交审核,不合逻辑。 2.审核后的不通过原因,需要显示在小程序端;
---
store/index.js | 37 ++++++++++++++++++++++++++++++-------
1 files changed, 30 insertions(+), 7 deletions(-)
diff --git a/store/index.js b/store/index.js
index 69d8cd8..a97699e 100644
--- a/store/index.js
+++ b/store/index.js
@@ -30,7 +30,9 @@
'shopping': 0,
'follow': 0,
'delivery': 0,
- 'order': 0
+ 'order': 0,
+ 'shopnum': 0,
+ 'coupon': 0
},
defaultaddress: {}
},
@@ -54,9 +56,7 @@
state.currentInfo = {}
storage.removeItem('token')
message.showToast('退出登录成功')
- // uni.redirectTo({
- // url: '/views/login/login'
- // })
+
},
setOpenid(state, openid) {
state.openid = openid
@@ -353,9 +353,7 @@
console.log("启用结果2:", ret);
});
// #endif
- // uni.redirectTo({
- // url: '/views/app/app-home/app-home'
- // })
+
uni.reLaunch({
url: '/pages/home/supplier-home'
})
@@ -392,6 +390,31 @@
storage.setItem('token', resp.data.access_token)
commit("updateLogin", true)
await dispatch('getCurrentInfo')
+ //todo 登录后可能需要进行绑定
+ try {
+ var sharePartnerUserId = storage.getItem('cache_sharePartnerUserId')
+ if (sharePartnerUserId) {
+ //试图绑定
+ storage.removeItem('cache_sharePartnerUserId')
+ if (state.currentInfo.customerDTO && !state.currentInfo.customerDTO.partnerId) {
+ message.showLoading()
+ const bindres = await http.request('post', '/api/customer/bind/partner', {
+ data: {
+ partnerUserId: sharePartnerUserId
+ }
+ })
+ message.hideLoading()
+ if (bindres.code == 0) {
+ message.showToast(`绑定合伙人成功`)
+ await dispatch('getCurrentInfo')
+ }
+ }
+
+ }
+ } catch (e) {
+ console.error('login ', e)
+ }
+
uni.reLaunch({
url: '/pages/home/home'
})
--
Gitblit v1.9.3