优化营销中心霸王餐/超级会员分店限时

This commit is contained in:
gyq
2025-12-05 16:00:51 +08:00
parent b5719c3d0c
commit 6355534a15
6 changed files with 566 additions and 634 deletions

View File

@@ -65,7 +65,7 @@
</view>
</view>
<my-bottom-btn-group @cancel="cancel" @save="editFreeDing" isOpenPermission></my-bottom-btn-group>
<my-marketing-mask name="霸王餐" v-if="isMarketShow(form)"></my-marketing-mask>
<my-marketing-mask name="霸王餐" v-if="isMarketShow(configInfo, 'shopIdList', 'enable')"></my-marketing-mask>
</view>
</template>
@@ -74,6 +74,9 @@ import { onShow, onLoad } from '@dcloudio/uni-app';
import { reactive, ref, watch } from 'vue';
import { isMainShop, isMarketShow } from '@/store/account';
import { getFreeDing, updateFreeDing } from '@/http/api/freeDing.js';
const configInfo = ref({});
const form = reactive({
rechargeTimes: 2,
rechargeThreshold: '',
@@ -96,6 +99,7 @@ onShow(() => {
*/
const getlist = async () => {
let res = await getFreeDing();
configInfo.value = res;
res.shopIdList = res.shopIdList || [];
Object.assign(form, res);
};