Commit 3c971b5720613c112bed4edf89fa14970da5ee12
1 parent
845dd3e8
购卡明细
Showing
8 changed files
with
274 additions
and
3 deletions
app.json
| @@ -84,7 +84,6 @@ | @@ -84,7 +84,6 @@ | ||
| 84 | "pages/cart/cart2_inte/cart2_inte", | 84 | "pages/cart/cart2_inte/cart2_inte", |
| 85 | "pages/giftpack/festival/festival", | 85 | "pages/giftpack/festival/festival", |
| 86 | "pages/team/team_more/team_more", | 86 | "pages/team/team_more/team_more", |
| 87 | - | ||
| 88 | "pages/user/deposit/deposit", | 87 | "pages/user/deposit/deposit", |
| 89 | "pages/user/deposit/prepaid/msg/msg", | 88 | "pages/user/deposit/prepaid/msg/msg", |
| 90 | "pages/user/deposit/prepaid/prepaid", | 89 | "pages/user/deposit/prepaid/prepaid", |
| @@ -136,6 +135,7 @@ | @@ -136,6 +135,7 @@ | ||
| 136 | "pages/my_service/tment_eval", | 135 | "pages/my_service/tment_eval", |
| 137 | "pages/my_service/tment_order_list", | 136 | "pages/my_service/tment_order_list", |
| 138 | "pages/my_service/beauty_deta", | 137 | "pages/my_service/beauty_deta", |
| 138 | + "pages/my_service2/appment_main", | ||
| 139 | "pages/profile/profile", | 139 | "pages/profile/profile", |
| 140 | "pages/parseHtml/parseHtml", | 140 | "pages/parseHtml/parseHtml", |
| 141 | "pages/myGift/myGift", | 141 | "pages/myGift/myGift", |
| @@ -152,7 +152,8 @@ | @@ -152,7 +152,8 @@ | ||
| 152 | "pages/user/comment/comment", | 152 | "pages/user/comment/comment", |
| 153 | "pages/user/view_comment/view_comment", | 153 | "pages/user/view_comment/view_comment", |
| 154 | "pages/user/add_comment/add_comment", | 154 | "pages/user/add_comment/add_comment", |
| 155 | - "pages/user/user_coupon/user_coupon" | 155 | + "pages/user/user_coupon/user_coupon", |
| 156 | + "pages/user/buyDetails/buyDetails" | ||
| 156 | ] | 157 | ] |
| 157 | 158 | ||
| 158 | } | 159 | } |
app.wxss
packageB/pages/user/buyDetails/buyDetails.js
0 → 100644
| 1 | +const app = getApp(); | ||
| 2 | +let self = null; | ||
| 3 | + | ||
| 4 | +Page({ | ||
| 5 | + | ||
| 6 | + /** | ||
| 7 | + * 页面的初始数据 | ||
| 8 | + */ | ||
| 9 | + data: { | ||
| 10 | + tabArr: ['购买', '续费'], | ||
| 11 | + currentIndex: 0, | ||
| 12 | + | ||
| 13 | + list: null, | ||
| 14 | + isLoading: false, // 检测是否已经发送请求,防止重复发送请求 | ||
| 15 | + noMore: false, // 检测是否有更多数据,true为没有更多数据,false为还有数据 | ||
| 16 | + pageNum: 1, // 当前页数 | ||
| 17 | + }, | ||
| 18 | + | ||
| 19 | + | ||
| 20 | + /** | ||
| 21 | + * 生命周期函数--监听页面加载 | ||
| 22 | + */ | ||
| 23 | + onLoad: function (options) { | ||
| 24 | + self = this; | ||
| 25 | + app.isLogin().then(function(data) {//进入页面前已经授权登录成功 | ||
| 26 | + self.setData({ | ||
| 27 | + userInfo: data, | ||
| 28 | + }); | ||
| 29 | + }); | ||
| 30 | + }, | ||
| 31 | + | ||
| 32 | + /** | ||
| 33 | + * 生命周期函数--监听页面初次渲染完成 | ||
| 34 | + */ | ||
| 35 | + onReady: function () { | ||
| 36 | + | ||
| 37 | + }, | ||
| 38 | + | ||
| 39 | + /** | ||
| 40 | + * 生命周期函数--监听页面显示 | ||
| 41 | + */ | ||
| 42 | + onShow: function () { | ||
| 43 | + if(app.globalData.userInfo) { | ||
| 44 | + if(!this.data.isLogin) { | ||
| 45 | + this.setData({ | ||
| 46 | + userInfo: app.globalData.userInfo, | ||
| 47 | + imghost: app.globalData.setting.imghost, | ||
| 48 | + isLogin: true, | ||
| 49 | + }); | ||
| 50 | + | ||
| 51 | + // this.getData(true, '/api/weshop/plus/vip/mem/listBuyRecord', { | ||
| 52 | + // storeId: app.globalData.setting.stoid, | ||
| 53 | + // userId: app.globalData.user_id, | ||
| 54 | + // }); | ||
| 55 | + | ||
| 56 | + | ||
| 57 | + app.request.promiseGet('/api/weshop/plus/vip/mem/listBuyRecord', { | ||
| 58 | + data: { | ||
| 59 | + storeId: app.globalData.setting.stoid, | ||
| 60 | + userId: app.globalData.user_id, | ||
| 61 | + }, | ||
| 62 | + isShowLoading: true, | ||
| 63 | + }).then(function(res) { | ||
| 64 | + self.setData({ | ||
| 65 | + list: res.data.data, | ||
| 66 | + }); | ||
| 67 | + }); | ||
| 68 | + | ||
| 69 | + | ||
| 70 | + | ||
| 71 | + }; | ||
| 72 | + }; | ||
| 73 | + }, | ||
| 74 | + | ||
| 75 | + /** | ||
| 76 | + * 生命周期函数--监听页面隐藏 | ||
| 77 | + */ | ||
| 78 | + onHide: function () { | ||
| 79 | + | ||
| 80 | + }, | ||
| 81 | + | ||
| 82 | + /** | ||
| 83 | + * 生命周期函数--监听页面卸载 | ||
| 84 | + */ | ||
| 85 | + onUnload: function () { | ||
| 86 | + | ||
| 87 | + }, | ||
| 88 | + | ||
| 89 | + /** | ||
| 90 | + * 页面相关事件处理函数--监听用户下拉动作 | ||
| 91 | + */ | ||
| 92 | + onPullDownRefresh: function () { | ||
| 93 | + | ||
| 94 | + }, | ||
| 95 | + | ||
| 96 | + /** | ||
| 97 | + * 页面上拉触底事件的处理函数 | ||
| 98 | + */ | ||
| 99 | + onReachBottom: function () { | ||
| 100 | + this.scrollToLower('/api/weshop/plus/vip/mem/listBuyRecord', { | ||
| 101 | + store_id: app.globalData.setting.stoid, | ||
| 102 | + user_id: app.globalData.user_id, | ||
| 103 | + }); | ||
| 104 | + }, | ||
| 105 | + | ||
| 106 | + /** | ||
| 107 | + * 用户点击右上角分享 | ||
| 108 | + */ | ||
| 109 | + onShareAppMessage: function () { | ||
| 110 | + | ||
| 111 | + }, | ||
| 112 | + | ||
| 113 | +}) | ||
| 0 | \ No newline at end of file | 114 | \ No newline at end of file |
packageB/pages/user/buyDetails/buyDetails.json
0 → 100644
packageB/pages/user/buyDetails/buyDetails.wxml
0 → 100644
| 1 | +<wxs module="filter" src="../../../../utils/filter.wxs"></wxs> | ||
| 2 | +<view class="list"> | ||
| 3 | + <view class="item" wx:for="{{list}}"> | ||
| 4 | + <view class="pd20 bdb"> | ||
| 5 | + <view class="fs24 c-a4">支付流水号 {{item.PayNo}}</view> | ||
| 6 | + </view> | ||
| 7 | + <view class="flex jc_sa t-c pd20"> | ||
| 8 | + <view class="w33 flex fdc"> | ||
| 9 | + <view class="fs24 c-a4 pdb10">PLUS卡名</view> | ||
| 10 | + <view class="fs28 f1 flex ai_c jc-center"><text class="ellipsis-2">{{item.CardName}}名名名名名名名名名名名名名名</text></view> | ||
| 11 | + </view> | ||
| 12 | + <view class="w33 flex fdc"> | ||
| 13 | + <view class="fs24 c-a4 pdb10">有效期</view> | ||
| 14 | + <view class="fs28 f1 flex ai_c jc-center">{{filter.show_default(item.EffectiveDate)}}</view> | ||
| 15 | + </view> | ||
| 16 | + <view class="w33 flex fdc"> | ||
| 17 | + <view class="fs24 c-a4 pdb10">提交时间</view> | ||
| 18 | + <view class="fs28 f1 flex ai_c jc-center">{{item.BillDate}}</view> | ||
| 19 | + </view> | ||
| 20 | + </view> | ||
| 21 | + <view class="bg-f8 pdh20 pdv10 flex jc_sb ai_c"> | ||
| 22 | + <text class="fs24 c-a4">类型:{{item.Buytype == 1 ? '购买':'续费'}}</text> | ||
| 23 | + <text class="rmb c-red">{{item.CardFee}}</text> | ||
| 24 | + </view> | ||
| 25 | + </view> | ||
| 26 | + | ||
| 27 | + | ||
| 28 | + | ||
| 29 | + <nodata nodataContainer="t-c" wx:if="{{list.length == 0}}"></nodata> | ||
| 30 | +</view> | ||
| 31 | + | ||
| 32 | + | ||
| 33 | + |
packageB/pages/user/buyDetails/buyDetails.wxss
0 → 100644
| 1 | +@charset "utf-8"; | ||
| 2 | + | ||
| 3 | +.noMore { | ||
| 4 | + padding: 20rpx; | ||
| 5 | + color: #bbb; | ||
| 6 | + text-align: center; | ||
| 7 | + font-size: 22rpx; | ||
| 8 | +} | ||
| 9 | + | ||
| 10 | +.c-a4 { | ||
| 11 | + color: #a4a4a4; | ||
| 12 | +} | ||
| 13 | + | ||
| 14 | +.c-red { | ||
| 15 | + color: #FF6768; | ||
| 16 | +} | ||
| 17 | + | ||
| 18 | +page { | ||
| 19 | + background-color: #f0f0f0; | ||
| 20 | +} | ||
| 21 | + | ||
| 22 | +.tab-title { | ||
| 23 | + display: flex; | ||
| 24 | + position: sticky; | ||
| 25 | + background-color: white; | ||
| 26 | + top: 0; | ||
| 27 | + font-size: 30rpx; | ||
| 28 | + z-index: 999; | ||
| 29 | +} | ||
| 30 | + | ||
| 31 | +.tab-title::after { | ||
| 32 | + position: absolute; | ||
| 33 | + content: ''; | ||
| 34 | + width: 2rpx; | ||
| 35 | + height: 40%; | ||
| 36 | + background-color: #f0f0f0; | ||
| 37 | + top: 0; | ||
| 38 | + bottom: 0; | ||
| 39 | + left: 0; | ||
| 40 | + right: 0; | ||
| 41 | + margin: auto; | ||
| 42 | +} | ||
| 43 | + | ||
| 44 | +.tab-title-item { | ||
| 45 | + flex: 1; | ||
| 46 | + text-align: center; | ||
| 47 | + padding-top: 20rpx; | ||
| 48 | + padding-bottom: 20rpx; | ||
| 49 | + position: relative; | ||
| 50 | +} | ||
| 51 | + | ||
| 52 | +.tab-title-item.active { | ||
| 53 | + color: #FF6768; | ||
| 54 | + font-weight: bold; | ||
| 55 | + | ||
| 56 | +} | ||
| 57 | + | ||
| 58 | +.tab-title-item::after { | ||
| 59 | + position: absolute; | ||
| 60 | + content: ''; | ||
| 61 | + left: 100%; | ||
| 62 | + bottom: 0; | ||
| 63 | + width: 0; | ||
| 64 | + border-bottom: 2rpx solid #FF6768; | ||
| 65 | + /* height: 3rpx; */ | ||
| 66 | + transition: 0.2s all linear; | ||
| 67 | +} | ||
| 68 | + | ||
| 69 | +.tab-title-item.active::after { | ||
| 70 | + /* left: 100%; */ | ||
| 71 | + width: 100%; | ||
| 72 | + left: 0; | ||
| 73 | + /* background-color: #FF6768; */ | ||
| 74 | + /* transition-delay: 0.1s; */ | ||
| 75 | +} | ||
| 76 | + | ||
| 77 | +.tab-title-item.active ~ .tab-title-item::after { | ||
| 78 | + /* width: 100%; */ | ||
| 79 | + left: 0; | ||
| 80 | +} | ||
| 81 | + | ||
| 82 | +.list { | ||
| 83 | + padding: 20rpx 20rpx 0 20rpx; | ||
| 84 | +} | ||
| 85 | + | ||
| 86 | +.item { | ||
| 87 | + background-color: white; | ||
| 88 | + border-radius: 8rpx; | ||
| 89 | + overflow: hidden; | ||
| 90 | +} | ||
| 91 | + | ||
| 92 | +.item ~ .item { | ||
| 93 | + margin-top: 20rpx; | ||
| 94 | +} | ||
| 95 | + | ||
| 96 | +.rmb::before { | ||
| 97 | + content: '¥'; | ||
| 98 | +} | ||
| 0 | \ No newline at end of file | 99 | \ No newline at end of file |
pages/user/cardinfo/cardinfo.js
| @@ -876,7 +876,21 @@ Page({ | @@ -876,7 +876,21 @@ Page({ | ||
| 876 | //显示弹出框 | 876 | //显示弹出框 |
| 877 | show_change:function () { this.setData({is_show_change_pop:1}); }, | 877 | show_change:function () { this.setData({is_show_change_pop:1}); }, |
| 878 | //关闭弹出框 | 878 | //关闭弹出框 |
| 879 | - close_card_change_pop:function () { this.setData({is_show_change_pop:0}); } | 879 | + close_card_change_pop:function () { this.setData({is_show_change_pop:0}); }, |
| 880 | + | ||
| 881 | + | ||
| 882 | + /** | ||
| 883 | + * 点击跳转 | ||
| 884 | + */ | ||
| 885 | + goto(e) { | ||
| 886 | + let url = ''; | ||
| 887 | + if(e.target.dataset.url) { | ||
| 888 | + url = e.target.dataset.url; | ||
| 889 | + } else { | ||
| 890 | + url = e.currentTarget.dataset.url; | ||
| 891 | + } | ||
| 892 | + t.goto(url); | ||
| 893 | + }, | ||
| 880 | 894 | ||
| 881 | 895 | ||
| 882 | 896 |
pages/user/cardinfo/cardinfo.wxml
| @@ -28,6 +28,7 @@ | @@ -28,6 +28,7 @@ | ||
| 28 | <!-- 要判断是不是最高级的卡 --> | 28 | <!-- 要判断是不是最高级的卡 --> |
| 29 | <view wx:if="{{cardid!=big_card.CardId}}" bindtap="show_change" class="renew fs28" style="background:{{user_card.CardColor}}">卡类升级</view> | 29 | <view wx:if="{{cardid!=big_card.CardId}}" bindtap="show_change" class="renew fs28" style="background:{{user_card.CardColor}}">卡类升级</view> |
| 30 | </block> | 30 | </block> |
| 31 | + <view bindtap="goto" class="renew fs28" style="background:{{user_card.CardColor}}" data-url="/packageB/pages/user/buyDetails/buyDetails">购卡明细</view> | ||
| 31 | </view> | 32 | </view> |
| 32 | 33 | ||
| 33 | 34 |