Commit a76dd303 authored by mengcuiguang's avatar mengcuiguang

代码优化

parent 4c988da6
......@@ -14,6 +14,10 @@
{
"launchtype" : "local"
},
"quickapp-union" :
{
"launchtype" : "local"
},
"type" : "uniCloud"
}
]
......
......@@ -83,6 +83,10 @@
point: {
type: [Number, String],
default: 0
},
vedioId: {
type: [Number, String],
default: 0
}
},
data() {
......@@ -103,7 +107,10 @@
this.$refs.coinPop.open('bottom');
this.post({
url: '/vip/getVipProducts/point',
url: '/vip/getVipProducts/point',
data: {
vedioId: this.vedioId
},
showLoading: false,
success: ({
data
......@@ -146,7 +153,8 @@
this.post({
url: '/vip/getVipPayParams',
data: {
data: {
vedioId: this.vedioId,
pid: vipBean.pid,
payChannel: 'WEIXIN'
},
......
......@@ -107,7 +107,7 @@
</swiper>
</view>
</uni-popup>
<coin-popup :show="showCoinPop" :point="data.point" @close="showCoinPop = false" @paySuccess="paySuccess">
<coin-popup :show="showCoinPop" :point="data.point" :vedioId="data.vedioId" @close="showCoinPop = false" @paySuccess="paySuccess">
</coin-popup>
</view>
</template>
......@@ -198,11 +198,15 @@
paySuccess(largeType) {
// largeType=vip 开通vip
// largeType=point 购买看点
// largeType=curVedio 解锁当前剧所有集
if (largeType == 'vip') {
this.vipBackPage = this.originIndex
this.getData()
} else {
} else if (largeType == 'point') {
this.unlock(this.originIndex)
} else {
this.vipBackPage = this.originIndex
this.getData()
}
},
showPayDialog() {
......
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