|
|
@@ -14,10 +14,7 @@
|
|
|
}}</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div
|
|
|
- class="yuyueguahao xinguanjiance"
|
|
|
- @click="routeTo(filterPath('/selectCovidBranch/', '/selectOrderCovidPatient'))"
|
|
|
- >
|
|
|
+ <div class="big-box xinguanjiance" @click="routeTo(filterPath('/selectCovidBranch/', '/selectOrderCovidPatient'))">
|
|
|
<div>
|
|
|
<img class="large-icon" src="../../assets/hospital-service/xinguanjiance2.png" />
|
|
|
</div>
|
|
|
@@ -64,12 +61,36 @@
|
|
|
</van-col>
|
|
|
</van-row>
|
|
|
</div>
|
|
|
- <div class="yuyueguahao" @click="toVaccinateAppointment">
|
|
|
- <div>
|
|
|
- <img class="large-icon" src="../../assets/hospital-service/vaccinate.png" />
|
|
|
+
|
|
|
+ <div style="position: relative; width: 95%; margin-top: 10px; height: 70px">
|
|
|
+ <div
|
|
|
+ style="
|
|
|
+ margin-left: 5%;
|
|
|
+ height: 70px;
|
|
|
+ background-size: 100%;
|
|
|
+ border-radius: 8px;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ background-image: url('http://staticweb.hnthyy.cn/images/yuyueguahaobackground.png');
|
|
|
+ "
|
|
|
+ >
|
|
|
+ <div>
|
|
|
+ <img style="margin-left: 10px; margin-top: 11px" src="http://staticweb.hnthyy.cn/images/hospitalcross.png" />
|
|
|
+ </div>
|
|
|
+ <div style="min-width: max-content; color: white; font-size: 26px; font-weight: bold; padding-left: 12px">
|
|
|
+ 医保电子凭证
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- <div style="color: white; font-size: 18px; font-weight: bold; padding-left: 10px">预约新冠疫苗接种</div>
|
|
|
- <img src="../../assets/hospital-service/click2.png" />
|
|
|
+ <wx-open-launch-weapp
|
|
|
+ username="gh_598eb49157c6"
|
|
|
+ appid="wxb032bc789053daf4"
|
|
|
+ path="yibao/pages/new_index/index/index.html?cityCode=430000&channel=AAFPgL4CyNqERXbiPt10sAv1"
|
|
|
+ :style="{ position: 'absolute', top: 0, left: 0, width: '100%', height: '100%' }"
|
|
|
+ >
|
|
|
+ <div v-is="'script'" type="text/wxtag-template">
|
|
|
+ <div style="position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0"></div>
|
|
|
+ </div>
|
|
|
+ </wx-open-launch-weapp>
|
|
|
</div>
|
|
|
|
|
|
<div style="width: 90%; margin-left: 5%; margin-top: 15px">
|
|
|
@@ -108,6 +129,7 @@ import { getDate } from '../../utils/date'
|
|
|
import router from '../../router'
|
|
|
import axios from 'axios'
|
|
|
import { apiUrl } from '../../utils/dev-prod'
|
|
|
+import { getJsApiSHA1 } from '../../api/wx-jsapi'
|
|
|
export default {
|
|
|
setup() {
|
|
|
const windowSize = store.state.windowSize
|
|
|
@@ -160,7 +182,9 @@ export default {
|
|
|
fontWeight: 'normal',
|
|
|
paddingRight: '15px',
|
|
|
}
|
|
|
-
|
|
|
+ const weappApiExist = computed(() => {
|
|
|
+ return store.state.weappApiExist
|
|
|
+ })
|
|
|
const cards = computed(() => {
|
|
|
return store.state.patientCards
|
|
|
})
|
|
|
@@ -219,6 +243,25 @@ export default {
|
|
|
loading.value = false
|
|
|
})
|
|
|
}
|
|
|
+
|
|
|
+ if (!weappApiExist.value) {
|
|
|
+ setTimeout(() => {
|
|
|
+ getJsApiSHA1(encodeURI(location.href)).then((res) => {
|
|
|
+ wx.config({
|
|
|
+ debug: false,
|
|
|
+ appId: res.appId,
|
|
|
+ timestamp: res.timestamp,
|
|
|
+ nonceStr: res.noncestr,
|
|
|
+ signature: res.signature,
|
|
|
+ jsApiList: [],
|
|
|
+ openTagList: ['wx-open-launch-weapp'],
|
|
|
+ })
|
|
|
+ wx.ready(() => {
|
|
|
+ store.commit('SET_WEAPPAPIEXIST', true)
|
|
|
+ })
|
|
|
+ })
|
|
|
+ }, 300)
|
|
|
+ }
|
|
|
})
|
|
|
return {
|
|
|
filterPath,
|
|
|
@@ -251,12 +294,11 @@ export default {
|
|
|
display: flex;
|
|
|
justify-content: space-between;
|
|
|
}
|
|
|
-.yuyueguahao {
|
|
|
+.big-box {
|
|
|
margin-top: 10px;
|
|
|
width: 90%;
|
|
|
margin-left: 5%;
|
|
|
height: 70px;
|
|
|
- background: url('../../assets/hospital-service/yuyueguahaobackground.png') no-repeat;
|
|
|
background-size: 100%;
|
|
|
border-radius: 8px;
|
|
|
display: flex;
|