Commit 4002a104 authored by jyx's avatar jyx

代码优化

parent a974177f
...@@ -126,6 +126,13 @@ ...@@ -126,6 +126,13 @@
const pm = await getPlayletManager({ const pm = await getPlayletManager({
is: 'charge' // 和插槽同名 is: 'charge' // 和插槽同名
}); });
let that = this
pm.getPlayletInfo().then(res => {
console.log(res)
that.albumId = res.albumId
this.loadData()
});
this.pm = pm; this.pm = pm;
console.error(pm, this, "charge_pm_this_beforeCreate"); console.error(pm, this, "charge_pm_this_beforeCreate");
}, },
...@@ -134,7 +141,6 @@ ...@@ -134,7 +141,6 @@
}, },
beforeMount() { beforeMount() {
console.log("chargeBeforeMount"); console.log("chargeBeforeMount");
this.loadData()
}, },
mounted() { mounted() {
console.log("chargeMounted"); console.log("chargeMounted");
...@@ -188,7 +194,7 @@ ...@@ -188,7 +194,7 @@
common.methods.post({ common.methods.post({
url: '/vip/getVipProducts/point', url: '/vip/getVipProducts/point',
data: { data: {
vedioId: that.point <= 0 ? null : that.vedioId albumId: that.point <= 0 ? null : that.albumId
}, },
showLoading: false, showLoading: false,
success: ({ success: ({
...@@ -232,7 +238,7 @@ ...@@ -232,7 +238,7 @@
common.methods.post({ common.methods.post({
url: '/vip/getVipPayParams/douyin', url: '/vip/getVipPayParams/douyin',
data: { data: {
vedioId: that.point <= 0 ? null : that.vedioId, albumId: that.point <= 0 ? null : that.albumId,
os: that.os, os: that.os,
pid: vipBean.pid pid: vipBean.pid
}, },
...@@ -246,7 +252,7 @@ ...@@ -246,7 +252,7 @@
}, },
onVip() { onVip() {
tt.navigateTo({ tt.navigateTo({
url: `/pagesA/vipPay/vipPay?vedioId=` + this.vedioId url: `/pagesA/vipPay/vipPay?albumId=` + this.albumId
}) })
this.handleClose(); this.handleClose();
}, },
......
...@@ -149,14 +149,14 @@ ...@@ -149,14 +149,14 @@
selectedVipIndex: -1, selectedVipIndex: -1,
btnText: '', btnText: '',
slotParam: '', slotParam: '',
vedioId: '', albumId: '',
userBean: {}, userBean: {},
os: 'android', os: 'android',
showKefuPop: false showKefuPop: false
} }
}, },
onLoad(options) { onLoad(options) {
this.vedioId = options.vedioId this.albumId = options.albumId
let that = this; let that = this;
if (tt.getSystemInfoSync().platform === 'ios') { if (tt.getSystemInfoSync().platform === 'ios') {
this.os = 'ios'; this.os = 'ios';
...@@ -385,7 +385,7 @@ ...@@ -385,7 +385,7 @@
this.post({ this.post({
url: '/vip/getVipPayParams/douyin', url: '/vip/getVipPayParams/douyin',
data: { data: {
vedioId: that.point <= 0 ? null : that.vedioId, albumId: that.point <= 0 ? null : that.albumId,
os: that.os, os: that.os,
pid: vipBean.pid pid: vipBean.pid
}, },
......
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