This commit is contained in:
YeMingfei666 2024-11-19 11:36:59 +08:00
commit 7f19b6b586
2 changed files with 12 additions and 7 deletions

View File

@ -512,7 +512,7 @@
totalAmount: 0, totalAmount: 0,
}) })
const isVip=computed(()=>{ const isVip=computed(()=>{
return $shop.isVip&& user.value&&user.value.id&&user.value.isVip return $shop.isMemberPrice&& user.value&&user.value.id&&user.value.isVip
}) })
const goodsPrice = computed(() => { const goodsPrice = computed(() => {
const goodsTotalPrice = goods.list.reduce((prve, cur) => { const goodsTotalPrice = goods.list.reduce((prve, cur) => {
@ -551,12 +551,17 @@
records, records,
seatFee seatFee
} = await Api.getCart(par) } = await Api.getCart(par)
let useType=''
if (seatFee && seatFee.useType) { if (seatFee && seatFee.useType) {
$storageManage.useType(seatFee.useType) useType=seatFee.useType
// uni.setStorageSync('useType',seatFee.useType); $storageManage.useType(useType)
eatTypes.active = seatFee.useType == 'takeout' ? seatFee.useType : seatFee.useType.replace( }else{
/-after|-before/g, ''); useType=records[0].info[0].useType
$storageManage.useType(useType)
} }
console.log(useType);
eatTypes.active =useType == 'takeout' ? useType : useType.replace(
/-after|-before/g, '');
goods.list = getNowCart(records) goods.list = getNowCart(records)
if (seatFee && seatFee.totalNumber) { if (seatFee && seatFee.totalNumber) {
userNumbers.defaultCateIndex = seatFee.totalNumber - 1 || 0 userNumbers.defaultCateIndex = seatFee.totalNumber - 1 || 0

View File

@ -1,9 +1,9 @@
<template> <template>
<my-model ref="model" :title="title" iconColor="#000" @close="resetForm"> <my-model ref="model" :title="title" iconColor="#000" @close="resetForm">
<template #desc> <template #desc>
<view class="u-text-left u-p-30 color-666"> <view class="u-text-left u-p-30 color-666 u-font-28">
<view class="u-m-t-32 u-flex "> <view class="u-m-t-32 u-flex ">
<view class="u-m-l-32" v-if="accountPoints.calcRes.usable"> <view class="" v-if="accountPoints.calcRes.usable">
<text class="color-red">*</text> <text class="color-red">*</text>
<text class="" <text class=""
v-if="accountPoints.calcRes.equivalentPoints">100积分等于{{to2(accountPoints.calcRes.equivalentPoints*100)}},</text> v-if="accountPoints.calcRes.equivalentPoints">100积分等于{{to2(accountPoints.calcRes.equivalentPoints*100)}},</text>