Commit d7c16e2099d1396cddd671be154171600b28ff31
1 parent
00ef6b5a
服务卡项修改
Showing
3 changed files
with
9 additions
and
9 deletions
packageA/pages/service_share/service_share.js
| @@ -167,9 +167,9 @@ Page({ | @@ -167,9 +167,9 @@ Page({ | ||
| 167 | active2: !this.data.active2 | 167 | active2: !this.data.active2 |
| 168 | }); | 168 | }); |
| 169 | }; | 169 | }; |
| 170 | - if(this.data.orderField!="shop_price"){ | 170 | + if(this.data.orderField!="money"){ |
| 171 | this.setData({ | 171 | this.setData({ |
| 172 | - active1: 1,orderField:'shop_price',orderType:'asc',is_no_data:0,is_no_more:0,list:[], | 172 | + active1: 1,orderField:'money',orderType:'asc',is_no_data:0,is_no_more:0,list:[], |
| 173 | }); | 173 | }); |
| 174 | }else{ | 174 | }else{ |
| 175 | 175 | ||
| @@ -861,8 +861,8 @@ Page({ | @@ -861,8 +861,8 @@ Page({ | ||
| 861 | 861 | ||
| 862 | 862 | ||
| 863 | goto:function(e) { | 863 | goto:function(e) { |
| 864 | - var url = e.currentTarget.dataset.url; | ||
| 865 | - app.goto(url); | 864 | + var url = e.currentTarget.dataset.url; |
| 865 | + app.goto(url); | ||
| 866 | }, | 866 | }, |
| 867 | 867 | ||
| 868 | 868 |
packageA/pages/service_share/service_share.wxml
| @@ -12,7 +12,7 @@ | @@ -12,7 +12,7 @@ | ||
| 12 | <view class="title"> | 12 | <view class="title"> |
| 13 | <view class="title-item f1" bindtap="sale_sort">销量</view> | 13 | <view class="title-item f1" bindtap="sale_sort">销量</view> |
| 14 | 14 | ||
| 15 | - <block wx:if="{{orderField=='shop_price'}}"> | 15 | + <block wx:if="{{orderField=='money'}}"> |
| 16 | <view class="title-item f1" bindtap="sort1">价格<text class="iconfont {{orderType=='asc'?'icon-shang':'icon-xia'}}"></text></view> | 16 | <view class="title-item f1" bindtap="sort1">价格<text class="iconfont {{orderType=='asc'?'icon-shang':'icon-xia'}}"></text></view> |
| 17 | </block> | 17 | </block> |
| 18 | <block wx:else> | 18 | <block wx:else> |
| @@ -37,11 +37,11 @@ | @@ -37,11 +37,11 @@ | ||
| 37 | > | 37 | > |
| 38 | <block wx:for="{{list}}"> | 38 | <block wx:for="{{list}}"> |
| 39 | <!-- <view class class="list-item" bindtap="go_goods" data-index="{{index}}"> --> | 39 | <!-- <view class class="list-item" bindtap="go_goods" data-index="{{index}}"> --> |
| 40 | - <view class class="list-item" bindtap="goto" data-index="{{index}}" data-url="{{'/packageA/pages/cardDetails/cardDetails?id=' + item.id}}"> | 40 | + <view class class="list-item" bindtap="goto" data-index="{{index}}" data-url="{{'/packageA/pages/goodsInfo/goodsInfo?goods_id=' + item.id}}"> |
| 41 | <view class="img-container"> | 41 | <view class="img-container"> |
| 42 | - <image src="{{url+item.original_img}}" style="width: 100%; height: 100%;" | 42 | + <image src="{{url+item.imgUrl}}" style="width: 100%; height: 100%;" |
| 43 | binderror="bind_bnerr2" lazy-load="true" | 43 | binderror="bind_bnerr2" lazy-load="true" |
| 44 | - data-errorimg="list[{{index}}].original_img"></image> | 44 | + data-errorimg="list[{{index}}].imgUrl" mode="aspectFit"></image> |
| 45 | </view> | 45 | </view> |
| 46 | <view class="details"> | 46 | <view class="details"> |
| 47 | <view class="ellipsis-2 fs28 name">{{item.serviceName}}</view> | 47 | <view class="ellipsis-2 fs28 name">{{item.serviceName}}</view> |
packageA/pages/service_share/service_share.wxss
| @@ -67,7 +67,7 @@ page { | @@ -67,7 +67,7 @@ page { | ||
| 67 | } | 67 | } |
| 68 | .img-container { | 68 | .img-container { |
| 69 | background-color: #f0f0f0; | 69 | background-color: #f0f0f0; |
| 70 | - width: 280rpx; | 70 | + width: 248rpx; |
| 71 | height: 248rpx; | 71 | height: 248rpx; |
| 72 | display: flex; | 72 | display: flex; |
| 73 | align-items: center; | 73 | align-items: center; |