var e = getApp(), a = e.globalData.setting, os = a, t = e.request, d = e.globalData; var ut = require("../../../utils/util.js"); Page({ data: { url: a.url, //接口网址 iurl: a.imghost, //图片前缀网址 isBuy: 0, getGiftID: '', //礼包id giftImage: '', giftTitle: '', giftDate: '', giftPrice: '', giftIntegral: '', giftPosPrice: '', giftQty: '', giftRemark: '', giftType: '', actTitle: '', getUrl: '', wareCard: [], orderSn: "", //订单编号 lbId: "", code: "", //核销码 c_state: "0", //判断是否已经使用, 0正常 1已使用 2已过期 is_lb: 0, //是否有礼包 }, onLoad: function (options) { var th = this; th.setData({ getGiftID: options.lbId, }) if (options.isBuy == 0) { th.GetMyGiftList(); } else { th.GetBuyGiftList(); } th.setData({ giftRemark: th.data.giftRemark.replace(/