Browse Source

数据店铺新增图标,优化认证状态

master
wanghongjun 2 years ago
parent
commit
0faabe3970
  1. 32
      pages/category/economybusiness/list.vue
  2. 32
      pages/category/tradingentity/list.vue
  3. 41
      pages/goods/list.vue

32
pages/category/economybusiness/list.vue

@ -26,8 +26,11 @@
<view class="goods-name"> <view class="goods-name">
<text class="twoline-hide">{{ userList.name }}</text> <text class="twoline-hide">{{ userList.name }}</text>
</view> </view>
<view class="goods-auth-type"> <view class="goods-auth-type" v-if="userList.name">
<text class="twoline-hide">{{ userList.authType }}</text> <view class="twoline-hide">
<image class="twoline-hide-image" src="../../../static/tabbar/shopping-type.png" mode="widthFix" />
<text>{{ userList.authType }}</text>
</view>
</view> </view>
<view class="goods-auth-num" v-if="total != ''"> <view class="goods-auth-num" v-if="total != ''">
<text class="twoline-hide">标的数量{{ total }}</text> <text class="twoline-hide">标的数量{{ total }}</text>
@ -237,12 +240,12 @@
}, },
getUserStateStr(state){ getUserStateStr(state){
let str = '' let str = ''
if (state == "1" || state == "3" || state == "7" || state == "0") { if (state == '0') {
str = '认证中' str = "认证中";
} else if (state == "2" || state == "4" || state == "5") { } else if (state == '1') {
str = '认证失败' str = "认证成功";
} else if (state == "6") { } else if (state == '2') {
str = '认证成功' str = "认证失败";
} }
return str return str
}, },
@ -379,10 +382,21 @@
font-size: 26rpx; font-size: 26rpx;
color: #fbb154; color: #fbb154;
font-weight: bold; font-weight: bold;
image {
float: left;
width: 40rpx;
}
text {
float: left;
margin-top: -3rpx;
margin-left: 20rpx;
}
} }
.goods-auth-num { .goods-auth-num {
float: left; float: left;
margin-left: -75rpx; margin-left: -135rpx;
margin-top: 70rpx; margin-top: 70rpx;
font-size: 24rpx; font-size: 24rpx;
color: #d7d7d7; color: #d7d7d7;

32
pages/category/tradingentity/list.vue

@ -26,8 +26,11 @@
<view class="goods-name"> <view class="goods-name">
<text class="twoline-hide">{{ userList.name }}</text> <text class="twoline-hide">{{ userList.name }}</text>
</view> </view>
<view class="goods-auth-type"> <view class="goods-auth-type" v-if="userList.name">
<text class="twoline-hide">{{ userList.authType }}</text> <view class="twoline-hide">
<image class="twoline-hide-image" src="../../../static/tabbar/shopping-type.png" mode="widthFix" />
<text>{{ userList.authType }}</text>
</view>
</view> </view>
<view class="goods-auth-num" v-if="total != ''"> <view class="goods-auth-num" v-if="total != ''">
<text class="twoline-hide">标的数量{{ total }}</text> <text class="twoline-hide">标的数量{{ total }}</text>
@ -237,12 +240,12 @@
}, },
getUserStateStr(state){ getUserStateStr(state){
let str = '' let str = ''
if (state == "1" || state == "3" || state == "7" || state == "0") { if (state == '0') {
str = '认证中' str = "认证中";
} else if (state == "2" || state == "4" || state == "5") { } else if (state == '1') {
str = '认证失败' str = "认证成功";
} else if (state == "6") { } else if (state == '2') {
str = '认证成功' str = "认证失败";
} }
return str return str
}, },
@ -379,10 +382,21 @@
font-size: 26rpx; font-size: 26rpx;
color: #fbb154; color: #fbb154;
font-weight: bold; font-weight: bold;
image {
float: left;
width: 40rpx;
}
text {
float: left;
margin-top: -3rpx;
margin-left: 20rpx;
}
} }
.goods-auth-num { .goods-auth-num {
float: left; float: left;
margin-left: -75rpx; margin-left: -135rpx;
margin-top: 70rpx; margin-top: 70rpx;
font-size: 24rpx; font-size: 24rpx;
color: #d7d7d7; color: #d7d7d7;

41
pages/goods/list.vue

@ -26,8 +26,11 @@
<view class="goods-name"> <view class="goods-name">
<text class="twoline-hide">{{ userList.name }}</text> <text class="twoline-hide">{{ userList.name }}</text>
</view> </view>
<view class="goods-auth-type"> <view class="goods-auth-type" v-if="userList.name">
<text class="twoline-hide">{{ userList.authType }}</text> <view class="twoline-hide">
<image class="twoline-hide-image" src="../../static/tabbar/shopping-type.png" mode="widthFix" />
<text>{{ userList.authType }}</text>
</view>
</view> </view>
<view class="goods-auth-num" v-if="total != ''"> <view class="goods-auth-num" v-if="total != ''">
<text class="twoline-hide">标的数量{{ total }}</text> <text class="twoline-hide">标的数量{{ total }}</text>
@ -224,13 +227,20 @@
}, },
getUserStateStr(state){ getUserStateStr(state){
let str = '' let str = ''
if (state == "1" || state == "3" || state == "7" || state == "0") { if (state == '0') {
str = '认证中' str = "认证中";
} else if (state == "2" || state == "4" || state == "5") { } else if (state == '1') {
str = '认证失败' str = "认证成功";
} else if (state == "6") { } else if (state == '2') {
str = '认证成功' str = "认证失败";
} }
// if (state == "1" || state == "3" || state == "7" || state == "0") {
// str = ''
// } else if (state == "2" || state == "4" || state == "5") {
// str = ''
// } else if (state == "6") {
// str = ''
// }
return str return str
}, },
// //
@ -366,10 +376,21 @@
font-size: 26rpx; font-size: 26rpx;
color: #fbb154; color: #fbb154;
font-weight: bold; font-weight: bold;
image {
float: left;
width: 40rpx;
}
text {
float: left;
margin-top: -3rpx;
margin-left: 20rpx;
}
} }
.goods-auth-num { .goods-auth-num {
float: left; float: left;
margin-left: -75rpx; margin-left: -135rpx;
margin-top: 70rpx; margin-top: 70rpx;
font-size: 24rpx; font-size: 24rpx;
color: #d7d7d7; color: #d7d7d7;

Loading…
Cancel
Save