var t = require("../../utils/common.js"); var os = getApp().globalData.setting; Page({ data: function data() { return { isBuy: 0, getGiftID: '', giftImage: '', giftTitle: '', giftDate: '', giftPrice: '', giftIntegral: '', giftPosPrice: '', giftQty: '', giftRemark: '', giftType: '', actTitle: '', getUrl: '', wareCard: [] }; }, onLoad: function onLoad(options) { this.isBuy = options.isBuy; this.getStorageID = options.stoid; this.getUserID = options.userid; this.getGiftID = options.id; console.log(this.isBuy + '||' + this.getStorageID + '||' + this.getUserID + '||' + this.getGiftID); }, onShow: function onShow() { if (this.isBuy == 0) { this.GetMyGiftList(); } else { this.GetBuyGiftList(); } this.giftRemark = this.giftRemark.replace(/