提现金额不一致修改

This commit is contained in:
DESKTOP-GMUNQ1B\k 2024-03-06 10:27:55 +08:00
parent ac71784461
commit 0553b46afe
2 changed files with 2357 additions and 2316 deletions

View File

@ -4,8 +4,9 @@
<view class="content-top"> <view class="content-top">
<view class="content-tops"> <view class="content-tops">
<view class="content-top_img" v-if="Object.keys(userInfoData).length>0"> <view class="content-top_img" v-if="Object.keys(userInfoData).length>0">
<image :src="userInfoData.mer_info.mer_avatar" v-if="userInfoData.mer_info&&userInfoData.mer_info.mer_avatar" <image :src="userInfoData.mer_info.mer_avatar"
mode="aspectFill" @click="logout"> v-if="userInfoData.mer_info&&userInfoData.mer_info.mer_avatar" mode="aspectFill"
@click="logout">
</image> </image>
<image src="@/static/images/f.png" v-else mode="aspectFit" @click="logout"></image> <image src="@/static/images/f.png" v-else mode="aspectFit" @click="logout"></image>
</view> </view>
@ -69,7 +70,8 @@
</view> </view>
</view> </view>
<view class="content-tools" style="margin-top: 30rpx;" v-if="$store.state.app.userInfo&&$store.state.app.userInfo.mer_info&&$store.state.app.userInfo.mer_info.type_code=='TypeSupplyChain'"> <view class="content-tools" style="margin-top: 30rpx;"
v-if="$store.state.app.userInfo&&$store.state.app.userInfo.mer_info&&$store.state.app.userInfo.mer_info.type_code=='TypeSupplyChain'">
<view class="tools-one" style="margin-bottom: 20rpx;"> <view class="tools-one" style="margin-bottom: 20rpx;">
转账订单 转账订单
<view class=""></view> <view class=""></view>
@ -94,7 +96,8 @@
常用工具 常用工具
<view class=""></view> <view class=""></view>
</view> </view>
<view class="tools-two" v-if="isgShow&&userInfoData.mer_info.setting_status==1&&userInfoData.mer_info.type_code=='TypeSupplyChain'"> <view class="tools-two"
v-if="isgShow&&userInfoData.mer_info.setting_status==1&&userInfoData.mer_info.type_code=='TypeSupplyChain'">
<view class="" v-for="(item,k) in typelistSupplyChain" :key='k' @click="navation(item)"> <view class="" v-for="(item,k) in typelistSupplyChain" :key='k' @click="navation(item)">
<view class="tools-two-img"> <view class="tools-two-img">
<image :src="item.image" mode=""></image> <image :src="item.image" mode=""></image>
@ -102,7 +105,8 @@
<view class="tools-two-title"> {{item.name}}</view> <view class="tools-two-title"> {{item.name}}</view>
</view> </view>
</view> </view>
<view class="tools-two" v-else-if="isgShow&&userInfoData.mer_info.setting_status==1&&userInfoData.mer_info.type_code=='PersonalStore'"> <view class="tools-two"
v-else-if="isgShow&&userInfoData.mer_info.setting_status==1&&userInfoData.mer_info.type_code=='PersonalStore'">
<view class="" v-for="(item,k) in typePersonalStoreList" :key='k' @click="navation(item)"> <view class="" v-for="(item,k) in typePersonalStoreList" :key='k' @click="navation(item)">
<view class="tools-two-img"> <view class="tools-two-img">
<image :src="item.image" mode=""></image> <image :src="item.image" mode=""></image>
@ -198,7 +202,9 @@
<view class="title-img"> <view class="title-img">
<image src="@/static/images/zb.png" mode="aspectFit"></image> <image src="@/static/images/zb.png" mode="aspectFit"></image>
</view> </view>
<view class="adress">{{item.real_name}} {{ item.user_phone}} <br/> {{item.user_address}} </view> <view class="adress">{{item.real_name}} {{ item.user_phone}} <br />
{{item.user_address}}
</view>
</view> </view>
</view> </view>
</view> </view>
@ -269,7 +275,8 @@
<view class="settlementAgreement" v-if="isFshow"> <view class="settlementAgreement" v-if="isFshow">
<view class="setAgCount" style="width: 100%;height: 100%; padding-top: 160rpx;"> <view class="setAgCount" style="width: 100%;height: 100%; padding-top: 160rpx;">
<!-- <i class="icon iconfont icon-cha" @click="recuo"></i> --> <!-- <i class="icon iconfont icon-cha" @click="recuo"></i> -->
<view class="" style="width: 90rpx;height: 90rpx; position: absolute;right: 10rpx; top:90rpx" @click="recuo"> <view class="" style="width: 90rpx;height: 90rpx; position: absolute;right: 10rpx; top:90rpx"
@click="recuo">
<image src="@/static/images/close.png" mode="aspectFit" style="width: 90rpx;height: 90rpx;"></image> <image src="@/static/images/close.png" mode="aspectFit" style="width: 90rpx;height: 90rpx;"></image>
</view> </view>
<div class="title">{{detail.title}}</div> <div class="title">{{detail.title}}</div>
@ -284,7 +291,8 @@
拒绝 拒绝
</button> --> </button> -->
<button class="btn" :class="num>0?'setAgCountbtnb':'setAgCountbtnc'" :disabled="num!=0" @click="agree"> <button class="btn" :class="num>0?'setAgCountbtnb':'setAgCountbtnc'" :disabled="num!=0"
@click="agree">
<text v-if="num>0">请仔细阅读协议{{num}}S</text> <text v-if="num>0">请仔细阅读协议{{num}}S</text>
<text v-else>同意本协议</text> <text v-else>同意本协议</text>
</button> </button>
@ -312,42 +320,48 @@
<view class="item" v-if="userInfoData.mer_info&&userInfoData.mer_info.is_company"> <view class="item" v-if="userInfoData.mer_info&&userInfoData.mer_info.is_company">
<view class="acea-row row-middle" style="display: flex;align-items: flex-start;"> <view class="acea-row row-middle" style="display: flex;align-items: flex-start;">
<text class="item-name" style="flex-shrink: 0;">公司名称:</text> <text class="item-name" style="flex-shrink: 0;">公司名称:</text>
<input style="font-size: 31rpx;" placeholder="请输入公司名称" v-model="merchantData.company_name" @input="validateBtn" <input style="font-size: 31rpx;" placeholder="请输入公司名称"
v-model="merchantData.company_name" @input="validateBtn"
placeholder-class='placeholder' /> placeholder-class='placeholder' />
</view> </view>
</view> </view>
<view class="item" v-else> <view class="item" v-else>
<view class="acea-row row-middle" style="display: flex;align-items: flex-start;"> <view class="acea-row row-middle" style="display: flex;align-items: flex-start;">
<text class="item-name" style="flex-shrink: 0;">持卡人:</text> <text class="item-name" style="flex-shrink: 0;">持卡人:</text>
<input style="font-size: 31rpx;" placeholder="请输入持卡人姓名" v-model="merchantData.company_name" @input="validateBtn" <input style="font-size: 31rpx;" placeholder="请输入持卡人姓名"
v-model="merchantData.company_name" @input="validateBtn"
placeholder-class='placeholder' /> placeholder-class='placeholder' />
</view> </view>
</view> </view>
<view class="item" v-if="userInfoData.mer_info&&userInfoData.mer_info.is_company"> <view class="item" v-if="userInfoData.mer_info&&userInfoData.mer_info.is_company">
<view class="acea-row row-middle"> <view class="acea-row row-middle">
<text class="item-name">对公账号:</text> <text class="item-name">对公账号:</text>
<input style="font-size: 31rpx;" type="number" placeholder="请输入对公账号" v-model="merchantData.bank_code" @input="validateBtn" <input style="font-size: 31rpx;" type="number" placeholder="请输入对公账号"
v-model="merchantData.bank_code" @input="validateBtn"
placeholder-class='placeholder' /> placeholder-class='placeholder' />
</view> </view>
</view> </view>
<view class="item" v-else> <view class="item" v-else>
<view class="acea-row row-middle"> <view class="acea-row row-middle">
<text class="item-name">银行卡号:</text> <text class="item-name">银行卡号:</text>
<input style="font-size: 31rpx;" type="number" placeholder="请输入银行卡号" v-model="merchantData.bank_code" @input="validateBtn" <input style="font-size: 31rpx;" type="number" placeholder="请输入银行卡号"
v-model="merchantData.bank_code" @input="validateBtn"
placeholder-class='placeholder' /> placeholder-class='placeholder' />
</view> </view>
</view> </view>
<view class="item"> <view class="item">
<view class="acea-row row-middle"> <view class="acea-row row-middle">
<text class="item-name">开户银行:</text> <text class="item-name">开户银行:</text>
<input style="font-size: 31rpx;" type="text" maxlength="30" placeholder="请输入开户银行名称" v-model="merchantData.bank_username" <input style="font-size: 31rpx;" type="text" maxlength="30" placeholder="请输入开户银行名称"
@input="validateBtn" placeholder-class='placeholder' /> v-model="merchantData.bank_username" @input="validateBtn"
placeholder-class='placeholder' />
</view> </view>
</view> </view>
<view class="item"> <view class="item">
<view class="acea-row row-middle"> <view class="acea-row row-middle">
<text class="item-name">开户网点:</text> <text class="item-name">开户网点:</text>
<input style="font-size: 31rpx;" type="text" placeholder="请输入开户网点" v-model="merchantData.bank_opening" @input="validateBtn" <input style="font-size: 31rpx;" type="text" placeholder="请输入开户网点"
v-model="merchantData.bank_opening" @input="validateBtn"
placeholder-class='placeholder' /> placeholder-class='placeholder' />
</view> </view>
</view> </view>
@ -374,11 +388,14 @@
</view> --> </view> -->
<view class="item" v-if="userInfoData.mer_info && userInfoData.mer_info.is_company != 1"> <view class="item" v-if="userInfoData.mer_info && userInfoData.mer_info.is_company != 1">
<view class="acea-row row-middle"> <view class="acea-row row-middle">
<text class="item-name">{{userInfoData.mer_info&&userInfoData.mer_info.is_company?"开户凭证:":"银行卡图片:"}}</text> <text
class="item-name">{{userInfoData.mer_info&&userInfoData.mer_info.is_company?"开户凭证:":"银行卡图片:"}}</text>
</view> </view>
<view class="item-card"> <view class="item-card">
<view class="item-carda" @click='uploadpic({type:3})' v-if='merchantData.bank_front.length==0'> <view class="item-carda" @click='uploadpic({type:3})'
<image v-if="userInfoData.mer_info&&userInfoData.mer_info.is_company" src="@/static/images/KHPZ.png" mode="aspectFit"></image> v-if='merchantData.bank_front.length==0'>
<image v-if="userInfoData.mer_info&&userInfoData.mer_info.is_company"
src="@/static/images/KHPZ.png" mode="aspectFit"></image>
<image v-else src="@/static/images/YHKZ.png" mode="aspectFit"></image> <image v-else src="@/static/images/YHKZ.png" mode="aspectFit"></image>
</view> </view>
<view class="item-carda" @click='DelPic({type:3})' v-else> <view class="item-carda" @click='DelPic({type:3})' v-else>
@ -417,7 +434,8 @@
} from "@/api/admin"; } from "@/api/admin";
import { import {
merstreet, merstreet,
getUserInfo getUserInfo,
getAdminApplyAPI
} from '@/api/user.js'; } from '@/api/user.js';
import { import {
business, business,
@ -434,7 +452,9 @@
import { import {
ENV ENV
} from "@/config/app.js" } from "@/config/app.js"
import { Toast } from '../../libs/uniApi'; import {
Toast
} from '../../libs/uniApi';
export default { export default {
components: { components: {
@ -451,6 +471,9 @@ import { Toast } from '../../libs/uniApi';
list: [{ list: [{
name: '账户总金额', name: '账户总金额',
value: 0 value: 0
}, {
name: '暂存金额',
value: 0
}, { }, {
name: '本月订单数', name: '本月订单数',
value: 0 value: 0
@ -585,7 +608,8 @@ import { Toast } from '../../libs/uniApi';
name: '全部', name: '全部',
type: 8, type: 8,
image: require('@/static/images/index3.png') image: require('@/static/images/index3.png')
}], }
],
typePersonalStoreList: [{ typePersonalStoreList: [{
name: '商品管理', name: '商品管理',
type: 1, type: 1,
@ -681,8 +705,7 @@ import { Toast } from '../../libs/uniApi';
isFshow(n, o) { isFshow(n, o) {
if (n) { if (n) {
uni.hideTabBar(); uni.hideTabBar();
} } else {
else {
uni.showTabBar(); uni.showTabBar();
} }
} }
@ -798,33 +821,38 @@ import { Toast } from '../../libs/uniApi';
switch (item.type) { switch (item.type) {
case 1: case 1:
uni.navigateTo({ uni.navigateTo({
url: '/pages/admin/orderList/indexOther?merId=' + this.userInfoData.service.mer_id + url: '/pages/admin/orderList/indexOther?merId=' + this.userInfoData.service
.mer_id +
'&types=' + item.type '&types=' + item.type
}) })
break; break;
case 2: case 2:
uni.navigateTo({ uni.navigateTo({
url: '/pages/admin/orderList/indexOther?merId=' + this.userInfoData.service.mer_id + url: '/pages/admin/orderList/indexOther?merId=' + this.userInfoData.service
.mer_id +
'&types=' + item.type '&types=' + item.type
}) })
break; break;
case 3: case 3:
uni.navigateTo({ uni.navigateTo({
url: '/pages/admin/orderList/indexOther?merId=' + this.userInfoData.service.mer_id + url: '/pages/admin/orderList/indexOther?merId=' + this.userInfoData.service
.mer_id +
'&types=' + item.type '&types=' + item.type
}) })
break; break;
case 4: case 4:
uni.navigateTo({ uni.navigateTo({
url: '/pages/admin/orderList/indexOther?merId=' + this.userInfoData.service.mer_id + url: '/pages/admin/orderList/indexOther?merId=' + this.userInfoData.service
.mer_id +
'&types=' + item.type '&types=' + item.type
}) })
break; break;
case 6: case 6:
uni.navigateTo({ uni.navigateTo({
url: '/pages/admin/orderList/indexOther?merId=' + this.userInfoData.service.mer_id + url: '/pages/admin/orderList/indexOther?merId=' + this.userInfoData.service
.mer_id +
'&types=' + item.type '&types=' + item.type
}) })
@ -960,7 +988,8 @@ import { Toast } from '../../libs/uniApi';
title: '请输入开户网点' title: '请输入开户网点'
}); });
if (value.bank_front.length == 0 && that.userInfoData.mer_info.is_company != 1) return that.$util.Tips({ if (value.bank_front.length == 0 && that.userInfoData.mer_info.is_company != 1) return that.$util
.Tips({
title: that.userInfoData.mer_info.is_company ? '请上传开户凭证' : '请上传银行卡正面图片' title: that.userInfoData.mer_info.is_company ? '请上传开户凭证' : '请上传银行卡正面图片'
}); });
@ -1102,7 +1131,7 @@ import { Toast } from '../../libs/uniApi';
this.order[2].value = res.data.order.untake this.order[2].value = res.data.order.untake
this.order[3].value = res.data.order.unevaluate this.order[3].value = res.data.order.unevaluate
this.order[4].value = res.data.order.refund this.order[4].value = res.data.order.refund
this.list[1].value = res.data.data.month.orderNum this.list[2].value = res.data.data.month.orderNum
}, },
err => { err => {
that.$util.Tips({ that.$util.Tips({
@ -1141,13 +1170,15 @@ import { Toast } from '../../libs/uniApi';
getUserInfo() { getUserInfo() {
getUserInfo().then(res => { getUserInfo().then(res => {
// console.log(res); // console.log(res);
res.data.mer_info.is_company?res.data.mer_info.is_company=1:res.data.mer_info.is_company=0 res.data.mer_info.is_company ? res.data.mer_info.is_company = 1 : res.data.mer_info
.is_company = 0
this.userid = res.data.uid this.userid = res.data.uid
this.userInfoData = res.data; this.userInfoData = res.data;
this.list[0].value = res.data.now_money; this.list[0].value = res.data.now_money;
this.$store.commit('SET_USERINFO', res.data); this.$store.commit('SET_USERINFO', res.data);
this.merchantData.phone = res.data.phone; this.merchantData.phone = res.data.phone;
if(res.data.mer_info.is_company==0) !this.merchantData.company_name ? this.merchantData.company_name = "" : null; if (res.data.mer_info.is_company == 0) !this.merchantData.company_name ? this.merchantData
.company_name = "" : null;
else this.merchantData.company_name = res.data.mer_info.company_name; else this.merchantData.company_name = res.data.mer_info.company_name;
if (res.data.service == null) { if (res.data.service == null) {
// console.log('123'); // console.log('123');
@ -1171,6 +1202,14 @@ import { Toast } from '../../libs/uniApi';
} else { } else {
this.getindex() this.getindex()
this.getGoods(true) this.getGoods(true)
//
getAdminApplyAPI(this.userInfoData.service.mer_id).then(res => {
//
this.list[0].value = res.data.extract_money;
//
this.list[1].value = res.data.lock_money
})
} }
merstreet({ merstreet({
street_code: res.data.mer_info.street_id street_code: res.data.mer_info.street_id
@ -1231,11 +1270,11 @@ import { Toast } from '../../libs/uniApi';
if (this.userInfoData.mer_info.mer_settlement_agree_status == 0) { if (this.userInfoData.mer_info.mer_settlement_agree_status == 0) {
// console.log(this.$store.state.app.userInfo.mer_info.type_code); // console.log(this.$store.state.app.userInfo.mer_info.type_code);
if(this.$store.state.app.userInfo.mer_info.type_code=="TypeSupplyChain"&&this.$store.state.app.userInfo.mer_info.type_code=="PersonalStore"){ if (this.$store.state.app.userInfo.mer_info.type_code == "TypeSupplyChain" && this.$store.state.app
.userInfo.mer_info.type_code == "PersonalStore") {
this.agree() this.agree()
// this.countDown() // this.countDown()
} } else if (this.codenote.length == 0) {
else if (this.codenote.length == 0) {
this.isFshow = true this.isFshow = true
this.countDown() this.countDown()
} else { } else {
@ -1648,6 +1687,7 @@ import { Toast } from '../../libs/uniApi';
-webkit-align-items: center; -webkit-align-items: center;
align-items: center; align-items: center;
padding-left: 2px; padding-left: 2px;
input { input {
flex: 1; flex: 1;
} }
@ -1880,7 +1920,8 @@ import { Toast } from '../../libs/uniApi';
width: 100vw; width: 100vw;
height: 100%; height: 100%;
border-radius: 40rpx 40rpx 0 0; border-radius: 40rpx 40rpx 0 0;
box-shadow: 0px -5px 5px -2px rgba(0, 0, 0, 0.2); /* 在上边框添加阴影 */ box-shadow: 0px -5px 5px -2px rgba(0, 0, 0, 0.2);
/* 在上边框添加阴影 */
} }
.btn { .btn {

View File

@ -21,7 +21,7 @@
<span>商户收入()</span> <span>商户收入()</span>
<view class="pic">100.00</view> <view class="pic">100.00</view>
</li> </li>
<li class="kuang"><span>冻结金额()</span> <li class="kuang"><span>暂存金额()</span>
<view class="pic">100.00</view> <view class="pic">100.00</view>
</li> </li>
<li><span>优惠券补贴()</span> <li><span>优惠券补贴()</span>