diff --git a/pages/giftpack/newvipgift/newvipgift.js b/pages/giftpack/newvipgift/newvipgift.js index 1c09a82..b571253 100644 --- a/pages/giftpack/newvipgift/newvipgift.js +++ b/pages/giftpack/newvipgift/newvipgift.js @@ -1,26 +1,34 @@ -var _default = -{ - data: function data() { - return { - itemShow: false, //项目栏目是否显示 - cardShow: false, //代金券栏目是否显示 - packShow: false, //福利栏目是否显示 - textShow: false, //规则是否显示 - integralShow: true, //积分领取是否显示 - growUpShow: true, //成长值领取是否显示 - itemButton: '', - cardButton: '', - getActId: '', - getActType: '', - giftID: '', - getUserID: '', - getStorageID: '', - receiveState: '已领取', - integralTitle: '已领取', - growUpTitle: '已领取', - textTitle: '', - getUrl: '', - noShow: false, +var i = require("../../../utils/util.js") +var e = getApp(), + a = e.globalData.setting, + os = a, + t = e.request, + d = e.globalData; +Page({ + data: { + iurl: a.imghost, //图片前缀网址 + itemShow: false, //项目栏目是否显示 + cardShow: false, //代金券栏目是否显示 + packShow: false, //福利栏目是否显示 + textShow: false, //规则是否显示 + integralShow: true, //积分领取是否显示 + growUpShow: true, //成长值领取是否显示 + itemButton: '', + cardButton: '', + getActId: '', + getActType: '', + giftID: '', + getUserID: '', + getStorageID: '', + receiveState: '已领取', + integralTitle: '已领取', + growUpTitle: '已领取', + textTitle: '', + getUrl: '', + noShow: false, + cards: [], + itemWare: [] + }, //判断中间的连接线是否显示 itemShows: function itemShows() { if (this.itemShow) { @@ -55,35 +63,20 @@ var _default = } }, - cards: [], - itemWare: [] - }; - - - }, onLoad: function onLoad(options) { - // 获取url对应的参数 - // this.getActId = this.GetQueryString('actId'); //活动id - // this.getActType = this.GetQueryString('actType'); //活动类型 1新人礼 2评价有礼 3节日营销 4生日营销 - // this.giftID = this.GetQueryString('giftID'); //礼包ID - // this.getStorageID = this.GetQueryString('storageID'); //商家ID - // this.getUserID = this.GetQueryString('userID'); //用户ID - this.getActId = options.actId; //活动id this.getActType = options.actType; //活动类型 1新人礼 2评价有礼 3节日营销 4生日营销 this.giftID = options.giftBagId; //礼包ID this.getStorageID = options.storeId; //商家ID this.getUserID = options.userId; //用户ID - this.GetList(); }, onShow: function onShow() { this.textTitle = this.textTitle.replace(/

- +