提交 9873606b 编写于 作者: tao.wu's avatar tao.wu

year-end-activity init commit

上级 075fd9dd
......@@ -61,7 +61,7 @@ module.exports = {
** Build configuration
*/
router: {
base: '/questionnaire_ssr/' //上下文根据自己的需求自行打开修改
base: '/year_end_ssr/' //上下文根据自己的需求自行打开修改
},
build: {
postcss: {
......
......@@ -6493,12 +6493,14 @@
"minimist": {
"version": "0.0.8",
"bundled": true,
"dev": true
"dev": true,
"optional": true
},
"minipass": {
"version": "2.3.5",
"bundled": true,
"dev": true,
"optional": true,
"requires": {
"safe-buffer": "^5.1.2",
"yallist": "^3.0.0"
......@@ -6517,6 +6519,7 @@
"version": "0.5.1",
"bundled": true,
"dev": true,
"optional": true,
"requires": {
"minimist": "0.0.8"
}
......@@ -8523,6 +8526,7 @@
"version": "1.1.11",
"bundled": true,
"dev": true,
"optional": true,
"requires": {
"balanced-match": "^1.0.0",
"concat-map": "0.0.1"
......@@ -8537,7 +8541,8 @@
"code-point-at": {
"version": "1.1.0",
"bundled": true,
"dev": true
"dev": true,
"optional": true
},
"concat-map": {
"version": "0.0.1",
......@@ -8665,7 +8670,8 @@
"inherits": {
"version": "2.0.3",
"bundled": true,
"dev": true
"dev": true,
"optional": true
},
"ini": {
"version": "1.3.5",
......@@ -8677,6 +8683,7 @@
"version": "1.0.0",
"bundled": true,
"dev": true,
"optional": true,
"requires": {
"number-is-nan": "^1.0.0"
}
......@@ -8691,6 +8698,7 @@
"version": "3.0.4",
"bundled": true,
"dev": true,
"optional": true,
"requires": {
"brace-expansion": "^1.1.7"
}
......@@ -8802,7 +8810,8 @@
"number-is-nan": {
"version": "1.0.1",
"bundled": true,
"dev": true
"dev": true,
"optional": true
},
"object-assign": {
"version": "4.1.1",
......@@ -8935,6 +8944,7 @@
"version": "1.0.2",
"bundled": true,
"dev": true,
"optional": true,
"requires": {
"code-point-at": "^1.0.0",
"is-fullwidth-code-point": "^1.0.0",
......@@ -13510,8 +13520,7 @@
},
"ansi-regex": {
"version": "2.1.1",
"bundled": true,
"optional": true
"bundled": true
},
"aproba": {
"version": "1.2.0",
......@@ -13548,8 +13557,7 @@
},
"code-point-at": {
"version": "1.1.0",
"bundled": true,
"optional": true
"bundled": true
},
"concat-map": {
"version": "0.0.1",
......@@ -13558,8 +13566,7 @@
},
"console-control-strings": {
"version": "1.1.0",
"bundled": true,
"optional": true
"bundled": true
},
"core-util-is": {
"version": "1.0.2",
......@@ -13662,8 +13669,7 @@
},
"inherits": {
"version": "2.0.3",
"bundled": true,
"optional": true
"bundled": true
},
"ini": {
"version": "1.3.5",
......@@ -13673,7 +13679,6 @@
"is-fullwidth-code-point": {
"version": "1.0.0",
"bundled": true,
"optional": true,
"requires": {
"number-is-nan": "^1.0.0"
}
......@@ -13699,7 +13704,6 @@
"minipass": {
"version": "2.3.5",
"bundled": true,
"optional": true,
"requires": {
"safe-buffer": "^5.1.2",
"yallist": "^3.0.0"
......@@ -13716,7 +13720,6 @@
"mkdirp": {
"version": "0.5.1",
"bundled": true,
"optional": true,
"requires": {
"minimist": "0.0.8"
}
......@@ -13800,7 +13803,6 @@
"once": {
"version": "1.4.0",
"bundled": true,
"optional": true,
"requires": {
"wrappy": "1"
}
......@@ -13876,8 +13878,7 @@
},
"safe-buffer": {
"version": "5.1.2",
"bundled": true,
"optional": true
"bundled": true
},
"safer-buffer": {
"version": "2.1.2",
......@@ -13907,7 +13908,6 @@
"string-width": {
"version": "1.0.2",
"bundled": true,
"optional": true,
"requires": {
"code-point-at": "^1.0.0",
"is-fullwidth-code-point": "^1.0.0",
......@@ -13925,7 +13925,6 @@
"strip-ansi": {
"version": "3.0.1",
"bundled": true,
"optional": true,
"requires": {
"ansi-regex": "^2.0.0"
}
......@@ -13964,13 +13963,11 @@
},
"wrappy": {
"version": "1.0.2",
"bundled": true,
"optional": true
"bundled": true
},
"yallist": {
"version": "3.0.3",
"bundled": true,
"optional": true
"bundled": true
}
}
},
......
......@@ -6,7 +6,7 @@
"private": true,
"scripts": {
"test": "jest",
"dev": "cross-env NODE_ENV=development NUXT_ENV_APP=dev HOST=10.177.10.231 PORT=4000 nodemon server/index.js --watch server",
"dev": "cross-env NODE_ENV=development NUXT_ENV_APP=dev HOST=0.0.0.0 PORT=3008 nodemon server/index.js --watch server",
"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",
"generate": "nuxt generate"
......
<template>
<section>
年终活动
<section class="index-wrap">
<div>
<img src="../assets/img/img1.png" />
<img src="../assets/img/img2.png" />
<img src="../assets/img/img3.png" />
</div>
<div class="wrap-join">
<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"><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">
<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>
<h1>公布排名</h1>
<p></p>
</div>
<img class="bird" src="../assets/img/bird.png">
</div>
</section>
</template>
<script>
import { Toast } from 'vant';
import { mapMutations } from 'vuex'
// import { mapMutations } from 'vuex'
import request from '@/service/api';
import { check, questions,checkLogin } from '@/service';
import popAll from '../components/popAll.vue';
// import { check, questions,checkLogin } from '@/service';
// import popAll from '../components/popAll.vue';
import { getBaseMainUrl, getCookie, delCookie, setCookie } from '../utils/index';
// import { getBaseMainUrl, getCookie, delCookie, setCookie } from '../utils/index';
const cookies = require('cookie-universal')();
export default {
head() {
return {
title: '云鹊医-赋能基层医生',
};
},
data() {
return {
head() {
return {
title: '云鹊医-赋能基层医生',
};
},
data() {
return {}
},
created() {
},
mounted() {},
methods: {
},
}
</script>
<style lang="less">
.index-wrap{
div{
width: 375px;
img{
width: 375px;
display: block;
}
}
},
components: {
popAll,
},
created() {
},
mounted() {
let _this = this;
//init ios 方法
_this.$rocNative.appInit();
if (process.client) {
window.__refresh = function(params) {
if(_this.isUploadFresh){
return;
.wrap-join{
height: 72.5px;
background: url(../assets/img/img4.png) no-repeat center center;
background-size: 100% 100%;
.wrap-count{
width: 325px;
height: 72.5px;
display: flex;
margin: 0 auto;
h1{
margin-top: 9px;
font-size:23px;
font-weight:700;
color:rgba(255,255,255,1);
line-height:32.5px;
text-align: center;
}
h5{
font-size:14px;
font-weight:400;
color:rgba(255,255,255,0.59);
line-height:20px;
text-align: center;
}
//alert(1)
_this.isFirstFresh = false;
_this.getUserInfo()
}
// this.getUserInfo();
this.pageUrl = this.getParmUrlCode('pageUrl')
}
},
methods: {
getParmUrlCode(parm) {
let url = location.href,
s = ''
let index = url.indexOf(parm)
if (index > -1) {
s = url.substr(index + 8)
s = decodeURIComponent(s)
.btn-app-share{
img{
width: 312px;
height: 51.5px;
margin: 0 auto;
}
}
return s;
},
getUserInfo(parm) {
const _this = this;
!_this.isWEB && _this.$rocNative.getUserInfo().then(res => {
if (!res.userMobile) {
if (_this.isFirstFresh) {
_this.$rocNative.gotoLogin();
.btn-appoint{
height: 94.5px;
background: url(../assets/img/img5.png) no-repeat center center;
background-size: 100% 100%;
img{
padding-top: 15px;
}
if (!_this.isFirstFresh) {
_this.$rocNative.goBack()
}
.btn-share{
height: 166px;
background: url(../assets/img/img11.png) no-repeat center center;
background-size: 100% 100%;
img{
padding-top: 81px;
}
_this.isFirstFresh = true;
} else {
//sessionStorage.setItem('token',res.userToken);
_this.userMobile = res.userMobile;
_this.getCheck(res.userToken);
}
})
},
...mapMutations([
'SET_TOKEN'
]),
},
}
</script>
<style>
}
.rule-show{
background:rgba(254,124,86,1);
.bird{
width: 22.5px;
height: 28.5px;
margin: 0 auto;
padding: 24px 0;
}
.rule-bg{
width:345px;
height:368.5px;
margin:0 auto;
box-sizing: border-box;
background:rgba(236,107,69,1);
border-radius:12px;
padding: 15px;
}
}
}
</style>
\ No newline at end of file
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册