|
|
@@ -1,7 +1,7 @@ |
|
|
|
<!-- |
|
|
|
* @Date: 2022-03-29 16:57:58 |
|
|
|
* @LastEditors: JinxChen |
|
|
|
* @LastEditTime: 2023-02-25 16:54:07 |
|
|
|
* @LastEditTime: 2023-02-25 17:17:01 |
|
|
|
* @FilePath: \TelpoH5FrontendWeb\src\views\package-list\index.vue |
|
|
|
* @description: TODO 小台风充值h5 |
|
|
|
--> |
|
|
@@ -161,10 +161,15 @@ export default { |
|
|
|
duration: 1500 |
|
|
|
}); |
|
|
|
let reqBody = { |
|
|
|
imei: this.params.imei |
|
|
|
manufactorId:"", |
|
|
|
productModelId:0, |
|
|
|
iccid:"", |
|
|
|
pageNumber:1, |
|
|
|
begNumber:20 |
|
|
|
} |
|
|
|
APICore.QueryLiveBasePackage(reqBody) |
|
|
|
APICore.cardPackageList(reqBody) |
|
|
|
.then(res => { |
|
|
|
console.log("data", res.data); |
|
|
|
if (res.data.code === 106 || res.data.code === 104) { |
|
|
|
// token过期 |
|
|
|
this.getAuth(); |
|
|
@@ -174,11 +179,13 @@ export default { |
|
|
|
} else if (res.data.code === 0 && res.data.data === null) { |
|
|
|
this.isShowNoData = true; |
|
|
|
}else { |
|
|
|
let data = res.data.data.packageList; |
|
|
|
let data = res.data.data.list; |
|
|
|
if(data === null) { |
|
|
|
this.isShowNoData = true; |
|
|
|
} else { |
|
|
|
this.packageOrderList = data.reverse(); |
|
|
|
this.packageOrderList = data.filter(item => { |
|
|
|
return item.pechargeUrl === '1629405716684029952' || item.pechargeUrl === '1629405558344859648'; |
|
|
|
}); |
|
|
|
console.log("套餐数据::", data); |
|
|
|
} |
|
|
|
} |
|
|
@@ -254,9 +261,9 @@ export default { |
|
|
|
let reqBody = { |
|
|
|
openId: this.$store.getters.openId, //openId |
|
|
|
imei: this.params.imei, //imei |
|
|
|
productId: data.productId, //套餐id |
|
|
|
productId: data.pechargeUrl, //套餐id |
|
|
|
packageName: data.productModel + ',' + data.packageName, //套餐名字 |
|
|
|
packagePayType: this.shiftType(data.packagePayType), //支付类型 |
|
|
|
packagePayType: data.packagePayType, //支付类型 |
|
|
|
packageIssue: data.packageIssue, //分期 |
|
|
|
packagePrice: process.env.NODE_ENV === "production" ? data.packagePrice * 100 : 1 //总金额单位为分,测试环境写死 |
|
|
|
}; |
|
|
@@ -342,9 +349,9 @@ export default { |
|
|
|
let reqBody = { |
|
|
|
openId: this.$store.getters.openId, //openId |
|
|
|
imei: this.serialNo, //imei |
|
|
|
productId: data.productId, //套餐id |
|
|
|
productId: data.pechargeUrl, //套餐id |
|
|
|
packageName: data.productModel + ',' + data.packageName, //套餐名字 |
|
|
|
packagePayType: this.shiftType(data.packagePayType), //支付类型 |
|
|
|
packagePayType: data.packagePayType, //支付类型 |
|
|
|
packageIssue: data.packageIssue, //分期 |
|
|
|
packagePrice: process.env.NODE_ENV === "production" ? data.packagePrice * 100 : 1 //总金额单位为分,测试环境写死 |
|
|
|
}; |
|
|
@@ -376,7 +383,7 @@ export default { |
|
|
|
isAdmin: that.$route.query.isAdmin || false, |
|
|
|
serialNo: that.params.imei, |
|
|
|
alipayUserId: alipayUserId, |
|
|
|
productId: data.productId |
|
|
|
productId: data.pechargeUrl |
|
|
|
} |
|
|
|
}); |
|
|
|
}) |
|
|
|