|
|
|
@ -99,7 +99,7 @@ Page({
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
let key = wx.getStorageSync('key')
|
|
|
|
|
if (key.id == res.id) {
|
|
|
|
|
if(key.indexOf(res.id)==0){
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
this.setData({
|
|
|
|
@ -154,7 +154,10 @@ Page({
|
|
|
|
|
},
|
|
|
|
|
cancle_mark(e) {
|
|
|
|
|
let id=e.currentTarget.dataset.id
|
|
|
|
|
wx.setStorageSync('key', {id:id})
|
|
|
|
|
let key=wx.getStorageSync('key')
|
|
|
|
|
if(key.indexOf(id)==-1){
|
|
|
|
|
wx.setStorageSync('key',[...key,id])
|
|
|
|
|
}
|
|
|
|
|
this.setData({
|
|
|
|
|
isActionMarkShow: false,
|
|
|
|
|
isGiftMarkShow: true
|
|
|
|
@ -193,7 +196,7 @@ Page({
|
|
|
|
|
* 生命周期函数--监听页面初次渲染完成
|
|
|
|
|
*/
|
|
|
|
|
onReady: function () {
|
|
|
|
|
wx.setStorageSync('key', { id: '' })
|
|
|
|
|
wx.setStorageSync('key',[])
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|