Commit 88284ee9 by Lyan

注册添加服务

parent 59b0875b
...@@ -50,6 +50,16 @@ const updateCustomService = (params = {}) => { ...@@ -50,6 +50,16 @@ const updateCustomService = (params = {}) => {
return POSTFORM(`${Prefix}/office/userfunctionbinding/authApi/update`, params) return POSTFORM(`${Prefix}/office/userfunctionbinding/authApi/update`, params)
} }
// 点击量
const clickDetailSave = (params = {}) => {
return POST(`${Prefix}/office/clickDetail/api/save`, params)
}
// 中心活动点击量
const clickHit = (params = {}) => {
return POST(`${Prefix}/office/clickHit/api/save`, params)
}
export default { export default {
...@@ -62,4 +72,6 @@ export default { ...@@ -62,4 +72,6 @@ export default {
homeSmallImages, homeSmallImages,
customService, customService,
updateCustomService, updateCustomService,
clickDetailSave,
clickHit
} }
...@@ -193,7 +193,7 @@ export default { ...@@ -193,7 +193,7 @@ export default {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
padding-top: 35px; padding-top: 35px;
padding-right: 60px; // padding-right: 60px;
margin-bottom: 20px; margin-bottom: 20px;
border-top: 1px solid rgba(4, 64, 141, 0.18); border-top: 1px solid rgba(4, 64, 141, 0.18);
......
...@@ -83,7 +83,7 @@ export default { ...@@ -83,7 +83,7 @@ export default {
name: "条码/RFID/软件检测服务", name: "条码/RFID/软件检测服务",
index: 2, index: 2,
link: "/Service/jcyxz/Barcode", link: "/Service/jcyxz/Barcode",
style:{flex:'0 0 290px',paddingRight:'50px'}, style:{flex:'0 0 300px',paddingRight:'50px'},
breadcrumb: [ breadcrumb: [
{ name: "服务中心", path: "/Service/BarcodeV" }, { name: "服务中心", path: "/Service/BarcodeV" },
{ name: "条码/RFID/软件检测服务" }, { name: "条码/RFID/软件检测服务" },
...@@ -324,7 +324,7 @@ export default { ...@@ -324,7 +324,7 @@ export default {
name: "GS1标准服务提供商", name: "GS1标准服务提供商",
index: 3, index: 3,
link: "/Service/Partners/index", link: "/Service/Partners/index",
style:{flex:'0 0 290px',paddingRight:'40px'}, style:{flex:'0 0 300px',paddingRight:'40px'},
breadcrumb: [ breadcrumb: [
{ name: "服务中心", path: "/Service/BarcodeV" }, { name: "服务中心", path: "/Service/BarcodeV" },
{ name: "标准服务提供商", path: "/Service/Partners/index" }, { name: "标准服务提供商", path: "/Service/Partners/index" },
......
...@@ -356,18 +356,42 @@ ...@@ -356,18 +356,42 @@
v-bind="newsBannerSettingsA" v-bind="newsBannerSettingsA"
v-if="newsBanner.length > 0" v-if="newsBanner.length > 0"
ref="newsBannerA" ref="newsBannerA"
:asNavFor="$refs.newsBannerA" :asNavFor="$refs.newsBannerA"
> >
<!-- <div
class="newsBanner-item"
v-for="el in newsBanner"
:key="el.id"
>
<a
@click="goJump(el)"
><img :src="el.picFile" class="newsBanner-tp"
/></a>
</div> -->
<div <div
class="newsBanner-item" class="newsBanner-item"
v-for="el in newsBanner" v-for="el in newsBanner"
:key="el.id" :key="el.id"
> >
<a :href="el.jumppath" target="_blank" <a
@click="goJump(el)"
><img :src="el.picFile" class="newsBanner-tp" ><img :src="el.picFile" class="newsBanner-tp"
/></a> /></a>
<div class="newsBanner-title newsBannerB" :title="el.title">
<a @click="goJump(el)">{{ el.title }}</a>
</div>
</div> </div>
<template #prevArrow>
<div class="custom-arrow"></div>
</template>
<template #nextArrow>
<div class="custom-arrow"></div>
</template>
</VueSlickCarousel> </VueSlickCarousel>
<!--
<VueSlickCarousel <VueSlickCarousel
v-bind="newsBannerSettingsB" v-bind="newsBannerSettingsB"
ref="newsBannerB" ref="newsBannerB"
...@@ -381,7 +405,7 @@ ...@@ -381,7 +405,7 @@
:key="el.id" :key="el.id"
> >
<div class="newsBanner-title" :title="el.title"> <div class="newsBanner-title" :title="el.title">
<a :href="el.jumppath" target="_blank">{{ el.title }}</a> <a @click="goJump(el)">{{ el.title }}</a>
</div> </div>
</div> </div>
<template #prevArrow> <template #prevArrow>
...@@ -390,7 +414,7 @@ ...@@ -390,7 +414,7 @@
<template #nextArrow> <template #nextArrow>
<div class="custom-arrow"></div> <div class="custom-arrow"></div>
</template> </template>
</VueSlickCarousel> </VueSlickCarousel> -->
</div> </div>
</div> </div>
<div class="col-lg-6"> <div class="col-lg-6">
...@@ -404,9 +428,10 @@ ...@@ -404,9 +428,10 @@
> >
<button <button
:class="['nav-link', { active: i === 0 }]" :class="['nav-link', { active: i === 0 }]"
data-toggle="pill"
:href="`#${tmp.type}-tab`"
> >
<!-- data-toggle="pill"
:href="`#${tmp.type}-tab`" -->
<span>{{ tmp.name }}</span> <span>{{ tmp.name }}</span>
</button> </button>
</li> </li>
...@@ -694,8 +719,9 @@ export default { ...@@ -694,8 +719,9 @@ export default {
// } // }
], // 要闻左侧图片 ], // 要闻左侧图片
newsBannerSettingsA: { newsBannerSettingsA: {
arrows: false, arrows: true,
autoplay: true, autoplay: true,
autoplaySpeed: 2000,
dots: false, dots: false,
slidesToShow: 1, slidesToShow: 1,
slidesToScroll: 1, slidesToScroll: 1,
...@@ -703,6 +729,7 @@ export default { ...@@ -703,6 +729,7 @@ export default {
newsBannerSettingsB: { newsBannerSettingsB: {
arrows: true, arrows: true,
autoplay: true, autoplay: true,
autoplaySpeed: 2000,
dots: false, dots: false,
slidesToShow: 1, slidesToShow: 1,
slidesToScroll: 1, slidesToScroll: 1,
...@@ -1420,14 +1447,36 @@ export default { ...@@ -1420,14 +1447,36 @@ export default {
} }
console.log(homeImportantNewListRes, "要闻右侧标题列表"); console.log(homeImportantNewListRes, "要闻右侧标题列表");
}, },
//小轮播
goJump(item) {
this.clickDetailSave(item)
},
// 要闻左侧点击
async clickDetailSave(item) {
const query = {
id: item.articleId,
code:2
};
const clickDetailSaveRes = await this.$api.home.clickDetailSave(
query
);
const { returnCode, data } = clickDetailSaveRes;
if (returnCode === "0") {
window.open(item.jumppath, "_blank");
}
console.log(clickDetailSaveRes, "要闻右侧标题列表");
},
// 要闻、中心、地方、国际点击 // 要闻、中心、地方、国际点击
handelNewsTab(i) { handelNewsTab(i) {
if (this.news[i].link) { if (this.news[i].link) {
window.open(this.news[i].link, "_blank"); window.open(this.news[i].link, "_blank");
// 是外链的需要初始化 // 是外链的需要初始化
} }
}, },
// 商品全球身份证 // 商品全球身份证
async homeNewGtin() { async homeNewGtin() {
console.log(process.env.NODE_ENV, "process.env"); console.log(process.env.NODE_ENV, "process.env");
...@@ -1666,11 +1715,12 @@ export default { ...@@ -1666,11 +1715,12 @@ export default {
.slick-list, .slick-list,
.slick-track { .slick-track {
height: 100%; height: 100%;
width: 100%;
} }
.slick-slide { .slick-slide {
height: 100%; height: 100%;
width: 100%;
> div { > div {
height: 100%; height: 100%;
...@@ -1803,17 +1853,24 @@ export default { ...@@ -1803,17 +1853,24 @@ export default {
width: 40px; width: 40px;
height: 50px; height: 50px;
margin: 0 10px; margin: 0 10px;
position: relative; // position: relative;
&.slick-prev { &.slick-prev {
width: 40px; width: 40px;
height: 50px; height: 50px;
top: auto;
bottom: 3px;
transform: translate(0, 0);
justify-content: center;
&::before { &::before {
width: 9px; width: 9px;
height: 14px; height: 14px;
position: absolute; position: absolute;
left: 50%; // left: 50%;
top: 50%; // top: 50%;
transform: translate(-50%, -50%); // transform: translate(-50%, -50%);
top: auto;
// bottom: 25px;
// transform: translate(0, 0);
background: url("../../assets/image/home/prevArrow-hover.png") background: url("../../assets/image/home/prevArrow-hover.png")
no-repeat; no-repeat;
} }
...@@ -1822,14 +1879,20 @@ export default { ...@@ -1822,14 +1879,20 @@ export default {
&.slick-next { &.slick-next {
width: 40px; width: 40px;
height: 50px; height: 50px;
// bottom: 0; bottom: 3px;
top: auto;
transform: translate(0, 0);
justify-content: center;
&::before { &::before {
width: 9px; width: 9px;
height: 14px; height: 14px;
position: absolute; position: absolute;
left: 50%; // left: 50%;
top: 50%; // top: 50%;
transform: translate(-50%, -50%); top: auto;
// bottom: 25px;
// transform: translate(0, 0);
// transform: translate(-50%, -50%);
background: url("../../assets/image/home/nextArrow-hover.png") background: url("../../assets/image/home/nextArrow-hover.png")
no-repeat; no-repeat;
} }
...@@ -1989,11 +2052,11 @@ export default { ...@@ -1989,11 +2052,11 @@ export default {
height: auto; height: auto;
// height: 366px !important; // height: 366px !important;
.newsBannerB { // .newsBannerB {
.newsBanner-title { .newsBanner-title {
font-size: 18px; font-size: 18px;
} }
} // }
} }
.home-bottom-cont, .home-top-cont{ .home-bottom-cont, .home-top-cont{
> div { > div {
...@@ -2046,11 +2109,11 @@ export default { ...@@ -2046,11 +2109,11 @@ export default {
} }
} }
.newsBanner { .newsBanner {
.newsBannerB { // .newsBannerB {
.newsBanner-title { .newsBanner-title {
font-size: 13px; font-size: 13px;
} }
} // }
} }
.tabs1{ .tabs1{
margin-top: 20px; margin-top: 20px;
...@@ -2292,6 +2355,10 @@ export default { ...@@ -2292,6 +2355,10 @@ export default {
height: 100%; height: 100%;
width: 100%; width: 100%;
position: relative; position: relative;
a:hover{
text-decoration: underline;
cursor: pointer;
}
.newsBanner-tp { .newsBanner-tp {
width: 100%; width: 100%;
...@@ -2309,20 +2376,27 @@ export default { ...@@ -2309,20 +2376,27 @@ export default {
padding: 0; padding: 0;
height: 50px; height: 50px;
display: flex; display: flex;
justify-content: center;
align-items: center; align-items: center;
}
.newsBanner-title { .newsBanner-title {
height: 50px; height: 50px;
width: 100%; width: 100%;
text-align: center; text-align: center;
line-height: 50px; line-height: 50px;
color: rgba(255, 255, 255, 1); color: rgba(255, 255, 255, 1);
cursor: pointer;
@include ellipsis; @include ellipsis;
a { a {
width: 459px;
color: rgba(255, 255, 255, 1); color: rgba(255, 255, 255, 1);
overflow: hidden;
text-overflow: ellipsis;
white-space:nowrap;
} }
} }
}
} }
.tabs1 { .tabs1 {
......
...@@ -92,24 +92,53 @@ export default { ...@@ -92,24 +92,53 @@ export default {
}, },
// 详情 // 详情
getInfo(id,directpath){ getInfo(id,directpath){
if(directpath&&directpath!==''&& directpath.length>0){
window.open(directpath,'_blank');
}else{
const matche = [ const matche = [
{ {
name: "中心活动", name: "中心活动",
path: "/News/Center", path: "/News/Center",
}
];
this.setMatche(matche);
if(directpath&&directpath!==''&& directpath.length>0){
this.clickDetailSave(id,directpath)
}else{
this.InfoFn(id)
} }
];
this.setMatche(matche); },
// 记录点击
async clickDetailSave(id,directpath) {
const query = {
id: id,
"businessCode": "centerNewsStrategy"
};
const clickDetailSaveRes = await this.$api.home.clickHit(
query
);
const { returnCode, data } = clickDetailSaveRes;
if (returnCode === "0") {
window.open(directpath,'_blank');
}
},
async InfoFn(id) {
const params = {
id: id,
token:this.$route.query.token ||''
};
const listRes = await this.$api.news.newsInfo(params);
const { returnCode, data ,returnMsg} = listRes;
if (returnCode === "0" && data !=null) {
localStorage.setItem("msg"+id, JSON.stringify(data));
let link = this.$router.resolve({ let link = this.$router.resolve({
path: `/News/msg?id=${id}`, path: `/News/msg?id=${id}&isList=1`,
}); });
window.open(link.href,'_blank') window.open(link.href,'_blank')
}else{
this.$message.error(returnMsg)
} }
},
}
}, },
}; };
</script> </script>
......
...@@ -58,9 +58,7 @@ export default { ...@@ -58,9 +58,7 @@ export default {
// 详情 // 详情
getInfo(id,directpath){ getInfo(id,directpath){
if(directpath&&directpath!==''&& directpath.length>0){
window.open(directpath,'_blank');
}else{
const matche = [ const matche = [
{ {
name: "深度资讯", name: "深度资讯",
...@@ -68,13 +66,32 @@ export default { ...@@ -68,13 +66,32 @@ export default {
} }
]; ];
this.setMatche(matche); this.setMatche(matche);
let link = this.$router.resolve({ this.clickDetailSave(id,directpath)
path: `/News/viewsub?id=${id}`,
});
window.open(link.href,'_blank')
}
} },
// 记录点击
async clickDetailSave(id,directpath) {
const query = {
id: id,
code:3
};
const clickDetailSaveRes = await this.$api.home.clickDetailSave(
query
);
const { returnCode, data } = clickDetailSaveRes;
if (returnCode === "0") {
if(directpath&&directpath!==''&& directpath.length>0){
window.open(directpath,'_blank');
}else{
let link = this.$router.resolve({
path: `/News/viewsub?id=${id}`,
});
window.open(link.href,'_blank')
}
}
},
} }
}; };
</script> </script>
......
...@@ -100,17 +100,32 @@ export default { ...@@ -100,17 +100,32 @@ export default {
]; ];
this.setMatche(matche); this.setMatche(matche);
if(directpath&&directpath!==''&& directpath.length>0){ this.clickDetailSave(id,directpath)
window.open(directpath,'_blank');
}else{
let link = this.$router.resolve({
path: `/News/msg?id=${id}`,
});
window.open(link.href,'_blank')
}
} },
},
// 记录点击
async clickDetailSave(id,directpath) {
const query = {
id: id,
code:2
};
const clickDetailSaveRes = await this.$api.home.clickDetailSave(
query
);
const { returnCode, data } = clickDetailSaveRes;
if (returnCode === "0") {
if(directpath&&directpath!==''&& directpath.length>0){
window.open(directpath,'_blank');
}else{
let link = this.$router.resolve({
path: `/News/msg?id=${id}`,
});
window.open(link.href,'_blank')
}
}
},
},
}; };
</script> </script>
<style lang="scss"> <style lang="scss">
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
</div> </div>
</div> </div>
<div class="msg-text" v-html="content"></div> <div class="msg-text" v-html="content"></div>
<div class="msg-text" v-if="content==''||content==null||content==undefined">没有可显示的内容!</div> <!-- <div class="msg-text" v-if="content==''||content==null||content==undefined">没有可显示的内容!</div> -->
</div> </div>
</div> </div>
<div class="xglj"> <div class="xglj">
...@@ -95,6 +95,7 @@ ...@@ -95,6 +95,7 @@
</div> </div>
</template> </template>
<script> <script>
import { Alert } from 'element-ui';
import { mapState,mapMutations } from "vuex"; import { mapState,mapMutations } from "vuex";
import breadcrumb from "../comps/breadcrumb.vue"; import breadcrumb from "../comps/breadcrumb.vue";
import list from "./comps/list.vue"; import list from "./comps/list.vue";
...@@ -214,13 +215,38 @@ export default { ...@@ -214,13 +215,38 @@ export default {
}; };
}, },
created() { created() {
if(this.$route.query.isList && this.$route.query.isList == 1){
let matche=[
{
name: "中心活动",
path: "/News/Center",
}
]
this.setMatche(matche);
let data = localStorage.getItem('msg'+this.id) ? JSON.parse(localStorage.getItem('msg'+this.id)) : null
this.content = data.content;
this.title = data.title;
this.showtime = data.showtime;
this.author = data.author;
this.source = data.source;
this.editor = data.editor;
this.xgljList(data.keyword);
this.InfoFn(); }else{
this.InfoFn();
}
this.newsTop10(); this.newsTop10();
this.announceList(); this.announceList();
this.zttjList(); this.zttjList();
}, },
mounted() {
window.onbeforeunload = () => {
localStorage.removeItem('msg'+this.id)
}
},
methods: { methods: {
...mapMutations({ ...mapMutations({
setMatche: "setMatche", setMatche: "setMatche",
......
...@@ -4,27 +4,27 @@ ...@@ -4,27 +4,27 @@
<div class="msg-cont"> <div class="msg-cont">
<div class="nsjg"> <div class="nsjg">
<Title :father="departments.title1"></Title> <Title :father="departments.title1"></Title>
<p>承担编码中心日常运行管理、政策研究、相关法律事务等工作,承担文秘、档案、保密、督办、安保及后勤工作。</p> <p>承担编码中心文秘、档案、保密、督办、安保与后勤、董事会及总经理办公会等行政管理工作,承担编码中心战略研究与投资管理、经营业绩考核管理工作,承担编码中心国际与公共事务组织协调工作,承担法律事务、合规风控、内部审计、行政数字化系统建设、信访等工作。</p>
</div> </div>
<div class="nsjg"> <div class="nsjg">
<Title :father="departments.title2"></Title> <Title :father="departments.title2"></Title>
<p>承担对全国商品条码系统成员的注册、续展、注销等业务管理工作,开展对地方分中心(办事处)业务方面的指导、管理及考核相关工作,开展编码管理规章制度研究和制修订等工作</p> <p>承担全国商品条码成员的注册、续展、注销、信息变更、档案管理等工作;建立和完善有关物品编码、商品条码管理规章制度;对全国物品编码分支机构进行日常管理和年度考核;开展渠道拓展工作,制定合作政策,协助分支机构完成终端客户的开发;统计分析商品条码系统成员数据</p>
</div> </div>
<div class="nsjg"> <div class="nsjg">
<Title :father="departments.title3"></Title> <Title :father="departments.title3"></Title>
<p>承担支撑物品编码事业发展的基础性、前瞻性技术研究,开展全球统一标识系统技术体系、物品编码技术、物联网技术、二维码技术、物流与电子商务等方面标准化及应用研究工作,承担编码中心科研管理工作,承担全国物品编码标准化技术委员会秘书处工作和全国物流信息管理标准化技术委员会秘书处工作。</p> <p>承担编码中心科研管理工作,建立并维护商品条码与自动识别技术体系,承担支撑物品编码事业发展的基础性、前瞻性技术研究,开展全球统一标识系统技术体系、物品编码技术、物联网技术、二维码技术、物流与电子商务等方面标准化及应用研究工作。承担全国物品编码标准化技术委员会秘书处工作和全国物流信息管理标准化技术委员会秘书处工作。承担SAC TC28/SC31秘书处工作和ISO/IEC JTC1/SC31国际技术归口工作。</p>
</div> </div>
<div class="nsjg"> <div class="nsjg">
<Title :father="departments.title4"></Title> <Title :father="departments.title4"></Title>
<p>负责对物品编码相关工作的宣传和应用推广,承担与政府部门、行业组织及企业的沟通联络工作,负责全球统一标识系统在各行业、领域的推广应用,负责编码中心国际交流合作与外事工作。</p> <p>承担物品编码相关产品的宣传工作,承担物品编码市场拓展与行业应用推广工作,建立编码中心产品营销体系,进行产品营销推广,承担编码中心的品牌管理和客户管理相关工作。承担中国ECR委员会秘书处工作和编码中心外事管理工作。</p>
</div> </div>
<div class="nsjg"> <div class="nsjg">
<Title :father="departments.title5"></Title> <Title :father="departments.title5"></Title>
<p>负责编码中心信息化工作的统一管理;负责信息化相关的采购工作;负责编码中心网站、公共信息系统、基础数据库、数据中心等公共基础设施的建设、管理与维护工作;负责编码中心网络安全保障与网络保密管理工作;负责信息化领域的技术跟踪与研究工作</p> <p>承担编码中心公共和业务信息系统建设,负责数据安全工作,开展信息技术相关研究</p>
</div> </div>
<div class="nsjg"> <div class="nsjg">
<Title :father="departments.title6"></Title> <Title :father="departments.title6"></Title>
<p>承担物品编码与自动识别技术研究成果转化,搭建零售商与供应商沟通合作平台,承担商品信息服务产品的开发与市场化运营工作,开展商品相关信息服务和增值服务工作</p> <p>承担产品需求分析、产品设计、开发、运营和优化改进工作,承担编码中心条码系统成员数据库以及产品数据库的建设和运维工作,并对数据进行收集整理、分析、审核等,为各项产品提供数据支撑服务</p>
</div> </div>
<div class="nsjg"> <div class="nsjg">
<Title :father="departments.title7"></Title> <Title :father="departments.title7"></Title>
...@@ -32,23 +32,23 @@ ...@@ -32,23 +32,23 @@
</div> </div>
<div class="nsjg"> <div class="nsjg">
<Title :father="departments.title8"></Title> <Title :father="departments.title8"></Title>
<p>统一组织管理全国商品条码质量服务工作,实施服务性检验及市场调查,负责条码、射频识别等检测技术研究及标准化工作,开展条码、射频识别相关检验服务及技术培训</p> <p>承担商品条码、射频识别等相关检测工作,开展商品条码质量市场调查和质量改进,商品条码印刷质量服务工作,承担条码、射频识别等检测技术研究及标准化工作,实施全国商品条码质检员培训,承担国家条码质量检验检测中心和国家射频识别产品质量检验检测中心管理工作</p>
</div> </div>
<div class="nsjg"> <div class="nsjg">
<Title :father="departments.title9"></Title> <Title :father="departments.title9"></Title>
<p>负责编码中心通用物资编目与供应链融合研究、通用物资编目技术研究与标准制定、通用物资产品数据采集与处理、产品编目数据审核与整编、编目平台系统运行与维护、编目数据应用与实施,以及国家通用物资编目体系研究建设等工作。</p> <p>承担物资编目技术研究与标准化管理工作,组织开展物资编目相关数据应用工作,承担物资编目重大课题项目管理工作以及新业务开发工作。</p>
</div> </div>
<div class="nsjg"> <div class="nsjg">
<Title :father="departments.title10"></Title> <Title :father="departments.title10"></Title>
<p>承担编码中心人力资源规划、管理与人才队伍建设工作,承担干部任免、岗位设置、工资管理、教育培训、职称管理及退休人员管理等工作。</p> <p>承担编码中心人力资源规划、管理与人才队伍建设工作,承担干部任免、岗位设置、人员招聘、薪酬管理、教育培训、人事劳动关系处理及退休人员管理等工作。</p>
</div> </div>
<div class="nsjg"> <div class="nsjg">
<Title :father="departments.title11"></Title> <Title :father="departments.title11"></Title>
<p>承担条码收费、财务核算、预决算、内部审计、国有资产管理、分支机构条码经营管理等工作,承担科研项目经费管理工作。</p> <p>承担编码中心财务预决算管理、财务督导管理、财务信息化管理、资产管理、财务收支管理、资金管理、税务管理、财务分析管理等工作。</p>
</div> </div>
<div class="nsjg"> <div class="nsjg">
<Title :father="departments.title12"></Title> <Title :father="departments.title12"></Title>
<p>承担党委日常工作,负责党务、纪检监察、工青妇等工作</p> <p>承担编码中心党务、党建、统战、工青妇、纪检及企业文化宣传等工作。协助党委落实全面从严治党主体责任,加强党风廉政建设</p>
</div> </div>
</div> </div>
</div> </div>
......
...@@ -173,9 +173,23 @@ export default { ...@@ -173,9 +173,23 @@ export default {
}, },
methods: { methods: {
showBookDetail(book) { showBookDetail(book) {
this.currentBook = book; this.clickDetailSave(book)
this.dialogVisible = true;
}, },
// 记录点击
async clickDetailSave(book) {
const query = {
id: book.id,
code:9
};
const clickDetailSaveRes = await this.$api.home.clickDetailSave(
query
);
const { returnCode, data } = clickDetailSaveRes;
if (returnCode === "0") {
this.currentBook = book;
this.dialogVisible = true;
}
},
async filePath() { async filePath() {
......
...@@ -119,6 +119,12 @@ export default { ...@@ -119,6 +119,12 @@ export default {
usernamePattern: /(?!\d+$)[\dA-Za-z\u4e00-\u9fa5]{1,10}$/, usernamePattern: /(?!\d+$)[\dA-Za-z\u4e00-\u9fa5]{1,10}$/,
mobilePattern: /^((13[0-9])|(15[^4])|(18[0-9])|(17[0-8])|(147))\d{8}$/, mobilePattern: /^((13[0-9])|(15[^4])|(18[0-9])|(17[0-8])|(147))\d{8}$/,
pwdPattern: /[A-Za-z0-9_]{6,20}$/, pwdPattern: /[A-Za-z0-9_]{6,20}$/,
type:this.$route.query.isAgree || ''
}
},
created(){
if(!this.type || this.type==''){
this.$router.push({name:'login'})
} }
}, },
methods: { methods: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment