Commit edda6eaa1fd7afd5f2f61b748e7833ceff5c0368

Authored by 前端研发-钱巧玲
1 parent d6bcc83d

新人有礼界面的简单调整

pages/giftpack/newvipgift/newvipgift.js
1 -var _default =  
2 -{  
3 - data: function data() {  
4 - return {  
5 - itemShow: false, //项目栏目是否显示  
6 - cardShow: false, //代金券栏目是否显示  
7 - packShow: false, //福利栏目是否显示  
8 - textShow: false, //规则是否显示  
9 - integralShow: true, //积分领取是否显示  
10 - growUpShow: true, //成长值领取是否显示  
11 - itemButton: '',  
12 - cardButton: '',  
13 - getActId: '',  
14 - getActType: '',  
15 - giftID: '',  
16 - getUserID: '',  
17 - getStorageID: '',  
18 - receiveState: '已领取',  
19 - integralTitle: '已领取',  
20 - growUpTitle: '已领取',  
21 - textTitle: '',  
22 - getUrl: '',  
23 - noShow: false, 1 +var i = require("../../../utils/util.js")
  2 +var e = getApp(),
  3 + a = e.globalData.setting,
  4 + os = a,
  5 + t = e.request,
  6 + d = e.globalData;
  7 +Page({
  8 + data: {
  9 + iurl: a.imghost, //图片前缀网址
  10 + itemShow: false, //项目栏目是否显示
  11 + cardShow: false, //代金券栏目是否显示
  12 + packShow: false, //福利栏目是否显示
  13 + textShow: false, //规则是否显示
  14 + integralShow: true, //积分领取是否显示
  15 + growUpShow: true, //成长值领取是否显示
  16 + itemButton: '',
  17 + cardButton: '',
  18 + getActId: '',
  19 + getActType: '',
  20 + giftID: '',
  21 + getUserID: '',
  22 + getStorageID: '',
  23 + receiveState: '已领取',
  24 + integralTitle: '已领取',
  25 + growUpTitle: '已领取',
  26 + textTitle: '',
  27 + getUrl: '',
  28 + noShow: false,
  29 + cards: [],
  30 + itemWare: []
  31 + },
24 //判断中间的连接线是否显示 32 //判断中间的连接线是否显示
25 itemShows: function itemShows() { 33 itemShows: function itemShows() {
26 if (this.itemShow) { 34 if (this.itemShow) {
@@ -55,35 +63,20 @@ var _default = @@ -55,35 +63,20 @@ var _default =
55 63
56 } 64 }
57 }, 65 },
58 - cards: [],  
59 - itemWare: []  
60 - };  
61 -  
62 -  
63 66
64 - },  
65 onLoad: function onLoad(options) { 67 onLoad: function onLoad(options) {
66 68
67 - // 获取url对应的参数  
68 - // this.getActId = this.GetQueryString('actId'); //活动id  
69 - // this.getActType = this.GetQueryString('actType'); //活动类型 1新人礼 2评价有礼 3节日营销 4生日营销  
70 - // this.giftID = this.GetQueryString('giftID'); //礼包ID  
71 - // this.getStorageID = this.GetQueryString('storageID'); //商家ID  
72 - // this.getUserID = this.GetQueryString('userID'); //用户ID  
73 -  
74 this.getActId = options.actId; //活动id 69 this.getActId = options.actId; //活动id
75 this.getActType = options.actType; //活动类型 1新人礼 2评价有礼 3节日营销 4生日营销 70 this.getActType = options.actType; //活动类型 1新人礼 2评价有礼 3节日营销 4生日营销
76 this.giftID = options.giftBagId; //礼包ID 71 this.giftID = options.giftBagId; //礼包ID
77 this.getStorageID = options.storeId; //商家ID 72 this.getStorageID = options.storeId; //商家ID
78 this.getUserID = options.userId; //用户ID 73 this.getUserID = options.userId; //用户ID
79 -  
80 this.GetList(); 74 this.GetList();
81 75
82 }, 76 },
83 onShow: function onShow() { 77 onShow: function onShow() {
84 this.textTitle = this.textTitle.replace(/<p><img/gi, "<p class='img'><img"); 78 this.textTitle = this.textTitle.replace(/<p><img/gi, "<p class='img'><img");
85 }, 79 },
86 - methods: {  
87 80
88 getQueryString: function getQueryString(name) { 81 getQueryString: function getQueryString(name) {
89 var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)', 'i'); 82 var reg = new RegExp('(^|&)' + name + '=([^&]*)(&|$)', 'i');
@@ -205,5 +198,4 @@ var _default = @@ -205,5 +198,4 @@ var _default =
205 }); 198 });
206 199
207 } 200 }
208 - }  
209 -};  
210 \ No newline at end of file 201 \ No newline at end of file
  202 +});
211 \ No newline at end of file 203 \ No newline at end of file
pages/giftpack/newvipgift/newvipgift.wxml
1 <view> 1 <view>
2 <view class="image_box"> 2 <view class="image_box">
3 - <image src="{{$GetInfo.imgHttp+'/miniapp/images/giftbag/vip00.png'}}" ></image> 3 + <image src="{{iurl+'/miniapp/images/giftbag/vip00.png'}}" ></image>
4 </view> 4 </view>
5 <block wx:if="{{this.itemShow}}"> 5 <block wx:if="{{this.itemShow}}">
6 <view class="top"> 6 <view class="top">