shish 2 лет назад
Родитель
Сommit
3f73ef5d19
1 измененных файлов с 4 добавлено и 23 удалено
  1. 4 23
      ghsApp/src/pagesClient/member/detail.vue

+ 4 - 23
ghsApp/src/pagesClient/member/detail.vue

@@ -99,13 +99,9 @@
               <button class="admin-button-com blue mini-btn" @tap="amendMoney">确定</button>
 						</tui-list-cell>
 
-            <tui-list-cell class="line-cell" :hover="false">
-              <div class="tui-title">标记为散客</div>
-              <div class="switch_bx">
-                <text v-if="form.isHd == 1">否</text>
-                <text v-else>是</text>
-                <switch :checked="form.isHd == 1 ? false : true" @change="isHdChangeFn" style="transform: scale(0.8,0.8)" />
-              </div>
+            <tui-list-cell class="line-cell" :hover="true" :arrow="true">
+              <div class="tui-title">享受价格</div>
+              <view class="tui-input" @click="changeLevelPrice()" style="text-align:right;margin-right:110upx;">{{ form.level == 0 ? '零售价':form.level == 1 ? '批发价':form.level == 2 ? '大客价':'-' }}</view>
             </tui-list-cell>
 
             <tui-list-cell class="line-cell" :hover="false">
@@ -126,11 +122,6 @@
               </div>
             </tui-list-cell>
 
-            <tui-list-cell class="line-cell" :hover="true" :arrow="true">
-              <div class="tui-title">享受价格</div>
-              <view class="tui-input" @click="changeLevelPrice()" style="text-align:right;margin-right:110upx;">{{ form.level == 0 ? '零售价':form.level == 1 ? '批发价':form.level == 2 ? '大客价':'-' }}</view>
-            </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;" />
@@ -160,7 +151,7 @@ import TuiListCell from '@/components/plugin/list-cell'
 import { share } from "@/mixins";
 import ModalModule from "@/components/plugin/modal"
 import { getUserDet,debt} from "@/api/member";
-import { changeShowStock,changeIsHd,changeWlName,changeLevel } from "@/api/custom"
+import { changeShowStock,changeWlName,changeLevel } from "@/api/custom"
 import { updateDebtLimit,updateCustomBlack,changeDiscount,changeName} from "@/api/custom";
 export default {
   name: "detail",
@@ -179,7 +170,6 @@ export default {
         black: 1,
         showStock:0,
         wlId:0,
-        isHd:0,
         level:1
       },
       wlSelData: {},
@@ -333,14 +323,6 @@ export default {
         }
       })
     },
-    isHdChangeFn(e){
-      this.form.isHd = e.detail.value ? 0 : 1;
-      changeIsHd({ isHd: this.form.isHd, customId: this.userInfo.id }).then(res=>{
-        if(res.code == 1){
-          this.$msg(res.msg)
-        }
-      })
-    },
     async blackChangeFn(e){
       this.form.black = e.detail.value ? 2 : 1;
       try {
@@ -367,7 +349,6 @@ export default {
         this.form.debt = this.userInfo.debt
         this.form.level = this.userInfo.level
         this.form.black = this.userInfo.black
-        this.form.isHd = this.userInfo.isHd
         this.form.showStock = this.userInfo.showStock
         this.discount = parseFloat(res.data.discount)
       })