Commit 30bde367 authored by jyx's avatar jyx

更新小程序跳转页面样式

parent 4800fac0
...@@ -17,13 +17,22 @@ ...@@ -17,13 +17,22 @@
</view> </view>
<view v-else class="show-mask flex-v" @click="getVipParams"> <view v-else class="show-mask flex-v" @click="getVipParams">
<image style="width: 100%;margin-top: 200rpx;margin-bottom: 150rpx;" mode="widthFix" <image style="width: 100%;margin-top: 200rpx;margin-bottom: 150rpx;z-index: 2;" mode="widthFix"
src="https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg/img/bg_book_redpkg.png"> src="https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg/img/bg_book_redpkg.png">
</image> </image>
<image class="heart" src="https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg/img/bg_book_vedio_next.png" <image v-if="!isVip" class="heart"
mode="widthFix"> src="https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg/img/bg_book_vedio_next.png" mode="widthFix">
</image> </image>
<button v-else open-type="launchApp" app-parameter="wechat" @click.stop="" class="heart-btn">
<image src="https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg/img/bg_book_vedio_toapp.png" mode="widthFix">
</image>
</button>
<image class="mask-bg" mode="scaleToFill"
src="https://mints-pkg.oss-cn-beijing.aliyuncs.com/pkg/img/bg_book_main.png">
</image>
<view class="mask-bottom-bg"> </view>
</view> </view>
</template> </template>
...@@ -51,12 +60,12 @@ ...@@ -51,12 +60,12 @@
sourceType: '', sourceType: '',
slotParam: '', slotParam: '',
vipList: [], vipList: [],
appName: '河狸小故事' appName: '河狸小故事',
isVip: false
} }
}, },
onLoad(options) { onLoad(options) {
this.tips1 = options.tips1; this.tips1 = options.tips1;
}, },
onShow(options) { onShow(options) {
this.ttLoging() this.ttLoging()
...@@ -107,19 +116,21 @@ ...@@ -107,19 +116,21 @@
// 'A5CFAE67AF32E71D10CA6127546E82C20A8DE7C0EAAA5697BEEC2AC2E333F9945F433703067DF5142735505C42F58997' // 'A5CFAE67AF32E71D10CA6127546E82C20A8DE7C0EAAA5697BEEC2AC2E333F9945F433703067DF5142735505C42F58997'
// ) // )
// that.handlePay() // that.handlePay()
if (data.activiteFlag == 101) { if (data.activiteFlag == 101) {
that.handlePay() if (data.expireTime > 0) {
that.isVip = true
} else {
that.isVip = false
that.handlePay()
}
} else { } else {
setTimeout(() => { setTimeout(() => {
redirectTo('home?activiteFlag=' + data redirectTo('home?activiteFlag=' + data
.activiteFlag + "&idcode=" + data.idcode); .activiteFlag + "&idcode=" + data.idcode);
}, 1000); }, 1000);
} }
} }
}); });
}, },
...@@ -140,6 +151,10 @@ ...@@ -140,6 +151,10 @@
}); });
}, },
getVipParams() { getVipParams() {
if (this.isVip) {
return
}
let that = this; let that = this;
if (that.vipList != null && that.vipList.length > 0) { if (that.vipList != null && that.vipList.length > 0) {
let vipBean = that.vipList[0]; let vipBean = that.vipList[0];
...@@ -277,15 +292,36 @@ ...@@ -277,15 +292,36 @@
.show-mask { .show-mask {
width: 100%; width: 100%;
height: 100%; height: 100%;
background: rgba(0, 0, 0, 0.6);
align-items: center; align-items: center;
} }
.mask-bg {
position: absolute;
width: 100%;
height: 100%;
z-index: 0;
}
.mask-bottom-bg {
position: absolute;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.6);
}
/* 应用动画到心形图案 */ /* 应用动画到心形图案 */
.heart { .heart {
position: relative; position: relative;
width: 70%; width: 70%;
// height: 66px; z-index: 2;
animation: heartbeat 1s infinite;
}
.heart-btn {
position: relative;
width: 100%;
z-index: 2;
background: none;
animation: heartbeat 1s infinite; animation: heartbeat 1s infinite;
} }
......
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