Browse Source

fix img preview

organize
刘嘉炜 3 years ago
parent
commit
6b67eb5299
  1. 1
      src/pages/write_off/ym_confirm/ym_confirm.vue
  2. 9
      src/subpackage/order/pages/ym_card/detail/detail.vue

1
src/pages/write_off/ym_confirm/ym_confirm.vue

@ -57,6 +57,7 @@ export default {
},
methods: {
previewImg(url){
if(!url)return
uni.previewImage({ urls: [ url ] });
},
confirmBtn: util.debounce(function(){

9
src/subpackage/order/pages/ym_card/detail/detail.vue

@ -25,7 +25,13 @@
<block slot="name">用户昵称</block>
</a-line>
<view class="yu-line">照片<text @click="changeFaceImgBtn" v-if="orderInfo.status ==1">更改照片</text></view>
<image class="yu-img" mode="aspectFit" :src="orderInfo.user_face" @click="previewImg(orderInfo.user_face)"></image>
<image
class="yu-img"
mode="aspectFit"
v-if="orderInfo.user_face"
:src="orderInfo.user_face"
@click="previewImg(orderInfo.user_face)"
></image>
</view>
<view class="yci-box yci-buy-info" v-if="orderInfo.status == 1 || orderInfo.status == 2 || orderInfo.status == 3">
@ -89,6 +95,7 @@ export default {
},
methods: {
previewImg(url){
if(!url)return
uni.previewImage({ urls: [ url ] });
},
changeFaceImgBtn(){

Loading…
Cancel
Save