|
|
|
@ -40,6 +40,23 @@ export default function GetPhoneNumber({ onClose, scene = null, modalVisible, on |
|
|
|
|
}, 0) |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
// 消息推送授权
|
|
|
|
|
const publicNotice = () => { |
|
|
|
|
Taro.requestSubscribeMessage({ |
|
|
|
|
tmplIds: ['F5kG9ryTuf3U09liOVIqqZDDEwNwiuWbLPPdoVpKPWI', 'cnMggWGwr0_cVw7Hf_fg3u74EDJdA0b4e56Ioy-Vr_Q'], |
|
|
|
|
success (res) { |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
fail (err) { |
|
|
|
|
Taro.showToast({ |
|
|
|
|
title: err, |
|
|
|
|
duration: 2000, |
|
|
|
|
icon: 'error' |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const handleGetUserPhone = (e: any) => { |
|
|
|
|
console.log('注册接口:',e.detail, Taro.getStorageSync('othersInviteCode')) |
|
|
|
|
|
|
|
|
@ -63,6 +80,8 @@ export default function GetPhoneNumber({ onClose, scene = null, modalVisible, on |
|
|
|
|
Taro.setStorageSync('UserToken', res.data.token) |
|
|
|
|
Taro.removeStorageSync('othersInviteCode') |
|
|
|
|
|
|
|
|
|
publicNotice() |
|
|
|
|
|
|
|
|
|
if(scene){ |
|
|
|
|
Taro.request({ |
|
|
|
|
url: 'https://interapi.jm-kid.com/api/product/exchange', |
|
|
|
|