Prechádzať zdrojové kódy

更换控制审核字段storeAuditModeEnabled

HHE-5476 2 týždňov pred
rodič
commit
83b6d9e65f

+ 4 - 4
config/app.js

@@ -1,5 +1,5 @@
-// let domain = "https://www.shuibeibyg.com/front-api"; // 正式环境IP
-let domain = "https://test.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
@@ -8,10 +8,10 @@ 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;

+ 3 - 3
pages/user/index.vue

@@ -25,7 +25,7 @@
                 class="vip-tag"
                 v-if="
                   appStore.$userInfo?.svip &&
-                  !appStore?.$wxConfig?.auditModeEnabled
+                  !appStore?.$wxConfig?.storeAuditModeEnabled
                 "
                 mode="widthFix"
                 :src="HTTP_REQUEST_URL_IMG + 'sviplogo.png'"
@@ -73,7 +73,7 @@
       </view>
 
       <!-- 会员开通提示 v-if="!userInfo.isVip"-->
-      <view class="vip-promote" v-if="!appStore?.$wxConfig?.auditModeEnabled">
+      <view class="vip-promote" v-if="!appStore?.$wxConfig?.storeAuditModeEnabled">
         <image
           class="vipBG"
           :src="HTTP_REQUEST_URL_IMG + 'vipBG.png'"
@@ -117,7 +117,7 @@
         <view
           class="transaction-detail"
           @click="viewTransactionDetail"
-          v-if="!appStore?.$wxConfig?.auditModeEnabled"
+          v-if="!appStore?.$wxConfig?.storeAuditModeEnabled"
         >
           <text style="margin-right: 10rpx">进入钱包</text>
           <uni-icons type="right" size="16" color="#666666"></uni-icons>

+ 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)"
         >

+ 2 - 2
pages/users/login/index.vue

@@ -3,12 +3,12 @@
 		<up-navbar title="登录" placeholder>
 			<template #left>
 				<!--        <view-->
-				<!--            v-if="appStore?.$wxConfig?.auditModeEnabled"-->
+				<!--            v-if="appStore?.$wxConfig?.auditModeEnstoreAuditModeEnabledabled"-->
 				<!--            @click="backHome"-->
 				<!--        >-->
 				<!--          <image src="@/static/images/tabbar/1-001.png" style="height: 40rpx;width: 40rpx;"></image>-->
 				<!--        </view>-->
-				<view class="back_extend" v-if="appStore?.$wxConfig?.auditModeEnabled" @click="backHome">
+				<view class="back_extend" v-if="appStore?.$wxConfig?.storeAuditModeEnabled" @click="backHome">
 					{{ "<" }} 回到首页
 				</view>
 			</template>

+ 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;
     },