|
@@ -4,18 +4,20 @@
|
|
|
<div class="stack" style="background-color: #ff8b63" if={{activity}}>
|
|
|
<image src="https://cdn-novel.iycdm.com/h5/channelActivity/activity-2020-04-17/20200417173207-bg.jpeg"></image>
|
|
|
<div class="contain">
|
|
|
- <text class="promotion-title">活动时间:{{activity.startTime.substring(0,10)}} 至 {{activity.endTime.substring(0,10)}}</text>
|
|
|
+ <text class="promotion-title" if="{{activity.isForever!=='1'}}">活动时间:{{activity.startTime.substring(0,10)}} 至 {{activity.endTime.substring(0,10)}}</text>
|
|
|
<div class="charge-item {{currentIdx==$idx?'charge-on':''}}" for="{{activity.products}}" @click="chooseItem($item,$idx)">
|
|
|
<block if="{{$item.type=='YEAR_ORDER'}}">
|
|
|
+ <text class="limit {{currentIdx==$idx?'checked':''}}">限充{{$item.limit}}次</text>
|
|
|
<text class="title"><span>365包年</span></text>
|
|
|
<text class="desc">全站小说免费阅读</text>
|
|
|
</block>
|
|
|
<block elif="{{$item.type=='QUARTER'}}">
|
|
|
+ <text class="limit {{currentIdx==$idx?'checked':''}}">限充{{$item.limit}}次</text>
|
|
|
<text class="title"><span>98元包季</span></text>
|
|
|
<text class="desc">全站小说免费阅读</text>
|
|
|
-
|
|
|
</block>
|
|
|
<block else>
|
|
|
+ <text class="limit {{currentIdx==$idx?'checked':''}}">限充{{$item.limit}}次</text>
|
|
|
<text class="title">充<span>{{$item.price}}元</span>得<span>{{$item.total}}书币</span></text>
|
|
|
<text class="desc">多得{{$item.given}}书币</text>
|
|
|
</block>
|
|
@@ -99,10 +101,11 @@ export default {
|
|
|
return false;
|
|
|
},
|
|
|
closeMask() {
|
|
|
+ let a = 'this.token'
|
|
|
this.showPay = false;
|
|
|
},
|
|
|
async getAcitvy() {
|
|
|
- let activity = await getAcitivity(this.token);
|
|
|
+ let activity = await getAcitivity('8148bcb29074dafe1edd21dc06db9249');
|
|
|
this.activity = activity;
|
|
|
this.currentProduct = this.activity.products[0];
|
|
|
},
|
|
@@ -123,10 +126,10 @@ export default {
|
|
|
let product_id = this.currentProduct.product_id;
|
|
|
let ret = null;
|
|
|
if (cur_pay_type == 1) {
|
|
|
- ret = await configAliPay({ product_id: product_id, send_order_id: this.send_order_id });
|
|
|
+ ret = await configAliPay({ product_id: product_id, send_order_id: this.send_order_id, activity_token:this.token });
|
|
|
}
|
|
|
else {
|
|
|
- ret = await configWxPay({ product_id: product_id, send_order_id: this.send_order_id });
|
|
|
+ ret = await configWxPay({ product_id: product_id, send_order_id: this.send_order_id, activity_token:this.token});
|
|
|
}
|
|
|
// 成功支付后的回调操作
|
|
|
if (ret.code === "9000") this.showWaitingWrap(ret);
|
|
@@ -272,6 +275,27 @@ export default {
|
|
|
image {
|
|
|
width: 100%;
|
|
|
}
|
|
|
+ .charge-item{
|
|
|
+ position: relative;
|
|
|
+ .limit{
|
|
|
+ width: 100px;
|
|
|
+ height: 38px;
|
|
|
+ font-size: 20px;
|
|
|
+ line-height: 38px;
|
|
|
+ text-align: center;
|
|
|
+ background-color: #E6E6E6;
|
|
|
+ color: #B3B3B3;
|
|
|
+ border-bottom-left-radius: 10px;
|
|
|
+ border-top-right-radius: 10px;
|
|
|
+ position: absolute;
|
|
|
+ right:0;
|
|
|
+ top:0;
|
|
|
+ }
|
|
|
+ .checked{
|
|
|
+ color:#fff;
|
|
|
+ background-color: #E82B2F;
|
|
|
+ }
|
|
|
+ }
|
|
|
.rule {
|
|
|
flex-direction: column;
|
|
|
margin-top: 30px;
|