Explorar el Código

新用户授权跳转判断修改

tags/湖南版5.1.4
刘晖 hace 6 años
padre
commit
58c9b9803b
Se han modificado 1 ficheros con 13 adiciones y 2 borrados
  1. +13
    -2
      pages/getuserinfo/index.js

+ 13
- 2
pages/getuserinfo/index.js Ver fichero

@@ -78,6 +78,7 @@ Page({
.then( .then(
function (res) { function (res) {
console.log(res, that.data,6666666666) console.log(res, that.data,6666666666)
// console.log(options && options.id && app.globalData.type == 'td',55555)
if (that.data.optionData.orderGroupId){ if (that.data.optionData.orderGroupId){
wx.reLaunch({ wx.reLaunch({
url: `/pages/joinFrDpell/index?couponId=${that.data.optionData.couponId}&orderGroupId=${that.data.optionData.orderGroupId}&couponChannelId=${that.data.optionData.couponChannelId}&orderId=${that.data.optionData.orderId}&avatarUrl=${that.data.optionData.avatarUrl}&nickName=${that.data.optionData.nickName}` url: `/pages/joinFrDpell/index?couponId=${that.data.optionData.couponId}&orderGroupId=${that.data.optionData.orderGroupId}&couponChannelId=${that.data.optionData.couponChannelId}&orderId=${that.data.optionData.orderId}&avatarUrl=${that.data.optionData.avatarUrl}&nickName=${that.data.optionData.nickName}`
@@ -186,12 +187,22 @@ Page({
wx.redirectTo({ wx.redirectTo({
url: '/pages/discountCardList/discountCardList' url: '/pages/discountCardList/discountCardList'
}); });
} else if (options && options.id && app.globalData.type == 'td') {
} else if (app.globalData.type == 'td') {
// 专题活动页 // 专题活动页
wx.redirectTo({ wx.redirectTo({
url: '/pages/topicDetail/index' url: '/pages/topicDetail/index'
}); });
} else if (app.globalData.type == 'ml') {
}
/**
* options有问题
*/
// else if (options && options.id && app.globalData.type == 'td') {
// // 专题活动页
// wx.redirectTo({
// url: '/pages/topicDetail/index'
// });
// }
else if (app.globalData.type == 'ml') {
// 门店 // 门店
wx.redirectTo({ wx.redirectTo({
url: '/pages/index/searchbar/index' url: '/pages/index/searchbar/index'


Cargando…
Cancelar
Guardar