Commit 1e2bdafafe6bd54a2bd5919ee4a46fa5b44b97b8
1 parent
5dc253ee08
Exists in
dev_wjl
and in
1 other branch
修改服务开通
Showing 5 changed files with 13 additions and 10 deletions
littleApp_child/pages/diet/measuret.js
View file @
1e2bdaf
| ... | ... | @@ -194,6 +194,7 @@ |
| 194 | 194 | const Names = this.data.foodListNames; |
| 195 | 195 | const items = this.data.foodList; |
| 196 | 196 | const values = e.detail.value; |
| 197 | + console.log('哈哈哈',values); | |
| 197 | 198 | for (let i = 0, lenI = items.length; i < lenI; ++i) { |
| 198 | 199 | items[i].add = 0; |
| 199 | 200 | items[i].love = 0; |
littleApp_child/pages/vipService/vipService.js
View file @
1e2bdaf
| ... | ... | @@ -19,7 +19,7 @@ |
| 19 | 19 | networkUtil.showLoading() |
| 20 | 20 | self.setData({ |
| 21 | 21 | phone: app.globalData.userInfo.phone, |
| 22 | - userId:e.id, | |
| 22 | + userId:wx.getStorageSync('erid'), | |
| 23 | 23 | hospitalId:wx.getStorageSync('hospitalId') |
| 24 | 24 | }) |
| 25 | 25 | |
| 26 | 26 | |
| 27 | 27 | |
| ... | ... | @@ -47,13 +47,11 @@ |
| 47 | 47 | requestData() { |
| 48 | 48 | var self = this |
| 49 | 49 | var param = { |
| 50 | - userId:self.data.userId | |
| 50 | + babyId:self.data.userId | |
| 51 | 51 | } |
| 52 | - networkUtil._get(api.goods, param, function (res) { | |
| 53 | - console.log(res) | |
| 54 | - | |
| 52 | + networkUtil._get(api.goods, {}, function (res) { | |
| 53 | + console.log('vip1',res) | |
| 55 | 54 | self.setData({ |
| 56 | - | |
| 57 | 55 | vipList: res.data.data, |
| 58 | 56 | }) |
| 59 | 57 | }, function (res) { |
| ... | ... | @@ -64,7 +62,7 @@ |
| 64 | 62 | var id = e.currentTarget.dataset.id |
| 65 | 63 | var status = e.currentTarget.dataset.status |
| 66 | 64 | var price = e.currentTarget.dataset. price |
| 67 | - if (status == 0 && price > 0){ | |
| 65 | + if (status == 0 && price > 0&&this.data.isVip){ | |
| 68 | 66 | wx.navigateTo({ |
| 69 | 67 | url: '../order_payment/order_payment?id='+id, |
| 70 | 68 | }) |
littleApp_child/pages/vipService/vipService.wxml
View file @
1e2bdaf
| ... | ... | @@ -34,11 +34,13 @@ |
| 34 | 34 | <view class="vip_intr_titleBar_nameplate noVip" wx:if="{{item.price==0}}">标准</view> |
| 35 | 35 | |
| 36 | 36 | <view class="vip_intr_price_text" wx:if="{{item.price!=0 && hospitalId !== 666668 }}">¥{{item.price}}</view> |
| 37 | - <view class="vip_intr_status_text" wx:if="{{item.status==1||item.price==0}}">已开通</view> | |
| 37 | + <!-- <view class="vip_intr_status_text" wx:if="{{item.status==1||item.price==0}}">已开通</view> | |
| 38 | 38 | <view class="vip_intr_status_text" wx:if="{{item.status==3}}">已过期</view> |
| 39 | 39 | <view class="vip_intr_status_text" wx:if="{{item.status==4}}">已暂停</view> |
| 40 | 40 | <view class="openbt" wx:if="{{item.status==0&&item.price!=0 }}">开通</view> |
| 41 | - <view class="openbt" wx:if="{{item.status==2&&item.price!=0 }}">开通</view> | |
| 41 | + <view class="openbt" wx:if="{{item.status==2&&item.price!=0 }}">开通</view> --> | |
| 42 | + <view class="vip_intr_status_text" wx:if="{{isVip}}">已开通</view> | |
| 43 | + <view class="vip_intr_status_text" wx:if="{{!isVip}}">未开通</view> | |
| 42 | 44 | </view> |
| 43 | 45 | <view class="vip_intr_content">{{item.desc}}</view> |
| 44 | 46 | <view style='height:19px;'></view> |
littleApp_child/utils/apiFile.js
View file @
1e2bdaf
littleApp_child/utils/network_util.js
View file @
1e2bdaf