完善余额功能

This commit is contained in:
2025-05-09 17:51:34 +08:00
parent 2a32bd6fe5
commit 9cd1e5eaca
23 changed files with 603 additions and 174 deletions

View File

@ -242,6 +242,8 @@ var _type = __webpack_require__(/*! @/utils/type */ 42);
//
//
//
//
//
var _default = {
data: function data() {
return {

View File

@ -1 +1 @@
<view class="index home-bg" style="{{$root.s0}}"><u-sticky vue-id="39aa39a1-1" offset-top="0" h5-nav-height="0" bg-color="transparent" enable="{{true}}" bind:__l="__l" vue-slots="{{['default']}}"><u-navbar vue-id="{{('39aa39a1-2')+','+('39aa39a1-1')}}" border-bottom="{{false}}" is-fixed="{{false}}" custom-class="home-bg" background="{{navBackground}}" is-back="{{true}}" backText="{{backText}}" title="{{title}}" title-color="#fff" backIconColor="#fff" bind:__l="__l"></u-navbar></u-sticky><view class="row-center balance u-relative" style="{{'padding-top:'+(topSpace+'px')+';'}}"><view class="u-text-center w-full"><view class="text-fff" style="font-size:96rpx;">{{userInfo.user_integral}}</view><view class="text-fff nr">积分</view></view><view class="u-absolute right-0"><view class="excharge row-center text-default"><text class="xs">兑换商品</text><u-icon class="u-m-l-10" vue-id="39aa39a1-3" name="arrow-right" size="22" color="{{themeColor}}" bind:__l="__l"></u-icon></view></view></view><view class="u-p-b-40" style="margin-top:132rpx;"><view class="list bg-white br16 u-p-32"><view class="lg">积分明细</view><scroll-view style="height:880rpx;" scroll-y="true" refresher-enabled="{{true}}" refresher-triggered="{{isRefreshing}}" data-event-opts="{{[['refresherrefresh',[['refreshCallback',['$event']]]],['scrolltolower',[['upCallback',['$event']]]]]}}" bindrefresherrefresh="__e" bindscrolltolower="__e"><view class="u-m-t-16"><block wx:for="{{lists}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="u-m-b-16"><view class="nr row-between"><view>{{item.source_type}}</view><view class="deduct">{{item.change_amount}}</view></view><view class="date xs u-m-t-16">{{item.change_amount}}</view></view></block></view><loading-footer vue-id="39aa39a1-4" status="{{loadingStatus}}" bind:__l="__l"></loading-footer></scroll-view></view></view></view>
<view class="index home-bg" style="{{$root.s0}}"><u-sticky vue-id="39aa39a1-1" offset-top="0" h5-nav-height="0" bg-color="transparent" enable="{{true}}" bind:__l="__l" vue-slots="{{['default']}}"><u-navbar vue-id="{{('39aa39a1-2')+','+('39aa39a1-1')}}" border-bottom="{{false}}" is-fixed="{{false}}" custom-class="home-bg" background="{{navBackground}}" is-back="{{true}}" backText="{{backText}}" title="{{title}}" title-color="#fff" backIconColor="#fff" bind:__l="__l"></u-navbar></u-sticky><view class="row-center balance u-relative" style="{{'padding-top:'+(topSpace+'px')+';'}}"><view class="u-text-center w-full"><view class="text-fff" style="font-size:96rpx;">{{userInfo.user_integral}}</view><view class="text-fff nr">积分</view></view><view class="u-absolute right-0"><navigator url="/bundle/pages/points/points_store" hover-class="none"><view class="excharge row-center text-default"><text class="xs">兑换商品</text><u-icon class="u-m-l-10" vue-id="39aa39a1-3" name="arrow-right" size="22" color="{{themeColor}}" bind:__l="__l"></u-icon></view></navigator></view></view><view class="u-p-b-40" style="margin-top:132rpx;"><view class="list bg-white br16 u-p-32"><view class="lg">积分明细</view><scroll-view style="height:880rpx;" scroll-y="true" refresher-enabled="{{true}}" refresher-triggered="{{isRefreshing}}" data-event-opts="{{[['refresherrefresh',[['refreshCallback',['$event']]]],['scrolltolower',[['upCallback',['$event']]]]]}}" bindrefresherrefresh="__e" bindscrolltolower="__e"><view class="u-m-t-16"><block wx:for="{{lists}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view class="u-m-b-16"><view class="nr row-between"><view>{{item.source_type}}</view><view class="deduct">{{item.change_amount}}</view></view><view class="date xs u-m-t-16">{{item.change_amount}}</view></view></block></view><loading-footer vue-id="39aa39a1-4" status="{{loadingStatus}}" bind:__l="__l"></loading-footer></scroll-view></view></view></view>

View File

@ -167,7 +167,7 @@ __webpack_require__.r(__webpack_exports__);
/***/ (function(module, exports, __webpack_require__) {
"use strict";
/* WEBPACK VAR INJECTION */(function(uni) {
Object.defineProperty(exports, "__esModule", {
value: true
@ -230,10 +230,16 @@ var _default = {
methods: {
change: function change(index) {
this.current = index;
},
toExchange: function toExchange() {
uni.navigateTo({
url: "/bundle/pages/points/points_shop"
});
}
}
};
exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 2)["default"]))
/***/ }),

View File

@ -1 +1 @@
<view class="points-store u-relative"><view class="bg-default bg u-text-center text-fff"><view class="u-p-t-42"><view class="sm">可用积分</view><view class="fraction bold-600 u-m-t-14">0.00</view></view></view><view class="u-absolute left-0 right-0 bg-white u-p-t-34 list"><view><u-tabs vue-id="73f6c8bf-1" list="{{list}}" is-scroll="{{true}}" current="{{current}}" inactive-color="#636363" active-color="{{themeColor}}" data-event-opts="{{[['^change',[['change']]]]}}" bind:change="__e" bind:__l="__l"></u-tabs></view><view class="u-m-l-24 u-m-r-24"><u-line vue-id="73f6c8bf-2" color="#EEE" bind:__l="__l"></u-line></view><view class="u-m-t-32 u-m-l-24 u-m-r-24"><block wx:for="{{10}}" wx:for-item="itme" wx:for-index="index"><view class="row-start u-col-top u-m-b-42"><view><u-image vue-id="{{'73f6c8bf-3-'+index}}" src="{{cloudPath+'img/banner.png'}}" width="180" height="180" border-radius="20" bind:__l="__l"></u-image></view><view class="u-m-l-18 w-full"><view>小熊早餐必备煮蛋器</view><view class="u-m-t-4 text-7c">兑换66人</view><view class="u-m-t-42 row-between"><view><text class="primary">100.00</text><text class="text-7c">积分+</text><text class="primary">100.00</text><text class="text-7c">元</text></view><view><u-button vue-id="{{'73f6c8bf-4-'+index}}" hover-class="none" customStyle="{{({width:'145rpx',height:'61rpx',backgroundColor:themeColor,color:'#fff',border:'none',borderRadius:'31rpx'})}}" hair-line="{{false}}" data-event-opts="{{[['^click',[['mpLogin']]]]}}" bind:click="__e" bind:__l="__l" vue-slots="{{['default']}}">兑换</u-button></view></view></view></view></block></view></view></view>
<view class="points-store u-relative"><view class="bg-default bg u-text-center text-fff"><view class="u-p-t-42"><view class="sm">可用积分</view><view class="fraction bold-600 u-m-t-14">0.00</view></view></view><view class="u-absolute left-0 right-0 bg-white u-p-t-34 list"><view><u-tabs vue-id="73f6c8bf-1" list="{{list}}" is-scroll="{{true}}" current="{{current}}" inactive-color="#636363" active-color="{{themeColor}}" data-event-opts="{{[['^change',[['change']]]]}}" bind:change="__e" bind:__l="__l"></u-tabs></view><view class="u-m-l-24 u-m-r-24"><u-line vue-id="73f6c8bf-2" color="#EEE" bind:__l="__l"></u-line></view><view class="u-m-t-32 u-m-l-24 u-m-r-24"><block wx:for="{{10}}" wx:for-item="itme" wx:for-index="index"><view class="row-start u-col-top u-m-b-42"><view><u-image vue-id="{{'73f6c8bf-3-'+index}}" src="{{cloudPath+'img/banner.png'}}" width="180" height="180" border-radius="20" bind:__l="__l"></u-image></view><view class="u-m-l-18 w-full"><view>小熊早餐必备煮蛋器</view><view class="u-m-t-4 text-7c">兑换66人</view><view class="u-m-t-42 row-between"><view><text class="primary">100.00</text><text class="text-7c">积分+</text><text class="primary">100.00</text><text class="text-7c">元</text></view><view><u-button vue-id="{{'73f6c8bf-4-'+index}}" hover-class="none" customStyle="{{({width:'145rpx',height:'61rpx',backgroundColor:themeColor,color:'#fff',border:'none',borderRadius:'31rpx'})}}" hair-line="{{false}}" data-event-opts="{{[['^click',[['toExchange']]]]}}" bind:click="__e" bind:__l="__l" vue-slots="{{['default']}}">兑换</u-button></view></view></view></view></block></view></view></view>