|
|
|
@ -397,10 +397,11 @@ export default function Subscribe() { |
|
|
|
|
console.log('唤起扫码') |
|
|
|
|
Taro.scanCode({ |
|
|
|
|
success: (res: any) => { |
|
|
|
|
console.log(res.path.slice(-8)) |
|
|
|
|
console.log('二维码内容:', res) |
|
|
|
|
const { path } = res |
|
|
|
|
if(!Taro.getStorageSync('UserToken')){ |
|
|
|
|
setisLoginOpen(true) |
|
|
|
|
setuserScene(res.path.slice(-8)) |
|
|
|
|
setuserScene(path ? path.slice(-8) : '') |
|
|
|
|
}else{ |
|
|
|
|
Taro.request({ |
|
|
|
|
url: 'https://interapi.jm-kid.com/api/product/exchange', |
|
|
|
@ -410,7 +411,7 @@ export default function Subscribe() { |
|
|
|
|
}, |
|
|
|
|
data: { |
|
|
|
|
timestamp: Date.now(), |
|
|
|
|
change_code: res.path.slice(-8) |
|
|
|
|
change_code: path ? path.slice(-8) : '' |
|
|
|
|
}, |
|
|
|
|
success: (s_res: any) => { |
|
|
|
|
const { state, data } = s_res.data |
|
|
|
@ -579,12 +580,6 @@ export default function Subscribe() { |
|
|
|
|
></Image> |
|
|
|
|
</View> |
|
|
|
|
|
|
|
|
|
<PopupHalfScreen |
|
|
|
|
visible={isPopupOpen} |
|
|
|
|
onClose={() => setisPopupOpen(!isPopupOpen)} |
|
|
|
|
onFilter={setisFilter} |
|
|
|
|
></PopupHalfScreen> |
|
|
|
|
|
|
|
|
|
<View className='subscribe_selection'> |
|
|
|
|
<View |
|
|
|
|
className='subscribe_selection_item' |
|
|
|
@ -695,6 +690,20 @@ export default function Subscribe() { |
|
|
|
|
} |
|
|
|
|
</View> |
|
|
|
|
|
|
|
|
|
<PopupHalfScreen |
|
|
|
|
visible={isPopupOpen} |
|
|
|
|
onClose={() => setisPopupOpen(!isPopupOpen)} |
|
|
|
|
onFilter={setisFilter} |
|
|
|
|
></PopupHalfScreen> |
|
|
|
|
|
|
|
|
|
{/* 跳转商城 */} |
|
|
|
|
<GoToStoreModal |
|
|
|
|
visible={isToStoreOpen} |
|
|
|
|
onClose={() => setisToStoreOpen(false)} |
|
|
|
|
type={1} |
|
|
|
|
mallLink={prdtMallLink} |
|
|
|
|
setmallLink={setprdtMallLink} |
|
|
|
|
></GoToStoreModal> |
|
|
|
|
</ScrollView> |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -744,15 +753,6 @@ export default function Subscribe() { |
|
|
|
|
onModalClose={() => setisLoginOpen(false)} |
|
|
|
|
></GetPhoneNumber> |
|
|
|
|
|
|
|
|
|
{/* 跳转商城 */} |
|
|
|
|
<GoToStoreModal |
|
|
|
|
visible={isToStoreOpen} |
|
|
|
|
onClose={() => setisToStoreOpen(false)} |
|
|
|
|
type={1} |
|
|
|
|
mallLink={prdtMallLink} |
|
|
|
|
setmallLink={setprdtMallLink} |
|
|
|
|
></GoToStoreModal> |
|
|
|
|
|
|
|
|
|
<UserExchangeSuccessModal exchangeState={exchangeState} prdtList={prdtList} prdtNames={prdtNames} isOpen={isUserExchangeSuccessModalOpen} setIsOpen={setisUserExchangeSuccessModalOpen}></UserExchangeSuccessModal> |
|
|
|
|
</View> |
|
|
|
|
) |
|
|
|
|