Commit 5dbc1d29 authored by jyx's avatar jyx

代码优化

parent 22830e42
...@@ -119,13 +119,22 @@ ...@@ -119,13 +119,22 @@
userBean: {}, userBean: {},
os: 'android', os: 'android',
titleText: '解锁剧集', titleText: '解锁剧集',
showClone: false showClone: false,
pm: null,
albumId: ""
}; };
}, },
async beforeCreate() { async beforeCreate() {
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");
}, },
...@@ -188,7 +197,7 @@ ...@@ -188,7 +197,7 @@
common.methods.post({ common.methods.post({
url: '/vip/getVipProducts/point', url: '/vip/getVipProducts/point',
data: { data: {
vedioId: that.point <= 0 ? null : that.vedioId vedioId: that.point <= 0 ? null : that.albumId
}, },
showLoading: false, showLoading: false,
success: ({ success: ({
...@@ -232,7 +241,7 @@ ...@@ -232,7 +241,7 @@
common.methods.post({ common.methods.post({
url: '/vip/getVipPayParams/douyin', url: '/vip/getVipPayParams/douyin',
data: { data: {
vedioId: that.point <= 0 ? null : that.vedioId, vedioId: 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