This commit is contained in:
2025-12-20 08:34:16 +08:00
commit 9d4fdc7242
872 changed files with 3536 additions and 0 deletions

View File

@@ -0,0 +1 @@
require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages_tool/recharge/list"],{3904:function(e,t,n){"use strict";n.r(t);var i=n("e56a"),o=n.n(i);for(var a in i)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(a);t["default"]=o.a},"9c86":function(e,t,n){},b47e:function(e,t,n){"use strict";var i=n("9c86"),o=n.n(i);o.a},d550:function(e,t,n){"use strict";(function(e,t){var i=n("47a9");n("1dee");i(n("3240"));var o=i(n("f4c6"));e.__webpack_require_UNI_MP_PLUGIN__=n,t(o.default)}).call(this,n("3223")["default"],n("df3c")["createPage"])},e341:function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return i}));var i={uniPopup:function(){return n.e("components/uni-popup/uni-popup").then(n.bind(null,"1843"))},nsPayment:function(){return n.e("components/ns-payment/ns-payment").then(n.bind(null,"7ec1"))},loadingCover:function(){return n.e("components/loading-cover/loading-cover").then(n.bind(null,"0773"))}},o=function(){var e=this,t=e.$createElement,n=(e._self._c,e.list.length),i=e.__map(e.list,(function(t,i){var o=e.__get_orig(t),a=n?parseFloat(t.face_value).toFixed(0):null;return{$orig:o,g1:a}}));e.$mp.data=Object.assign({},{$root:{g0:n,l0:i}})},a=[]},e56a:function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={data:function(){return{list:[],balanceInfo:{balance:0,balance_money:0},isIndex:-1,recharge_id:"",amount:"",payMoney:"",keywordsInfo:{price:0,minPrice:1,maxPrice:30}}},onShow:function(){this.getUserInfo(),this.getData()},methods:{openRecharge:function(){this.isIndex=-1,this.payMoney=0,this.keywordsInfo.price=0,this.recharge_id="",this.$refs.rechargePopup.open()},submitPayment:function(){this.isIndex=-1,this.keywordsInfo.price=0,this.recharge_id="",this.amount=this.payMoney,this.openChoosePayment()},toOrderList:function(){this.$util.redirectTo("/pages_tool/recharge/order_list")},itemClick:function(e,t,n){this.amount&&(this.amount=""),this.isIndex=e,this.recharge_id=t,this.payMoney=parseFloat(n)},keywordsDown:function(e){var t=0==this.keywordsInfo.price?e:this.keywordsInfo.price+""+e,n=t;this.keywordsInfo.price=t,this.payMoney=n},delPrice:function(){var e=this.keywordsInfo.price.toString();e.length&&(this.keywordsInfo.price=e.slice(0,e.length-1),this.keywordsInfo.price.length>0?this.payMoney=this.keywordsInfo.price:this.payMoney="")},keywordsPayment:function(){this.keywordsInfo.price>0?(this.amount=this.payMoney,this.$refs.rechargePopup.close(),this.openChoosePayment()):this.$util.showToast({title:"请输入充值金额"})},cumberFocus:function(){this.isIndex=-1},getUserInfo:function(){var e=this;this.$api.sendRequest({url:"/api/memberaccount/info",data:{account_type:"balance,balance_money"},success:function(t){t.data?e.balanceInfo=t.data:e.$util.showToast({title:t.message})}})},getData:function(){var e=this;this.$api.sendRequest({url:"/memberrecharge/api/memberrecharge/page",data:{page_size:100,page:1},success:function(t){var n=[],i=t.message;0==t.code&&t.data?n=t.data.list:e.$util.showToast({title:i}),e.list=n,e.list.length>0&&(e.isIndex=0,e.recharge_id=e.list[0]["recharge_id"],e.payMoney=parseFloat(e.list[0]["buy_price"])),e.$refs.loadingCover&&e.$refs.loadingCover.hide()},fail:function(){mescroll.endErr(),e.$refs.loadingCover&&e.$refs.loadingCover.hide()}})},toPay:function(){var e=this;""!==this.recharge_id?this.$api.sendRequest({url:"/memberrecharge/api/ordercreate/create",data:{recharge_id:this.recharge_id},success:function(t){t.data&&0==t.code?e.$refs.choosePaymentPopup.getPayInfo(t.data):e.$util.showToast({title:t.message})}}):""!==this.amount?this.$api.sendRequest({url:"/memberrecharge/api/ordercreate/create",data:{recharge_id:0,face_value:this.amount},success:function(t){t.data&&0==t.code?e.$refs.choosePaymentPopup.getPayInfo(t.data):e.$util.showToast({title:t.message})}}):this.$util.showToast({title:"请选择套餐"})},imageError:function(e){this.list[e].cover_img=this.$util.getDefaultImage().goods,this.$forceUpdate()},openChoosePayment:function(){e.setStorageSync("paySource","recharge"),""!==this.amount&&(this.payMoney=parseFloat(this.amount)),this.$refs.choosePaymentPopup.open()}}};t.default=n}).call(this,n("df3c")["default"])},f4c6:function(e,t,n){"use strict";n.r(t);var i=n("e341"),o=n("3904");for(var a in o)["default"].indexOf(a)<0&&function(e){n.d(t,e,(function(){return o[e]}))}(a);n("b47e");var s=n("828b"),r=Object(s["a"])(o["default"],i["b"],i["c"],!1,null,null,null,!1,i["a"],void 0);t["default"]=r.exports}},[["d550","common/runtime","common/vendor"]]]);

View File

@@ -0,0 +1,8 @@
{
"scrollEnabled": true,
"usingComponents": {
"uni-popup": "/components/uni-popup/uni-popup",
"ns-payment": "/components/ns-payment/ns-payment",
"loading-cover": "/components/loading-cover/loading-cover"
}
}

View File

@@ -0,0 +1 @@
<page-meta page-style="{{themeColor}}"></page-meta><view class="page"><view><view class="recharge-box"><view class="recharge-box-title">充值金额<view data-event-opts="{{[['tap',[['toOrderList',['$event']]]]]}}" bindtap="__e"><text class="color-base-text" style="color:#1db03b !important;">充值记录</text></view></view><view class="box-content"><view class="money"><text class="label">¥</text><view class="input-box"><input class="reg-input" placeholder="请输入充值金额" placeholder-style="font-size:32rpx;color:#969696;font-weight:500" data-event-opts="{{[['input',[['__set_model',['','payMoney','$event',[]]]]]]}}" value="{{payMoney}}" bindinput="__e"/></view></view><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><block wx:if="{{$root.g0}}"><view data-event-opts="{{[['tap',[['itemClick',[index,'$0','$1'],[[['list','',index,'recharge_id']],[['list','',index,'buy_price']]]]]]]}}" class="{{['content-item',isIndex==index?'active':'']}}" bindtap="__e"><view class="price1"><text class="price-font">{{item.g1}}</text><text>元</text></view><view class="price2">{{"售价 "+item.$orig.buy_price+" 元"}}</view></view></block></block></view></view></view><uni-popup class="vue-ref" vue-id="03c8dc4e-1" type="bottom" data-ref="rechargePopup" bind:__l="__l" vue-slots="{{['default']}}"><view class="rechargeList"><view class="tip">请输入充值金额</view><view class="input color-tip">{{''+(keywordsInfo.price?keywordsInfo.price:'金额')}}<text class="color-base-text">元</text></view><view class="input color-tip"><block wx:if="{{payMoney>0}}"><text class="color-base-text">{{"售价"+payMoney+"元"}}</text></block></view><view class="keywords"><view class="keywords-left"><view data-event-opts="{{[['tap',[['keywordsDown',[1]]]]]}}" class="active" bindtap="__e">1</view><view data-event-opts="{{[['tap',[['keywordsDown',[2]]]]]}}" class="active" bindtap="__e">2</view><view data-event-opts="{{[['tap',[['keywordsDown',[3]]]]]}}" class="active" bindtap="__e">3</view><view data-event-opts="{{[['tap',[['keywordsDown',[4]]]]]}}" class="active" bindtap="__e">4</view><view data-event-opts="{{[['tap',[['keywordsDown',[5]]]]]}}" class="active" bindtap="__e">5</view><view data-event-opts="{{[['tap',[['keywordsDown',[6]]]]]}}" class="active" bindtap="__e">6</view><view data-event-opts="{{[['tap',[['keywordsDown',[7]]]]]}}" class="active" bindtap="__e">7</view><view data-event-opts="{{[['tap',[['keywordsDown',[8]]]]]}}" class="active" bindtap="__e">8</view><view data-event-opts="{{[['tap',[['keywordsDown',[9]]]]]}}" class="active" bindtap="__e">9</view><view></view><view data-event-opts="{{[['tap',[['keywordsDown',[0]]]]]}}" class="active" bindtap="__e">0</view><view></view></view><view class="keywords-right"><view data-event-opts="{{[['tap',[['delPrice',['$event']]]]]}}" bindtap="__e"><text class="iconfont icon-close"></text></view><view data-event-opts="{{[['tap',[['keywordsPayment']]]]}}" class="color-base-bg" bindtap="__e">确认充值</view></view></view></view></uni-popup><ns-payment class="vue-ref" vue-id="03c8dc4e-2" payMoney="{{payMoney}}" data-ref="choosePaymentPopup" data-event-opts="{{[['^confirm',[['toPay']]]]}}" bind:confirm="__e" bind:__l="__l"></ns-payment><view style="background:#fff;width:100%;position:fixed;bottom:0rpx;"><button class="add-account" type="primary" data-event-opts="{{[['tap',[['submitPayment',['$event']]]]]}}" bindtap="__e">充值</button></view><loading-cover class="vue-ref" vue-id="03c8dc4e-3" data-ref="loadingCover" bind:__l="__l"></loading-cover></view>

View File

@@ -0,0 +1,3 @@
.page{box-sizing:border-box}.mescroll-uni-fixed{bottom:280rpx!important}.recharge-title{font-size:60rpx;font-weight:700}.account-box{margin-top:30rpx;display:flex;justify-content:space-between;align-items:baseline;border-bottom:2rpx solid #f6f6f6;padding-bottom:20rpx}.account-box .label{font-size:30rpx;font-weight:700}.account-box .value text{font-size:28rpx;font-weight:700}.account-box .value .price-font{font-size:60rpx;font-weight:700}.explain{margin-top:80rpx;padding:20rpx 0;background-color:#fff;border-radius:10rpx}.explain .title{font-size:32rpx;font-weight:700}.explain .explain_list view{font-size:26rpx;color:#909399}.rechargeList .tip{padding:30rpx;text-align:center;font-size:32rpx}.rechargeList .input{text-align:center;margin-bottom:20rpx}.rechargeList .input text{margin-left:10rpx}.rechargeList .keywords{display:flex;border-top:1px solid #eee;margin-top:20rpx}.rechargeList .keywords .keywords-left{flex:1;display:flex;flex-wrap:wrap}.rechargeList .keywords .keywords-left > view{width:calc((100% - 3px) / 3);text-align:center;height:112rpx;line-height:112rpx;border-right:1px solid #eee;border-bottom:1px solid #eee;font-size:40rpx}.rechargeList .keywords .keywords-left > view.active:active{background-color:rgba(0,0,0,.5)}.rechargeList .keywords .keywords-right{display:flex;flex-wrap:wrap;flex-direction:column;width:200rpx;text-align:center}.rechargeList .keywords .keywords-right > view{flex:1;line-height:228rpx}.rechargeList .keywords .keywords-right > view:last-child{color:#fff}.recharge-price{width:calc(100% - 60rpx);background-color:#fff;margin:20rpx 30rpx 0;border-radius:10rpx;padding:30rpx 30rpx 25rpx;box-sizing:border-box}.recharge-price .recharge-price-title{font-size:28rpx;color:#303133;line-height:1}.recharge-price .recharge-price-custom{border-bottom:1px solid #ddd;padding-bottom:20rpx;display:flex;align-items:center;margin-top:45rpx}.recharge-price .recharge-price-custom text{font-size:54rpx;color:#303133;line-height:1}.recharge-price .recharge-price-custom input{font-size:54rpx;line-height:1}.recharge-price .recharge-price-desc{display:flex;margin-top:16rpx;align-items:center}.recharge-price .recharge-price-desc image{width:34rpx;height:34rpx;margin-right:13rpx}.recharge-price .recharge-price-desc text{font-size:26rpx;color:#909399;line-height:1}.recharge-box{padding:28rpx 24rpx 32rpx;background:#fff;height:100%;box-sizing:border-box;border-radius:24rpx;margin:32rpx}.recharge-box .recharge-box-title{font-size:28rpx;color:#212121;line-height:1;display:flex;align-items:center;justify-content:space-between;margin-bottom:28rpx}.recharge-box .box-title{text-align:center;font-size:32rpx}.recharge-box .box-custom{width:226rpx;border-bottom:1px solid #ddd;margin:0 auto;margin-top:49rpx;line-height:1;padding-bottom:10rpx;box-sizing:border-box}.recharge-box .box-custom .pla-number{font-size:30rpx}.recharge-box .box-custom input{height:97rpx;width:100%;font-size:62rpx;color:#000;text-align:center;line-height:1}.recharge-box .box-content{width:100%;box-sizing:border-box;display:flex;flex-wrap:wrap;max-height:50vh;overflow-y:scroll}.recharge-box .box-content .money{width:100%;display:flex;flex-wrap:nowrap;align-items:flex-end}.recharge-box .box-content .money .label{width:30px;font-size:30px;text-align:center;line-height:42px;padding-bottom:2px;color:#212121;font-weight:600;flex-shrink:0}.recharge-box .box-content .money .input-box{width:0;flex:1}.recharge-box .box-content .money .input-box .reg-input{height:48px!important;font-size:34px!important;line-height:48px!important;height:48px;font-weight:700!important;color:#212121}.recharge-box .box-content .content-item{width:calc((100% - 48rpx) / 3);margin-right:24rpx;height:142rpx;margin-top:25rpx;border-radius:16rpx;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#303133;box-sizing:border-box;text-align:center;background:#f7f7fb}.recharge-box .box-content .content-item:nth-child(3n){margin-right:0}.recharge-box .box-content .content-item .price1{font-size:28rpx;display:flex;align-items:flex-end;color:#333}.recharge-box .box-content .content-item .price1 text:first-child{font-size:40rpx;line-height:1}.recharge-box .box-content .content-item .price1 text:nth-child(2){font-size:28rpx;line-height:1}.recharge-box .box-content .content-item .price1 .other{font-size:32rpx!important;color:#666}.recharge-box .box-content .content-item .price2{font-size:24rpx;color:#666;line-height:1;margin-top:16rpx}.recharge-box .box-content .content-item.color-base-bg .price1,
.recharge-box .box-content .content-item.color-base-bg .price2{color:#fff!important}.recharge-box .box-content .content-item.active{background:linear-gradient(136deg,var(--promotion-aux-color),var(--promotion-color))}.recharge-box .box-content .content-item.active .price1,
.recharge-box .box-content .content-item.active .price2{color:#fff!important}.recharge-box .box-text{margin-top:40rpx;font-size:26rpx;color:var(--main-color)}.add-account{margin:0;margin-top:5vh;height:76rpx;line-height:76rpx;border-radius:90rpx;background:#1db03b!important;color:#fff!important;font-size:28rpx;margin:18rpx 24rpx}

View File

@@ -0,0 +1 @@
require('../common/vendor.js');(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages_tool/recharge/order_list"],{"143a":function(e,n,t){"use strict";t.r(n);var r=t("5446"),o=t.n(r);for(var i in r)["default"].indexOf(i)<0&&function(e){t.d(n,e,(function(){return r[e]}))}(i);n["default"]=o.a},"2ae6":function(e,n,t){"use strict";var r=t("7877"),o=t.n(r);o.a},"2e11":function(e,n,t){"use strict";t.r(n);var r=t("3615"),o=t("143a");for(var i in o)["default"].indexOf(i)<0&&function(e){t.d(n,e,(function(){return o[e]}))}(i);t("2ae6");var a=t("828b"),s=Object(a["a"])(o["default"],r["b"],r["c"],!1,null,null,null,!1,r["a"],void 0);n["default"]=s.exports},3615:function(e,n,t){"use strict";t.d(n,"b",(function(){return o})),t.d(n,"c",(function(){return i})),t.d(n,"a",(function(){return r}));var r={nsEmpty:function(){return t.e("components/ns-empty/ns-empty").then(t.bind(null,"a84f"))},loadingCover:function(){return t.e("components/loading-cover/loading-cover").then(t.bind(null,"0773"))},nsLogin:function(){return Promise.all([t.e("common/vendor"),t.e("components/ns-login/ns-login")]).then(t.bind(null,"17d0"))}},o=function(){var e=this,n=e.$createElement,t=(e._self._c,e.orderList.length),r=t>0?e.__map(e.orderList,(function(n,t){var r=e.__get_orig(n),o=e.$util.timeStampTurnTime(n.create_time);return{$orig:r,g1:o}})):null;e.$mp.data=Object.assign({},{$root:{g0:t,l0:r}})},i=[]},5446:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0;n.default={data:function(){return{orderList:[]}},onShow:function(){var e=this;this.$refs.mescroll&&this.$refs.mescroll.refresh(),this.storeToken||this.$nextTick((function(){e.$refs.login.open("/pages_tool/recharge/order_list")}))},methods:{getListData:function(e){var n=this;this.$api.sendRequest({url:"/memberrecharge/api/order/page",data:{page:e.num,page_size:e.size},success:function(t){var r=[],o=t.message;0==t.code&&t.data?r=t.data.list:n.$util.showToast({title:o}),e.endSuccess(r.length),1==e.num&&(n.orderList=[]),n.orderList=n.orderList.concat(r),n.$refs.loadingCover&&n.$refs.loadingCover.hide()},fail:function(t){e.endErr(),n.$refs.loadingCover&&n.$refs.loadingCover.hide()}})},imageError:function(e){this.orderList[e].cover_img=this.$util.getDefaultImage().goods,this.$forceUpdate()}}}},7877:function(e,n,t){},"7b30":function(e,n,t){"use strict";(function(e,n){var r=t("47a9");t("1dee");r(t("3240"));var o=r(t("2e11"));e.__webpack_require_UNI_MP_PLUGIN__=t,n(o.default)}).call(this,t("3223")["default"],t("df3c")["createPage"])}},[["7b30","common/runtime","common/vendor"]]]);

View File

@@ -0,0 +1,7 @@
{
"usingComponents": {
"ns-empty": "/components/ns-empty/ns-empty",
"loading-cover": "/components/loading-cover/loading-cover",
"ns-login": "/components/ns-login/ns-login"
}
}

View File

@@ -0,0 +1 @@
<page-meta page-style="{{themeColor}}"></page-meta><view class="order-container"><mescroll-uni class="vue-ref" bind:getData="__e" vue-id="3379e3c6-1" data-ref="mescroll" data-event-opts="{{[['^getData',[['getListData']]]]}}" bind:__l="__l" vue-slots="{{['list']}}"><view slot="list"><block wx:if="{{$root.g0>0}}"><block><block wx:for="{{$root.l0}}" wx:for-item="orderItem" wx:for-index="orderIndex" wx:key="orderIndex"><view class="order-item"><view class="order-header"><view><text class="color-tip font-size-tag">{{orderItem.$orig.order_no}}</text></view><view class="align-right"><text class="color-tip font-size-tag">{{orderItem.g1}}</text></view></view><view class="order-body"><view class="goods_info_flex"><view class="goods-name font-size-base">充值成功</view></view><view class="goods-img color-base-text">¥<text>{{orderItem.$orig.buy_price}}</text></view></view></view></block></block></block><block wx:else><view><ns-empty vue-id="{{('3379e3c6-2')+','+('3379e3c6-1')}}" isIndex="{{false}}" text="暂无充值记录" bind:__l="__l"></ns-empty></view></block></view></mescroll-uni><loading-cover class="vue-ref" vue-id="3379e3c6-3" data-ref="loadingCover" bind:__l="__l"></loading-cover><ns-login class="vue-ref" vue-id="3379e3c6-4" data-ref="login" bind:__l="__l"></ns-login></view>

View File

@@ -0,0 +1 @@
.order-container{width:100vw;height:100vh}.align-right{text-align:right}.order-item{margin:20rpx 30rpx;padding:0 30rpx;border-radius:10rpx;background:#fff;position:relative}.order-item .order-header{display:flex;align-items:center;position:relative;height:80rpx;line-height:80rpx;border-bottom:1px solid #e3e3e3}.order-item .order-header > view{flex:1;line-height:1;font-weight:500}.order-item .order-body{height:155rpx;position:relative}.order-item .order-body .goods_info_flex{display:flex;justify-content:space-between;align-items:center;padding-top:30rpx}.order-item .order-body .goods_info_flex .goods-name{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;line-height:1;font-weight:500}.order-item .order-body .goods-img{font-size:24rpx;font-weight:500;position:absolute;right:0;top:20rpx}.order-item .order-body .goods-img text{font-size:32rpx}.order-item .order-body .goods-sub-section{width:100%;line-height:1;display:flex;margin-top:39rpx;font-size:24rpx}.order-item .order-body .goods-sub-section view{line-height:1;text-align:right;margin-right:10rpx;font-size:24rpx}