diff --git a/秦皇岛第三医院小程序/pages.json b/秦皇岛第三医院小程序/pages.json
index c953fc1..8277008 100644
--- a/秦皇岛第三医院小程序/pages.json
+++ b/秦皇岛第三医院小程序/pages.json
@@ -34,6 +34,14 @@
"enablePullDownRefresh": false
}
+ },{
+ "path" : "pages/test/test",
+ "style" :
+ {
+ "navigationBarTitleText": "",
+ "enablePullDownRefresh": false
+ }
+
}],
"subPackages": [{
"root": "pages/buy",
diff --git a/秦皇岛第三医院小程序/pages/test/test.vue b/秦皇岛第三医院小程序/pages/test/test.vue
new file mode 100644
index 0000000..3d568ff
--- /dev/null
+++ b/秦皇岛第三医院小程序/pages/test/test.vue
@@ -0,0 +1,91 @@
+
+
+ 正在加载请稍后...
+
+
+ 文档打开后
+ 点击右上角按钮,然后选择“保存到手机”即可下载
+
+
+ 我知道了,打开文档
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/秦皇岛第三医院报告对比/components/report/type3.vue b/秦皇岛第三医院报告对比/components/report/type3.vue
index d32da15..a45c3f9 100644
--- a/秦皇岛第三医院报告对比/components/report/type3.vue
+++ b/秦皇岛第三医院报告对比/components/report/type3.vue
@@ -5,7 +5,8 @@
* date:2023年3月19日 13:38:24
*/
import {
- ref
+ ref,
+ onMounted
} from 'vue'
import {
$image,
@@ -15,7 +16,7 @@
import {
onShow
} from '@dcloudio/uni-app'
-
+ import wx from 'weixin-js-sdk'
const props = defineProps({
list: {
type: Object,
@@ -28,10 +29,12 @@
}
}
});
+ const popup=ref(null)
let url = ref('')
+
const ReportDown = async (id) => {
uni.showLoading({
- title: '正在下载,请打开弹窗拦截'
+ title: '正在查询报告...'
})
const response = await ReportDownAction({
rid: props.list.info.id,
@@ -41,7 +44,9 @@
uni.hideLoading()
$response(response, () => {
url.value = $image(response.data.url)
- jianqieban(url.value)
+
+ popup.value.open()
+ // jianqieban(url.value)
})
}
const jianqieban = (url) => {
@@ -51,6 +56,7 @@
showToast: false,
success: () => {
uni.$lu.toast("链接已复制到剪切板,请前往浏览器下载")
+ // tiao(url)
},
fail: (e) => {
console.log(e)
@@ -67,7 +73,9 @@
//data:"fdfdfdfs",
showToast: false,
success: () => {
- uni.$lu.toast("链接已复制到剪切板,请前往浏览器下载")
+
+ uni.$lu.toast("链接已复制到剪切板,请前往浏览器下载.")
+
}
});
} else if (res.cancel) {
@@ -82,11 +90,53 @@
}
});
}
+ let Env = ''
+ onMounted(() => {
+ console.log(props.list)
+ if(props.list && props.list.list.length>0){
+
+ }else{
+ uni.$lu.toast("暂无报告可下载")
+ }
+ Env = uni.getSystemInfoSync().platform
+ console.log(Env)
+ })
+ const tiao = (url) => {
+ console.log(url)
+ wx.miniProgram.navigateTo({
+ url: '/pages/test/test?url=' + url
+ })
+ }
+ const preview=()=>{
+ if(Env=='ios'){
+ //window.location.href = url.value
+ tiao(url.value)
+ }
+ if(Env=='android'){
+ tiao(url.value)
+ }
+ }
-
+
+
+
+
+
+
+ 报告预览
+
+
+
+
+ 报告下载
+
+
+
+
+
@@ -171,4 +221,26 @@
overflow-y: auto;
padding-bottom: 20rpx;
}
+ .tan{
+ padding: 40rpx;
+ background-color: #fff;
+ border-radius: 5rpx;
+ }
+ .t_row{
+ display: flex;
+ font-size: 30rpx;
+ border: 1px solid #88ebd6;
+ border-radius: 5rpx;
+ margin: 40rpx;
+ padding: 10rpx 60rpx;
+ }
+ .t_logo{
+ color:#42b983;
+ margin-right: 20rpx;
+ }
+ .t_title{
+ font-size: 33rpx;
+ color:#333;
+ margin-top: 8rpx;
+ }
\ No newline at end of file
diff --git a/秦皇岛第三医院报告对比/package-lock.json b/秦皇岛第三医院报告对比/package-lock.json
index 8784098..02d8351 100644
--- a/秦皇岛第三医院报告对比/package-lock.json
+++ b/秦皇岛第三医院报告对比/package-lock.json
@@ -1,11 +1,12 @@
{
- "name": "岚科体检平台报告对比",
+ "name": "秦皇岛第三医院报告对比",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"dependencies": {
- "echarts": "^5.4.2"
+ "echarts": "^5.4.2",
+ "weixin-js-sdk": "^1.6.5"
}
},
"node_modules/echarts": {
@@ -22,6 +23,11 @@
"resolved": "https://registry.npmjs.org/tslib/-/tslib-2.3.0.tgz",
"integrity": "sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg=="
},
+ "node_modules/weixin-js-sdk": {
+ "version": "1.6.5",
+ "resolved": "https://registry.npmjs.org/weixin-js-sdk/-/weixin-js-sdk-1.6.5.tgz",
+ "integrity": "sha512-Gph1WAWB2YN/lMOFB/ymb+hbU/wYazzJgu6PMMktCy9cSCeW5wA6Zwt0dpahJbJ+RJEwtTv2x9iIu0U4enuVSQ=="
+ },
"node_modules/zrender": {
"version": "5.4.4",
"resolved": "https://registry.npmjs.org/zrender/-/zrender-5.4.4.tgz",
diff --git a/秦皇岛第三医院报告对比/package.json b/秦皇岛第三医院报告对比/package.json
index 3f9ecb1..ec45c43 100644
--- a/秦皇岛第三医院报告对比/package.json
+++ b/秦皇岛第三医院报告对比/package.json
@@ -1,5 +1,6 @@
{
"dependencies": {
- "echarts": "^5.4.2"
+ "echarts": "^5.4.2",
+ "weixin-js-sdk": "^1.6.5"
}
}