|
|
@@ -24,14 +24,15 @@
|
|
|
</view>
|
|
|
|
|
|
<view class="total-list">
|
|
|
- <view class="app-color-3">消费次数</view>
|
|
|
- <view class="list-num">{{ parseFloat(userInfo.buyNum) || 0 }}</view>
|
|
|
+ <view class="app-color-3">余额</view>
|
|
|
+ <view class="list-num">{{ userInfo.balance ? parseFloat(userInfo.balance) : 0 }}</view>
|
|
|
</view>
|
|
|
|
|
|
- <view class="total-list">
|
|
|
+ <view class="total-list" @click="showNum(userInfo)">
|
|
|
<view class="app-color-3">消费金额</view>
|
|
|
<view class="list-num">{{ parseFloat(userInfo.buyAmount) || 0 }}</view>
|
|
|
</view>
|
|
|
+
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -80,6 +81,10 @@
|
|
|
<div class="tui-title">欠款变动明细</div>
|
|
|
</tui-list-cell>
|
|
|
|
|
|
+ <tui-list-cell class="line-cell" :hover="false" :arrow="true" @click="pageTo({ url: '/admin/custom/balanceChange?customId='+userInfo.id})">
|
|
|
+ <div class="tui-title">余额变动明细</div>
|
|
|
+ </tui-list-cell>
|
|
|
+
|
|
|
<tui-list-cell class="line-cell" :hover="false" :arrow="true" @click="pageTo({url:'/admin/order/itemOrder?customId='+userInfo.id})">
|
|
|
<div class="tui-title">下单记录</div>
|
|
|
</tui-list-cell>
|
|
|
@@ -151,7 +156,7 @@
|
|
|
</template>
|
|
|
</modal-module>
|
|
|
|
|
|
- <modal-module :show="czShow" @click="confirmRecharge" :maskClosable="true" title="充值结账" padding="30rpx 30rpx" >
|
|
|
+ <modal-module :show="czShow" @click="confirmRecharge" :maskClosable="true" title="充值" padding="30rpx 30rpx" >
|
|
|
<template v-slot:content>
|
|
|
<div class="app-modal-input-wrap">
|
|
|
<div class="inp-list-line">
|
|
|
@@ -171,7 +176,7 @@ import { share } from "@/mixins";
|
|
|
import ModalModule from "@/components/plugin/modal"
|
|
|
import { getUserDet,debt} from "@/api/member";
|
|
|
import { changeShowStock,changeWlName,changeLevel,createSeatSnFn,modifySeatSnFn } from "@/api/custom"
|
|
|
-import { updateDebtLimit,updateCustomBlack,changeDiscount,changeName,rechargeClear} from "@/api/custom";
|
|
|
+import { updateDebtLimit,updateCustomBlack,changeDiscount,changeName,rechargeFn} from "@/api/custom";
|
|
|
export default {
|
|
|
name: "detail",
|
|
|
components: {
|
|
|
@@ -209,7 +214,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
- name: "充值结账",
|
|
|
+ name: "充值",
|
|
|
img: `${this.$constant.imgUrl}/retail/member/tab-icon-1.png`,
|
|
|
funtion: () => {
|
|
|
this.czShow = true
|
|
|
@@ -249,6 +254,9 @@ export default {
|
|
|
this.getUserDetail()
|
|
|
},
|
|
|
methods: {
|
|
|
+ showNum(info){
|
|
|
+ this.$msg("消费"+info.buyNum+"次")
|
|
|
+ },
|
|
|
changeLevelPrice(){
|
|
|
const that = this;
|
|
|
uni.showActionSheet({
|
|
|
@@ -342,7 +350,7 @@ export default {
|
|
|
this.$msg('充值金额需要大于0')
|
|
|
return false
|
|
|
}
|
|
|
- rechargeClear({amount:this.rechargeMoney}).then(res=>{
|
|
|
+ rechargeFn({amount:this.rechargeMoney,customId:this.userInfo.id}).then(res=>{
|
|
|
if(res.code == 1){
|
|
|
that.czShow = false
|
|
|
that.czFocus = false
|
|
|
@@ -418,7 +426,6 @@ export default {
|
|
|
this.getUserDetail()
|
|
|
},
|
|
|
getUserDetail() {
|
|
|
- let that = this
|
|
|
getUserDet({ id: this.option.id }).then(res => {
|
|
|
this.debtLimit = res.data.debtLimit;
|
|
|
this.userInfo = res.data;
|
|
|
@@ -428,11 +435,6 @@ export default {
|
|
|
this.form.showStock = this.userInfo.showStock
|
|
|
this.discount = parseFloat(res.data.discount)
|
|
|
})
|
|
|
- },
|
|
|
- orderMoreFn() {
|
|
|
- this.orderMoreStatus = false;
|
|
|
- },
|
|
|
- modalCancel() {
|
|
|
}
|
|
|
}
|
|
|
};
|