From 26d4d20643c1e5801663f0b142c6ff3dd33a96e5 Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Mon, 1 Jul 2024 10:10:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=96=E9=9F=B3=E5=B0=8F=E7=A8=8B=E5=BA=8F?= =?UTF-8?q?=E4=B8=8A=E7=BA=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apis/modules/user.js | 10 +- components/notAuth/notAuth.vue | 4 +- libs/uma.js | 2 - order/addCourse/addCourse.vue | 7 +- order/curClient/curClient.vue | 2 + order/orderDetail/orderDetail.vue | 160 ++++++++++++++------------ order/productDetail/productDetail.vue | 2 +- order/shopCart/shopCart.vue | 2 + pages/login/login.vue | 91 +++++++-------- pages/orders/orders.vue | 4 +- pages/person/person.vue | 3 + pages/reg/reg.vue | 51 ++++---- team/qrcode/qrcode.vue | 6 +- 13 files changed, 188 insertions(+), 156 deletions(-) diff --git a/apis/modules/user.js b/apis/modules/user.js index cfea0c6..524f34c 100644 --- a/apis/modules/user.js +++ b/apis/modules/user.js @@ -13,6 +13,10 @@ export const douYinLoginByOpenid = (data) => { return post('users/users/user/douYinLoginByOpenid?openid=' + data) } +export const douYinUserBinding = (data) => { + return post('users/users/user/douYinUserBinding', data) +} + export const queryProvince = () => { return get('nakadai/nakadai/province/queryProvince') } @@ -72,8 +76,8 @@ export const checkIfThePhoneNumberExists = phone => { return post(`users/users/applets/mine/checkIfThePhoneNumberExists?phone=${phone}`) } -export const queryPartnerAccount = phone => { - return post(`nakadai/nakadai/partnerAccount/queryPartnerAccount?phone=${phone}`) +export const queryPartnerAccount = data => { + return post(`nakadai/nakadai/partnerAccount/queryPartnerAccount?phone=${data.phone}&openId=${data.openId}&douYinOpenId=${data.douYinOpenId}`) } export const getSessionKey = data => { @@ -85,7 +89,7 @@ export const partnerAccountApplication = data => { } export const loginByOpenid = openid => { - return post(`users/users/user/loginByOpenid?openid=` + openid) + return post(`users/users/user/loginByOpenid?openid=${openid}`) } export const checkWorkNumOrAccount = account => { diff --git a/components/notAuth/notAuth.vue b/components/notAuth/notAuth.vue index 466df5e..52f9d08 100644 --- a/components/notAuth/notAuth.vue +++ b/components/notAuth/notAuth.vue @@ -3,7 +3,7 @@ 权限审核中,可联系下方平台运营加快审核进度 - + @@ -12,7 +12,7 @@ export default { data() { return { - + src: uni.getSystemInfoSync().uniPlatform === 'mp-toutiao' ? 'https://occupationlab.com/images/dyQrcode.jpg' : 'https://occupationlab.com/images/customer.png' } }, methods: { diff --git a/libs/uma.js b/libs/uma.js index 2976ca7..a688ffd 100644 --- a/libs/uma.js +++ b/libs/uma.js @@ -1,5 +1,4 @@ -// #ifdef MP-WEIXIN import uma from 'umtrack-wx'; uma.init({ appKey: '64cc98d5a1a164591b62da3e', // 由友盟分配的APP_KEY @@ -17,4 +16,3 @@ uma.install = function(Vue) { Vue.prototype.$uma = uma; } export default uma; -// #endif diff --git a/order/addCourse/addCourse.vue b/order/addCourse/addCourse.vue index 3f85280..9aeccc6 100644 --- a/order/addCourse/addCourse.vue +++ b/order/addCourse/addCourse.vue @@ -67,7 +67,8 @@ value: 1 }], checked: uni.getStorageSync('courses') || [], // 已经勾选的集合 - courses: uni.getStorageSync('courses') || [] + courses: uni.getStorageSync('courses') || [], + submiting: false, } }, watch: { @@ -259,6 +260,9 @@ submit() { const list = this.checked // 已选产品 if (list.length) { + if (this.submiting) return false + this.submiting = true + const result = this.courses const list1 = [] // 实训、理论 const list0 = [] // 数据前瞻 @@ -317,6 +321,7 @@ this.handleRenew(4, customerId, list4, result, resolve, reject) })) Promise.all(promises).then(_ => { + this.submiting = false uni.setStorageSync('courses', result) // 把选中的产品添加至缓存 uni.redirectTo({ url: `../editCourse/editCourse?customerId=${customerId}&orderType=${this.orderType}` diff --git a/order/curClient/curClient.vue b/order/curClient/curClient.vue index 95c66fb..f02cfdc 100644 --- a/order/curClient/curClient.vue +++ b/order/curClient/curClient.vue @@ -216,8 +216,10 @@ margin-top: 20rpx; background-color: #fff; .item { + width: 100%; padding: 20rpx 40rpx; border-bottom: 1px solid #f1f1f1; + box-sizing: border-box; } .c-name { font-size: 30rpx; diff --git a/order/orderDetail/orderDetail.vue b/order/orderDetail/orderDetail.vue index 9193684..02101fa 100644 --- a/order/orderDetail/orderDetail.vue +++ b/order/orderDetail/orderDetail.vue @@ -41,11 +41,11 @@ -->