1、修改按钮颜色整体统一。2、选择不同类型卡的时候 有效期要跟着变化

This commit is contained in:
77 2024-11-06 11:18:14 +08:00
parent 4c2de20b28
commit df9db63461
2 changed files with 9 additions and 2 deletions

View File

@ -90,7 +90,7 @@
</button>
<button
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"
>
去结算
@ -216,6 +216,8 @@
line-height: 28rpx;
font-weight: 500;
border-radius: 40rpx;
background:#e93422;
color:white;
}
}

View File

@ -60,7 +60,7 @@
<!-- <text class="t1" v-if="userInfo.activate == 1">试用会员</text> -->
<text class="t1" 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>
<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"
@ -101,10 +101,12 @@
import sheep from '@/sheep';
const statusBarHeight = sheep.$platform.device.statusBarHeight * 2;
const userInfo = computed(() => sheep.$store('user').userInfo);
const vipList = ref([]);
const vipList2 = ref([]);
const valVip = ref(88888);
const nameVip = ref([]);
const timeAute = ref(sheep.$helper.timeFormat(userInfo.cardExpirationTime, 'yyyy-mm-dd'));
//
function getList() {
request({
@ -127,6 +129,9 @@
function vipFun(index, name) {
valVip.value = index
data.cardName = name
timeAute.value = sheep.$helper.timeFormat(vipList.value[index].cardExpirationTime, 'yyyy-mm-dd');
console.log(userInfo.cardExpirationTime,"userInfo.cardExpirationTime")
}
// beclick