Browse Source

修复图片上传

master
zenghaibo 1 year ago
parent
commit
a225314c15
  1. 25
      pages/indexEntry/consult/pubConsult/pubConsult.vue

25
pages/indexEntry/consult/pubConsult/pubConsult.vue

@ -31,14 +31,14 @@
</view>
</view>
</view>
<view class="card" style="padding-bottom: 0;">
<view class="phone_row">
<view class="label">联系电话</view>
<view class="uInput my">{{ this.vuex_userInfo.mobile }}</view>
</view>
</view>
<view class="btn active" @click="submintFn">提交</view>
</view>
</view>
@ -92,8 +92,7 @@
},
uploadImgApi(filePath) {
console.log(filePath)
// let token = 'Bearer '+ this.$store.state.user.vuex_loginInfo.accessToken
let token = 'Bearer 15409b4b67574665bbc4a3e16dd3debb'
let token = 'Bearer '+ this.$store.state.user.vuex_loginInfo.accessToken
let _this = this
let name = new Date() * 1
//
@ -101,7 +100,7 @@
url: _url + 'app-api/infra/file/upload',//
filePath: filePath,//
name: 'file',
formData: {
path: 'complain/'+name,
type: 1,
@ -137,7 +136,7 @@
font-weight: 600;
line-height: 96rpx;
}
.textareaBg {
min-height: 364rpx;
background: #F8F8F8;
@ -154,10 +153,10 @@
height: 24rpx;
margin: 0 14rpx 0 24rpx;
}
.inputBox {
flex: 1;
}
/deep/ .inputBox .u-textarea {
padding: 0 !important;
@ -166,7 +165,7 @@
font-size: 24rpx
}
}
.phoneBox {
display: flex;
padding: 0 10rpx 20rpx 20rpx;
@ -186,11 +185,11 @@
right: -14rpx;
top: -20rpx;
z-index: 9;
}
}
}
.phone {
border: 2rpx dashed #CDCED0;
width: 160rpx;
@ -206,7 +205,7 @@
width: 60rpx;
height: 60rpx;
}
.lab {
font-size: 20rpx;
color: #686B73;
@ -245,4 +244,4 @@
}
}
}
</style>
</style>
Loading…
Cancel
Save