提交 c1eb47fa 编写于 作者: 张磊's avatar 张磊

page-modal update

上级 ae447a48
...@@ -101,7 +101,8 @@ export default { ...@@ -101,7 +101,8 @@ export default {
<style scoped lang="scss"> <style scoped lang="scss">
.coop-container { .coop-container {
position: relative; position: relative;
margin: 0px 15px; top: -14px;
//margin: 0px 15px;
&-status { &-status {
position: absolute; position: absolute;
top: 6px; top: 6px;
......
<!-- 通用Navbar --> <!-- 通用Navbar -->
<template> <template>
<section <section
:class="isFixNavbar ? 'nav-top-new fixed' : 'nav-top-new'" class="nav-top-new"
:style="'height:' + navHeight" :style="'height:' + navHeight"
> >
<div <div class="nav-part-new">
class="nav-part-new"
:style="
'background:' +
bgColor +
';' +
'padding-top:' +
paddingTop +
';border-bottom:' +
borderStyle
"
>
<div class="nav-title-new"> <div class="nav-title-new">
<span <span
class="nav-back" class="nav-back"
@click="goBack" @click="goBack"
> >
<img <img
v-show="isBlack"
src="../../assets/images/left-arrow-black.png"
alt=""
>
<img
v-show="!isBlack"
src="../../assets/images/left-arrow-black.png" src="../../assets/images/left-arrow-black.png"
alt="" alt=""
> >
</span> </span>
<span
v-show="bgColor !== 'none'"
class="nav-title-new-title"
>{{
title
}}</span>
<span
v-show="isShowShare"
class="nav-share"
@click="goShare"
>
<img
src="https://pica-pro.oss-cn-shanghai.aliyuncs.com/eagle_plan/courses/Group17_hover%403x.png"
>
</span>
<span <span
v-show="isShowKf && !isWeb" v-show="isShowKf && !isWeb"
class="nav-share" class="nav-share"
...@@ -66,43 +34,14 @@ import { goKfFn } from '@/utils/kf'; ...@@ -66,43 +34,14 @@ import { goKfFn } from '@/utils/kf';
export default { export default {
name: 'CommonNavbarNew', name: 'CommonNavbarNew',
props: { props: {
bgColor: {
type: String,
default: '',
},
title: { title: {
type: String, type: String,
default: '暂无数据', default: '暂无数据',
}, },
// 是否fix定位
isFixNavbar: {
type: Boolean,
default: true,
},
burialPoint: {
default: '',
type: String,
},
backMethod: {
type: String,
default: 'native', // inner native
},
isShowShare: {
type: Boolean,
default: false,
},
isShowKf: { isShowKf: {
type: Boolean, type: Boolean,
default: false, default: false,
}, },
borderStyle: {
type: String,
default: '0px solid #e7e7e7',
},
isBlack: {
type: Boolean,
default: true,
},
}, },
data() { data() {
return { return {
...@@ -117,11 +56,7 @@ export default { ...@@ -117,11 +56,7 @@ export default {
}, },
computed: { computed: {
navHeight() { navHeight() {
if (this.isFixNavbar) {
return '54px';
} else {
return (this.navbarHeight + this.contentHeight) / this.fontSize + 'rem'; return (this.navbarHeight + this.contentHeight) / this.fontSize + 'rem';
}
}, },
paddingTop() { paddingTop() {
return this.navbarHeight / this.fontSize + 'rem'; return this.navbarHeight / this.fontSize + 'rem';
...@@ -145,18 +80,6 @@ export default { ...@@ -145,18 +80,6 @@ export default {
this.$rocNative.goBack(); this.$rocNative.goBack();
} }
}, },
// 分享
goShare() {
this.$rocNative.shareWechat({
type: 6,
shareId: 0,
shareUrl: 'shareUrl',
title1: 'this.shareTitle1',
title2: 'this.shareTitle2',
shareImageUrl:
'https://file.yunqueyi.com/logo.png?version=' + new Date().getTime(),
});
},
goKf() { goKf() {
goKfFn({ goKfFn({
code: '0002', code: '0002',
......
<!-- 通用Navbar --> <!-- 通用Navbar -->
<template> <template>
<section <section class="nav-top fixed">
:class="isFixNavbar ? 'nav-top fixed' : 'nav-top'" <div class="nav-part">
:style="'height:' + navHeight"
>
<div
class="nav-part"
:style="
'background:' +
bgColor +
';' +
'padding-top:' +
paddingTop +
';border-bottom:' +
borderStyle
"
>
<div class="nav-title"> <div class="nav-title">
<span <span
class="nav-back" class="nav-back"
@click="goBack" @click="goBack"
> >
<img <img
v-show="isBlack"
src="../../assets/images/left-arrow-black.png"
alt=""
>
<img
v-show="!isBlack"
src="../../assets/images/left-arrow-black.png" src="../../assets/images/left-arrow-black.png"
alt="" alt=""
> >
</span> </span>
<span <span class="nav-title-title">{{ title }}</span>
v-show="bgColor !== 'none'"
class="nav-title-title"
>{{
title
}}</span>
<span
v-show="isShowShare"
class="nav-share"
@click="goShare"
>
<img
src="https://pica-pro.oss-cn-shanghai.aliyuncs.com/eagle_plan/courses/Group17_hover%403x.png"
>
</span>
<span <span
v-show="isShowKf && !isWeb" v-show="isShowKf && !isWeb"
class="nav-share" class="nav-share"
...@@ -66,43 +32,14 @@ import { goKfFn } from '@/utils/kf'; ...@@ -66,43 +32,14 @@ import { goKfFn } from '@/utils/kf';
export default { export default {
name: 'CommonNavbar', name: 'CommonNavbar',
props: { props: {
bgColor: {
type: String,
default: '',
},
title: { title: {
type: String, type: String,
default: '暂无数据', default: '暂无数据',
}, },
// 是否fix定位
isFixNavbar: {
type: Boolean,
default: true,
},
burialPoint: {
default: '',
type: String,
},
backMethod: {
type: String,
default: 'native', // inner native
},
isShowShare: {
type: Boolean,
default: false,
},
isShowKf: { isShowKf: {
type: Boolean, type: Boolean,
default: false, default: false,
}, },
borderStyle: {
type: String,
default: '0px solid #e7e7e7',
},
isBlack: {
type: Boolean,
default: true,
},
}, },
data() { data() {
return { return {
...@@ -115,18 +52,7 @@ export default { ...@@ -115,18 +52,7 @@ export default {
isWeb: false, isWeb: false,
}; };
}, },
computed: { computed: {},
navHeight() {
if (this.isFixNavbar) {
return '54px';
} else {
return (this.navbarHeight + this.contentHeight) / this.fontSize + 'rem';
}
},
paddingTop() {
return this.navbarHeight / this.fontSize + 'rem';
},
},
created() { created() {
if (this.$rocNative.isWeb) { if (this.$rocNative.isWeb) {
this.isWeb = this.$rocNative.isWeb; this.isWeb = this.$rocNative.isWeb;
...@@ -145,18 +71,6 @@ export default { ...@@ -145,18 +71,6 @@ export default {
this.$rocNative.goBack(); this.$rocNative.goBack();
} }
}, },
// 分享
goShare() {
this.rocNative.shareWechat({
type: 6,
shareId: 0,
shareUrl: 'shareUrl',
title1: 'this.shareTitle1',
title2: 'this.shareTitle2',
shareImageUrl:
'https://file.yunqueyi.com/logo.png?version=' + new Date().getTime(),
});
},
goKf() { goKf() {
goKfFn({ goKfFn({
code: '0002', code: '0002',
......
...@@ -78,7 +78,7 @@ export default { ...@@ -78,7 +78,7 @@ export default {
white-space: nowrap; white-space: nowrap;
&.fixed { &.fixed {
position: fixed; position: fixed;
top: 70px; top: 56px;
width: 100%; width: 100%;
z-index: 1000000000; z-index: 1000000000;
background: #fff; background: #fff;
......
import Vue from 'vue'; import Vue from 'vue';
import rocNative from '@/utils/jsbridge'; import rocNative from '@/utils/jsbridge';
// import echarts from 'echarts';
import { Toast } from 'vant'; import { Toast } from 'vant';
const echarts = window.echarts; const echarts = window.echarts;
......
import { router } from '@pica-cli/vue-cli-plugin-pica-cli-plugin/auto'; import { router } from '@pica-cli/vue-cli-plugin-pica-cli-plugin/auto';
// try { import { headerConfigByMeta } from 'mn-template/util/routerUtil';
// console.log('--router', router.prototype);
// const originalPush = router.prototype.push;
// router.prototype.push = function push(location) {
// return originalPush.call(this, location).catch((err) => err);
// };
// } catch (error) {
// console.log(error);
// }
const routerConfig = [ const routerConfig = [
{ {
...@@ -19,6 +11,12 @@ const routerConfig = [ ...@@ -19,6 +11,12 @@ const routerConfig = [
name: 'index', name: 'index',
meta: { meta: {
title: '学情报告', title: '学情报告',
content: [
{
name: '客服',
outShow: true,
},
],
}, },
component: () => import('@/views/index'), component: () => import('@/views/index'),
}, },
...@@ -51,6 +49,12 @@ const routerConfig = [ ...@@ -51,6 +49,12 @@ const routerConfig = [
name: 'prolist', name: 'prolist',
meta: { meta: {
title: '专项合作', title: '专项合作',
content: [
{
name: '客服',
outShow: true,
},
],
}, },
component: () => import('@/views/prolist'), component: () => import('@/views/prolist'),
}, },
...@@ -71,4 +75,10 @@ const routerConfig = [ ...@@ -71,4 +75,10 @@ const routerConfig = [
component: () => import('@/views/rankedu'), component: () => import('@/views/rankedu'),
}, },
]; ];
router.beforeEach(async (to, from, next) => {
headerConfigByMeta(to);
next();
});
router.addRoutes(routerConfig); router.addRoutes(routerConfig);
...@@ -202,3 +202,12 @@ export const getProjectList = async (params) => { ...@@ -202,3 +202,12 @@ export const getProjectList = async (params) => {
url: 'portal/report/getReportListForApp', url: 'portal/report/getReportListForApp',
}); });
}; };
export const getImUrl = (data) => {
return request({
withCredentials: true,
url: '/im/call/im/link',
method: 'post',
data: data,
});
};
...@@ -78,7 +78,6 @@ export function parseTime(time, cFormat) { ...@@ -78,7 +78,6 @@ export function parseTime(time, cFormat) {
// 跳转到新的学情报告页面 // 跳转到新的学情报告页面
export function goPageByNative(vm, pageSubUrl) { export function goPageByNative(vm, pageSubUrl) {
const url = getShareUrl() + pageSubUrl; const url = getShareUrl() + pageSubUrl;
console.log('---url', url);
const paramList = [ const paramList = [
{ {
key: 'pageUrl', key: 'pageUrl',
......
...@@ -16,7 +16,12 @@ export const JsBridgeOptions = { ...@@ -16,7 +16,12 @@ 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', 'getLocalData'], // value is string initMethodsWithCallBack: [
'getToken',
'getUserInfo',
'getLocalData',
'getAppVersionCode',
], // value is string
initMethodsWithoutCallBack: [ initMethodsWithoutCallBack: [
'gotoLogin', 'gotoLogin',
'appInit', 'appInit',
...@@ -51,7 +56,6 @@ export default class PicaJsBridge { ...@@ -51,7 +56,6 @@ export default class PicaJsBridge {
this.isIOS = this._isIos(); this.isIOS = this._isIos();
this.isAndroid = this._isAndroid(); this.isAndroid = this._isAndroid();
this.isWeb = this._isWeb(); this.isWeb = this._isWeb();
if ( if (
_toString.call(initMethodsWithCallBack) === ARRAY_CLASS && _toString.call(initMethodsWithCallBack) === ARRAY_CLASS &&
initMethodsWithCallBack.length !== 0 initMethodsWithCallBack.length !== 0
...@@ -90,7 +94,6 @@ export default class PicaJsBridge { ...@@ -90,7 +94,6 @@ export default class PicaJsBridge {
// register method width callback in window // register method width callback in window
_registerMethod(method) { _registerMethod(method) {
const _this = this; const _this = this;
_this[method] = (param) => { _this[method] = (param) => {
return new Promise((response, reject) => { return new Promise((response, reject) => {
_this._callNative(method, param, function (result) { _this._callNative(method, param, function (result) {
...@@ -135,7 +138,6 @@ export default class PicaJsBridge { ...@@ -135,7 +138,6 @@ export default class PicaJsBridge {
window[this._NATIVE_ANDROID_NAME].postMessage(pm); window[this._NATIVE_ANDROID_NAME].postMessage(pm);
return true; return true;
} }
if (this.isIOS) { if (this.isIOS) {
window.webkit.messageHandlers[this._NATIVE_IOS_NAME].postMessage(pm); window.webkit.messageHandlers[this._NATIVE_IOS_NAME].postMessage(pm);
return true; return true;
...@@ -166,8 +168,6 @@ export default class PicaJsBridge { ...@@ -166,8 +168,6 @@ export default class PicaJsBridge {
throw Error( throw Error(
'widthCallback flag not defined, registerMethods should take second param value(true/false) for is not has callback.' 'widthCallback flag not defined, registerMethods should take second param value(true/false) for is not has callback.'
); );
if (this.isWeb) return; // Add By Anndy Yang
methods.forEach((m) => { methods.forEach((m) => {
widthCallback === true widthCallback === true
? this._registerMethod(m) ? this._registerMethod(m)
......
// 跳转客服 // 跳转客服
import request from 'mn-template/plugins/http'; import request from 'mn-template/plugins/http';
import Vue from 'vue';
/* /*
*code ("0003-药械专线 0004-问诊专线 0007-会员专线 0002-教培专线 0005-招募专线 0001-基础业务") *code ("0003-药械专线 0004-问诊专线 0007-会员专线 0002-教培专线 0005-招募专线 0001-基础业务")
*type 1-详情,2-ID、名称 *type 1-详情,2-ID、名称
...@@ -24,7 +25,8 @@ function nativeGo(url) { ...@@ -24,7 +25,8 @@ function nativeGo(url) {
seqNo: 1, seqNo: 1,
}, },
]; ];
this.rocNative.dispatchEventByModuleCode({
Vue.prototype.$rocNative.dispatchEventByModuleCode({
modeCode: 'M300', modeCode: 'M300',
jsonString: paramList, jsonString: paramList,
}); });
......
<template> <template>
<section class="exam-score-wrapper"> <section class="exam-score-wrapper">
<CommonHeader title="完成项目考试分数情况" /> <PageModel :header-info="headerInfo" />
<CommonTitleWithDropdown <CommonTitleWithDropdown
:data-list="dropdownList" :data-list="dropdownList"
:title="title" :title="title"
...@@ -21,8 +21,8 @@ ...@@ -21,8 +21,8 @@
<script> <script>
const cookies = require('cookie-universal')(); const cookies = require('cookie-universal')();
import { getGeneralExam } from '@/service'; import { getGeneralExam } from '@/service';
import PageModel from '@pica-kit/page-model';
import CommonHeader from '@/components/common/common-header'; // import CommonHeader from '@/components/common/common-header';
import CommonTitleWithDropdown from '@/components/common/common-title-with-dropdown'; import CommonTitleWithDropdown from '@/components/common/common-title-with-dropdown';
import CommonNoMore from '@/components/common/common-no-more'; import CommonNoMore from '@/components/common/common-no-more';
import ExamScoreList from '@/components/bussiness/exam-score-list'; import ExamScoreList from '@/components/bussiness/exam-score-list';
...@@ -31,14 +31,18 @@ import { mapGetters } from 'vuex'; ...@@ -31,14 +31,18 @@ import { mapGetters } from 'vuex';
export default { export default {
components: { components: {
CommonHeader, // CommonHeader,
CommonTitleWithDropdown, CommonTitleWithDropdown,
CommonNoMore, CommonNoMore,
ExamScoreList, ExamScoreList,
Loading, Loading,
PageModel,
}, },
data() { data() {
return { return {
headerInfo: {
title: '完成项目考试分数情况',
},
isShowLoading: true, isShowLoading: true,
title: '共0条数据', title: '共0条数据',
needRightBtn: true, needRightBtn: true,
......
<template> <template>
<section class="exam-times-wrapper"> <section class="exam-times-wrapper">
<CommonHeader title="完成项目考试次数情况" /> <!-- <CommonHeader title="完成项目考试次数情况" />-->
<PageModel :header-info="headerInfo" />
<CommonTitleMini <CommonTitleMini
:title="title" :title="title"
:need-right-btn="needRightBtn" :need-right-btn="needRightBtn"
...@@ -19,8 +20,8 @@ ...@@ -19,8 +20,8 @@
<script> <script>
const cookies = require('cookie-universal')(); const cookies = require('cookie-universal')();
import { getGeneralExam } from '@/service'; import { getGeneralExam } from '@/service';
import PageModel from '@pica-kit/page-model';
import CommonHeader from '@/components/common/common-header'; // import CommonHeader from '@/components/common/common-header';
import CommonTitleMini from '@/components/common/common-title-mini'; import CommonTitleMini from '@/components/common/common-title-mini';
import CommonNoMore from '@/components/common/common-no-more'; import CommonNoMore from '@/components/common/common-no-more';
import ExamTimesList from '@/components/bussiness/exam-times-list'; import ExamTimesList from '@/components/bussiness/exam-times-list';
...@@ -29,14 +30,18 @@ import { mapGetters } from 'vuex'; ...@@ -29,14 +30,18 @@ import { mapGetters } from 'vuex';
export default { export default {
components: { components: {
CommonHeader, // CommonHeader,
CommonTitleMini, CommonTitleMini,
CommonNoMore, CommonNoMore,
ExamTimesList, ExamTimesList,
Loading, Loading,
PageModel,
}, },
data() { data() {
return { return {
headerInfo: {
title: '完成项目考试次数情况',
},
isShowLoading: true, isShowLoading: true,
title: '共0条数据', title: '共0条数据',
needRightBtn: false, needRightBtn: false,
......
<template> <template>
<section class="container"> <section class="container">
<CommonHeader <PageModel
:title="projectInfo.projectName | shortName" :header-info="headerInfo"
:is-show-kf="isShowKf" @onService="goKf"
/> />
<CommonAreaSelect <CommonAreaSelect
v-show="!isScroll" v-show="!isScroll"
...@@ -209,6 +209,7 @@ ...@@ -209,6 +209,7 @@
<script> <script>
const cookies = require('cookie-universal')(); const cookies = require('cookie-universal')();
import { goPageByNative } from '@/utils'; import { goPageByNative } from '@/utils';
import { goKfFn } from '@/utils/kf';
import { mapGetters, mapActions } from 'vuex'; import { mapGetters, mapActions } from 'vuex';
import { import {
getAreaOrOrgList, getAreaOrOrgList,
...@@ -220,12 +221,10 @@ import { ...@@ -220,12 +221,10 @@ import {
getGeneralExamList, getGeneralExamList,
getStudyEffect, getStudyEffect,
} from '@/service'; } from '@/service';
import PageModel from '@pica-kit/page-model';
import CommonHeader from '@/components/common/common-header';
import CommonTitle from '@/components/common/common-title'; import CommonTitle from '@/components/common/common-title';
import CommonTitleWithWhat from '@/components/common/common-title-with-what'; import CommonTitleWithWhat from '@/components/common/common-title-with-what';
import CommonTitleWithBtn from '@/components/common/common-title-with-btn'; import CommonTitleWithBtn from '@/components/common/common-title-with-btn';
// import CommonLoading from '@/components/common/common-loading';
import CommonTaps from '@/components/common/common-tabs'; import CommonTaps from '@/components/common/common-tabs';
import CommonSwiperItem from '@/components/common/common-swiper-item'; import CommonSwiperItem from '@/components/common/common-swiper-item';
import CommonSplitLine from '@/components/common/common-split-line'; import CommonSplitLine from '@/components/common/common-split-line';
...@@ -254,9 +253,8 @@ import Loading from '@/components/common/common-loading'; ...@@ -254,9 +253,8 @@ import Loading from '@/components/common/common-loading';
import { getGeneralData } from '@/service/index'; import { getGeneralData } from '@/service/index';
export default { export default {
components: { components: {
CommonHeader,
CommonTitle, CommonTitle,
// CommonLoading, PageModel,
CommonTaps, CommonTaps,
CommonSwiperItem, CommonSwiperItem,
CommonSplitLine, CommonSplitLine,
...@@ -296,6 +294,10 @@ export default { ...@@ -296,6 +294,10 @@ export default {
}, },
data() { data() {
return { return {
headerInfo: {
title: '项目名称',
backMethod: 'native',
},
isShowKf: true, isShowKf: true,
isShowLoading: false, isShowLoading: false,
isScroll: false, isScroll: false,
...@@ -323,7 +325,7 @@ export default { ...@@ -323,7 +325,7 @@ export default {
studyRankList: [], studyRankList: [],
costRankList: [], costRankList: [],
projectId: '', projectId: '',
token: '8C124410C0904B69B06D0E65039984B9', token: '5A8C8B5D697941C8A0303DBFD6247E55',
isOrgStat: false, isOrgStat: false,
// 区域选择通用接口参数 // 区域选择通用接口参数
queryParams: { queryParams: {
...@@ -463,10 +465,6 @@ export default { ...@@ -463,10 +465,6 @@ export default {
window.innerHeight || window.innerHeight ||
0 0
); );
// return {
// 'width': docE && docE.clientWidth || body && body.offsetWidth || window.innerWidth || 0,
// 'height': docE && docE.clientHeight || body && body.offsetHeight || window.innerHeight || 0
// };
}, },
// 切换机构人员列表中的tabs // 切换机构人员列表中的tabs
...@@ -480,6 +478,8 @@ export default { ...@@ -480,6 +478,8 @@ export default {
getAreaOrOrgList(params).then((res) => { getAreaOrOrgList(params).then((res) => {
if (res.code === '000000') { if (res.code === '000000') {
this.projectInfo = res.data.doctorInfoRep; this.projectInfo = res.data.doctorInfoRep;
const t = this.shortName(this.projectInfo.projectName) || '项目名称';
this.headerInfo = Object.assign({}, { ...this.headerInfo, title: t });
this.queryGDParams.originalFlag = res.data.doctorInfoRep.originalFlag; this.queryGDParams.originalFlag = res.data.doctorInfoRep.originalFlag;
if (!this.queryGDParams.regionId) { if (!this.queryGDParams.regionId) {
this.setOriginalFlag(res.data.doctorInfoRep.originalFlag); this.setOriginalFlag(res.data.doctorInfoRep.originalFlag);
...@@ -816,6 +816,12 @@ export default { ...@@ -816,6 +816,12 @@ export default {
} }
}, },
goKf() {
goKfFn({
code: '0002',
});
},
// 映射Store中的Actions // 映射Store中的Actions
...mapActions({ ...mapActions({
setOrgList: 'setOrgList', setOrgList: 'setOrgList',
......
<template> <template>
<section class="klg-point-wrapper"> <section class="klg-point-wrapper">
<CommonHeader title="培训前后知识点掌握情况" /> <!-- <CommonHeader title="培训前后知识点掌握情况" />-->
<PageModel :header-info="headerInfo" />
<TitleKLGPoint :title="title" /> <TitleKLGPoint :title="title" />
<TipsInfo :content="tipsContent" /> <TipsInfo :content="tipsContent" />
<ChartColumnHorizontalTCLong <ChartColumnHorizontalTCLong
...@@ -13,8 +14,8 @@ ...@@ -13,8 +14,8 @@
<script> <script>
const cookies = require('cookie-universal')(); const cookies = require('cookie-universal')();
import { getStudyEffect } from '@/service'; import { getStudyEffect } from '@/service';
import PageModel from '@pica-kit/page-model';
import CommonHeader from '@/components/common/common-header'; // import CommonHeader from '@/components/common/common-header';
import TitleKLGPoint from '@/components/bussiness/title-klg-point'; import TitleKLGPoint from '@/components/bussiness/title-klg-point';
import TipsInfo from '@/components/bussiness/tips-info'; import TipsInfo from '@/components/bussiness/tips-info';
import ChartColumnHorizontalTCLong from '@/components/bussiness/charts/chart-column-horizontal-tc-long'; import ChartColumnHorizontalTCLong from '@/components/bussiness/charts/chart-column-horizontal-tc-long';
...@@ -23,7 +24,7 @@ import { mapGetters } from 'vuex'; ...@@ -23,7 +24,7 @@ import { mapGetters } from 'vuex';
export default { export default {
components: { components: {
CommonHeader, PageModel,
TitleKLGPoint, TitleKLGPoint,
ChartColumnHorizontalTCLong, ChartColumnHorizontalTCLong,
TipsInfo, TipsInfo,
...@@ -31,6 +32,9 @@ export default { ...@@ -31,6 +32,9 @@ export default {
}, },
data() { data() {
return { return {
headerInfo: {
title: '培训前后知识点掌握情况',
},
isShowLoading: true, isShowLoading: true,
title: '共0个知识点', title: '共0个知识点',
token: '', token: '',
......
<template> <template>
<!-- 专项合作首页: 我参与的,其它项目 --> <!-- 专项合作首页: 我参与的,其它项目 -->
<div class="pro-list-container"> <div class="pro-list-container">
<!-- <CommonHeader :title="title"></CommonHeader> --> <PageModel
<CommonHeaderNew ref="PageModel"
border-style="1px solid #e7e7e7" :header-info="headerInfo"
:title="title" @onService="goKf"
:is-show-kf="isShowKf"
/> />
<CoopListItem <CoopListItem :data-list="projectList" />
style="margin: 10px 0"
:data-list="projectList"
/>
<!-- <Loading v-if="showLoading" />-->
</div> </div>
</template> </template>
<script> <script>
import CommonHeaderNew from '@/components/common/common-header-new'; import PageModel from '@pica-kit/page-model';
import CoopListItem from '@/components/bussiness/coop-list-item'; import CoopListItem from '@/components/bussiness/coop-list-item';
// import Loading from '@/components/common/common-loading'; import { getProjectList, getImUrl } from '@/service';
import { getProjectList } from '@/service';
import { BASE_URL } from '@/utils/enumerate'; import { BASE_URL } from '@/utils/enumerate';
const { VUE_APP_ENV } = process.env; const { VUE_APP_ENV } = process.env;
const cookies = require('cookie-universal')(); const cookies = require('cookie-universal')();
console.log('--BASE_URL', BASE_URL);
console.log('--VUE_APP_ENV', VUE_APP_ENV);
export default { export default {
components: { components: {
CommonHeaderNew,
CoopListItem, CoopListItem,
// Loading, PageModel,
}, },
data() { data() {
return { return {
token: '8C124410C0904B69B06D0E65039984B9', headerInfo: {
title: '学情报告', title: '学情报告',
backMethod: 'native',
},
token: '0434E93C02524BE1BA103658B2BFC835',
projectList: [], projectList: [],
isShowKf: true, isShowKf: true,
headerEl: null,
}; };
}, },
created() { created() {
const _this = this; const _this = this;
console.log('--this.$rocNative.isWeb', this.$rocNative.isWeb);
if (this.$rocNative.isWeb) { if (this.$rocNative.isWeb) {
cookies.set('conslToken', _this.token); cookies.set('conslToken', _this.token);
_this.headerInfo.backMethod = '';
_this.getProjectList(); _this.getProjectList();
} else { } else {
_this.getUserInfo(); _this.getUserInfo();
...@@ -90,6 +85,30 @@ export default { ...@@ -90,6 +85,30 @@ export default {
} }
}); });
}, },
goKf() {
const that = this;
getImUrl({
code: '0002',
}).then((res) => {
if (res.code == '000000') {
const paramList = [
{
key: 'pageUrl',
value: res.data,
type: 4,
seqNo: 1,
},
];
that.$rocNative.dispatchEventByModuleCode({
modeCode: 'M300',
jsonString: paramList,
});
}
});
},
changlist() {
this.$refs.PageModel.onEditContent([]);
},
}, },
}; };
</script> </script>
......
<template> <template>
<section class="rank-days-wrapper"> <section class="rank-days-wrapper">
<CommonHeader title="完成天数排名" /> <!-- <CommonHeader title="完成天数排名" />-->
<PageModel :header-info="headerInfo" />
<CommonTitleWithDropdown :title="listTitle" /> <CommonTitleWithDropdown :title="listTitle" />
<RankingItemDays <RankingItemDays
class="pdt-50" class="pdt-50"
...@@ -16,8 +17,8 @@ ...@@ -16,8 +17,8 @@
<script> <script>
const cookies = require('cookie-universal')(); const cookies = require('cookie-universal')();
import { getStudyTimeData } from '@/service'; import { getStudyTimeData } from '@/service';
import PageModel from '@pica-kit/page-model';
import CommonHeader from '@/components/common/common-header'; // import CommonHeader from '@/components/common/common-header';
import CommonTitleWithDropdown from '@/components/common/common-title-with-dropdown'; import CommonTitleWithDropdown from '@/components/common/common-title-with-dropdown';
import RankingItemDays from '@/components/bussiness/ranking-item-days'; import RankingItemDays from '@/components/bussiness/ranking-item-days';
import CommonNoMore from '@/components/common/common-no-more'; import CommonNoMore from '@/components/common/common-no-more';
...@@ -26,7 +27,7 @@ import { mapGetters } from 'vuex'; ...@@ -26,7 +27,7 @@ import { mapGetters } from 'vuex';
export default { export default {
components: { components: {
CommonHeader, PageModel,
CommonTitleWithDropdown, CommonTitleWithDropdown,
RankingItemDays, RankingItemDays,
CommonNoMore, CommonNoMore,
...@@ -34,6 +35,9 @@ export default { ...@@ -34,6 +35,9 @@ export default {
}, },
data() { data() {
return { return {
headerInfo: {
title: '完成天数排名',
},
isShowLoading: true, isShowLoading: true,
listTitle: '共0条数据', listTitle: '共0条数据',
rankList: [], rankList: [],
......
<template> <template>
<section class="rank-edu-wrapper"> <section class="rank-edu-wrapper">
<CommonHeader title="项目情况排名" /> <!-- <CommonHeader title="项目情况排名" />-->
<PageModel :header-info="headerInfo" />
<CommonTitleWithDropdown <CommonTitleWithDropdown
:data-list="dropdownList" :data-list="dropdownList"
:title="title" :title="title"
...@@ -22,8 +23,8 @@ ...@@ -22,8 +23,8 @@
<script> <script>
const cookies = require('cookie-universal')(); const cookies = require('cookie-universal')();
import { getStudyRankData } from '@/service'; import { getStudyRankData } from '@/service';
import PageModel from '@pica-kit/page-model';
import CommonHeader from '@/components/common/common-header'; // import CommonHeader from '@/components/common/common-header';
import CommonTitleWithDropdown from '@/components/common/common-title-with-dropdown'; import CommonTitleWithDropdown from '@/components/common/common-title-with-dropdown';
import CommonNoMore from '@/components/common/common-no-more'; import CommonNoMore from '@/components/common/common-no-more';
import RankingList from '@/components/bussiness/ranking-item'; import RankingList from '@/components/bussiness/ranking-item';
...@@ -32,7 +33,7 @@ import { mapGetters } from 'vuex'; ...@@ -32,7 +33,7 @@ import { mapGetters } from 'vuex';
export default { export default {
components: { components: {
CommonHeader, PageModel,
CommonTitleWithDropdown, CommonTitleWithDropdown,
CommonNoMore, CommonNoMore,
RankingList, RankingList,
...@@ -40,6 +41,9 @@ export default { ...@@ -40,6 +41,9 @@ export default {
}, },
data() { data() {
return { return {
headerInfo: {
title: '项目情况排名',
},
isShowLoading: true, isShowLoading: true,
title: '共0条数据', title: '共0条数据',
rankList: [], rankList: [],
......
因为 它太大了无法显示 源差异 。您可以改为 查看blob
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册