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

year-end-activity init commit

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