10 次代碼提交 009aaa855e ... d099fd69c4

作者 SHA1 備註 提交日期
  calm d099fd69c4 优化微信登录提示 2 周之前
  HHE-5476 0333a00d10 过审隐藏钱包余额显示 2 周之前
  HHE-5476 5c017cab6c Merge branch 'dev_v3' of http://git.dgtis.com/armg/wxapp_shuibei into dev_v3 2 周之前
  HHE-5476 83b6d9e65f 更换控制审核字段storeAuditModeEnabled 2 周之前
  ext.liuqiwen3 69b92298b5 Merge branch 'dev_v3_lqw' into dev_v3 2 周之前
  ext.liuqiwen3 238c453d8e Merge branch 'dev_v3_lqw' into dev_v3 3 周之前
  ext.liuqiwen3 8533efb361 Merge branch 'dev_v3_lqw' into dev_v3 3 周之前
  HHE-5476 00c930a3c8 修改我的页面功能展示列表 3 周之前
  HHE-5476 097b14abff Merge branch 'dev_v3' of http://git.dgtis.com/armg/wxapp_shuibei into dev_v3 3 周之前
  HHE-5476 3b6beb2c9d 更改类目bug 3 周之前

+ 4 - 4
config/app.js

@@ -1,17 +1,17 @@
-// let domain = "https://www.shuibeibyg.com/front-api"; // 正式环境IP
+let domain = "https://www.shuibeibyg.com/front-api"; // 正式环境IP
 // let domain = "https://test.shuibeibyg.com/front-api"; // 测试环境IP
 // let domain = 'http://192.168.100.199:8081' // 晋守桦IP
 // let domain = 'http://192.168.100.246:8081' // 韩朝龙IP
-let domain = "http://192.168.3.29:8081"; // 宏广IP
+// let domain = "http://192.168.3.29:8081"; // 宏广IP
 let share = "https://www.shuibeibyg.com";
 
 let imgUrl =
   "https://sb-admin.oss-cn-shenzhen.aliyuncs.com/shuibei-mini/new-mini/"; //服務器上图片地址
 
-export const H5_BASE_URL = "http://192.168.3.10:5174"; // 本地测试
+// export const H5_BASE_URL = "http://192.168.3.10:5174"; // 本地测试
 // export const H5_BASE_URL = "http://192.168.100.35:5175"; // 本地测试
 // export const H5_BASE_URL = "https://test.shuibeibyg.com/web-h5/"; // 测试环境H5地址
-// export const H5_BASE_URL = "https://www.shuibeibyg.com/web-h5/"; // 正式环境H5地址
+export const H5_BASE_URL = "https://www.shuibeibyg.com/web-h5/"; // 正式环境H5地址
 
 // PC 后台 API 地址(用于上传图片)
 export const HTTP_ADMIN_URL = domain;

+ 1 - 1
pages/merchantCenter/index.vue

@@ -271,7 +271,7 @@
 	// 页面加载
 	onShow(() => {
 		console.log(appStore.userInfo)
-		kcglShow.value = appStore?.$wxConfig?.auditModeEnabled;
+		kcglShow.value = appStore?.$wxConfig?.storeAuditModeEnabled;
 		merchantInfo.value = appStore.userInfo.merchant;
 		if (appStore.merchantId || appStore.userInfo?.merchant?.id) {
 			wdsyShow.value = true;

+ 24 - 24
pages/merchantCenters/releaseProduct.vue

@@ -13,12 +13,12 @@
 					</template>
 				</up-form-item>
 
-				<!-- 商类目 -->
-				<view class="card-title" v-if="!isProductCenter">商类目</view>
-				<up-form-item class="form-item" label="商类目" prop="merchantCategoryId" :borderBottom="false"
+				<!-- 商类目 -->
+				<view class="card-title" v-if="!isProductCenter">商类目</view>
+				<up-form-item class="form-item" label="商类目" prop="merchantCategoryId" :borderBottom="false"
 					@click="showMerchantCategory = true" :required="true" v-if="!isProductCenter">
 					<up-input v-model="formData.merchantCategoryDisplayName" disabled disabledColor="#ffffff"
-						placeholder="请选择商类目" inputAlign="right" border="none"></up-input>
+						placeholder="请选择商类目" inputAlign="right" border="none"></up-input>
 					<template #right>
 						<up-icon name="arrow-right"></up-icon>
 					</template>
@@ -287,7 +287,7 @@
 			</view>
 		</up-popup>
 
-		<!-- 商类目选择弹窗 -->
+		<!-- 商类目选择弹窗 -->
 		<up-popup
 		    :show="showMerchantCategory"
 		    @close="showMerchantCategory = false"
@@ -297,7 +297,7 @@
 		>
 		  <view class="popup-content">
 		    <view class="popup-header">
-		      <text class="popup-title">选择商类目</text>
+		      <text class="popup-title">选择商类目</text>
 		    </view>
 
 		    <category-selector
@@ -374,8 +374,8 @@
 	const formData = ref({
 		categoryIds: [], // 选中的分类ID数组
 		categoryDisplayName: '', // 显示的分类名称
-		merchantCategoryId: [], // 选中的商类目ID数组(单选:长度始终为1)
-		merchantCategoryDisplayName: '', // 显示的商类目名称
+		merchantCategoryId: [], // 选中的商类目ID数组(单选:长度始终为1)
+		merchantCategoryDisplayName: '', // 显示的商类目名称
 		tempName: '', // 显示的运费模板名称
 		tempIds: [],
 		storeName: '',
@@ -407,7 +407,7 @@
 	const categoryData = ref([]);
 	const categoryRef = ref();
 
-	// 商类目相关
+	// 商类目相关
 	const showMerchantCategory = ref(false);
 	const merchantCategoryData = ref([]);
 	const merchantCategoryRef = ref();
@@ -464,7 +464,7 @@
 			type: 'array',
 			required: true,
 			len: 1,
-			message: '请选择一个商类目',
+			message: '请选择一个商类目',
 			trigger: ['blur','change']
 		},
 		storeName: {
@@ -590,22 +590,22 @@
 		}
 	}
 
-	// 获取商类目列表
+	// 获取商类目列表
 	async function getMerchantCategoryList(){
 	  try {
 	    const { data } = await getMerchantCategory();
-	    console.log('原始商类目数据:', data);
+	    console.log('原始商类目数据:', data);
 	    
 	    merchantCategoryData.value = data.map(item => ({
 	      id: item.id,
 	      name: item.categoryName, 
 	      child: [] 
 	    }));
-	    console.log('适配后的商类目数据:', merchantCategoryData.value);
+	    console.log('适配后的商类目数据:', merchantCategoryData.value);
 
 	  } catch (error) {
-	    console.error('获取商类目失败:', error);
-	    uni.showToast({ title: '获取商类目失败', icon: 'none' });
+	    console.error('获取商类目失败:', error);
+	    uni.showToast({ title: '获取商类目失败', icon: 'none' });
 	  }
 	}
 
@@ -678,7 +678,7 @@
 			productImages.value = [];
 
 			console.log('分类IDs:', formData.value.categoryIds);
-			console.log('商类目IDs:', formData.value.merchantCategoryId); 
+			console.log('商类目IDs:', formData.value.merchantCategoryId); 
 			console.log('运费模板IDs:', formData.value.tempIds);
 
 			await nextTick();
@@ -740,7 +740,7 @@
 				}
 			}
 
-			// 设置商类目选择器
+			// 设置商类目选择器
 			if (merchantCategoryRef.value && formData.value.merchantCategoryId.length > 0) {
 				await nextTick();
 				if (merchantCategoryRef.value.setSelectedIds) {
@@ -782,9 +782,9 @@
 		console.log('分类选择变化:', result);
 	}
 
-	// 商类目选择变化
+	// 商类目选择变化
 	const onMerchantCategoryChange = (result) => {
-		console.log('商类目选择变化:', result);
+		console.log('商类目选择变化:', result);
 	}
 
 	// 确认分类选择
@@ -813,25 +813,25 @@
 		}
 	}
 
-	// 确认商类目选择
+	// 确认商类目选择
 	const confirmMerchantCategory = () => {
 	  if (merchantCategoryRef.value) {
 	    let selectedIds = merchantCategoryRef.value.getSelectedIds()
 
 	    if (selectedIds.length === 0) {
-	      uni.showToast({ title: '请选择一个商类目', icon: 'none' })
+	      uni.showToast({ title: '请选择一个商类目', icon: 'none' })
 	      return
 	    }
 	    if (selectedIds.length > 1) {
 	      selectedIds = [selectedIds[0]]
-	      uni.showToast({ title: '商类目仅支持选择一个', icon: 'none' })
+	      uni.showToast({ title: '商类目仅支持选择一个', icon: 'none' })
 	    }
 
 	    formData.value.merchantCategoryId = selectedIds
 	    formData.value.merchantCategoryDisplayName = getMerchantCategoryDisplayName(selectedIds)
 
 	    showMerchantCategory.value = false
-	    console.log('最终选中的商类目ID(单选):', selectedIds)
+	    console.log('最终选中的商类目ID(单选):', selectedIds)
 	    setTimeout(() => {
 	      if (formRef.value) {
 	        formRef.value.validateField('merchantCategoryId');
@@ -873,7 +873,7 @@
 		return names.join('、')
 	}
 
-	// 生成商类目显示名称
+	// 生成商类目显示名称
 	const getMerchantCategoryDisplayName = (selectedIds) => {
 	  if (!selectedIds || selectedIds.length === 0) return ''
 

+ 147 - 78
pages/user/index.vue

@@ -1,9 +1,6 @@
 <template>
   <view class="container">
-    <up-navbar
-        class="inde-nav-bar"
-        :bgColor="navBgColor"
-    >
+    <up-navbar class="inde-nav-bar" :bgColor="navBgColor">
       <template #left>
         <view></view>
       </template>
@@ -24,7 +21,15 @@
           <view class="user-detail">
             <view class="name-vip" v-if="appStore.isLogin">
               <text class="name">{{ appStore.$userInfo?.nickname }}</text>
-              <image class="vip-tag" v-if="appStore.$userInfo?.svip && !(appStore?.$wxConfig?.auditModeEnabled)" mode="widthFix" :src="HTTP_REQUEST_URL_IMG+'sviplogo.png'"></image>
+              <image
+                class="vip-tag"
+                v-if="
+                  appStore.$userInfo?.svip &&
+                  !appStore?.$wxConfig?.storeAuditModeEnabled
+                "
+                mode="widthFix"
+                :src="HTTP_REQUEST_URL_IMG + 'sviplogo.png'"
+              ></image>
             </view>
             <view
               class="name-vip"
@@ -41,11 +46,18 @@
               <view class="item" @click="handleFaceDetect">
                 {{ appStore.$userInfo?.realNameVerified ? "已实名" : "未实名" }}
               </view>
-              <view class="item" v-if="userInfoAddres !== ''">IP:
+              <view class="item" v-if="userInfoAddres !== ''"
+                >IP:
                 {{ userInfoAddres }}
               </view>
 
-              <view class="item" v-if="appStore.$userInfo?.sex && appStore.$userInfo?.sex !== 0 ">{{ sexMap[appStore.$userInfo?.sex] }}·{{ appStore.$userInfo?.age }}岁</view>
+              <view
+                class="item"
+                v-if="appStore.$userInfo?.sex && appStore.$userInfo?.sex !== 0"
+                >{{ sexMap[appStore.$userInfo?.sex] }}·{{
+                  appStore.$userInfo?.age
+                }}岁</view
+              >
             </view>
           </view>
         </view>
@@ -60,23 +72,42 @@
         </view>
       </view>
 
-
       <!-- 会员开通提示 v-if="!userInfo.isVip"-->
-      <view class="vip-promote" v-if="!(appStore?.$wxConfig?.auditModeEnabled)">
-        <image class="vipBG" :src="HTTP_REQUEST_URL_IMG+'vipBG.png'" mode="scaleToFill"></image>
+      <view class="vip-promote" v-if="!appStore?.$wxConfig?.storeAuditModeEnabled">
+        <image
+          class="vipBG"
+          :src="HTTP_REQUEST_URL_IMG + 'vipBG.png'"
+          mode="scaleToFill"
+        ></image>
         <view class="vip-text">
           <view class="title">
-            <image class="vipIcon" :src="HTTP_REQUEST_URL_IMG+'setting/vipIcon.png'" mode="widthFix"></image>
-            <text v-if="!appStore.$userInfo?.svip">开通<text class="bigText">会员</text>享受更多<text class="bigText">权益</text></text>
+            <image
+              class="vipIcon"
+              :src="HTTP_REQUEST_URL_IMG + 'setting/vipIcon.png'"
+              mode="widthFix"
+            ></image>
+            <text v-if="!appStore.$userInfo?.svip"
+              >开通<text class="bigText">会员</text>享受更多<text
+                class="bigText"
+                >权益</text
+              ></text
+            >
             <text v-else>前往查看<text class="bigText">权益</text></text>
           </view>
-          <button class="open-vip" @click="goVIP">{{appStore.$userInfo?.svip ? '去查看':'去开通'}}<image class="bofang" :src="HTTP_REQUEST_URL_IMG+'setting/bofang.png'" mode="widthFix"></image></button>
+          <button class="open-vip" @click="goVIP">
+            {{ appStore.$userInfo?.svip ? "去查看" : "去开通"
+            }}<image
+              class="bofang"
+              :src="HTTP_REQUEST_URL_IMG + 'setting/bofang.png'"
+              mode="widthFix"
+            ></image>
+          </button>
         </view>
       </view>
     </view>
 
     <!-- 钱包余额 -->
-    <view class="wallet-section">
+    <view class="wallet-section" v-if="!appStore?.$wxConfig?.storeAuditModeEnabled">
       <view class="wallet-header">
         <view>
           <view class="wallet-title">钱包余额(元)</view>
@@ -86,9 +117,8 @@
         <view
           class="transaction-detail"
           @click="viewTransactionDetail"
-          v-if="!(appStore?.$wxConfig?.auditModeEnabled)"
         >
-          <text style="margin-right: 10rpx">交易明细</text>
+          <text style="margin-right: 10rpx">进入钱包</text>
           <uni-icons type="right" size="16" color="#666666"></uni-icons>
         </view>
       </view>
@@ -118,7 +148,7 @@
         </view>
       </view>
 
-      <view
+      <!-- <view
         class="wallet-actions"
         v-if="tradeList && tradeList.length > 0 && showIcons"
       >
@@ -132,37 +162,72 @@
           @click="goDetail(tradeList[1].jumpUrl)"
           >{{ tradeList[1].iconName }}</view
         >
-      </view>
+      </view> -->
 
-      <view class="functions" v-if="useList&&useList.length>0&&showIcons">
-        <view class="function-item" v-for="item in useList" :key="item.iconName" @click="goDetail(item.jumpUrl)">
+      <view class="functions" v-if="useList && useList.length > 0">
+        <view
+          class="function-item"
+          v-for="item in useList"
+          :key="item.iconName"
+          @click="goDetail(item.jumpUrl)"
+        >
           <view class="function-icon">
-            <image class="img" :src="item.src" mode="widthFix"></image>
+            <image
+
+              :src="item.iconUrl"
+              mode="widthFix"
+              :style="{ width: (item.iconSize || '60') + 'rpx' }"
+            ></image>
           </view>
           <text class="function-name">{{ item.iconName }}</text>
         </view>
       </view>
     </view>
 
-
     <!-- 最近访问 -->
     <view class="recent-visit" v-if="recentStores.length > 0">
       <view class="section-header">
         <text class="section-title">最近访问</text>
-        <view class="more"  @click="handleFunctionClick({pageUrl:'/pages/users/browsing_history/index'})">查看更多<uni-icons style="margin-left: 10rpx;" type="right" size="16" color="#666666"></uni-icons></view>
+        <view
+          class="more"
+          @click="
+            handleFunctionClick({
+              pageUrl: '/pages/users/browsing_history/index',
+            })
+          "
+          >查看更多<uni-icons
+            style="margin-left: 10rpx"
+            type="right"
+            size="16"
+            color="#666666"
+          ></uni-icons
+        ></view>
       </view>
 
       <view class="store-list">
-        <template v-for="(store,storeIndex) in recentStores" :key="store.id">
-          <view class="store-item" v-if="storeIndex == 0" @click="viewStore(store)">
-              <view class="store-logo">
-                <image class="img" :src="store.merchantLogo" mode="aspectFill"></image>
-              </view>
-              <view class="store-info">
-                <text class="store-name">{{ store.merchantName }}</text>
-                <text class="store-desc">{{ store.merchantDescribe }}</text>
-              </view>
-              <uni-icons style="margin-left: auto;" type="right" size="16" color="#666666"></uni-icons>
+        <template v-for="(store, storeIndex) in recentStores" :key="store.id">
+          <view
+            class="store-item"
+            v-if="storeIndex == 0"
+            @click="viewStore(store)"
+          >
+            <view class="store-logo">
+              <image
+                class="img"
+                :src="store.merchantLogo"
+                mode="aspectFill"
+              ></image>
+            </view>
+            <view class="store-info">
+              <text class="store-name">{{ store.merchantName }}</text>
+              <text class="store-desc">{{ store.merchantDescribe }}</text>
+            </view>
+            <uni-icons
+              style="margin-left: auto"
+              type="right"
+              size="16"
+              color="#666666"
+            ></uni-icons>
           </view>
         </template>
       </view>
@@ -205,7 +270,11 @@
 
       <view class="functions">
         <template v-for="func in commonFunctions" :key="func.name">
-          <view class="function-item" @click="handleFunctionClick(func)" v-if="func.show">
+          <view
+            class="function-item"
+            @click="handleFunctionClick(func)"
+            v-if="func.show"
+          >
             <view class="function-icon">
               <image class="img" :src="func.src" mode="widthFix"></image>
             </view>
@@ -237,7 +306,7 @@
         </view>
       </view>
     </up-popup>
-    
+
     <!-- 自定义 tabBar -->
     <customTabBar :current="3" :showBackTop="false" />
   </view>
@@ -401,7 +470,7 @@ const userInfoAddres = computed(() => {
 onShow(async () => {
   // 隐藏原生 tabBar
   uni.hideTabBar();
-  
+
   if (appStore.isLogin) {
     await appStore.USERINFO();
     logoutShow.value = true;
@@ -444,36 +513,37 @@ watch(
   (newVal) => {
     const configDate = newVal || appStore.$wxConfig;
     wxConfig.value = configDate;
-    const list = JSON.parse(configDate.essentialFunctions);
-    console.log('list',list)
-    if (list[0].status == false) {
-      showIcons.value = false;
-    } else {
-      showIcons.value = true;
-    }
-    tradeList.value = [list[0], list[1]];
-    useList.value = [
-      {
-        ...list[2],
-        src: `${HTTP_REQUEST_URL_IMG}setting/mailiao.png`,
-      },
-      {
-        ...list[3],
-        src: `${HTTP_REQUEST_URL_IMG}setting/mailiao2.png`,
-      },
-      {
-        ...list[4],
-        src: `${HTTP_REQUEST_URL_IMG}setting/cunliao.png`,
-        iconName: "存料",
-      },
-      {
-        ...list[5],
-        src: `${HTTP_REQUEST_URL_IMG}setting/tiliao.png`,
-      },
-    ];
+    const list = JSON.parse(configDate.storeCommonTools || "[]");
+    console.log("list", list);
+    useList.value = list;
+    // if (list[0].status == false) {
+    //   showIcons.value = false;
+    // } else {
+    //   showIcons.value = true;
+    // }
+    // tradeList.value = [list[0], list[1]];
+    // useList.value = [
+    //   {
+    //     ...list[2],
+    //     src: `${HTTP_REQUEST_URL_IMG}setting/mailiao.png`,
+    //   },
+    //   {
+    //     ...list[3],
+    //     src: `${HTTP_REQUEST_URL_IMG}setting/mailiao2.png`,
+    //   },
+    //   {
+    //     ...list[4],
+    //     src: `${HTTP_REQUEST_URL_IMG}setting/cunliao.png`,
+    //     iconName: "存料",
+    //   },
+    //   {
+    //     ...list[5],
+    //     src: `${HTTP_REQUEST_URL_IMG}setting/tiliao.png`,
+    //   },
+    // ];
     console.log(tradeList.value);
   },
-  { deep: true, immediate: true }
+  { deep: true, immediate: true },
 );
 
 // 编辑资料
@@ -495,17 +565,17 @@ const openVip = () => {
 // 查看会员权益
 const goVIP = () => {
   // uni.navigateTo({ url: "/pages/users/VIP/VIP" });
-  goDetail("/pages/users/VIP/VIP")
+  goDetail("/pages/users/VIP/VIP");
 };
 
 // 查看交易明细
 const viewTransactionDetail = () => {
-  console.log(isLogin)
+  console.log(isLogin);
   if (!appStore.isLogin) {
     toLogin();
   } else {
     // uni.navigateTo({ url: "/pages/users/vault/index" });
-    goDetail("/pages/users/vault/index1")
+    goDetail("/pages/users/vault/index1");
   }
 };
 
@@ -607,7 +677,7 @@ const handleFunctionClick = (item) => {
   } else if (url === "logout") {
     handleLogOut();
   } else {
-    console.log(url)
+    console.log(url);
     uni.navigateTo({ url });
   }
 };
@@ -678,10 +748,9 @@ function handleFaceDetect() {
   // #ifndef APP-PLUS
   if (appStore.userInfo.realNameVerified || !isOwner.value) return;
   uni.navigateTo({
-    url: "/pages/users/face_detect/index"
+    url: "/pages/users/face_detect/index",
   });
   // #endif
-
 }
 </script>
 
@@ -707,9 +776,9 @@ function handleFaceDetect() {
   display: flex;
   justify-content: space-between;
   align-items: center;
-  margin-bottom: 20rpx;
+  margin: 24rpx 0;
 }
-.user-detail{
+.user-detail {
   display: flex;
   flex-direction: column;
   justify-content: center;
@@ -744,7 +813,7 @@ function handleFaceDetect() {
   margin-left: 16rpx;
 }
 
-.vip-expire{
+.vip-expire {
   font-size: 28rpx;
   color: #666;
   margin-bottom: 14rpx;
@@ -830,7 +899,7 @@ function handleFaceDetect() {
 /* 钱包余额 */
 .wallet-section {
   background: #fff;
-  margin: -176rpx 20rpx 20rpx;
+  margin: -150rpx 20rpx 20rpx;
   border-radius: 24rpx;
   padding: 32rpx;
 }
@@ -1000,9 +1069,9 @@ function handleFaceDetect() {
 }
 
 .store-logo {
-	width: 100rpx;
-	height: 100rpx;
-    margin-right: 16rpx;
+  width: 100rpx;
+  height: 100rpx;
+  margin-right: 16rpx;
   .img {
     width: 100rpx;
     height: 100rpx;
@@ -1088,7 +1157,7 @@ function handleFaceDetect() {
     padding: 0 16rpx;
     line-height: 40rpx;
     margin-right: 16rpx;
-    background: #FEF8E6;
+    background: #fef8e6;
     border-radius: 8rpx;
 
     &:last-child {

+ 1 - 1
pages/users/VIP/VIP.vue

@@ -82,7 +82,7 @@
           <text class="task-reward">{{ task.reward }}</text>
         </view>
         <view
-          v-if="!appStore.$wxConfig?.auditModeEnabled"
+          v-if="!appStore.$wxConfig?.storeAuditModeEnabled"
           class="submit-btn"
           @click="toPages(task)"
         >

文件差異過大導致無法顯示
+ 887 - 856
pages/users/login/index.vue


文件差異過大導致無法顯示
+ 0 - 103
pages/users/vault/aggrement.vue


+ 4 - 4
pages/users/vault/storeMetal/index.vue

@@ -35,7 +35,7 @@
         <view class="recycle-info-card">
           <view class="price-info">
             {{ goldName
-            }}{{ `${!appStore.$wxConfig?.auditModeEnabled ? "回收" : ""}` }}价格
+            }}{{ `${!appStore.$wxConfig?.storeAuditModeEnabled ? "回收" : ""}` }}价格
             <text class="current-price">{{ realprice?.toFixed(2) || 0 }}</text>
             元/g
             <view class="equity-tag"
@@ -63,7 +63,7 @@
           <view class="amount-info-group">
             <view class="amount-info-item">
               <view class="info-label">{{
-                `预计${!appStore.$wxConfig?.auditModeEnabled ? "回收" : ""}金额`
+                `预计${!appStore.$wxConfig?.storeAuditModeEnabled ? "回收" : ""}金额`
               }}</view>
               <view class="info-value"
                 >¥{{ recylePrice?.toFixed(2) || 0 }}</view
@@ -118,7 +118,7 @@
           <!-- <view
             class="recharge-btn"
             @click="jumpToSBei"
-            v-if="!isBalanceEnough && !wxConfig?.auditModeEnabled"
+            v-if="!isBalanceEnough && !wxConfig?.storeAuditModeEnabled"
           >
             前往充值
           </view> -->
@@ -389,7 +389,7 @@ onShow(() => {
 
 onLoad(() => {
   setGoldDeposit();
-  if (!appStore.$wxConfig?.auditModeEnabled) {
+  if (!appStore.$wxConfig?.storeAuditModeEnabled) {
     tabList.value = [
       { id: 1, name: "约价回收" },
       { id: 2, name: "余料出售" },

+ 13 - 12
stores/app.js

@@ -21,7 +21,8 @@ export const useAppStore = defineStore("app", {
       refreshArticles: false,
       indexRefreshArticles: false,
       wxConfig: {
-        auditModeEnabled: false,
+        auditModeEnabled: false, // 此字段在此小程序停用
+        storeAuditModeEnabled: false, // 使用此字段控制审核时隐藏与显示
         carouselImages: [
           {
             id: 0,
@@ -44,11 +45,11 @@ export const useAppStore = defineStore("app", {
         shopId: "001",
       },
       merchantId: null,
-	  // 首页展示刷新标识,当浏览了新店铺主页/扫店铺码时,改为true,首页onshow时判断true刷新列表并改为false
-	  indexRefreshFlag: false,
-	  cartRefreshFlag: false,
-	  cProductAttr: [],
-	  cProductAttrValue: []
+      // 首页展示刷新标识,当浏览了新店铺主页/扫店铺码时,改为true,首页onshow时判断true刷新列表并改为false
+      indexRefreshFlag: false,
+      cartRefreshFlag: false,
+      cProductAttr: [],
+      cProductAttrValue: [],
     };
   },
   getters: {
@@ -69,12 +70,12 @@ export const useAppStore = defineStore("app", {
     SET_REFRESH(val) {
       this.refreshArticles = val;
     },
-	SET_CPATTR(val){
-		this.cProductAttr = val
-	},
-	SET_CPATTRVALUE(val){
-		this.cProductAttrValue = val
-	},
+    SET_CPATTR(val) {
+      this.cProductAttr = val;
+    },
+    SET_CPATTRVALUE(val) {
+      this.cProductAttrValue = val;
+    },
     SET_CART_REFRESH(val) {
       this.cartRefreshFlag = val;
     },