修改门店金额明细

This commit is contained in:
lcc
2025-07-02 11:03:50 +08:00
parent 79d69cef3b
commit 9a0c04113f
6 changed files with 116 additions and 30 deletions
+1
View File
@@ -121,6 +121,7 @@ api = {
appBizSituation_tabs: 'app/biz/situation_tabs', //店铺概况_tab
appBizSituation: 'app/biz/situation', //店铺概况 /店铺概况保存
appBizStreet: 'app/biz/street', //获取乡镇
appBizAccountLogs: 'app/bizAccountLog/lists', //获取店铺充值日志
appCusorderV2Inten: 'app/cusorderV2/inten', //新增意向金订单
appCusorderV2: 'app/cusorderV2', //新建订单 /获取订单列表 /订单详情 /修改订单信息
+6
View File
@@ -1106,4 +1106,10 @@ apiQuery.putAppCluesLock = function (params) {
HttpRequest(true, Config.api.appCluesLock, 2, params, "PUT", resolve, reject)
})
}
//店铺充值记录
apiQuery.getBizAccountLogs = function (params) {
return new Promise(function (resolve, reject) {
HttpRequest(false, Config.api.appBizAccountLogs, 2, params, "GET", resolve, reject)
})
}
export default apiQuery;
+81 -10
View File
@@ -10,31 +10,35 @@ Page({
imgUrl: _.config.imgUrl,
cur_month: '',
cur_tab_index: 0,
tab_list: [
{
tab_list: [{
name: '全部',
id: 1
id: 0
},
{
name: '充值',
id: 2
id: 1
},
{
name: '消耗',
id: 3
id: 2
}
],
pageNo: 1,
list: [],
loading: true,
end: false,
noData: false
noData: false,
sumRechangeMoney: 0,
sumUseMoney: 0,
leftMoney: 0,
size: 20
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
this.getBizAccountLog();
},
/**
@@ -76,7 +80,8 @@ Page({
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
if (this.data.noData || this.data.end || !this.data.load) return;
this.getBizAccountLog()
},
/**
@@ -86,9 +91,75 @@ Page({
},
bindDateChange(e){
bindDateChange(e) {
this.setData({
cur_month: e.detail.value
cur_month: e.detail.value,
pageNo: 1,
list: [],
noData: false,
end: false,
load: true,
loading: false
})
this.getBizAccountLog();
},
//切换tab
changeTab(e) {
this.setData({
cur_tab_index: e.currentTarget.dataset.index,
pageNo: 1,
list: [],
noData: false,
end: false,
load: true,
loading: false
})
this.getBizAccountLog();
},
//推送链接
pushLink(e) {
if (e.currentTarget.dataset.url) {
_.$router.openUrlScheme(e.currentTarget.dataset.url)
}
},
getBizAccountLog() {
this.setData({
load: false,
loading: true,
})
let params = {};
params['page'] = this.data.pageNo;
params['size'] = this.data.size;
params['type'] = this.data.tab_list[this.data.cur_tab_index]['id']
if (this.data.cur_month) {
params['month'] = this.data.cur_month
}
_.apiQuery.getBizAccountLogs(params).then(res => {
if (this.data.pageNo == 1) {
this.setData({
sumRechangeMoney: res.data.sumRecharge,
sumUseMoney: res.data.sumUseMoney,
leftMoney:res.data.leftMoney
})
}
this.setData({
total: res.data.total,
pageNo: this.data.pageNo + 1,
list: this.data.list.concat(res.data.list),
load: true,
loading: false,
})
if (res.data.total == 0) {
this.setData({
noData: true
})
} else if (this.data.list.length == res.data.total) {
this.setData({
end: true
})
}
wx.stopPullDownRefresh()
});
}
})
+19 -18
View File
@@ -1,52 +1,53 @@
<!--pages/customer/score/index.wxml 20250624-->
<view class="container" style="min-height:100vh; overflow:hidden;">
<view class="text-center pt50 pb50">
<view class="font-60 text-bold text-italic color-ff0000">8082</view>
<view class="font-60 text-bold text-italic color-ff0000">{{leftMoney}}</view>
<view class="color-444 font-28 mt-20">余额</view>
</view>
<view class="ml30 mr30 pb40">
<view class="bg-fff ulib-r10 box-shadow-000-10-10 pb30">
<view class="relative fn-flex text-center">
<view class="fn-flex-item pt30 pb30">
<view class="font-40">8593</view>
<view class="font-40">{{sumRechangeMoney}}</view>
<view class="font-26 color-666 mt5">充值</view>
</view>
<view class="fn-flex-item pt30 pb30">
<view class="font-40">8593</view>
<view class="font-40">{{sumUseMoney}}</view>
<view class="font-26 color-666 mt5">消耗</view>
</view>
<view
class="bg-picker absolute top-0 box-center bg-no-repeat bg-size-cover bg-pos-cente font-26"
style="width:230rpx;height:50rpx;line-height:50rpx;"
>
<view class="bg-picker absolute top-0 box-center bg-no-repeat bg-size-cover bg-pos-cente font-26" style="width:230rpx;height:50rpx;line-height:50rpx;">
<picker mode="date" fields="month" value="{{cur_month}}" start="2015-09" end="2026-09" bindchange="bindDateChange">
<view class="color-666"><text class="iconfont icon-qianhetong"></text><text class="ml10">{{cur_month||'请选择月份'}}</text></view>
</picker>
</view>
</view>
<view class="pl30 pr30 pt30">
<view class="pl30 pr30 pt30 pb60">
<view class="fn-flex font-28">
<block wx:for="{{tab_list}}" wx:key="index">
<view class="pl10 pr10 pt5 pb5 ulib-r10 mr25 transition-all {{index==cur_tab_index?'bg-333 color-fff':'bg-f8 color-333'}}">{{item.name}}</view>
<view bind:tap="changeTab" data-index="{{index}}" class="pl10 pr10 pt5 pb5 ulib-r10 mr25 transition-all {{index==cur_tab_index?'bg-333 color-fff':'bg-f8 color-333'}}">{{item.name}}</view>
</block>
</view>
<view class="mt20">
<block wx:for="{{10}}" wx:key="index">
<block wx:for="{{list}}" wx:for-item="item" wx:key="index">
<view class="bbs-1-eb pt20 pb20 fn-flex font-26">
<view class="wp25 color-ff0000 color-36afa2">{{'+40'}}</view>
<view class="fn-flex-item text-center">{{'L:138****1234'}}</view>
<view class="wp40 text-right">{{'2025.02.25'}}</view>
<view class="wp25 color-ff0000 color-36afa2">{{item.money}}</view>
<view class="fn-flex-item text-center">{{item.content}}</view>
<view class="wp40 text-right">{{item.time}}</view>
</view>
</block>
</view>
<lcb-listmore isLoading='{{loading}}' isEnd='{{end}}' isNoData='{{noData}}'></lcb-listmore>
</view>
<view class="fixed left-0 bottom-0 right-0 bg-fff-op90 pl40 pr40 pt20 pb40 z-index-1">
<view class="fn-flex text-center fn-flex-between">
<view class="fn-flex-item flexsize4 pt20 pb20 btn-36afa2 font-32 color-fff ulib-r750" bindtap="pushLink" data-url="/pages/customer/score/recharge">立即充值</view>
</view>
</view>
</view>
</view>
</view>
+8 -1
View File
@@ -65,6 +65,13 @@ Page({
* 用户点击右上角分享
*/
onShareAppMessage() {
},
//充值
rechange(){
wx.showToast({
title: '系统维护中',
icon: 'none',
duration: 2000
})
}
})
+1 -1
View File
@@ -11,7 +11,7 @@
<text>充值金额</text><text class="font-40 pl20" style="color:#f00">¥20000</text>
</view>
<view class="mt30">
<button class="btn bg-36afa2 color-fff font-30 ulib-r750">立即充值</button>
<button bind:tap="rechange" class="btn bg-36afa2 color-fff font-30 ulib-r750">立即充值</button>
</view>
</view>
</view>