Răsfoiți Sursa

会员等级

shish 4 ani în urmă
părinte
comite
acab56aa24

+ 296 - 34
ghs/src/views/item/list.vue

@@ -40,7 +40,7 @@
       </template>
       <template #table-header-price>
         <div class="set-sort">
-          <span>价</span>
+          <span>普通价</span>
           <el-button v-if="!priceInput" icon="el-icon-edit-outline" size="small" type="text" @click="showPriceInput" class="show"></el-button>
           <el-button class="hide" v-else size="mini" @click="commitChange('price')" type="primary">完成</el-button>
         </div>
@@ -104,23 +104,82 @@
 		<el-button type="text" v-if="scope.row.delStatus==1" @click.native.stop="setDelStatusFun(scope.row.id,0)" >恢复</el-button>
 
 	</template>
-		
+
 		<template #table-column-cost="{scope}">
 			<span v-if="!costPrice">{{ scope.row.cost }}</span>
 			<el-input style="width:80%;" ref="sort-input" focus size="mini" v-else v-model="scope.row.cost" @blur="changeInputValue(scope.row, 'cost')" ></el-input>
 		</template>
+
+
 		<template #table-header-addPrice="{scope}">
 			<div class="set-sort">
-				<span>每扎加价</span>
+				<span>普通加价</span>
 				<el-button v-if="!canAddPrice" icon="el-icon-edit-outline" size="small" type="text" @click="showAddPrice" class="show"></el-button>
 				<el-button class="hide" v-if="canAddPrice"  size="mini" @click="showMultiplePop(scope,'addPrice')" type="primary">批</el-button>
 				<el-button class="hide" v-if="canAddPrice"  size="mini" @click="commitChange('addPrice')" type="primary">完成</el-button>
 			</div>
 		</template>
-      	<template #table-column-addPrice="{scope}">
-        <span v-if="!canAddPrice">{{ scope.row.addPrice }}</span>
-        <el-input style="width:80%;" ref="add-price-input" focus size="mini" v-else v-model="scope.row.addPrice" @blur="changeInputValue(scope.row, 'addPrice')" ></el-input>
-      </template>
+		<template #table-column-addPrice="{scope}">
+			<span v-if="!canAddPrice">{{ scope.row.addPrice }}</span>
+			<el-input style="width:80%;" ref="add-price-input" focus size="mini" v-else v-model="scope.row.addPrice" @blur="changeInputValue(scope.row, 'addPrice')" ></el-input>
+		</template>
+
+
+		<template #table-header-qtAddPrice="{scope}">
+			<div class="set-sort">
+				<span>青铜加价</span>
+				<el-button v-if="!canQtAddPrice" icon="el-icon-edit-outline" size="small" type="text" @click="showQtAddPrice" class="show"></el-button>
+				<el-button class="hide" v-if="canQtAddPrice"  size="mini" @click="showMultiplePop(scope,'qtAddPrice')" type="primary">批</el-button>
+				<el-button class="hide" v-if="canQtAddPrice"  size="mini" @click="commitChange('qtAddPrice')" type="primary">完成</el-button>
+			</div>
+		</template>
+		<template #table-column-qtAddPrice="{scope}">
+			<span v-if="!canQtAddPrice">{{ scope.row.qtAddPrice }}</span>
+			<el-input style="width:80%;" ref="add-price-input" focus size="mini" v-else v-model="scope.row.qtAddPrice" @blur="changeInputValue(scope.row, 'qtAddPrice')" ></el-input>
+		</template>
+
+
+		<template #table-header-byAddPrice="{scope}">
+			<div class="set-sort">
+				<span>白银加价</span>
+				<el-button v-if="!canByAddPrice" icon="el-icon-edit-outline" size="small" type="text" @click="showByAddPrice" class="show"></el-button>
+				<el-button class="hide" v-if="canByAddPrice"  size="mini" @click="showMultiplePop(scope,'byAddPrice')" type="primary">批</el-button>
+				<el-button class="hide" v-if="canByAddPrice"  size="mini" @click="commitChange('byAddPrice')" type="primary">完成</el-button>
+			</div>
+		</template>
+		<template #table-column-byAddPrice="{scope}">
+			<span v-if="!canByAddPrice">{{ scope.row.byAddPrice }}</span>
+			<el-input style="width:80%;" ref="add-price-input" focus size="mini" v-else v-model="scope.row.byAddPrice" @blur="changeInputValue(scope.row, 'byAddPrice')" ></el-input>
+		</template>
+
+
+		<template #table-header-hjAddPrice="{scope}">
+			<div class="set-sort">
+				<span>黄金加价</span>
+				<el-button v-if="!canHjAddPrice" icon="el-icon-edit-outline" size="small" type="text" @click="showHjAddPrice" class="show"></el-button>
+				<el-button class="hide" v-if="canHjAddPrice"  size="mini" @click="showMultiplePop(scope,'hjAddPrice')" type="primary">批</el-button>
+				<el-button class="hide" v-if="canHjAddPrice"  size="mini" @click="commitChange('hjAddPrice')" type="primary">完成</el-button>
+			</div>
+		</template>
+		<template #table-column-hjAddPrice="{scope}">
+			<span v-if="!canHjAddPrice">{{ scope.row.hjAddPrice }}</span>
+			<el-input style="width:80%;" ref="add-price-input" focus size="mini" v-else v-model="scope.row.hjAddPrice" @blur="changeInputValue(scope.row, 'hjAddPrice')" ></el-input>
+		</template>
+
+
+		<template #table-header-zsAddPrice="{scope}">
+			<div class="set-sort">
+				<span>钻石加价</span>
+				<el-button v-if="!canZsAddPrice" icon="el-icon-edit-outline" size="small" type="text" @click="showZsAddPrice" class="show"></el-button>
+				<el-button class="hide" v-if="canZsAddPrice"  size="mini" @click="showMultiplePop(scope,'zsAddPrice')" type="primary">批</el-button>
+				<el-button class="hide" v-if="canZsAddPrice"  size="mini" @click="commitChange('zsAddPrice')" type="primary">完成</el-button>
+			</div>
+		</template>
+		<template #table-column-zsAddPrice="{scope}">
+			<span v-if="!canZsAddPrice">{{ scope.row.zsAddPrice }}</span>
+			<el-input style="width:80%;" ref="add-price-input" focus size="mini" v-else v-model="scope.row.zsAddPrice" @blur="changeInputValue(scope.row, 'zsAddPrice')" ></el-input>
+		</template>
+
 
 		<template #table-header-ratio>
 			<div class="set-sort">
@@ -236,7 +295,7 @@
 						></el-input>
 					</el-form-item>
 
-          <el-form-item label="每扎成本" prop="cost">
+          <el-form-item label="成本" prop="cost">
 						<el-input
 							v-model="replaceForm.cost"
 							placeholder="请输入成本"
@@ -244,7 +303,7 @@
 						></el-input>
 					</el-form-item>
 
-          <el-form-item label="每扎加价" prop="addPrice">
+          <el-form-item label="普通加价" prop="addPrice">
 						<el-input
 							v-model="replaceForm.addPrice"
 							placeholder="请输入加价"
@@ -324,7 +383,13 @@ export default {
 		batchAlterNum:'',
 		batchAddNum:'',
 		dialogFormVisible:false,
+
 		canAddPrice:false,
+		canQtAddPrice:false,
+		canByAddPrice:false,
+		canHjAddPrice:false,
+		canZsAddPrice:false,
+
 		canAddRatio:false,
 		costPrice: false,
 		costWeight: false,
@@ -585,28 +650,76 @@ export default {
 				'min-width': 60,
 			},
             {
-              prop: 'price',
-              label: '价',
+              prop: 'addPrice',
+              label: '普通加价',
               align: 'center',
-              minWidth:110
+              'min-width': 130
             },
             {
-              prop: 'addPrice',
-              label: '每扎加价',
+              prop: 'qtAddPrice',
+              label: '青铜加价',
               align: 'center',
               'min-width': 130
             },
             {
-              prop: 'stockWarning',
-              label: '库存预警',
+              prop: 'byAddPrice',
+              label: '白银加价',
+              align: 'center',
+              'min-width': 130
+            },
+            {
+              prop: 'hjAddPrice',
+              label: '黄金加价',
+              align: 'center',
+              'min-width': 130
+            },
+            {
+              prop: 'zsAddPrice',
+              label: '钻石加价',
               align: 'center',
               'min-width': 130
             },
             {
               prop: 'cost',
-              label: '每扎成本',
+              label: '成本',
               align: 'center',
               'min-width': 90
+            },
+            {
+              prop: 'price',
+              label: '普通价',
+              align: 'center',
+              minWidth:105
+            },
+            {
+              prop: 'qtPrice',
+              label: '青铜价',
+              align: 'center',
+              minWidth:100
+            },
+            {
+              prop: 'byPrice',
+              label: '白银价',
+              align: 'center',
+              minWidth:100
+            },
+            {
+              prop: 'hjPrice',
+              label: '黄金价',
+              align: 'center',
+              minWidth:100
+            },
+            {
+              prop: 'zsPrice',
+              label: '钻石价',
+              align: 'center',
+              minWidth:100
+            },
+            {
+              prop: 'stockWarning',
+              label: '库存预警',
+              align: 'center',
+              'min-width': 130
             },
 			{
               prop: 'status',
@@ -681,7 +794,7 @@ export default {
         })
         .set('search', {
           key: {
-            placeholder: '分类名称'
+            placeholder: '输字母搜索'
           }
         })
 		.set('pagination', {
@@ -697,19 +810,24 @@ export default {
     refresh (params) {
       this.app.refresh(params);
     },
-    showCost() {
-		this.initData = []
-		this.costPrice = true
+    showAddPrice(){
+    	this.initData = []
 		this.priceInput = false;
 		this.shelfLifeInput = false;
-		this.stockWarningInput = false;
+	   	this.stockWarningInput = false;
 		this.sort.status = false;
+		this.costPrice = false;
 		this.canAddRatio = false;
 		this.costWeight = false;
+
+    	this.canAddPrice = true;
+		this.canQtAddPrice = false;
+		this.canByAddPrice = false;
+		this.canHjAddPrice = false;
+		this.canZsAddPrice = false;
     },
-    showAddPrice(){
+	showQtAddPrice(){
     	this.initData = []
-    	this.canAddPrice = true;
 		this.priceInput = false;
 		this.shelfLifeInput = false;
 	   	this.stockWarningInput = false;
@@ -717,7 +835,61 @@ export default {
 		this.costPrice = false;
 		this.canAddRatio = false;
 		this.costWeight = false;
-    },
+
+    	this.canAddPrice = false;
+		this.canQtAddPrice = true;
+		this.canByAddPrice = false;
+		this.canHjAddPrice = false;
+		this.canZsAddPrice = false;
+	},
+	showByAddPrice(){
+    	this.initData = []
+		this.priceInput = false;
+		this.shelfLifeInput = false;
+	   	this.stockWarningInput = false;
+		this.sort.status = false;
+		this.costPrice = false;
+		this.canAddRatio = false;
+		this.costWeight = false;
+
+    	this.canAddPrice = false;
+		this.canQtAddPrice = false;
+		this.canByAddPrice = true;
+		this.canHjAddPrice = false;
+		this.canZsAddPrice = false;
+	},
+	showHjAddPrice(){
+    	this.initData = []
+		this.priceInput = false;
+		this.shelfLifeInput = false;
+	   	this.stockWarningInput = false;
+		this.sort.status = false;
+		this.costPrice = false;
+		this.canAddRatio = false;
+		this.costWeight = false;
+
+    	this.canAddPrice = false;
+		this.canQtAddPrice = false;
+		this.canByAddPrice = false;
+		this.canHjAddPrice = true;
+		this.canZsAddPrice = false;
+	},
+	showZsAddPrice(){
+    	this.initData = []
+		this.priceInput = false;
+		this.shelfLifeInput = false;
+	   	this.stockWarningInput = false;
+		this.sort.status = false;
+		this.costPrice = false;
+		this.canAddRatio = false;
+		this.costWeight = false;
+
+    	this.canAddPrice = false;
+		this.canQtAddPrice = false;
+		this.canByAddPrice = false;
+		this.canHjAddPrice = false;
+		this.canZsAddPrice = true;
+	},
     showAddRatio(){
     	this.initData = []
     	this.canAddRatio = true;
@@ -726,8 +898,13 @@ export default {
 		this.sort.status = false;
 		this.shelfLifeInput = false;
 		this.costPrice = false;
-		this.canAddPrice = false;
 		this.costWeight = false;
+
+		this.canAddPrice = false;
+		this.canQtAddPrice = false;
+		this.canByAddPrice = false;
+		this.canHjAddPrice = false;
+		this.canZsAddPrice = false;
     },
   	showWeight(){
 		this.initData = []
@@ -736,8 +913,13 @@ export default {
 		this.stockWarningInput = false;
 		this.sort.status = false;
 		this.costPrice = false;
-		this.canAddPrice = false;
 		this.canAddRatio = false;
+
+		this.canAddPrice = false;
+		this.canQtAddPrice = false;
+		this.canByAddPrice = false;
+		this.canHjAddPrice = false;
+		this.canZsAddPrice = false;
     },
     showInTurn (e) {
       	this.initData = []
@@ -746,9 +928,14 @@ export default {
 		this.shelfLifeInput = false;
 		this.stockWarningInput = false;
 		this.costPrice = false;
-		this.canAddPrice = false;
 		this.canAddRatio = false;
 		this.costWeight = false;
+
+		this.canAddPrice = false;
+		this.canQtAddPrice = false;
+		this.canByAddPrice = false;
+		this.canHjAddPrice = false;
+		this.canZsAddPrice = false;
     },
 	showPriceInput(e){
       	this.initData = []
@@ -757,9 +944,14 @@ export default {
 		this.stockWarningInput = false;
 		this.sort.status = false;
 		this.costPrice = false;
-		this.canAddPrice = false;
 		this.canAddRatio = false;
 		this.costWeight = false;
+
+		this.canAddPrice = false;
+		this.canQtAddPrice = false;
+		this.canByAddPrice = false;
+		this.canHjAddPrice = false;
+		this.canZsAddPrice = false;
 	},
 	showStockWarningInput(e){
       	this.initData = []
@@ -768,9 +960,14 @@ export default {
 		this.stockWarningInput = true;
 		this.sort.status = false;
 		this.costPrice = false;
-		this.canAddPrice = false;
 		this.canAddRatio = false;
 		this.costWeight = false;
+
+		this.canAddPrice = false;
+		this.canQtAddPrice = false;
+		this.canByAddPrice = false;
+		this.canHjAddPrice = false;
+		this.canZsAddPrice = false;
 	},
 	showShelfLifeInputInput(){
       	this.initData = []
@@ -779,9 +976,14 @@ export default {
 		this.stockWarningInput = false;
 		this.sort.status = false;
 		this.costPrice = false;
-		this.canAddPrice = false;
 		this.canAddRatio = false;
 		this.costWeight = false;
+
+		this.canAddPrice = false;
+		this.canQtAddPrice = false;
+		this.canByAddPrice = false;
+		this.canHjAddPrice = false;
+		this.canZsAddPrice = false;
 	},
 	hiddenInput(type){
       	switch (type) {
@@ -794,6 +996,18 @@ export default {
 			case 'addPrice':
 				this.canAddPrice = false;
 			break;
+			case 'qtAddPrice':
+				this.canQtAddPrice = false;
+			break;
+			case 'byAddPrice':
+				this.canByAddPrice = false;
+			break;
+			case 'hjAddPrice':
+				this.canHjAddPrice = false;
+			break;
+			case 'zsAddPrice':
+				this.canZsAddPrice = false;
+			break;
 			case 'ratio':
 				this.canAddRatio = false;
 			break;
@@ -890,6 +1104,31 @@ export default {
 				let batchAddNum = (Number(this.batchAddNum) + Number(ele.addPrice)).toFixed(2)
 				ele.addPrice = batchAddNum
 				this.initData.push({id:ele.id,addPrice:ele.addPrice})
+
+			}else if(this.dataList.form.type == 'qtAddPrice'){
+				let batchAddNum = (Number(this.batchAddNum) + Number(ele.qtAddPrice)).toFixed(2)
+				ele.qtAddPrice = batchAddNum
+				this.initData.push({id:ele.id,qtAddPrice:ele.qtAddPrice})
+
+
+			}else if(this.dataList.form.type == 'byAddPrice'){
+				let batchAddNum = (Number(this.batchAddNum) + Number(ele.byAddPrice)).toFixed(2)
+				ele.byAddPrice = batchAddNum
+				this.initData.push({id:ele.id,byAddPrice:ele.byAddPrice})
+
+
+			}else if(this.dataList.form.type == 'hjAddPrice'){
+				let batchAddNum = (Number(this.batchAddNum) + Number(ele.hjAddPrice)).toFixed(2)
+				ele.hjAddPrice = batchAddNum
+				this.initData.push({id:ele.id,hjAddPrice:ele.hjAddPrice})
+
+
+			}else if(this.dataList.form.type == 'zsAddPrice'){
+				let batchAddNum = (Number(this.batchAddNum) + Number(ele.zsAddPrice)).toFixed(2)
+				ele.zsAddPrice = batchAddNum
+				this.initData.push({id:ele.id,zsAddPrice:ele.zsAddPrice})
+
+
 			}else if(this.dataList.form.type == 'stockWarning'){
 				let batchAddNum = (Number(this.batchAddNum) + Number(ele.stockWarning)).toFixed(2)
 				ele.stockWarning = batchAddNum
@@ -914,6 +1153,23 @@ export default {
 			if(this.dataList.form.type == 'addPrice'){
 				ele.addPrice = this.batchAlterNum
 				this.initData.push({id:ele.id,addPrice:this.batchAlterNum})
+
+			}else if(this.dataList.form.type == 'qtAddPrice'){
+				ele.qtAddPrice = this.batchAlterNum
+				this.initData.push({id:ele.id,qtAddPrice:this.batchAlterNum})
+
+			}else if(this.dataList.form.type == 'byAddPrice'){
+				ele.byAddPrice = this.batchAlterNum
+				this.initData.push({id:ele.id,byAddPrice:this.batchAlterNum})
+
+			}else if(this.dataList.form.type == 'hjAddPrice'){
+				ele.hjAddPrice = this.batchAlterNum
+				this.initData.push({id:ele.id,hjAddPrice:this.batchAlterNum})
+
+			}else if(this.dataList.form.type == 'zsAddPrice'){
+				ele.zsAddPrice = this.batchAlterNum
+				this.initData.push({id:ele.id,zsAddPrice:this.batchAlterNum})
+
 			}else if(this.dataList.form.type == 'stockWarning'){
 				ele.stockWarning = this.batchAlterNum
 				this.initData.push({id:ele.id,stockWarning:this.batchAlterNum})
@@ -934,13 +1190,19 @@ export default {
 	},
 	changeInputValue (d, type) {
 		this.dataList.form.type = type
-		let obj = {
-			id: d.id,
-		}
+		let obj = {id: d.id}
 		if(type == 'inTurn') {
 			obj.inTurn = d.inTurn
 		} else if(type == 'addPrice') {
 			obj.addPrice = d.addPrice
+		} else if(type == 'qtAddPrice') {
+			obj.qtAddPrice = d.qtAddPrice
+		} else if(type == 'byAddPrice') {
+			obj.byAddPrice = d.byAddPrice
+		} else if(type == 'hjAddPrice') {
+			obj.hjAddPrice = d.hjAddPrice
+		} else if(type == 'zsAddPrice') {
+			obj.zsAddPrice = d.zsAddPrice
 		} else if(type == 'cost') {
 			obj.cost  = d.cost 
 		}else if(type == 'weight') {

+ 2 - 2
ghsApp/src/admin/custom/selectCustom.vue

@@ -17,8 +17,8 @@
               <div class="tui-msg-content">
                 <span>{{ item.visitTime }}</span>
                 <span style="margin-left:50rpx;width:70rpx;color:red;font-weight:500">
-                  <text v-if="item.discount>=1"></text>
-                  <text v-else>{{ parseFloat((item.discount*10).toFixed(2)) }}折</text>
+                  <text v-if="item.level == 0"></text>
+                  <text v-else>{{ item.levelName }}</text>
                 </span>
                 <span v-if="item.debtAmount > 0" class="debt-amount">欠款:<span class="amount_num">{{item.debtAmount}}</span></span>
               </div>

+ 2 - 2
ghsApp/src/admin/home/member.vue

@@ -28,8 +28,8 @@
               <div class="tui-msg-content">
                 <span>{{ item.visitTime }}</span>
                 <span style="margin-left:50rpx;width:70rpx;color:red;font-weight:500">
-                  <text v-if="item.discount>=1"></text>
-                  <text v-else>{{ parseFloat((item.discount*10).toFixed(2)) }}折</text>
+                  <text v-if="item.level == 0"></text>
+                  <text v-else>{{ item.levelName }}</text>
                 </span>
                 <span v-if="tabIndex == 2" class="debt-amount">总消费:<span class="amount_num">{{item.buyAmount}}</span></span>
                 <span v-else>

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

@@ -13,4 +13,8 @@ export const updateCustomBlack = data => {
 
 export const changeDiscount = data => {
 	return https.get('/custom/change-discount', data)
+}
+
+export const changeLevel = data => {
+	return https.get('/custom/change-level', data)
 }

+ 61 - 11
ghsApp/src/pagesClient/member/detail.vue

@@ -8,10 +8,10 @@
                 <AppAvatarModule class="avatar" :src="userInfo.avatar" :width="100"></AppAvatarModule>
                 <view class="dec-bx">
                   <view>
-                      {{userInfo.name}}
+                      <text>{{userInfo.name}}</text> <text v-if="userInfo.level == 0" class="level-common">{{userInfo.levelName}}</text><text v-else class="level">{{userInfo.levelName}}</text>
                   </view>
                   <view>
-                      No.{{userInfo.sn}}
+                      No.{{userInfo.sn}} 
                   </view>
                 </view>
             </view>
@@ -64,6 +64,11 @@
             <tui-list-cell class="line-cell" :hover="false" :arrow="true" @click="pageTo({ url: '/admin/clear/customList',query: {customId: userInfo.id}})">
               <div class="tui-title">历史帐单</div>
             </tui-list-cell>
+
+            <tui-list-cell class="line-cell" :hover="false" :arrow="true" @click="changeLevel()">
+              <div class="tui-title">修改会员等级</div>
+            </tui-list-cell>
+
             <tui-list-cell class="line-cell" :hover="false">
               <div class="tui-title">允许欠款</div>
               <div class="switch_bx">
@@ -86,11 +91,6 @@
               </div>
             </tui-list-cell>
 
-						<tui-list-cell class="line-cell" :hover="false">
-              <div class="tui-title">折扣</div>
-              <input v-model="discount" @click="discount=''" placeholder-class="phcolor" class="tui-input" confirm-type="go" placeholder="95折填0.95,无折扣填1" type="digit" style="width:48%;border:1px solid #ddd;margin-right:15rpx;height:52rpx;" />
-              <button class="admin-button-com blue mini-btn" @tap="changeDiscount">确定</button>
-						</tui-list-cell>
 
         </view>
       </view>
@@ -104,7 +104,7 @@ import AppAvatarModule from "@/components/module/app-avatar";
 import TuiListCell from '@/components/plugin/list-cell'
 import { share } from "@/mixins";
 import { getUserDet,debt} from "@/api/member";
-import { updateDebtLimit,updateCustomBlack,changeDiscount} from "@/api/custom";
+import { updateDebtLimit,updateCustomBlack,changeDiscount,changeLevel} from "@/api/custom";
 export default {
   name: "member-detail",
   components: {
@@ -128,6 +128,38 @@ export default {
   computed: {},
   onLoad() {},
   methods: {
+    changeLevel(){
+
+      let that = this
+      let levelList = ['普通', '青铜', '白银','黄金','钻石']
+      uni.showActionSheet({
+        itemList: levelList,
+        success: function (respond) {
+          let currentIndex = respond.tapIndex
+          let levelName =   levelList[currentIndex] || '';
+
+            uni.showModal({
+							title: "提示",
+							content: "确认修改为"+levelName+"客户?",
+							confirmText: "确认",
+							success: function (res) {
+								if (res.confirm) {
+									changeLevel({customId:that.option.id,level:currentIndex}).then(res => {
+										if(res.code == 1) {
+                      that.getUserDetail()
+											that.$msg(res.msg)
+										}
+									}).catch(err => {
+										console.log('err', err)
+									})
+								}
+							},
+						});
+
+        }
+      })
+
+    },
 		navigate(latitude, longitude, address) {   
 			// 将经纬度转换成Number
 			let latituded = Number(latitude);
@@ -190,9 +222,9 @@ export default {
       });
     },
     init() {
-      this._getUserDet();
+      this.getUserDetail();
     },
-    _getUserDet() {
+    getUserDetail() {
       getUserDet({ id: this.option.id }).then(res => {
         this.debtLimit = res.data.debtLimit;
         this.userInfo = res.data;
@@ -242,13 +274,31 @@ export default {
          padding-left: 130px;
          & > view:nth-child(1) {
            color: #333333;
-           font-size: 36px;
+           font-size: 32px;
            margin-bottom: 3px;
          }
          & > view:nth-child(2) {
            color: #666666;
            font-size: 30px;
          }
+         .level{
+            margin-left:30rpx;
+            color:white;
+            background:#3385FF;
+            border:1px solid #3385FF;
+            border-radius:50rpx;
+            font-size:22rpx;
+            padding:6rpx 20rpx;
+         }
+         .level-common{
+            margin-left:30rpx;
+            color:white;
+            background:#CCCCCC;
+            border:1px solid #CCCCCC;
+            border-radius:50rpx;
+            font-size:20rpx;
+            padding:5rpx 20rpx;
+         }
        }
     }
     & .already-shop {