浏览代码

分享授权跳转传参修改

tags/富茂链客4.1.0
刘晖 6 年前
父节点
当前提交
90385baffb
共有 1 个文件被更改,包括 6 次插入6 次删除
  1. +6
    -6
      pages/index/index.js

+ 6
- 6
pages/index/index.js 查看文件

@@ -88,20 +88,20 @@ Page({
.catch(err => {
if (err.code == 11004) {
// 用户昵称未授权
if (couponChannelId && !cuserId) {
if (options.couponChannelId && !options.cuserId) {
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({
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({
url: `/pages/getuserinfo/index?orderId=${orderId}&from='${"discount"}`
url: `/pages/getuserinfo/index?orderId=${options.orderId}&from='${"discount"}`
});
} else {
wx.redirectTo({


正在加载...
取消
保存