+
+
+
\ No newline at end of file
diff --git a/pages/giftpack/buygiftpack/giftpackbuy.wxss b/pages/giftpack/buygiftpack/giftpackbuy.wxss
index b052787..0ae857b 100644
--- a/pages/giftpack/buygiftpack/giftpackbuy.wxss
+++ b/pages/giftpack/buygiftpack/giftpackbuy.wxss
@@ -1,207 +1,231 @@
-
/*引用样式路径*/
@charset "UTF-8";
+
/* Author XGQ
* 2019-11-12
*/
+
page {
- background-color: #fb7454;
+ background-color: #fb7454;
}
+
.top_img {
- -webkit-align-content: center;
- align-content: center;
+ -webkit-align-content: center;
+ align-content: center;
}
+
.top_img image {
- width: 100%;
- height: 660rpx;
+ width: 100%;
+ height: 660rpx;
}
+
.top_title {
- display: -webkit-box;
- display: -webkit-flex;
- display: flex;
- background-color: #FFFFFF;
- height: 85rpx;
- border-radius: 10rpx 10rpx 0rpx 0rpx;
- margin: 0rpx 20rpx 0rpx 20rpx;
- -webkit-align-content: center;
- align-content: center;
+ display: -webkit-box;
+ display: -webkit-flex;
+ display: flex;
+ background-color: #fff;
+ height: 85rpx;
+ border-radius: 10rpx 10rpx 0rpx 0rpx;
+ margin: 0rpx 20rpx 0rpx 20rpx;
+ -webkit-align-content: center;
+ align-content: center;
}
+
.top_title_box {
- width: 49%;
- -webkit-align-content: center;
- align-content: center;
- text-align: center;
- padding: 15rpx;
+ width: 49%;
+ -webkit-align-content: center;
+ align-content: center;
+ text-align: center;
+ padding: 15rpx;
}
+
.top_title_box_S {
- width: 1%;
- -webkit-align-content: center;
- align-content: center;
- text-align: center;
- margin: 20rpx 0rpx 20rpx 0rpx;
- border-left: #000000 solid 3rpx;
+ width: 1%;
+ -webkit-align-content: center;
+ align-content: center;
+ text-align: center;
+ margin: 20rpx 0rpx 20rpx 0rpx;
+ border-left: #000 solid 3rpx;
}
+
.top_title_redtext {
- font-size: 30rpx;
- color: #d61b30;
+ font-size: 30rpx;
+ color: #d61b30;
}
+
.top_title_blacktext {
- font-size: 30rpx;
- color: #000000;
+ font-size: 30rpx;
+ color: #000;
}
+
.content_box {
- background-color: #FFFFFF;
- height: 375rpx;
- margin: 10rpx 20rpx 0rpx 20rpx;
- border-radius: 10rpx;
+ background-color: #fff;
+ margin: 10rpx 20rpx 0rpx 20rpx;
+ border-radius: 10rpx;
}
+
.content_box_ware {
- border-bottom: #f5f5f5 solid 2rpx;
- display: -webkit-box;
- display: -webkit-flex;
- display: flex;
+ border-bottom: #f5f5f5 solid 2rpx;
+ display: -webkit-box;
+ display: -webkit-flex;
+ display: flex;
}
+
.content_box_img {
- margin: 20rpx 20rpx 20rpx 25rpx;
- width: 35%;
- display: -webkit-box;
- display: -webkit-flex;
- display: flex;
- font-size: 8rpx;
- position: relative;
+ margin: 20rpx 20rpx 20rpx 25rpx;
+ width: 35%;
+ display: -webkit-box;
+ display: -webkit-flex;
+ display: flex;
+ font-size: 8rpx;
+ position: relative;
}
+
.content_box_img image {
- width: 100%;
- height: 230rpx;
+ width: 100%;
+ height: 230rpx;
}
+
.content_box_title {
- width: 65%;
- margin: 25rpx 25rpx 10rpx 0rpx;
- position: relative;
+ width: 65%;
+ margin: 25rpx 25rpx 10rpx 0rpx;
+ position: relative;
}
+
.content_ware_title {
- font-size: 30rpx;
- word-break: break-all;
- /*属性规定自动换行的处理方法。normal(使用浏览器默认的换行规则。),break-all(允许在单词内换行。),keep-all(只能在半角空格或连字符处换行。)*/
- text-overflow: ellipsis;
- display: -webkit-box;
- /** 对象作为伸缩盒子模型显示 **/
- -webkit-box-orient: vertical;
- /** 设置或检索伸缩盒对象的子元素的排列方式 **/
- -webkit-line-clamp: 2;
- /** 显示的行数 **/
- overflow: hidden;
- /** 隐藏超出的内容 **/
+ font-size: 30rpx;
+ word-break: break-all;
+ /*属性规定自动换行的处理方法。normal(使用浏览器默认的换行规则。),break-all(允许在单词内换行。),keep-all(只能在半角空格或连字符处换行。)*/
+ text-overflow: ellipsis;
+ display: -webkit-box;
+ /** 对象作为伸缩盒子模型显示 **/
+ -webkit-box-orient: vertical;
+ /** 设置或检索伸缩盒对象的子元素的排列方式 **/
+ -webkit-line-clamp: 2;
+ /** 显示的行数 **/
+ overflow: hidden;
+ /** 隐藏超出的内容 **/
}
+
.content_ware_type {
- font-size: 28rpx;
- color: #c61a34;
- margin-top: 10rpx;
- position: absolute;
- left: 0;
- bottom: 100rpx;
+ font-size: 28rpx;
+ color: #c61a34;
+ margin-top: 10rpx;
+ position: absolute;
+ left: 0;
+ bottom: 100rpx;
}
+
.content_ware_price {
- font-size: 20rpx;
- color: #b9b5b5;
- margin-top: 2rpx;
- text-decoration: line-through;
- position: absolute;
- left: 0;
- bottom: 70rpx;
+ font-size: 20rpx;
+ color: #b9b5b5;
+ margin-top: 2rpx;
+ text-decoration: line-through;
+ position: absolute;
+ left: 0;
+ bottom: 70rpx;
}
+
.content_ware_time {
- font-size: 25rpx;
- color: #000000;
- margin-top: 20rpx;
- position: absolute;
- left: 0;
- bottom: 25rpx;
+ font-size: 25rpx;
+ color: #000;
+ margin-top: 20rpx;
+ position: absolute;
+ left: 0;
+ bottom: 25rpx;
+}
+.box_button_buy{
+ display: flex;
+ align-items: center;
}
.content_box_button {
- display: -webkit-box;
- display: -webkit-flex;
- display: flex;
- -webkit-box-pack: end;
- -webkit-justify-content: flex-end;
- justify-content: flex-end;
- position: relative;
-}
-.box_button_remark{
- margin: 15rpx 0rpx 0rpx 30rpx;
- width: 50%;
- position: absolute;
- left: 5rpx;
- bottom: 15rpx;
-}
-.box_button_remark text{
- font-size: 28rpx;
- color: #B9B5B5;
+ display: flex;
+ height: 110rpx;
+ justify-content: space-between;
+ align-items: center;
+ padding-left: 20rpx;
+ padding-right: 25rpx;
+ line-height: 110rpx;
}
-.box_button_buy{
- text-align: right;
- margin: 22rpx 25rpx 0rpx 0rpx;
+
+.box_button_remark {
+ margin-left: 5rpx;
}
-.box_button_buy button{
- display: inline-block;
- width: 160rpx;
- height: 50rpx;
- font-size: 20rpx;
- background: #d41c34;
- color: #FFFFFF;
- line-height: 50rpx;
+
+.box_button_remark text {
+ font-size: 28rpx;
+ color: #b9b5b5;
}
-.box_button_dui{
+
+.box_button_buy button {
+ display: inline-block;
+ width: 160rpx;
+ height: 50rpx;
+ font-size: 20rpx;
+ background: #d41c34;
+ color: #fff;
+ line-height: 50rpx;
+}
+
+.box_button_dui {
text-align: right;
margin: 22rpx 25rpx 0rpx 0rpx;
}
-.box_button_dui button{
- display: inline-block;
- width: 160rpx;
- height: 50rpx;
- font-size: 20rpx;
- background: #FFFFFF;
- color: #000000;
- line-height: 50rpx;
+
+.box_button_dui button {
+ display: inline-block;
+ width: 160rpx;
+ height: 50rpx;
+ font-size: 20rpx;
+ background: #fff;
+ color: #000;
+ line-height: 50rpx;
}
+
.foot_box {
- -webkit-align-content: center;
- align-content: center;
- text-align: center;
- margin-top: 15rpx;
- margin-bottom: 50rpx;
+ -webkit-align-content: center;
+ align-content: center;
+ text-align: center;
+ margin-top: 15rpx;
+ margin-bottom: 50rpx;
}
+
.foot_box text {
- font-size: 25rpx;
- color: #FFFFFF;
-}
-.foot_empty{
- background-color: #FFFFFF;
- height: 375rpx;
- margin: 10rpx 20rpx 0rpx 20rpx;
- border-radius: 10rpx;
- text-align: center;
- padding: 150rpx 0rpx 300rpx 0rpx;
- -webkit-box-pack: center;
- -webkit-justify-content: center;
- justify-content: center;
-}
-.foot_empty image{
- width: 400rpx;
- height: 273rpx;
-}
-.foot_empty text{
- font-size: 30rpx;
- color: #999999;
-}
-.foot_empty_button{
- background: #ff6363;
- margin: 60rpx 230rpx 0rpx 230rpx;
- padding: 10rpx;
- border-radius: 70rpx;
- line-height: 40rpx;
-}
-.foot_empty_button text{
- font-size: 28rpx;
- color: #FFFFFF;
+ font-size: 25rpx;
+ color: #fff;
+}
+
+.foot_empty {
+ background-color: #fff;
+ height: 375rpx;
+ margin: 10rpx 20rpx 0rpx 20rpx;
+ border-radius: 10rpx;
+ text-align: center;
+ padding: 150rpx 0rpx 300rpx 0rpx;
+ -webkit-box-pack: center;
+ -webkit-justify-content: center;
+ justify-content: center;
+}
+
+.foot_empty image {
+ width: 400rpx;
+ height: 273rpx;
+}
+
+.foot_empty text {
+ font-size: 30rpx;
+ color: #999;
+}
+
+.foot_empty_button {
+ background: #ff6363;
+ margin: 60rpx 230rpx 0rpx 230rpx;
+ padding: 10rpx;
+ border-radius: 70rpx;
+ line-height: 40rpx;
+}
+
+.foot_empty_button text {
+ font-size: 28rpx;
+ color: #fff;
}
diff --git a/pages/giftpack/giftpacklist/giftpacklist.js b/pages/giftpack/giftpacklist/giftpacklist.js
index 6acb0cb..fbb2069 100644
--- a/pages/giftpack/giftpacklist/giftpacklist.js
+++ b/pages/giftpack/giftpacklist/giftpacklist.js
@@ -1,210 +1,229 @@
-var t = require("../../utils/common.js"); var os = getApp().globalData.setting;
+var e = getApp(),
+ a = e.globalData.setting,
+ os = a,
+ t = e.request,
+ d = e.globalData;
Page({
- data: function data() {
- return {
- isBuy: 0,
- getGiftID: '',
- giftImage: '',
- giftTitle: '',
- giftDate: '',
- giftPrice: '',
- giftIntegral: '',
- giftPosPrice: '',
- giftQty: '',
- giftRemark: '',
- giftType: '',
- actTitle: '',
- getUrl: '',
- wareCard: []
- };
-
+ data: {
+ url: a.url, //接口网址
+ iurl: a.imghost, //图片前缀网址
+ isBuy: 0,
+ getGiftID: '', //礼包id
+ giftImage: '',
+ giftTitle: '',
+ giftDate: '',
+ giftPrice: '',
+ giftIntegral: '',
+ giftPosPrice: '',
+ giftQty: '',
+ giftRemark: '',
+ giftType: '',
+ actTitle: '',
+ getUrl: '',
+ wareCard: [],
+ orderSn: "", //订单编号
},
- 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);
+ onLoad: function(options) {
+ var th = this;
+ th.setData({
+ isBuy: options.isBuy,
+ getStorageID: a.stoid,
+ getUserID: d.user_id,
+ getGiftID: options.lbId,
+ orderSn: options.orderSn
+ })
},
- onShow: function onShow() {
- if (this.isBuy == 0) {
- this.GetMyGiftList();
+ onShow: function() {
+ var th = this;
+ if (th.data.isBuy == 0) {
+ th.GetMyGiftList();
} else {
- this.GetBuyGiftList();
+ th.GetBuyGiftList();
}
- this.giftRemark = this.giftRemark.replace(/![]()
![]()
![]()
![]()
![]()
-
+
- {{this.giftTitle}}
+ {{giftTitle}}
- {{"兑换截至时间:"+this.giftDate}}
+ {{"兑换截至时间:"+giftDate}}
-
- {{"¥"+this.giftPrice}}
+
+ {{"¥"+giftPrice}}
-
+
/
-
- {{this.giftIntegral+"积分"}}
+
+ {{giftIntegral+"积分"}}
-
- {{this.actTitle}}
+
+ {{actTitle}}
@@ -40,19 +40,19 @@
-
+
-
+
-
+
-
+
-
+
@@ -67,13 +67,13 @@
-
+
-
+
-
+
已自动到账
@@ -88,39 +88,42 @@
活动说明
-
+
-
+
-