Showing
3 changed files
with
7 additions
and
5 deletions
| @@ -55,12 +55,14 @@ Component({ | @@ -55,12 +55,14 @@ Component({ | ||
| 55 | data: { | 55 | data: { |
| 56 | }, | 56 | }, |
| 57 | lifetimes: { | 57 | lifetimes: { |
| 58 | - attached: function () {this.init()}, | 58 | + attached: function () {}, |
| 59 | moved: function () { }, | 59 | moved: function () { }, |
| 60 | detached: function () { }, | 60 | detached: function () { }, |
| 61 | }, | 61 | }, |
| 62 | - attached(){ | ||
| 63 | - | 62 | + observers:{ |
| 63 | + 'seller':function(seller){ | ||
| 64 | + this.init() | ||
| 65 | + } | ||
| 64 | }, | 66 | }, |
| 65 | /** | 67 | /** |
| 66 | * 组件的方法列表 | 68 | * 组件的方法列表 |
| @@ -16,7 +16,7 @@ | @@ -16,7 +16,7 @@ | ||
| 16 | <view class="text flex-ll"> | 16 | <view class="text flex-ll"> |
| 17 | <view class="text-item" wx:if="{{seller.cate[0].name}}">{{seller.cate[0].name}}</view> | 17 | <view class="text-item" wx:if="{{seller.cate[0].name}}">{{seller.cate[0].name}}</view> |
| 18 | <view class="text-item" wx:if="{{seller.room_num>0}}">{{seller.room_num}}个包间</view> | 18 | <view class="text-item" wx:if="{{seller.room_num>0}}">{{seller.room_num}}个包间</view> |
| 19 | - <view class="text-item" wx:if="{{se.distanceStr}}">距您{{se.distanceStr}}</view> | 19 | + <view class="text-item" wx:if="{{se.distanceStr}}">{{se.distanceStr}}</view> |
| 20 | </view> | 20 | </view> |
| 21 | <view wx:if="{{hasStat}}" class="stat"> | 21 | <view wx:if="{{hasStat}}" class="stat"> |
| 22 | <stat stat="{{seller.score}}"></stat> | 22 | <stat stat="{{seller.score}}"></stat> |
| @@ -21,7 +21,7 @@ | @@ -21,7 +21,7 @@ | ||
| 21 | } | 21 | } |
| 22 | }, | 22 | }, |
| 23 | "compileType": "miniprogram", | 23 | "compileType": "miniprogram", |
| 24 | - "libVersion": "2.4.2", | 24 | + "libVersion": "2.6.1", |
| 25 | "appid": "wxd3dc4206c76f14fc", | 25 | "appid": "wxd3dc4206c76f14fc", |
| 26 | "projectname": "xcx-book", | 26 | "projectname": "xcx-book", |
| 27 | "isGameTourist": false, | 27 | "isGameTourist": false, |
-
Please register or login to post a comment