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