فهرست منبع

增加审核功能

shish 1 سال پیش
والد
کامیت
5624b124ea

+ 11 - 0
ghsApp/src/admin/shop/add.vue

@@ -111,6 +111,13 @@
 					</view>
 				</tui-list-cell>
 
+				<tui-list-cell class="line-cell" :hover="false">
+					<view class="tui-title">新客审核</view>
+					<view>
+						<switch style="transform:scale(0.7,0.7)" :checked="form.needCheck == 0 ? false : true" @change="needCheckChange" /> {{form.needCheck==0 ? '不要' : '需要'}}
+					</view>
+				</tui-list-cell>
+
 				<tui-list-cell class="line-cell" :hover="false" v-if="form.allowDebt == 1">
 					<view class="tui-title ">欠款额度</view>
 					<input type="number" v-model="form.allowDebtAmount" @focus="form.allowDebtAmount=''" placeholder-class="phcolor" class="tui-input" name="allowDebtAmount" placeholder="请填写金额" />
@@ -269,6 +276,7 @@ export default {
 				cutStyle:0,
 				img: [],
 				allowDebt:0,
+				needCheck:0,
 				allowDebtAmount:5000,
 				presell:0,
 				default:0,
@@ -380,6 +388,9 @@ export default {
 		allowDebtChange(e){
 			this.form.allowDebt = e.target.value ? 1 : 0
 		},
+		needCheckChange(e){
+			this.form.needCheck = e.target.value ? 1 : 0
+		},
 		openChange(e) {
 			this.visible = e.target.value ? true : false
 			this.form.open = e.target.value ? 1 : 0

+ 4 - 0
ghsApp/src/api/custom/index.js

@@ -48,6 +48,10 @@ export const changeShowStock = data => {
 	return https.get('/custom/change-show-stock', data)
 }
 
+export const changePassStatus = data => {
+	return https.get('/custom/change-pass-status', data)
+}
+
 export const changeName = data => {
 	return https.get('/custom/change-name', data)
 }

+ 20 - 1
ghsApp/src/pagesClient/member/detail.vue

@@ -148,6 +148,15 @@
               </div>
             </tui-list-cell>
 
+            <tui-list-cell class="line-cell" :hover="false">
+              <div class="tui-title">审核状态</div>
+              <div class="switch_bx">
+                <text v-if="form.passStatus == 0">待审</text>
+                <text v-else>通过</text>
+                <switch :checked="form.passStatus == 0 ? false : true" @change="passStatusChangeFn" style="transform: scale(0.8,0.8)" />
+              </div>
+            </tui-list-cell>
+
             <tui-list-cell class="line-cell" :hover="false">
               <div class="tui-title">配送物流</div>
               <input v-model="userInfo.wlName" @click="userInfo.wlName=''" placeholder-class="phcolor" class="tui-input" confirm-type="go" placeholder="请填写" type="text" style="width:48%;border:1upx solid #ddd;margin-right:15upx;height:52upx;text-align:center;" />
@@ -216,7 +225,7 @@ import ModalModule from "@/components/plugin/modal"
 import { getUserDet,debt} from "@/api/member";
 import { IMGHOST } from '@/config'
 import { mapGetters } from "vuex"
-import { changeShowStock,changeWlName,changeLevel,createSeatSnFn,modifySeatSnFn } from "@/api/custom"
+import { changeShowStock,changePassStatus,changeWlName,changeLevel,createSeatSnFn,modifySeatSnFn } from "@/api/custom"
 import { updateDebtLimit,updateCustomBlack,changeDiscount,changeName,rechargeFn,getGatheringCode} from "@/api/custom";
 export default {
   name: "detail",
@@ -234,6 +243,7 @@ export default {
         debt: 0,
         black: 1,
         showStock:0,
+        passStatus:0,
         wlId:0,
         level:1
       },
@@ -525,6 +535,14 @@ export default {
       let msg = e.detail.value?'已开启':'已禁用'
       this.$msg(msg)
     },
+    passStatusChangeFn(e){
+      this.form.passStatus = e.detail.value ? 1 : 0
+      changePassStatus({customId:this.userInfo.id,passStatus:this.form.passStatus}).then(res=>{
+        if(res.code == 1){
+          this.$msg(res.msg)
+        }
+      })
+    },
     showStockChangeFn(e){
       this.form.showStock = e.detail.value ? 1 : 0
       changeShowStock({customId:this.userInfo.id,showStock:this.form.showStock}).then(res=>{
@@ -559,6 +577,7 @@ export default {
         this.form.level = this.userInfo.level
         this.form.black = this.userInfo.black
         this.form.showStock = this.userInfo.showStock
+        this.form.passStatus = this.userInfo.passStatus
         this.discount = parseFloat(res.data.discount)
         if(res.data.remainDebtAmount && Number(res.data.remainDebtAmount)>0){
           let name = res.data.name && !this.$util.isEmpty(res.data.name) ? res.data.name+' 待结金额' : '待结金额'

+ 79 - 0
hdApp/src/pagesPurchase/components/wangCg.vue

@@ -8,6 +8,12 @@
     </view>
     <view style="margin:55upx 0;color:white;font-size:29upx;" >如您的伙伴需要买花,请联系批发店添加员工</view>
   </view>
+  <block v-else>
+    <view class="model-pass" v-if="pass == false">
+      <image :src="`${constant.imgUrl}/ghs/home/deserve.png`" class="noData_img"></image>
+      <view style="margin:80upx 0;color:white;font-size:34upx;">审核中...</view>
+    </view>
+  </block>
 </template>
 <script>
 export default {
@@ -23,6 +29,10 @@ export default {
     authShow: {
       type: Boolean,
       default: false,
+    },
+    pass:{
+      type: Boolean,
+      default: true,
     }
   },
   watch: {
@@ -123,4 +133,73 @@ export default {
     }
   }
 }
+.model-pass {
+  position: fixed;
+  z-index: 9999;
+  top: 0;
+  left: 0;
+  width: 100vw;
+  height: 100vh;
+  background: rgba(0, 0, 0, 0.8);
+  color: #fff;
+  overflow: hidden;
+  text-align: center;
+  & > .noData_img {
+    width: 280upx;
+    height: 280upx;
+    margin: 50upx auto 0;
+  }
+  & > .no_data_text {
+    font-size: 32upx;
+    color: #ffffff;
+    text-align: center;
+    margin: 50upx 0;
+  }
+  & > .freeApply {
+    width: 280upx;
+    height: 110upx;
+    line-height:110upx;
+    background: linear-gradient(90deg, #3385ff, #33b0ff);
+    border-radius: 44upx;
+    margin: 20upx auto;
+    font-size: 34upx;
+    font-weight:bold;
+    color: #ffffff;
+    text-align: center;
+  }
+  &>.experience{
+    margin-top: 40upx;
+    color: #fff;
+    font-size: 30upx;
+  }
+  &>.experFrame{
+    margin-top: 50upx;
+    height: 50upx;
+    &>view{
+      margin: 0 auto;
+      &>.experInput{
+        height: 70upx;
+        width: 250upx;
+        display: inline-block;
+        vertical-align: middle;
+        border-radius: 8upx;
+        background-color: #fff;
+        border: 1px solid #ccc;
+        color: #666;
+        padding-left: 20upx;
+        box-sizing: border-box;
+        text-align: left;
+      }
+      &>text{
+        display: inline-block;
+        line-height: 70upx;
+        padding: 0 20upx;
+        background-color: #3385FF;
+        vertical-align: middle;
+        font-size: 30upx;
+        margin-left: 20upx;
+      }
+    }
+  }
+}
 </style>

+ 4 - 1
hdApp/src/pagesPurchase/ghsProduct.vue

@@ -126,7 +126,7 @@
 		</modal-module>
 
 		<FooterCart :price="allPrice" :count="allCount" @confirm="confirmSelectEvent" @showCartItem="showCartItem"></FooterCart>
-		<wangCg :show.sync="notOpenShop" @bthClick="goToCg()"></wangCg>
+		<wangCg :show.sync="notOpenShop" :pass.sync="pass" @bthClick="goToCg()"></wangCg>
     	<sel-popup :show="popupShow" :info="infoData" @close="hidePopup" />
 		<app-activily-coupon :show.sync="isNewCustom" :info="newCustomGift" :ghsId="ghsId" />
 
@@ -259,6 +259,7 @@ export default {
 			},
 			showSubmitModel: false,
 			notOpenShop:false,
+			pass:true,
 			hdShopAdminId:0,
 			fromGhsId:0,
 			ghsInfo: {
@@ -549,6 +550,7 @@ export default {
 			if(this.option.id == 0) {
 				ghsInfo({shopId: this.option.shopId}).then(res => {
 					this.ghsInfo = res.data
+					this.pass = res.data.passStatus == 1 ? true : false
 					this.shareImgUrl = res.data.shareLogo ? res.data.shareLogo : ''
 					this.superWx = res.data.superWx ? res.data.superWx : ''
 					this.telephone = res.data.telephone ? res.data.telephone : ''
@@ -581,6 +583,7 @@ export default {
 				this.initGhsDataV2(id,shopId,0)
 				getGhsDataApi({id: this.option.id}).then(res => {
 					this.ghsInfo = res.data
+					this.pass = res.data.passStatus == 1 ? true : false
 					this.shopId = res.data.shopId
 					this.buyNotice = res.data.buyNotice
 					this.shareImgUrl = res.data.shareLogo ? res.data.shareLogo : ''