Browse Source

更新下

master
yvette 5 years ago
parent
commit
d8d2c5d7af
  1. 2
      pages/activity/suyear/index.js
  2. 2
      pages/login/index.js
  3. 2
      pages/map/index.wxml
  4. 2
      pages/user/bindtel/index.js
  5. 2
      utils/https.js

2
pages/activity/suyear/index.js

@ -77,7 +77,7 @@ Page({
if(item.title=='沙家浜景区'){ if(item.title=='沙家浜景区'){
wx.navigateToMiniProgram({ wx.navigateToMiniProgram({
appId: 'wx98a352b4689e46d8', appId: 'wx98a352b4689e46d8',
path:'pages/sightspots/booking?id=24&type=default' path:'pages/sightspots/booking?id=32&type=default'
}) })
return; return;
} }

2
pages/login/index.js

@ -38,7 +38,7 @@ Page({
// 已经注册的用户返回userinfo // 已经注册的用户返回userinfo
if (r.data.isBindMobile === 0) { if (r.data.isBindMobile === 0) {
wx.redirectTo({ wx.redirectTo({
url: '/pages/user/bindtel/index?regToken=' + r.data.openid, url: '/pages/user/bindtel/index?regToken=' + encodeURIComponent(r.data.openid),
}) })
} }
else if(r.data && r.data.id && r.data.token){ else if(r.data && r.data.id && r.data.token){

2
pages/map/index.wxml

@ -49,6 +49,6 @@
<view class="info" style="{{info.info.headimg?'':'width:100%'}}"> <view class="info" style="{{info.info.headimg?'':'width:100%'}}">
<view class="title textOver">{{info.info.title}}</view> <view class="title textOver">{{info.info.title}}</view>
<view class="subtitle textOver2">地址:{{info.info.address}}</view> <view class="subtitle textOver2">地址:{{info.info.address}}</view>
<view wx:if="{{item.type!='academes'}}" bindtap="gotoDetail" class="info-btn">查看详情</view> <view wx:if="{{info.info.type!='academes'}}" bindtap="gotoDetail" class="info-btn">查看详情</view>
</view> </view>
</view> </view>

2
pages/user/bindtel/index.js

@ -25,7 +25,7 @@ Page({
onLoad: function (options) { onLoad: function (options) {
this.changeImgCode(); this.changeImgCode();
this.setData({ this.setData({
regToken: options.regToken || null regToken: decodeURIComponent(options.regToken) || null
}) })
}, },
cancel:function(){ cancel:function(){

2
utils/https.js

@ -231,7 +231,7 @@ const checkLogin = () => {
// 已经注册的用户返回userinfo // 已经注册的用户返回userinfo
else if (r.data.isBindMobile === 0 && page[page.length-1].route!='pages/user/bindtel/index') { else if (r.data.isBindMobile === 0 && page[page.length-1].route!='pages/user/bindtel/index') {
wx.navigateTo({ wx.navigateTo({
url: '/pages/user/bindtel/index?regToken=' + r.data.openid, url: '/pages/user/bindtel/index?regToken=' + encodeURIComponent(r.data.openid),
}) })
} }
}).catch(err => { }).catch(err => {

Loading…
Cancel
Save