订阅,文案完善
This commit is contained in:
parent
955b50fa31
commit
88495a3156
|
|
@ -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>
|
||||
|
|
@ -4,7 +4,7 @@
|
|||
<view class="cu-modal" :class="isShow?'show':''">
|
||||
<view class="cu-dialog">
|
||||
<view class="padding-xl text-left">
|
||||
<view>前往确认是否授权订单进度消息提醒</view>
|
||||
<view>是否授权订单进度消息提醒</view>
|
||||
</view>
|
||||
<view class="cu-bar bg-white">
|
||||
<navigator class="modal-bottom-oper margin-0 flex-sub text-black" @tap="hideModal" target="miniProgram">取消
|
||||
|
|
@ -34,7 +34,7 @@
|
|||
confirm(e) {
|
||||
this.hideModal();
|
||||
// 提示订阅消息
|
||||
uni.requestSubscribeMessage({
|
||||
wx.requestSubscribeMessage({
|
||||
tmplIds: ['JtsGFPDjYhL2GbHfKxvTJaR_lLp8xLyw8VeR01Y0JHM'],
|
||||
complete(res) {
|
||||
console.log(res)
|
||||
|
|
|
|||
4
main.js
4
main.js
|
|
@ -11,13 +11,15 @@ import dateUtil from './common/js/dateUtil.js';
|
|||
import globalData from './common/js/globalData.js';
|
||||
import vertifyLogin from '@/components/vertify/vertify-login.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('confirm-modal', ConfirmModal);
|
||||
Vue.component('vertify-login', vertifyLogin);
|
||||
Vue.component('vertify-phone', vertifyPhone);
|
||||
Vue.component('vertify-subscribe', vertifySubscribe);
|
||||
Vue.component('vertify-settingSubscribe', vertifySettingSubscribe);
|
||||
|
||||
const data = type => {
|
||||
//模拟异步请求数据
|
||||
|
|
|
|||
|
|
@ -61,6 +61,6 @@
|
|||
"desc" : "因涉及上门家政服务,需获取地理位置"
|
||||
}
|
||||
},
|
||||
"requiredPrivateInfos": ["getLocation"]
|
||||
"requiredPrivateInfos" : [ "getLocation" ]
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -11,7 +11,8 @@
|
|||
<vertify-login ref="vertifyLogin" @reload="reloadForwardPage"></vertify-login>
|
||||
<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':''">
|
||||
|
|
@ -160,15 +161,19 @@
|
|||
}
|
||||
}
|
||||
let _this = this;
|
||||
|
||||
// 提示授权订单进度消息提示
|
||||
wx.getSetting({
|
||||
withSubscriptions: true,
|
||||
success(res) {
|
||||
console.log(res.subscriptionsSetting)
|
||||
if (!res.subscriptionsSetting.mainSwitch
|
||||
|| !res.subscriptionsSetting.itemSettings
|
||||
|| res.subscriptionsSetting.itemSettings['JtsGFPDjYhL2GbHfKxvTJaR_lLp8xLyw8VeR01Y0JHM'] !== 'accept') {
|
||||
if (res.subscriptionsSetting.mainSwitch && (!res.subscriptionsSetting.itemSettings
|
||||
|| !res.subscriptionsSetting.itemSettings['JtsGFPDjYhL2GbHfKxvTJaR_lLp8xLyw8VeR01Y0JHM'])) {
|
||||
// 提示授权订单进度消息提示
|
||||
_this.$refs.vertifySubscribe.showModal();
|
||||
} else if (!res.subscriptionsSetting.mainSwitch
|
||||
|| res.subscriptionsSetting.itemSettings['JtsGFPDjYhL2GbHfKxvTJaR_lLp8xLyw8VeR01Y0JHM'] !== 'accept') {
|
||||
_this.$refs.vertifySettingSubscribe.showModal();
|
||||
}
|
||||
}
|
||||
})
|
||||
|
|
|
|||
|
|
@ -66,10 +66,6 @@
|
|||
myUniCombox
|
||||
},
|
||||
props: {
|
||||
show: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
data: {
|
||||
type: Object,
|
||||
default: {}
|
||||
|
|
@ -79,6 +75,36 @@
|
|||
return {
|
||||
show: false,
|
||||
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,
|
||||
refund: null,
|
||||
remark: null,
|
||||
|
|
@ -188,7 +214,7 @@
|
|||
})
|
||||
})
|
||||
let res = await this.$request.addAfterServiceRecord({
|
||||
customerReasonType: this.customerReasonType,
|
||||
customerReasonType: this.customerReasonType.code,
|
||||
customerReason: this.remark,
|
||||
orderDetailId: this.detailObj.orderDetailId,
|
||||
operType: this.afterServiceType,
|
||||
|
|
|
|||
|
|
@ -169,10 +169,22 @@
|
|||
<view>
|
||||
<text>退款金额:</text>
|
||||
<text>{{afterServiceRecord.refund}}</text>
|
||||
</view>
|
||||
<view>
|
||||
<text>退款原因:</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>{{afterServiceRecord.customerReason}}</text>
|
||||
<text>具体原因:</text>
|
||||
<text v-if="afterServiceRecord.customerReason">{{afterServiceRecord.customerReason}}</text>
|
||||
</view>
|
||||
<view class="grid col-3 grid-square flex-sub margin-top-sm">
|
||||
<view class="bg-img" v-for="(imgObj, imgIndex) in afterServiceRecord.imgsList"
|
||||
|
|
@ -195,7 +207,19 @@
|
|||
</view>
|
||||
<view>
|
||||
<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>
|
||||
<text>完成操作:点击“处理完成”提交由客服回访!</text>
|
||||
|
|
@ -267,7 +291,7 @@
|
|||
</view>
|
||||
<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"
|
||||
@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"
|
||||
@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>
|
||||
|
|
@ -335,7 +359,8 @@
|
|||
<urgent-msg :show="sendUrgentMsgModal" @hideModal="hideModal"></urgent-msg>
|
||||
<confirm-modal ref="confirmModal" :content="'是否确定取消订单?'" @confirm="cancelOrder"></confirm-modal>
|
||||
<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>
|
||||
</template>
|
||||
|
||||
|
|
@ -362,7 +387,8 @@
|
|||
servedValFields: ['standardName', 'standardNum', 'serverNum'],
|
||||
process: '',
|
||||
ifShowPageMeta: false,
|
||||
sendUrgentMsgModal: false
|
||||
sendUrgentMsgModal: false,
|
||||
curDetailOrder: null
|
||||
}
|
||||
},
|
||||
onLoad(options) {
|
||||
|
|
@ -534,6 +560,17 @@
|
|||
uni.makePhoneCall({
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue