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) {
urlApi = 'https://szapi.ichunt.com/';
url = 'https://szm.ichunt.com/v3/';
urlPc = 'https://sz.ichunt.com/v3/';
zyApi = 'https://tso.ichunt.com';
zyApi = 'https://szso.ichunt.com';
lyApi = 'https://szso.ichunt.com';
break;
case "tm.ichunt.com":
......@@ -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 = {
},
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 @@
.sample .banner {
height: 173px;
width: 100%;
background: url("../../images/sample/samplebanner.png") no-repeat;
background-size: 100% 100%;
}
.sample .banner img {
width: 100%;
}
.sample .zititle {
padding: 15px;
......@@ -37,7 +38,8 @@
color: #ffa200;
}
.sample .nav {
padding: 0 15px ;
position: relative;
z-index: 100;
}
.sample .nav .van-hairline--top-bottom::after {
border-width: 0 0 1px 0;
......@@ -79,16 +81,28 @@
.sample .con .con-group .cb-box p span {
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;
height: 0.7rem;
line-height: 0.7rem;
height: 30px;
line-height: 30px;
border-radius: 4px;
background: #1080d0;
color: #fff;
text-align: center;
cursor: pointer;
margin-top: 0.2rem;
}
@media screen and (max-width: 320px) {
.sample .con .con-group .cb-box {
......@@ -170,3 +184,83 @@
background: rgba(0, 0, 0, 0.3);
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":"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","file":"sample.css"}
\ No newline at end of file
.sample{
padding-bottom:50px;
.ele{text-overflow: ellipsis;overflow: hidden;white-space: nowrap;}
.banner{
height:173px;width:100%;
background: url("../../images/sample/samplebanner.png") no-repeat;
background-size: 100% 100%;
}
.zititle{
padding:15px;
span{color:#333;font-size: 16px;}
font{font-size: 12px;color:#999;margin-left: 10px;height:20px;line-height: 20px;}
}
.fx_text{
color:#999;
.sample {
padding-bottom: 50px;
.ele {
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}
.banner {
height: 173px;
width: 100%;
img{
width: 100%;
}
}
.zititle {
padding: 15px;
span {
color: #333;
font-size: 16px;
}
font {
font-size: 12px;
color: #999;
margin-left: 10px;
height: 20px;
line-height: 20px;
}
}
.fx_text {
color: #999;
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 {
border-width: 0 0 1px 0;
}
}
.con{
.con-group{
padding:15px;
.con {
.con-group {
padding: 15px;
padding-bottom: 0px;
.img-box{
width:2.933rem;height:2.933rem;
img{width:100%;height:100%;}
.img-box {
width: 2.933rem;
height: 2.933rem;
img {
width: 100%;
height: 100%;
}
}
.cb-box {
width: 6rem;
height: 2.933rem;
padding-bottom: 15px;
.title {
color: #333;
font-size: 16px;
.ele;
margin-bottom: 0.15rem;
}
.cb-box{
width:6rem;height:2.933rem;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;}
.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;}
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) {
.cb-box{
width:5.8rem;height:2.933rem;
.title{margin-bottom: 0.05rem;}
.cb-box {
width: 5.8rem;
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;
text-align: center;background: #1080d0;box-shadow: 0 0 10px #000;cursor: pointer;
}
.get-user-pop{
.get-user-con{
background: #fff;width:8.667rem;
height:5.52rem;border-radius: 3px;
.fix-btns {
position: fixed;
top:50%;
left:50%;
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 {
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;
h3{
color:#ffa200;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;}
h3 {
color: #ffa200;
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;
}
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;}
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":"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","file":"sampleapply.css"}
\ No newline at end of file
.sample-apply{
.sample-apply {
padding-bottom: 55px;
.ele{text-overflow: ellipsis;overflow: hidden;white-space: nowrap;}
.line{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;
.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;}
.ele {
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}
.line {
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;
.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) {
.cb-box{
width:6.8rem;
position: relative;top:-0.1rem;
.title{margin-bottom: 0rem;}
.cb-box {
width: 6.8rem;
position: relative;
top: -0.1rem;
.title {
margin-bottom: 0rem;
}
}
}
.info-detail{
}
.info-detail {
margin-top: 18px;
padding-bottom: 25px;
p{
color:#333;font-size: 12px;.ele;
span{color:#666;}
height:0.5rem;line-height: 0.5rem;
&.canshudetail{
overflow : hidden;
p {
color: #333;
font-size: 12px;
.ele;
span {
color: #666;
}
height: 0.5rem;
line-height: 0.5rem;
&.canshudetail {
overflow: hidden;
text-overflow: ellipsis;
white-space: normal;
display: -webkit-box;
-webkit-line-clamp: 3;
-webkit-box-orient: vertical;
height:auto;
height: auto;
}
}
}
.form-info {
.form-group {
background: #fff;
padding: 15px;
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;
}
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;
}
}
}
}
.form-info{
.form-group{
.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;
}
.submit-success-pop {
.get-user-con {
background: #fff;
padding:15px;
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;}
textarea{border:0px;display: block;padding:15px 16px;color:#333;font-size: 14px;width:100%;box-sizing: border-box;padding-bottom: 0px;}
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;
text-align: center;background: #1080d0;box-shadow: 0 0 10px #000;cursor: pointer;
}
.submit-success-pop{
.get-user-con{
background: #fff;width:8.667rem;
height:6.4rem;border-radius: 3px;
width: 8.667rem;
height: 6.4rem;
border-radius: 3px;
position: fixed;
top:50%;
left:50%;
top: 50%;
left: 50%;
margin-left: -4.3335rem;
margin-top: -3.2rem;
box-shadow: 0 0 20px #e5e5e5;
z-index: 99999;
h3{
color:#ffa200;font-size: 16px;height:1.8rem;
line-height:1.8rem;text-align: center;
i{position: relative;float: right;top:-1.4rem;color:#fff;font-size: 20px;}
h3 {
color: #ffa200;
font-size: 16px;
height: 1.8rem;
line-height: 1.8rem;
text-align: center;
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;}
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;}
}
.mask{position: fixed;bottom:0;top:0;left:0;right:0;background: rgba(0,0,0,0.3);z-index: 999;}
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;
}
}
}
\ 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 = [{
}
},
{
path: '/downoad',
path: '/download',
component: Download,
meta: {
title: '资料下载'
......
......@@ -5,30 +5,157 @@ import {
import {
services as Services
} from '../../../api/index'
import Util from "../../../util";
Vue.use(Toast);
const state = {
classList: [],
goodList: [],
loading: false,
finished: false,
goodCount: 0
goodCount: 0,
aggSample: [],
aggs: {},
aggsFlag: [],
ziYingIndex:{},
smaple_class_id:'',
getsamplebanner:[]
}
const mutations = {
ziYingIndex(state, payload) {
state.ziYingIndex= payload.data;
},
aggs(state, payload) {
var arr = [];
var obj = Object.keys(payload.data.aggs);
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.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])
arr.push(payload.data[k]);
}
state.goodList = state.goodList.concat(arr)
},
getsamplebanner(state, payload) {
state.getsamplebanner= payload.data;
}
}
};
const actions = {
getClasslist({
commit,
}) {
ziYingIndex({commit}, payload) {
state.loading = true;
state.finished = false;
let param = {
'sample_status/eq': 1
};
let obj = Object.assign({}, param, payload.params);
let params = Util.getParams(obj);
Services.ZiYingIndex(params).then((res) => {
state.loading = false;
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 {
Toast({
message: data.error_msg,
duration: 3000
});
}
}).catch(function (err) {
});
},
getClasslist({commit}, payload) {
Services.sampleClassList().then((res) => {
let data = res.data;
if (data.err_code == 0) {
......@@ -46,9 +173,7 @@ const actions = {
})
});
},
getGoodList({
commit
}, payload) {
getGoodList({commit}, payload) {
state.loading = true;
state.finished = false;
let p = payload.data.p;
......@@ -83,6 +208,28 @@ const actions = {
state.loading = false;
state.finished = true;
});
},
getsamplebanner({commit}, payload) {
var params=Util.getParams();
Services.getsamplebanner(params).then((res) => {
state.loading = false;
let data = res.data;
if (data.err_code == 0) {
commit({
type: 'getsamplebanner',
data: data.data
});
} else {
Toast({
message: data.error_msg,
duration: 3000
});
}
}).catch(function (err) {
});
}
}
export default {
......
......@@ -28,7 +28,7 @@
<p class="t1">{{item.title}}</p>
</template>
<template v-else>
<p class="t1" @click="toUrl">{{item.title}}</p>
<p class="t1">{{item.title}}</p>
</template>
<div class="bar">
<p class="t2">已下载{{item.download_num}}次</p>
......@@ -131,7 +131,7 @@
});
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)
},
......
<template>
<section class="sample-apply" >
<section class="sample-apply">
<Header :title="title" :meaushow='meaushow' :bgcolor="bgcolor"></Header>
<wxShare :url="shareUrl"></wxShare>
<van-collapse v-model="activeName" accordion :border="noborder">
......@@ -27,21 +27,10 @@
</van-collapse>
<div class="form-info">
<div class="form-group">
<h3><span class="f-red">*</span>&nbsp;&nbsp;申请数量</h3>
<!-- <div class="form-group">
<h3><span class="f-red">*</span>&nbsp;&nbsp申请数量</h3>
<input type="text" v-model="apply_num" :placeholder="'请输入申请数量,最多可申请'+(ypGoodDetail.max_number||1)+'个'" onkeyup="if(event.keyCode !=37 &amp;&amp; event.keyCode != 39){if (!/^[\d]+$/ig.test(this.value)){this.value='';}}"/>
</div>
<div class="form-group">
<h3><span class="f-red">*</span>&nbsp;&nbsp;单位名称</h3>
<input type="text" v-model="com_name" placeholder="请输入单位名称" />
</div>
<div class="form-group">
<h3>&nbsp;&nbsp;项目需求描述</h3>
<textarea name="" v-model="sample_demand_desc" placeholder="请输项目需求描述,如申请样品用于什么项目"></textarea>
</div>
<div class="form-group by">
<h3>运费信息 <span class="fr">包邮</span></h3>
</div>
</div>-->
<div v-if="addressInfo" class="form-group adderss-sample" @click="addressSample(addressInfo.address_id)">
<h3>
<p>{{addressInfo.consignee}}&nbsp;&nbsp;&nbsp;{{addressInfo.mobile}}</p>
......@@ -52,6 +41,17 @@
<div v-else class="form-group by" @click="adderssAdd">
<h3>新增收货地址 <span class="fr icon iconfont icon-xiangyoujiankuohao"></span></h3>
</div>
<div class="form-group">
<h3><span class="f-red">*</span>公司/机构/学校名称</h3>
<input type="text" v-model="com_name" placeholder="深圳市猎芯科技有限公司"/>
</div>
<div class="form-group">
<h3>&nbsp;&nbsp;项目需求描述</h3>
<textarea name="" v-model="sample_demand_desc" placeholder="“参考描述:例1、无人机项目研发需要 例2、运动相机新方案验证需要 例3、毕业设计激光测距项目需要”" class="placeh"></textarea>
</div>
<div class="form-group by">
<h3>运费信息 <span class="fr">包邮</span></h3>
</div>
<div class="line"></div>
</div>
<div class="fix-btns" @click="submitS">确认提交</div>
......@@ -59,11 +59,17 @@
<div class="submit-success-pop" v-show="successPop">
<div class="mask"></div>
<div class="get-user-con">
<h3>恭喜获得1次免费申请样品机会<i class="icon iconfont icon-guanbi" @click="getuserf"></i></h3>
<p>样品订单编号:{{ordernum}}</p>
<h2>邀请好友注册可额外获得一次样品申请机会,多邀多得</h2>
<span v-shareMask>点击邀请</span>
<div class="tips">重要提醒:审核结果​​将以短信通知给您</div>
<h3>样片领取成功<i class="icon iconfont icon-guanbi" @click="getuserf"></i></h3>
<h2>{{ypGoodDetail.goods_info.sku_name}}</h2>
<div class="txt">
<span>类别:{{ypGoodDetail.goods_info.class_id1_name}}</span>
<span>品牌:{{ypGoodDetail.goods_info.brand_name}}</span>
</div>
<div class="share-btn-wrap">
<span class="l" @click="toUrl">继续领取</span>
<span class="r" v-shareMask>给好友送免费样片</span>
</div>
<div class="tips"><em>*</em>快递预计1-个工作日内送达,请耐心等待</div>
</div>
</div>
<van-loading type="spinner" color="#000" class="loading-background" v-if="loading"/>
......@@ -77,25 +83,26 @@
import {mapState} from 'vuex'
import Header from "@/views/common/Header.vue";
import wxShare from "@/views/common/wxShare.vue";
import { Collapse, CollapseItem ,Toast,Loading} from 'vant';
import {Collapse, CollapseItem, Toast, Loading} from 'vant';
import util from "../../util/index"
Vue.use(Collapse).use(CollapseItem).use(Toast).use(Loading);
export default {
name: 'sampleapply',
data() {
return {
title:"样片申请",
meaushow:true,
bgcolor:'#fafafa',
color:'#1080d0',
activeName:'1',
noborder:false,
successPop:false,//申请成功弹窗显示
goods_id:this.$route.query.id,
apply_num:"",
com_name:"",
sample_demand_desc:"",
shareUrl:window.location.origin+"/v3/samplereg?uid="+util.getCookie("Yo4teW_uid"),
title: "样片申请",
meaushow: true,
bgcolor: '#fafafa',
color: '#1080d0',
activeName: '1',
noborder: false,
successPop: false,//申请成功弹窗显示
goods_id: this.$route.query.id,
apply_num: "",
com_name: "",
sample_demand_desc: "",
shareUrl: window.location.origin + "/v3/samplereg?uid=" + util.getCookie("Yo4teW_uid"),
}
},
......@@ -106,20 +113,20 @@
addressInfo: state => state.sampleapply.addressInfo,
ypGoodDetail: state => state.sampleapply.ypGoodDetail,
submitState: state => state.sampleapply.submitState,
ordernum:state => state.sampleapply.ordernum,
ordernum: state => state.sampleapply.ordernum,
})
},
watch:{
submitState(val){
if(val){
this.successPop=true;
watch: {
submitState(val) {
if (val) {
this.successPop = true;
}
},
apply_num(val){
apply_num(val) {
let num = this.ypGoodDetail.max_number;
if(!num){
if (!num) {
this.apply_num = 1
}else if(val>num){
} else if (val > num) {
this.apply_num = num
}
}
......@@ -127,24 +134,24 @@
created() {
this.$store.dispatch({
type: "getDetailYp",
data: { id: this.goods_id }
data: {id: this.goods_id}
});
this.$store.dispatch({
type: 'recvlistSample'
})
},
methods: {
getuserf(){
this.successPop=false;
window.location.href='/v3/user/order';
toUrl() {
window.location.href='/h5/view/#/sample';
},
submitS(){
var self=this;
if(!this.apply_num){
Toast("请输入申请数量");
return;
}
if(!this.com_name){
getuserf() {
this.successPop = false;
window.location.href = '/v3/user/order';
},
submitS() {
var self = this;
if (!this.com_name) {
Toast("请输入单位名称");
return;
}
......@@ -158,11 +165,11 @@
address_id: self.addressInfo.address_id
})
},
addressSample(adderssId){
window.location.href='/h5/view/#/userAddress?points='+adderssId;
addressSample(adderssId) {
window.location.href = '/h5/view/#/userAddress?points=' + adderssId;
},
adderssAdd(){
window.location.href='/h5/view/#/userAddress?fp=5';
adderssAdd() {
window.location.href = '/h5/view/#/userAddress?fp=5';
}
},
components: {
......@@ -174,5 +181,5 @@
</script>
<style scoped>
@import "../../assets/css/sample/sampleapply.min.css";
@import "../../assets/css/sample/sampleapply.css";
</style>
\ No newline at end of file
......@@ -467,6 +467,7 @@ export default {
this.isResetData = false;
if (!this.zyFilterData[type].list[k].check) {
this.$set(this.zyFilterData[type].list[k], "check", true);
} else {
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],{
/***/ "./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 */
/***/ (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 */
/***/ (function(module, exports, __webpack_require__) {
"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