diff --git a/pages/login/login.vue b/pages/login/login.vue index 5c0b8a9..9d2a479 100644 --- a/pages/login/login.vue +++ b/pages/login/login.vue @@ -134,7 +134,12 @@ const isAgree = ref(false); //是否同意协议 const weixinLogin = () => { - if (!isAgree.value) return uni.$u.toast('请先阅读并同意协议'); + if (!isAgree.value) { + uni.$u.sleep(1000).then(res => { + isAgree.value = true; + }) + return uni.$u.toast('请先阅读并同意协议'); + } uni.showLoading({ title: '登录中' }) diff --git a/pages/my/my.vue b/pages/my/my.vue index 5dcaec2..ffc206e 100644 --- a/pages/my/my.vue +++ b/pages/my/my.vue @@ -41,27 +41,27 @@ - 123123 + {{userInfo.now_money}} 余额 - 123123 + {{userInfo.purchase_funds}} 采购款 - 123123 + {{userInfo.return_money}} 待返还金额 - + 我的订单 diff --git a/pagesOrder/settle/settle.vue b/pagesOrder/settle/settle.vue index ad517c7..fa0c646 100644 --- a/pagesOrder/settle/settle.vue +++ b/pagesOrder/settle/settle.vue @@ -80,18 +80,33 @@ - + - + 余额支付 - + + + + + + + + 采购款支付 + + + + @@ -149,6 +164,7 @@ nextTick, ref } from "vue" + import useUserStore from "@/store/user"; import addressPopup from "@/components/addressPopup.vue"; import shopListPopupVue from "@/components/shopListPopup.vue"; import useCartStore from "@/store/cart.js"; @@ -164,6 +180,8 @@ createOrderApi } from "@/api/order.js"; + const userInfo = useUserStore().userInfo; + // 用户选择的门店信息 let STORE_INFO = uni.getStorageSync('STORE_INFO'); if (STORE_INFO) @@ -347,7 +365,7 @@ shipping_type: orderInfo.value.shipping_type, mark: formData.value.remark }).then(res => { - if (pay_type.value == 3) { + if (pay_type.value == 3 || pay_type.value == 18) { if (res.code == 1) { uni.showToast({ title: res.msg, diff --git a/static/icon/cgkzf.png b/static/icon/cgkzf.png new file mode 100644 index 0000000..f9c47c0 Binary files /dev/null and b/static/icon/cgkzf.png differ