add
This commit is contained in:
parent
709cba9b16
commit
8593b1a2dc
@ -35,7 +35,11 @@ switch (env) {
|
|||||||
default:
|
default:
|
||||||
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 = 'https://erp.lihaink.cn'
|
// httpTwo = 'http://192.168.1.22:8546'
|
||||||
|
httpTwo = 'http://192.168.1.13:8546'
|
||||||
|
|
||||||
|
|
||||||
|
// httpTwo = 'https://erp.lihaink.cn'
|
||||||
wsApi = 'wss://crmeb-test.shop.lihaink.cn'
|
wsApi = 'wss://crmeb-test.shop.lihaink.cn'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -98,7 +98,7 @@
|
|||||||
<view class="step2" v-if='step==2'>
|
<view class="step2" v-if='step==2'>
|
||||||
<view class="card">
|
<view class="card">
|
||||||
<view class="card-tit" style='margin-bottom: 0;'>
|
<view class="card-tit" style='margin-bottom: 0;'>
|
||||||
上传和拍摄自动识别
|
上传和拍摄照片,系统自动识别
|
||||||
</view>
|
</view>
|
||||||
<view class="tips">
|
<view class="tips">
|
||||||
请上传真实的营业执照
|
请上传真实的营业执照
|
||||||
@ -154,7 +154,6 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</u-transition>
|
</u-transition>
|
||||||
|
|
||||||
<u-transition :show="step==3" mode="slide-right">
|
<u-transition :show="step==3" mode="slide-right">
|
||||||
<view class="step3" v-if='step==3'>
|
<view class="step3" v-if='step==3'>
|
||||||
<view style="font-size: 36rpx;margin: 50rpx 0 34rpx 0;text-align:center">
|
<view style="font-size: 36rpx;margin: 50rpx 0 34rpx 0;text-align:center">
|
||||||
@ -305,6 +304,7 @@
|
|||||||
detail: {},
|
detail: {},
|
||||||
num: 10,
|
num: 10,
|
||||||
formData: {
|
formData: {
|
||||||
|
id: '',
|
||||||
lat: "",
|
lat: "",
|
||||||
long: "",
|
long: "",
|
||||||
"phone": "",
|
"phone": "",
|
||||||
@ -325,6 +325,9 @@
|
|||||||
storeAddress: "",
|
storeAddress: "",
|
||||||
"images": [],
|
"images": [],
|
||||||
is_merchant_type: 2,
|
is_merchant_type: 2,
|
||||||
|
// #ifdef APP
|
||||||
|
jg_register_id: uni.getStorageSync('jg_id')
|
||||||
|
// #endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -392,10 +395,10 @@
|
|||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
if (res.status == 200) {
|
if (res.status == 200) {
|
||||||
that.formData.address = res.data.address;
|
that.formData.address = res.data.address;
|
||||||
this.formData.company_nickname = res.data.legal_person;
|
that.formData.company_nickname = res.data.legal_person;
|
||||||
that.formData.social_credit_code = res.data.register_number;
|
that.formData.social_credit_code = res.data.register_number;
|
||||||
that.formData.company_name = res.data.name;
|
that.formData.company_name = res.data.name;
|
||||||
console.log(this.formData.company_nickname)
|
console.log(this.formData)
|
||||||
} else {
|
} else {
|
||||||
that.$util.Tips({
|
that.$util.Tips({
|
||||||
title: "识别失败!"
|
title: "识别失败!"
|
||||||
@ -415,7 +418,9 @@
|
|||||||
reSubmitApi({
|
reSubmitApi({
|
||||||
id: this.successData.id
|
id: this.successData.id
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
this.formData = res.data
|
for (let key in this.formData) {
|
||||||
|
this.formData[key] = res.data[key]
|
||||||
|
}
|
||||||
this.formData.phone = res.data.service_phone
|
this.formData.phone = res.data.service_phone
|
||||||
console.log(JSON.parse(res.data.data_json))
|
console.log(JSON.parse(res.data.data_json))
|
||||||
let obj = JSON.parse(res.data.data_json)
|
let obj = JSON.parse(res.data.data_json)
|
||||||
@ -482,6 +487,7 @@
|
|||||||
delete this.formData.data_json
|
delete this.formData.data_json
|
||||||
}
|
}
|
||||||
this.formData.is_merchant_type = 2
|
this.formData.is_merchant_type = 2
|
||||||
|
console.log(this.formData)
|
||||||
applysApi({
|
applysApi({
|
||||||
...this.formData
|
...this.formData
|
||||||
}).then(ress => {
|
}).then(ress => {
|
||||||
|
@ -705,7 +705,6 @@
|
|||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res.data?.token) {
|
if (res.data?.token) {
|
||||||
uni.setStorageSync('LOGIN_STATUS_STOKEN', (res.data?.token || ''))
|
uni.setStorageSync('LOGIN_STATUS_STOKEN', (res.data?.token || ''))
|
||||||
console.log("获取了token")
|
|
||||||
}
|
}
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
console.log("获取报错", err)
|
console.log("获取报错", err)
|
||||||
@ -727,7 +726,6 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
// #endif
|
// #endif
|
||||||
|
|
||||||
},
|
},
|
||||||
/* 新商户发布商品引导页 */
|
/* 新商户发布商品引导页 */
|
||||||
openListGoodsDiver() {
|
openListGoodsDiver() {
|
||||||
|
@ -92,9 +92,20 @@
|
|||||||
"id_card": "",
|
"id_card": "",
|
||||||
// "mer_id": userStore?.userInfo?.merchant?.mer_id,
|
// "mer_id": userStore?.userInfo?.merchant?.mer_id,
|
||||||
// supplier_id: userStore?.userInfo?.supplier?.id,
|
// supplier_id: userStore?.userInfo?.supplier?.id,
|
||||||
// user_type: userStore?.userInfo?.merchant?.mer_id ? '1' : '2'
|
user_type: '2'
|
||||||
|
|
||||||
},
|
},
|
||||||
|
// form: {
|
||||||
|
// "is_own": 0,
|
||||||
|
// "bank_name": "中国银行",
|
||||||
|
// "bank_id": 1,
|
||||||
|
// "name": "赵明军",
|
||||||
|
// "bank_code": "6213362109985515778",
|
||||||
|
// "bank_branch": "牛马谈支行",
|
||||||
|
// "id_card": "513701200012105613",
|
||||||
|
// "phone": "19130550023",
|
||||||
|
// user_type: '2'
|
||||||
|
// },
|
||||||
showPop: false,
|
showPop: false,
|
||||||
bankList: [],
|
bankList: [],
|
||||||
hasBindAccount: [],
|
hasBindAccount: [],
|
||||||
@ -143,11 +154,12 @@
|
|||||||
|
|
||||||
},
|
},
|
||||||
submit() {
|
submit() {
|
||||||
|
this.form.is_own = 1
|
||||||
bindCradApi({
|
bindCradApi({
|
||||||
...this.form
|
...this.form
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
// return
|
// return
|
||||||
uni.navigateBack()
|
// uni.navigateBack()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -72,7 +72,8 @@
|
|||||||
<script>
|
<script>
|
||||||
import {
|
import {
|
||||||
hasBindAccount,
|
hasBindAccount,
|
||||||
amountAccountApi
|
amountAccountApi,
|
||||||
|
UserWithdrawApi
|
||||||
} from "@/api/supplier.js"
|
} from "@/api/supplier.js"
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
@ -103,19 +104,16 @@
|
|||||||
// return
|
// return
|
||||||
let res = await amountAccountApi({})
|
let res = await amountAccountApi({})
|
||||||
this.balance = res.data.balance
|
this.balance = res.data.balance
|
||||||
// this.hasBindAccount = res.data.hasBindAccount
|
this.hasBindAccount = res.data.bank_list
|
||||||
// this.target_bank = res.data.hasBindAccount[0] || {}
|
this.target_bank = res.data.bank_list[0] || {}
|
||||||
|
|
||||||
},
|
},
|
||||||
async submit() {
|
async submit() {
|
||||||
console.log({
|
|
||||||
"merchant_bank_id": this.target_bank.id,
|
|
||||||
"amount": this.form.money
|
|
||||||
})
|
|
||||||
return
|
|
||||||
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,
|
||||||
|
@ -118,11 +118,10 @@ function baseRequest(url, method, data, {
|
|||||||
})
|
})
|
||||||
reject(res.data);
|
reject(res.data);
|
||||||
} else if (res.data.code == 1) {
|
} 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);
|
||||||
} else {
|
|
||||||
reslove(res.data, res);
|
|
||||||
// console.error("请求失败", res)
|
|
||||||
// reject(res.data.message || '系统错误');
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
fail: (message) => {
|
fail: (message) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user