diff --git a/pages/giftpack/buygiftpack/giftpackbuy.js b/pages/giftpack/buygiftpack/giftpackbuy.js index 1fe5858..5bd9134 100644 --- a/pages/giftpack/buygiftpack/giftpackbuy.js +++ b/pages/giftpack/buygiftpack/giftpackbuy.js @@ -1,3 +1,4 @@ +var i = require("../../../utils/util.js"); var e = getApp(), a = e.globalData.setting, os = a, @@ -12,14 +13,18 @@ Page({ wareCard: [], page: 0, pageSize: 10, - isEmpty: true, + isEmpty: false, loadingType: 0, //定义加载方式 0---contentdown 1---contentrefresh 2---contentnomore contentText: { contentdown: '加载更多', contentrefresh: '加载中...', contentnomore: '已加载全部' }, - is_read:0,//礼包列表是否全部加载完毕 + ismore: 0, //数据是否全部加载完成 + is_read: 0, //是否查询过我的礼包接口 + curpage: 1, //当前分页数 + pageSize: 3, //页大小 + total: 0, //总数量 }, onLoad: function(options) { var th = this; @@ -27,10 +32,7 @@ Page({ my_confirm.open_cancel(0); th.setData({ getStorageID: a.stoid, - getUserID: d.user_id, - pages: 1, - pageSize: 10, - loadingType: 0 + getUserID: d.user_id }) th.getList(); }, @@ -47,7 +49,7 @@ Page({ GetBuyPrice: function(e) { var that = this.data; var th = this; - var id = e.currentTarget.dataset.id;//活动id + var id = e.currentTarget.dataset.id; //活动id var my_confirm = th.selectComponent("#my_confirm"); //组件的id my_confirm.open( "是否确定购买该礼包", @@ -76,20 +78,20 @@ Page({ header: { 'content-type': 'application/json' }, // 设置请求的 header - success: function (res) { + success: function(res) { if (res.data.code == 0) { - res=res.data.data; + res = res.data.data; wx.requestPayment({ timeStamp: String(res.timeStamp), nonceStr: res.nonceStr, package: res.packageValue, signType: res.signType, paySign: res.paySign, - success: function (n) { - + success: function(n) { + }, - fail: function (n) { - + fail: function(n) { + } }); } else { @@ -108,7 +110,7 @@ Page({ GetBuyIntegral: function(e) { var that = this.data; var th = this; - var id = e.currentTarget.dataset.id;//活动id + var id = e.currentTarget.dataset.id; //活动id var my_confirm = th.selectComponent("#my_confirm"); //组件的id my_confirm.open( "是否确定兑换该礼包", @@ -136,7 +138,7 @@ Page({ header: { 'content-type': 'application/json' }, // 设置请求的 header - success: function (res) { + success: function(res) { if (res.data.code == 0) { getApp().my_warnning("兑换成功!", 1, th); } else { @@ -147,59 +149,35 @@ Page({ }) - }, getList: function(e) { - var _this = this; //上拉加载 - var that = this.data; - if (that.loadingType != 0) { - return false; - } - // that.loadingType = 1; - _this.setData({ - loadingType: 1 - }) + var th = this; getApp().request.get('/api/weshop/marketing/giftbag/page', { data: { - "storeId": that.getStorageID, //商家ID - "userId": that.getUserID, //用户ID - "page": that.pages, - "pageSize": that.pageSize + storeId: th.data.getStorageID, //商家ID + userId: th.data.getUserID, //用户ID + page: th.data.pages, + pageSize: th.data.pageSize }, success: function success(res) { + wx.hideLoading(); if (res.data.code == 0) { - if (res.data.data.total > 0) { - _this.setData({ - isEmpty: false - }) - } else { - _this.setData({ - isEmpty: true - }) - } - if (res.data.data.pageData.length == 0) { - _this.setData({ - loadingType: 2 - }) - } else { - var wareCard = that.wareCard; - var is_read = 0; - if (wareCard.length < res.data.data.total) { - for (var i = 0; i < res.data.data.pageData.length; i++) { - wareCard.push(res.data.data.pageData[i]); - } - }else{ - is_read:1 - } - _this.setData({ - wareCard: wareCard, - is_read: is_read, - loadingType: 0 - }) - - } + th.data.curpage++; + var arr1 = th.data.wareCard; + var arr2 = res.data.data.pageData; + var arr3 = [...arr1, ...arr2]; + var ismore = 0; + if (arr3.length == res.data.data.total) ismore = 1 + th.setData({ + wareCard: arr3, + total: res.data.data.total, + ismore: ismore, + is_read: 1 + }), wx.stopPullDownRefresh(); //停止下拉刷新 } else { - getApp().my_warnning(res.data.msg, 0, _this); + th.setData({ + is_read: 1 + }) } } }) @@ -215,11 +193,22 @@ Page({ }); }, //不销毁界面跳转 - navigateTo:function(e){ + navigateTo: function(e) { var th = this; var url = e.currentTarget.dataset.url; wx.navigateTo({ url: url, }) - } + }, + //下拉事件 + onReachBottom: function() { + var th = this; + if (th.data.total <= th.data.pageSize) return; + if (th.data.ismore) return; + wx.showLoading({ + title: '加载中...', + }) + th.getList(); + }, + }) \ No newline at end of file diff --git a/pages/giftpack/buygiftpack/giftpackbuy.json b/pages/giftpack/buygiftpack/giftpackbuy.json index d1faf2e..f5d4df2 100644 --- a/pages/giftpack/buygiftpack/giftpackbuy.json +++ b/pages/giftpack/buygiftpack/giftpackbuy.json @@ -1,6 +1,7 @@ { "navigationBarTitleText": "礼包列表", "navigationStyle": "custom", + "enablePullDownRefresh": false, "usingComponents": { "warn": "/components/long_warn/long_warn", "my_confirm": "/components/my_confirm/my_confirm" diff --git a/pages/giftpack/buygiftpack/giftpackbuy.wxml b/pages/giftpack/buygiftpack/giftpackbuy.wxml index 8df157b..53c9c16 100644 --- a/pages/giftpack/buygiftpack/giftpackbuy.wxml +++ b/pages/giftpack/buygiftpack/giftpackbuy.wxml @@ -21,7 +21,7 @@ {{items.giftTitle}} - + {{"¥"+items.payMoney}} @@ -34,19 +34,20 @@ 积分 - - - {{"原价:¥"+items.giftPosPrice}} - - - {{"活动时间:"+items.endTime}} - - - - - {{"已售:"+items.giftQty+"件"}} + + {{"原价:¥"+items.giftPosPrice}} + + + {{"活动时间:"+items.endTime}} + + + + + {{"已售:"+items.giftQty+"件"}} + + @@ -59,8 +60,9 @@ + - + @@ -73,10 +75,13 @@ - - ———— 到底了 ———— - + + + + 到底了 + - - - \ No newline at end of file + + + + \ No newline at end of file diff --git a/pages/giftpack/buygiftpack/giftpackbuy.wxss b/pages/giftpack/buygiftpack/giftpackbuy.wxss index 0ae857b..a43b773 100644 --- a/pages/giftpack/buygiftpack/giftpackbuy.wxss +++ b/pages/giftpack/buygiftpack/giftpackbuy.wxss @@ -29,6 +29,7 @@ page { margin: 0rpx 20rpx 0rpx 20rpx; -webkit-align-content: center; align-content: center; + margin-bottom: 10rpx; } .top_title_box { @@ -60,8 +61,9 @@ page { .content_box { background-color: #fff; - margin: 10rpx 20rpx 0rpx 20rpx; + margin: 0rpx 20rpx; border-radius: 10rpx; + margin-bottom: 10rpx; } .content_box_ware { @@ -149,7 +151,7 @@ page { } .box_button_remark { - margin-left: 5rpx; + } .box_button_remark text { @@ -162,24 +164,20 @@ page { width: 160rpx; height: 50rpx; font-size: 20rpx; - background: #d41c34; - color: #fff; + background: #fff; + color: #000; 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: #fff; - color: #000; + background: #d41c34; + color: #fff; line-height: 50rpx; + margin-left: 20rpx; } .foot_box { @@ -229,3 +227,17 @@ page { font-size: 28rpx; color: #fff; } +.After_all { + height: 80rpx; + margin-bottom: 10rpx; + color: rgb(255, 255, 255); +} + +.After_all .Line { + border-top: 3rpx solid rgb(255, 255, 255); + width: 130rpx; +} + +.After_all .end { + margin: 0rpx 15rpx; +} \ No newline at end of file diff --git a/pages/giftpack/giftpacklist/giftpacklist.js b/pages/giftpack/giftpacklist/giftpacklist.js index 08c1adb..bfd99dd 100644 --- a/pages/giftpack/giftpacklist/giftpacklist.js +++ b/pages/giftpack/giftpacklist/giftpacklist.js @@ -33,20 +33,26 @@ Page({ getGiftID: options.lbId, orderSn: options.orderSn }) - }, - onShow: function() { - var th = this; - if (th.data.isBuy == 0) { + if (options.isBuy == 0) { th.GetMyGiftList(); } else { th.GetBuyGiftList(); } - - // this.giftRemark = this.giftRemark.replace(/

- {{"数量:"+item.num}} + {{"数量:"+item.num}} @@ -71,7 +71,7 @@ - + diff --git a/pages/giftpack/mygiftpack/mygiftpack.js b/pages/giftpack/mygiftpack/mygiftpack.js index a707ba4..35c810b 100644 --- a/pages/giftpack/mygiftpack/mygiftpack.js +++ b/pages/giftpack/mygiftpack/mygiftpack.js @@ -1,3 +1,4 @@ +var i = require("../../../utils/util.js") var e = getApp(), a = e.globalData.setting, os = a, @@ -6,20 +7,24 @@ var e = getApp(), Page({ data: { iurl: a.imghost, //图片前缀网址 - getDate: new Date().getTime(), + getDate: "", getStorageID: '', getUserID: '', wareCard: [], pages: 0, pageSize: 10, - isEmpty: true, + isEmpty: false, loadingType: 0, //定义加载方式 0---contentdown 1---contentrefresh 2---contentnomore contentText: { contentdown: '加载更多', contentrefresh: '加载中...', contentnomore: '已加载全部' }, - is_resad:0,//数据是否全部加载完成 + ismore:0,//数据是否全部加载完成 + is_read:0,//是否查询过我的礼包接口 + curpage: 1, //当前分页数 + pageSize: 3, //页大小 + total: 0, //总数量 }, onLoad: function(options) { @@ -30,8 +35,9 @@ Page({ getStorageID: a.stoid, getUserID: d.user_id, pages: 1, - pageSize: 10, - loadingType: 0 + pageSize: 3, + loadingType: 0, + getDate: i.formatTime(new Date().getTime()) }) th.getList(); }, @@ -65,93 +71,91 @@ Page({ // }, getList: function() { - var _this = this; //上拉加载 - var that = this.data; - if (that.loadingType != 0) { - return false; - } - // that.loadingType = 1; - _this.setData({ - loadingType: 1 - }) + var th = this; + // if (th.data.loadingType) { + // return false; + // } + // // that.loadingType = 1; + // th.setData({ + // loadingType: 1 + // }) getApp().request.get('/api/weshop/marketing/my/giftbag/page', { data: { // "storeId": this.getStorageID, //商家ID // "userId": this.getUserID, //用户ID // "page": this.pages, // "pageSize": this.pageSize - "storeId": that.getStorageID, //商家ID - "userId": that.getUserID, //用户ID - "page": that.pages, - "pageSize": that.pageSize + storeId: th.data.getStorageID, //商家ID + userId: th.data.getUserID, //用户ID + page: th.data.curpage, + pageSize: th.data.pageSize }, success: function success(res) { + wx.hideLoading(); if (res.data.code == 0) { - console.log(res.data.data); - if (res.data.data.total > 0) { - // _this.isEmpty = false; - _this.setData({ - isEmpty: false - }) - } else { - // _this.isEmpty = true; - _this.setData({ - isEmpty: true - }) - } - if (res.data.data.pageData.length == 0) { - // _this.loadingType = 2; - _this.setData({ - loadingType: 2 - }) - } else { - var wareCard = that.wareCard; - var is_resad = 0; - // if (_this.wareCard.length < res.data.data.pageData.length) { - if (wareCard.length < res.data.data.total) { - for (var i = 0; i < res.data.data.pageData.length; i++) { - wareCard.push(res.data.data.pageData[i]); - } - }else{ - is_resad=1 - } - _this.setData({ - wareCard: wareCard, - is_resad: is_resad - }) - - // _this.loadingType = 0; - _this.setData({ - loadingType: 0 - }) - } + th.data.curpage++; + var arr1 = th.data.wareCard; + var arr2 = res.data.data.pageData; + var arr3 = [...arr1, ...arr2]; + var ismore = 0; + if (arr3.length == res.data.data.total) ismore = 1 + th.setData({ + wareCard: arr3, + total: res.data.data.total, + ismore: ismore, + is_read:1 + }), wx.stopPullDownRefresh(); //停止下拉刷新 } else { - + th.setData({ + is_read: 1 + }) } + // if (res.data.code == 0) { + // if (res.data.data.total > 0) { + // // _this.isEmpty = false; + // _this.setData({ + // isEmpty: false + // }) + // } else { + // // _this.isEmpty = true; + // _this.setData({ + // isEmpty: true + // }) + // } + // if (res.data.data.pageData.length == 0) { + // // _this.loadingType = 2; + // _this.setData({ + // loadingType: 2 + // }) + // } else { + // var wareCard = that.wareCard; + // var is_resad = 0; + // // if (_this.wareCard.length < res.data.data.pageData.length) { + // if (wareCard.length < res.data.data.total) { + // for (var i = 0; i < res.data.data.pageData.length; i++) { + // wareCard.push(res.data.data.pageData[i]); + // } + // }else{ + // is_resad=1 + // } + // _this.setData({ + // wareCard: wareCard, + // is_resad: is_resad + // }) + + // // _this.loadingType = 0; + // _this.setData({ + // loadingType: 0 + // }) + // } + // } else { + + // } } + }); }, - TimeToDate: function(num) { //时间戳数据处理 是按秒来转换 - var date = new Date(num * 1000); - //时间戳为10位需*1000,时间戳为13位的话不需乘1000 - var y = date.getFullYear(); - var MM = date.getMonth() + 1; - MM = MM < 10 ? '0' + MM : MM; //月补0 - var d = date.getDate(); - d = d < 10 ? '0' + d : d; //天补0 - var h = date.getHours(); - h = h < 10 ? '0' + h : h; //小时补0 - var m = date.getMinutes(); - m = m < 10 ? '0' + m : m; //分钟补0 - var s = date.getSeconds(); - s = s < 10 ? '0' + s : s; //秒补0 - return y + '-' + MM + '-' + d + ' ' + h + ':' + m + ':' + s; - }, - DateToTime: function DateToTime(TimeNum) { //时间转换成时间戳 - var Time = new Date(TimeNum); - return Time.getTime() / 1000; - }, //销毁界面跳转 redirectTo: function (e) { var th = this; @@ -168,6 +172,16 @@ Page({ wx.navigateTo({ url: url, }) - } + }, + //下拉事件 + onReachBottom: function () { + var th = this; + if (th.data.total <= th.data.pageSize) return; + if (th.data.ismore) return; + wx.showLoading({ + title: '加载中...', + }) + th.getList(); + }, }); \ No newline at end of file diff --git a/pages/giftpack/mygiftpack/mygiftpack.wxml b/pages/giftpack/mygiftpack/mygiftpack.wxml index f1eddc2..ecd8de2 100644 --- a/pages/giftpack/mygiftpack/mygiftpack.wxml +++ b/pages/giftpack/mygiftpack/mygiftpack.wxml @@ -1,7 +1,7 @@ - + @@ -20,7 +20,7 @@ - + 新人有礼 @@ -71,10 +71,9 @@ {{"原价:¥"+item.giftPosPrice}} - - - {{"兑换截至日期:"+getDate}} - + + {{"兑换截至日期:"+item.endTime}} + {{"距兑换开始时间: "+item.starTime}} @@ -86,7 +85,7 @@ - + @@ -99,10 +98,16 @@ - - + + + + + + 到底了 + + diff --git a/pages/giftpack/mygiftpack/mygiftpack.wxss b/pages/giftpack/mygiftpack/mygiftpack.wxss index 089d370..f723b7b 100644 --- a/pages/giftpack/mygiftpack/mygiftpack.wxss +++ b/pages/giftpack/mygiftpack/mygiftpack.wxss @@ -1,206 +1,254 @@ - - /*引用样式路径*/ @charset "UTF-8"; + /* Author XGQ * 2019-11-12 */ + .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; + margin-bottom: 10rpx; } + .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; + height: 375rpx; + margin: 0rpx 20rpx; + border-radius: 10rpx; + margin-bottom: 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_img_title { - position: absolute; - background: #D01119; - display: -webkit-box; - display: -webkit-flex; - display: flex; - padding: 8rpx; - border-radius: 0rpx 0rpx 10rpx 0rpx; + position: absolute; + background: #d01119; + display: -webkit-box; + display: -webkit-flex; + display: flex; + padding: 8rpx; + border-radius: 0rpx 0rpx 10rpx 0rpx; } -.content_box_img_ground1{ - background: #fb6451; + +.content_box_img_ground1 { + background: #fb6451; } -.content_box_img_ground2{ - background: #ffb72d; + +.content_box_img_ground2 { + background: #ffb72d; } -.content_box_img_ground3{ - background: #9be0e5; + +.content_box_img_ground3 { + background: #9be0e5; } -.content_box_img_ground4{ - background: #4784ef; + +.content_box_img_ground4 { + background: #4784ef; } + .content_box_img_title image { - width: 30rpx; - height: 30rpx; + width: 30rpx; + height: 30rpx; } + .content_box_img_title text { - font-size: 20rpx; - color: #FFFFFF; - line-height: 25rpx; - padding-top: 5rpx; + font-size: 20rpx; + color: #fff; + line-height: 25rpx; + padding-top: 5rpx; } + .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: #c61a34; - margin-top: 20rpx; - position: absolute; - left: 0; - bottom: 25rpx; + font-size: 25rpx; + color: #c61a34; + margin-top: 20rpx; + position: absolute; + left: 0; + bottom: 25rpx; } + .content_box_button { - text-align: right; - margin: 20rpx 25rpx 20rpx 20rpx; + text-align: right; + margin: 20rpx 25rpx 20rpx 20rpx; } + .content_box_button button { - display: inline-block; - width: 160rpx; - height: 50rpx; - font-size: 25rpx; - background: #d41c34; - color: #FFFFFF; - line-height: 50rpx; + display: inline-block; + width: 160rpx; + height: 50rpx; + font-size: 25rpx; + background: #d41c34; + color: #fff; + 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; +} + page { - background-color: #fb7454; + background-color: #fb7454; +} +.After_all { + height: 80rpx; + margin-bottom: 10rpx; + color: rgb(255, 255, 255); +} + +.After_all .Line { + border-top: 3rpx solid rgb(255, 255, 255); + width: 130rpx; +} + +.After_all .end { + margin: 0rpx 15rpx; } diff --git a/pages/user/index/index.wxml b/pages/user/index/index.wxml index 3efcfc0..75e50a1 100644 --- a/pages/user/index/index.wxml +++ b/pages/user/index/index.wxml @@ -216,14 +216,12 @@ 我的服务 - + 我的礼包 - -