接入cms
Showing
34 changed files
with
155 additions
and
99 deletions
| ... | @@ -8,4 +8,4 @@ VUE_APP_INDEX_VIDEO = 'https://ow.go.qudone.com/jyesupload/ee516bb327484197b7ca7 | ... | @@ -8,4 +8,4 @@ VUE_APP_INDEX_VIDEO = 'https://ow.go.qudone.com/jyesupload/ee516bb327484197b7ca7 |
| 8 | 8 | ||
| 9 | 9 | ||
| 10 | VUE_APP_CONTENT_ENCRYPT_KEY = 'MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDA1SNj4qiOEmvTkZfp+Gt0UOLTCdxuEqRE+k0fROhgZdN2GmtDg6jcZV/CXKdwQGGdwOYdxEngRQb2K/SXd5Rnu4MkuAoHopDNrBRVqoJNQi6VOv6fvAEzeYivtS9aMM7IvdZuN1QlASCz2vxfUKJ3BaijMQqQE9m0pVm+0BDEfwIDAQAB' | 10 | VUE_APP_CONTENT_ENCRYPT_KEY = 'MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDA1SNj4qiOEmvTkZfp+Gt0UOLTCdxuEqRE+k0fROhgZdN2GmtDg6jcZV/CXKdwQGGdwOYdxEngRQb2K/SXd5Rnu4MkuAoHopDNrBRVqoJNQi6VOv6fvAEzeYivtS9aMM7IvdZuN1QlASCz2vxfUKJ3BaijMQqQE9m0pVm+0BDEfwIDAQAB' |
| 11 | VUE_APP_CONTENT_ENCRYPT_SWITCH = true | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 11 | VUE_APP_CONTENT_ENCRYPT_SWITCH = false | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
| ... | @@ -70,7 +70,7 @@ let encryptWhileList = [ | ... | @@ -70,7 +70,7 @@ let encryptWhileList = [ |
| 70 | // 请求拦截器 | 70 | // 请求拦截器 |
| 71 | axios.interceptors.request.use( | 71 | axios.interceptors.request.use( |
| 72 | config => { | 72 | config => { |
| 73 | if (encryptSwitch) { | 73 | if (encryptSwitch == "true") { |
| 74 | for (let index = 0; index < encryptPattern.length; index++) { | 74 | for (let index = 0; index < encryptPattern.length; index++) { |
| 75 | let element = encryptPattern[index]; | 75 | let element = encryptPattern[index]; |
| 76 | if (element.test(config.url)) { | 76 | if (element.test(config.url)) { | ... | ... |
566 KB
593 KB
309 KB
311 KB
310 KB
316 KB
317 KB
316 KB
1.01 MB
1.02 MB
1.02 MB
920 KB
928 KB
929 KB
src/assets/images/index/banner.png
deleted
100644 → 0
1.02 MB
936 KB
1.02 MB
936 KB
1.03 MB
936 KB
1.03 MB
| ... | @@ -24,7 +24,7 @@ module.exports = { | ... | @@ -24,7 +24,7 @@ module.exports = { |
| 24 | nav: { | 24 | nav: { |
| 25 | loginData: { | 25 | loginData: { |
| 26 | name: "login", | 26 | name: "login", |
| 27 | path: "", | 27 | path: "/login", |
| 28 | list: [{ | 28 | list: [{ |
| 29 | name: "register", | 29 | name: "register", |
| 30 | path: "/register", | 30 | path: "/register", |
| ... | @@ -59,19 +59,20 @@ module.exports = { | ... | @@ -59,19 +59,20 @@ module.exports = { |
| 59 | navList: [{ | 59 | navList: [{ |
| 60 | name: "Products", | 60 | name: "Products", |
| 61 | path: "", | 61 | path: "", |
| 62 | value: "gotoVHIS", | ||
| 62 | list: [{ | 63 | list: [{ |
| 63 | name: "VHIS - Standard Plan", | 64 | name: "VHIS", |
| 64 | path: "", | 65 | path: "", |
| 65 | value: "gotoVHIS" | 66 | value: "gotoVHIS" |
| 66 | }, | 67 | }, |
| 67 | { | 68 | { |
| 68 | name: "Dividen Life Insurance", | 69 | name: "Insurance with Investment Focus", |
| 69 | path: "/product" | 70 | path: "/product" |
| 70 | }] | 71 | }] |
| 71 | }, | 72 | }, |
| 72 | { | 73 | { |
| 73 | name: "Customer Service", | 74 | name: "Customer Service", |
| 74 | path: "", | 75 | path: "/custom/product", |
| 75 | list: [ | 76 | list: [ |
| 76 | { | 77 | { |
| 77 | name: "Customer Service", | 78 | name: "Customer Service", |
| ... | @@ -113,9 +114,9 @@ module.exports = { | ... | @@ -113,9 +114,9 @@ module.exports = { |
| 113 | }, | 114 | }, |
| 114 | { | 115 | { |
| 115 | name: "About Us", | 116 | name: "About Us", |
| 116 | path: "", | 117 | path: "/profile", |
| 117 | list: [{ | 118 | list: [{ |
| 118 | name: "Ping An (Life) HK", | 119 | name: "About Ping An (Life) HK", |
| 119 | path: "/profile" | 120 | path: "/profile" |
| 120 | }, | 121 | }, |
| 121 | { | 122 | { |
| ... | @@ -136,7 +137,7 @@ module.exports = { | ... | @@ -136,7 +137,7 @@ module.exports = { |
| 136 | }, | 137 | }, |
| 137 | { | 138 | { |
| 138 | name: "Join Us", | 139 | name: "Join Us", |
| 139 | path: "", | 140 | path: "/empty", |
| 140 | list: [{ | 141 | list: [{ |
| 141 | name: "Corporate Culture", | 142 | name: "Corporate Culture", |
| 142 | path: "/empty" | 143 | path: "/empty" |
| ... | @@ -767,5 +768,11 @@ module.exports = { | ... | @@ -767,5 +768,11 @@ module.exports = { |
| 767 | goto: "Go to", | 768 | goto: "Go to", |
| 768 | per: "page", | 769 | per: "page", |
| 769 | page: "" | 770 | page: "" |
| 771 | }, | ||
| 772 | newsDetail : { | ||
| 773 | back : "Back", | ||
| 774 | publishAt : "Publish time", | ||
| 775 | readers : "Number of reader", | ||
| 776 | per : "" | ||
| 770 | } | 777 | } |
| 771 | } | 778 | } | ... | ... |
| ... | @@ -24,7 +24,7 @@ module.exports = { | ... | @@ -24,7 +24,7 @@ module.exports = { |
| 24 | nav: { | 24 | nav: { |
| 25 | loginData: { | 25 | loginData: { |
| 26 | name: "登入", | 26 | name: "登入", |
| 27 | path: "", | 27 | path: "/login", |
| 28 | list: [{ | 28 | list: [{ |
| 29 | name: "註冊", | 29 | name: "註冊", |
| 30 | path: "/register", | 30 | path: "/register", |
| ... | @@ -61,18 +61,18 @@ module.exports = { | ... | @@ -61,18 +61,18 @@ module.exports = { |
| 61 | name: "產品介紹", | 61 | name: "產品介紹", |
| 62 | path: "", | 62 | path: "", |
| 63 | list: [{ | 63 | list: [{ |
| 64 | name: "VHIS", | 64 | name: "自願醫保計劃", |
| 65 | path: "", | 65 | path: "", |
| 66 | value: "gotoVHIS" | 66 | value: "gotoVHIS" |
| 67 | }, | 67 | }, |
| 68 | { | 68 | { |
| 69 | name: "分紅終身", | 69 | name: "投資成份保險", |
| 70 | path: "/product" | 70 | path: "/product" |
| 71 | }] | 71 | }] |
| 72 | }, | 72 | }, |
| 73 | { | 73 | { |
| 74 | name: "客戶服務", | 74 | name: "客戶服務", |
| 75 | path: "", | 75 | path: "/custom/product", |
| 76 | list: [ | 76 | list: [ |
| 77 | { | 77 | { |
| 78 | name: "客戶服務導航", | 78 | name: "客戶服務導航", |
| ... | @@ -114,9 +114,9 @@ module.exports = { | ... | @@ -114,9 +114,9 @@ module.exports = { |
| 114 | }, | 114 | }, |
| 115 | { | 115 | { |
| 116 | name: "關於我們", | 116 | name: "關於我們", |
| 117 | path: "", | 117 | path: "/profile", |
| 118 | list: [{ | 118 | list: [{ |
| 119 | name: "平安人壽香港", | 119 | name: "有關平安人壽香港", |
| 120 | path: "/profile" | 120 | path: "/profile" |
| 121 | }, | 121 | }, |
| 122 | { | 122 | { |
| ... | @@ -137,7 +137,7 @@ module.exports = { | ... | @@ -137,7 +137,7 @@ module.exports = { |
| 137 | }, | 137 | }, |
| 138 | { | 138 | { |
| 139 | name: "加入我們", | 139 | name: "加入我們", |
| 140 | path: "", | 140 | path: "/empty", |
| 141 | list: [{ | 141 | list: [{ |
| 142 | name: "企業文化", | 142 | name: "企業文化", |
| 143 | path: "/empty" | 143 | path: "/empty" |
| ... | @@ -766,5 +766,11 @@ module.exports = { | ... | @@ -766,5 +766,11 @@ module.exports = { |
| 766 | goto: "跳轉", | 766 | goto: "跳轉", |
| 767 | per: "第", | 767 | per: "第", |
| 768 | page: "頁" | 768 | page: "頁" |
| 769 | }, | ||
| 770 | newsDetail : { | ||
| 771 | back : "回到列表頁", | ||
| 772 | publishAt : "發佈時間", | ||
| 773 | readers : "閱讀人數", | ||
| 774 | per : "人" | ||
| 769 | } | 775 | } |
| 770 | } | 776 | } | ... | ... |
| ... | @@ -24,7 +24,7 @@ module.exports = { | ... | @@ -24,7 +24,7 @@ module.exports = { |
| 24 | nav: { | 24 | nav: { |
| 25 | loginData: { | 25 | loginData: { |
| 26 | name: "登陆", | 26 | name: "登陆", |
| 27 | path: "", | 27 | path: "/login", |
| 28 | list: [{ | 28 | list: [{ |
| 29 | name: "注册", | 29 | name: "注册", |
| 30 | path: "/register", | 30 | path: "/register", |
| ... | @@ -59,19 +59,20 @@ module.exports = { | ... | @@ -59,19 +59,20 @@ module.exports = { |
| 59 | navList: [{ | 59 | navList: [{ |
| 60 | name: "产品介绍", | 60 | name: "产品介绍", |
| 61 | path: "", | 61 | path: "", |
| 62 | value: "gotoVHIS", | ||
| 62 | list: [{ | 63 | list: [{ |
| 63 | name: "自愿医保基本计划", | 64 | name: "自愿医保基本计划", |
| 64 | path: "", | 65 | path: "", |
| 65 | value: "gotoVHIS" | 66 | value: "gotoVHIS" |
| 66 | }, | 67 | }, |
| 67 | { | 68 | { |
| 68 | name: "分红终身寿险", | 69 | name: "投资成份保险", |
| 69 | path: "/product" | 70 | path: "/product" |
| 70 | }] | 71 | }] |
| 71 | }, | 72 | }, |
| 72 | { | 73 | { |
| 73 | name: "客户服务", | 74 | name: "客户服务", |
| 74 | path: "", | 75 | path: "/custom/product", |
| 75 | list: [{ | 76 | list: [{ |
| 76 | name: "客户服务导航", | 77 | name: "客户服务导航", |
| 77 | path: "/custom/product" | 78 | path: "/custom/product" |
| ... | @@ -112,9 +113,9 @@ module.exports = { | ... | @@ -112,9 +113,9 @@ module.exports = { |
| 112 | }, | 113 | }, |
| 113 | { | 114 | { |
| 114 | name: "关于我们", | 115 | name: "关于我们", |
| 115 | path: "", | 116 | path: "/profile", |
| 116 | list: [{ | 117 | list: [{ |
| 117 | name: "平安人寿香港", | 118 | name: "有关平安香港", |
| 118 | path: "/profile" | 119 | path: "/profile" |
| 119 | }, | 120 | }, |
| 120 | { | 121 | { |
| ... | @@ -136,7 +137,7 @@ module.exports = { | ... | @@ -136,7 +137,7 @@ module.exports = { |
| 136 | }, | 137 | }, |
| 137 | { | 138 | { |
| 138 | name: "加入我们", | 139 | name: "加入我们", |
| 139 | path: "", | 140 | path: "/empty", |
| 140 | list: [{ | 141 | list: [{ |
| 141 | name: "企业文化", | 142 | name: "企业文化", |
| 142 | path: "/empty" | 143 | path: "/empty" |
| ... | @@ -766,5 +767,11 @@ module.exports = { | ... | @@ -766,5 +767,11 @@ module.exports = { |
| 766 | goto: "跳转", | 767 | goto: "跳转", |
| 767 | per: "第", | 768 | per: "第", |
| 768 | page: "页" | 769 | page: "页" |
| 770 | }, | ||
| 771 | newsDetail : { | ||
| 772 | back : "回到列表页", | ||
| 773 | publishAt : "发布时间", | ||
| 774 | readers : "阅读人数", | ||
| 775 | per : "人" | ||
| 769 | } | 776 | } |
| 770 | } | 777 | } | ... | ... |
| ... | @@ -162,19 +162,20 @@ export default { | ... | @@ -162,19 +162,20 @@ export default { |
| 162 | }, | 162 | }, |
| 163 | loadIdentify() { | 163 | loadIdentify() { |
| 164 | return new Promise((resolve, reject) => { | 164 | return new Promise((resolve, reject) => { |
| 165 | httpPost({ | 165 | // httpPost({ |
| 166 | url: api.load, | 166 | // url: api.load, |
| 167 | data: { | 167 | // data: { |
| 168 | clientNo: "501381573194155227" | 168 | // clientNo: "501381573194155227" |
| 169 | } | 169 | // } |
| 170 | }).then(response => { | 170 | // }).then(response => { |
| 171 | this.$store.commit("SET_USER_INFO", response.data); | 171 | // this.$store.commit("SET_USER_INFO", response.data); |
| 172 | resolve(); | 172 | // resolve(); |
| 173 | }) | 173 | // }) |
| 174 | resolve(); | ||
| 174 | }); | 175 | }); |
| 175 | }, | 176 | }, |
| 176 | checkCnName() { | 177 | checkCnName() { |
| 177 | if (!this.information.cnName) { | 178 | if (!this.information.firstName || !this.information.lastName) { |
| 178 | let message = this.i18n.infomationImprove.errorTips.e1; | 179 | let message = this.i18n.infomationImprove.errorTips.e1; |
| 179 | this.errorTips.e1 = message; | 180 | this.errorTips.e1 = message; |
| 180 | return false; | 181 | return false; |
| ... | @@ -280,6 +281,7 @@ export default { | ... | @@ -280,6 +281,7 @@ export default { |
| 280 | }, | 281 | }, |
| 281 | 'birthDate': function () { | 282 | 'birthDate': function () { |
| 282 | this.errorTips.e3 = ""; | 283 | this.errorTips.e3 = ""; |
| 284 | this.information.birthDate = this.birthDate; | ||
| 283 | }, | 285 | }, |
| 284 | 'information.idNo': function () { | 286 | 'information.idNo': function () { |
| 285 | this.errorTips.e4 = ""; | 287 | this.errorTips.e4 = ""; | ... | ... |
| ... | @@ -63,7 +63,7 @@ | ... | @@ -63,7 +63,7 @@ |
| 63 | </div> | 63 | </div> |
| 64 | <div class="ipt-wrap"> | 64 | <div class="ipt-wrap"> |
| 65 | <!-- <input class="ipt" type="date" :class="{err : errorTips.e3.length > 0}" v-model="birthDate"> --> | 65 | <!-- <input class="ipt" type="date" :class="{err : errorTips.e3.length > 0}" v-model="birthDate"> --> |
| 66 | <date-picker class="date" v-model="information.birthDate" :filtModel="['future','today']"></date-picker> | 66 | <date-picker class="date" v-model="birthDate" :filtModel="['future','today']"></date-picker> |
| 67 | </div> | 67 | </div> |
| 68 | <div class="validator" v-if="errorTips.e3.length > 0 "> | 68 | <div class="validator" v-if="errorTips.e3.length > 0 "> |
| 69 | <img src="@/assets/images/common/icon-notice.png" alt=""> {{errorTips.e3}} | 69 | <img src="@/assets/images/common/icon-notice.png" alt=""> {{errorTips.e3}} | ... | ... |
| ... | @@ -43,10 +43,10 @@ export default { | ... | @@ -43,10 +43,10 @@ export default { |
| 43 | tip: "" // 显示的文字 | 43 | tip: "" // 显示的文字 |
| 44 | }, | 44 | }, |
| 45 | loginForm: { | 45 | loginForm: { |
| 46 | userId: "18334783910", | 46 | // userId: "18334783910", |
| 47 | password: "qweqwe123", | 47 | // password: "qweqwe123", |
| 48 | // userId: "18145729463", | 48 | userId: "18145729463", |
| 49 | // password: "ccc123!@#", | 49 | password: "ccc123!@#", |
| 50 | // userId: "", | 50 | // userId: "", |
| 51 | // password: "", | 51 | // password: "", |
| 52 | 52 | ... | ... |
| ... | @@ -4,12 +4,26 @@ import { | ... | @@ -4,12 +4,26 @@ import { |
| 4 | httpPost | 4 | httpPost |
| 5 | } from '@/api/fetch-api.js' | 5 | } from '@/api/fetch-api.js' |
| 6 | 6 | ||
| 7 | import { getDateYMD } from "@/utils/biz.js"; | ||
| 8 | |||
| 7 | export default { | 9 | export default { |
| 8 | data() { | 10 | data() { |
| 9 | return { | 11 | return { |
| 10 | key: 'value' | 12 | key: 'value', |
| 13 | data: { | ||
| 14 | title: "", | ||
| 15 | content: "", | ||
| 16 | dateFormat: "", | ||
| 17 | pv: 0, | ||
| 18 | }, | ||
| 19 | hadData: true | ||
| 11 | } | 20 | } |
| 12 | }, | 21 | }, |
| 22 | computed: { | ||
| 23 | ...mapState({ | ||
| 24 | userInfo: state => state.userInfo | ||
| 25 | }), | ||
| 26 | }, | ||
| 13 | components: {}, | 27 | components: {}, |
| 14 | methods: { | 28 | methods: { |
| 15 | toNewsList() { | 29 | toNewsList() { |
| ... | @@ -18,9 +32,29 @@ export default { | ... | @@ -18,9 +32,29 @@ export default { |
| 18 | // }) | 32 | // }) |
| 19 | this.$router.go(-1); | 33 | this.$router.go(-1); |
| 20 | }, | 34 | }, |
| 21 | initData() {} | 35 | initData() { |
| 36 | console.log(this.$route); | ||
| 37 | let c = this.$route.query.c; | ||
| 38 | let l = this.$i18n.locale; | ||
| 39 | let params = { | ||
| 40 | l: l, | ||
| 41 | newsCode: c | ||
| 42 | }; | ||
| 43 | httpGet({ url: api.newsDetail, data: params }).then(res => { | ||
| 44 | if (!res) { | ||
| 45 | this.hadData = false; | ||
| 46 | return; | ||
| 47 | } | ||
| 48 | this.data.title = res.title; | ||
| 49 | this.data.content = res.content; | ||
| 50 | this.data.dateFormat = getDateYMD(res.createAt); | ||
| 51 | this.data.pv = res.pv; | ||
| 52 | }); | ||
| 53 | } | ||
| 54 | }, | ||
| 55 | mounted() { | ||
| 56 | this.initData(); | ||
| 22 | }, | 57 | }, |
| 23 | mounted() {}, | ||
| 24 | created() { | 58 | created() { |
| 25 | document.documentElement.scrollTop = 0; | 59 | document.documentElement.scrollTop = 0; |
| 26 | document.body.scrollTop = 0; | 60 | document.body.scrollTop = 0; | ... | ... |
| 1 | 1 | ||
| 2 | <template> | 2 | <template> |
| 3 | <div class="content"> | 3 | <div class="content"> |
| 4 | |||
| 5 | |||
| 6 | <div > | ||
| 7 | <div class="top-space"></div> | ||
| 8 | <h2 class="tit">{{data.title}}</h2> | ||
| 9 | <div @click="toNewsList" class="box back"> {{$t('newsDetail.back')}} ></div> | ||
| 10 | <div class="box dat"> | ||
| 11 | <div class="date"> <img class="icon-clock" src="@/assets/images/news-detail/icon-clock.png" alt=""> {{$t('newsDetail.publishAt')}}:{{data.dateFormat}}</div> | ||
| 12 | <div class="pv">{{$t('newsDetail.readers')}}:{{data.pv}} {{$t('newsDetail.per')}}</div> | ||
| 13 | </div> | ||
| 14 | <div class="box desc" v-html="data.content"> | ||
| 15 | {{data.content}} | ||
| 16 | </div> | ||
| 17 | </div> | ||
| 18 | <!-- | ||
| 4 | <div v-if="$i18n.locale == 'zh'"> | 19 | <div v-if="$i18n.locale == 'zh'"> |
| 5 | <div class="top-space"></div> | 20 | <div class="top-space"></div> |
| 6 | <h2 class="tit">中国平安,与时代同行!</h2> | 21 | <h2 class="tit">中国平安,与时代同行!</h2> |
| ... | @@ -93,6 +108,7 @@ | ... | @@ -93,6 +108,7 @@ |
| 93 | 108 | ||
| 94 | </div> | 109 | </div> |
| 95 | </div> | 110 | </div> |
| 111 | --> | ||
| 96 | </div> | 112 | </div> |
| 97 | </template> | 113 | </template> |
| 98 | 114 | ... | ... |
| ... | @@ -5,6 +5,7 @@ import { | ... | @@ -5,6 +5,7 @@ import { |
| 5 | } from '@/api/fetch-api.js' | 5 | } from '@/api/fetch-api.js' |
| 6 | 6 | ||
| 7 | import Pagination from '@/components/pagination/pagination.vue' | 7 | import Pagination from '@/components/pagination/pagination.vue' |
| 8 | import { getDateYMD } from "@/utils/biz.js"; | ||
| 8 | 9 | ||
| 9 | export default { | 10 | export default { |
| 10 | name: "newsList", | 11 | name: "newsList", |
| ... | @@ -14,73 +15,46 @@ export default { | ... | @@ -14,73 +15,46 @@ export default { |
| 14 | data() { | 15 | data() { |
| 15 | return { | 16 | return { |
| 16 | key: 'value', | 17 | key: 'value', |
| 17 | items: [] | 18 | queryForm: { |
| 19 | l: "tc", | ||
| 20 | page: 1, | ||
| 21 | size: 10 | ||
| 22 | }, | ||
| 23 | total: 0, | ||
| 24 | news: [] | ||
| 18 | } | 25 | } |
| 19 | }, | 26 | }, |
| 20 | methods: { | 27 | methods: { |
| 21 | toNewsDetail() { | 28 | toNewsDetail(newsCode) { |
| 22 | this.$router.push({ | 29 | this.$router.push({ |
| 23 | path: "/news/detail" | 30 | path: "/news/detail", |
| 24 | }) | 31 | query: { |
| 32 | c: newsCode | ||
| 33 | } | ||
| 34 | }); | ||
| 25 | }, | 35 | }, |
| 26 | selPage(val) { | 36 | selPage(val) { |
| 27 | let { | 37 | let { |
| 28 | page | 38 | page |
| 29 | } = val; | 39 | } = val; |
| 30 | console.log("page:", page); | 40 | this.queryForm.page = page; |
| 41 | this.initData(); | ||
| 31 | }, | 42 | }, |
| 32 | initData() { | 43 | initData() { |
| 33 | // 初始化数据 | 44 | let l = this.$i18n.locale; |
| 34 | // this.items = new Array(12); | 45 | this.queryForm.l = l; |
| 35 | if (this.$i18n.locale == 'zh') { | 46 | httpGet({ url: api.newsList, data: this.queryForm }).then(res => { |
| 36 | this.items = [ | 47 | let newsList = res.list; |
| 37 | "平安人寿2019年2季度保险消费报告出炉!", | 48 | newsList.forEach(element => { |
| 38 | "公益献礼华诞年,创新开拓扶贫路", | 49 | element.dateFormat = getDateYMD(element.createAt); |
| 39 | "平安920要放大招啦!内含超强攻略!", | 50 | }); |
| 40 | "突发!平安人寿迅速应对广东阳江大巴交通事故", | 51 | this.$set(this, 'news', newsList); |
| 41 | "伴成长、助扶贫,平安人寿客服节给家庭“AI”的力量", | 52 | console.log(newsList); |
| 42 | "“平安行动 种子计划”推进急救知识全民普及", | 53 | this.total = res.total; |
| 43 | "科技助力客户体验升级,平安人寿打造智慧服务生态", | 54 | }); |
| 44 | "连续11年进入世界500强,中国平安,稳!", | ||
| 45 | "全国第四!财富中国500强平安再创佳绩", | ||
| 46 | "平安福又双叒叕获大奖,平安人寿获奖产品大盘点", | ||
| 47 | "突发!平安人寿迅速应对四川宜宾地震", | ||
| 48 | "超硬核新产品,今年司庆有安排!", | ||
| 49 | ] | ||
| 50 | } else if (this.$i18n.locale == 'tc') { | ||
| 51 | this.items = [ | ||
| 52 | "平安人壽2019年2季度保險消費報告出爐!", | ||
| 53 | "公益獻禮華誕年,創新開拓扶貧路", | ||
| 54 | "平安920要放大招啦!內含超強攻略!", | ||
| 55 | "突發!平安人壽迅速應對廣東陽江大巴交通事故", | ||
| 56 | "伴成長、助扶貧,平安人壽客服節給家庭“AI”的力量", | ||
| 57 | "“平安行動 種子計劃”推進急救知識全民普及", | ||
| 58 | "科技助力客戶體驗升級,平安人壽打造智慧服務生態", | ||
| 59 | "連續11年進入世界500強,中國平安,穩!", | ||
| 60 | "全國第四!財富中國500強平安再創佳績", | ||
| 61 | "平安福又雙叒叕獲大獎,平安人壽獲獎產品大盤點", | ||
| 62 | "突發!平安人壽迅速應對四川宜賓地震", | ||
| 63 | "超硬核新產品,今年司慶有安排!", | ||
| 64 | ] | ||
| 65 | } else { | ||
| 66 | this.items = [ | ||
| 67 | "PINGAN life insurance consumption report for the second quarter of 2019 is released! ", | ||
| 68 | "Public welfare gift year, innovation and development of poverty alleviation road", | ||
| 69 | "Ping an 920 to magnify it! Contains super strategy!", | ||
| 70 | "A sudden! Ping an life quickly responded to the bus accident in yangjiang, guangdong province ", | ||
| 71 | "With growth, help poverty alleviation, ping an life customer service festival to the family \"AI\" power", | ||
| 72 | "\"Safe action seed plan\" promotes the popularization of first aid knowledge to all people", | ||
| 73 | "Technology helps customer experience upgrade, ping an life to create a smart service ecology", | ||
| 74 | "Enter the world top 500 for 11 consecutive years, China is safe and stable!", | ||
| 75 | "Fourth in the country! Fortune China top 500 ping an achieves more achievements", | ||
| 76 | "Peace and double won awards, ping an life insurance the award-winning products inventory", | ||
| 77 | "A sudden! Ping an life quickly responded to the earthquake in yibin, sichuan province ", | ||
| 78 | "Super hard core new products, this year siqing has arranged! ", | ||
| 79 | ] | ||
| 80 | } | ||
| 81 | } | 55 | } |
| 82 | }, | 56 | }, |
| 83 | mounted() {}, | 57 | mounted() { }, |
| 84 | created() { | 58 | created() { |
| 85 | document.documentElement.scrollTop = 0; | 59 | document.documentElement.scrollTop = 0; |
| 86 | document.body.scrollTop = 0; | 60 | document.body.scrollTop = 0; | ... | ... |
| ... | @@ -9,16 +9,16 @@ | ... | @@ -9,16 +9,16 @@ |
| 9 | <div class="top-space"></div> | 9 | <div class="top-space"></div> |
| 10 | <div class="box"> | 10 | <div class="box"> |
| 11 | <div class="news"> | 11 | <div class="news"> |
| 12 | <div @click="toNewsDetail()" v-for="(item,index) in items" :key="index" class="news-item"> | 12 | <div @click="toNewsDetail(item.newsCode)" v-for="(item,index) in news" :key="index" class="news-item"> |
| 13 | <div class="news-item-tit"> | 13 | <div class="news-item-tit"> |
| 14 | <div class="point"></div> | 14 | <div class="point"></div> |
| 15 | <div class="tit">{{item}}</div> | 15 | <div class="tit">{{item.title}}</div> |
| 16 | <img v-if="index < 3" class="new" src="@/assets/images/news-list/news-list-new.png"> | 16 | <img v-if="item.hadNewTag == 1" class="new" src="@/assets/images/news-list/news-list-new.png"> |
| 17 | </div> | 17 | </div> |
| 18 | <div class="news-item-date">2019-09-27</div> | 18 | <div class="news-item-date">{{item.dateFormat}}</div> |
| 19 | </div> | 19 | </div> |
| 20 | </div> | 20 | </div> |
| 21 | <pagination @selpage="selPage" :total="23" class="pagination"></pagination> | 21 | <pagination @selpage="selPage" :total="total" class="pagination"></pagination> |
| 22 | </div> | 22 | </div> |
| 23 | </div> | 23 | </div> |
| 24 | </div> | 24 | </div> | ... | ... |
| ... | @@ -17,4 +17,14 @@ export function gotoVHIS(lan) { | ... | @@ -17,4 +17,14 @@ export function gotoVHIS(lan) { |
| 17 | } | 17 | } |
| 18 | url += "&partnerId=PA001&productCode=VHIS001"; | 18 | url += "&partnerId=PA001&productCode=VHIS001"; |
| 19 | window.location.href = url; | 19 | window.location.href = url; |
| 20 | } | ||
| 21 | |||
| 22 | |||
| 23 | export function getDateYMD(timestamp) { | ||
| 24 | let day = new Date(timestamp); | ||
| 25 | let y = day.getFullYear(); | ||
| 26 | let m = day.getMonth() + 1; | ||
| 27 | let d = day.getDate(); | ||
| 28 | let s = y + "-" + (m < 10 ? "0" + m : m) + "-" + (d < 10 ? "0" + d : d); | ||
| 29 | return s; | ||
| 20 | } | 30 | } |
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
-
Please register or sign in to post a comment