sslyg 3 роки тому
батько
коміт
77ba0a4cd1

+ 1 - 0
components/product-item/product-item.vue

@@ -90,6 +90,7 @@
 		display: inline-block;
 		position: relative;
 		top: -4rpx;
+		margin-right: 10upx;
 		// transform: scale(0.9);
 	}
 

+ 4 - 4
pages/user/user-center.vue

@@ -7,7 +7,7 @@
 			<view>
 				<view class="nickname">{{nickname}}</view>				
 				<view>
-					<text v-show="user_type===1" class="wddz">网店店主</text>
+					<text v-show="user_type===3" class="wddz">网店店主</text>
 					<text v-show="user_type===2" class="zgcj">直供厂家</text>
 				</view>
 			</view>
@@ -113,12 +113,12 @@
 		data() {
 			return {
 				balance: '',
-				deposit: '',
-				user_type: 1,
+				deposit: ''				
 			};
 		},
 		computed: mapState({
-			nickname: state => state.user.nickname
+			nickname: state => state.user.nickname,
+			user_type: state => state.user.group_id
 		}),
 		onNavigationBarButtonTap(e) {
 			// console.log(e)

+ 1 - 0
store/modules/user.js

@@ -1,5 +1,6 @@
 const defaults = {
 	nickname: "未设置昵称",
+	group_id: 3,
 	token: "",
 }
 const state = JSON.parse(JSON.stringify(defaults));