[更新]
This commit is contained in:
@@ -39,16 +39,15 @@ Page({
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad(options) {
|
||||
// 判断是否由分享进入
|
||||
if(options.parent_id !== ""){
|
||||
// 写入缓存
|
||||
wx.setStorage({
|
||||
key : 'parentId',
|
||||
data : options.parent_id
|
||||
})
|
||||
if(options.type){
|
||||
getApp().globalData.shareObj = {
|
||||
type : options.type,
|
||||
goodsId : '',
|
||||
userId : options.parent_id
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面显示
|
||||
*/
|
||||
@@ -242,14 +241,14 @@ Page({
|
||||
canId = e.currentTarget.dataset.id,
|
||||
canFrom = e.currentTarget.dataset.from,
|
||||
canRightid = e.currentTarget.dataset.rightid
|
||||
if(!canBuy) {
|
||||
wx.showToast({
|
||||
title : canText,
|
||||
icon : 'none',
|
||||
duration: 2000
|
||||
})
|
||||
return
|
||||
}
|
||||
// if(!canBuy) {
|
||||
// wx.showToast({
|
||||
// title : canText,
|
||||
// icon : 'none',
|
||||
// duration: 2000
|
||||
// })
|
||||
// return
|
||||
// }
|
||||
|
||||
wx.getStorage({
|
||||
key : 'token',
|
||||
|
||||
Reference in New Issue
Block a user