|
@@ -35,10 +35,6 @@
|
|
|
</div>
|
|
|
<!-- 现场照片预览 -->
|
|
|
<ImagePreview :key='imgKey' class='update-img-preview' :visible.sync='showImgPreview' :imgList='imgList' />
|
|
|
- <div style='margin-top:50px'>
|
|
|
- <van-button @click='roateX' type='primary'>横屏</van-button>
|
|
|
- <van-button @click='roateY' type='primary'>竖屏</van-button>
|
|
|
- </div>
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
@@ -132,24 +128,6 @@ export default {
|
|
|
this.imgList = imgList.concat(imgList)
|
|
|
imgList.length && (this.showImgPreview = true)
|
|
|
},
|
|
|
- roateX() {
|
|
|
- console.log('横屏')
|
|
|
- webkit.messageHandlers.cordova_iab.postMessage(
|
|
|
- JSON.stringify({
|
|
|
- method: 'roateX',
|
|
|
- })
|
|
|
- )
|
|
|
- },
|
|
|
-
|
|
|
- // 竖屏
|
|
|
- roateY() {
|
|
|
- console.log('竖屏')
|
|
|
- webkit.messageHandlers.cordova_iab.postMessage(
|
|
|
- JSON.stringify({
|
|
|
- method: 'roateY',
|
|
|
- })
|
|
|
- )
|
|
|
- },
|
|
|
},
|
|
|
}
|
|
|
</script>
|