更新
This commit is contained in:
parent
c211fa504b
commit
edc6069250
@ -4,7 +4,7 @@ let httpApiTwo; // 物流系统域名
|
|||||||
|
|
||||||
const env = 'dev'; // 开发
|
const env = 'dev'; // 开发
|
||||||
// const env = 'prod'; // 生产
|
// const env = 'prod'; // 生产
|
||||||
// const env = 'prew'; // 预上线
|
// const env = 'prew'; // 预上线
|
||||||
|
|
||||||
switch (env) {
|
switch (env) {
|
||||||
case 'prod':
|
case 'prod':
|
||||||
|
@ -413,12 +413,17 @@
|
|||||||
},
|
},
|
||||||
// 上传头像
|
// 上传头像
|
||||||
async afterReadAvatar(event) {
|
async afterReadAvatar(event) {
|
||||||
|
uni.showLoading({
|
||||||
|
title:'上传中'
|
||||||
|
})
|
||||||
upLoadImage({
|
upLoadImage({
|
||||||
filePath: event.file.url,
|
filePath: event.file.url,
|
||||||
name: 'file'
|
name: 'file'
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
this.formData.avatar = res.data.uri
|
this.formData.avatar = res.data.uri;
|
||||||
})
|
}).finally(()=>{
|
||||||
|
uni.hideLoading();
|
||||||
|
})
|
||||||
},
|
},
|
||||||
// 新增图片
|
// 新增图片
|
||||||
async afterRead(event) {
|
async afterRead(event) {
|
||||||
@ -426,12 +431,17 @@
|
|||||||
},
|
},
|
||||||
// 上传图片
|
// 上传图片
|
||||||
upLoad(url, type) {
|
upLoad(url, type) {
|
||||||
|
uni.showLoading({
|
||||||
|
title:'上传中请稍后'
|
||||||
|
})
|
||||||
upLoadImage({
|
upLoadImage({
|
||||||
filePath: url,
|
filePath: url,
|
||||||
name: 'file'
|
name: 'file'
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
this.formData.qualification[type] = res.data.uri
|
this.formData.qualification[type] = res.data.uri
|
||||||
})
|
}).finally(()=>{
|
||||||
|
uni.hideLoading();
|
||||||
|
})
|
||||||
},
|
},
|
||||||
// 创建账号
|
// 创建账号
|
||||||
async addAcountNum() {
|
async addAcountNum() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user