This commit is contained in:
parent
ba4b56efd8
commit
fa124f5cd1
|
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<view class="content">
|
<view class="content">
|
||||||
<view class="bgbox" style="" v-if="vipData!='1'">
|
<view class="bgbox" style="" v-if="vipData.isVip!='1'">
|
||||||
<view class="bgbox-top">
|
<view class="bgbox-top">
|
||||||
<image src="../../static/vip/banner9.jpg" mode=""></image>
|
<image src="../../static/vip/banner9.jpg" mode=""></image>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -12,7 +12,20 @@
|
||||||
<view class="text-center flex flex-direction justify-between padding-tb radius"
|
<view class="text-center flex flex-direction justify-between padding-tb radius"
|
||||||
:class="selNum == item.id?'active': 'noactive'">
|
:class="selNum == item.id?'active': 'noactive'">
|
||||||
<view class="text-bold" style="font-size: 36rpx;">{{item.vipName}}</view>
|
<view class="text-bold" style="font-size: 36rpx;">{{item.vipName}}</view>
|
||||||
<view class="text-bold" style="font-size: 30rpx;"> <text class="text-xxl" style="font-size: 37rpx;margin-left:-10rpx;color: #D33232;"><text style="font-size: 14px;">¥</text>{{item.money}}</text></view>
|
<view class="text-bold text-money" style="font-size: 30rpx;">
|
||||||
|
<text class="text-xxl" style="font-size: 37rpx;margin-left:-10rpx;color: #D33232;">
|
||||||
|
<text style="font-size: 14px;">
|
||||||
|
¥
|
||||||
|
</text>
|
||||||
|
{{item.money}}
|
||||||
|
</text>
|
||||||
|
<text v-if="item.oldMoney" class="text-xxl" style="font-size: 13px;margin-left:-10rpx;color: #848484;text-decoration-line: line-through;">
|
||||||
|
<text style="font-size: 13px;">
|
||||||
|
¥
|
||||||
|
</text>
|
||||||
|
{{item.oldMoney}}
|
||||||
|
</text>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -28,12 +41,12 @@
|
||||||
<!-- 协议地址 -->
|
<!-- 协议地址 -->
|
||||||
<navigator url="/pages/my/hyXy" open-type="navigate" style="color: #019c88;">《会员协议》</navigator>
|
<navigator url="/pages/my/hyXy" open-type="navigate" style="color: #019c88;">《会员协议》</navigator>
|
||||||
</view>
|
</view>
|
||||||
<view class="quanyi-line"><image style="width:100%;height:180px;object-fit: contain;" src="../../static/vip/Equity4.png"></image></view>
|
<!-- <view class="quanyi-line"><image style="width:100%;height:180px;object-fit: contain;" src="../../static/vip/Equity4.png"></image></view> -->
|
||||||
<view class="quanyi_titname">~VIP超值权益~</view>
|
<view class="quanyi_titname">~VIP超值权益~</view>
|
||||||
<view class="quanyi_itemview" style="margin-bottom: 60rpx;">
|
<view class="quanyi_itemview" style="margin-bottom: 60rpx;">
|
||||||
<view class="quanyi_listitem">
|
<view class="quanyi_listitem">
|
||||||
<image src="../../static/vip/Equity2.png"></image>
|
<image src="../../static/vip/Equity2.png"></image>
|
||||||
<view class="listitem_name">会员优享价</view>
|
<view class="listitem_name">会员优享{{rateStr}}折</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="quanyi_listitem">
|
<view class="quanyi_listitem">
|
||||||
<image src="../../static/vip/Equity1.png"></image>
|
<image src="../../static/vip/Equity1.png"></image>
|
||||||
|
|
@ -63,7 +76,7 @@
|
||||||
<view class="quanyi_itemview" style="margin-bottom: 60rpx;">
|
<view class="quanyi_itemview" style="margin-bottom: 60rpx;">
|
||||||
<view class="quanyi_listitem">
|
<view class="quanyi_listitem">
|
||||||
<image src="../../static/vip/Equity2.png"></image>
|
<image src="../../static/vip/Equity2.png"></image>
|
||||||
<view class="listitem_name">会员优享价</view>
|
<view class="listitem_name">会员优享{{rateStrs}}折</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="quanyi_listitem">
|
<view class="quanyi_listitem">
|
||||||
<image src="../../static/vip/Equity1.png"></image>
|
<image src="../../static/vip/Equity1.png"></image>
|
||||||
|
|
@ -134,7 +147,8 @@
|
||||||
vipData:[],
|
vipData:[],
|
||||||
vipShow:false,
|
vipShow:false,
|
||||||
rateStr:'',
|
rateStr:'',
|
||||||
vipNameType:''
|
vipNameType:'',
|
||||||
|
rateStrs:''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
|
|
@ -196,7 +210,8 @@
|
||||||
var data= res.data.endTime||{};
|
var data= res.data.endTime||{};
|
||||||
this.$queue.setData('isVIP',res.data.isVip);
|
this.$queue.setData('isVIP',res.data.isVip);
|
||||||
this.vipNameType=res.data.vipNameType
|
this.vipNameType=res.data.vipNameType
|
||||||
this.vipData=res.data.isVip;
|
this.vipData=res.data;
|
||||||
|
this.rateStrs=res.data.vipDetails.rate/10
|
||||||
console.log("isVIP------------------->",this.vipData)
|
console.log("isVIP------------------->",this.vipData)
|
||||||
this.timeVipEnd = data.slice(0,16);
|
this.timeVipEnd = data.slice(0,16);
|
||||||
this.getVipList(res.data.vipNameType)
|
this.getVipList(res.data.vipNameType)
|
||||||
|
|
@ -326,6 +341,11 @@
|
||||||
type: 2
|
type: 2
|
||||||
}).then(red => {
|
}).then(red => {
|
||||||
if (red.code == 0) {
|
if (red.code == 0) {
|
||||||
|
uni.hideLoading();
|
||||||
|
uni.showToast({
|
||||||
|
title: '开通成功!'
|
||||||
|
})
|
||||||
|
that.getIsVip()
|
||||||
that.callPay(red.data);
|
that.callPay(red.data);
|
||||||
} else {
|
} else {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
|
|
@ -340,6 +360,11 @@
|
||||||
type: 4
|
type: 4
|
||||||
}).then(red => {
|
}).then(red => {
|
||||||
if (red.code == 0) {
|
if (red.code == 0) {
|
||||||
|
uni.hideLoading();
|
||||||
|
uni.showToast({
|
||||||
|
title: '开通成功!'
|
||||||
|
})
|
||||||
|
that.getIsVip()
|
||||||
const urlArr = window.location.href;
|
const urlArr = window.location.href;
|
||||||
const hostUrl = urlArr.split("/");
|
const hostUrl = urlArr.split("/");
|
||||||
const callBack = hostUrl[0] + "//" + hostUrl[2] + "/";
|
const callBack = hostUrl[0] + "//" + hostUrl[2] + "/";
|
||||||
|
|
@ -361,6 +386,11 @@
|
||||||
type: 1
|
type: 1
|
||||||
}).then(red => {
|
}).then(red => {
|
||||||
if (red.code == 0) {
|
if (red.code == 0) {
|
||||||
|
uni.hideLoading();
|
||||||
|
uni.showToast({
|
||||||
|
title: '开通成功!'
|
||||||
|
})
|
||||||
|
that.getIsVip()
|
||||||
console.log(JSON.stringify(red))
|
console.log(JSON.stringify(red))
|
||||||
that.setPayment('wxpay', JSON.stringify(red
|
that.setPayment('wxpay', JSON.stringify(red
|
||||||
.data));
|
.data));
|
||||||
|
|
@ -379,6 +409,11 @@
|
||||||
classify: 2
|
classify: 2
|
||||||
}).then(red => {
|
}).then(red => {
|
||||||
if (red.code == 0) {
|
if (red.code == 0) {
|
||||||
|
uni.hideLoading();
|
||||||
|
uni.showToast({
|
||||||
|
title: '开通成功!'
|
||||||
|
})
|
||||||
|
that.getIsVip()
|
||||||
const div = document.createElement('div')
|
const div = document.createElement('div')
|
||||||
div.innerHTML = red.data //此处form就是后台返回接收到的数据
|
div.innerHTML = red.data //此处form就是后台返回接收到的数据
|
||||||
document.body.appendChild(div)
|
document.body.appendChild(div)
|
||||||
|
|
@ -397,6 +432,11 @@
|
||||||
classify: 1
|
classify: 1
|
||||||
}).then(red => {
|
}).then(red => {
|
||||||
if (red.code == 0) {
|
if (red.code == 0) {
|
||||||
|
uni.hideLoading();
|
||||||
|
uni.showToast({
|
||||||
|
title: '开通成功!'
|
||||||
|
})
|
||||||
|
that.getIsVip()
|
||||||
that.setPayment('alipay', red.data);
|
that.setPayment('alipay', red.data);
|
||||||
} else {
|
} else {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
|
|
@ -414,10 +454,10 @@
|
||||||
console.log(res.data)
|
console.log(res.data)
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
this.isVip = true
|
this.isVip = true
|
||||||
this.getIsVip()
|
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '开通成功!'
|
title: '开通成功!'
|
||||||
})
|
})
|
||||||
|
that.getIsVip()
|
||||||
// setTimeout(function() {
|
// setTimeout(function() {
|
||||||
// uni.navigateBack()
|
// uni.navigateBack()
|
||||||
// },1000)
|
// },1000)
|
||||||
|
|
@ -514,7 +554,13 @@
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss" scoped>
|
||||||
|
.text-money{
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
.quanyi-line{
|
.quanyi-line{
|
||||||
width: 95%;
|
width: 95%;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue