提交 31c8b5eb 编写于 作者: guangjun.yang's avatar guangjun.yang

代码优化

上级 c4cf02ff
......@@ -32,7 +32,6 @@
</p>
</section>
</div>
<!-- <button @click="savePage2Picture">保存图片</button> -->
<section class="bottom">
<div class="prot-wrapper" @click="selectProt">
<div class="img-w">
......@@ -69,6 +68,11 @@ export default {
_this = this;
const { from } = this.$route.query;
this.from = from || 'app';
window.__refresh = function() {
_this.isSelect = false;
};
// 截屏时通知前端
window.__screenCaptureEvent = function() {
console.log('in screenCaptureEvent');
......@@ -78,12 +82,6 @@ export default {
});
}
// 保存图片的回调
window.__savePage2Picture = function(param) {
this.isHide = true;
console.log("__savePage2Picture", param);
}
// 先调用存储权限(只有安卓手机需要)
this.isAndroid && rocNative.openExternalStoragePermission();
......@@ -100,17 +98,6 @@ export default {
this.isSelect = !this.isSelect;
},
// 保存图片
savePage2Picture() {
this.isHide = false;
this.$forceUpdate()
this.$nextTick( () => {
rocNative.savePage2Picture({
__funcName: "__savePage2Picture"
});
})
},
// 跳转到详情页面
gotoDetail() {
this.$sendBuriedData({
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册