优化营销中心霸王餐/超级会员分店限时
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user