Przeglądaj źródła

分享授权跳转传参修改

tags/富茂链客4.1.0
刘晖 6 lat temu
rodzic
commit
90385baffb
1 zmienionych plików z 6 dodań i 6 usunięć
  1. +6
    -6
      pages/index/index.js

+ 6
- 6
pages/index/index.js Wyświetl plik

@@ -88,20 +88,20 @@ Page({
.catch(err => { .catch(err => {
if (err.code == 11004) { if (err.code == 11004) {
// 用户昵称未授权 // 用户昵称未授权
if (couponChannelId && !cuserId) {
if (options.couponChannelId && !options.cuserId) {
wx.redirectTo({ wx.redirectTo({
url: `/pages/getuserinfo/index?couponChannelId=${couponChannelId}`
url: `/pages/getuserinfo/index?couponChannelId=${options.couponChannelId}`
}); });
} else if (couponChannelId && cuserId){
} else if (options.couponChannelId && options.cuserId){
/** /**
* 转赠判断 * 转赠判断
*/ */
wx.redirectTo({ wx.redirectTo({
url: `/pages/getuserinfo/index?couponChannelId=${couponChannelId}&cuserId=${cuserId}&coverImg=${coverImg}&userName=${userName}&avatarUrl=${avatarUrl}&couponOrderId=${couponOrderId}&updateDate=${updateDate}`
url: `/pages/getuserinfo/index?couponChannelId=${options.couponChannelId}&cuserId=${options.cuserId}&coverImg=${options.coverImg}&userName=${options.userName}&avatarUrl=${options.avatarUrl}&couponOrderId=${options.couponOrderId}&updateDate=${options.updateDate}`
}); });
} else if (orderId) {
} else if (options.orderId) {
wx.redirectTo({ wx.redirectTo({
url: `/pages/getuserinfo/index?orderId=${orderId}&from='${"discount"}`
url: `/pages/getuserinfo/index?orderId=${options.orderId}&from='${"discount"}`
}); });
} else { } else {
wx.redirectTo({ wx.redirectTo({


Ładowanie…
Anuluj
Zapisz