作者 root

合并分支 'sgj' 到 'master'

Sgj



查看合并请求 !3
1 <view class="answer" wx:for="{{list}}" wx:for-index="index"> 1 <view class="answer" wx:for="{{list}}" wx:for-index="index">
2 - <view class="answer_left" wx:if="{{item.id<9}}">0{{item.id}}</view>  
3 - <view class="answer_left" wx:else>{{item.id}}</view> 2 + <view class="answer_left" wx:if="{{index+1<9}}">0{{index+1}}</view>
  3 + <view class="answer_left" wx:else>{{index+1}}</view>
4 <view class="answer_right"> 4 <view class="answer_right">
5 <view class="answer_question">{{item.title}}</view> 5 <view class="answer_question">{{item.title}}</view>
6 <radio-group bindchange="radioChange"> 6 <radio-group bindchange="radioChange">
@@ -70,7 +70,13 @@ @@ -70,7 +70,13 @@
70 <view class='my_itemletf'> 70 <view class='my_itemletf'>
71 <view class='iconfont '> 71 <view class='iconfont '>
72 <image src="/imgs/ac5.png"></image> 72 <image src="/imgs/ac5.png"></image>
73 - </view>成为志愿者 73 + </view>
  74 + <block wx:if="{{datalist.status==''}}">成为志愿者
  75 +
  76 + </block>
  77 + <block wx:if="{{datalist.status!=''}}">我的资料
  78 +
  79 + </block>
74 </view> 80 </view>
75 <view class='iconfont icon-xiangyou'></view> 81 <view class='iconfont icon-xiangyou'></view>
76 82
@@ -68,6 +68,13 @@ @@ -68,6 +68,13 @@
68 let head = { 68 let head = {
69 'XX-Token': wx.getStorageSync('token') 69 'XX-Token': wx.getStorageSync('token')
70 } 70 }
  71 + if(that.data.datalist==null){
  72 + wx.showToast({
  73 + title: '请选择收货地址',
  74 + icon:'none'
  75 + })
  76 + return;
  77 + }
71 app.post(url, { 78 app.post(url, {
72 good_id: that.data.goodsInfo.id, 79 good_id: that.data.goodsInfo.id,
73 num: that.data.count, 80 num: that.data.count,