|
@@ -804,7 +804,7 @@ export default {
|
|
|
this.phoneReg = res.data
|
|
|
}).post()
|
|
|
},
|
|
|
- checkVip(num1) {
|
|
|
+ checkVip(num1,type) {
|
|
|
if (this.others.phone) {
|
|
|
if ((/^1[3456789]\d{9}$/.test(this.others.phone))) {
|
|
|
this.$request('/order/vipInfo').data({// 验证手机号权限
|
|
@@ -868,6 +868,9 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
} else {
|
|
|
+ if(type == 'showinit'){
|
|
|
+ return
|
|
|
+ }
|
|
|
this.others.vipType = '0'
|
|
|
// this.payDis = true
|
|
|
this.payDis = false
|
|
@@ -877,6 +880,9 @@ export default {
|
|
|
this.payChange()
|
|
|
}
|
|
|
}else{//企业默认为购买
|
|
|
+ if(type == 'showinit'){
|
|
|
+ return
|
|
|
+ }
|
|
|
this.others.vipType = '0'
|
|
|
// this.payDis = true
|
|
|
this.payDis = false
|
|
@@ -1563,6 +1569,7 @@ export default {
|
|
|
}else{
|
|
|
this.finish_dis=false
|
|
|
}
|
|
|
+ console.log(res.vip_type,'11111111111111111111111')
|
|
|
this.serviceEndTime =res.vip_endtime?dateFormatter(res.vip_endtime, 'yyyy-MM-dd') : ''
|
|
|
this.others = {
|
|
|
orderCode: res.order_code,
|
|
@@ -1573,7 +1580,7 @@ export default {
|
|
|
buyCount: res.buy_count?res.buy_count:'',//购买数量
|
|
|
productType: productType, //
|
|
|
companyName: res.company_name, //
|
|
|
- vipType: res.vip_type ? res.vip_type + '' : '0', //
|
|
|
+ vipType: res.vip_type + '', //
|
|
|
area: productType == '5' ? String(Object.keys(filterData.area)) ? String(Object.keys(filterData.area)) : '全国' : [], //
|
|
|
cycleCount: filterData.cyclecount, //
|
|
|
cycleUnit: filterData.cycleunit + '', //
|
|
@@ -1640,7 +1647,7 @@ export default {
|
|
|
this.startDate1(res.vip_starttime)
|
|
|
}, 200);
|
|
|
if (productType == "5" && !this.readonly) {
|
|
|
- this.checkVip(1)
|
|
|
+ this.checkVip(1,'showinit')
|
|
|
}
|
|
|
if(this.others.buySubject=='2'){ //购买主体为企业 禁用 产品类型和付费类型
|
|
|
this.isEnterprise=true
|