Commit a76dd303 authored by mengcuiguang's avatar mengcuiguang

代码优化

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