删除部分图片,增加超级会员页面功能
This commit is contained in:
@@ -45,7 +45,7 @@
|
||||
<view class="u-p-b-24"></view>
|
||||
</view>
|
||||
<view class="u-p-t-48 u-p-b-48 u-p-l-60 u-p-r-60">
|
||||
<my-button type="primary" shape="circle" @click="save">保存</my-button>
|
||||
<my-button type="primary" shape="circle" @click="save" v-if="isMainShop()">保存</my-button>
|
||||
</view>
|
||||
|
||||
<view class="bg-fff default-box-radius">
|
||||
@@ -131,7 +131,7 @@ import {
|
||||
import couponStatus from "./components/status.vue";
|
||||
import CouponList from "@/pageMarket/components/coupon-list.vue";
|
||||
import DateTimePicker from "@/pageMarket/components/date-time-picker.vue";
|
||||
|
||||
import {isMainShop} from "@/store/account.js";
|
||||
import Modal from "@/pageMarket/components/modal.vue";
|
||||
import * as couponRedemptionApi from "@/http/api/market/couponRedemption.js";
|
||||
import { saveFileFromTemp } from "@/utils/downloadFile.js";
|
||||
|
||||
@@ -16,6 +16,8 @@
|
||||
</view>
|
||||
<up-switch
|
||||
v-model="accountInfoStore.shopInfo.isProductSuggest"
|
||||
:disabled="isMainShop()?false:true"
|
||||
|
||||
size="18"
|
||||
:active-value="1"
|
||||
:inactive-value="0"
|
||||
@@ -68,12 +70,14 @@
|
||||
</view> -->
|
||||
</view>
|
||||
</view>
|
||||
<view style="height: 100rpx"></view>
|
||||
<view class="fixed-bottom">
|
||||
<my-button @click="go.to('PAGES_MARKET_COUPON_EXCHANGE_CODE_ADD')"
|
||||
>添加兑换码</my-button
|
||||
>
|
||||
</view>
|
||||
<template v-if="isMainShop()">
|
||||
<view style="height: 100rpx"></view>
|
||||
<view class="fixed-bottom">
|
||||
<my-button @click="go.to('PAGES_MARKET_COUPON_EXCHANGE_CODE_ADD')"
|
||||
>添加兑换码</my-button
|
||||
>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<Modal
|
||||
v-model="modalData.show"
|
||||
@@ -116,13 +120,14 @@ import Modal from "@/pageMarket/components/modal.vue";
|
||||
import * as couponRedemptionApi from "@/http/api/market/couponRedemption.js";
|
||||
import { useAccountInfoStore } from "@/store/account.js";
|
||||
import go from "@/commons/utils/go.js";
|
||||
import { isMainShop } from "@/store/account.js";
|
||||
const accountInfoStore = useAccountInfoStore();
|
||||
import { ref, reactive, onMounted, computed, watch } from "vue";
|
||||
const loadFinish = ref(false);
|
||||
const form = reactive({
|
||||
isEnable: 0,
|
||||
useType: "all",
|
||||
shopIdList:[]
|
||||
shopIdList: [],
|
||||
});
|
||||
|
||||
const actions = [
|
||||
@@ -223,7 +228,7 @@ const handleConfirm = async () => {
|
||||
}
|
||||
|
||||
couponRedemptionApi.enable({
|
||||
shopIdList: form.shopIdList||[],
|
||||
shopIdList: form.shopIdList || [],
|
||||
useType: form.useType,
|
||||
isEnable: form.isEnable,
|
||||
});
|
||||
@@ -261,6 +266,7 @@ function getShopInfo() {
|
||||
watch(
|
||||
() => accountInfoStore.shopInfo.isProductSuggest,
|
||||
(newVal, oldVal) => {
|
||||
if(!isMainShop()) return;
|
||||
if (!loadFinish.value) return;
|
||||
accountInfoStore.editShopInfo({
|
||||
isProductSuggest: newVal,
|
||||
|
||||
Reference in New Issue
Block a user