Commit 5dfaa271 authored by 李俊赕's avatar 李俊赕

修改拍照时页面

parent cdaf3ce7
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
</view> </view>
</swiper-item> </swiper-item>
<swiper-item class="swiper-item" v-for="(src, index) in swiperList" :key="index"> <swiper-item class="swiper-item" v-for="(src, index) in swiperList" :key="index">
<cover-image @click="previewImage(index)" class="icon" mode="aspectFit" :src="src"></cover-image> <image @click="previewImage(index)" class="icon" mode="aspectFit" :src="src"></image>
</swiper-item> </swiper-item>
</swiper> </swiper>
...@@ -171,6 +171,10 @@ ...@@ -171,6 +171,10 @@
color:#333; color:#333;
font-size: 36rpx; font-size: 36rpx;
} }
&>image{
width:630rpx;
min-height: 630rpx;
}
.txt-box{ .txt-box{
max-height: 560rpx; max-height: 560rpx;
overflow: auto; overflow: auto;
......
...@@ -152,18 +152,18 @@ ...@@ -152,18 +152,18 @@
// TODO 参数是否要来回传递 // TODO 参数是否要来回传递
self.saveTempToLocal() self.saveTempToLocal()
const photo = getApp().globalData.photo const photo = getApp().globalData.photo
photo.currentItemLength++ photo.currentItemLength = photo.currentItemLength + 1
// photo.currentItem. // photo.currentItem.
// 当前项的图片显示 // 当前项的图片显示
// 拍照项张数目增加 等于10张 // 拍照项张数目增加 等于10张
let timer = setTimeout(()=>{ let timer = setTimeout(()=>{
if(photo.currentItemLength<10){ if(photo.currentItemLength<10){
uni.navigateBack({ uni.navigateBack({
delta:2 delta:1
}) })
}else{ }else{
uni.redirectTo({ uni.navigateBack({
url:"pages/photo/list" delta:2
}) })
} }
},2000) },2000)
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
src="/static/photo/icon-setting.png"></cover-image> src="/static/photo/icon-setting.png"></cover-image>
</cover-view> </cover-view>
</cover-view> </cover-view>
<camera class="camera-box" v-if="cameraChange&&!standardShow" :device-position="cameraInfo.devicePosition" <camera class="camera-box" v-if="cameraChange&&!standardShow" v-show="" :device-position="cameraInfo.devicePosition"
:flash="cameraInfo.flash" :style="{'height':cameraHeight/2 + 'px','top':parseInt(navHeight/2) + 'px'}" :flash="cameraInfo.flash" :style="{'height':cameraHeight/2 + 'px','top':parseInt(navHeight/2) + 'px'}"
@error="cameraError"> @error="cameraError">
<cover-view class="mark-box"> <cover-view class="mark-box">
...@@ -142,6 +142,8 @@ ...@@ -142,6 +142,8 @@
watch: {}, watch: {},
onShow() { onShow() {
// 默认开启弹窗 // 默认开启弹窗
const photo = getApp().globalData.photo
this.waterSetting = photo.waterSetting
this.standardShow = this.shadowInitShow this.standardShow = this.shadowInitShow
// this.initData() // this.initData()
}, },
......
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