Commit f497badd authored by jyx's avatar jyx

优化样式

parent 8f57389e
...@@ -90,8 +90,8 @@ ...@@ -90,8 +90,8 @@
app.globalData.userId = data.idcode; app.globalData.userId = data.idcode;
saveToken(data.token) saveToken(data.token)
setTimeout(() => { setTimeout(() => {
// redirectTo('home?activiteFlag='+data.activiteFlag+"&idcode="+data.idcode); redirectTo('home?activiteFlag='+data.activiteFlag+"&idcode="+data.idcode);
redirectTo('/pagesA/vipPay/vipPay'); // redirectTo('/pagesA/vipPay/vipPay');
}, 1000); }, 1000);
} }
......
...@@ -6,16 +6,16 @@ ...@@ -6,16 +6,16 @@
mode="widthFix" /> mode="widthFix" />
<view class="section"> <view class="section">
<view class="title"> <view v-if="agreementDto != undefined" @click="handleUnsign"
自动续费管理 style="margin-top: 12rpx;margin-left: 30rpx;color: black;">自动续费管理</view>
</view>
<view class="pack-box"> <view class="pack-box">
<view class="pack-item" :class="[{active: index==selectedIndex}]" v-for='(item, index) in vipList' <view class="pack-item" :class="[{active: index==selectedIndex}]" v-for='(item, index) in vipList'
:key='index' @click="choosePack(item, index)"> :key='index' @click="choosePack(item, index)">
<view class="label" v-if="index==selectedIndex"> <view class="label">
{{ '限时减10元' }} {{ item.topTitle }}
</view> </view>
<view class="name row"> <view class="name row" :class="[{active2: index==selectedIndex}]">
{{item.title}} {{item.title}}
</view> </view>
<view class="price row" :class="[{active1: index==selectedIndex}]"> <view class="price row" :class="[{active1: index==selectedIndex}]">
...@@ -25,12 +25,13 @@ ...@@ -25,12 +25,13 @@
<view class="origin row" v-if='item.oldPrice'> <view class="origin row" v-if='item.oldPrice'>
{{item.oldPrice}} {{item.oldPrice}}
</view> </view>
<view class="cut-down" v-if='item.oldPrice-item.firstPayPrice>0'>
立省 {{item.oldPrice-item.firstPayPrice}} <view class="origin row" v-if='item.oldPrice'>
{{item.remarks }}
</view> </view>
<view class="label2" v-if="index==selectedIndex"> <view class="label2" v-if="index==selectedIndex">
{{ '仅需0.19元/天' }} {{ '仅需'+amount(item.firstPayPrice / item.days)+'元/天' }}
</view> </view>
</view> </view>
</view> </view>
...@@ -75,7 +76,8 @@ ...@@ -75,7 +76,8 @@
return { return {
vipList: [], vipList: [],
selectedIndex: 0, selectedIndex: 0,
checked: false checked: false,
agreementDto: null,
} }
}, },
methods: { methods: {
...@@ -89,10 +91,29 @@ ...@@ -89,10 +91,29 @@
this.vipList = data.list this.vipList = data.list
} }
}); });
this.post({
url: '/vip/getOrderList',
showLoading: false,
success: ({
data
}) => {
this.agreementDto = data.agreement;
}
});
}, },
choosePack(item, index) { choosePack(item, index) {
this.selectedIndex = index; this.selectedIndex = index;
}, },
handleUnsign() {
if (this.agreementDto) {
let params = JSON.stringify(this.agreementDto)
navigateTo(`/pagesA/unsign/unsign?params=` + params)
}
},
amount(value) {
return value.toFixed(2)
},
handlePay() { handlePay() {
if (!this.checked) { if (!this.checked) {
message.notify("请阅读《连续订阅服务协议》与《支付协议》后勾选同意") message.notify("请阅读《连续订阅服务协议》与《支付协议》后勾选同意")
...@@ -207,12 +228,12 @@ ...@@ -207,12 +228,12 @@
border: 4rpx solid #EAECEC; border: 4rpx solid #EAECEC;
border-radius: 20rpx; border-radius: 20rpx;
position: relative; position: relative;
padding-top: 60rpx; padding-top: 50rpx;
.row { .row {
display: flex; display: flex;
align-items: center; align-items: center;
margin: 8rpx 15rpx; margin: 4rpx 15rpx;
marign-bottom: 0; marign-bottom: 0;
} }
...@@ -223,7 +244,7 @@ ...@@ -223,7 +244,7 @@
.name { .name {
font-size: 26rpx; font-size: 26rpx;
font-weight: 700; font-weight: 700;
color: #333; color: #000000;
} }
...@@ -237,15 +258,21 @@ ...@@ -237,15 +258,21 @@
color: #fd5350; color: #fd5350;
} }
.active2 {
color: #6D301D;
}
.origin { .origin {
font-size: 22rpx; font-size: 22rpx;
color: #333; text-align: center;
color: #676666;
text-decoration: line-through; text-decoration: line-through;
} }
.label { .label {
border-radius: 20rpx 0 20rpx 0; border-radius: 20rpx 0 20rpx 0;
width: 70%; width: 80%;
background: linear-gradient(90deg, #FC4F3B, #FBCB7A); background: linear-gradient(90deg, #FC4F3B, #FBCB7A);
color: white; color: white;
font-size: 24rpx; font-size: 24rpx;
......
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