删除部分图片,增加超级会员页面功能
This commit is contained in:
@@ -38,7 +38,7 @@
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<view class="u-p-t-48 u-p-b-48 u-p-l-60 u-p-r-60">
|
||||
<view class="u-p-t-48 u-p-b-48 u-p-l-60 u-p-r-60" v-if="isMainShop()">
|
||||
<my-button type="primary" shape="circle" @click="save">保存</my-button>
|
||||
</view>
|
||||
|
||||
@@ -124,7 +124,7 @@ import {
|
||||
} from "@dcloudio/uni-app";
|
||||
import couponStatus from "./components/status.vue";
|
||||
import CouponList from "@/pageMarket/components/coupon-list.vue";
|
||||
|
||||
import {isMainShop} from "@/store/account.js";
|
||||
import Modal from "@/pageMarket/components/modal.vue";
|
||||
import * as rechargeRedemptionApi from "@/http/api/market/rechargeRedemption.js";
|
||||
import { saveFileFromTemp } from "@/utils/downloadFile.js";
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
<up-switch
|
||||
v-model="accountInfoStore.shopInfo.isProductSuggest"
|
||||
size="18"
|
||||
:disabled="isMainShop()?false:true"
|
||||
:active-value="1"
|
||||
:inactive-value="0"
|
||||
></up-switch>
|
||||
@@ -81,12 +82,15 @@
|
||||
</view> -->
|
||||
</view>
|
||||
</view>
|
||||
<view style="height: 100rpx"></view>
|
||||
<template v-if="isMainShop()">
|
||||
<view style="height: 100rpx"></view>
|
||||
<view class="fixed-bottom">
|
||||
<my-button @click="go.to('PAGES_MARKET_RECHARGE_EXCHANGE_CODE_ADD')"
|
||||
>添加兑换码</my-button
|
||||
>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
|
||||
<Modal
|
||||
v-model="modalData.show"
|
||||
@@ -129,6 +133,7 @@ import Modal from "@/pageMarket/components/modal.vue";
|
||||
import * as rechargeRedemptionApi from "@/http/api/market/rechargeRedemption.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);
|
||||
@@ -274,6 +279,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