Commit d8db33ca authored by Damon's avatar Damon

预览图片兼容性问题

parent 8cdd78d7
<template> <template>
<view> <view>
<view class="topView" :style="{'height':navHeight/2 + 'px'}"></view>
<view class="contentView"> <view class="contentView">
<!-- <u-image class="pic" :src="files[0]" bg-color="transparent" @click="showPreviewFn"></u-image> --> <!-- <u-image class="pic" :src="files[0]" bg-color="transparent" @click="showPreviewFn"></u-image> -->
<image class="pic" :src="files[0]" v-lazy mode="aspectFit" @click="showPreviewFn"></image> <image class="pic" :src="files[0]" v-lazy mode="aspectFit" @click="showPreviewFn"></image>
...@@ -29,12 +30,13 @@ ...@@ -29,12 +30,13 @@
keys: [], keys: [],
token: '', token: '',
product: '', product: '',
allImages: [] allImages: [],
navHeight: 130
} }
}, },
created(e) { created(e) {
// 获取照片选项对象 // 获取照片选项对象
console.log(getApp().globalData.photo.currentItem) this.navHeight = getApp().globalData.navHeight
const product = app.globalData.photo.product const product = app.globalData.photo.product
this.product = `?brandId=${product.brandId}&brand=${product.brandName}&classifyId=${product.classifyId}&systemId=${product.systemId}` this.product = `?brandId=${product.brandId}&brand=${product.brandName}&classifyId=${product.classifyId}&systemId=${product.systemId}`
if(app.globalData.photo.currentItem) { if(app.globalData.photo.currentItem) {
...@@ -146,6 +148,12 @@ ...@@ -146,6 +148,12 @@
</script> </script>
<style lang="scss"> <style lang="scss">
.topView {
background: #000;
width: 100%;
position: fixed;
top: 0;
}
.contentView { .contentView {
background-color: #333333; background-color: #333333;
/* padding-top: 120rpx; */ /* padding-top: 120rpx; */
...@@ -155,7 +163,7 @@ ...@@ -155,7 +163,7 @@
flex-direction: column; flex-direction: column;
} }
/deep/ .u-image{ /deep/ .u-image{
height:100vh !important; height:100% !important;
} }
/deep/ .u-image__loading{ /deep/ .u-image__loading{
background-color: transparent!important; background-color: transparent!important;
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment