소스 검색

分享授权跳转传参修改

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({


불러오는 중...
취소
저장