Merge branch 'master' of https://code.itechtop.cn/yangyang/ztx_wx_gzt
Showing
4 changed files
with
19 additions
and
18 deletions
| ... | @@ -1552,7 +1552,7 @@ export function certifiedNew(data) { | ... | @@ -1552,7 +1552,7 @@ export function certifiedNew(data) { |
| 1552 | let url = '/system/certifiedNew/commit' | 1552 | let url = '/system/certifiedNew/commit' |
| 1553 | const params = [] | 1553 | const params = [] |
| 1554 | if (data.renewYear) params.push(`renewYear=${data.renewYear}`) | 1554 | if (data.renewYear) params.push(`renewYear=${data.renewYear}`) |
| 1555 | if (data.type) params.push(`type=${data.type}`) | 1555 | params.push(`type=${data.type}`) |
| 1556 | if (data.contactPerson) params.push(`contactPerson=${data.contactPerson}`) | 1556 | if (data.contactPerson) params.push(`contactPerson=${data.contactPerson}`) |
| 1557 | if (data.contactTel) params.push(`contactTel=${data.contactTel}`) | 1557 | if (data.contactTel) params.push(`contactTel=${data.contactTel}`) |
| 1558 | if (params.length > 0) { | 1558 | if (params.length > 0) { | ... | ... |
| ... | @@ -47,7 +47,7 @@ | ... | @@ -47,7 +47,7 @@ |
| 47 | <view class="payRow "> | 47 | <view class="payRow "> |
| 48 | <radio-group @change="onPayTypeChange"> | 48 | <radio-group @change="onPayTypeChange"> |
| 49 | <label class="radioItem"> | 49 | <label class="radioItem"> |
| 50 | <radio :checked="payType == '1'" class="custom-radio" value="0"/> | 50 | <radio :checked="payType == '0'" class="custom-radio" value="0"/> |
| 51 | <view class="payInfo"> | 51 | <view class="payInfo"> |
| 52 | <image :src="config.baseUrl_api + '/fs/static/min.png'" class="icon" mode="widthFix"></image> | 52 | <image :src="config.baseUrl_api + '/fs/static/min.png'" class="icon" mode="widthFix"></image> |
| 53 | <text>民生付</text> | 53 | <text>民生付</text> |
| ... | @@ -116,7 +116,7 @@ const preferentialPolicy = ref(false) | ... | @@ -116,7 +116,7 @@ const preferentialPolicy = ref(false) |
| 116 | const preferentialData = ref({ | 116 | const preferentialData = ref({ |
| 117 | name: '优惠' | 117 | name: '优惠' |
| 118 | }) | 118 | }) |
| 119 | const payType = ref('1') | 119 | const payType = ref('0') |
| 120 | const isPaying = ref(false) | 120 | const isPaying = ref(false) |
| 121 | const payName = ref('') | 121 | const payName = ref('') |
| 122 | const assoName = ref('') | 122 | const assoName = ref('') |
| ... | @@ -194,7 +194,7 @@ const handelPay = async () => { | ... | @@ -194,7 +194,7 @@ const handelPay = async () => { |
| 194 | // 构建请求参数 | 194 | // 构建请求参数 |
| 195 | const params = { | 195 | const params = { |
| 196 | renewYear: form.value.renewYear, | 196 | renewYear: form.value.renewYear, |
| 197 | type: payType.value | 197 | type: payType.value, |
| 198 | } | 198 | } |
| 199 | 199 | ||
| 200 | // 对公转账需要传联系人信息 | 200 | // 对公转账需要传联系人信息 | ... | ... |
| ... | @@ -30,13 +30,13 @@ | ... | @@ -30,13 +30,13 @@ |
| 30 | <view class="section-title">选择支付方式</view> | 30 | <view class="section-title">选择支付方式</view> |
| 31 | <view class="payment-methods"> | 31 | <view class="payment-methods"> |
| 32 | <radio-group @change="handlePayTypeChange"> | 32 | <radio-group @change="handlePayTypeChange"> |
| 33 | <label class="payment-item" :class="{ selected: payType === '1' }"> | 33 | <label :class="{ selected: payType === '1' }" class="payment-item"> |
| 34 | <radio :checked="payType === '1'" value="0" /> | 34 | <radio :checked="payType =='0'" value="0"/> |
| 35 | <image :src="config.baseUrl_api + '/fs/static/min.png'" class="icon ml10" mode="widthFix"></image> | 35 | <image :src="config.baseUrl_api + '/fs/static/min.png'" class="icon ml10" mode="widthFix"></image> |
| 36 | <text class="pay-name ml10">民生付</text> | 36 | <text class="pay-name ml10">民生付</text> |
| 37 | </label> | 37 | </label> |
| 38 | <label class="payment-item" :class="{ selected: payType === '3' }"> | 38 | <label :class="{ selected: payType === '3' }" class="payment-item"> |
| 39 | <radio :checked="payType === '3'" value="1" /> | 39 | <radio :checked="payType === '3'" value="1"/> |
| 40 | <image :src="config.baseUrl_api + '/fs/static/min.png'" class="icon ml10" mode="widthFix"></image> | 40 | <image :src="config.baseUrl_api + '/fs/static/min.png'" class="icon ml10" mode="widthFix"></image> |
| 41 | <text class="pay-name ml10">对公转账</text> | 41 | <text class="pay-name ml10">对公转账</text> |
| 42 | </label> | 42 | </label> |
| ... | @@ -48,11 +48,11 @@ | ... | @@ -48,11 +48,11 @@ |
| 48 | <view v-if="payType === '3'" class="transfer-form"> | 48 | <view v-if="payType === '3'" class="transfer-form"> |
| 49 | <view class="form-item"> | 49 | <view class="form-item"> |
| 50 | <text class="form-label">联系人</text> | 50 | <text class="form-label">联系人</text> |
| 51 | <input class="form-input" v-model="form.contactPerson" placeholder="请输入联系人" /> | 51 | <input v-model="form.contactPerson" class="form-input" placeholder="请输入联系人"/> |
| 52 | </view> | 52 | </view> |
| 53 | <view class="form-item"> | 53 | <view class="form-item"> |
| 54 | <text class="form-label">联系电话</text> | 54 | <text class="form-label">联系电话</text> |
| 55 | <input class="form-input" v-model="form.contactTel" type="number" placeholder="请输入联系电话" /> | 55 | <input v-model="form.contactTel" class="form-input" placeholder="请输入联系电话" type="number"/> |
| 56 | </view> | 56 | </view> |
| 57 | </view> | 57 | </view> |
| 58 | 58 | ||
| ... | @@ -77,7 +77,7 @@ import {minShengPay} from "@/common/pay"; | ... | @@ -77,7 +77,7 @@ import {minShengPay} from "@/common/pay"; |
| 77 | // 核心数据 | 77 | // 核心数据 |
| 78 | const formData = ref({}) // 订单统计数据 | 78 | const formData = ref({}) // 订单统计数据 |
| 79 | const rangeId = ref('') // 核心业务ID | 79 | const rangeId = ref('') // 核心业务ID |
| 80 | const payType = ref('1') // 支付方式(默认0=民生付) | 80 | const payType = ref('0') // 支付方式(默认0=民生付) |
| 81 | const payLoading = ref(false) // 支付按钮加载状态 | 81 | const payLoading = ref(false) // 支付按钮加载状态 |
| 82 | const form = ref({ | 82 | const form = ref({ |
| 83 | contactPerson: '', | 83 | contactPerson: '', |
| ... | @@ -112,7 +112,7 @@ async function getCount() { | ... | @@ -112,7 +112,7 @@ async function getCount() { |
| 112 | 112 | ||
| 113 | // 支付方式切换 | 113 | // 支付方式切换 |
| 114 | function handlePayTypeChange(e) { | 114 | function handlePayTypeChange(e) { |
| 115 | payType.value = e.detail.value == '0' ? '1' : '3' | 115 | payType.value = e.detail.value == '0' ? '0' : '3' |
| 116 | console.log('支付方式:', payType.value) | 116 | console.log('支付方式:', payType.value) |
| 117 | if (payType.value === '3') { | 117 | if (payType.value === '3') { |
| 118 | form.value.contactPerson = '' | 118 | form.value.contactPerson = '' |
| ... | @@ -133,14 +133,14 @@ async function handlePay() { | ... | @@ -133,14 +133,14 @@ async function handlePay() { |
| 133 | // 对公转账校验 | 133 | // 对公转账校验 |
| 134 | if (payType.value === '3') { | 134 | if (payType.value === '3') { |
| 135 | if (!form.value.contactPerson) { | 135 | if (!form.value.contactPerson) { |
| 136 | return uni.showToast({ title: '请输入联系人', icon: 'none' }) | 136 | return uni.showToast({title: '请输入联系人', icon: 'none'}) |
| 137 | } | 137 | } |
| 138 | if (!form.value.contactTel) { | 138 | if (!form.value.contactTel) { |
| 139 | return uni.showToast({ title: '请输入联系电话', icon: 'none' }) | 139 | return uni.showToast({title: '请输入联系电话', icon: 'none'}) |
| 140 | } | 140 | } |
| 141 | // 手机号格式校验 | 141 | // 手机号格式校验 |
| 142 | if (!/^1[3-9]\d{9}$/.test(form.value.contactTel)) { | 142 | if (!/^1[3-9]\d{9}$/.test(form.value.contactTel)) { |
| 143 | return uni.showToast({ title: '请输入正确的手机号', icon: 'none' }) | 143 | return uni.showToast({title: '请输入正确的手机号', icon: 'none'}) |
| 144 | } | 144 | } |
| 145 | } | 145 | } |
| 146 | 146 | ||
| ... | @@ -177,7 +177,7 @@ async function handlePay() { | ... | @@ -177,7 +177,7 @@ async function handlePay() { |
| 177 | if (resData.payResult && resData.payResult.encryptedData) { | 177 | if (resData.payResult && resData.payResult.encryptedData) { |
| 178 | const reason = await minShengPay(resData.orderId, resData.payResult.encryptedData) | 178 | const reason = await minShengPay(resData.orderId, resData.payResult.encryptedData) |
| 179 | if (reason == 'OK') { | 179 | if (reason == 'OK') { |
| 180 | uni.showToast({ title: '支付成功', icon: 'success' }) | 180 | uni.showToast({title: '支付成功', icon: 'success'}) |
| 181 | setTimeout(() => { | 181 | setTimeout(() => { |
| 182 | uni.hideLoading() | 182 | uni.hideLoading() |
| 183 | uni.redirectTo({ | 183 | uni.redirectTo({ | ... | ... |
| ... | @@ -637,7 +637,7 @@ const associateIdForAuthPay = ref(0) | ... | @@ -637,7 +637,7 @@ const associateIdForAuthPay = ref(0) |
| 637 | 637 | ||
| 638 | // 是否是道馆用户 | 638 | // 是否是道馆用户 |
| 639 | const isDaoGuan = computed(() => { | 639 | const isDaoGuan = computed(() => { |
| 640 | console.log('isDaoGuan', app.globalData.deptType,userType.value) | 640 | console.log('isDaoGuan', app.globalData.deptType, userType.value) |
| 641 | return userType.value == '4' || app.globalData.deptType == '6' || app.globalData.deptType == '3' | 641 | return userType.value == '4' || app.globalData.deptType == '6' || app.globalData.deptType == '3' |
| 642 | }) | 642 | }) |
| 643 | 643 | ||
| ... | @@ -691,7 +691,7 @@ onLoad(option => { | ... | @@ -691,7 +691,7 @@ onLoad(option => { |
| 691 | menus: ['shareAppMessage', 'shareTimeline'] | 691 | menus: ['shareAppMessage', 'shareTimeline'] |
| 692 | }); | 692 | }); |
| 693 | } | 693 | } |
| 694 | console.log('app.globalData22',app.globalData.changePassFlag,app.globalData.memberInfo?.activeStatus,app.globalData.authenticationStatus) | 694 | console.log('app.globalData22', app.globalData.changePassFlag, app.globalData.memberInfo?.activeStatus, app.globalData.authenticationStatus) |
| 695 | }); | 695 | }); |
| 696 | 696 | ||
| 697 | 697 | ||
| ... | @@ -1489,6 +1489,7 @@ function checkDialogs() { | ... | @@ -1489,6 +1489,7 @@ function checkDialogs() { |
| 1489 | .dialog-icon { | 1489 | .dialog-icon { |
| 1490 | color: #AD181F; | 1490 | color: #AD181F; |
| 1491 | } | 1491 | } |
| 1492 | |||
| 1492 | .dialog-message { | 1493 | .dialog-message { |
| 1493 | font-size: 28rpx; | 1494 | font-size: 28rpx; |
| 1494 | color: #606266; | 1495 | color: #606266; | ... | ... |
-
Please register or sign in to post a comment