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. 39
      pages/goods/list.vue

32
pages/category/economybusiness/list.vue

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

32
pages/category/tradingentity/list.vue

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

39
pages/goods/list.vue

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

Loading…
Cancel
Save