This commit is contained in:
zmj 2024-05-22 17:46:00 +08:00
parent e269404174
commit e11005391b
4 changed files with 30 additions and 32 deletions

View File

@ -37,8 +37,8 @@ switch (env) {
httpApi = "https://crmeb-test.shop.lihaink.cn" // 测试 httpApi = "https://crmeb-test.shop.lihaink.cn" // 测试
httpSix = 'https://ceshi-new-wokr.lihaink.cn' httpSix = 'https://ceshi-new-wokr.lihaink.cn'
// httpTwo = 'http://192.168.1.22:8546' // httpTwo = 'http://192.168.1.22:8546'
httpTwo = 'http://192.168.1.13:8546' // httpTwo = 'http://192.168.1.13:8546'
// httpTwo = 'https://erp.lihaink.cn' httpTwo = 'https://erp.lihaink.cn'
wsApi = 'wss://crmeb-test.shop.lihaink.cn' wsApi = 'wss://crmeb-test.shop.lihaink.cn'
} }

View File

@ -8,7 +8,7 @@
{{form.is_own?'对公账户':'个人账户'}} {{form.is_own?'对公账户':'个人账户'}}
</view> </view>
<view style="display: flex;align-items: center;color: #20B128;" @click="showPop1=true"> <view style="display: flex;align-items: center;color: #20B128;" @click="showPop1=true">
<text>账户绑定</text> <u-icon color="#20B128" name="arrow-right"></u-icon> <text>账户类型</text> <u-icon color="#20B128" name="arrow-right"></u-icon>
</view> </view>
</view> </view>
<view class="form"> <view class="form">
@ -77,6 +77,9 @@
bankListApi, bankListApi,
amountAccountApi amountAccountApi
} from "@/api/supplier.js" } from "@/api/supplier.js"
import {
Modal
} from "../../libs/uniApi"
export default { export default {
data() { data() {
return { return {
@ -153,14 +156,15 @@
this.bankList = res.data.lists this.bankList = res.data.lists
}, },
submit() { async submit() {
this.form.is_own = 1 await Modal('温馨提示', "确定信息无误,提交绑定")
bindCradApi({ this.form.is_own = this.form.is_own || 1
await bindCradApi({
...this.form ...this.form
}).then(res => {
// return
// uni.navigateBack()
}) })
this.$util.Tips({
title: '提交成功,等待后台审核'
});
} }

View File

@ -75,6 +75,10 @@
amountAccountApi, amountAccountApi,
UserWithdrawApi UserWithdrawApi
} from "@/api/supplier.js" } from "@/api/supplier.js"
import {
Modal
} from "../../libs/uniApi"
export default { export default {
data() { data() {
return { return {
@ -109,11 +113,11 @@
}, },
async submit() { async submit() {
await Modal("温馨提示", '确认无误后,确定提现')
await UserWithdrawApi({ await UserWithdrawApi({
"merchant_bank_id": this.target_bank.id, "merchant_bank_id": this.target_bank.id,
"amount": this.form.money "amount": this.form.money
}) })
return
uni.showToast({ uni.showToast({
title: '提交成功', title: '提交成功',
duration: 1500, duration: 1500,

View File

@ -17,6 +17,9 @@ import {
} from '../libs/login'; } from '../libs/login';
import store from '../store'; import store from '../store';
import pako from '../plugin/pako/pako.es5.min.js' import pako from '../plugin/pako/pako.es5.min.js'
import {
Tips
} from "@/utils/util.js"
function toLogin() { function toLogin() {
@ -65,6 +68,8 @@ var HTTP_list = new Map();
/** /**
* 发送请求 * 发送请求
*/ */
let that = this
function baseRequest(url, method, data, { function baseRequest(url, method, data, {
noAuth = false, noAuth = false,
noVerify = false, noVerify = false,
@ -96,31 +101,16 @@ function baseRequest(url, method, data, {
header: header, header: header,
data: data || {}, data: data || {},
success: (res) => { success: (res) => {
console.log(res.data.show)
if (res.data.code == 1) { if (res.data.code == 1) {
reslove(res.data, res); reslove(res.data, res);
} else if (res.data && res.data.encode) {
try {
res.data = JSON.parse(decompress(res.data.data));
} catch (e) {
res.data = decompress(decodeURI(res.data.data));
}
} }
if (noVerify) if (res.data.show) {
reslove(res.data, res); uni.showToast({
else if (res.data.status == 200) title: res.data.msg,
reslove(res.data, res); icon: 'none'
else if ([410000, 410001, 410002, 40000].indexOf(res.data.status) !== -1) { });
toLogin(); } else {
reject(res.data);
} else if (res.data.status == 501) {
uni.reLaunch({
url: '/pages/error/index'
})
reject(res.data);
} else if (res.data.code == 1) {
reject(res.data, res);
} else if (res.data.code == 0) {} else {
reslove(res.data, res); reslove(res.data, res);
} }
}, },