|
@@ -11,7 +11,7 @@
|
|
|
<text class="sys-color-green">真实照片</text>
|
|
|
<text class="sys-color-gray-9">,否则部分功能可能会受限</text>
|
|
|
</view>
|
|
|
- <view class="card-img" :class="{'open-img':imgBg}" @click="openPopup" :style="{'height':'calc(100vh - '+navHeight+'px - 278rpx - 270rpx - env(safe-area-inset-bottom)','background-image':'url('+getCosPath(imgBg)+')'}">
|
|
|
+ <view class="card-img" :class="{'open-img':imgBg}" @click="openPopup" :style="{'height':'calc(100vh - '+navHeight+'px - 278rpx - 270rpx - env(safe-area-inset-bottom)','background-image':'url('+imgBg+')'}">
|
|
|
<view class="add-box" v-if="!imgBg">
|
|
|
<image class="add-img" src="/static/img/common/add.png" mode="aspectFill"></image>
|
|
|
</view>
|
|
@@ -99,12 +99,10 @@ export default {
|
|
|
if(res.tempFiles.length>0){
|
|
|
console.log(res.tempFiles)
|
|
|
res.tempFiles.forEach((item,key)=>{
|
|
|
- cosServe.txUploadFile(item,'gallery').then((res)=>{
|
|
|
+ cosServe.txUploadFile(item,'gallery').then(async (res)=>{
|
|
|
if(key===0){
|
|
|
this.imgBg=res.Location
|
|
|
- console.log('this.imgBg:'+this.imgBg)
|
|
|
- this.imgBg=cosServe.getSignUrl(this.imgBg)
|
|
|
- console.log(this.imgBg)
|
|
|
+ this.imgBg=await cosServe.getSignUrl(this.imgBg)
|
|
|
}
|
|
|
this.imgList.push(res.Location)
|
|
|
})
|