Commit 4924ef47 by zhangzhen

优化

parent c0c6a222
...@@ -41,6 +41,9 @@ ...@@ -41,6 +41,9 @@
<view v-for="(item,k) in rechargeConfList" :key="k" class="flex-col item" <view v-for="(item,k) in rechargeConfList" :key="k" class="flex-col item"
@tap="onRechargeChange(k)"> @tap="onRechargeChange(k)">
<image class="amount-bg" :src="assetsPath+'/vip/amount_bg.png'" mode="widthFix"></image> <image class="amount-bg" :src="assetsPath+'/vip/amount_bg.png'" mode="widthFix"></image>
<view class="absolute absolute-1">
<text>特惠充值</text>
</view>
<view class="flex-col item-content" :class="rechargeIndex === k?'active':''"> <view class="flex-col item-content" :class="rechargeIndex === k?'active':''">
<view v-if="item.giveType.includes('1')" class="preferential"> <view v-if="item.giveType.includes('1')" class="preferential">
<text>{{item.giveAmount}}小时</text> <text>{{item.giveAmount}}小时</text>
...@@ -85,8 +88,8 @@ ...@@ -85,8 +88,8 @@
<view class="flex-3"> <view class="flex-3">
<view class="flex-row"> <view class="flex-row">
<text class="text-1"></text> <text class="text-1"></text>
<text class="text-2">99.</text> <text class="text-2">{{equityAmountList[0]}}.</text>
<text class="text-3">00</text> <text class="text-3">{{equityAmountList[1]}}</text>
</view> </view>
<view class="cu-btn-box" @tap="onSubmit"> <view class="cu-btn-box" @tap="onSubmit">
<button class="cu-btn" <button class="cu-btn"
...@@ -100,8 +103,7 @@ ...@@ -100,8 +103,7 @@
<checkbox class='round yellow' :class="checked?'checked':''" :checked="checked" <checkbox class='round yellow' :class="checked?'checked':''" :checked="checked"
value="checked" style="transform: scale(0.6);"></checkbox> value="checked" style="transform: scale(0.6);"></checkbox>
</checkbox-group> </checkbox-group>
<text>我已阅读</text><text class="text-pink" @tap="onNavToRule2">用户充值协议</text><text>, <text>我已阅读</text><text class="text-pink" @tap="onNavToRule2">用户充值协议</text><text>,并同意协议内容</text>
并同意协议内容</text>
</view> </view>
</view> </view>
</view> </view>
...@@ -147,7 +149,7 @@ ...@@ -147,7 +149,7 @@
</view> </view>
</view> </view>
<view class="look-prefer-nav"> <view class="look-prefer-nav" @tap="onNavToRule3">
<text class="text-title">点击可查看权益详情</text> <text class="text-title">点击可查看权益详情</text>
<image class="img" :src="assetsPath+'/vip/icon_right.png'" mode="widthFix"></image> <image class="img" :src="assetsPath+'/vip/icon_right.png'" mode="widthFix"></image>
</view> </view>
...@@ -170,6 +172,7 @@ ...@@ -170,6 +172,7 @@
</template> </template>
<script> <script>
import moment from "@/common/moment.js";
import fTabbar from '@/components/module/f-tabbar/f-tabbar'; import fTabbar from '@/components/module/f-tabbar/f-tabbar';
import { import {
equityMembersList, equityMembersList,
...@@ -200,6 +203,7 @@ ...@@ -200,6 +203,7 @@
rechargeIndex: 0, rechargeIndex: 0,
index: 0, index: 0,
consumerMemberStatus: false, consumerMemberStatus: false,
equityAmountList:[],
preferList: [{ preferList: [{
iconUrl: config.assetsPath + "/vip/p_1.png", iconUrl: config.assetsPath + "/vip/p_1.png",
title: "会员价", title: "会员价",
...@@ -287,6 +291,8 @@ ...@@ -287,6 +291,8 @@
console.log(res, 999999) console.log(res, 999999)
if (res.data.code == 200 && res.data.rows) { if (res.data.code == 200 && res.data.rows) {
this.list = res.data.rows this.list = res.data.rows
this.equityAmountList = Number(this.list[0].requiredAmount).toFixed(2).toString().split('.');
console.log(this.equityAmountList,9999)
} }
this.onGetUserInfo(); this.onGetUserInfo();
}) })
...@@ -310,6 +316,7 @@ ...@@ -310,6 +316,7 @@
this.checked = false; this.checked = false;
}, },
onSubmit() { onSubmit() {
if(this.consumerMemberStatus) return;
if (!this.checked) { if (!this.checked) {
uni.showToast({ uni.showToast({
icon: "none", icon: "none",
...@@ -369,6 +376,11 @@ ...@@ -369,6 +376,11 @@
url: "/setting/rule/rule?keyData=user_pay_protocol" url: "/setting/rule/rule?keyData=user_pay_protocol"
}) })
}, },
onNavToRule3(){
uni.navigateTo({
url: "/setting/rule/rule?keyData=user_equity_details"
})
},
onNavToRecharge() { onNavToRecharge() {
if (!this.checked) { if (!this.checked) {
uni.showToast({ uni.showToast({
...@@ -557,13 +569,29 @@ ...@@ -557,13 +569,29 @@
} }
.list-box { .list-box {
position: relative;
display: flex; display: flex;
flex: 1; flex: 1;
width: 100%; width: 100%;
padding: 0 1%; padding: 0 1%;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
.absolute-1{
display: flex;
justify-content: center;
align-items: center;
top: -14upx;
left: -8upx;
width: 96rpx;
height: 28rpx;
background: linear-gradient(90deg, #FF7800, #FF0000);
border-radius: 6rpx;
z-index: 8;
text{
font-size: 18rpx;
color: #FFFFFF;
}
}
.item { .item {
position: relative; position: relative;
display: flex; display: flex;
......
static/tab-bar-img/vip.png

5.97 KB | W: | H:

static/tab-bar-img/vip.png

7.61 KB | W: | H:

static/tab-bar-img/vip.png
static/tab-bar-img/vip.png
static/tab-bar-img/vip.png
static/tab-bar-img/vip.png
  • 2-up
  • Swipe
  • Onion skin
static/tab-bar-img/vip_selected.png

8.87 KB | W: | H:

static/tab-bar-img/vip_selected.png

11.5 KB | W: | H:

static/tab-bar-img/vip_selected.png
static/tab-bar-img/vip_selected.png
static/tab-bar-img/vip_selected.png
static/tab-bar-img/vip_selected.png
  • 2-up
  • Swipe
  • Onion skin
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