1、修改按钮颜色整体统一。2、选择不同类型卡的时候 有效期要跟着变化
This commit is contained in:
parent
4c2de20b28
commit
df9db63461
@ -90,7 +90,7 @@
|
|||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
v-else
|
v-else
|
||||||
class="ss-reset-button ui-BG-Main-Gradient pay-btn ui-Shadow-Main"
|
class="ss-reset-button pay-btn ui-Shadow-Main"
|
||||||
@tap="onConfirm"
|
@tap="onConfirm"
|
||||||
>
|
>
|
||||||
去结算
|
去结算
|
||||||
@ -216,6 +216,8 @@
|
|||||||
line-height: 28rpx;
|
line-height: 28rpx;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
border-radius: 40rpx;
|
border-radius: 40rpx;
|
||||||
|
background:#e93422;
|
||||||
|
color:white;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -60,7 +60,7 @@
|
|||||||
<!-- <text class="t1" v-if="userInfo.activate == 1">试用会员</text> -->
|
<!-- <text class="t1" v-if="userInfo.activate == 1">试用会员</text> -->
|
||||||
<text class="t1" v-if="!userInfo.activate">开通会员</text>
|
<text class="t1" v-if="!userInfo.activate">开通会员</text>
|
||||||
<text class="t2" v-if="userInfo.activate">有效期至</text>
|
<text class="t2" v-if="userInfo.activate">有效期至</text>
|
||||||
<text class="t3" v-if="userInfo.activate">{{ sheep.$helper.timeFormat(userInfo.cardExpirationTime, 'yyyy-mm-dd') }}</text>
|
<text class="t3" v-if="userInfo.activate">{{ timeAute }}</text>
|
||||||
</view>
|
</view>
|
||||||
<scroll-view class="scroll-view_H" scroll-x="true" @scroll="scroll" scroll-left="120">
|
<scroll-view class="scroll-view_H" scroll-x="true" @scroll="scroll" scroll-left="120">
|
||||||
<view id="demo1" @click="vipFun(index,item.name)" class="scroll-view-item_H uni-bg-red"
|
<view id="demo1" @click="vipFun(index,item.name)" class="scroll-view-item_H uni-bg-red"
|
||||||
@ -101,10 +101,12 @@
|
|||||||
import sheep from '@/sheep';
|
import sheep from '@/sheep';
|
||||||
const statusBarHeight = sheep.$platform.device.statusBarHeight * 2;
|
const statusBarHeight = sheep.$platform.device.statusBarHeight * 2;
|
||||||
const userInfo = computed(() => sheep.$store('user').userInfo);
|
const userInfo = computed(() => sheep.$store('user').userInfo);
|
||||||
|
|
||||||
const vipList = ref([]);
|
const vipList = ref([]);
|
||||||
const vipList2 = ref([]);
|
const vipList2 = ref([]);
|
||||||
const valVip = ref(88888);
|
const valVip = ref(88888);
|
||||||
const nameVip = ref([]);
|
const nameVip = ref([]);
|
||||||
|
const timeAute = ref(sheep.$helper.timeFormat(userInfo.cardExpirationTime, 'yyyy-mm-dd'));
|
||||||
// 定义方法
|
// 定义方法
|
||||||
function getList() {
|
function getList() {
|
||||||
request({
|
request({
|
||||||
@ -127,6 +129,9 @@
|
|||||||
function vipFun(index, name) {
|
function vipFun(index, name) {
|
||||||
valVip.value = index
|
valVip.value = index
|
||||||
data.cardName = name
|
data.cardName = name
|
||||||
|
timeAute.value = sheep.$helper.timeFormat(vipList.value[index].cardExpirationTime, 'yyyy-mm-dd');
|
||||||
|
|
||||||
|
console.log(userInfo.cardExpirationTime,"userInfo.cardExpirationTime")
|
||||||
}
|
}
|
||||||
|
|
||||||
// beclick
|
// beclick
|
||||||
|
Loading…
Reference in New Issue
Block a user