问题修复;需求变动;

This commit is contained in:
donqi 2023-04-23 22:39:01 +08:00
parent 657ea5bb82
commit 955b50fa31
5 changed files with 46 additions and 19 deletions

View File

@ -26,16 +26,18 @@ export default {
// return false; // return false;
}, },
success(res) { success(res) {
if (res.data.code !== 0) { uni.hideLoading();
if (!res || !res.data || res.data.code !== 0) {
uni.showToast({ uni.showToast({
title: '系统开小差啦T_T请稍后重试', title: '系统错误',
icon: 'error' icon: 'error'
}) })
} }
}, },
fail(err) { fail(err) {
uni.hideLoading();
uni.showToast({ uni.showToast({
title: '系统开小差啦T_T请稍后重试', title: '请求失败',
icon: 'error' icon: 'error'
}) })
}, },

View File

@ -24,20 +24,20 @@
<!-- 银行卡 --> <!-- 银行卡 -->
<view v-if="curAccountType === '1'" class="bg-white padding text-lg"> <view v-if="curAccountType === '1'" class="bg-white padding text-lg">
<view> <view>
<view class="margin-bottom-sm">开户人姓名</view> <view class="margin-bottom-sm">开户人姓名<text class="margin-left-xs text-red">*</text></view>
<input type="text" placeholder="请输入开户人姓名" placeholder-style="color:#989898" v-model="formData.name"> <input type="text" placeholder="请输入开户人姓名" placeholder-style="color:#989898" v-model="formData.name">
</view> </view>
<view class="margin-top"> <view class="margin-top">
<view class="margin-bottom-sm">身份证号</view> <view class="margin-bottom-sm">身份证号<text class="margin-left-xs text-red">*</text></view>
<input type="idcard" placeholder="请输入身份证号" placeholder-style="color:#989898" v-model="formData.certId"> <input type="idcard" placeholder="请输入身份证号" placeholder-style="color:#989898" v-model="formData.certId">
</view> </view>
<view class="margin-top"> <view class="margin-top">
<view class="margin-bottom-sm">手机号</view> <view class="margin-bottom-sm">手机号<text class="margin-left-xs text-red">*</text></view>
<input type="text" placeholder="请输入开卡时所绑定的手机号码" placeholder-style="color:#989898" v-model="formData.phone"> <input type="number" placeholder="请输入开卡时所绑定的手机号码" placeholder-style="color:#989898" v-model="formData.phone">
</view> </view>
<view class="margin-top"> <view class="margin-top">
<view class="margin-bottom-sm">银行卡号</view> <view class="margin-bottom-sm">银行卡号<text class="margin-left-xs text-red">*</text></view>
<input type="text" placeholder="请输入银行卡号" placeholder-style="color:#989898" v-model="formData.bankNum"> <input type="number" placeholder="请输入银行卡号" placeholder-style="color:#989898" v-model="formData.bankNum">
</view> </view>
<!-- <view class="margin-top"> <!-- <view class="margin-top">
<view class="margin-bottom-sm">银行卡号开户城市</view> <view class="margin-bottom-sm">银行卡号开户城市</view>
@ -96,17 +96,42 @@
changAccountType(e) { changAccountType(e) {
this.curAccountType = e.currentTarget.dataset.type; this.curAccountType = e.currentTarget.dataset.type;
}, },
validData() {
if (!this.formData.name || !this.formData.certId || !this.formData.phone || !this.formData.bankNum) {
return false;
}
return true;
},
async submit() { async submit() {
if (this.curAccountType === '1') { if (this.curAccountType === '1') {
if (!this.validData()) {
uni.showToast({
icon: 'none',
title: '请完成必填项的填写',
duration: 2000
})
return;
}
let params = { let params = {
...this.formData, ...this.formData,
customerId: this.curUserInfo.customerId customerId: this.curUserInfo.customerId
} }
let res = await this.$request.bindBankCard(params); let res = await this.$request.bindBankCard(params);
if (res.code === 0) { if (res && res.code === 0) {
uni.navigateBack({ uni.navigateBack({
delta: -1 delta: -1
}) })
} else if (res && res.msg) {
uni.showToast({
icon: 'none',
title: res.msg,
duration: 4000
})
} else {
uni.showToast({
title: '绑定失败',
icon: 'error'
})
} }
} }
} }

View File

@ -3,7 +3,7 @@
<!-- 顶部操作条 --> <!-- 顶部操作条 -->
<cu-custom :bgColor="'bg-main-color'" :isBack="true"> <cu-custom :bgColor="'bg-main-color'" :isBack="true">
<block slot="backText">返回</block> <block slot="backText">返回</block>
<block slot="content">我的钱包</block> <block slot="content">运营账单</block>
</cu-custom> </cu-custom>
<view class="padding-tb bg-white solid-bottom"> <view class="padding-tb bg-white solid-bottom">
<view class="flex justify-between align-center margin-top-xs padding-left"> <view class="flex justify-between align-center margin-top-xs padding-left">

View File

@ -220,7 +220,7 @@
<text>师傅反馈结果</text> <text>师傅反馈结果</text>
<text v-if="afterServiceRecord.workerFeedbackResult === 0">拒绝</text> <text v-if="afterServiceRecord.workerFeedbackResult === 0">拒绝</text>
<text v-else-if="afterServiceRecord.workerFeedbackResult === 1">同意</text> <text v-else-if="afterServiceRecord.workerFeedbackResult === 1">同意</text>
<text v-else-if="afterServiceRecord.workerFeedbackResult === 2">重新上门</text> <text v-else-if="afterServiceRecord.workerFeedbackResult === 2">上门重做/补做</text>
</view> </view>
<view v-if="afterServiceRecord.workerFeedbackResult === 1"> <view v-if="afterServiceRecord.workerFeedbackResult === 1">
<text>同意退款金额</text> <text>同意退款金额</text>
@ -247,7 +247,7 @@
<text>师傅反馈结果</text> <text>师傅反馈结果</text>
<text v-if="afterServiceRecord.workerFeedbackResult === 0">拒绝</text> <text v-if="afterServiceRecord.workerFeedbackResult === 0">拒绝</text>
<text v-else-if="afterServiceRecord.workerFeedbackResult === 1">同意</text> <text v-else-if="afterServiceRecord.workerFeedbackResult === 1">同意</text>
<text v-else-if="afterServiceRecord.workerFeedbackResult === 2">重新上门</text> <text v-else-if="afterServiceRecord.workerFeedbackResult === 2">上门重做/补做</text>
</view> </view>
<view v-if="afterServiceRecord.workerFeedbackResult !== 2"> <view v-if="afterServiceRecord.workerFeedbackResult !== 2">
<text>师傅反馈</text> <text>师傅反馈</text>

View File

@ -64,7 +64,7 @@
</view> </view>
<!-- 操作按钮 --> <!-- 操作按钮 -->
<view class="margin-lr"> <view class="margin-lr">
<button class="cu-btn lg line-main-color long-btn shadow-blur" @click="showFinanalDetails">分销明细</button> <button class="cu-btn lg line-main-color long-btn shadow-blur" @click="showFinanalDetails">运营账单</button>
</view> </view>
</view> </view>
</template> </template>