Commit 4972deb2affecd0178cf4d5a3fecdd80461c7ab1
1 parent
6c60202d
显示带域名的图片
Showing
1 changed file
with
9 additions
and
3 deletions
pages/goods/categoryList/categoryList.wxml
| @@ -48,7 +48,10 @@ | @@ -48,7 +48,10 @@ | ||
| 48 | <view class='f_item' | 48 | <view class='f_item' |
| 49 | bindtap="go_nation" data-nid="{{bitem.id}}" | 49 | bindtap="go_nation" data-nid="{{bitem.id}}" |
| 50 | wx:for="{{nationlist}}" wx:for-item="bitem" wx:for-index="pidx"> | 50 | wx:for="{{nationlist}}" wx:for-item="bitem" wx:for-index="pidx"> |
| 51 | - <view><image class='n_img' src='{{iurl}}{{bitem.logo}}'></image> | 51 | + <view> |
| 52 | + <image wx:if="{{bitem.imgtype==1}}" class='n_img' src='{{bitem.logo}}'></image> | ||
| 53 | + <image wx:else class='n_img' src='{{iurl}}{{bitem.logo}}'></image> | ||
| 54 | + | ||
| 52 | <view class='nation_box'> | 55 | <view class='nation_box'> |
| 53 | <view class='nt_1'><text class="nt_1_t">{{bitem.name}}</text></view> | 56 | <view class='nt_1'><text class="nt_1_t">{{bitem.name}}</text></view> |
| 54 | <view class='nt_2'>{{bitem.enname}}</view> | 57 | <view class='nt_2'>{{bitem.enname}}</view> |
| @@ -165,7 +168,9 @@ | @@ -165,7 +168,9 @@ | ||
| 165 | </view> | 168 | </view> |
| 166 | <view class=" classify_content-frame flex-space-between " > | 169 | <view class=" classify_content-frame flex-space-between " > |
| 167 | <view bindtap="go_nation" class="country_img-frame rel outer_location"wx:for="{{nationlist}}" wx:for-item="bitem" wx:for-index="pidx" data-nid="{{bitem.id}}" > | 170 | <view bindtap="go_nation" class="country_img-frame rel outer_location"wx:for="{{nationlist}}" wx:for-item="bitem" wx:for-index="pidx" data-nid="{{bitem.id}}" > |
| 168 | - <image class="country_img" src="{{iurl}}{{bitem.logo}}"></image> | 171 | + <image wx:if="{{bitem.imgtype==1}}" class="country_img" src="{{bitem.logo}}"></image> |
| 172 | + <image wx:else class="country_img" src="{{iurl}}{{bitem.logo}}"></image> | ||
| 173 | + | ||
| 169 | <view class='nation_box abs box'> | 174 | <view class='nation_box abs box'> |
| 170 | <view class='nt_1 t-c line-height' style="height:50rpx"> | 175 | <view class='nt_1 t-c line-height' style="height:50rpx"> |
| 171 | <text class="nation_z_name ellipsis-1 nt_1_t height fs24">{{bitem.name}}</text> | 176 | <text class="nation_z_name ellipsis-1 nt_1_t height fs24">{{bitem.name}}</text> |
| @@ -349,7 +354,8 @@ | @@ -349,7 +354,8 @@ | ||
| 349 | </view> | 354 | </view> |
| 350 | <view class=" classify_content-frame flex-space-between " > | 355 | <view class=" classify_content-frame flex-space-between " > |
| 351 | <view bindtap="go_nation" class="country_img-frame rel outer_location"wx:for="{{nationlist}}" wx:for-item="bitem" wx:for-index="pidx" data-nid="{{bitem.id}}" > | 356 | <view bindtap="go_nation" class="country_img-frame rel outer_location"wx:for="{{nationlist}}" wx:for-item="bitem" wx:for-index="pidx" data-nid="{{bitem.id}}" > |
| 352 | - <image class="country_img" src="{{iurl}}{{bitem.logo}}"></image> | 357 | + <image wx:if="{{bitem.imgtype==1}}" class="country_img" src="{{bitem.logo}}"></image> |
| 358 | + <image wx:else class="country_img" src="{{iurl}}{{bitem.logo}}"></image> | ||
| 353 | <view class='nation_box abs box'> | 359 | <view class='nation_box abs box'> |
| 354 | <view class='nt_1 t-c line-height' style="height:50rpx"> | 360 | <view class='nt_1 t-c line-height' style="height:50rpx"> |
| 355 | <text class="nation_z_name ellipsis-1 nt_1_t height fs24">{{bitem.name}}</text> | 361 | <text class="nation_z_name ellipsis-1 nt_1_t height fs24">{{bitem.name}}</text> |