订阅,文案完善

This commit is contained in:
donqi 2023-05-07 23:06:56 +08:00
parent 955b50fa31
commit 88495a3156
7 changed files with 132 additions and 19 deletions

View File

@ -0,0 +1,43 @@
<template>
<view>
<!-- 模态框 -->
<view class="cu-modal" :class="isShow?'show':''">
<view class="cu-dialog">
<view class="padding-xl text-left">
<view>检测到订单消息未订阅是否前往修改订阅设置</view>
</view>
<view class="cu-bar bg-white">
<navigator class="modal-bottom-oper margin-0 flex-sub text-black" @tap="hideModal">取消
</navigator>
<view class="modal-bottom-oper margin-0 flex-sub text-main-color solid-left" @tap="confirm">确定</view>
</view>
</view>
</view>
</view>
</template>
<script>
export default {
name: 'vertify-settingSubscribe',
data() {
return {
isShow: false
}
},
methods: {
showModal(e) {
this.isShow = true
},
hideModal(e) {
this.isShow = false;
},
confirm(e) {
this.hideModal();
wx.openSetting();
}
}
}
</script>
<style>
</style>

View File

@ -4,7 +4,7 @@
<view class="cu-modal" :class="isShow?'show':''"> <view class="cu-modal" :class="isShow?'show':''">
<view class="cu-dialog"> <view class="cu-dialog">
<view class="padding-xl text-left"> <view class="padding-xl text-left">
<view>前往确认是否授权订单进度消息提醒</view> <view>是否授权订单进度消息提醒</view>
</view> </view>
<view class="cu-bar bg-white"> <view class="cu-bar bg-white">
<navigator class="modal-bottom-oper margin-0 flex-sub text-black" @tap="hideModal" target="miniProgram">取消 <navigator class="modal-bottom-oper margin-0 flex-sub text-black" @tap="hideModal" target="miniProgram">取消
@ -34,7 +34,7 @@
confirm(e) { confirm(e) {
this.hideModal(); this.hideModal();
// //
uni.requestSubscribeMessage({ wx.requestSubscribeMessage({
tmplIds: ['JtsGFPDjYhL2GbHfKxvTJaR_lLp8xLyw8VeR01Y0JHM'], tmplIds: ['JtsGFPDjYhL2GbHfKxvTJaR_lLp8xLyw8VeR01Y0JHM'],
complete(res) { complete(res) {
console.log(res) console.log(res)

View File

@ -12,12 +12,14 @@ import globalData from './common/js/globalData.js';
import vertifyLogin from '@/components/vertify/vertify-login.vue'; import vertifyLogin from '@/components/vertify/vertify-login.vue';
import vertifyPhone from '@/components/vertify/vertify-phone.vue'; import vertifyPhone from '@/components/vertify/vertify-phone.vue';
import vertifySubscribe from '@/components/vertify/vertify-subscribe.vue'; import vertifySubscribe from '@/components/vertify/vertify-subscribe.vue';
import vertifySettingSubscribe from '@/components/vertify/vertify-settingSubscribe.vue';
Vue.component('cu-custom', CuCustom) Vue.component('cu-custom', CuCustom)
Vue.component('confirm-modal', ConfirmModal); Vue.component('confirm-modal', ConfirmModal);
Vue.component('vertify-login', vertifyLogin); Vue.component('vertify-login', vertifyLogin);
Vue.component('vertify-phone', vertifyPhone); Vue.component('vertify-phone', vertifyPhone);
Vue.component('vertify-subscribe', vertifySubscribe); Vue.component('vertify-subscribe', vertifySubscribe);
Vue.component('vertify-settingSubscribe', vertifySettingSubscribe);
const data = type => { const data = type => {
//模拟异步请求数据 //模拟异步请求数据

View File

@ -12,6 +12,7 @@
<vertify-phone ref="vertifyPhone" @reload="reloadForwardPage"></vertify-phone> <vertify-phone ref="vertifyPhone" @reload="reloadForwardPage"></vertify-phone>
<!-- 订阅授权 --> <!-- 订阅授权 -->
<vertify-subscribe ref="vertifySubscribe"></vertify-subscribe> <vertify-subscribe ref="vertifySubscribe"></vertify-subscribe>
<vertify-settingSubscribe ref="vertifySettingSubscribe"></vertify-settingSubscribe>
<!-- 发布 --> <!-- 发布 -->
<view class="cu-modal content-mask" :class="isShowPublish?'show':''"> <view class="cu-modal content-mask" :class="isShowPublish?'show':''">
@ -160,15 +161,19 @@
} }
} }
let _this = this; let _this = this;
//
wx.getSetting({ wx.getSetting({
withSubscriptions: true, withSubscriptions: true,
success(res) { success(res) {
console.log(res.subscriptionsSetting) console.log(res.subscriptionsSetting)
if (!res.subscriptionsSetting.mainSwitch if (res.subscriptionsSetting.mainSwitch && (!res.subscriptionsSetting.itemSettings
|| !res.subscriptionsSetting.itemSettings || !res.subscriptionsSetting.itemSettings['JtsGFPDjYhL2GbHfKxvTJaR_lLp8xLyw8VeR01Y0JHM'])) {
|| res.subscriptionsSetting.itemSettings['JtsGFPDjYhL2GbHfKxvTJaR_lLp8xLyw8VeR01Y0JHM'] !== 'accept') {
// //
_this.$refs.vertifySubscribe.showModal(); _this.$refs.vertifySubscribe.showModal();
} else if (!res.subscriptionsSetting.mainSwitch
|| res.subscriptionsSetting.itemSettings['JtsGFPDjYhL2GbHfKxvTJaR_lLp8xLyw8VeR01Y0JHM'] !== 'accept') {
_this.$refs.vertifySettingSubscribe.showModal();
} }
} }
}) })

View File

@ -66,10 +66,6 @@
myUniCombox myUniCombox
}, },
props: { props: {
show: {
type: Boolean,
default: false
},
data: { data: {
type: Object, type: Object,
default: {} default: {}
@ -79,6 +75,36 @@
return { return {
show: false, show: false,
afterServiceType: 2, // 1退2 afterServiceType: 2, // 1退2
customerReasonTypeArr: [
{
code: 1,
name: '上门/服务不守时'
},{
code: 2,
name: '态度不友好,无法继续'
},{
code: 3,
name: '服务效果差,未达到合格'
},{
code: 4,
name: '技能水平问题,未妥善完成'
},{
code: 5,
name: '要求加费用,费用不合理'
},{
code: 6,
name: '订单拖太久了'
},{
code: 7,
name: '超了些服务内容,师傅不接受'
},{
code: 8,
name: '客户/我时间不方便了'
},{
code: 9,
name: '客户/我已让别的师傅服务了'
}
],
customerReasonType: null, customerReasonType: null,
refund: null, refund: null,
remark: null, remark: null,
@ -188,7 +214,7 @@
}) })
}) })
let res = await this.$request.addAfterServiceRecord({ let res = await this.$request.addAfterServiceRecord({
customerReasonType: this.customerReasonType, customerReasonType: this.customerReasonType.code,
customerReason: this.remark, customerReason: this.remark,
orderDetailId: this.detailObj.orderDetailId, orderDetailId: this.detailObj.orderDetailId,
operType: this.afterServiceType, operType: this.afterServiceType,

View File

@ -172,7 +172,19 @@
</view> </view>
<view> <view>
<text>退款原因</text> <text>退款原因</text>
<text>{{afterServiceRecord.customerReason}}</text> <text v-if="afterServiceRecord.customerReasonType === 1">上门/服务不守时</text>
<text v-else-if="afterServiceRecord.customerReasonType === 2">态度不友好无法继续</text>
<text v-else-if="afterServiceRecord.customerReasonType === 3">服务效果差未达到合格</text>
<text v-else-if="afterServiceRecord.customerReasonType === 4">技能水平问题未妥善完成</text>
<text v-else-if="afterServiceRecord.customerReasonType === 5">要求加费用费用不合理</text>
<text v-else-if="afterServiceRecord.customerReasonType === 6">订单拖太久了</text>
<text v-else-if="afterServiceRecord.customerReasonType === 7">超了些服务内容师傅不接受</text>
<text v-else-if="afterServiceRecord.customerReasonType === 8">客户/我时间不方便了</text>
<text v-else-if="afterServiceRecord.customerReasonType === 9">客户/我已让别的师傅服务了</text>
</view>
<view>
<text>具体原因</text>
<text v-if="afterServiceRecord.customerReason">{{afterServiceRecord.customerReason}}</text>
</view> </view>
<view class="grid col-3 grid-square flex-sub margin-top-sm"> <view class="grid col-3 grid-square flex-sub margin-top-sm">
<view class="bg-img" v-for="(imgObj, imgIndex) in afterServiceRecord.imgsList" <view class="bg-img" v-for="(imgObj, imgIndex) in afterServiceRecord.imgsList"
@ -195,7 +207,19 @@
</view> </view>
<view> <view>
<text>售后原因</text> <text>售后原因</text>
<text>{{afterServiceRecord.customerReason}}</text> <text v-if="afterServiceRecord.customerReasonType === 1">上门/服务不守时</text>
<text v-else-if="afterServiceRecord.customerReasonType === 2">态度不友好无法继续</text>
<text v-else-if="afterServiceRecord.customerReasonType === 3">服务效果差未达到合格</text>
<text v-else-if="afterServiceRecord.customerReasonType === 4">技能水平问题未妥善完成</text>
<text v-else-if="afterServiceRecord.customerReasonType === 5">要求加费用费用不合理</text>
<text v-else-if="afterServiceRecord.customerReasonType === 6">订单拖太久了</text>
<text v-else-if="afterServiceRecord.customerReasonType === 7">超了些服务内容师傅不接受</text>
<text v-else-if="afterServiceRecord.customerReasonType === 8">客户/我时间不方便了</text>
<text v-else-if="afterServiceRecord.customerReasonType === 9">客户/我已让别的师傅服务了</text>
</view>
<view>
<text>具体原因</text>
<text v-if="afterServiceRecord.customerReason">{{afterServiceRecord.customerReason}}</text>
</view> </view>
<view> <view>
<text>完成操作点击处理完成提交由客服回访</text> <text>完成操作点击处理完成提交由客服回访</text>
@ -267,7 +291,7 @@
</view> </view>
<view class="flex justify-end align-end margin-tb-sm"> <view class="flex justify-end align-end margin-tb-sm">
<button class="cu-btn sm bg-yellow margin-right-sm" v-if="afterServiceRecord.customerFinalCheck != 1" <button class="cu-btn sm bg-yellow margin-right-sm" v-if="afterServiceRecord.customerFinalCheck != 1"
@click="afterServiceFinalCheck(afterServiceRecord.id, 1)">同意</button> @click="showNotice(item)">同意</button>
<button class="cu-btn sm bg-yellow margin-right-sm" v-if="afterServiceRecord.customerFinalCheck == null" <button class="cu-btn sm bg-yellow margin-right-sm" v-if="afterServiceRecord.customerFinalCheck == null"
@click="afterServiceFinalCheck(afterServiceRecord.id, 0)">不同意</button> @click="afterServiceFinalCheck(afterServiceRecord.id, 0)">不同意</button>
<button class="cu-btn sm bg-yellow margin-right-sm" v-else-if="afterServiceRecord.customerFinalCheck == 0" disabled type="">已申请平台介入</button> <button class="cu-btn sm bg-yellow margin-right-sm" v-else-if="afterServiceRecord.customerFinalCheck == 0" disabled type="">已申请平台介入</button>
@ -336,6 +360,7 @@
<confirm-modal ref="confirmModal" :content="'是否确定取消订单?'" @confirm="cancelOrder"></confirm-modal> <confirm-modal ref="confirmModal" :content="'是否确定取消订单?'" @confirm="cancelOrder"></confirm-modal>
<apply-after-service ref="applyAfterService" :data="servDetail" <apply-after-service ref="applyAfterService" :data="servDetail"
@confirmFeedback="loadData(servDetail.orderMasterId)" @cancel="blurCurOrder"></apply-after-service> @confirmFeedback="loadData(servDetail.orderMasterId)" @cancel="blurCurOrder"></apply-after-service>
<confirm-modal ref="notice" :content="'银联实时动态:本单已划款,师傅/服务人员已到帐或即将到帐。双方达成退款的,请对方线下支付后点“对方已退款”。'" :confirmMsg="'对方已退款'" @confirm="afterServiceFinalCheck(curDetailOrder.afterServiceRecordList[0].id, 1)" @cancel="noticeCancel"></confirm-modal>
</view> </view>
</template> </template>
@ -362,7 +387,8 @@
servedValFields: ['standardName', 'standardNum', 'serverNum'], servedValFields: ['standardName', 'standardNum', 'serverNum'],
process: '', process: '',
ifShowPageMeta: false, ifShowPageMeta: false,
sendUrgentMsgModal: false sendUrgentMsgModal: false,
curDetailOrder: null
} }
}, },
onLoad(options) { onLoad(options) {
@ -534,6 +560,17 @@
uni.makePhoneCall({ uni.makePhoneCall({
phoneNumber: phoneNum phoneNumber: phoneNum
}) })
},
showNotice(detailOrder) {
if (detailOrder.drawCashStatus != null && detailOrder.drawCashStatus >= 1) {
this.curDetailOrder = detailOrder;
this.$refs.notice.showModal();
} else {
this.afterServiceFinalCheck(detailOrder.afterServiceRecordList[0].id, 1)
}
},
noticeCancel() {
this.curDetailOrder = null;
} }
} }
} }