问题修复;需求变动;

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;
},
success(res) {
if (res.data.code !== 0) {
uni.hideLoading();
if (!res || !res.data || res.data.code !== 0) {
uni.showToast({
title: '系统开小差啦T_T请稍后重试',
title: '系统错误',
icon: 'error'
})
}
},
fail(err) {
uni.hideLoading();
uni.showToast({
title: '系统开小差啦T_T请稍后重试',
title: '请求失败',
icon: 'error'
})
},

View File

@ -24,20 +24,20 @@
<!-- 银行卡 -->
<view v-if="curAccountType === '1'" class="bg-white padding text-lg">
<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">
</view>
<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">
</view>
<view class="margin-top">
<view class="margin-bottom-sm">手机号</view>
<input type="text" placeholder="请输入开卡时所绑定的手机号码" placeholder-style="color:#989898" v-model="formData.phone">
<view class="margin-bottom-sm">手机号<text class="margin-left-xs text-red">*</text></view>
<input type="number" placeholder="请输入开卡时所绑定的手机号码" placeholder-style="color:#989898" v-model="formData.phone">
</view>
<view class="margin-top">
<view class="margin-bottom-sm">银行卡号</view>
<input type="text" placeholder="请输入银行卡号" placeholder-style="color:#989898" v-model="formData.bankNum">
<view class="margin-bottom-sm">银行卡号<text class="margin-left-xs text-red">*</text></view>
<input type="number" placeholder="请输入银行卡号" placeholder-style="color:#989898" v-model="formData.bankNum">
</view>
<!-- <view class="margin-top">
<view class="margin-bottom-sm">银行卡号开户城市</view>
@ -96,17 +96,42 @@
changAccountType(e) {
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() {
if (this.curAccountType === '1') {
if (!this.validData()) {
uni.showToast({
icon: 'none',
title: '请完成必填项的填写',
duration: 2000
})
return;
}
let params = {
...this.formData,
customerId: this.curUserInfo.customerId
}
let res = await this.$request.bindBankCard(params);
if (res.code === 0) {
if (res && res.code === 0) {
uni.navigateBack({
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">
<block slot="backText">返回</block>
<block slot="content">我的钱包</block>
<block slot="content">运营账单</block>
</cu-custom>
<view class="padding-tb bg-white solid-bottom">
<view class="flex justify-between align-center margin-top-xs padding-left">

View File

@ -220,7 +220,7 @@
<text>师傅反馈结果</text>
<text v-if="afterServiceRecord.workerFeedbackResult === 0">拒绝</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 v-if="afterServiceRecord.workerFeedbackResult === 1">
<text>同意退款金额</text>
@ -247,7 +247,7 @@
<text>师傅反馈结果</text>
<text v-if="afterServiceRecord.workerFeedbackResult === 0">拒绝</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 v-if="afterServiceRecord.workerFeedbackResult !== 2">
<text>师傅反馈</text>

View File

@ -64,7 +64,7 @@
</view>
<!-- 操作按钮 -->
<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>
</template>