Commit 9a74a451 authored by FE-安焕焕's avatar FE-安焕焕 👣

fix:修改客服标题

parent afa4e72d
...@@ -64,10 +64,11 @@ export default { ...@@ -64,10 +64,11 @@ export default {
this.phoneRecharge[`${name}Type`] this.phoneRecharge[`${name}Type`]
); );
this.$emit('changeRechargetype', name); this.$emit('changeRechargetype', name);
this.rechargeList[name] = [...data?.rechargeList] || []; const rechargeList = data?.rechargeList || [];
this.rechargeList[name] = [...rechargeList] || [];
this.selectedRechargeInfo = this.rechargeList[name][0]; this.selectedRechargeInfo = this.rechargeList[name][0];
this.rechargeList[name].forEach(element => { this.rechargeList[name].forEach(element => {
if (element.salePrice === '100.00') { if (element?.salePrice === '100.00') {
this.selectedRechargeInfo = { ...element }; this.selectedRechargeInfo = { ...element };
} }
}); });
......
...@@ -70,6 +70,7 @@ export default { ...@@ -70,6 +70,7 @@ export default {
}, },
async goOrderList(type) { async goOrderList(type) {
if (type === 'cs') { if (type === 'cs') {
this.$store.commit('CHANGE_TITLE', ''); // 改变title
window.location.href = window.location.href =
'https://kdspstatic.91xr.cn/kdsp/mine/service/customer-service/customer-service-prod2.html'; 'https://kdspstatic.91xr.cn/kdsp/mine/service/customer-service/customer-service-prod2.html';
return; return;
......
...@@ -57,7 +57,7 @@ export default { ...@@ -57,7 +57,7 @@ export default {
return ( return (
this.rechargePhoneInfo.phoneNo && this.rechargePhoneInfo.phoneNo &&
checkPhoneFormat(this.rechargePhoneInfo.phoneNo) && checkPhoneFormat(this.rechargePhoneInfo.phoneNo) &&
this.selectedRechargeInfo.salePrice this.selectedRechargeInfo?.salePrice
); );
} }
}, },
...@@ -77,7 +77,7 @@ export default { ...@@ -77,7 +77,7 @@ export default {
}, },
methods: { methods: {
throttle, throttle,
selectedRecharge({ rechargeInfo }) { selectedRecharge({ rechargeInfo = {} }) {
this.selectedRechargeInfo = rechargeInfo; this.selectedRechargeInfo = rechargeInfo;
}, },
async goOrderApi() { async goOrderApi() {
......
...@@ -189,6 +189,7 @@ export default { ...@@ -189,6 +189,7 @@ export default {
this.orderInfo = res; this.orderInfo = res;
}, },
contractCS() { contractCS() {
this.$store.commit('CHANGE_TITLE', ''); // 改变title
window.location.href = window.location.href =
'https://kdspstatic.91xr.cn/kdsp/mine/service/customer-service/customer-service-prod2.html'; 'https://kdspstatic.91xr.cn/kdsp/mine/service/customer-service/customer-service-prod2.html';
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment