suizhijia пре 5 година
родитељ
комит
65641cf058
3 измењених фајлова са 9 додато и 4 уклоњено
  1. +1
    -1
      496_dongfengqichen/pages/coupon/coupon.js
  2. +1
    -1
      496_dongfengqichen/pages/coupon/coupon.wxml
  3. +7
    -2
      496_dongfengqichen/pages/yuyue/yuyue.js

+ 1
- 1
496_dongfengqichen/pages/coupon/coupon.js Прегледај датотеку

* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
*/ */
onShow: function () { onShow: function () {
app.globalData.nowPage = '0';
}, },


/** /**

+ 1
- 1
496_dongfengqichen/pages/coupon/coupon.wxml Прегледај датотеку

</view> </view>
</view> </view>
<image class="lookCar" bindtap="cutPage" src="{{imgUrl+'/newImages2/36.png'}}"></image> <image class="lookCar" bindtap="cutPage" src="{{imgUrl+'/newImages2/36.png'}}"></image>
<yuyue bindyuyue="placingControl" wx:if="{{placing}}"></yuyue>
<yuyue enterType="coupon" bindyuyue="placingControl" wx:if="{{placing}}"></yuyue>
<tabBar></tabBar> <tabBar></tabBar>
</view> </view>



+ 7
- 2
496_dongfengqichen/pages/yuyue/yuyue.js Прегледај датотеку

* 组件的属性列表 * 组件的属性列表
*/ */
properties: { properties: {

enterType:{
type:String,
value:''
}
}, },


/** /**
userData:null userData:null
}, },
ready:function(){ ready:function(){
console.log(this.data.enterType);
if (app.globalData.openid) { if (app.globalData.openid) {
this.loadFun(); this.loadFun();
} else { } else {
this.data.subscribeData.mobile = sourceMobile; this.data.subscribeData.mobile = sourceMobile;
this.data.appointment = true; this.data.appointment = true;
if (res.code == 200) { if (res.code == 200) {
if (app.globalData.nowPage=='0'){
if (this.data.enterType=='coupon'){
wx.reLaunch({ wx.reLaunch({
url: '/pages/index/index' url: '/pages/index/index'
}) })
}) })
app.submitUserMsg(e.detail.userInfo.avatarUrl, e.detail.userInfo.nickName); app.submitUserMsg(e.detail.userInfo.avatarUrl, e.detail.userInfo.nickName);
} }
this.subscribeFun();
} }
} }
}) })

Loading…
Откажи
Сачувај