Commit 6ab9103e by 梁建民

Merge branch 'ljm_sample' into Development

# Conflicts:
#	view/10.js
#	view/11.js
#	view/15.js
#	view/16.js
#	view/17.js
#	view/18.js
#	view/19.js
#	view/21.js
#	view/22.js
#	view/23.js
#	view/24.js
#	view/25.js
#	view/26.js
#	view/27.js
#	view/3.js
#	view/42.js
#	view/43.js
#	view/8.js
#	view/9.js
#	view/app.js
parents 1c717162 dc2c4a9c
...@@ -24,7 +24,7 @@ switch (window.location.hostname) { ...@@ -24,7 +24,7 @@ switch (window.location.hostname) {
urlApi = 'https://szapi.ichunt.com/'; urlApi = 'https://szapi.ichunt.com/';
url = 'https://szm.ichunt.com/v3/'; url = 'https://szm.ichunt.com/v3/';
urlPc = 'https://sz.ichunt.com/v3/'; urlPc = 'https://sz.ichunt.com/v3/';
zyApi = 'https://tso.ichunt.com'; zyApi = 'https://szso.ichunt.com';
lyApi = 'https://szso.ichunt.com'; lyApi = 'https://szso.ichunt.com';
break; break;
case "tm.ichunt.com": case "tm.ichunt.com":
...@@ -429,7 +429,23 @@ export const apis = { ...@@ -429,7 +429,23 @@ export const apis = {
/** /**
* 资料下载分类获取 * 资料下载分类获取
*/ */
showClass: productionUrlApi + 'article/show_class' showClass: productionUrlApi + 'article/show_class',
/**
* 自营样品分类统计
*/
aggSample: zyApi + '/search/ZiYing/aggSample',
/**
* 自营属性输出
*/
aggs: zyApi + '/search/ZiYing/aggs',
/**
* 自营搜索
*/
ZiYingIndex: zyApi + '/search/ZiYing/index',
/**
* 获取banner
*/
getsamplebanner: url + '/getsamplebanner'
} }
...@@ -726,5 +742,17 @@ export const services = { ...@@ -726,5 +742,17 @@ export const services = {
}, },
showClass(params) { showClass(params) {
return axios.post(apis.showClass, params) return axios.post(apis.showClass, params)
},
aggSample(params) {
return axios.post(apis.aggSample, params)
},
aggs(params) {
return axios.post(apis.aggs, params)
},
ZiYingIndex(params) {
return axios.post(apis.ZiYingIndex, params)
},
getsamplebanner(params){
return axios.post(apis.getsamplebanner, params)
} }
}; };
\ No newline at end of file
...@@ -9,8 +9,9 @@ ...@@ -9,8 +9,9 @@
.sample .banner { .sample .banner {
height: 173px; height: 173px;
width: 100%; width: 100%;
background: url("../../images/sample/samplebanner.png") no-repeat; }
background-size: 100% 100%; .sample .banner img {
width: 100%;
} }
.sample .zititle { .sample .zititle {
padding: 15px; padding: 15px;
...@@ -37,7 +38,8 @@ ...@@ -37,7 +38,8 @@
color: #ffa200; color: #ffa200;
} }
.sample .nav { .sample .nav {
padding: 0 15px ; position: relative;
z-index: 100;
} }
.sample .nav .van-hairline--top-bottom::after { .sample .nav .van-hairline--top-bottom::after {
border-width: 0 0 1px 0; border-width: 0 0 1px 0;
...@@ -79,16 +81,28 @@ ...@@ -79,16 +81,28 @@
.sample .con .con-group .cb-box p span { .sample .con .con-group .cb-box p span {
color: #666; color: #666;
} }
.sample .con .con-group .cb-box .btnx { .sample .con .con-group .cb-box .btn-wrap {
margin-top: 0.2rem;
}
.sample .con .con-group .cb-box .btn-wrap .btnw {
width: 2.133rem;
height: 30px;
line-height: 30px;
border-radius: 4px;
font-size: 13px;
color: #1080d0;
border: solid 1px #1080d0;
text-align: center;
}
.sample .con .con-group .cb-box .btn-wrap .btnx {
width: 3.5rem; width: 3.5rem;
height: 0.7rem; height: 30px;
line-height: 0.7rem; line-height: 30px;
border-radius: 4px; border-radius: 4px;
background: #1080d0; background: #1080d0;
color: #fff; color: #fff;
text-align: center; text-align: center;
cursor: pointer; cursor: pointer;
margin-top: 0.2rem;
} }
@media screen and (max-width: 320px) { @media screen and (max-width: 320px) {
.sample .con .con-group .cb-box { .sample .con .con-group .cb-box {
...@@ -170,3 +184,83 @@ ...@@ -170,3 +184,83 @@
background: rgba(0, 0, 0, 0.3); background: rgba(0, 0, 0, 0.3);
z-index: 999; z-index: 999;
} }
.sample .sample-search {
position: absolute;
top: 46px;
left: 0;
right: 0;
width: 100%;
background: #fff;
z-index: 101;
}
.sample .sample-search .mask {
position: fixed;
bottom: 0;
left: 0;
right: 0;
background: rgba(0, 0, 0, 0.3);
z-index: 999;
}
.sample .sample-search ul {
background: #fff;
padding-bottom: 3px;
height: 200px;
overflow-x: hidden;
overflow-y: auto;
}
.sample .sample-search ul li .tit {
color: #333;
font-size: 16px;
font-weight: 700;
padding: 0.4rem 0 0.4rem 0.2rem;
height: 0.53333rem;
line-height: 0.53333rem;
}
.sample .sample-search ul li dl {
display: flex;
flex-wrap: wrap;
}
.sample .sample-search ul li dl dd {
flex: 0 0 50%;
text-align: center;
height: 32px;
line-height: 32px;
font-size: 14px;
color: #333;
transition: all 0.2s ease;
border: 1px solid transparent;
}
.sample .sample-search ul li dl dd.curr {
border: 1px solid #1080d0;
color: #1080d0;
}
.sample .sample-search .button {
border-top: 1px solid #d6d7dc;
height: 40px;
line-height: 40px;
background: #fff;
-webkit-box-shadow: 0 2px 5px #eee;
box-shadow: 0 2px 5px #eee;
display: flex;
flex-direction: row;
justify-content: space-around;
}
.sample .sample-search .button a {
width: 50%;
font-size: 14px;
height: 39px;
line-height: 39px;
display: block;
text-align: center;
}
.sample .sample-search .button a.cancel {
color: #333;
border-radius: 5px;
}
.sample .sample-search .button a.confirm {
background: #1080d0;
color: #fff;
text-decoration: none;
border: none;
}
/*# sourceMappingURL=sample.css.map */
\ No newline at end of file
{"version":3,"sources":["sample.less"],"names":[],"mappings":"AAAA;EACE,oBAAA;;AADF,OAGE;EACE,uBAAA;EACA,gBAAA;EACA,mBAAA;;AANJ,OASE;EACE,aAAA;EACA,WAAA;;AAXJ,OASE,QAGE;EACE,WAAA;;AAbN,OAiBE;EACE,aAAA;;AAlBJ,OAiBE,SAGE;EACE,WAAA;EACA,eAAA;;AAtBN,OAiBE,SAQE;EACE,eAAA;EACA,WAAA;EACA,iBAAA;EACA,YAAA;EACA,iBAAA;;AA9BN,OAkCE;EACE,WAAA;EACA,iBAAA;;AApCJ,OAkCE,SAIE;EACE,oBAAA;;AAvCN,OAkCE,SAQE;EACE,cAAA;;AA3CN,OA+CE;EACE,kBAAA;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AA;EACA,kCAAA;EACA,0BAAA;EACA,aAAA;EACA,mBAAA;EACA,6BAAA;;AAxRN,OAuNE,eAwDE,QAWE;EACE,UAAA;EACA,eAAA;EACA,YAAA;EACA,iBAAA;EACA,cAAA;EACA,kBAAA;;AAEA,OA3EN,eAwDE,QAWE,EAQG;EACC,WAAA;EACA,kBAAA;;AAGF,OAhFN,eAwDE,QAWE,EAaG;EACC,mBAAA;EACA,WAAA;EACA,qBAAA;EACA,YAAA","file":"sample.css"}
\ No newline at end of file
.sample{ .sample {
padding-bottom:50px; padding-bottom: 50px;
.ele{text-overflow: ellipsis;overflow: hidden;white-space: nowrap;}
.banner{ .ele {
height:173px;width:100%; text-overflow: ellipsis;
background: url("../../images/sample/samplebanner.png") no-repeat; overflow: hidden;
background-size: 100% 100%; white-space: nowrap;
}
.banner {
height: 173px;
width: 100%;
img{
width: 100%;
}
} }
.zititle{
padding:15px; .zititle {
span{color:#333;font-size: 16px;} padding: 15px;
font{font-size: 12px;color:#999;margin-left: 10px;height:20px;line-height: 20px;}
span {
color: #333;
font-size: 16px;
}
font {
font-size: 12px;
color: #999;
margin-left: 10px;
height: 20px;
line-height: 20px;
}
} }
.fx_text{
color:#999; .fx_text {
color: #999;
text-align: right; text-align: right;
div{
padding:0 15px 10px; div {
padding: 0 15px 10px;
} }
span{
color:#ffa200 span {
color: #ffa200
} }
} }
.nav{
padding:0 15px ; .nav {
position: relative;
z-index: 100;
.van-hairline--top-bottom::after { .van-hairline--top-bottom::after {
border-width: 0 0 1px 0; border-width: 0 0 1px 0;
} }
} }
.con{
.con-group{ .con {
padding:15px; .con-group {
padding: 15px;
padding-bottom: 0px; padding-bottom: 0px;
.img-box{
width:2.933rem;height:2.933rem; .img-box {
img{width:100%;height:100%;} width: 2.933rem;
height: 2.933rem;
img {
width: 100%;
height: 100%;
}
} }
.cb-box{
width:6rem;height:2.933rem;padding-bottom: 15px; .cb-box {
.title{color:#333;font-size: 16px;.ele;margin-bottom: 0.15rem;} width: 6rem;
p{color:#333;font-size: 12px;span{color:#666;}.ele;height:0.45rem;line-height: 0.45rem;} height: 2.933rem;
.btnx{width:3.5rem;height:0.7rem;line-height: 0.7rem;border-radius: 4px;background: #1080d0;color:#fff;text-align: center;cursor: pointer;margin-top: 0.2rem;} padding-bottom: 15px;
.title {
color: #333;
font-size: 16px;
.ele;
margin-bottom: 0.15rem;
}
p {
color: #333;
font-size: 12px;
span {
color: #666;
}
.ele;
height: 0.45rem;
line-height: 0.45rem;
}
.btn-wrap{
margin-top: 0.2rem;
.btnw{
width: 2.133rem;
height: 30px;
line-height: 30px;
border-radius: 4px;
font-size: 13px;
color: #1080d0;
border: solid 1px #1080d0;
text-align: center;
}
.btnx {
width: 3.5rem;
height: 30px;
line-height: 30px;
border-radius: 4px;
background: #1080d0;
color: #fff;
text-align: center;
cursor: pointer;
}
}
} }
@media screen and (max-width: 320px) { @media screen and (max-width: 320px) {
.cb-box{ .cb-box {
width:5.8rem;height:2.933rem; width: 5.8rem;
.title{margin-bottom: 0.05rem;} height: 2.933rem;
.title {
margin-bottom: 0.05rem;
}
} }
} }
} }
} }
.fix-btns{
position: fixed;left:0;bottom:0;right:0;height:50px;line-height: 50px;color:#fff;font-size: 16px; .fix-btns {
text-align: center;background: #1080d0;box-shadow: 0 0 10px #000;cursor: pointer; position: fixed;
left: 0;
bottom: 0;
right: 0;
height: 50px;
line-height: 50px;
color: #fff;
font-size: 16px;
text-align: center;
background: #1080d0;
box-shadow: 0 0 10px #000;
cursor: pointer;
} }
.get-user-pop{
.get-user-con{ .get-user-pop {
background: #fff;width:8.667rem; .get-user-con {
height:5.52rem;border-radius: 3px; background: #fff;
width: 8.667rem;
height: 5.52rem;
border-radius: 3px;
position: fixed; position: fixed;
top:50%; top: 50%;
left:50%; left: 50%;
margin-left: -4.3335rem; margin-left: -4.3335rem;
margin-top: -2.76rem; margin-top: -2.76rem;
box-shadow: 0 0 20px #e5e5e5; box-shadow: 0 0 20px #e5e5e5;
z-index: 99999; z-index: 99999;
h3{
color:#ffa200;font-size: 16px;height:2.027rem; h3 {
line-height:2.027rem;text-align: center; color: #ffa200;
i{position: relative;float: right;top:-1.4rem;color:#fff;font-size: 20px;} font-size: 16px;
height: 2.027rem;
line-height: 2.027rem;
text-align: center;
i {
position: relative;
float: right;
top: -1.4rem;
color: #fff;
font-size: 20px;
}
}
h2 {
color: #000;
font-size: 14px;
text-align: center;
width: 60%;
margin: 0 auto;
}
span {
display: block;
cursor: pointer;
height: 30px;
line-height: 30px;
width: 150px;
text-align: center;
background: #1080d0;
color: #fff;
font-size: 14px;
border-radius: 30px;
margin: 0 auto;
margin-top: 50px;
} }
h2{color:#000;font-size: 14px;text-align: center;width:60%;margin:0 auto;}
span{display: block;cursor: pointer;height:30px;line-height: 30px;width:150px;text-align: center;background: #1080d0;color:#fff;font-size: 14px;border-radius: 30px;margin:0 auto;margin-top: 50px;}
} }
.mask{position: fixed;bottom:0;top:0;left:0;right:0;background: rgba(0,0,0,0.3);z-index: 999;}
.mask {
position: fixed;
bottom: 0;
top: 0;
left: 0;
right: 0;
background: rgba(0, 0, 0, 0.3);
z-index: 999;
}
} }
.sample-search {
position: absolute;
top: 46px;
left: 0;
right: 0;
width: 100%;
background: #fff;
z-index: 101;
.mask {
position: fixed;
bottom: 0;
left: 0;
right: 0;
background: rgba(0, 0, 0, 0.3);
z-index: 999;
}
ul {
background: #fff;
padding-bottom: 3px;
height: 200px;
overflow-x: hidden;
overflow-y: auto;
li {
.tit {
color: #333;
font-size: 16px;
font-weight: 700;
padding: 0.4rem 0 0.4rem 0.2rem;
height: 0.53333rem;
line-height: 0.53333rem;
}
dl {
display: flex;
flex-wrap: wrap;
dd {
flex: 0 0 50%;
text-align: center;
height: 32px;
line-height: 32px;
font-size: 14px;
color: #333;
transition: all 0.2s ease;
border: 1px solid transparent;
&.curr {
border: 1px solid #1080d0;
color: #1080d0;
}
}
}
}
}
.button {
border-top: 1px solid #d6d7dc;
height: 40px;
line-height: 40px;
background: #fff;
-webkit-box-shadow: 0 2px 5px #eee;
box-shadow: 0 2px 5px #eee;
display: flex;
flex-direction: row;
justify-content: space-around;
a {
width: 50%;
font-size: 14px;
height: 39px;
line-height: 39px;
display: block;
text-align: center;
&.cancel {
color: #333;
border-radius: 5px;
}
&.confirm {
background: #1080d0;
color: #fff;
text-decoration: none;
border: none;
}
}
}
}
} }
.sample{padding-bottom:50px}.sample .ele{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.sample .banner{height:173px;width:100%;background:url("../../images/sample/samplebanner.png") no-repeat;background-size:100% 100%}.sample .zititle{padding:15px}.sample .zititle span{color:#333;font-size:16px}.sample .zititle font{font-size:12px;color:#999;margin-left:10px;height:20px;line-height:20px}.sample .fx_text{color:#999;text-align:right}.sample .fx_text div{padding:0 15px 10px}.sample .fx_text span{color:#ffa200}.sample .nav{padding:0 15px }.sample .nav .van-hairline--top-bottom::after{border-width:0 0 1px 0}.sample .con .con-group{padding:15px;padding-bottom:0px}.sample .con .con-group .img-box{width:2.933rem;height:2.933rem}.sample .con .con-group .img-box img{width:100%;height:100%}.sample .con .con-group .cb-box{width:6rem;height:2.933rem;padding-bottom:15px}.sample .con .con-group .cb-box .title{color:#333;font-size:16px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;margin-bottom:.15rem}.sample .con .con-group .cb-box p{color:#333;font-size:12px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;height:.45rem;line-height:.45rem}.sample .con .con-group .cb-box p span{color:#666}.sample .con .con-group .cb-box .btnx{width:3.5rem;height:.7rem;line-height:.7rem;border-radius:4px;background:#1080d0;color:#fff;text-align:center;cursor:pointer;margin-top:.2rem}@media screen and (max-width:320px){.sample .con .con-group .cb-box{width:5.8rem;height:2.933rem}.sample .con .con-group .cb-box .title{margin-bottom:.05rem}}.sample .fix-btns{position:fixed;left:0;bottom:0;right:0;height:50px;line-height:50px;color:#fff;font-size:16px;text-align:center;background:#1080d0;box-shadow:0 0 10px #000;cursor:pointer}.sample .get-user-pop .get-user-con{background:#fff;width:8.667rem;height:5.52rem;border-radius:3px;position:fixed;top:50%;left:50%;margin-left:-4.3335rem;margin-top:-2.76rem;box-shadow:0 0 20px #e5e5e5;z-index:99999}.sample .get-user-pop .get-user-con h3{color:#ffa200;font-size:16px;height:2.027rem;line-height:2.027rem;text-align:center}.sample .get-user-pop .get-user-con h3 i{position:relative;float:right;top:-1.4rem;color:#fff;font-size:20px}.sample .get-user-pop .get-user-con h2{color:#000;font-size:14px;text-align:center;width:60%;margin:0 auto}.sample .get-user-pop .get-user-con span{display:block;cursor:pointer;height:30px;line-height:30px;width:150px;text-align:center;background:#1080d0;color:#fff;font-size:14px;border-radius:30px;margin:0 auto;margin-top:50px}.sample .get-user-pop .mask{position:fixed;bottom:0;top:0;left:0;right:0;background:rgba(0,0,0,0.3);z-index:999}
\ No newline at end of file
.sample-apply {
padding-bottom: 55px;
}
.sample-apply .ele {
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}
.sample-apply .line {
height: 5px;
background: #f3f3f3;
}
.sample-apply .van-collapse-item__content {
padding-top: 0px;
padding-bottom: 0px;
}
.sample-apply .van-cell__title {
font-size: 16px;
}
.sample-apply .info-con .img-box {
border: 1px solid #e5e5e5;
box-sizing: border-box;
width: 2rem;
height: 2rem;
}
.sample-apply .info-con .img-box img {
width: 100%;
height: 100%;
}
.sample-apply .info-con .cb-box {
width: 6.9rem;
height: 2rem;
}
.sample-apply .info-con .cb-box .title {
color: #333;
font-size: 16px;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
margin-bottom: 0.08rem;
}
.sample-apply .info-con .cb-box p {
color: #333;
font-size: 12px;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
height: 0.45rem;
line-height: 0.45rem;
}
.sample-apply .info-con .cb-box p span {
color: #666;
}
@media screen and (max-width: 320px) {
.sample-apply .info-con .cb-box {
width: 6.8rem;
position: relative;
top: -0.1rem;
}
.sample-apply .info-con .cb-box .title {
margin-bottom: 0rem;
}
}
.sample-apply .info-detail {
margin-top: 18px;
padding-bottom: 25px;
}
.sample-apply .info-detail p {
color: #333;
font-size: 12px;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
height: 0.5rem;
line-height: 0.5rem;
}
.sample-apply .info-detail p span {
color: #666;
}
.sample-apply .info-detail p.canshudetail {
overflow: hidden;
text-overflow: ellipsis;
white-space: normal;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
height: auto;
}
.sample-apply .form-info .form-group {
background: #fff;
padding: 15px;
border-top: 5px solid #f3f3f3;
}
.sample-apply .form-info .form-group h3 {
color: #666;
font-size: 16px;
}
.sample-apply .form-info .form-group h3 span.fr {
color: #333;
}
.sample-apply .form-info .form-group input {
border: 0px;
display: block;
padding: 15px 16px;
color: #333;
font-size: 14px;
width: 100%;
box-sizing: border-box;
padding-bottom: 0px;
}
.sample-apply .form-info .form-group textarea {
border: 0px;
display: block;
padding: 15px 16px;
color: #333;
font-size: 14px;
width: 100%;
box-sizing: border-box;
}
.sample-apply .form-info .form-group input::-webkit-input-placeholder,
.sample-apply .form-info .form-group textarea::-webkit-input-placeholder {
color: #999;
}
.sample-apply .form-info .form-group.by {
padding-top: 25px;
padding-bottom: 25px;
}
.sample-apply .form-info .form-group.adderss-sample {
padding-top: 12px;
padding-bottom: 12px;
}
.sample-apply .form-info .form-group.adderss-sample p {
color: #333;
font-size: 12px;
height: 0.55rem;
line-height: 0.55rem;
width: 90%;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}
.sample-apply .form-info .form-group.adderss-sample span {
position: relative;
top: -0.8rem;
}
.sample-apply .fix-btns {
position: fixed;
left: 0;
bottom: 0;
right: 0;
height: 50px;
line-height: 50px;
color: #fff;
font-size: 16px;
text-align: center;
background: #1080d0;
box-shadow: 0 0 10px #000;
cursor: pointer;
}
.sample-apply .submit-success-pop .get-user-con {
background: #fff;
width: 8.667rem;
height: 6.4rem;
border-radius: 3px;
position: fixed;
top: 50%;
left: 50%;
margin-left: -4.3335rem;
margin-top: -3.2rem;
box-shadow: 0 0 20px #e5e5e5;
z-index: 99999;
}
.sample-apply .submit-success-pop .get-user-con h3 {
color: #ffa200;
font-size: 16px;
height: 1.8rem;
line-height: 1.8rem;
text-align: center;
}
.sample-apply .submit-success-pop .get-user-con h3 i {
position: relative;
float: right;
top: -1.4rem;
color: #fff;
font-size: 20px;
}
.sample-apply .submit-success-pop .get-user-con p {
text-align: center;
font-size: 12px;
color: #666;
margin-bottom: 0.5rem;
}
.sample-apply .submit-success-pop .get-user-con h2 {
color: #000;
font-size: 14px;
text-align: center;
width: 60%;
margin: 0 auto;
}
.sample-apply .submit-success-pop .get-user-con .txt {
display: flex;
justify-content: space-between;
margin: 0.3rem auto 0;
width: 64%;
}
.sample-apply .submit-success-pop .get-user-con .txt span {
font-size: 13px;
color: #999999;
}
.sample-apply .submit-success-pop .get-user-con .share-btn-wrap {
display: flex;
justify-content: space-between;
margin: 0.627rem auto 0;
width: 83%;
}
.sample-apply .submit-success-pop .get-user-con .share-btn-wrap .l {
width: 100px;
cursor: pointer;
height: 30px;
line-height: 30px;
border: solid 1px #0080cc;
text-align: center;
color: #1080d0;
font-size: 14px;
border-radius: 30px;
}
.sample-apply .submit-success-pop .get-user-con .share-btn-wrap .r {
cursor: pointer;
height: 30px;
line-height: 30px;
width: 150px;
text-align: center;
background: #1080d0;
color: #fff;
font-size: 14px;
border-radius: 30px;
}
.sample-apply .submit-success-pop .get-user-con .tips {
color: #999;
font-size: 12px;
text-align: center;
margin-top: 15px;
}
.sample-apply .submit-success-pop .get-user-con .tips em {
color: #cf1111;
margin-right: 0.1rem;
}
.sample-apply .submit-success-pop .mask {
position: fixed;
bottom: 0;
top: 0;
left: 0;
right: 0;
background: rgba(0, 0, 0, 0.3);
z-index: 999;
}
/*# sourceMappingURL=sampleapply.css.map */
\ No newline at end of file
{"version":3,"sources":["sampleapply.less"],"names":[],"mappings":"AAAA;EACE,oBAAA;;AADF,aAGE;EACE,uBAAA;EACA,gBAAA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,aAwLE,oBACE,cAqDE;EACE,aAAA;EACA,8BAAA;EACA,uBAAA;EACA,UAAA;;AAlPR,aAwLE,oBACE,cAqDE,gBAKE;EACE,YAAA;EACA,eAAA;EACA,YAAA;EACA,iBAAA;EACA,yBAAA;EACA,kBAAA;EACA,cAAA;EACA,eAAA;EACA,mBAAA;;AA5PV,aAwLE,oBACE,cAqDE,gBAiBE;EACE,eAAA;EACA,YAAA;EACA,iBAAA;EACA,YAAA;EACA,kBAAA;EACA,mBAAA;EACA,WAAA;EACA,eAAA;EACA,mBAAA;;AAxQV,aAwLE,oBACE,cAoFE;EACE,WAAA;EACA,eAAA;EACA,kBAAA;EACA,gBAAA;;AAjRR,aAwLE,oBACE,cAoFE,MAME;EACE,cAAA;EACA,oBAAA;;AArRV,aAwLE,oBAkGE;EACE,eAAA;EACA,SAAA;EACA,MAAA;EACA,OAAA;EACA,QAAA;EACA,8BAAA;EACA,YAAA","file":"sampleapply.css"}
\ No newline at end of file
.sample-apply{ .sample-apply {
padding-bottom: 55px; padding-bottom: 55px;
.ele{text-overflow: ellipsis;overflow: hidden;white-space: nowrap;}
.line{height:5px;background: #f3f3f3;} .ele {
.van-collapse-item__content{padding-top:0px;padding-bottom: 0px;} text-overflow: ellipsis;
.van-cell__title{font-size: 16px;} overflow: hidden;
.info-con{ white-space: nowrap;
.img-box{ }
border:1px solid #e5e5e5;box-sizing: border-box;
width:2rem;height:2rem; .line {
img{width:100%;height:100%;} height: 5px;
background: #f3f3f3;
}
.van-collapse-item__content {
padding-top: 0px;
padding-bottom: 0px;
}
.van-cell__title {
font-size: 16px;
}
.info-con {
.img-box {
border: 1px solid #e5e5e5;
box-sizing: border-box;
width: 2rem;
height: 2rem;
img {
width: 100%;
height: 100%;
}
} }
.cb-box{
width:6.9rem;height:2rem; .cb-box {
.title{color:#333;font-size: 16px;.ele;margin-bottom: 0.08rem;} width: 6.9rem;
p{color:#333;font-size: 12px;span{color:#666;}.ele;height:0.45rem;line-height: 0.45rem;} height: 2rem;
.title {
color: #333;
font-size: 16px;
.ele;
margin-bottom: 0.08rem;
}
p {
color: #333;
font-size: 12px;
span {
color: #666;
}
.ele;
height: 0.45rem;
line-height: 0.45rem;
}
} }
@media screen and (max-width: 320px) { @media screen and (max-width: 320px) {
.cb-box{ .cb-box {
width:6.8rem; width: 6.8rem;
position: relative;top:-0.1rem; position: relative;
.title{margin-bottom: 0rem;} top: -0.1rem;
.title {
margin-bottom: 0rem;
}
} }
} }
} }
.info-detail{
.info-detail {
margin-top: 18px; margin-top: 18px;
padding-bottom: 25px; padding-bottom: 25px;
p{
color:#333;font-size: 12px;.ele; p {
span{color:#666;} color: #333;
height:0.5rem;line-height: 0.5rem; font-size: 12px;
&.canshudetail{ .ele;
overflow : hidden;
span {
color: #666;
}
height: 0.5rem;
line-height: 0.5rem;
&.canshudetail {
overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: normal; white-space: normal;
display: -webkit-box; display: -webkit-box;
-webkit-line-clamp: 3; -webkit-line-clamp: 3;
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
height:auto; height: auto;
} }
} }
} }
.form-info{
.form-group{ .form-info {
.form-group {
background: #fff; background: #fff;
padding:15px; padding: 15px;
border-top:5px solid #f3f3f3; border-top: 5px solid #f3f3f3;
h3{color:#666;font-size: 16px;span.fr{color:#333;}}
input{border:0px;display: block; padding:15px 16px;color:#333;font-size: 14px;width:100%;box-sizing: border-box;padding-bottom: 0px;} h3 {
textarea{border:0px;display: block;padding:15px 16px;color:#333;font-size: 14px;width:100%;box-sizing: border-box;padding-bottom: 0px;} color: #666;
input::-webkit-input-placeholder,textarea::-webkit-input-placeholder{ font-size: 16px;
color:#999;
} span.fr {
&.by{padding-top:25px;padding-bottom: 25px;} color: #333;
&.adderss-sample{ }
padding-top:12px;padding-bottom: 12px; }
p{color:#333;font-size: 12px;height:0.55rem;line-height: 0.55rem;width:90%;.ele}
span{position: relative;top:-0.8rem;} input {
border: 0px;
display: block;
padding: 15px 16px;
color: #333;
font-size: 14px;
width: 100%;
box-sizing: border-box;
padding-bottom: 0px;
}
textarea {
border: 0px;
display: block;
padding: 15px 16px;
color: #333;
font-size: 14px;
width: 100%;
box-sizing: border-box;
}
input::-webkit-input-placeholder, textarea::-webkit-input-placeholder {
color: #999;
}
&.by {
padding-top: 25px;
padding-bottom: 25px;
}
&.adderss-sample {
padding-top: 12px;
padding-bottom: 12px;
p {
color: #333;
font-size: 12px;
height: 0.55rem;
line-height: 0.55rem;
width: 90%;
.ele
}
span {
position: relative;
top: -0.8rem;
}
} }
} }
} }
.fix-btns{
position: fixed;left:0;bottom:0;right:0;height:50px;line-height: 50px;color:#fff;font-size: 16px; .fix-btns {
text-align: center;background: #1080d0;box-shadow: 0 0 10px #000;cursor: pointer; position: fixed;
left: 0;
bottom: 0;
right: 0;
height: 50px;
line-height: 50px;
color: #fff;
font-size: 16px;
text-align: center;
background: #1080d0;
box-shadow: 0 0 10px #000;
cursor: pointer;
} }
.submit-success-pop{
.get-user-con{ .submit-success-pop {
background: #fff;width:8.667rem; .get-user-con {
height:6.4rem;border-radius: 3px; background: #fff;
width: 8.667rem;
height: 6.4rem;
border-radius: 3px;
position: fixed; position: fixed;
top:50%; top: 50%;
left:50%; left: 50%;
margin-left: -4.3335rem; margin-left: -4.3335rem;
margin-top: -3.2rem; margin-top: -3.2rem;
box-shadow: 0 0 20px #e5e5e5; box-shadow: 0 0 20px #e5e5e5;
z-index: 99999; z-index: 99999;
h3{
color:#ffa200;font-size: 16px;height:1.8rem; h3 {
line-height:1.8rem;text-align: center; color: #ffa200;
i{position: relative;float: right;top:-1.4rem;color:#fff;font-size: 20px;} font-size: 16px;
} height: 1.8rem;
p{text-align: center;font-size: 12px;color:#666;margin-bottom: 0.5rem;} line-height: 1.8rem;
h2{color:#000;font-size: 14px;text-align: center;width:60%;margin:0 auto;} text-align: center;
span{display: block;cursor: pointer;height:30px;line-height: 30px;width:150px;text-align: center;background: #1080d0;color:#fff;font-size: 14px;border-radius: 30px;margin:0 auto;margin-top: 30px;}
.tips{color:#999;font-size: 12px;text-align: center;margin-top: 15px;} i {
position: relative;
float: right;
top: -1.4rem;
color: #fff;
font-size: 20px;
}
}
p {
text-align: center;
font-size: 12px;
color: #666;
margin-bottom: 0.5rem;
}
h2 {
color: #000;
font-size: 14px;
text-align: center;
width: 60%;
margin: 0 auto;
}
.txt{
display: flex;
justify-content: space-between;
margin: 0.3rem auto 0;
width: 64%;
span{
font-size: 13px;
color: #999999;
}
}
.share-btn-wrap {
display: flex;
justify-content: space-between;
margin: 0.627rem auto 0;
width: 83%;
.l {
width: 100px;
cursor: pointer;
height: 30px;
line-height: 30px;
border: solid 1px #0080cc;
text-align: center;
color: #1080d0;
font-size: 14px;
border-radius: 30px;
}
.r {
cursor: pointer;
height: 30px;
line-height: 30px;
width: 150px;
text-align: center;
background: #1080d0;
color: #fff;
font-size: 14px;
border-radius: 30px;
}
}
.tips {
color: #999;
font-size: 12px;
text-align: center;
margin-top: 15px;
em {
color: #cf1111;
margin-right: 0.1rem;
}
}
}
.mask {
position: fixed;
bottom: 0;
top: 0;
left: 0;
right: 0;
background: rgba(0, 0, 0, 0.3);
z-index: 999;
} }
.mask{position: fixed;bottom:0;top:0;left:0;right:0;background: rgba(0,0,0,0.3);z-index: 999;}
} }
} }
\ No newline at end of file
.sample-apply{padding-bottom:55px}.sample-apply .ele{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.sample-apply .line{height:5px;background:#f3f3f3}.sample-apply .van-collapse-item__content{padding-top:0px;padding-bottom:0px}.sample-apply .van-cell__title{font-size:16px}.sample-apply .info-con .img-box{border:1px solid #e5e5e5;box-sizing:border-box;width:2rem;height:2rem}.sample-apply .info-con .img-box img{width:100%;height:100%}.sample-apply .info-con .cb-box{width:6.9rem;height:2rem}.sample-apply .info-con .cb-box .title{color:#333;font-size:16px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;margin-bottom:.08rem}.sample-apply .info-con .cb-box p{color:#333;font-size:12px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;height:.45rem;line-height:.45rem}.sample-apply .info-con .cb-box p span{color:#666}@media screen and (max-width:320px){.sample-apply .info-con .cb-box{width:6.8rem;position:relative;top:-0.1rem}.sample-apply .info-con .cb-box .title{margin-bottom:0rem}}.sample-apply .info-detail{margin-top:18px;padding-bottom:25px}.sample-apply .info-detail p{color:#333;font-size:12px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;height:.5rem;line-height:.5rem}.sample-apply .info-detail p span{color:#666}.sample-apply .info-detail p.canshudetail{overflow:hidden;text-overflow:ellipsis;white-space:normal;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;height:auto}.sample-apply .form-info .form-group{background:#fff;padding:15px;border-top:5px solid #f3f3f3}.sample-apply .form-info .form-group h3{color:#666;font-size:16px}.sample-apply .form-info .form-group h3 span.fr{color:#333}.sample-apply .form-info .form-group input{border:0px;display:block;padding:15px 16px;color:#333;font-size:14px;width:100%;box-sizing:border-box;padding-bottom:0px}.sample-apply .form-info .form-group textarea{border:0px;display:block;padding:15px 16px;color:#333;font-size:14px;width:100%;box-sizing:border-box;padding-bottom:0px}.sample-apply .form-info .form-group input::-webkit-input-placeholder,.sample-apply .form-info .form-group textarea::-webkit-input-placeholder{color:#999}.sample-apply .form-info .form-group.by{padding-top:25px;padding-bottom:25px}.sample-apply .form-info .form-group.adderss-sample{padding-top:12px;padding-bottom:12px}.sample-apply .form-info .form-group.adderss-sample p{color:#333;font-size:12px;height:.55rem;line-height:.55rem;width:90%;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.sample-apply .form-info .form-group.adderss-sample span{position:relative;top:-0.8rem}.sample-apply .fix-btns{position:fixed;left:0;bottom:0;right:0;height:50px;line-height:50px;color:#fff;font-size:16px;text-align:center;background:#1080d0;box-shadow:0 0 10px #000;cursor:pointer}.sample-apply .submit-success-pop .get-user-con{background:#fff;width:8.667rem;height:6.4rem;border-radius:3px;position:fixed;top:50%;left:50%;margin-left:-4.3335rem;margin-top:-3.2rem;box-shadow:0 0 20px #e5e5e5;z-index:99999}.sample-apply .submit-success-pop .get-user-con h3{color:#ffa200;font-size:16px;height:1.8rem;line-height:1.8rem;text-align:center}.sample-apply .submit-success-pop .get-user-con h3 i{position:relative;float:right;top:-1.4rem;color:#fff;font-size:20px}.sample-apply .submit-success-pop .get-user-con p{text-align:center;font-size:12px;color:#666;margin-bottom:.5rem}.sample-apply .submit-success-pop .get-user-con h2{color:#000;font-size:14px;text-align:center;width:60%;margin:0 auto}.sample-apply .submit-success-pop .get-user-con span{display:block;cursor:pointer;height:30px;line-height:30px;width:150px;text-align:center;background:#1080d0;color:#fff;font-size:14px;border-radius:30px;margin:0 auto;margin-top:30px}.sample-apply .submit-success-pop .get-user-con .tips{color:#999;font-size:12px;text-align:center;margin-top:15px}.sample-apply .submit-success-pop .mask{position:fixed;bottom:0;top:0;left:0;right:0;background:rgba(0,0,0,0.3);z-index:999}
\ No newline at end of file
...@@ -340,7 +340,7 @@ const routes = [{ ...@@ -340,7 +340,7 @@ const routes = [{
} }
}, },
{ {
path: '/downoad', path: '/download',
component: Download, component: Download,
meta: { meta: {
title: '资料下载' title: '资料下载'
......
import Vue from 'vue' import Vue from 'vue'
import { import {
Toast Toast
} from 'vant'; } from 'vant';
import { import {
services as Services services as Services
} from '../../../api/index' } from '../../../api/index'
import Util from "../../../util";
Vue.use(Toast); Vue.use(Toast);
const state = { const state = {
classList: [], classList: [],
goodList: [], goodList: [],
loading: false, loading: false,
finished: false, finished: false,
goodCount: 0 goodCount: 0,
aggSample: [],
aggs: {},
aggsFlag: [],
ziYingIndex:{},
smaple_class_id:'',
getsamplebanner:[]
} }
const mutations = { const mutations = {
classListM(state, payload) { ziYingIndex(state, payload) {
state.classList = payload.data state.ziYingIndex= payload.data;
}, },
goodList(state, payload) { aggs(state, payload) {
let arr = []; var arr = [];
for (let k in payload.data) { var obj = Object.keys(payload.data.aggs);
arr.push(payload.data[k])
if (payload.id) {
arr = payload.id.split(",");
}
for (let k in payload.data.aggs) {
for (let i = 0; i < payload.data.aggs[k].list.length; i++) {
payload.data.aggs[k].list[i].check = false;
for (let j = 0; j < arr.length; j++) {
if (payload.data.aggs[k].list[i].id == arr[j]) {
payload.data.aggs[k].list[i].check = !payload.data.aggs[k].list[i].check;
payload.data.aggs[k].list[i].flag=!payload.data.aggs[k].list[i].flag;
}
} }
state.goodList = state.goodList.concat(arr)
}
} }
}
state.aggs = payload.data;
},
aggSample(state, payload) {
state.smaple_class_id=payload.data[0].smaple_class_id;
state.aggSample = payload.data
},
classListM(state, payload) {
state.classList = payload.data
},
goodList(state, payload) {
let arr = [];
for (let k in payload.data) {
arr.push(payload.data[k]);
}
state.goodList = state.goodList.concat(arr)
},
getsamplebanner(state, payload) {
state.getsamplebanner= payload.data;
}
};
const actions = { const actions = {
getClasslist({ ziYingIndex({commit}, payload) {
commit, state.loading = true;
}) { state.finished = false;
Services.sampleClassList().then((res) => {
let data = res.data;
if (data.err_code == 0) { let param = {
commit("classListM", { 'sample_status/eq': 1
data: data.data || [], };
});
} else { let obj = Object.assign({}, param, payload.params);
commit("classListM", {
data: [], let params = Util.getParams(obj);
})
}
}).catch(function (err) { Services.ZiYingIndex(params).then((res) => {
commit("classListM", { state.loading = false;
data: [], let data = res.data;
}) if (data.error_code == 0) {
commit({
type: 'ziYingIndex',
data: data.data
});
state.finished = true;
} else {
state.loading = false;
state.finished = true;
Toast({
message: data.error_msg,
duration: 3000
});
}
}).catch(function (err) {
state.loading = false;
state.finished = true;
});
},
aggs({commit}, payload) {
let param = {
'sample_status/eq': 1
};
let obj = Object.assign({}, param, payload.params);
let params = Util.getParams(obj);
Services.aggs(params).then((res) => {
let data = res.data;
if (data.error_code == 0) {
commit({
type: 'aggs',
data: data.data,
id: payload.params.id
});
} else {
Toast({
message: data.error_msg,
duration: 3000
});
}
}).catch(function (err) {
});
},
aggSample({commit}, payload) {
var params = Util.getParams();
Services.aggSample(params).then((res) => {
let data = res.data;
if (data.error_code == 0) {
commit({
type: 'aggSample',
data: data.data
}); });
}, } else {
getGoodList({ Toast({
commit message: data.error_msg,
}, payload) { duration: 3000
state.loading = true; });
state.finished = false; }
let p = payload.data.p; }).catch(function (err) {
if (p == 1) {
state.goodList = []; });
},
getClasslist({commit}, payload) {
Services.sampleClassList().then((res) => {
let data = res.data;
if (data.err_code == 0) {
commit("classListM", {
data: data.data || [],
});
} else {
commit("classListM", {
data: [],
})
}
}).catch(function (err) {
commit("classListM", {
data: [],
})
});
},
getGoodList({commit}, payload) {
state.loading = true;
state.finished = false;
let p = payload.data.p;
if (p == 1) {
state.goodList = [];
}
let params = {
...payload.data,
limit: 10,
}
Services.sampleList(params).then((res) => {
state.loading = false;
let data = res.data;
if (data.err_code == 0) {
let totalPage = 0;
if (data.data.total) {
totalPage = Math.ceil(data.data.total / 10);
} }
let params = { if (p == totalPage || !totalPage) {
...payload.data, state.finished = true;
limit: 10,
} }
Services.sampleList(params).then((res) => { if (data.data.total) {
state.loading = false; commit('goodList', {
let data = res.data; data: data.data.data
if (data.err_code == 0) { })
let totalPage = 0; }
if (data.data.total) { } else {
totalPage = Math.ceil(data.data.total / 10); state.loading = false;
} state.finished = true;
if (p == totalPage || !totalPage) { }
state.finished = true; }).catch(function (err) {
} state.loading = false;
if (data.data.total) { state.finished = true;
commit('goodList', { });
data: data.data.data },
}) getsamplebanner({commit}, payload) {
}
} else { var params=Util.getParams();
state.loading = false;
state.finished = true; Services.getsamplebanner(params).then((res) => {
} state.loading = false;
}).catch(function (err) { let data = res.data;
state.loading = false; if (data.err_code == 0) {
state.finished = true; commit({
type: 'getsamplebanner',
data: data.data
}); });
} } else {
Toast({
message: data.error_msg,
duration: 3000
});
}
}).catch(function (err) {
});
}
} }
export default { export default {
state, state,
actions, actions,
mutations mutations
} }
\ No newline at end of file
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
<p class="t1">{{item.title}}</p> <p class="t1">{{item.title}}</p>
</template> </template>
<template v-else> <template v-else>
<p class="t1" @click="toUrl">{{item.title}}</p> <p class="t1">{{item.title}}</p>
</template> </template>
<div class="bar"> <div class="bar">
<p class="t2">已下载{{item.download_num}}次</p> <p class="t2">已下载{{item.download_num}}次</p>
...@@ -131,7 +131,7 @@ ...@@ -131,7 +131,7 @@
}); });
setTimeout(() => { setTimeout(() => {
window.location.href = '/v3/login?referer=%2fh5%2fview%2f%23%2fdownoad&from=download' window.location.href = '/v3/login?referer=%2fh5%2fview%2f%23%2fdownload&from=download'
}, 1000) }, 1000)
}, },
......
...@@ -467,6 +467,7 @@ export default { ...@@ -467,6 +467,7 @@ export default {
this.isResetData = false; this.isResetData = false;
if (!this.zyFilterData[type].list[k].check) { if (!this.zyFilterData[type].list[k].check) {
this.$set(this.zyFilterData[type].list[k], "check", true); this.$set(this.zyFilterData[type].list[k], "check", true);
} else { } else {
this.$set(this.zyFilterData[type].list[k], "check", false); this.$set(this.zyFilterData[type].list[k], "check", false);
} }
......
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[4],{ (window["webpackJsonp"] = window["webpackJsonp"] || []).push([[4],{
/***/ "./node_modules/_core-js@2.6.10@core-js/modules/_string-html.js": /***/ "./node_modules/_core-js@2.6.11@core-js/modules/_string-html.js":
/*!**********************************************************************!*\ /*!**********************************************************************!*\
!*** ./node_modules/_core-js@2.6.10@core-js/modules/_string-html.js ***! !*** ./node_modules/_core-js@2.6.11@core-js/modules/_string-html.js ***!
\**********************************************************************/ \**********************************************************************/
/*! no static exports found */ /*! no static exports found */
/***/ (function(module, exports, __webpack_require__) { /***/ (function(module, exports, __webpack_require__) {
eval("var $export = __webpack_require__(/*! ./_export */ \"./node_modules/_core-js@2.6.10@core-js/modules/_export.js\");\nvar fails = __webpack_require__(/*! ./_fails */ \"./node_modules/_core-js@2.6.10@core-js/modules/_fails.js\");\nvar defined = __webpack_require__(/*! ./_defined */ \"./node_modules/_core-js@2.6.10@core-js/modules/_defined.js\");\nvar quot = /\"/g;\n// B.2.3.2.1 CreateHTML(string, tag, attribute, value)\nvar createHTML = function (string, tag, attribute, value) {\n var S = String(defined(string));\n var p1 = '<' + tag;\n if (attribute !== '') p1 += ' ' + attribute + '=\"' + String(value).replace(quot, '&quot;') + '\"';\n return p1 + '>' + S + '</' + tag + '>';\n};\nmodule.exports = function (NAME, exec) {\n var O = {};\n O[NAME] = exec(createHTML);\n $export($export.P + $export.F * fails(function () {\n var test = ''[NAME]('\"');\n return test !== test.toLowerCase() || test.split('\"').length > 3;\n }), 'String', O);\n};\n\n\n//# sourceURL=webpack:///./node_modules/_core-js@2.6.10@core-js/modules/_string-html.js?"); eval("var $export = __webpack_require__(/*! ./_export */ \"./node_modules/_core-js@2.6.11@core-js/modules/_export.js\");\nvar fails = __webpack_require__(/*! ./_fails */ \"./node_modules/_core-js@2.6.11@core-js/modules/_fails.js\");\nvar defined = __webpack_require__(/*! ./_defined */ \"./node_modules/_core-js@2.6.11@core-js/modules/_defined.js\");\nvar quot = /\"/g;\n// B.2.3.2.1 CreateHTML(string, tag, attribute, value)\nvar createHTML = function (string, tag, attribute, value) {\n var S = String(defined(string));\n var p1 = '<' + tag;\n if (attribute !== '') p1 += ' ' + attribute + '=\"' + String(value).replace(quot, '&quot;') + '\"';\n return p1 + '>' + S + '</' + tag + '>';\n};\nmodule.exports = function (NAME, exec) {\n var O = {};\n O[NAME] = exec(createHTML);\n $export($export.P + $export.F * fails(function () {\n var test = ''[NAME]('\"');\n return test !== test.toLowerCase() || test.split('\"').length > 3;\n }), 'String', O);\n};\n\n\n//# sourceURL=webpack:///./node_modules/_core-js@2.6.11@core-js/modules/_string-html.js?");
/***/ }), /***/ }),
/***/ "./node_modules/_core-js@2.6.10@core-js/modules/es6.string.link.js": /***/ "./node_modules/_core-js@2.6.11@core-js/modules/es6.string.link.js":
/*!*************************************************************************!*\ /*!*************************************************************************!*\
!*** ./node_modules/_core-js@2.6.10@core-js/modules/es6.string.link.js ***! !*** ./node_modules/_core-js@2.6.11@core-js/modules/es6.string.link.js ***!
\*************************************************************************/ \*************************************************************************/
/*! no static exports found */ /*! no static exports found */
/***/ (function(module, exports, __webpack_require__) { /***/ (function(module, exports, __webpack_require__) {
"use strict"; "use strict";
eval("\n// B.2.3.10 String.prototype.link(url)\n__webpack_require__(/*! ./_string-html */ \"./node_modules/_core-js@2.6.10@core-js/modules/_string-html.js\")('link', function (createHTML) {\n return function link(url) {\n return createHTML(this, 'a', 'href', url);\n };\n});\n\n\n//# sourceURL=webpack:///./node_modules/_core-js@2.6.10@core-js/modules/es6.string.link.js?"); eval("\n// B.2.3.10 String.prototype.link(url)\n__webpack_require__(/*! ./_string-html */ \"./node_modules/_core-js@2.6.11@core-js/modules/_string-html.js\")('link', function (createHTML) {\n return function link(url) {\n return createHTML(this, 'a', 'href', url);\n };\n});\n\n\n//# sourceURL=webpack:///./node_modules/_core-js@2.6.11@core-js/modules/es6.string.link.js?");
/***/ }), /***/ }),
......
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
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 sign in to comment