提交 8d4200dd 编写于 作者: guangjun.yang's avatar guangjun.yang

工具进行格式化等

上级 d78de7e5
...@@ -91,7 +91,7 @@ export default { ...@@ -91,7 +91,7 @@ export default {
chartPie = vm.$echarts.init(document.getElementById(vm.id)); chartPie = vm.$echarts.init(document.getElementById(vm.id));
} }
options = { options = {
color: echartColors, // color: echartColors,
tooltip: { tooltip: {
trigger: "item", trigger: "item",
// formatter: "{a} <br/>{b} : {c} ({d}%)" // formatter: "{a} <br/>{b} : {c} ({d}%)"
......
<template> <template>
<section class="container" > <section class="container">
<CommonHeader :title="projectInfo.projectName | shortName"></CommonHeader> <CommonHeader :title="projectInfo.projectName | shortName"></CommonHeader>
<CommonAreaSelect <CommonAreaSelect v-show="!isScroll" @areaClick="areaTabClick" @orgClick="orgTabClick" :areaName="areaName" :orgName="orgName" :showArea="isShowArea" :showOrg="isShowOrg">
v-show="!isScroll" </CommonAreaSelect>
@areaClick="areaTabClick" <CommonTaps :needFixed="isScroll" :projectInfo="projectInfo" @tabClicked="tabClicked"></CommonTaps>
@orgClick="orgTabClick" <!-- 总体概况 -->
:areaName="areaName" <div v-show="isScroll" class="pd-top-60"></div>
:orgName="orgName" <article v-show="cIndex === 0">
:showArea="isShowArea" <CommonSwiperItem :isSingleOrg="isSingleOrg" :percentData="allData.percentData || {}" :certFlag="projectInfo.certFlag" @tipsClick="tipsSwiperClick"></CommonSwiperItem>
:showOrg="isShowOrg"> <div v-show="!isSingleOrg">
</CommonAreaSelect> <CommonTitle v-if="projectInfo.certFlag" title="证书分布情况"></CommonTitle>
<CommonTaps :needFixed="isScroll" :projectInfo="projectInfo" @tabClicked="tabClicked"></CommonTaps> <ChartPie v-if="projectInfo.certFlag" :certFlag="projectInfo.certFlag" id="certPieId2" :pieData="(allData && allData.certData)"></ChartPie>
<!-- 总体概况 --> <CommonTitle v-if="projectInfo.certFlag" title="证书级别按学历分布情况"></CommonTitle>
<div v-show="isScroll" class="pd-top-60"></div> <ChartColumnStack v-if="projectInfo.certFlag" :certFlag="projectInfo.certFlag" :echartsData="echartsData"></ChartColumnStack>
<article v-show="cIndex === 0">
<CommonSwiperItem
:isSingleOrg="isSingleOrg"
:percentData="allData.percentData || {}"
:certFlag="projectInfo.certFlag"
@tipsClick="tipsSwiperClick"
></CommonSwiperItem>
<div v-show="!isSingleOrg">
<CommonTitle v-if="projectInfo.certFlag" title="证书分布情况"></CommonTitle>
<ChartPie v-if="projectInfo.certFlag" :certFlag="projectInfo.certFlag" id="certPieId2" :pieData="(allData && allData.certData)"></ChartPie>
<CommonTitle v-if="projectInfo.certFlag" title="证书级别按学历分布情况"></CommonTitle>
<ChartColumnStack v-if="projectInfo.certFlag" :certFlag="projectInfo.certFlag" :echartsData="echartsData"></ChartColumnStack>
<CommonSplitLine></CommonSplitLine>
<CommonTitle title="项目情况排名"></CommonTitle>
<RankingList :certFlag="projectInfo.certFlag" :rankList="studyRankList.slice(0, 5)"></RankingList>
<ShowAll v-show="studyRankList.length > 5" @action="gotoPage('/rankedu', true)"></ShowAll>
<CommonSplitLine></CommonSplitLine>
<CommonTitleWithWhat @tipsClick="tipsRankingItemClick" title="完成天数排名"></CommonTitleWithWhat>
<RankingItemDays :rankList="costRankList.slice(0, 5)"></RankingItemDays>
<ShowAll v-show="costRankList.length > 5" @action="gotoPage('/rankdays')"></ShowAll>
</div>
<div v-show="isSingleOrg">
<CommonTitle title="培训机构情况"></CommonTitle>
<OrgDoctorList
@orgDoctorTabChange="orgDoctorTabChange"
:certUserList="orgDoctorTabData.certUserList"
:noCertUserList="orgDoctorTabData.noCertUserList"
:noJoinList="orgDoctorTabData.noJoinList"
:certFlag="projectInfo.certFlag"
:containOfficialFlag="projectInfo.containOfficialFlag"
></OrgDoctorList>
</div>
<CommonBottomInfo></CommonBottomInfo>
</article>
<!-- 人群分析 -->
<article v-show="cIndex === 1">
<CommonTitleWithBtn title="人员学历情况" @btnClick="analysisEduClick"></CommonTitleWithBtn>
<ChartPieEdu :dataList="analysisEduData"></ChartPieEdu>
<CommonSplitLine></CommonSplitLine> <CommonSplitLine></CommonSplitLine>
<CommonTitleWithBtn title="人员职称情况" @btnClick="analysisTitleClick"></CommonTitleWithBtn> <CommonTitle title="项目情况排名"></CommonTitle>
<ChartPieTitle :dataList="analysisTitleData"></ChartPieTitle> <RankingList :certFlag="projectInfo.certFlag" :rankList="studyRankList.slice(0, 5)"></RankingList>
<CommonBottomInfo></CommonBottomInfo> <ShowAll v-show="studyRankList.length > 5" @action="gotoPage('/rankedu', true)"></ShowAll>
</article>
<!-- 课程分析 -->
<article ref="courseAnalysitRef" v-show="(cIndex === 2) && (projectInfo.existCourse == 1)" style="padding-top: 8px;">
<CourseTimesStat :totalSize="courseInfo.totalSize" :maxDuration="courseInfo.pCourseTotalTime" :avgDuration="courseInfo.pCourseAvg" :processDataObj="processDataObj"></CourseTimesStat>
<CommonSplitLine></CommonSplitLine> <CommonSplitLine></CommonSplitLine>
<CommonTitle title="课程列表"></CommonTitle> <CommonTitleWithWhat @tipsClick="tipsRankingItemClick" title="完成天数排名"></CommonTitleWithWhat>
<CourseTimesList :dataList="courseInfo.pCourseList"></CourseTimesList> <RankingItemDays :rankList="costRankList.slice(0, 5)"></RankingItemDays>
<CommonBottomInfo :class="{'fixed-bottom-info': needFixedBottomInfo}"></CommonBottomInfo> <ShowAll v-show="costRankList.length > 5" @action="gotoPage('/rankdays')"></ShowAll>
</article> </div>
<div v-show="isSingleOrg">
<!-- 考试分析 --> <CommonTitle title="培训机构情况"></CommonTitle>
<article v-show="(cIndex === 3) && (projectInfo.existExam == 1)"> <OrgDoctorList @orgDoctorTabChange="orgDoctorTabChange" :certUserList="orgDoctorTabData.certUserList" :noCertUserList="orgDoctorTabData.noCertUserList" :noJoinList="orgDoctorTabData.noJoinList" :certFlag="projectInfo.certFlag" :containOfficialFlag="projectInfo.containOfficialFlag"></OrgDoctorList>
<CommonCard :cardList="examCardList"></CommonCard> </div>
<CommonBottomInfo></CommonBottomInfo>
</article>
<!-- 人群分析 -->
<article v-show="cIndex === 1">
<CommonTitleWithBtn title="人员学历情况" @btnClick="analysisEduClick"></CommonTitleWithBtn>
<ChartPieEdu :dataList="analysisEduData"></ChartPieEdu>
<CommonSplitLine></CommonSplitLine>
<CommonTitleWithBtn title="人员职称情况" @btnClick="analysisTitleClick"></CommonTitleWithBtn>
<ChartPieTitle :dataList="analysisTitleData"></ChartPieTitle>
<CommonBottomInfo></CommonBottomInfo>
</article>
<!-- 课程分析 -->
<article ref="courseAnalysitRef" v-show="(cIndex === 2) && (projectInfo.existCourse == 1)" style="padding-top: 8px;">
<CourseTimesStat :totalSize="courseInfo.totalSize" :maxDuration="courseInfo.pCourseTotalTime" :avgDuration="courseInfo.pCourseAvg" :processDataObj="processDataObj"></CourseTimesStat>
<CommonSplitLine></CommonSplitLine>
<CommonTitle title="课程列表"></CommonTitle>
<CourseTimesList :dataList="courseInfo.pCourseList"></CourseTimesList>
<CommonBottomInfo :class="{'fixed-bottom-info': needFixedBottomInfo}"></CommonBottomInfo>
</article>
<!-- 考试分析 -->
<article v-show="(cIndex === 3) && (projectInfo.existExam == 1)">
<CommonCard :cardList="examCardList"></CommonCard>
<CommonSplitLine></CommonSplitLine>
<div v-if="projectInfo.containOfficialFlag">
<CommonTitle title="完成项目考试次数情况"></CommonTitle>
<ChartColumnVerticalTimes :dataList="(generalExamData.examTimesList || []).slice(0, 5)" id="chartCourseTimesId" :colors="colors"></ChartColumnVerticalTimes>
<!-- <ShowAll v-show="generalExamData.examTimesList.length" @action="gotoPage('/examtimes')" class="mt-10"></ShowAll> -->
<ShowAll v-show="generalExamData && generalExamData.examTimesList.length > 5" @action="gotoPage('/examtimes')" class="mt-10"></ShowAll>
<CommonSplitLine></CommonSplitLine> <CommonSplitLine></CommonSplitLine>
<CommonTitle title="完成项目考试分数情况"></CommonTitle>
<div v-if="projectInfo.containOfficialFlag"> <ChartColumnVerticalScore id="chartCourseScoreId" :dataList="generalExamData.examScoreList"></ChartColumnVerticalScore>
<CommonTitle title="完成项目考试次数情况"></CommonTitle> <ShowAll v-show="generalExamData.examScoreList & generalExamData.examScoreList.length > 5" @action="gotoPage('/examscore')" class="mt-10"></ShowAll>
<ChartColumnVerticalTimes :dataList="(generalExamData.examTimesList || []).slice(0, 5)" id="chartCourseTimesId" :colors="colors"></ChartColumnVerticalTimes>
<!-- <ShowAll v-show="generalExamData.examTimesList.length" @action="gotoPage('/examtimes')" class="mt-10"></ShowAll> -->
<ShowAll v-show="generalExamData && generalExamData.examTimesList.length > 5" @action="gotoPage('/examtimes')" class="mt-10"></ShowAll>
<CommonSplitLine></CommonSplitLine>
<CommonTitle title="完成项目考试分数情况"></CommonTitle>
<ChartColumnVerticalScore id="chartCourseScoreId" :dataList="generalExamData.examScoreList"></ChartColumnVerticalScore>
<ShowAll v-show="generalExamData.examScoreList & generalExamData.examScoreList.length > 5" @action="gotoPage('/examscore')" class="mt-10"></ShowAll>
<CommonSplitLine></CommonSplitLine>
</div>
<CommonTitle title="考试列表"></CommonTitle>
<ExamList :dataList="examInfoList"></ExamList>
<CommonBottomInfo :class="{'fixed-bottom-info': !projectInfo.containOfficialFlag && examInfoList.length < 4}"></CommonBottomInfo>
</article>
<!-- 学习效果分析 -->
<article v-show="(cIndex === 4) && (projectInfo.existEffect == 1)">
<CommonCard :needBG="needBG" :cardList="effectCardList"></CommonCard>
<CommonSplitLine></CommonSplitLine> <CommonSplitLine></CommonSplitLine>
<CommonTitle title="不同学历培训前后正确率对比"></CommonTitle> </div>
<ChartColumnVerticalTC :dataList="studyEffect.educationEffectList || []" id="chartColumnVerticalTC"></ChartColumnVerticalTC> <CommonTitle title="考试列表"></CommonTitle>
<CommonSplitLine style="margin-top: 10px;"></CommonSplitLine> <ExamList :dataList="examInfoList"></ExamList>
<CommonTitle title="培训前后知识点掌握情况"></CommonTitle> <CommonBottomInfo :class="{'fixed-bottom-info': !projectInfo.containOfficialFlag && examInfoList.length < 4}"></CommonBottomInfo>
<ChartColumnHorizontalTC :dataList="studyEffect.knowledgeEffectList || []" id="ChartColumnVerticalTC2"></ChartColumnHorizontalTC> </article>
<ShowAll v-show="studyEffect.knowledgeEffectList && studyEffect.knowledgeEffectList.length > 5" @action="gotoPage('/klgpoint')" class="mt-10"></ShowAll>
<CommonBottomInfo></CommonBottomInfo> <!-- 学习效果分析 -->
</article> <article v-show="(cIndex === 4) && (projectInfo.existEffect == 1)">
<CommonCard :needBG="needBG" :cardList="effectCardList"></CommonCard>
<PicaArea <CommonSplitLine></CommonSplitLine>
v-show="isShowArea" <CommonTitle title="不同学历培训前后正确率对比"></CommonTitle>
@confirm="areaConfirm" <ChartColumnVerticalTC :dataList="studyEffect.educationEffectList || []" id="chartColumnVerticalTC"></ChartColumnVerticalTC>
@cancel="areaCancel" <CommonSplitLine style="margin-top: 10px;"></CommonSplitLine>
:projectId="projectId" <CommonTitle title="培训前后知识点掌握情况"></CommonTitle>
:token="token" <ChartColumnHorizontalTC :dataList="studyEffect.knowledgeEffectList || []" id="ChartColumnVerticalTC2"></ChartColumnHorizontalTC>
></PicaArea> <ShowAll v-show="studyEffect.knowledgeEffectList && studyEffect.knowledgeEffectList.length > 5" @action="gotoPage('/klgpoint')" class="mt-10"></ShowAll>
<PicaOrg v-show="isShowOrg" @confirm="orgConfirm" @cancel="orgCancel"></PicaOrg> <CommonBottomInfo></CommonBottomInfo>
<CommonLoading v-show="false"></CommonLoading> </article>
<PopTips :tipsContent="tipsContent" @clickTips="clickTips" v-show="isShowTips"></PopTips>
</section> <PicaArea v-show="isShowArea" @confirm="areaConfirm" @cancel="areaCancel" :projectId="projectId" :token="token"></PicaArea>
<PicaOrg v-show="isShowOrg" @confirm="orgConfirm" @cancel="orgCancel"></PicaOrg>
<CommonLoading v-show="false"></CommonLoading>
<PopTips :tipsContent="tipsContent" @clickTips="clickTips" v-show="isShowTips"></PopTips>
</section>
</template> </template>
<script> <script>
const cookies = require("cookie-universal")(); const cookies = require("cookie-universal")();
import { goPageByNative } from "@/utils"; import {
import { mapGetters, mapActions } from "vuex"; goPageByNative
} from "@/utils";
import {
mapGetters,
mapActions
} from "vuex";
import { import {
getProvinceList, getProvinceList,
getUserAnalysis, getUserAnalysis,
...@@ -160,7 +140,9 @@ import OrgDoctorList from "@/components/bussiness/org-doctor-list"; ...@@ -160,7 +140,9 @@ import OrgDoctorList from "@/components/bussiness/org-doctor-list";
import ExamList from "@/components/bussiness/exam-list"; import ExamList from "@/components/bussiness/exam-list";
import PopTips from "@/components/bussiness/pop-tips"; import PopTips from "@/components/bussiness/pop-tips";
import CommonCard from "@/components/common/common-card"; import CommonCard from "@/components/common/common-card";
import { getGeneralData } from "@/service/index"; import {
getGeneralData
} from "@/service/index";
let timeOutId = null; let timeOutId = null;
export default { export default {
components: { components: {
...@@ -209,8 +191,7 @@ export default { ...@@ -209,8 +191,7 @@ export default {
cIndex: 0, cIndex: 0,
colors: ["#39AF9A", "#FF9A4B", "#abb7bb", "#76d2d2"], colors: ["#39AF9A", "#FF9A4B", "#abb7bb", "#76d2d2"],
needBG: true, needBG: true,
effectCardList: [ effectCardList: [{
{
count: 65, count: 65,
unitName: "%", unitName: "%",
description: "培训前正确率" description: "培训前正确率"
...@@ -225,8 +206,7 @@ export default { ...@@ -225,8 +206,7 @@ export default {
studyRankList: [], studyRankList: [],
costRankList: [], costRankList: [],
projectId: "", projectId: "",
token: token: "2DEF4802111943C49A98A1429095A876" ||
"2DEF4802111943C49A98A1429095A876" ||
"79A005DB585C45C389ED1DD0C76E3633" || "79A005DB585C45C389ED1DD0C76E3633" ||
"A220943B006347799F277CC524EBB662", "A220943B006347799F277CC524EBB662",
isOrgStat: false, isOrgStat: false,
...@@ -253,8 +233,14 @@ export default { ...@@ -253,8 +233,14 @@ export default {
}, },
echartsData: null, echartsData: null,
analysisData: { analysisData: {
eduList: { join: [], finish: []}, eduList: {
titleList: { join: [], finish: []}, join: [],
finish: []
},
titleList: {
join: [],
finish: []
},
}, },
analysisEduData: [], analysisEduData: [],
analysisTitleData: [], analysisTitleData: [],
...@@ -338,7 +324,7 @@ export default { ...@@ -338,7 +324,7 @@ export default {
this.setProjectId(this.projectId); this.setProjectId(this.projectId);
} else { } else {
this.getUserInfo(); this.getUserInfo();
} }
} }
// this.$store.dispatch('searchHospital', { name: '测试' }); // this.$store.dispatch('searchHospital', { name: '测试' });
}, },
...@@ -366,16 +352,16 @@ export default { ...@@ -366,16 +352,16 @@ export default {
); );
}, },
methods: { methods: {
handleScroll() { handleScroll() {
var scrollTop = var scrollTop =
window.pageYOffset || window.pageYOffset ||
document.documentElement.scrollTop || document.documentElement.scrollTop ||
document.body.scrollTop; document.body.scrollTop;
if (scrollTop > 5) { if (scrollTop > 5) {
this.isScroll = true; this.isScroll = true;
} else { } else {
this.isScroll = false; this.isScroll = false;
} }
}, },
// 获取可区域高度 // 获取可区域高度
...@@ -398,11 +384,13 @@ export default { ...@@ -398,11 +384,13 @@ export default {
// 查询用户信息和权限 // 查询用户信息和权限
getProjectInfo(params) { getProjectInfo(params) {
getProjectInfo({ projectId: this.projectId }).then(res => { getProjectInfo({
projectId: this.projectId
}).then(res => {
if (res.code === "000000") { if (res.code === "000000") {
this.projectInfo = res.data; this.projectInfo = res.data;
getProvinceList(params).then(res => { getProvinceList(params).then(res => {
if (res.code === "000000") { if (res.code === "000000") {
this.queryGDParams.regionId = (res.data && res.data.list[0] && res.data.list[0].id) || ''; this.queryGDParams.regionId = (res.data && res.data.list[0] && res.data.list[0].id) || '';
this.CNTParams.regionId = (res.data && res.data.list[0] && res.data.list[0].id) || ''; this.CNTParams.regionId = (res.data && res.data.list[0] && res.data.list[0].id) || '';
this.setProvinceList((res.data && res.data.list) || []); this.setProvinceList((res.data && res.data.list) || []);
...@@ -478,7 +466,7 @@ export default { ...@@ -478,7 +466,7 @@ export default {
if (res.code === "000000") { if (res.code === "000000") {
this.analysisData = res.data; this.analysisData = res.data;
this.analysisEduData = res.data.eduList.join; this.analysisEduData = res.data.eduList.join;
this.analysisTitleData = res.data.titleList.join; this.analysisTitleData = res.data.titleList.join;
} }
}); });
}, },
...@@ -491,8 +479,7 @@ export default { ...@@ -491,8 +479,7 @@ export default {
this.generalExamData = res.data; this.generalExamData = res.data;
this.setExamTimesList(res.data.examTimesList) this.setExamTimesList(res.data.examTimesList)
this.setExamScoreList(res.data.examScoreList) this.setExamScoreList(res.data.examScoreList)
this.examCardList = [ this.examCardList = [{
{
count: res.data.afterExamCount, count: res.data.afterExamCount,
unitName: "门", unitName: "门",
description: "正式考试数" description: "正式考试数"
...@@ -532,7 +519,7 @@ export default { ...@@ -532,7 +519,7 @@ export default {
let viewportHeight = this.getViewportHeight(); let viewportHeight = this.getViewportHeight();
let courseLength = res.data.pCourseList.length; let courseLength = res.data.pCourseList.length;
// 上面的高度 468 每一条数据的高度 60 // 上面的高度 468 每一条数据的高度 60
if(viewportHeight > (468 + (courseLength - 1) * 60)) { if (viewportHeight > (468 + (courseLength - 1) * 60)) {
this.needFixedBottomInfo = true; this.needFixedBottomInfo = true;
} }
} }
...@@ -569,7 +556,7 @@ export default { ...@@ -569,7 +556,7 @@ export default {
this.getHospitalsCNT(this.CNTParams); this.getHospitalsCNT(this.CNTParams);
this.isShowArea = false; this.isShowArea = false;
this.setAreaDegree(selData.areaDegree); this.setAreaDegree(selData.areaDegree);
if(selData.townName || selData.countyName || selData.cityName || selData.provinceName) { if (selData.townName || selData.countyName || selData.cityName || selData.provinceName) {
this.areaName = this.shortName(selData.townName || selData.countyName || selData.cityName || selData.provinceName, 6) this.areaName = this.shortName(selData.townName || selData.countyName || selData.cityName || selData.provinceName, 6)
} }
}, },
...@@ -595,7 +582,7 @@ export default { ...@@ -595,7 +582,7 @@ export default {
this.isShowOrg = false; this.isShowOrg = false;
this.orgName = this.shortName(hospitalNames[0] || '全部机构', 6); this.orgName = this.shortName(hospitalNames[0] || '全部机构', 6);
this.queryGDParams.hospitalIdList = hospitalIds; this.queryGDParams.hospitalIdList = hospitalIds;
if(hospitalIds.length == 0) { if (hospitalIds.length == 0) {
this.getHospitalsCNT(this.CNTParams); this.getHospitalsCNT(this.CNTParams);
return; return;
} }
...@@ -620,7 +607,7 @@ export default { ...@@ -620,7 +607,7 @@ export default {
// 弹出选择区域控件 // 弹出选择区域控件
areaTabClick() { areaTabClick() {
if(this.isShowOrg) { if (this.isShowOrg) {
this.isShowOrg = false; this.isShowOrg = false;
} }
this.isShowArea = !this.isShowArea; this.isShowArea = !this.isShowArea;
...@@ -628,22 +615,22 @@ export default { ...@@ -628,22 +615,22 @@ export default {
// 弹出选择机构控件 // 弹出选择机构控件
orgTabClick() { orgTabClick() {
if(this.areaDegree !== 3 && this.areaDegree !== 4) { if (this.areaDegree !== 3 && this.areaDegree !== 4) {
this.$toast('选择区/县后才可选择机构'); this.$toast('选择区/县后才可选择机构');
return; return;
} }
if(this.orgList.length === 0) { if (this.orgList.length === 0) {
this.$toast('此区域下无机构'); this.$toast('此区域下无机构');
return; return;
} }
this.isShowOrg = !this.isShowOrg; this.isShowOrg = !this.isShowOrg;
}, },
// 通用跳转页面 // 通用跳转页面
gotoPage(subUrl, hasCert) { gotoPage(subUrl, hasCert) {
let subUrlAndParams = `${subUrl}?token=${this.token}&projectId=${this.queryGDParams.projectId}&regionId=${this.queryGDParams.regionId}&hospitalIdList=${this.queryGDParams.hospitalIdList.join(',')}` let subUrlAndParams = `${subUrl}?token=${this.token}&projectId=${this.queryGDParams.projectId}&regionId=${this.queryGDParams.regionId}&hospitalIdList=${this.queryGDParams.hospitalIdList.join(',')}`
if(hasCert) { if (hasCert) {
subUrlAndParams += `&certFlag=${this.projectInfo.certFlag}` subUrlAndParams += `&certFlag=${this.projectInfo.certFlag}`
} }
if (this.$rocNative.isWeb) { if (this.$rocNative.isWeb) {
...@@ -657,7 +644,7 @@ export default { ...@@ -657,7 +644,7 @@ export default {
// 人员学历情况切换按钮 // 人员学历情况切换按钮
analysisEduClick(index) { analysisEduClick(index) {
this.analysisEduData = this.analysisData.eduList[ this.analysisEduData = this.analysisData.eduList[
index ? "finish" : "join" index ? "finish" : "join"
] || []; ] || [];
this.$forceUpdate(); this.$forceUpdate();
}, },
...@@ -674,7 +661,7 @@ export default { ...@@ -674,7 +661,7 @@ export default {
getUserInfo() { getUserInfo() {
this.$rocNative.getUserInfo && this.$rocNative.getUserInfo &&
this.$rocNative.getUserInfo().then(params => { this.$rocNative.getUserInfo().then(params => {
this.token = params.userToken; // 测试用时注释掉 this.token = params.userToken; // 测试用时注释掉
// cookies.remove("token"); // cookies.remove("token");
cookies.set("lreporttoken", this.token); cookies.set("lreporttoken", this.token);
this.setUserToken(this.token); this.setUserToken(this.token);
...@@ -727,24 +714,30 @@ export default { ...@@ -727,24 +714,30 @@ export default {
.container { .container {
margin: 0 auto; margin: 0 auto;
font-size: 17px; font-size: 17px;
h1 { h1 {
font-size: 36px; font-size: 36px;
text-align: center; text-align: center;
} }
.m1 { .m1 {
width: 100%; width: 100%;
> div {
>div {
width: 100%; width: 100%;
} }
} }
.mt-10 { .mt-10 {
margin-top: 0; margin-top: 0;
} }
.fixed-bottom-info { .fixed-bottom-info {
position: fixed; position: fixed;
bottom: 0; bottom: 0;
left: 0; left: 0;
} }
.pd-top-60 { .pd-top-60 {
padding-top: 40px; padding-top: 40px;
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册