Commit 67d5963189c18312963847956c4c66acecbe647f
Revert "首页点击我的服务判断是否已注册"
This reverts commit 0ce9c52abb67b5a9c207f8eb8ba46e3f735f7650.
Showing
2 changed files
with
2 additions
and
13 deletions
pages/user/index/index.js
| @@ -40,18 +40,7 @@ Page({ | @@ -40,18 +40,7 @@ Page({ | ||
| 40 | onLoad: function (options) { | 40 | onLoad: function (options) { |
| 41 | 41 | ||
| 42 | }, | 42 | }, |
| 43 | - //我的服务跳转前判断 | ||
| 44 | - goto_service:function(){ | ||
| 45 | - var th = this; | ||
| 46 | - if(th.data.userInfo!=null){ | ||
| 47 | - var url = "/pages/user/my_service/i_service"; | ||
| 48 | - getApp().goto(url); | ||
| 49 | - }else{ | ||
| 50 | - wx.navigateTo({ | ||
| 51 | - url: '/pages/getphone/getphone', | ||
| 52 | - }) | ||
| 53 | - } | ||
| 54 | - }, | 43 | + |
| 55 | /** | 44 | /** |
| 56 | * 生命周期函数--监听页面显示 | 45 | * 生命周期函数--监听页面显示 |
| 57 | */ | 46 | */ |
pages/user/index/index.wxml
| @@ -212,7 +212,7 @@ | @@ -212,7 +212,7 @@ | ||
| 212 | <image class="xc-center-img " src="{{iurl}}/miniapp/images/add2.png"></image> | 212 | <image class="xc-center-img " src="{{iurl}}/miniapp/images/add2.png"></image> |
| 213 | <view class="four-level-word">我的地址</view> | 213 | <view class="four-level-word">我的地址</view> |
| 214 | </view> | 214 | </view> |
| 215 | - <view class="item t-c" data-url="/pages/user/my_service/i_service" bindtap="goto_service" > | 215 | + <view class="item t-c" data-url="/pages/user/my_service/i_service" bindtap="goto" > |
| 216 | <image class="xc-center-img " src="{{iurl}}/miniapp/images/yyservice/myservice.png"></image> | 216 | <image class="xc-center-img " src="{{iurl}}/miniapp/images/yyservice/myservice.png"></image> |
| 217 | <view class="four-level-word">我的服务</view> | 217 | <view class="four-level-word">我的服务</view> |
| 218 | </view> | 218 | </view> |