|
@@ -146,9 +146,9 @@
|
|
},
|
|
},
|
|
onLoad() {
|
|
onLoad() {
|
|
console.log("user", this.userInfo)
|
|
console.log("user", this.userInfo)
|
|
- this.dataObj.userId = this.userInfo.id
|
|
|
|
- this.dataObj.publisher = this.userInfo.wechatNo
|
|
|
|
- this.dataObj.remark = this.userInfo.phone
|
|
|
|
|
|
+ this.dataObj.userId = uni.getStorageSync('userInfo').id
|
|
|
|
+ this.dataObj.publisher = uni.getStorageSync('userInfo').wechatNo
|
|
|
|
+ this.dataObj.remark = uni.getStorageSync('userInfo').phone
|
|
},
|
|
},
|
|
onNavigationBarButtonTap(e) {
|
|
onNavigationBarButtonTap(e) {
|
|
console.log(e)
|
|
console.log(e)
|
|
@@ -179,8 +179,9 @@
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
deleteImg(index) {
|
|
deleteImg(index) {
|
|
- this.num = this.imgList.length
|
|
|
|
this.imgList.splice(index, 1)
|
|
this.imgList.splice(index, 1)
|
|
|
|
+ this.num = this.imgList.length
|
|
|
|
+
|
|
},
|
|
},
|
|
async uploadClick() {
|
|
async uploadClick() {
|
|
let baseUrlNew = config.def().baseUrlNew
|
|
let baseUrlNew = config.def().baseUrlNew
|
|
@@ -203,11 +204,11 @@
|
|
url: item.path
|
|
url: item.path
|
|
});
|
|
});
|
|
}
|
|
}
|
|
- console.log(files)
|
|
|
|
|
|
+ console.log(files,this.num)
|
|
for (let i = 0; i < files.length; i++) {
|
|
for (let i = 0; i < files.length; i++) {
|
|
this.num++
|
|
this.num++
|
|
if (this.num < 10) {
|
|
if (this.num < 10) {
|
|
- console.log(this.num)
|
|
|
|
|
|
+ console.log(this.num,11111111111)
|
|
uni.uploadFile({
|
|
uni.uploadFile({
|
|
url: baseUrlNew + 'appendix/api/uploadFiles',
|
|
url: baseUrlNew + 'appendix/api/uploadFiles',
|
|
// url: baseUrlNew+'appendix/api/uploadFiles', //仅为示例,非真实的接口地址
|
|
// url: baseUrlNew+'appendix/api/uploadFiles', //仅为示例,非真实的接口地址
|