提交 75065ace 编写于 作者: Yuanzhao.dai's avatar Yuanzhao.dai

机构榜单接口联调、引入pica-call-app组件

上级 0af2fa0d
...@@ -60,6 +60,10 @@ module.exports = { ...@@ -60,6 +60,10 @@ module.exports = {
{ {
src: '~plugins/mixins', src: '~plugins/mixins',
ssr: false ssr: false
},
{
src: '~plugins/pica-call-app',
ssr: false
} }
], ],
/* /*
......
...@@ -8553,7 +8553,8 @@ ...@@ -8553,7 +8553,8 @@
"console-control-strings": { "console-control-strings": {
"version": "1.1.0", "version": "1.1.0",
"bundled": true, "bundled": true,
"dev": true "dev": true,
"optional": true
}, },
"core-util-is": { "core-util-is": {
"version": "1.0.2", "version": "1.0.2",
...@@ -8713,6 +8714,7 @@ ...@@ -8713,6 +8714,7 @@
"version": "2.3.5", "version": "2.3.5",
"bundled": true, "bundled": true,
"dev": true, "dev": true,
"optional": true,
"requires": { "requires": {
"safe-buffer": "^5.1.2", "safe-buffer": "^5.1.2",
"yallist": "^3.0.0" "yallist": "^3.0.0"
...@@ -8731,6 +8733,7 @@ ...@@ -8731,6 +8733,7 @@
"version": "0.5.1", "version": "0.5.1",
"bundled": true, "bundled": true,
"dev": true, "dev": true,
"optional": true,
"requires": { "requires": {
"minimist": "0.0.8" "minimist": "0.0.8"
} }
...@@ -8824,6 +8827,7 @@ ...@@ -8824,6 +8827,7 @@
"version": "1.4.0", "version": "1.4.0",
"bundled": true, "bundled": true,
"dev": true, "dev": true,
"optional": true,
"requires": { "requires": {
"wrappy": "1" "wrappy": "1"
} }
...@@ -8945,6 +8949,7 @@ ...@@ -8945,6 +8949,7 @@
"version": "1.0.2", "version": "1.0.2",
"bundled": true, "bundled": true,
"dev": true, "dev": true,
"optional": true,
"requires": { "requires": {
"code-point-at": "^1.0.0", "code-point-at": "^1.0.0",
"is-fullwidth-code-point": "^1.0.0", "is-fullwidth-code-point": "^1.0.0",
......
...@@ -16,11 +16,11 @@ ...@@ -16,11 +16,11 @@
</div> </div>
</div> </div>
</div> </div>
<div class="footer"> <div class="footer" v-if="!isWeb">
<div class="content"> <div class="content">
<div class="left"> <div class="left">
<p class="score">我的机构勤奋分<span>2000</span></p> <p class="score">我的机构勤奋分<span>{{personalData.hospitalDiligence}}</span></p>
<p class="rank">恭喜您的机构上榜排名<span>第5</span></p> <p class="rank">恭喜您的机构上榜排名<span>{{personalData.hospitalRank}}</span></p>
</div> </div>
<div class="right">分享排名</div> <div class="right">分享排名</div>
</div> </div>
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
</template> </template>
<script> <script>
import { getHospitalRank } from '@/service/stage3Api' import { getHospitalRank, getPersonScore } from '@/service/stage3Api'
export default { export default {
name: "hospital-grades", name: "hospital-grades",
components: { components: {
...@@ -37,7 +37,8 @@ ...@@ -37,7 +37,8 @@
}, },
data() { data() {
return { return {
isWeb: false,
personalData: {}
} }
}, },
async asyncData( { query } ) { async asyncData( { query } ) {
...@@ -50,14 +51,22 @@ ...@@ -50,14 +51,22 @@
created() { created() {
}, },
mounted() { mounted() {
getHospitalRank({ type: this.hospitalType }) this.$rocNative.appInit();
this.isWeb = this.$rocNative.isWeb;
if(!this.isWeb) {
this.getPersonScore();
};
}, },
methods: { methods: {
getPersonScore() {
getPersonScore().then(res => {
this.personalData = res.data
})
}
} }
} }
</script> </script>
<style scoped lang="less"> <style scoped lang="less">
@import "../../assets/style/awards-list/rank.less"; @import "../../assets/style/awards-list/rank.less";
</style> </style>
\ No newline at end of file
...@@ -107,6 +107,12 @@ ...@@ -107,6 +107,12 @@
<div class="pica-icon"> <div class="pica-icon">
<img src="~/assets/img/stage3/pica-icon.png" alt=""> <img src="~/assets/img/stage3/pica-icon.png" alt="">
</div> </div>
<no-ssr>
<pica-call-app
:text="'高效学习 轻松行医'"
path="https://test1-m-ws.yunqueyi.com/search"
/>
</no-ssr>
</section> </section>
</template> </template>
...@@ -230,7 +236,11 @@ ...@@ -230,7 +236,11 @@
} }
} }
</script> </script>
<style>
.call-app-container .down-btn,.call-app-container .open-btn {
font-size: 14px;
}
</style>
<style scoped lang="less"> <style scoped lang="less">
@import '../../assets/style/awards-list/index.less'; @import '../../assets/style/awards-list/index.less';
</style> </style>
\ No newline at end of file
import Vue from 'vue'
import PicaCallApp from 'pica-call-app';
Vue.use(PicaCallApp);
\ No newline at end of file
...@@ -16,7 +16,7 @@ Axios.interceptors.request.use( ...@@ -16,7 +16,7 @@ Axios.interceptors.request.use(
if (method === 'post' || method === 'put' || method === 'delete') {} if (method === 'post' || method === 'put' || method === 'delete') {}
if (config.withCredentials) { if (config.withCredentials) {
//config.headers.token = getCookie('token') || sessionStorage.getItem('token'); //config.headers.token = getCookie('token') || sessionStorage.getItem('token');
config.headers.token = 'DA04EEE95F9F4D2A8630A61A8088C933' config.headers.token = '76D717B0D52641A3A8B718BC775529A8'
} }
return config; return config;
}, },
......
...@@ -29,4 +29,12 @@ export const getHospitalRank = (params) => { ...@@ -29,4 +29,12 @@ export const getHospitalRank = (params) => {
url: '/campaign/third/share/hospital/rank', url: '/campaign/third/share/hospital/rank',
params: params params: params
}) })
}
/*排行榜底部个人、机构排行信息*/
export const getPersonScore = (params) => {
return request({
url: '/campaign/third/share/person/score',
withCredentials: true,
params: params
})
} }
\ No newline at end of file
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册