mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-24 04:22:53 +08:00
更换贺报下载的方法26
This commit is contained in:
@@ -187,14 +187,13 @@ function appCallBack() {}
|
|||||||
return window.WVJBCallbacks.push(callback)
|
return window.WVJBCallbacks.push(callback)
|
||||||
}
|
}
|
||||||
window.WVJBCallbacks = [callback]
|
window.WVJBCallbacks = [callback]
|
||||||
var WVJBIframe = {}
|
var WVJBIframe = document.createElement('iframe')
|
||||||
WVJBIframe = document.createElement('iframe')
|
|
||||||
WVJBIframe.style.display = 'none'
|
WVJBIframe.style.display = 'none'
|
||||||
WVJBIframe.src = 'https://__bridge_loaded__'
|
WVJBIframe.src = 'https://__bridge_loaded__'
|
||||||
document.documentElement.appendChild(WVJBIframe)
|
document.documentElement.appendChild(WVJBIframe)
|
||||||
// setTimeout(function() {
|
setTimeout(function() {
|
||||||
document.documentElement.removeChild(WVJBIframe)
|
document.documentElement.removeChild(WVJBIframe)
|
||||||
// }, 100)
|
}, 0)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -244,8 +243,6 @@ function appCallBack() {}
|
|||||||
return triggerCallHandler(method, params)
|
return triggerCallHandler(method, params)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
console.log('z合理',window.WebViewJavascriptBridge);
|
|
||||||
window.WebViewJavascriptBridge = null
|
|
||||||
})(window)
|
})(window)
|
||||||
|
|
||||||
//notation: js file can only use this kind of comments
|
//notation: js file can only use this kind of comments
|
||||||
|
|||||||
@@ -120,7 +120,8 @@
|
|||||||
<!-- </van-list>-->
|
<!-- </van-list>-->
|
||||||
</div>
|
</div>
|
||||||
<p v-else class="noList">当前条件查无数据</p>
|
<p v-else class="noList">当前条件查无数据</p>
|
||||||
|
<button @click="xiazai">xiazai </button>
|
||||||
|
<button @click="xiazai2">下载 </button>
|
||||||
<!-- 二级机构筛选栏 -->
|
<!-- 二级机构筛选栏 -->
|
||||||
<van-popup v-model="isOrgLv2ConditionShow" position="bottom" :style="{ height: '40vh' }">
|
<van-popup v-model="isOrgLv2ConditionShow" position="bottom" :style="{ height: '40vh' }">
|
||||||
<van-picker show-toolbar :columns="province" @confirm="onOrgLv2ConditionConfirm" @cancel="isOrgLv2ConditionShow = false" />
|
<van-picker show-toolbar :columns="province" @confirm="onOrgLv2ConditionConfirm" @cancel="isOrgLv2ConditionShow = false" />
|
||||||
@@ -878,6 +879,29 @@ export default {
|
|||||||
const oneYearAgoDate = getOneYearAgoDate();
|
const oneYearAgoDate = getOneYearAgoDate();
|
||||||
this.timeMinDate = oneYearAgoDate
|
this.timeMinDate = oneYearAgoDate
|
||||||
},
|
},
|
||||||
|
xiazai() {
|
||||||
|
this.haha()
|
||||||
|
},
|
||||||
|
haha() {
|
||||||
|
async function captureAndProcessImage() {
|
||||||
|
EWebBridge.webCallAppInJs('download', {
|
||||||
|
url: 'https://iagentsales-test2.e-guofu.com/images/2024/12/30/realTimeOrder_b2914c33a78c496fa5be5033e3aa8e7e.png',
|
||||||
|
name: '业绩贺报.pdf'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
captureAndProcessImage()
|
||||||
|
},
|
||||||
|
xiazai2() {
|
||||||
|
this.haha2()
|
||||||
|
},
|
||||||
|
haha2() {
|
||||||
|
async function captureAndProcessImage() {
|
||||||
|
EWebBridge.webCallAppInJs('download', {
|
||||||
|
url: 'https://iagentsales-test2.e-guofu.com/images/2024/12/30/realTimeOrder_b2914c33a78c496fa5be5033e3aa8e7e.png',
|
||||||
|
name: '业绩贺报.pdf'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
<!-- <van-button square type="default" :disabled="shareJin" size="large" @click="shareImg" v-no-more-click="1000"> 分享 </van-button> -->
|
<!-- <van-button square type="default" :disabled="shareJin" size="large" @click="shareImg" v-no-more-click="1000"> 分享 </van-button> -->
|
||||||
<!-- <van-button square type="danger" :disabled="downLoadJin" size="large" @click="downLoadImagesFunc" v-no-more-click="1000"> 下载 </van-button> -->
|
<!-- <van-button square type="danger" :disabled="downLoadJin" size="large" @click="downLoadImagesFunc" v-no-more-click="1000"> 下载 </van-button> -->
|
||||||
<button class="shareImg" @click="fenxiang()" v-no-more-click="1000"> 分享 </button>
|
<button class="shareImg" @click="fenxiang()" v-no-more-click="1000"> 分享 </button>
|
||||||
<button class="downLoad" @click="domToImage()" v-no-more-click="1000"> 下载 </button>
|
<button class="downLoad" @click="xiazai()" v-no-more-click="1000"> 下载 </button>
|
||||||
</div>
|
</div>
|
||||||
<div class="close" @click="close()">
|
<div class="close" @click="close()">
|
||||||
<van-icon name="cross" size="38" color="#fff" />
|
<van-icon name="cross" size="38" color="#fff" />
|
||||||
@@ -196,13 +196,17 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
saveImg(res) {
|
xiazai() {
|
||||||
|
EWebBridge.webCallAppInJs('download', {
|
||||||
|
url: 'https://iagentsales-test2.e-guofu.com/images/2024/12/30/realTimeOrder_b2914c33a78c496fa5be5033e3aa8e7e.png',
|
||||||
|
name: '业绩贺报.pdf'
|
||||||
|
})
|
||||||
},
|
},
|
||||||
close() {
|
close() {
|
||||||
console.log(15434678);
|
console.log(15434678);
|
||||||
// document.documentElement.removeChild(this.$refs.xingdownLoad)
|
// document.documentElement.removeChild(this.$refs.xingdownLoad)
|
||||||
// this.$refs.xingdownLoad.removeChild(this.$refs.xingdownLoad);
|
// this.$refs.xingdownLoad.removeChild(this.$refs.xingdownLoad);
|
||||||
|
document.getElementById('capture').innerHTML = '';
|
||||||
this.$emit('child-colse', '1')
|
this.$emit('child-colse', '1')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user