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, //是否有礼包 receiveState: 0, //0未领取 1已领取 completeid: "", is_sub: 0, //判断是否重复提交 }, onLoad: function(options) { var th = this; th.setData({ getGiftID: 100, // options.libao_id, completeid: options.completeid, orderSn: options.orderSn }) if (options.is_libao == 0) { th.GetMyGiftList(); } else { th.GetBuyGiftList(); } // th.setData({ // giftRemark: th.data.giftRemark.replace(/