提交 e2cd4610 编写于 作者: chengxiang.li's avatar chengxiang.li

Merge branch 'release' into dev-stage2-20191125

assets/img/img1.png

146.4 KB | W: | H:

assets/img/img1.png

124.1 KB | W: | H:

assets/img/img1.png
assets/img/img1.png
assets/img/img1.png
assets/img/img1.png
  • 2-up
  • Swipe
  • Onion skin
assets/img/img10.png

54.6 KB | W: | H:

assets/img/img10.png

53.9 KB | W: | H:

assets/img/img10.png
assets/img/img10.png
assets/img/img10.png
assets/img/img10.png
  • 2-up
  • Swipe
  • Onion skin
assets/img/img2.png

268.3 KB | W: | H:

assets/img/img2.png

225.3 KB | W: | H:

assets/img/img2.png
assets/img/img2.png
assets/img/img2.png
assets/img/img2.png
  • 2-up
  • Swipe
  • Onion skin
assets/img/img6.png

189.3 KB | W: | H:

assets/img/img6.png

154.5 KB | W: | H:

assets/img/img6.png
assets/img/img6.png
assets/img/img6.png
assets/img/img6.png
  • 2-up
  • Swipe
  • Onion skin
assets/img/img7.png

141.4 KB | W: | H:

assets/img/img7.png

118.1 KB | W: | H:

assets/img/img7.png
assets/img/img7.png
assets/img/img7.png
assets/img/img7.png
  • 2-up
  • Swipe
  • Onion skin
assets/img/img8.png

114.1 KB | W: | H:

assets/img/img8.png

101.2 KB | W: | H:

assets/img/img8.png
assets/img/img8.png
assets/img/img8.png
assets/img/img8.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -46,6 +46,13 @@ ...@@ -46,6 +46,13 @@
img{ img{
padding-top: 15px; padding-top: 15px;
} }
.appoint-time{
margin-top: 5px;
text-align: center;
font-size:12px;
color:rgba(237,90,44,1);
line-height:16.5px;
}
} }
.btn-share{ .btn-share{
height: 166px; height: 166px;
...@@ -99,13 +106,20 @@ ...@@ -99,13 +106,20 @@
background: #FFF6CA; background: #FFF6CA;
} }
.btn-rule{ .btn-rule{
width: 90px; width: 110px;
height: 15px; height: 15px;
font-size:15px; font-size:15px;
color:rgba(255,255,255,1); color:rgba(255,255,255,1);
line-height:15px; line-height:15px;
margin: 0 auto; margin: 0 auto;
padding: 16.5px 0 1.5px 0; padding: 16.5px 0 1.5px 0;
img{
width: 7px;
height: 12px;
display: inline;
vertical-align: middle;
padding-left: 5px;
}
} }
} }
} }
...@@ -115,6 +129,7 @@ ...@@ -115,6 +129,7 @@
position: fixed; position: fixed;
left: 0; left: 0;
bottom: 0; bottom: 0;
z-index: 10;
background: #fff; background: #fff;
div{ div{
width: 345px; width: 345px;
...@@ -128,4 +143,18 @@ ...@@ -128,4 +143,18 @@
text-align: center; text-align: center;
} }
} }
.abs-btn{
width: 69px;
height: 25px;
position: absolute;
right: 0;
top: 260px;
img{
width: 69px;
height: 25px;
}
}
}
.padbtm50{
padding-bottom: 50px;
} }
\ No newline at end of file
.remind-success{
width: 300px;
.van-dialog__header{
font-size:18px;
color:rgba(51,51,51,1);
line-height:18px;
padding-top: 30px;
}
.van-dialog__content{
.van-dialog__message{
padding: 14px 24px 30px 24px;
text-align: left;
font-size:14px;
color:rgba(103,104,105,1);
line-height:21px;
span{
font-size:14px;
color:#449284;
line-height:21px;
}
}
}
.van-dialog__footer{
.van-dialog__cancel{
.van-button__text{
font-size:17px;
color:rgba(151,152,153,1);
line-height:24px;
}
}
.van-dialog__confirm{
.van-button__text{
font-size:17px;
color:rgba(68,146,132,1);
line-height:24px;
}
}
}
}
.version-toast{
width: 320px;
.van-dialog__header{
font-size:18px;
color:rgba(51,51,51,1);
line-height:18px;
padding-top: 30px;
}
.van-dialog__content{
.van-dialog__message{
font-size:14px;
color:rgba(103,104,105,1);
line-height:21px;
}
}
.van-dialog__footer{
border: .5px solid rgba(0,0,0,.3);
.van-dialog__cancel{
.van-button__text{
font-size:17px;
color:rgba(151,152,153,1);
line-height:24px;
}
}
.van-dialog__confirm{
.van-button__text{
font-size:17px;
color:rgba(68,146,132,1);
line-height:24px;
}
}
}
}
\ No newline at end of file
header{
width: 375px;
position: fixed;
left: 0;
top: 0;
z-index: 100;
.status{
width: 375px;
}
.head-wrap{
width: 375px;
box-sizing: border-box;
padding: 0 20px 0 16px;
display: flex;
justify-content: space-between;
align-items: center;
img{
width: 25px;
height: 25px;
}
span{
font-size:17px;
font-weight:700;
color:rgba(3,3,3,1);
line-height:24px;
}
}
.bgfff{
background: #fff;
}
}
\ No newline at end of file
<template>
<header>
<div class="status" :class="{'bgfff': isScroll}" :style="{height: statusBarHeight + 'px', background: bgColor}"></div>
<div class="head-wrap" :class="{'bgfff': isScroll}" :style="{height: titleHeight + 'px'}">
<img @click="goBack" :src="leftIcon">
<span v-if="isScroll">{{title}}</span>
<img @click="goShare" :src="rightIcon">
</div>
</header>
</template>
<script>
import leftimg1 from './left-array.png';
import rightimg1 from './share-icon.png';
import leftimg2 from './left-icon.png';
import rightimg2 from './right-icon.png';
export default {
name: 'h5header',
props: {
scrollVal: { // 实际滚动的距离
type: Number,
default: 25
},
title: { // 头部 title
type: String,
default: '云鹊医-赋能基层医生'
},
shareObj: { // 分享的参数
type: Object,
default: {
shareUrl:'',
title1:'',
title2:'',
shareImageUrl:'',
}
},
baseShowHeight: { // 需要进行滚动交互的阈值
type: Number,
default: 25,
} ,
setedScroll: { // 是否使用外部父组件的scroll事件
type: Boolean,
default: false
}
},
data(){
return {
bgColor: '',
leftIcon: leftimg1,
rightIcon: rightimg1,
isScroll: false,
statusBarHeight: 20, // 给一个默认值,20 * 2
titleHeight: 44 // title高度默认是44px
}
},
mounted(){
this.setHeaderHeight();
if(!this.setedScroll){
this.scrollHandleOwn();
}
},
watch: {
scrollVal(val){
this.setScrollHandle(val);
}
},
methods: {
// 从APP获取电池栏高度并设置高度
setHeaderHeight(){
// this.statusBarHeight = 20 * window.devicePixelRatio; // 给一个默认值,20 * 2
// this.titleHeight = 44 * window.devicePixelRatio; // title高度默认是44px
this.$rocNative.getStatusBarHeight().then(res=>{
const dpr = window.devicePixelRatio;
if(this.$rocNative.isIOS){
this.statusBarHeight = res.statusBarHeight * dpr;
this.titleHeight = this.titleHeight * dpr;
}else{
this.bgColor = '#ccc';
this.statusBarHeight = res.statusBarHeight / dpr;
}
})
},
goBack(){
this.$sendBuriedData({
component_tag: `301#301002`
});
this.$rocNative.goBack();
},
goShare(){
this.$sendBuriedData({
component_tag: `301#301001`
});
this.$rocNative.shareWechat(this.shareObj);
},
// 默认滚动事件
scrollHandleOwn(){
let bodyScrollTop = 0, documentScrollTop = 0;
window.onscroll = () => {
if(document.body){
bodyScrollTop = document.body.scrollTop;
}
if(document.documentElement){
documentScrollTop = document.documentElement.scrollTop;
}
const heightVal = imgHeight1 + imgHeight2 + imgHeight3;
const scrollVal = bodyScrollTop || documentScrollTop;
this.setScrollHandle(scrollVal);
}
},
// 交互事件
setScrollHandle(instval){
if (instval >= this.baseShowHeight) {
this.isScroll = true;
this.leftIcon = leftimg2;
this.rightIcon = rightimg2;
} else {
this.isScroll = false;
this.leftIcon = leftimg1;
this.rightIcon = rightimg1;
}
}
}
}
</script>
<style lang="less">
@import './index.less';
</style>
<template>
<div class="pop-bg">
<div class="pop-box">
<div class="pop-txt">{{popAllObj.popTxt}}</div>
<div class="pop-btn" v-if="popAllObj.isAloneBtn" @click="popFun(popAllObj.index)">
{{popAllObj.aloneBtnTxt}}
</div>
<div class="pop-btn" v-else>
<span class="pop-btn-span cancel-btn" @click="popFun(popAllObj.cancelIndex?popAllObj.cancelIndex:'1')">{{popAllObj.cancelTxt || '退出'}}<i></i></span>
<span class="pop-btn-span sure-btn" @click="popFun(popAllObj.index)">{{popAllObj.sureTxt || '继续填写'}}</span>
</div>
</div>
</div>
</template>
<script>
export default {
data() {
return {}
},
props: {
title: {
default: '问卷调查',
type: String
},
popAllObj: {
default: ()=>{},
type: Object,
},
},
mounted() {
//console.log(this.popAllObj)
},
computed: {},
methods: {
getIt() {
},
popFun(str) {
this.$emit('setPopFun', str)
}
},
}
</script>
<style>
</style>
<style lang="scss" scoped>
// @import '../assets/style/mixin';
.pop-bg {
background: rgba(0, 0, 0, 0.5);
position: fixed;
z-index: 1000;
width: 100%;
height: 100%;
min-height: 100vh;
left: 0;
top: 0;
}
.pop-box {
background: #fff;
border-radius: 3px;
width: 300px;
//height: px2rem(138px);
position: fixed;
left: 50%;
top: 50%;
margin: -55px 0 0 -150px;
z-index: 1001;
}
.pop-txt {
padding: 30px;
//height: px2rem(70px);
line-height: 21px;
border-bottom: 1PX solid #F0F1F2;
font-size: 14px;
color: #676869;
// text-align: center;
// margin-top:px2rem(18px);
}
.pop-btn {
text-align: center;
height: 50px;
font-size: 17px;
color: #449284;
line-height: 50px;
overflow: hidden;
}
.pop-btn .pop-btn-span {
width: 50%;
float: left;
}
.cancel-btn{
position:relative;
color: #979899;
i{
display: inline-block;
height: 100%;
width: 1PX;
background: #F0F1F2;
position: absolute;
right: 0;
top:0;
}
}
.sure-btn{
color: #449284;
}
.top-title {
height: 45px;
line-height: 25px;
font-size: 18px;
text-align: center;
color: #333;
padding: 10px 0;
border-bottom: 1PX solid #E7E7E7
}
</style>
<template>
<div class="smo-share-mask" @click="close">
<div class="mask-tips" >
<img src="../assets/img/icon-yd.png" @click.stop="">
<div class="tips-txt" @click.stop="">点击右上角分享给其他好友</div>
</div>
</div>
</template>
<script>
export default {
methods: {
close() {
this.$emit('closeShare', false)
}
}
}
</script>
<style lang="less">
.smo-share-mask{
width: 375px;
height: 100%;
position: fixed;
left: 0;
top: 0;
z-index: 1000;
background: rgba(0,0,0,.8);
.mask-tips{
position: absolute;
right: 15px;
top: 13px;
text-align: right;
img{
display: inline;
width: 27px;
height: 32px;
}
.tips-txt{
width: 210px;
height: 35px;
line-height: 35px;
margin-top: 6px;
border-radius:2px;
text-align: center;
color: #FFFFFF;
font-size: 16px;
border:1px dashed rgba(255,255,255,.5);
}
}
}
</style>
\ No newline at end of file
...@@ -4,7 +4,7 @@ module.exports = { ...@@ -4,7 +4,7 @@ module.exports = {
** Headers of the page ** Headers of the page
*/ */
head: { head: {
title: '云鹊医-赋能基层医生', title: '云鹊奖2019',
meta: [ meta: [
{ charset: 'utf-8' }, { charset: 'utf-8' },
// { name: 'viewport', content: 'width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no, minimal-ui' }, // { name: 'viewport', content: 'width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no, minimal-ui' },
......
...@@ -6283,8 +6283,7 @@ ...@@ -6283,8 +6283,7 @@
"ansi-regex": { "ansi-regex": {
"version": "2.1.1", "version": "2.1.1",
"bundled": true, "bundled": true,
"dev": true, "dev": true
"optional": true
}, },
"aproba": { "aproba": {
"version": "1.2.0", "version": "1.2.0",
...@@ -6305,14 +6304,12 @@ ...@@ -6305,14 +6304,12 @@
"balanced-match": { "balanced-match": {
"version": "1.0.0", "version": "1.0.0",
"bundled": true, "bundled": true,
"dev": true, "dev": true
"optional": true
}, },
"brace-expansion": { "brace-expansion": {
"version": "1.1.11", "version": "1.1.11",
"bundled": true, "bundled": true,
"dev": true, "dev": true,
"optional": true,
"requires": { "requires": {
"balanced-match": "^1.0.0", "balanced-match": "^1.0.0",
"concat-map": "0.0.1" "concat-map": "0.0.1"
...@@ -6327,20 +6324,17 @@ ...@@ -6327,20 +6324,17 @@
"code-point-at": { "code-point-at": {
"version": "1.1.0", "version": "1.1.0",
"bundled": true, "bundled": true,
"dev": true, "dev": true
"optional": true
}, },
"concat-map": { "concat-map": {
"version": "0.0.1", "version": "0.0.1",
"bundled": true, "bundled": true,
"dev": true, "dev": true
"optional": true
}, },
"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",
...@@ -6457,8 +6451,7 @@ ...@@ -6457,8 +6451,7 @@
"inherits": { "inherits": {
"version": "2.0.3", "version": "2.0.3",
"bundled": true, "bundled": true,
"dev": true, "dev": true
"optional": true
}, },
"ini": { "ini": {
"version": "1.3.5", "version": "1.3.5",
...@@ -6470,7 +6463,6 @@ ...@@ -6470,7 +6463,6 @@
"version": "1.0.0", "version": "1.0.0",
"bundled": true, "bundled": true,
"dev": true, "dev": true,
"optional": true,
"requires": { "requires": {
"number-is-nan": "^1.0.0" "number-is-nan": "^1.0.0"
} }
...@@ -6485,7 +6477,6 @@ ...@@ -6485,7 +6477,6 @@
"version": "3.0.4", "version": "3.0.4",
"bundled": true, "bundled": true,
"dev": true, "dev": true,
"optional": true,
"requires": { "requires": {
"brace-expansion": "^1.1.7" "brace-expansion": "^1.1.7"
} }
...@@ -6493,14 +6484,12 @@ ...@@ -6493,14 +6484,12 @@
"minimist": { "minimist": {
"version": "0.0.8", "version": "0.0.8",
"bundled": true, "bundled": true,
"dev": true, "dev": true
"optional": true
}, },
"minipass": { "minipass": {
"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"
...@@ -6519,7 +6508,6 @@ ...@@ -6519,7 +6508,6 @@
"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"
} }
...@@ -6600,8 +6588,7 @@ ...@@ -6600,8 +6588,7 @@
"number-is-nan": { "number-is-nan": {
"version": "1.0.1", "version": "1.0.1",
"bundled": true, "bundled": true,
"dev": true, "dev": true
"optional": true
}, },
"object-assign": { "object-assign": {
"version": "4.1.1", "version": "4.1.1",
...@@ -6613,7 +6600,6 @@ ...@@ -6613,7 +6600,6 @@
"version": "1.4.0", "version": "1.4.0",
"bundled": true, "bundled": true,
"dev": true, "dev": true,
"optional": true,
"requires": { "requires": {
"wrappy": "1" "wrappy": "1"
} }
...@@ -6736,7 +6722,6 @@ ...@@ -6736,7 +6722,6 @@
"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",
...@@ -6756,7 +6741,6 @@ ...@@ -6756,7 +6741,6 @@
"version": "3.0.1", "version": "3.0.1",
"bundled": true, "bundled": true,
"dev": true, "dev": true,
"optional": true,
"requires": { "requires": {
"ansi-regex": "^2.0.0" "ansi-regex": "^2.0.0"
} }
...@@ -6800,8 +6784,7 @@ ...@@ -6800,8 +6784,7 @@
"wrappy": { "wrappy": {
"version": "1.0.2", "version": "1.0.2",
"bundled": true, "bundled": true,
"dev": true, "dev": true
"optional": true
}, },
"yallist": { "yallist": {
"version": "3.0.3", "version": "3.0.3",
...@@ -8500,7 +8483,8 @@ ...@@ -8500,7 +8483,8 @@
"ansi-regex": { "ansi-regex": {
"version": "2.1.1", "version": "2.1.1",
"bundled": true, "bundled": true,
"dev": true "dev": true,
"optional": true
}, },
"aproba": { "aproba": {
"version": "1.2.0", "version": "1.2.0",
...@@ -8554,7 +8538,8 @@ ...@@ -8554,7 +8538,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",
...@@ -8705,12 +8690,14 @@ ...@@ -8705,12 +8690,14 @@
"minimist": { "minimist": {
"version": "0.0.8", "version": "0.0.8",
"bundled": true, "bundled": true,
"dev": true "dev": true,
"optional": true
}, },
"minipass": { "minipass": {
"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"
...@@ -8729,6 +8716,7 @@ ...@@ -8729,6 +8716,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"
} }
...@@ -8822,6 +8810,7 @@ ...@@ -8822,6 +8810,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"
} }
...@@ -8907,7 +8896,8 @@ ...@@ -8907,7 +8896,8 @@
"safe-buffer": { "safe-buffer": {
"version": "5.1.2", "version": "5.1.2",
"bundled": true, "bundled": true,
"dev": true "dev": true,
"optional": true
}, },
"safer-buffer": { "safer-buffer": {
"version": "2.1.2", "version": "2.1.2",
...@@ -8962,6 +8952,7 @@ ...@@ -8962,6 +8952,7 @@
"version": "3.0.1", "version": "3.0.1",
"bundled": true, "bundled": true,
"dev": true, "dev": true,
"optional": true,
"requires": { "requires": {
"ansi-regex": "^2.0.0" "ansi-regex": "^2.0.0"
} }
...@@ -9005,12 +8996,14 @@ ...@@ -9005,12 +8996,14 @@
"wrappy": { "wrappy": {
"version": "1.0.2", "version": "1.0.2",
"bundled": true, "bundled": true,
"dev": true "dev": true,
"optional": true
}, },
"yallist": { "yallist": {
"version": "3.0.3", "version": "3.0.3",
"bundled": true, "bundled": true,
"dev": true "dev": true,
"optional": true
} }
} }
}, },
...@@ -9685,6 +9678,39 @@ ...@@ -9685,6 +9678,39 @@
"resolved": "http://192.168.110.93:4873/pica-jsbridge/-/pica-jsbridge-1.0.1.tgz", "resolved": "http://192.168.110.93:4873/pica-jsbridge/-/pica-jsbridge-1.0.1.tgz",
"integrity": "sha512-gwtKq3QWbXMQpdHf7tFKQWYvknQBU+qJUFxLxskHL10mChguSkyl7CxFND1mafVApTH6N1qgAOKKQLILgaJhTw==" "integrity": "sha512-gwtKq3QWbXMQpdHf7tFKQWYvknQBU+qJUFxLxskHL10mChguSkyl7CxFND1mafVApTH6N1qgAOKKQLILgaJhTw=="
}, },
"pica-wx-share": {
"version": "1.1.3",
"resolved": "http://192.168.110.93:4873/pica-wx-share/-/pica-wx-share-1.1.3.tgz",
"integrity": "sha512-iPUiTr4Gj0ndetUViqkNr9tPcJxycVFSMVlWCowQNe3mlZvfrFddKbD6AXLWB9Pc9aducYmYcTwGzX7s8PWspA==",
"requires": {
"axios": "^0.18.0",
"weixin-js-sdk": "^1.4.0-test"
},
"dependencies": {
"axios": {
"version": "0.18.1",
"resolved": "http://192.168.110.93:4873/axios/-/axios-0.18.1.tgz",
"integrity": "sha1-/z8N4ue10YDnV62YAA8Qgbh7zqM=",
"requires": {
"follow-redirects": "1.5.10",
"is-buffer": "^2.0.2"
}
},
"follow-redirects": {
"version": "1.5.10",
"resolved": "http://192.168.110.93:4873/follow-redirects/-/follow-redirects-1.5.10.tgz",
"integrity": "sha512-0V5l4Cizzvqt5D44aTXbFZz+FtyXV1vrDN6qrelxtfYQKW0KO0W2T/hkE8xvGa/540LkZlkaUjO4ailYTFtHVQ==",
"requires": {
"debug": "=3.1.0"
}
},
"is-buffer": {
"version": "2.0.4",
"resolved": "http://192.168.110.93:4873/is-buffer/-/is-buffer-2.0.4.tgz",
"integrity": "sha512-Kq1rokWXOPXWuaMAqZiJW4XxsmD9zGx9q4aePabbn3qCRGedtH7Cm+zV8WETitMfu1wdh+Rvd6w5egwSngUX2A=="
}
}
},
"picomatch": { "picomatch": {
"version": "2.0.7", "version": "2.0.7",
"resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.0.7.tgz", "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.0.7.tgz",
...@@ -13228,6 +13254,11 @@ ...@@ -13228,6 +13254,11 @@
"resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz", "resolved": "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz",
"integrity": "sha1-IpnwLG3tMNSllhsLn3RSShj2NPw=" "integrity": "sha1-IpnwLG3tMNSllhsLn3RSShj2NPw="
}, },
"vconsole": {
"version": "3.3.4",
"resolved": "http://192.168.110.93:4873/vconsole/-/vconsole-3.3.4.tgz",
"integrity": "sha512-9yihsic96NPoMLQx/lCQwH9d89H0bbMW3LZPzo/t4yGQcS1X+vTCe9OHm1XSH7WNxzGDmcSwBiKLsFGwvJpQBg=="
},
"vendors": { "vendors": {
"version": "1.0.3", "version": "1.0.3",
"resolved": "https://registry.npmjs.org/vendors/-/vendors-1.0.3.tgz", "resolved": "https://registry.npmjs.org/vendors/-/vendors-1.0.3.tgz",
...@@ -13542,7 +13573,6 @@ ...@@ -13542,7 +13573,6 @@
"brace-expansion": { "brace-expansion": {
"version": "1.1.11", "version": "1.1.11",
"bundled": true, "bundled": true,
"optional": true,
"requires": { "requires": {
"balanced-match": "^1.0.0", "balanced-match": "^1.0.0",
"concat-map": "0.0.1" "concat-map": "0.0.1"
...@@ -13689,15 +13719,13 @@ ...@@ -13689,15 +13719,13 @@
"minimatch": { "minimatch": {
"version": "3.0.4", "version": "3.0.4",
"bundled": true, "bundled": true,
"optional": true,
"requires": { "requires": {
"brace-expansion": "^1.1.7" "brace-expansion": "^1.1.7"
} }
}, },
"minimist": { "minimist": {
"version": "0.0.8", "version": "0.0.8",
"bundled": true, "bundled": true
"optional": true
}, },
"minipass": { "minipass": {
"version": "2.3.5", "version": "2.3.5",
...@@ -13790,8 +13818,7 @@ ...@@ -13790,8 +13818,7 @@
}, },
"number-is-nan": { "number-is-nan": {
"version": "1.0.1", "version": "1.0.1",
"bundled": true, "bundled": true
"optional": true
}, },
"object-assign": { "object-assign": {
"version": "4.1.1", "version": "4.1.1",
...@@ -14056,9 +14083,9 @@ ...@@ -14056,9 +14083,9 @@
} }
}, },
"web-buried-point": { "web-buried-point": {
"version": "1.1.27", "version": "2.0.0",
"resolved": "http://192.168.110.93:4873/web-buried-point/-/web-buried-point-1.1.27.tgz", "resolved": "http://192.168.110.93:4873/web-buried-point/-/web-buried-point-2.0.0.tgz",
"integrity": "sha512-f+pvS6vvGSW9gt2Um0snvuuHO8dnFMgskrsuQPJjjw+1gi2HQxLX6BX+O7XphBV6RaKRNejoTKwxYTtNPEO3FQ==", "integrity": "sha512-aaeKQ3RaS5sXbKBHLG3T9TK4ldzWsO7TMQ3d/FYeA6G5504f1OdNMkeIzktX9+q6Fegeo6GV8GnvZiukxmJKhg==",
"requires": { "requires": {
"axios": "^0.18.0" "axios": "^0.18.0"
}, },
...@@ -14081,9 +14108,9 @@ ...@@ -14081,9 +14108,9 @@
} }
}, },
"is-buffer": { "is-buffer": {
"version": "2.0.3", "version": "2.0.4",
"resolved": "http://192.168.110.93:4873/is-buffer/-/is-buffer-2.0.3.tgz", "resolved": "http://192.168.110.93:4873/is-buffer/-/is-buffer-2.0.4.tgz",
"integrity": "sha512-U15Q7MXTuZlrbymiz95PJpZxu8IlipAp4dtS3wOdgPXx3mqBnslrWU14kxfHB+Py/+2PVKSr37dMAgM2A4uArw==" "integrity": "sha512-Kq1rokWXOPXWuaMAqZiJW4XxsmD9zGx9q4aePabbn3qCRGedtH7Cm+zV8WETitMfu1wdh+Rvd6w5egwSngUX2A=="
} }
} }
}, },
...@@ -14265,6 +14292,11 @@ ...@@ -14265,6 +14292,11 @@
"wrap-ansi": "^5.1.0" "wrap-ansi": "^5.1.0"
} }
}, },
"weixin-js-sdk": {
"version": "1.4.0-test",
"resolved": "http://192.168.110.93:4873/weixin-js-sdk/-/weixin-js-sdk-1.4.0-test.tgz",
"integrity": "sha1-YSu6/Ml62E9a/m3IRwFTTMWfw8o="
},
"whatwg-encoding": { "whatwg-encoding": {
"version": "1.0.5", "version": "1.0.5",
"resolved": "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-1.0.5.tgz", "resolved": "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-1.0.5.tgz",
......
...@@ -6,9 +6,9 @@ ...@@ -6,9 +6,9 @@
"private": true, "private": true,
"scripts": { "scripts": {
"test": "jest", "test": "jest",
"dev": "cross-env NODE_ENV=development NUXT_ENV_APP=dev HOST=0.0.0.0 PORT=3008 nodemon server/index.js --watch server", "dev": "cross-env NODE_ENV=development NUXT_ENV_APP=dev HOST=0.0.0.0 PORT=3009 nodemon server/index.js --watch server",
"build": "NUXT_ENV_APP=${ENV} nuxt build", "build": "NUXT_ENV_APP=${ENV} nuxt build",
"start": "cross-env NUXT_ENV_APP=${ENV} HOST=0.0.0.0 PORT=3008 NODE_ENV=production node server/index.js", "start": "cross-env NUXT_ENV_APP=${ENV} HOST=0.0.0.0 PORT=3009 NODE_ENV=production node server/index.js",
"generate": "nuxt generate" "generate": "nuxt generate"
}, },
"dependencies": { "dependencies": {
...@@ -20,9 +20,11 @@ ...@@ -20,9 +20,11 @@
"nuxt": "^2.0.0", "nuxt": "^2.0.0",
"pica-h5-login": "^1.0.63", "pica-h5-login": "^1.0.63",
"pica-jsbridge": "^1.0.1", "pica-jsbridge": "^1.0.1",
"pica-wx-share": "^1.1.3",
"sass-loader": "^8.0.0", "sass-loader": "^8.0.0",
"vant": "^2.0.9", "vant": "^2.0.9",
"web-buried-point": "^1.1.27" "vconsole": "^3.3.4",
"web-buried-point": "^2.0.0"
}, },
"devDependencies": { "devDependencies": {
"@nuxtjs/axios": "^5.5.4", "@nuxtjs/axios": "^5.5.4",
......
<template>
<section class="index-wrap">
<div id="imgHeight1">
<img src="../assets/img/img1.png" />
<img src="../assets/img/img2.png" />
<img src="../assets/img/img3.png" />
</div>
<div class="wrap-join" id="imgHeight2">
<div class="wrap-count">
<div>
<h1>2394847</h1>
<h5>已参与人数</h5>
</div>
<div>
<h1>23948</h1>
<h5>已参与机构</h5>
</div>
</div>
</div>
<div class="btn-appoint btn-app-share" id="imgHeight3" @click="setRemind"><img src="../assets/img/btn_appoint.png" /></div>
<div>
<img src="../assets/img/img6.png" />
<img src="../assets/img/img7.png" />
<img src="../assets/img/img8.png" />
<img src="../assets/img/img9.png" />
<img src="../assets/img/img10.png" />
</div>
<div class="btn-share btn-app-share"><img src="../assets/img/btn_share.png" /></div>
<div class="rule-show">
<img src="../assets/img/rule_title.png" />
<div class="rule-bg">
<section>
<h1>每日任务,攒勤奋分</h1>
<p><span>比赛时间:</span>2019.12.16 10:00-2019.12.30 00:00</p>
<p><span>医生机构:</span>根据机构内注册医生的勤奋分总额排名,活动结束后机构榜单指定名次可获得云鹊豆,榜单第一可获得云鹊机构奖荣誉。</p>
<p><span>医生个人:</span>完成每日学习任务可积攒勤奋分和云鹊豆,每日个人排行榜前十可获得相应实物奖品,个人累计排行第一获得云鹊勤奋之星荣誉、iphone11(64G)一台及云鹊豆奖品。</p>
</section>
<section class="margin-top-20">
<h1>公布排名</h1>
<p><span>公布时间:</span>2019.12.30 10:00-2020.1.5</p>
<p>公布个人获奖名单和机构获奖名单</p>
</section>
<div class="line"></div>
<div class="btn-rule">查看规则详情</div>
</div>
<img class="bird" src="../assets/img/bird.png">
</div>
<div v-if="showFixed" @click="setRemind" class="fix-btn">
<div>开赛时提醒我</div>
</div>
</section>
</template>
<script>
// import { Toast } from 'vant';
// import { mapMutations } from 'vuex'
// import request from '@/service/api';
import { remind, getRemindStatus, checkHospitalStatus } from '@/service';
// import popAll from '../components/popAll.vue';
// import { getBaseMainUrl, getCookie, delCookie, setCookie } from '../utils/index';
const cookies = require('cookie-universal')();
const token = '3D093CC8931C4F73A938CD8939E1A640';
export default {
head() {
return {
title: '云鹊医-赋能基层医生',
};
},
async asyncData({ query }) {
const { data } = await getRemindStatus(token);
console.log('服务端',data)
const remindStatus = data;
return {
remindStatus
}
},
data() {
return {
showFixed: false,
}
},
created() {
},
mounted() {
console.log('愉悦状态',this.remindStatus)
this.scrollHandle();
},
methods: {
// 处理滚动按钮悬浮事件
scrollHandle(){
const _self = this;
const imgHeight1 = document.getElementById('imgHeight1').offsetHeight;
const imgHeight2 = document.getElementById('imgHeight2').offsetHeight;
const imgHeight3 = document.getElementById('imgHeight3').offsetHeight;
let bodyScrollTop = 0, documentScrollTop = 0;
window.onscroll = () => {
if(document.body){
bodyScrollTop = document.body.scrollTop;
}
if(document.documentElement){
documentScrollTop = document.documentElement.scrollTop;
}
const heightVal = imgHeight1 + imgHeight2 + imgHeight3;
const scrollVal = bodyScrollTop || documentScrollTop;
if(scrollVal>=heightVal){
_self.showFixed = true;
}else{
_self.showFixed = false;
}
}
},
setRemind(){
checkHospitalStatus(token).then(res=>{
console.log(res)
// status : 0无机构 1正常 2机构已关闭 5退出 10移除 15创建机构审核中 20创建机构审核不通过 25创建机构未提交
if(res.data.status==1){
}
if(!res.data.status){ // 0无机构
// native gotoActivityHospital
}else if(res.data.status==15){ // 15创建机构审核中
// native gotoInstitutionalReview
}else{
remind({token}).then(res=>{
console.log('res=>',res)
})
}
})
}
},
}
</script>
<style lang="less">
@import '../assets/style/index.less';
</style>
\ No newline at end of file
<template>
<section class="index-wrap" :class="{'padbtm50': (showFixed && showRemindBtn)}">
<h5header v-if="!isWeb" title="云鹊奖2019" :scrollVal="scrollVal" :baseShowHeight="25" :shareObj="shareObj" :setedScroll="true" />
<div id="imgHeight1">
<img src="../assets/img/img1.png" />
<img src="../assets/img/img2.png" />
<img src="../assets/img/img3.png" />
</div>
<div class="wrap-join" id="imgHeight2">
<div class="wrap-count">
<div>
<h1>{{doctorIdCnt}}</h1>
<h5>已参与人数</h5>
</div>
<div>
<h1>{{hospitalIdCnt}}</h1>
<h5>已参与机构</h5>
</div>
</div>
</div>
<div v-show="loaded || isWeb" class="btn-appoint btn-app-share" id="imgHeight3">
<img v-if="showRemindBtn&&!remindStatus" @click="setRemind" src="../assets/img/btn_appoint.png" />
<div v-if="remindStatus">
<img src="../assets/img/btn_appointed.png">
<div class="appoint-time">12月16号我们会提示你参加活动</div>
</div>
</div>
<div>
<img src="../assets/img/img6.png" />
<img src="../assets/img/img7.png" />
<img src="../assets/img/img8.png" />
<img src="../assets/img/img9.png" />
<img src="../assets/img/img10.png" />
</div>
<div class="btn-share btn-app-share"><img @click="goShare" src="../assets/img/btn_share.png" /></div>
<div class="rule-show">
<img src="../assets/img/rule_title.png" />
<div class="rule-bg">
<section>
<h1>每日任务,攒勤奋分</h1>
<p><span>比赛时间:</span>2019.12.16 10:00-2019.12.30 00:00</p>
<p><span>医生机构:</span>根据机构内注册医生的勤奋分总额排名,活动结束后机构榜单指定名次可获得云鹊豆,榜单第一可获得云鹊机构奖荣誉。</p>
<p><span>医生个人:</span>完成每日学习任务可积攒勤奋分和云鹊豆,每日个人排行榜前十可获得相应实物奖品,个人累计排行第一获得云鹊勤奋之星荣誉、iphone11(64G)一台及云鹊豆奖品。</p>
</section>
<section class="margin-top-20">
<h1>公布排名</h1>
<p><span>公布时间:</span>2019.12.30 10:00-2020.1.5</p>
<p>公布个人获奖名单和机构获奖名单</p>
</section>
<div class="line"></div>
<div @click="ruleLink" class="btn-rule">查看规则详情<img src="../assets/img/arrw.png"></div>
</div>
<img class="bird" src="../assets/img/bird.png">
</div>
<share-container
v-if="showWxMask"
@closeShare="showWxMask=false"
/>
<div class="abs-btn">
<img @click="ruleLink" src="../assets/img/btn_rules.png">
</div>
<div v-if="showFixed && showRemindBtn" @click="setRemind" class="fix-btn">
<div>开赛时提醒我</div>
</div>
</section>
</template>
<script>
import { Toast } from 'vant';
import { remind, getRemindStatus, checkHospitalStatus, getCnt, checkToken } from '@/service';
import h5header from '@/components/h5header';
import shareContainer from '@/components/share-container';
import { BASE_URL } from '@/utils/enumerate';
export default {
// head() {
// return {
// title: '云鹊医-赋能基层医生',
// };
// },
components: {
h5header,
shareContainer
},
data() {
return {
showWxMask: false,
showFixed: false,
doctorIdCnt: '',
hospitalIdCnt: '',
scrollVal: 0,
isWeb: false,
remindStatus: false,
isLogin: false,
loaded: false,
shareObj: {},
userToken: ''
}
},
created() {
getCnt().then(res => {
if (res.code == '000000') {
this.doctorIdCnt = res.data.doctorIdCnt;
this.hospitalIdCnt = res.data.hospitalIdCnt;
}
});
},
mounted() {
const _seft = this;
this.$rocNative.appInit();
window.__refresh = function() {
_seft.$rocNative
.getUserInfo()
.then(params => {
_seft.userToken = params.userToken;
getRemindStatus(_seft.userToken).then(res => {
if(res.code=='000000'){
_seft.isLogin = true;
_seft.remindStatus = res.data;
}else if(res.code=='200006'){
_seft.isLogin = false;
}
_seft.loaded = true;
});
});
}
this.shareObj = {
shareUrl: window.location.href,
title1: '年底辛苦了,送您一份奖励',
title2: '小小心意,20万奖品等瓜分',
shareImageUrl: 'https://file.yunqueyi.com/h5/nzhd19/share.png'
}
this.isWeb = this.$rocNative.isWeb;
// this.isWeb = false;
// this.isLogin = true;
// this.remindStatus = false;
// this.loaded = true;
// 通过获取token,初始化数据
this.$rocNative.getToken().then(res => {
const { userToken } = res;
this.userToken = userToken;
getRemindStatus(userToken).then(res => {
if(res.code=='000000'){
this.isLogin = true;
this.remindStatus = res.data;
}else if(res.code=='200006'){
this.isLogin = false;
}
this.loaded = true;
});
});
// 滚动交互
this.scrollHandle();
// 微信分享
this.$picaWxShare({
// baseUrl: BASE_URL[process.env.NUXT_ENV_APP],
baseUrl: 'https://test1-sc.yunqueyi.com',
authUrl: window.location.href,
isDebug: false,
type: 15,
jsApiList: [
'checkJsApi',
'onMenuShareTimeline',
'onMenuShareAppMessage'
]
},(wx)=>{
const title = this.shareObj.title1;
const desc = this.shareObj.title2;
const link = window.location.href;
const imgUrl = this.shareObj.shareImageUrl;
// 分享给朋友
wx.onMenuShareAppMessage({
title,desc,link,imgUrl
});
// 分享到朋友圈
wx.onMenuShareTimeline({
title,desc,link,imgUrl
});
})
},
computed: {
showRemindBtn(){
// 没办法,这里需要对按钮的显示与否进行优化
// APP,已登录,等到加载完,再根据 [remindStatus] 显示按钮
// APP,未登录,直接显示【开赛提醒】按钮
// web非APP,直接显示【开赛提醒】按钮
let flag = false;
if(this.isLogin){
if(this.remindStatus){
flag = false;
}else{
flag = true;
}
}else{
flag = true;
}
return flag;
},
},
methods: {
// 处理滚动按钮悬浮事件
scrollHandle() {
const _self = this;
const imgHeight1 = document.getElementById('imgHeight1').offsetHeight;
const imgHeight2 = document.getElementById('imgHeight2').offsetHeight;
const imgHeight3 = document.getElementById('imgHeight3').offsetHeight;
let bodyScrollTop = 0,
documentScrollTop = 0;
window.onscroll = () => {
if (document.body) {
bodyScrollTop = document.body.scrollTop;
}
if (document.documentElement) {
documentScrollTop = document.documentElement.scrollTop;
}
const heightVal = imgHeight1 + imgHeight2 + imgHeight3;
const scrollVal = bodyScrollTop || documentScrollTop;
this.scrollVal = scrollVal;
if (scrollVal >= heightVal) {
_self.showFixed = true;
} else {
_self.showFixed = false;
}
}
},
// 提醒预约
setRemind() {
this.$sendBuriedData({
component_tag: `301#301004`
});
if (this.isWeb) {
this.$dialog.confirm({
title: '提醒',
message: '请前往云鹊医APP参与活动',
confirmButtonText: '下载APP',
cancelButtonText: '我知道了',
className: 'remind-success',
}).then(() => {
window.location.href = 'https://android.myapp.com/myapp/detail.htm?apkName=com.picahealth.yunque&ADTAG=mobile';
});
} else {
// if(!flag && !this.loaded){
// return;
// }
if(!this.loaded){
return;
}
// this.$rocNative.getToken().then(data => {
// const { userToken } = data;
checkToken(this.userToken).then(res=>{
if(res.code=='200006' || res.code == '200000'){
this.$rocNative.gotoLogin();
}else{
checkHospitalStatus(this.userToken).then(res => {
const status = res.data.status;
if (status == 1) { // 机构状态正常
remind({ token: this.userToken }).then(resD => {
if (resD.code == '000000' && resD.data) {
// if(!flag){
this.$dialog.alert({
title: '设置提醒成功',
message: '云鹊奖活动正式时间:12月16日 10:00开始,我们将会以APP消息提醒和短信形式提醒您,请记得及时参与活动',
confirmButtonText: '我知道了',
className: 'remind-success'
});
// }
this.remindStatus = true;
} else if(resD.code == '000000' && !resD.data){
this.$toast(resD.message);
this.remindStatus = true;
}else {
this.$toast(resD.message);
}
})
} else if (status == 15) { // 15创建机构审核中
let hospital = '默认机构名称';
if (res.data && res.data.hospital) {
hospital = res.data.hospital
}
this.$dialog.confirm({
title: '提醒',
message: `抱歉,您创建的机构【${hospital}】正在审核中,审核通过后可参与活动<br/><br/>如有疑问可联系客:<span>400-920-8877</span><br/>(周一至周五9:00-18:00)`,
confirmButtonText: '查看进度',
cancelButtonText: '我知道了',
className: 'remind-success',
}).then(() => {
this.checkVersion(()=>{
if (this.$rocNative.isAndroid) {
this.$rocNative.setNeedClearUrl({ url: 'year_end_ssr' });
}
this.$rocNative.gotoInstitutionalReview({ url: window.location.href });
});
});
} else { // 除了1都是未加入机构
this.$dialog.confirm({
title: '提醒',
message: '抱歉,您暂未加入机构,需加入机构才可参与活动',
confirmButtonText: '加入机构',
cancelButtonText: '我知道了',
className: 'remind-success',
}).then(() => {
this.checkVersion(()=>{
if (this.$rocNative.isAndroid) {
this.$rocNative.setNeedClearUrl({ url: 'year_end_ssr' });
}
this.$rocNative.gotoActivityHospital({ url: window.location.href });
})
});
}
})
}
})
// });
}
},
checkVersion(callback){
this.$rocNative.getAppVersionCode().then(res => {
const appVersion = parseFloat(res.versionCode.replace(/\./g, ''));
if(appVersion>=317){
callback();
}else{
this.$dialog.alert({
message: '当前app版本过低,请升级版本后继续操作',
className: 'version-toast'
});
}
});
},
// 微信分享
goShare() {
this.$sendBuriedData({
component_tag: `301#301005`
});
if(this.isWeb){
this.showWxMask = true;
}else{
this.$rocNative.shareWechat(this.shareObj);
}
},
// 活动规则
ruleLink() {
this.$sendBuriedData({
component_tag: `301#301003`
});
if(this.isWeb){
window.location.href = 'https://phome.yunqueyi.com/template_v2/?id=594';
}else{
this.$rocNative.dispatchEventByModuleCode({
modeCode: 'M300',
jsonString: [
{
"key":"pageUrl",
"value": 'https://phome.yunqueyi.com/template_v2/?id=594',
"type":4,
"seqNo":1
},
{
"key":"showTitle",
"value": false,
"type":1,
"seqNo":2
},{
"key":"title",
"value": '',
"type":1,
"seqNo":3
}
]
})
}
}
},
}
</script>
<style lang="less" scoped>
@import '../assets/style/index.less';
</style>
<style lang="less">
@import '../assets/style/revant.less';
</style>
\ No newline at end of file
import Vue from 'vue' import Vue from 'vue'
import PicaJsBridge from '@/utils/jsbridge' import PicaJsBridge from '@/utils/jsbridge'
// import Vconsole from 'vconsole';
// const vConsole = new Vconsole();
Vue.prototype.$rocNative = new PicaJsBridge(); Vue.prototype.$rocNative = new PicaJsBridge();
import Vue from 'vue' import Vue from 'vue'
import { BASE_URL } from '@/utils/enumerate'; import { BASE_URL } from '@/utils/enumerate';
import PicaWxShare from 'pica-wx-share';
Vue.prototype.$picaWxShare = PicaWxShare;
import PicaH5Login from 'pica-h5-login'; import PicaH5Login from 'pica-h5-login';
import { Dialog, Toast, Checkbox,Popup ,CheckboxGroup ,RadioGroup, Radio, Progress,ImagePreview ,Uploader,Overlay,Loading } from 'vant'; import { Dialog, Toast, Checkbox,Popup ,CheckboxGroup ,RadioGroup, Radio, Progress,ImagePreview ,Uploader,Overlay,Loading } from 'vant';
import WebBuriedPoint, { sendBuriedData } from 'web-buried-point'; import WebBuriedPoint, { sendBuriedData } from 'web-buried-point';
...@@ -13,7 +16,7 @@ Vue.use(Dialog) ...@@ -13,7 +16,7 @@ Vue.use(Dialog)
const { NUXT_ENV_APP } = process.env; const { NUXT_ENV_APP } = process.env;
Vue.use(WebBuriedPoint, { Vue.use(WebBuriedPoint, {
class_name: `questionnaire_v2`, class_name: `year_end_ssr`,
url: `${BASE_URL[NUXT_ENV_APP]}/file/log/trace1` url: `${BASE_URL[NUXT_ENV_APP]}/file/log/trace1`
}); });
......
// import qs from 'qs';
import request from './api'; import request from './api';
// import { async } from 'q';
// export const check = async (params) => { // 获取机构和个人参与人数
// return request({ export const getCnt = () => {
// url: `/campaign/questionnaire/check`, return request({
// params, url: `campaign/preBook/cnt`,
// // 需要在headers设置token method: 'get',
// // withCredentials: true, })
// headers: { }
// token: params.token
// }
// })
// }
// export const checkLogin = async (params) => {
// return request({
// url: 'campaign/questionnaire/loginAuth',
// params,
// // 需要在headers设置token
// // withCredentials: true,
// // headers: {
// // token: params.token
// // }
// })
// }
// 查看当前token的机构状态 // 查看当前token的机构状态
export const checkHospitalStatus = async (token) => { export const checkHospitalStatus = (token) => {
return request({ return request({
url: `api-ws/doctors/hospital/status`, url: `api-ws/doctors/hospital/status`,
method: 'get', method: 'get',
...@@ -37,9 +19,8 @@ export const checkHospitalStatus = async (token) => { ...@@ -37,9 +19,8 @@ export const checkHospitalStatus = async (token) => {
}) })
} }
// 设置开赛提醒接口 post // 设置开赛提醒接口 post
export const remind = async (params) => { export const remind = (params) => {
return request({ return request({
url: `campaign/preBook/book`, url: `campaign/preBook/book`,
method: 'post', method: 'post',
...@@ -59,4 +40,14 @@ export const getRemindStatus = async (token) => { ...@@ -59,4 +40,14 @@ export const getRemindStatus = async (token) => {
token: token token: token
} }
}) })
}
export const checkToken = async (token) => {
return request({
url: `campaign/admin/task/checkToken?token=${token}`,
method: 'get',
headers: {
token: token
}
})
} }
\ No newline at end of file
...@@ -16,8 +16,26 @@ export const JsBridgeOptions = { ...@@ -16,8 +16,26 @@ export const JsBridgeOptions = {
GLOBAL_NAME: 'rocNative', GLOBAL_NAME: 'rocNative',
NATIVE_IOS_NAME: 'rociOS', NATIVE_IOS_NAME: 'rociOS',
NATIVE_ANDROID_NAME: '__rocAndroid', NATIVE_ANDROID_NAME: '__rocAndroid',
initMethodsWithCallBack: ['getToken', 'getUserInfo','addEnclosure'], // value is string initMethodsWithCallBack: ['getToken', 'getUserInfo','addEnclosure', 'getStatusBarHeight','getAppVersionCode'], // value is string
initMethodsWithoutCallBack: ['appInit', 'goBack','gotoLogin', 'shareWechat', 'showNativeToast', 'dispatchEventByModuleCode', 'appBuryingPointEntrust', 'webLoadSuccess','WfileImageCallBack','selectPhoto','gotoInstitutionalReview', 'gotoActivityHospital'] // value is string initMethodsWithoutCallBack: [
'appInit',
'goBack',
'gotoLogin',
'shareWechat',
'showNativeToast',
'dispatchEventByModuleCode',
'appBuryingPointEntrust',
'webLoadSuccess',
'WfileImageCallBack',
'selectPhoto',
'gotoInstitutionalReview',
'gotoActivityHospital',
'setNeedClearUrl',
'dispatchEventByModuleCode',
'sendBuriedPoint',
'openErrorDebug',
'getLocalData'
] // value is string
} }
/** /**
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册