Commit edee4f5e by 肖康

Merge branch 'master' of http://119.23.72.7/liangjianmin/h5

parents 02b7d019 41113f3e
Showing with 2317 additions and 673 deletions
<template>
<div id="app">
<keep-alive exclude="newsDetail,pointchange,wallet,walletRetrieve,walletDetail,walletRecord,walletStatus,walletWithdraw,walletRecharge,xianhuo,lxshop,brand,brandList,sampleapply,risk,risksuccess,sample">
<keep-alive exclude="newsDetail,pointchange,wallet,walletRetrieve,walletDetail,walletRecord,walletStatus,walletWithdraw,walletRecharge,xianhuo,lxshop,brand,brandList,sampleapply,samplecominfo,samplebasinfo,risk,risksuccess,sample,addressp">
<router-view class="router-view"></router-view>
</keep-alive>
</div>
......
......@@ -462,6 +462,10 @@ export const apis = {
* 示波器页面获取示波器商品id
*/
getYaoHaoYouGoodId:urlApi+'/activity/getYaoHaoYouGoodId',
/**
* 图片上传
*/
uploadImg:urlApi+'/oss/upload'
}
......
......@@ -27,6 +27,44 @@
height: 20px;
line-height: 20px;
}
.sample .activity-rule {
margin: 15px 15px 0 15px;
border: solid 1px #d5c06d;
box-sizing: border-box;
border-radius: 2px;
background-color: #fffae7;
color: #333;
}
.sample .activity-rule .rule-title {
height: 1rem;
line-height: 1rem;
font-size: 14px;
text-align: center;
position: relative;
}
.sample .activity-rule .rule-title .icon {
position: absolute;
right: 7px;
font-size: 20px;
color: #d5c06d;
}
.sample .activity-rule .rule-title .icon.icon-down-trangle {
font-size: 26px;
}
.sample .activity-rule .rule-content {
padding: 0px 15px 0;
font-size: 12px;
height: 0;
transition: height linear 0.5s;
overflow: hidden;
}
.sample .activity-rule .rule-content.show {
height: 250px;
}
.sample .activity-rule .rule-content p {
padding-top: 5px;
line-height: 20px;
}
.sample .fx_text {
color: #999;
text-align: right;
......@@ -128,6 +166,100 @@
box-shadow: 0 0 10px #000;
cursor: pointer;
}
.sample .choose-work-pop .mask {
position: fixed;
bottom: 0;
top: 0;
left: 0;
right: 0;
background: rgba(0, 0, 0, 0.3);
z-index: 999;
}
.sample .choose-work-pop .choose-work-con {
background: #fff;
width: 9rem;
height: 10rem;
position: fixed;
top: 50%;
left: 50%;
margin-left: -4.5rem;
margin-top: -5rem;
z-index: 99999;
border-radius: 3px;
}
.sample .choose-work-pop .choose-work-con i {
position: absolute;
top: -30px;
color: #fff;
font-size: 20px;
right: 0;
}
.sample .choose-work-pop .choose-work-con .work-groups .work-item {
width: 50%;
height: 4.2rem;
text-align: center;
box-sizing: border-box;
}
.sample .choose-work-pop .choose-work-con .work-groups .work-item.xs-item {
background-color: #eaecff;
border-bottom: 1px solid #fff;
}
.sample .choose-work-pop .choose-work-con .work-groups .work-item.mys-item {
background-color: #f7f7f7;
border-bottom: 1px solid #fff;
border-left: 1px solid #fff;
}
.sample .choose-work-pop .choose-work-con .work-groups .work-item.gcs-item {
background-color: #fff7f0;
}
.sample .choose-work-pop .choose-work-con .work-groups .work-item.zds-item {
background-color: #eafffb;
border-left: 1px solid #fff;
}
.sample .choose-work-pop .choose-work-con .work-groups .work-item.active .radius-div {
border: 3px solid #0080cc;
}
.sample .choose-work-pop .choose-work-con .work-groups .work-item .radius-div {
margin: 10px auto 0;
height: 3rem;
width: 3rem;
box-sizing: border-box;
border-radius: 50% 50%;
border: 3px solid transparent;
background-repeat: no-repeat;
background-size: 100% 100%;
}
.sample .choose-work-pop .choose-work-con .work-groups .work-item .radius-div.xs-radius {
background-image: url('../../images/sample/work1.png');
}
.sample .choose-work-pop .choose-work-con .work-groups .work-item .radius-div.mys-radius {
background-image: url('../../images/sample/work2.png');
}
.sample .choose-work-pop .choose-work-con .work-groups .work-item .radius-div.gcs-radius {
background-image: url('../../images/sample/work3.png');
}
.sample .choose-work-pop .choose-work-con .work-groups .work-item .radius-div.zds-radius {
background-image: url('../../images/sample/work4.png');
}
.sample .choose-work-pop .choose-work-con .work-groups .work-item p {
font-size: 14px;
color: #000000;
margin-top: 7px;
}
.sample .choose-work-pop .choose-work-con .btn {
width: 4rem;
height: 1rem;
line-height: 1rem;
border-radius: 15px;
font-size: 14px;
text-align: center;
margin: 10px auto 0;
color: #fff;
background-color: #d1d1d1;
}
.sample .choose-work-pop .choose-work-con .btn.active {
background-color: #0080cc;
}
.sample .get-user-pop .get-user-con {
background: #fff;
width: 8.667rem;
......@@ -266,4 +398,3 @@
text-decoration: none;
border: none;
}
/*# sourceMappingURL=sample.css.map */
\ No newline at end of file
......@@ -31,7 +31,44 @@
line-height: 20px;
}
}
.activity-rule{
margin:15px 15px 0 15px;
border: solid 1px #d5c06d;
box-sizing: border-box;
border-radius: 2px;
background-color: #fffae7;
color: #333;
.rule-title{
height: 1rem;
line-height: 1rem;
font-size: 14px;
text-align: center;
position: relative;
.icon{
position: absolute;
right:7px;
font-size: 20px;
color:#d5c06d;
&.icon-down-trangle{
font-size: 26px;
}
}
}
.rule-content{
padding:0px 15px 0;
font-size: 12px;
height: 0;
transition: height linear .5s;
overflow: hidden;
&.show{
height:250px;
}
p{
padding-top: 5px;
line-height: 20px;
}
}
}
.fx_text {
color: #999;
text-align: right;
......@@ -147,7 +184,106 @@
box-shadow: 0 0 10px #000;
cursor: pointer;
}
.choose-work-pop{
.mask {
position: fixed;
bottom: 0;
top: 0;
left: 0;
right: 0;
background: rgba(0, 0, 0, 0.3);
z-index: 999;
}
.choose-work-con{
background: #fff;
width: 9rem;
height: 10rem;
position: fixed;
top: 50%;
left: 50%;
margin-left: -4.5rem;
margin-top: -5rem;
z-index: 99999;
border-radius: 3px;
i {
position: absolute;
top: -30px;
color: #fff;
font-size: 20px;
right: 0;
}
.work-groups{
.work-item{
width:50%;
height:4.2rem;
text-align: center;
box-sizing: border-box;
&.xs-item{
background-color: #eaecff;
border-bottom: 1px solid #fff;
}
&.mys-item{
background-color: #f7f7f7;
border-bottom: 1px solid #fff;
border-left: 1px solid #fff;
}
&.gcs-item{
background-color: #fff7f0;
}
&.zds-item{
background-color: #eafffb;
border-left: 1px solid #fff;
}
&.active{
.radius-div{
border:3px solid #0080cc;
}
}
.radius-div{
margin:10px auto 0;
height:3rem;
width:3rem;
box-sizing: border-box;
border-radius: 50% 50%;
border:3px solid transparent;
&.xs-radius{
background-image: url('../../images/sample/work1.png');
}
&.mys-radius{
background-image: url('../../images/sample/work2.png');
}
&.gcs-radius{
background-image: url('../../images/sample/work3.png');
}
&.zds-radius{
background-image: url('../../images/sample/work4.png');
}
background-repeat: no-repeat;
background-size: 100% 100%;
}
p{
font-size: 14px;
color: #000000;
margin-top: 7px;
}
}
}
.btn{
width:4rem;
height:1rem;
line-height: 1rem;
border-radius: 15px;
font-size: 14px;
text-align: center;
margin: 10px auto 0;
color: #fff;
background-color: #d1d1d1;
&.active{
background-color: #0080cc;
}
}
}
}
.get-user-pop {
.get-user-con {
background: #fff;
......
......@@ -164,7 +164,6 @@
font-size: 16px;
text-align: center;
background: #1080d0;
box-shadow: 0 0 10px #000;
cursor: pointer;
}
.sample-apply .submit-success-pop .get-user-con {
......@@ -264,4 +263,3 @@
background: rgba(0, 0, 0, 0.3);
z-index: 999;
}
/*# sourceMappingURL=sampleapply.css.map */
\ No newline at end of file
......@@ -191,7 +191,7 @@
font-size: 16px;
text-align: center;
background: #1080d0;
box-shadow: 0 0 10px #000;
// box-shadow: 0 0 10px #000;
cursor: pointer;
}
......
.sample-basinfo {
background-color: #f3f3f3;
height: 100%;
}
.sample-basinfo .basinfo-form {
padding: 0 15px;
background-color: #fff;
}
.sample-basinfo .basinfo-form .form-item {
border-bottom: 1px solid #e9e9e9;
display: flex;
padding: 20px 0;
}
.sample-basinfo .basinfo-form .form-item.no-border {
border: none;
}
.sample-basinfo .basinfo-form .form-item .label-h3 {
font-size: 14px;
color: #333333;
flex: 0 0 90px;
}
.sample-basinfo .basinfo-form .form-item .label-h3 span {
margin-right: 8px;
vertical-align: middle;
color: #ff0000;
}
.sample-basinfo .basinfo-form .form-item .input {
flex: 1;
text-align: right;
font-size: 14px;
}
.sample-basinfo .save-btn-div {
padding: 1rem 0;
}
.sample-basinfo .save-btn-div .btn {
width: 144px;
height: 34px;
background-color: #1080d0;
border-radius: 50px;
text-align: center;
line-height: 34px;
font-size: 14px;
color: #fff;
margin: 0 auto;
}
.sample-basinfo {
background-color: #f3f3f3;
height: 100%;
.basinfo-form {
padding: 0 15px;
background-color: #fff;
.form-item {
border-bottom: 1px solid #e9e9e9;
display: flex;
padding: 20px 0;
&.no-border{
border:none
}
.label-h3 {
font-size: 14px;
color: #333333;
flex: 0 0 90px;
span {
margin-right: 8px;
vertical-align: middle;
color: #ff0000;
}
}
.input {
flex: 1;
text-align: right;
font-size: 14px;
}
}
}
.save-btn-div {
padding: 1rem 0;
.btn {
width: 144px;
height: 34px;
background-color: #1080d0;
border-radius: 50px;
text-align: center;
line-height: 34px;
font-size: 14px;
color: #fff;
margin: 0 auto;
}
}
}
\ No newline at end of file
.sample-cominfo .cominfo-form {
padding: 0 15px;
}
.sample-cominfo .cominfo-form .form-item {
border-bottom: 1px solid #e9e9e9;
display: flex;
padding: 20px 0;
}
.sample-cominfo .cominfo-form .form-item.detail-add {
flex-direction: column;
}
.sample-cominfo .cominfo-form .form-item.detail-add .textarea {
display: block;
height: 60px;
font-size: 14px;
padding: 10px 0;
resize: none;
}
.sample-cominfo .cominfo-form .form-item.pic-item {
display: block;
border: none;
padding-bottom: 2rem;
}
.sample-cominfo .cominfo-form .form-item.pic-item .default-img {
width: 219px;
height: 94px;
background-color: #e9e9e9;
border-radius: 2px;
margin: 20px auto 0;
box-sizing: border-box;
padding-top: 10px;
}
.sample-cominfo .cominfo-form .form-item.pic-item .default-img .img {
width: 88px;
height: 73px;
background: url('../../images/sample/default.png') no-repeat;
background-size: 100% 100%;
margin: 0 auto;
}
.sample-cominfo .cominfo-form .form-item.pic-item .has-img {
width: 219px;
height: 94px;
margin: 20px auto 0;
position: relative;
border-radius: 2px;
}
.sample-cominfo .cominfo-form .form-item.pic-item .has-img img {
height: 100%;
width: 100%;
}
.sample-cominfo .cominfo-form .form-item.pic-item .has-img .img-mask {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(233, 233, 233, 0.78);
display: flex;
justify-content: center;
align-items: center;
}
.sample-cominfo .cominfo-form .form-item.pic-item .has-img .img-mask .yes-icon {
height: 50px;
width: 50px;
background: url('../../images/sample/yes.png') no-repeat;
background-size: 100% 100%;
}
.sample-cominfo .cominfo-form .form-item.pic-item .file {
display: none;
}
.sample-cominfo .cominfo-form .form-item.pic-item .upload-btn {
width: 100px;
height: 28px;
border: solid 1px #1080d0;
font-size: 14px;
text-align: center;
line-height: 28px;
color: #1080d0;
margin: 18px auto 0;
border-radius: 50px;
}
.sample-cominfo .cominfo-form .form-item .label-h3,
.sample-cominfo .cominfo-form .form-item .detail-add-label,
.sample-cominfo .cominfo-form .form-item .pic-item-label {
font-size: 14px;
color: #333333;
}
.sample-cominfo .cominfo-form .form-item .label-h3.label-h3,
.sample-cominfo .cominfo-form .form-item .detail-add-label.label-h3,
.sample-cominfo .cominfo-form .form-item .pic-item-label.label-h3 {
flex: 0 0 80px;
}
.sample-cominfo .cominfo-form .form-item .label-h3 span,
.sample-cominfo .cominfo-form .form-item .detail-add-label span,
.sample-cominfo .cominfo-form .form-item .pic-item-label span {
margin-right: 8px;
vertical-align: middle;
color: #ff0000;
}
.sample-cominfo .cominfo-form .form-item .input,
.sample-cominfo .cominfo-form .form-item .choose-right {
flex: 1;
text-align: right;
font-size: 14px;
}
.sample-cominfo .cominfo-form .form-item .input.choose-right,
.sample-cominfo .cominfo-form .form-item .choose-right.choose-right {
color: #999;
}
.sample-cominfo .cominfo-form .form-item .input.choose-right i,
.sample-cominfo .cominfo-form .form-item .choose-right.choose-right i {
vertical-align: middle;
margin-left: 8px;
}
.sample-cominfo .save-btn-div {
background-color: #f3f3f3;
padding: 1rem 0;
}
.sample-cominfo .save-btn-div .btn {
width: 144px;
height: 34px;
background-color: #1080d0;
border-radius: 50px;
text-align: center;
line-height: 34px;
font-size: 14px;
color: #fff;
margin: 0 auto;
}
.sample-cominfo {
.cominfo-form {
padding: 0 15px;
.form-item {
border-bottom: 1px solid #e9e9e9;
display: flex;
padding: 20px 0;
&.detail-add {
flex-direction: column;
.textarea {
display: block;
height: 60px;
font-size: 14px;
padding: 10px 0;
resize: none;
}
}
&.pic-item {
display: block;
border: none;
padding-bottom: 2rem;
.default-img {
width: 219px;
height: 94px;
background-color: #e9e9e9;
border-radius: 2px;
margin: 20px auto 0;
box-sizing: border-box;
padding-top: 10px;
.img {
width: 88px;
height: 73px;
background: url('../../images/sample/default.png') no-repeat;
background-size: 100% 100%;
margin: 0 auto;
}
}
.has-img{
width: 219px;
height: 94px;
margin: 20px auto 0;
position: relative;
border-radius: 2px;
img{
height:100%;
width:100%;
}
.img-mask{
position: absolute;
top:0;
left:0;
right:0;
bottom: 0;
background-color: rgba(233,233,233,.78);
display: flex;
justify-content: center;
align-items: center;
.yes-icon{
height: 50px;
width: 50px;
background: url('../../images/sample/yes.png') no-repeat;
background-size: 100% 100%;
}
}
}
.file{
display: none;
}
.upload-btn {
width: 100px;
height: 28px;
border: solid 1px #1080d0;
font-size: 14px;
text-align: center;
line-height: 28px;
color: #1080d0;
margin: 18px auto 0;
border-radius: 50px;
}
}
.label-h3,
.detail-add-label,
.pic-item-label {
font-size: 14px;
color: #333333;
&.label-h3 {
flex: 0 0 80px;
}
span {
margin-right: 8px;
vertical-align: middle;
color: #ff0000;
}
}
.input,
.choose-right {
flex: 1;
text-align: right;
font-size: 14px;
&.choose-right {
color: #999;
i {
vertical-align: middle;
margin-left: 8px;
}
}
}
}
}
.save-btn-div {
background-color:#f3f3f3 ;
padding: 1rem 0;
.btn {
width: 144px;
height: 34px;
background-color: #1080d0;
border-radius: 50px;
text-align: center;
line-height: 34px;
font-size: 14px;
color: #fff;
margin: 0 auto;
}
}
}
\ No newline at end of file
......@@ -33,9 +33,10 @@ Vue.prototype.$http = axios;
axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded';
axios.defaults.withCredentials = true;
axios.interceptors.request.use(function (config) {
var isUploadBoolean = (config['headers']['Content-Type'] == 'multipart/form-data')//判断是否是上传图片
if (config.method == 'post') {
if (config.data) {
if (config.data.indexOf("&pf=2") == -1) {
if (!isUploadBoolean&&config.data.indexOf("&pf=2") == -1) {
config.data += "&pf=" + window.lxpf + '&csrf=' + csrf;
}
} else {
......
......@@ -42,6 +42,8 @@ const brandList = resolve => require(['@/views/brand/brandList'], resolve);
const ranking = resolve => require(['@/views/rank/ranking'], resolve);
const Download = resolve => require(['@/views/download/Index'], resolve);
const sample = resolve => require(['@/views/sample/sample'], resolve);
const samplecominfo = resolve => require(['@/views/sample/samplecominfo'], resolve);
const samplebasinfo = resolve => require(['@/views/sample/samplebasinfo'], resolve);
const sampleapply = resolve => require(['@/views/sample/sampleapply'], resolve);
const Special = resolve => require(['@/views/special/Index'], resolve);
const Risk = resolve => require(['@/views/risk/Index'], resolve);
......@@ -354,6 +356,20 @@ const routes = [{
}
},
{
path: '/samplecominfo',
component: samplecominfo,
meta: {
title: '公司信息填写'
}
},
{
path: '/samplebasinfo',
component: samplebasinfo,
meta: {
title: '基础信息填写'
}
},
{
path: '/sampleapply',
name: "sampleapply",
component: sampleapply,
......
......@@ -12,13 +12,19 @@ const state = {
addressInfo:"",
submitState:false,
ypGoodDetail:{},
ypComInfo:{},
ypBasInfo:{},
ordernum:''
}
const mutations = {
recvlistSample(state, payload) {
state.addressInfo=payload.data.filter(function(item){return item['is_default'] == 1;});
state.addressInfo=state.addressInfo[0];
if(!payload.data){
state.addressInfo = null
}else{
state.addressInfo=payload.data.filter(function(item){return item['is_default'] == 1;});
state.addressInfo=state.addressInfo[0];
}
},
}
......@@ -27,25 +33,32 @@ const actions = {
Services.recvlist().then((res) => {
let data = res.data;
// state.loading = false;
console.log(data.err_code)
if (data.err_code == 0) {
commit({
type: 'recvlistSample',
data: data.data
});
}else{
commit({
type: 'recvlistSample',
data: null
});
}
}).catch(function (err) {
});
},
selfSampleCreate({commit}, payload) {
state.loading = true;
var params = {
goods_id: payload.goods_id,
apply_num: payload.apply_num,
com_name: payload.com_name,
sample_demand_desc: payload.sample_demand_desc,
address_id: payload.address_id
// var params = {
// goods_id: payload.goods_id,
// apply_num: payload.apply_num,
// com_name: payload.com_name,
// sample_demand_desc: payload.sample_demand_desc,
// address_id: payload.address_id
}
// }
var params = payload.data;
Services.selfSampleCreate(qs.stringify(params)).then((res) => {
let data = res.data;
state.loading = false;
......@@ -71,7 +84,9 @@ const actions = {
let data = res.data;
state.loading = false;
if (data.err_code == 0) {
state.ypGoodDetail = data.data
state.ypGoodDetail = data.data.goods_info||{}
state.ypComInfo = data.data.company_info||{}
state.ypBasInfo = data.data.user_info||{}
}else{
Toast(data.err_msg);
}
......
......@@ -208,6 +208,7 @@ const actions = {
setTimeout(function(){
if(payload.orderpg){
history.go(-1);
}else{
history.go(0);
}
......
<template>
<section class="sample">
<Header :title="title" :meaushow="meaushow" :bgcolor="bgcolor"></Header>
<van-popup v-model="show">
<div style="padding: 30px 0">
<p class="text" style="font-size: 16px;text-align: center;font-weight: bold;padding-bottom: 20px; color: #333333;margin-top: 30%;">样片活动已经结束了哦,去看看其他活动吧</p>
<a style="display: block;border-radius: 5px;margin: 0 auto;width: 110px;text-align: center;color: #ffffff;font-size: 14px;height: 40px;line-height: 40px;background: #0073c5;color: #fff;" href="https://m.ichunt.com/v3/activity/activityhz.html">去看看</a>
</div>
</van-popup>
<div v-if="false">
<div>
<wxShare :url="shareUrl"></wxShare>
<div class="banner">
<van-swipe :autoplay="3000" indicator-color="white" :height="bannerHeight">
......@@ -18,6 +12,21 @@
</van-swipe-item>
</van-swipe>
</div>
<div class="activity-rule">
<div class="rule-title" @click="isShowRule = !isShowRule">
活动规则
<i :class="['icon','iconfont',isShowRule?'icon-down-trangle':'icon-jinru1']"></i>
</div>
<div :class="['rule-content',isShowRule?'show':'']">
<p>• 活动时间:</p>
<p>2020 年 8 月 3 日 ~ 2020 年 9 月 3 日(逾期申请次数将清零)</p>
<p>• 工程师、终端等用户可享受包邮福利;</p>
<p>• 学生、贸易商等用户运费需自理。</p>
<p>• 同一用户需付运费的多个样品单,通过审核后将合并为一个付运费的样品单。</p>
<p>• 样品订单将在 5 - 7 个工作日内通过审核,1 个工作日内寄出。</p>
<p>• 在法律允许范围内,本活动最终解释权归猎芯网所有。</p>
</div>
</div>
<div class="fx_text" v-if="fxType">
<!-- 邀请记录不为0 -->
<div class="fx_text_one" v-if="fxType == 1">
......@@ -123,6 +132,33 @@
</div>
</div>
<!--获得机会弹窗 end-->
<!-- 选择职业弹窗 开始-->
<div class="choose-work-pop" v-if="isShowChooseWork">
<div class="mask"></div>
<div class="choose-work-con">
<i class="icon iconfont icon-shandiao-" @click="isShowChooseWork=false"></i>
<div class="work-groups clr">
<div :class="['fl','work-item','xs-item',workType==4?'active':'']" @click="changeWorkType(4)">
<div class="radius-div xs-radius"></div>
<p>我是学生</p>
</div>
<div :class="['fl','work-item','mys-item',workType==7?'active':'']" @click="changeWorkType(7)">
<div class="radius-div mys-radius"></div>
<p>我是贸易商</p>
</div>
<div :class="['fl','work-item','gcs-item',workType==1?'active':'']" @click="changeWorkType(1)">
<div class="radius-div gcs-radius"></div>
<p>我是工程师</p>
</div>
<div :class="['fl','work-item','zds-item',workType==8?'active':'']" @click="changeWorkType(8)">
<div class="radius-div zds-radius"></div>
<p>我是终端商</p>
</div>
</div>
<div :class="['btn',workType!=-1?'active':'']" @click="chooseWork">确定</div>
</div>
</div>
<!-- 选择职业弹窗 结束 -->
</div>
</section>
</template>
......@@ -142,7 +178,6 @@
name: "sample",
data() {
return {
show: true,
bannerHeight: 173,
title: "猎芯网-自营样片",
meaushow: true,
......@@ -170,8 +205,15 @@
attrs: {},
curr: false,
id: [],
shareUrl: window.location.origin + "/v3/samplereg?uid=" + util.getCookie("Yo4teW_uid")
};
shareUrl: window.location.origin + "/v3/samplereg?uid=" + util.getCookie("Yo4teW_uid"),
isShowChooseWork:false,
workType:-1,
workFun:0,
isBelongs:0,
isProvideInfo:0,
goodId:null,
isShowRule:false,
};
},
computed: {
...mapState({
......@@ -217,8 +259,7 @@
}
},
created() {
/* this.$store.dispatch({
this.$store.dispatch({
type: "getsamplebanner"
});
......@@ -228,12 +269,37 @@
});
this.judgeLogin();*/
setTimeout(function () {
window.location.href = 'https://www.ichunt.com/v3/activity/activityhz.html';
}, 5000)
this.judgeLogin();
},
methods: {
judgeOccupation(){
var value = this.isBelongs;
//0表示未填写 1表示已填写
if(value == 0){
this.isShowChooseWork = true
return false
}else{
return true
}
},
chooseWork(){
if(this.workType == -1){
return
}
this.$router.push({
path: "/sampleapply",
query: {
id: this.goodId,
type:this.workType,
full:'0'
}
});
},
changeWorkType(type){
this.workType = type
},
judgeLogin() {
if (getCookie("Yo4teW_uid")) {
this.getCount();
......@@ -391,6 +457,9 @@
if (data.err_code == 0) {
me.applyCount = data.data.apply_count || 0;
me.inviteCount = data.data.invite_count || 0;
me.workFun = data.data.work_function || 0;
me.isBelongs = data.data.is_belongs || 0;
me.isProvideInfo = data.data.is_provide_info || 0;
if (me.inviteCount == 0) {
me.fxType = 2;
} else {
......@@ -414,7 +483,7 @@
var stock = util.aggxde(item.stock);
this.goodId = item.goods_id
if (this.applyCount != 0) {
if (stock) {
if ((this.applyCount * 1) < (item.quota * 1)) {
......@@ -424,11 +493,15 @@
this.quotaNum = (item.quota * 1) - (this.applyCount * 1);
} else {
if(!this.judgeOccupation()){
return
}
this.$router.push({
path: "/sampleapply",
query: {
id: item.goods_id
id: item.goods_id,
type:this.workFun,
full:this.isProvideInfo+''
}
});
......
<template>
<section class="sample-apply">
<Header :title="title" :meaushow='meaushow' :bgcolor="bgcolor"></Header>
<wxShare :url="shareUrl"></wxShare>
<van-collapse v-model="activeName" accordion :border="noborder" v-if="ypGoodDetail.goods_info">
<van-collapse-item title="商品信息" name="1" :border="noborder">
<div class="info-con clr">
<div class="fl img-box">
<img :src="ypGoodDetail.goods_images||'https://www.ichunt.com/v3/dist/res/m/images/materiel_img_3.png'" alt="">
</div>
<div class="fr cb-box" v-if="ypGoodDetail.goods_info">
<div class="title">{{ypGoodDetail.goods_info.goods_name}}</div>
<p><span>类别:</span> {{ypGoodDetail.goods_info.class_id1_name}}</p>
<p><span>品牌:</span>{{ypGoodDetail.goods_info.brand_name}}</p>
<p><span>最大可申请数量:</span>{{ypGoodDetail.max_number||1}}</p>
</div>
</div>
<div class="info-detail" v-if="ypGoodDetail.goods_info">
<p><span>型号: </span>{{ypGoodDetail.goods_info.sku_name}}</p>
<p class="canshudetail">
<span>参数描述: </span>
{{ypGoodDetail.goods_info.sku_name}}{{ypGoodDetail.goods_info.brand_name}}设计生产制造,在猎芯网自营现货销售。{{ypGoodDetail.goods_info.goods_name}}的封装/规格参数为:{{ypGoodDetail.goods_info.encap}};您可以选择下载{{ypGoodDetail.goods_info.sku_name}}中文资料等数据手册功能说明书,资料中有{{ypGoodDetail.goods_info.class_id1_name}}{{ypGoodDetail.goods_info.class_id2_name}}详细使用方法及教程。
</p>
<p><span>需邀请好友人数: </span><em class="f-red">{{ypGoodDetail.quota}}</em></p>
</div>
</van-collapse-item>
</van-collapse>
<div class="form-info">
<!-- <div class="form-group">
<section class="sample-apply">
<Header :title="title" :meaushow="meaushow" :bgcolor="bgcolor"></Header>
<wxShare :url="shareUrl"></wxShare>
<van-collapse v-model="activeName" accordion :border="noborder" v-if="ypGoodDetail.goods_info">
<van-collapse-item title="商品信息" name="1" :border="noborder">
<div class="info-con clr">
<div class="fl img-box">
<img
:src="ypGoodDetail.goods_images||'https://www.ichunt.com/v3/dist/res/m/images/materiel_img_3.png'"
alt
/>
</div>
<div class="fr cb-box" v-if="ypGoodDetail.goods_info">
<div class="title">{{ypGoodDetail.goods_info.goods_name}}</div>
<p>
<span>类别:</span>
{{ypGoodDetail.goods_info.class_id1_name}}
</p>
<p>
<span>品牌:</span>
{{ypGoodDetail.goods_info.brand_name}}
</p>
<p>
<span>最大可申请数量:</span>
{{ypGoodDetail.max_number||1}}
</p>
</div>
</div>
<div class="info-detail" v-if="ypGoodDetail.goods_info">
<p>
<span>型号:</span>
{{ypGoodDetail.goods_info.sku_name}}
</p>
<p class="canshudetail">
<span>参数描述:</span>
{{ypGoodDetail.goods_info.sku_name}}{{ypGoodDetail.goods_info.brand_name}}设计生产制造,在猎芯网自营现货销售。{{ypGoodDetail.goods_info.goods_name}}的封装/规格参数为:{{ypGoodDetail.goods_info.encap}};您可以选择下载{{ypGoodDetail.goods_info.sku_name}}中文资料等数据手册功能说明书,资料中有{{ypGoodDetail.goods_info.class_id1_name}}{{ypGoodDetail.goods_info.class_id2_name}}详细使用方法及教程。
</p>
<p>
<span>需邀请好友人数:</span>
<em class="f-red">{{ypGoodDetail.quota}}</em>
</p>
</div>
</van-collapse-item>
</van-collapse>
<div class="form-info">
<!-- <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 v-if="addressInfo" class="form-group adderss-sample" @click="addressSample(addressInfo.address_id)">
<h3>
<p>{{addressInfo.consignee}}&nbsp;&nbsp;&nbsp;{{addressInfo.mobile}}</p>
<p>{{addressInfo.province_val+" " +addressInfo.district_val+" " +addressInfo.city_val+" "+addressInfo.detail_address}}</p>
<span class="fr icon iconfont icon-xiangyoujiankuohao"></span>
</h3>
</div>
<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">
</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>
<p>{{addressInfo.province_val+" " +addressInfo.district_val+" " +addressInfo.city_val+" "+addressInfo.detail_address}}</p>
<span class="fr icon iconfont icon-xiangyoujiankuohao"></span>
</h3>
</div>
<div v-else class="form-group by" @click="adderssAdd">
<h3>
<span class="f-red">*</span>新增收货地址
<span class="fr icon iconfont icon-xiangyoujiankuohao"></span>
</h3>
</div>
<div class="form-group" v-if="isShowComName">
<h3>
<span class="f-red">*</span>公司/机构/学校名称
</h3>
<input
type="text"
v-model="com_name"
placeholder="深圳市猎芯科技有限公司"
:readonly="Boolean(ypComInfo.com_name)&&(occupationType == 4 || occupationType == 7)"
/>
</div>
<div class="form-group">
<h3>
<span class="f-red">*</span>项目需求描述
</h3>
<textarea
name
v-model="sample_demand_desc"
placeholder="“参考描述:例1、无人机项目研发需要 例2、运动相机新方案验证需要 例3、毕业设计激光测距项目需要”"
class="placeh"
></textarea>
</div>
<div class="form-group by" v-if="isShowBasInfo" @click="toBasicInfo">
<h3>
<span class="f-red">*</span>基本信息
<span class="fr icon iconfont icon-xiangyoujiankuohao"></span>
</h3>
</div>
<div class="form-group by" v-if="isShowComInfo" @click="toComInfo">
<h3>
<span class="f-red">*</span>公司信息
<span class="fr icon iconfont icon-xiangyoujiankuohao"></span>
</h3>
</div>
<!-- <div class="form-group by">
<div class="txt">
<span>注意:</span>
<p>1、请填写真是姓名(或某小姐/先生),并确保电话畅通,可能会有客服人员人工确认订单</p>
<p>2、如果恶意刷单行为,本站将视情拒绝申请,猎芯网保留本活动解释权</p>
</div>
</div>
<div class="line"></div>
</div>-->
<div class="line"></div>
</div>
<div class="fix-btns" @click="submitS">确认提交</div>
<!--获得机会弹窗-->
<div class="submit-success-pop" v-show="successPop" v-if="ypGoodDetail.goods_info">
<div class="mask"></div>
<div class="get-user-con">
<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="fix-btns" @click="submitS">确认提交</div>
<!--获得机会弹窗-->
<div class="submit-success-pop" v-show="successPop" v-if="ypGoodDetail.goods_info">
<div class="mask"></div>
<div class="get-user-con">
<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-5个工作日内送达,请耐心等待</div>
</div>
<div class="share-btn-wrap">
<span class="l" @click="toUrl">继续领取</span>
<span class="r" v-shareMask>给好友送免费样片</span>
</div>
<van-loading type="spinner" color="#000" class="loading-background" v-if="loading"/>
</section>
<div class="tips">
<em>*</em>快递预计1-5个工作日内送达,请耐心等待
</div>
</div>
</div>
<van-loading type="spinner" color="#000" class="loading-background" v-if="loading" />
</section>
</template>
<script>
import Vue from "vue";
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 util from "../../util/index";
import Vue from 'vue'
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 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"),
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"),
isShowComName: false,
isShowBasInfo: false,
isShowComInfo: false,
occupationType: this.$route.query.type || -1,
fullType: this.$route.query.full || -1, //0表示未填写完整 1表示填写完整
cominfocookie: localStorage.getItem("samplecominfo") || "",
basinfocookie: localStorage.getItem("samplebasinfo") || "",
};
},
computed: {
...mapState({
loading: (state) => state.sampleapply.loading,
addressInfo: (state) => state.sampleapply.addressInfo,
ypGoodDetail: (state) => state.sampleapply.ypGoodDetail,
ypComInfo: (state) => state.sampleapply.ypComInfo,
ypBasInfo: (state) => state.sampleapply.ypBasInfo,
submitState: (state) => state.sampleapply.submitState,
ordernum: (state) => state.sampleapply.ordernum,
}),
},
watch: {
ypGoodDetail(val) {
var type = this.occupationType;
var full = this.fullType;
let num = val.max_number ;
if (!num) {
this.apply_num = 1;
} else {
this.apply_num = num;
}
full == 0 && this.fillData();
if (full == 0) {
if (type == 4 || type == 7) {
this.isShowComName = true;
} else if (type == 1 || type == 8) {
this.isShowBasInfo = true;
this.isShowComInfo = true;
}
}
},
computed: {
...mapState({
loading: state => state.sampleapply.loading,
addressInfo: state => state.sampleapply.addressInfo,
ypGoodDetail: state => state.sampleapply.ypGoodDetail,
submitState: state => state.sampleapply.submitState,
ordernum: state => state.sampleapply.ordernum,
})
submitState(val) {
if (val) {
this.successPop = true;
}
},
watch: {
submitState(val) {
if (val) {
this.successPop = true;
}
},
apply_num(val) {
let num = this.ypGoodDetail.max_number;
if (!num) {
this.apply_num = 1
} else if (val > num) {
this.apply_num = num
}
},
beforeRouteEnter(to, from, next) {
if (from.path != "/samplebasinfo" && from.path != "/samplecominfo") {
localStorage.removeItem("samplebasinfo");
localStorage.removeItem("samplecominfo");
localStorage.removeItem("sampledesc");
}
next();
},
created() {
this.$store.dispatch({
type: "getDetailYp",
data: { id: this.goods_id },
});
this.$store.dispatch({
type: "recvlistSample",
});
//这里把项目需求的描述放到缓存里面,切换页面的时候缓存起来
let sampledesccookie = localStorage.getItem("sampledesc") || "";
if (sampledesccookie) {
this.sample_demand_desc = sampledesccookie;
}
},
methods: {
descCookie() {
if (this.sample_demand_desc) {
localStorage.setItem("sampledesc", this.sample_demand_desc);
}
},
created() {
this.$store.dispatch({
type: "getDetailYp",
data: {id: this.goods_id}
toBasicInfo() {
//去基础信息页面
this.descCookie();
this.$router.push({
path: "/samplebasinfo",
query: {
type: this.occupationType,
full: this.fullType,
},
});
this.$store.dispatch({
type: 'recvlistSample'
})
},
methods: {
toUrl() {
window.location.href='/h5/view/#/sample';
},
getuserf() {
this.successPop = false;
window.location.href = '/v3/user/order';
},
submitS() {
var self = this;
toComInfo() {
//去公司信息页面
//去基础信息页面
this.descCookie();
this.$router.push({
path: "/samplecominfo",
query: {
type: this.occupationType,
full: this.fullType,
},
});
},
fillData() {
//数据填充
this.com_name = this.ypComInfo.com_name || "";
},
toUrl() {
// window.location.href = "/h5/view/#/sample";
this.$router.replace("/sample");
},
getuserf() {
this.successPop = false;
window.location.href = "/v3/user/order";
},
validateForm() {
var type = this.occupationType;
var full = this.fullType;
if ((type == 4 || type == 7) && full == 0) {
//学生并且未填
if (!this.com_name) {
Toast("请输入单位名称");
return;
return false;
}
this.$store.dispatch({
type: 'selfSampleCreate',
goods_id: self.goods_id,
apply_num: self.apply_num,
com_name: self.com_name,
sample_demand_desc: self.sample_demand_desc,
address_id: self.addressInfo.address_id
})
},
addressSample(adderssId) {
window.location.href = '/h5/view/#/userAddress?points=' + adderssId;
},
adderssAdd() {
window.location.href = '/h5/view/#/userAddress?fp=5';
}
if (!this.sample_demand_desc) {
Toast("请填写项目描述");
return false;
}
if ((type == 1 || type == 8) && full == 0) {
//非学生并且未填
//1 判断基本信息是否填写完成
let basicInfo = this.ypBasInfo;
let comInfo = this.ypComInfo;
if (
(basicInfo.mobile && basicInfo.user_name && basicInfo.email) ||
this.basinfocookie
) {
} else {
Toast("基本信息未填写完成");
return false;
}
if (
(comInfo.com_name &&
comInfo.com_telphone &&
comInfo.type_id &&
comInfo.com_province_id &&
comInfo.com_address &&
comInfo.comPic) ||
this.cominfocookie
) {
} else {
Toast("公司信息未填写完成");
return false;
}
}
return true;
},
components: {
Header,
wxShare
}
}
formDataDeal() {
//表单数据处理
var self = this;
if (!this.validateForm()) {
return false;
}
let type = this.occupationType;
let full = this.fullType;
let basicInfo = this.ypBasInfo; //请求获得的数据(基本信息)
let comInfo = this.ypComInfo; //请求获得的数据(公司信息)
let basicInfoCookie = this.basinfocookie
? JSON.parse(this.basinfocookie)
: {}; //缓存的数据(基本信息)
let comInfoCookie = this.cominfocookie
? JSON.parse(this.cominfocookie)
: {}; //缓存的数据(公司信息)
var obj = {
goods_id: self.goods_id,
apply_num: self.apply_num,
sample_demand_desc: self.sample_demand_desc,
address_id: self.addressInfo.address_id,
};
if (type != -1) {
obj["user_info[work_function]"] = type;
}
if (full == 0) {
if (type == 4 || type == 7) {
obj["company_info[com_name]"] = this.com_name;
} else if (type == 1 || type == 8) {
//1-工程师,4-学生,7-贸易商,8-终端商
obj["user_basic[mobile]"] =
basicInfo.mobile || basicInfoCookie.mobile;
obj["user_basic[email]"] = basicInfo.email || basicInfoCookie.email;
obj["user_basic[user_name]"] =
basicInfo.user_name || basicInfoCookie.user_name;
obj["user_info[work_card]"] = comInfo.comPic || comInfoCookie.com_pic;
obj["company_info[com_name]"] =
comInfo.com_name || comInfoCookie.com_name_1;
obj["company_info[type_id]"] =
comInfo.type_id || comInfoCookie.com_nature;
obj["company_info[com_telphone]"] =
comInfo.com_telphone || comInfoCookie.phone;
obj["company_info[com_province_id]"] =
comInfo.com_province_id || comInfoCookie.province_id;
obj["company_info[com_city_id]"] =
comInfo.com_city_id || comInfoCookie.city_id;
obj["company_info[com_area_id]"] =
comInfo.com_area_id || comInfoCookie.area_id;
obj["company_info[com_address]"] =
comInfo.com_address || comInfoCookie.com_detail_add;
}
}
return obj;
},
submitS() {
var obj = this.formDataDeal();
if (!obj) {
return;
}
console.log(obj);
this.$store.dispatch({
type: "selfSampleCreate",
data: obj,
});
},
addressSample(adderssId) {
window.location.href = "/h5/view/#/userAddress?points=" + adderssId;
},
adderssAdd() {
window.location.href = "/h5/view/#/userAddress";
},
},
components: {
Header,
wxShare,
},
};
</script>
<style scoped>
@import "../../assets/css/sample/sampleapply.css";
@import "../../assets/css/sample/sampleapply.css";
</style>
\ No newline at end of file
<template>
<section class="sample-basinfo">
<Header :title="title" :meaushow="meaushow" :bgcolor="bgcolor"></Header>
<div class="basinfo-form">
<div class="form-item">
<h3 class="label-h3">
<span class="f-red">*</span>手机号码
</h3>
<input
type="text"
placeholder="点击填写手机号码"
class="input"
v-model="comPhone"
:readonly="Boolean(ypBasInfo.mobile)"
/>
</div>
<div class="form-item">
<h3 class="label-h3">
<span class="f-red">*</span>联系人姓名
</h3>
<input
type="text"
placeholder="请填写真实姓名"
class="input"
v-model="userName"
maxlength="10"
:readonly="Boolean(ypBasInfo.user_name)"
/>
</div>
<div class="form-item no-border">
<h3 class="label-h3">
<span class="f-red">*</span>邮箱
</h3>
<input
type="text"
placeholder="请填写常用邮箱"
class="input"
v-model="comEmail"
:readonly="Boolean(ypBasInfo.email)"
/>
</div>
</div>
<div class="save-btn-div">
<div class="btn" @click="saveBasInfo">保存</div>
</div>
</section>
</template>
<script>
import Vue from "vue";
import { Toast } from "vant";
import { mapState } from "vuex";
import Header from "@/views/common/Header.vue";
Vue.use(Toast);
export default {
name: "samplebasinfo",
data() {
return {
title: "基础信息填写",
meaushow: true,
bgcolor: "#fafafa",
comPhone: "",
userName: "",
comEmail: "",
occupationType: this.$route.query.type || -1,
fullType: this.$route.query.full || -1, //0表示未填写完整 1表示填写完整
basinfocookie : localStorage.getItem("samplebasinfo") || ""
};
},
created() {
this.fillData()
},
computed: {
...mapState({
ypBasInfo: (state) => state.sampleapply.ypBasInfo,
}),
},
methods: {
fillData() {
//有缓存读缓存的值,没有缓存读vuex的值
if (this.basinfocookie) {
let obj = JSON.parse(this.basinfocookie);
this.comPhone = obj.mobile;
this.userName = obj.user_name;
this.comEmail = obj.email;
} else {
this.comPhone = this.ypBasInfo.mobile;
this.userName = this.ypBasInfo.user_name;
this.comEmail = this.ypBasInfo.email;
}
},
saveBasInfo() {
var phone = this.comPhone.trim();
var phoneReg = /^[+]?\d*$/;
var email = this.comEmail.trim();
var emailReg = /^[a-zA-Z0-9._%-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/;
if (phone.length < 5 || phone.length > 11 || !phoneReg.test(phone)) {
Toast("请填写正确的手机号码");
return;
} else if (!this.userName) {
Toast("请填写真实姓名");
return;
} else if (!emailReg.test(email)) {
Toast("请填写正确邮箱");
return;
}
let objString = JSON.stringify({
mobile: this.comPhone,
user_name: this.userName,
email: this.comEmail,
});
localStorage.setItem("samplebasinfo", objString);
this.$router.go(-1);
},
},
components: {
Header,
},
};
</script>
<style scoped>
@import "../../assets/css/sample/samplebasinfo.css";
</style>
\ No newline at end of file
<template>
<section class="sample-cominfo">
<Header :title="title" :meaushow="meaushow" :bgcolor="bgcolor"></Header>
<div class="cominfo-form">
<div class="form-item">
<h3 class="label-h3">
<span class="f-red">*</span>公司名称
</h3>
<input
type="text"
placeholder="填写完整公司名称"
class="input"
v-model="comName"
:readonly="Boolean(ypComInfo.com_name)"
/>
</div>
<div class="form-item">
<h3 class="label-h3">
<span class="f-red">*</span>公司座机
</h3>
<input
type="text"
placeholder="填写公司座机号码"
class="input"
v-model="comPhone"
:readonly="Boolean(ypComInfo.com_telphone)"
/>
</div>
<div class="form-item" @click="showWorkPop">
<h3 class="label-h3">
<span class="f-red">*</span>公司性质
</h3>
<div class="choose-right">
<span>{{workDefaultValue}}</span>
<i class="icon iconfont icon-jinru1"></i>
</div>
</div>
<div class="form-item" @click="showChooseAdd">
<h3 class="label-h3">
<span class="f-red">*</span>公司地址
</h3>
<div class="choose-right">
<span>{{chooseAddtext}}</span>
<i class="icon iconfont icon-jinru1"></i>
</div>
</div>
<div class="form-item detail-add">
<h3 class="detail-add-label">
<span class="f-red">*</span>详细地址
</h3>
<textarea
class="textarea"
placeholder="请输入详细地址"
v-model="comDetailAdd"
maxlength="60"
:readonly="Boolean(ypComInfo.com_address)"
></textarea>
</div>
<div class="form-item pic-item">
<h3 class="pic-item-label">
<span class="f-red">*</span>工牌/名片
</h3>
<div class="default-img" v-if="!comPic">
<div class="img"></div>
</div>
<div class="has-img" v-else>
<img :src="comPic" alt />
<div class="img-mask">
<div class="yes-icon"></div>
</div>
</div>
<input type="file" ref="uploadFile" class="file" @change="changeImg" id="file" />
<div class="upload-btn" @click="uploadImg">上传图片</div>
</div>
</div>
<div class="save-btn-div">
<div class="btn" @click="saveComInfo">保存</div>
</div>
<!-- 职业选择的弹窗 -->
<van-popup v-model="showWorkPicker" position="bottom">
<van-picker
ref="work"
show-toolbar
:default-index="workDefaultIndex"
:columns="workColumns"
@cancel="showWorkPicker = false"
@confirm="onWorkConfirm"
/>
</van-popup>
<!-- 职业选择的弹窗 -->
<!-- 地址选择 -->
<van-popup v-model="showPicker" position="bottom">
<!-- vant Picker 根据 绑定的columns数据,来渲染几级联动,这里我们使用的是三级联动 -->
<van-picker
ref="chooseadd"
v-if="pageShow"
show-toolbar
:columns="columns"
@cancel="showPicker = false;"
@confirm="onConfirm"
@change="onChange"
/>
</van-popup>
<!-- 地址选择 -->
</section>
</template>
<script>
import Vue from "vue";
import { Picker, Popup, Toast } from "vant";
import { mapState } from "vuex";
import Header from "@/views/common/Header.vue";
import { apis } from "../../api/index";
import axios from "axios";
Vue.use(Picker).use(Popup).use(Toast);
var province = [];
var city = {};
var area = {};
export default {
name: "samplecominfo",
data() {
return {
title: "公司信息填写",
meaushow: true,
bgcolor: "#fafafa",
showWorkPicker: false,
workDefaultIndex: 1,
workDefaultValue: "终端采购商",
workColumns: [
"个人",
"终端采购商",
"原厂制造商",
"授权分销商",
"学校/科研机构",
"贸易商",
"其他",
],
columns: [
{
values: "",
className: "column1",
},
{
values: "",
className: "column2",
defaultIndex: 0,
},
{
values: "",
className: "column3",
defaultIndex: 0,
},
],
pageShow: false, //省市区三级联动是否显示(因为是接口返回的数据,等省市区数据渲染完毕之后,在显示三级联动)
cityDates: "", //安联当前选中市的所有区所有数据
showPicker: false, //vant Popup弹出框显示隐藏
data: "", //接口返回所有省市区数据
chooseAddtext: "北京北京东城区",
choosePId: "2",
chooseCId: "52",
chooseAId: "500",
comProvince: "北京",
comCity: "北京",
comArea: "东城区",
comName: "",
comPhone: "",
comDetailAdd: "",
comPic: "",
cominfocookie: localStorage.getItem("samplecominfo") || "",
};
},
computed: {
...mapState({
addressAllInfo: (state) => state.userInfo.addressInfo,
ypComInfo: (state) => state.sampleapply.ypComInfo,
}),
},
watch: {
addressAllInfo(res) {
if (res) {
this.data = res;
// 默认展示一级的数据
this.columns[0].values = Object.values(res).map(function (e) {
return { text: e.text, value: e.value };
});
// 默认展示二级的数据
this.columns[1].values = Object.values(res[0].children).map(function (
e
) {
return { text: e.text, value: e.value };
});
// 默认展示三级的数据
this.columns[2].values = Object.values(res[0].children[0].children).map(
function (e) {
return { text: e.text, value: e.value };
}
);
this.fillData();
// 等待dom渲染完毕之后,在去显示 三级联动。
this.$nextTick(function () {
this.pageShow = true;
});
}
},
},
created() {
this.$store.dispatch({
type: "allAddressInfo",
});
//有缓存读缓存的值,没有缓存读vuex的值
if (this.cominfocookie) {
let obj = JSON.parse(this.cominfocookie);
this.comName = obj.com_name_1;
this.comPhone = obj.phone;
this.comDetailAdd = obj.com_detail_add;
this.comPic = obj.com_pic;
if(obj.com_nature){
this.workDefaultIndex = obj.com_nature;
this.workDefaultValue = this.workColumns[this.workDefaultIndex];
}
} else {
let obj = this.ypComInfo;
this.comName = obj.com_name;
this.comPhone = obj.com_telphone;
this.comDetailAdd = obj.com_address;
this.comPic = "";
if (obj.type_id) {
this.workDefaultIndex = obj.type_id;
this.workDefaultValue = this.workColumns[this.workDefaultIndex];
}
}
},
methods: {
fillData() {
if (this.cominfocookie) {
let obj = JSON.parse(this.cominfocookie);
if (obj.province_id) {
this.choosePId = obj.province_id;
this.chooseCId = obj.city_id;
this.chooseAId = obj.area_id;
}
} else {
let obj = this.ypComInfo;
if (obj.com_province_id) {
this.choosePId = obj.com_province_id;
this.chooseCId = obj.com_city_id;
this.chooseAId = obj.com_area_id;
}
}
if (this.choosePId) {
console.log(this.choosePId, this.chooseCId, this.chooseAId);
let { province, city, area } = this.toIdByName(
this.choosePId,
this.chooseCId,
this.chooseAId
);
this.comProvince = province;
this.comCity = city;
this.comArea = area;
this.chooseAddtext = `${province}${city}${area}`;
}
},
toIdByName(id1, id2, id3) {
let province, city, area;
for (let i = 0; i < this.data.length; i++) {
let firstItem = this.data[i];
if (firstItem.value == id1) {
province = firstItem.text;
for (let i = 0; i < firstItem.children.length; i++) {
let sencondItem = firstItem.children[i];
if (sencondItem.value == id2) {
city = sencondItem.text;
for (let i = 0; i < sencondItem.children.length; i++) {
let lastItem = sencondItem.children[i];
if (lastItem.value == id3) {
area = lastItem.text;
}
}
}
}
}
}
return {
province,
city,
area,
};
},
showChooseAdd() {
if (this.ypComInfo.com_province_id) {
return;
}
this.showPicker = !this.showPicker;
console.log(this.comProvince, this.comCity, this.comArea);
this.$nextTick(() => {
// 回调时修改第2列数据
this.$refs["chooseadd"].setColumnValues(
1,
this.cityDate(this.data, this.comProvince)
);
// 回调时修改第3列数据
this.$refs["chooseadd"].setColumnValues(
2,
this.county(this.data, this.comCity)
);
this.$refs["chooseadd"].setColumnValue(0, this.comProvince);
this.$refs["chooseadd"].setColumnValue(1, this.comCity);
this.$refs["chooseadd"].setColumnValue(2, this.comArea);
});
},
onChange(picker, values, index) {
// 回调时修改第2列数据
picker.setColumnValues(1, this.cityDate(this.data, values[0].text));
// 回调时修改第3列数据
picker.setColumnValues(2, this.county(this.data, values[1].text));
},
cityDate(data, province) {
var that = this;
data.forEach(function (res) {
if (res.text == province) {
that.cityDates = res;
}
});
console.log(that.cityDates.children);
return that.cityDates.children.map(function (e) {
return { text: e.text, value: e.value };
});
},
county(data, county) {
var that = this;
var countyDate = "";
that.cityDates.children.forEach(function (res) {
if (res.text == county) {
countyDate = res;
}
});
if (countyDate == "") {
countyDate = that.cityDates.children[0];
}
return countyDate.children.map(function (e) {
return { text: e.text, value: e.value };
});
},
onConfirm(value, a) {
this.showPicker = false;
this.comProvince = value[0]["text"];
this.comCity = value[1]["text"];
this.comArea = value[2]["text"];
this.chooseAddtext = this.comProvince + this.comCity + this.comArea;
this.choosePId = value[0]["value"];
this.chooseCId = value[1]["value"];
this.chooseAId = value[2]["value"];
},
onWorkConfirm(value) {
this.showWorkPicker = false;
this.workDefaultIndex = this.workColumns.indexOf(value);
this.workDefaultValue = value;
},
showWorkPop() {
if (this.ypComInfo.type_id) {
return;
}
this.showWorkPicker = !this.showWorkPicker;
this.$nextTick(() => {
this.$refs["work"].setColumnIndex(0, this.workDefaultIndex);
});
},
saveComInfo() {
if (!this.comName.trim()) {
Toast("请填写完整公司名称");
return;
} else if (!/^[0][1-9]{2,3}-[0-9]{5,10}$/.test(this.comPhone.trim())) {
Toast("请正确填写公司座机");
return;
} else if (!this.choosePId.trim()) {
Toast("请选择地址");
return;
} else if (!this.comDetailAdd.trim()) {
Toast("请填写详细地址");
return;
} else if (!this.comPic) {
Toast("请上传工牌/名片");
return;
}
let objString = JSON.stringify({
com_name_1: this.comName,
phone: this.comPhone,
com_nature: this.workDefaultIndex,
province_id: this.choosePId,
city_id: this.chooseCId,
area_id: this.chooseAId,
com_detail_add: this.comDetailAdd,
com_pic: this.comPic,
});
localStorage.setItem("samplecominfo", objString);
this.$router.go(-1);
},
uploadImg() {
this.$refs["uploadFile"].click();
},
changeImg(e) {
var fileObj = this.$refs["uploadFile"].files[0];
if (!fileObj) {
return;
}
if (fileObj.size / 1024 / 1024 > 2) {
Toast("图片大小不能超过2M");
this.$refs["uploadFile"].value = "";
return;
}
this.uploadImgToSer(fileObj);
},
uploadImgToSer(file) {
let self = this;
let param = new FormData();
param.append("upload", file);
param.append("source", 2);
let config = {
headers: { "Content-Type": "multipart/form-data" },
};
const toast = Toast.loading({
duration: 0, // 持续展示 toast
type: "loading",
forbidClick: true,
message: "上传中",
});
// 添加请求头
axios
.post(apis.uploadImg, param, config)
.then((res) => {
toast.clear();
if (res.data.code === 200) {
var data = res.data.data;
self.comPic = data[0];
} else {
Toast(res.data.message || "服务器异常");
}
})
.catch((e) => {
toast.clear();
Toast("服务器异常");
});
},
},
components: {
Header,
},
};
</script>
<style scoped>
@import "../../assets/css/sample/samplecominfo.css";
</style>
\ No newline at end of file
<template>
<section class="addressp ">
<Header :title="title" :historyb="historyb" @toSomeThing="toSomeThingGo"></Header>
<div v-if="!isEdit" class="list-box ">
<p class="hint van-hairline--bottom">
已创建<span class="f-blue">{{addressList.length}}</span>个收货地址,最多
<span class="f-blue">20</span>
<section class="addressp">
<Header :title="title" :historyb="historyb" @toSomeThing="toSomeThingGo"></Header>
<div v-if="!isEdit" class="list-box">
<p class="hint van-hairline--bottom">
已创建
<span class="f-blue">{{addressList.length}}</span>个收货地址,最多
<span class="f-blue">20</span>
</p>
<div class="data-box">
<div class="block-group van-hairline--top-bottom" v-for="item in addressList">
<ul class="mui-row">
<li class="mui-col-sm-6 mui-col-xs-6">
<span class="fl">收货人:</span>
<p>{{item.consignee}}</p>
</li>
<li class="mui-col-sm-6 mui-col-xs-6">
<span class="fl">联系电话:</span>
<p>{{item.mobile}}</p>
</li>
<li class="mui-col-sm-12 mui-col-xs-12 clr">
<span class="fl">收货地址:</span>
<p>{{item.province_val+" " +item.district_val+" " +item.city_val+" "+item.detail_address}}</p>
</li>
</ul>
<div class="button clr">
<p class="fr">
<a
href="javascript:void('0')"
class="f-black editx"
@click="editAdress(item.address_id)"
>
<i class="iconfont icon-bianji"></i>编辑
</a>
<a
href="javascript:void('0')"
class="f-black delBtn"
@click="deleteAdress(item.address_id)"
>
<i class="iconfont icon-shanchu"></i>删除
</a>
</p>
<div class="data-box">
<div class="block-group van-hairline--top-bottom" v-for="item in addressList">
<ul class="mui-row ">
<li class="mui-col-sm-6 mui-col-xs-6">
<span class="fl">收货人:</span>
<p>{{item.consignee}}</p>
</li>
<li class="mui-col-sm-6 mui-col-xs-6">
<span class="fl">联系电话:</span>
<p>{{item.mobile}}</p>
</li>
<li class="mui-col-sm-12 mui-col-xs-12 clr">
<span class="fl">收货地址:</span>
<p>{{item.province_val+" " +item.district_val+" " +item.city_val+" "+item.detail_address}}</p>
</li>
</ul>
<div class="button clr">
<p class="fr">
<a href="javascript:void('0')" class="f-black editx" @click="editAdress(item.address_id)">
<i class="iconfont icon-bianji"></i>编辑
</a>
<a href="javascript:void('0')" class="f-black delBtn" @click="deleteAdress(item.address_id)">
<i class="iconfont icon-shanchu"></i>删除
</a>
</p>
<van-checkbox class="fl" v-model="item.is_default==1?true:false" @click="setDefault(item.address_id,item.is_default)">默认地址</van-checkbox>
</div>
</div>
</div>
<div class="but-foot" @click="addAssress" v-show="!pointS">
新增地址&nbsp;<span class="icon iconfont">&#xe633;</span>
</div>
<div class="but-foot" @click="pointFunc" v-show="pointS">
保存
</div>
<van-checkbox
class="fl"
v-model="item.is_default==1?true:false"
@click="setDefault(item.address_id,item.is_default)"
>默认地址</van-checkbox>
</div>
</div>
<transition name="slide-right">
<div v-if="isEdit" class="edit-box Router">
<div class="block">
<dl class="mui-row input-edit">
<dt class="mui-col-sm-3 mui-col-xs-3">收货人:</dt>
<dd class="mui-col-sm-9 mui-col-xs-9">
<div class="mui-input-row add-input">
<input type="text" placeholder="请输入收货人" v-model="consignee">
</div>
</dd>
</dl>
<dl class="site-add-number mui-row input-edit">
<dt class="mui-col-sm-3 mui-col-xs-3 selectqu">
<div class="selectBoxqu ">
<div class="czselect mmSelect" @click="selectState=!selectState">
<span>{{selectVal}}</span>
<i class="icon iconfont icon-jinru1 " :class="{'icon-down-trangle':selectState}"></i>
</div>
<ul class="selectquval" v-show="selectState">
<li @click="sectUi(index)" v-for="(item,index) in areaList">
<span class="fl">{{index}}</span>
<span class="fr">{{item}}</span>
</li>
</ul>
</div>
</dt>
<dd class="mui-col-sm-9 mui-col-xs-9">
<div class="mui-input-row add-input">
<input type="text" placeholder="请输入手机号" v-model="mobile" onkeyup="if(event.keyCode !=37 &amp;&amp; event.keyCode != 39){if (!/^[\d]+$/ig.test(this.value)){this.value='';}}">
</div>
</dd>
</dl>
<dl class="mui-row input-edit">
<dt class="mui-col-sm-3 mui-col-xs-3">所在地区:</dt>
<dd class="mui-col-sm-9 mui-col-xs-9">
<input type="text" placeholder="请输入地址" readonly v-model="xgsdz" @click="showp"/>
</dd>
</dl>
<div class="input-edit">
<textarea placeholder="请输入详细街道地址,如幸福街道幸福路112号" v-model="detail_address"></textarea>
</div>
</div>
<div class="but-foot" @click="addAssress" v-show="!pointS">
新增地址&nbsp;
<span class="icon iconfont">&#xe633;</span>
</div>
<div class="but-foot" @click="pointFunc" v-show="pointS">保存</div>
</div>
<transition name="slide-right">
<div v-if="isEdit" class="edit-box Router">
<div class="block">
<dl class="mui-row input-edit">
<dt class="mui-col-sm-3 mui-col-xs-3">收货人:</dt>
<dd class="mui-col-sm-9 mui-col-xs-9">
<div class="mui-input-row add-input">
<input type="text" placeholder="请输入收货人" v-model="consignee" />
</div>
</dd>
</dl>
<dl class="site-add-number mui-row input-edit">
<dt class="mui-col-sm-3 mui-col-xs-3 selectqu">
<div class="selectBoxqu">
<div class="czselect mmSelect" @click="selectState=!selectState">
<span>{{selectVal}}</span>
<i class="icon iconfont icon-jinru1" :class="{'icon-down-trangle':selectState}"></i>
</div>
<van-switch-cell v-model="is_default" title="设为默认地址" />
<div class="tip-msg">{{tips}}</div>
<div class="add-btn" @click="submitGo">保存</div>
</div>
</transition>
<van-loading type="spinner" color="#000" class="loading-background" v-if="loading"/>
<van-popup v-model="showPicker" position="bottom">
<van-picker ref="test123"
show-toolbar
:columns="columns"
@cancel="showPicker = false"
@confirm="onConfirm"
@change="onChange"
/>
</van-popup>
</section>
<ul class="selectquval" v-show="selectState">
<li @click="sectUi(index)" v-for="(item,index) in areaList">
<span class="fl">{{index}}</span>
<span class="fr">{{item}}</span>
</li>
</ul>
</div>
</dt>
<dd class="mui-col-sm-9 mui-col-xs-9">
<div class="mui-input-row add-input">
<input
type="text"
placeholder="请输入手机号"
v-model="mobile"
onkeyup="if(event.keyCode !=37 &amp;&amp; event.keyCode != 39){if (!/^[\d]+$/ig.test(this.value)){this.value='';}}"
/>
</div>
</dd>
</dl>
<dl class="mui-row input-edit">
<dt class="mui-col-sm-3 mui-col-xs-3">所在地区:</dt>
<dd class="mui-col-sm-9 mui-col-xs-9">
<input type="text" placeholder="请输入地址" readonly v-model="xgsdz" @click="showp" />
</dd>
</dl>
<div class="input-edit">
<textarea placeholder="请输入详细街道地址,如幸福街道幸福路112号" v-model="detail_address"></textarea>
</div>
</div>
<van-switch-cell v-model="is_default" title="设为默认地址" />
<div class="tip-msg">{{tips}}</div>
<div class="add-btn" @click="submitGo">保存</div>
</div>
</transition>
<van-loading type="spinner" color="#000" class="loading-background" v-if="loading" />
<van-popup v-model="showPicker" position="bottom">
<van-picker
ref="test123"
show-toolbar
:columns="columns"
@cancel="showPicker = false"
@confirm="onConfirm"
@change="onChange"
/>
</van-popup>
</section>
</template>
<script>
import Vue from 'vue';
import {mapState} from 'vuex'
import { Loading,Picker,Popup,Checkbox,Toast,Dialog,Switch,SwitchCell } from 'vant';
import Header from '@/views/common/Header.vue';
Vue.use(Loading).use(Picker).use(Popup ).use(Checkbox).use(Toast).use(Dialog).use(Switch).use(SwitchCell);
var province = [];
var city = {}
var area = {}
export default {
name: 'addressp',
data() {
return {
title:"收货地址列表",
isEdit:false,
historyb:true,//开启自定义回跳
pointS:this.$route.query.points,//是否从积分过来
iso:this.$route.query.fp,//是否开启新增
address_id_p:this.$route.query.address_id,
zytp:this.$route.query.zyType,
import Vue from "vue";
import { mapState } from "vuex";
import {
Loading,
Picker,
Popup,
Checkbox,
Toast,
Dialog,
Switch,
SwitchCell,
} from "vant";
import Header from "@/views/common/Header.vue";
//编辑
tips:"",
edOrAdd:false,
edid:"",
selectState:false,//区号选择
selectVal:'0086',//默认区号
consignee:"",
mobile:"",
detail_address:"",
is_default:false,
showPicker:false,
columns:[],
com_province:"北京",
com_city:"北京",
com_area:"东城区",
xgsdz:"",
com_province_id:2,
com_city_id:52,
com_area_id:500,
}
Vue.use(Loading)
.use(Picker)
.use(Popup)
.use(Checkbox)
.use(Toast)
.use(Dialog)
.use(Switch)
.use(SwitchCell);
var province = [];
var city = {};
var area = {};
export default {
name: "addressp",
data() {
return {
title: "收货地址列表",
isEdit: false,
historyb: true, //开启自定义回跳
pointS: this.$route.query.points, //是否从积分过来
iso: this.$route.query.fp, //是否开启新增
address_id_p: this.$route.query.address_id,
zytp: this.$route.query.zyType,
//编辑
tips: "",
edOrAdd: false,
edid: "",
selectState: false, //区号选择
selectVal: "0086", //默认区号
consignee: "",
mobile: "",
detail_address: "",
is_default: false,
showPicker: false,
columns: [],
com_province: "北京",
com_city: "北京",
com_area: "东城区",
xgsdz: "北京北京东城区",
com_province_id: 2,
com_city_id: 52,
com_area_id: 500,
columns: [
{
values: "",
className: "column1",
},
computed: {
...mapState({
loading: state => state.address.loading,
addressList: state => state.address.addressList,
addressInfo: state => state.address.addressInfo,
addressInfoState: state => state.address.addressInfoState,
areaList: state => state.address.areaList,
addressAllInfo: state => state.userInfo.addressInfo,
})
},
watch: {
addressInfoState(val){
if(val){
this.consignee=this.addressInfo.consignee;
this.mobile=this.addressInfo.mobile;
this.detail_address=this.addressInfo.detail_address;
this.is_default=this.addressInfo.is_default==1?true:false;
this.selectVal=this.addressInfo.intl_code;
this.com_province=this.addressInfo.province_val;
this.com_city=this.addressInfo.district_val;
this.com_area=this.addressInfo.city_val;
this.xgsdz=this.com_province+this.com_city+this.com_area;
this.com_province_id=this.addressInfo.province;
this.com_city_id=this.addressInfo.district;
this.com_area_id=this.addressInfo.city;
}
}
{
values: "",
className: "column2",
defaultIndex: 0,
},
created() {
this.$store.dispatch({
type: 'recvlistUser'
})
this.$store.dispatch({
type: 'getOverseaMsgArea'
})
this.$store.dispatch({
type: 'allAddressInfo'
})
//是否从订单过来
this.isOrder();
{
values: "",
className: "column3",
defaultIndex: 0,
},
methods: {
isOrder(){
if(this.iso){
if(this.address_id_p){
//编辑
this.editAdress(this.address_id_p,1)
}else{
//新增
this.addAssress();
}
}
},
editUi(){
if(this.isEdit){
this.title="收货地址列表";
this.isEdit=false;
}else{
this.title="编辑收货地址";
this.isEdit=true;
}
},
toSomeThingGo(){
if(this.isEdit){
this.editUi();
}else{
history.go(-1);
}
},
addAssress(){
if(this.addressList.length==20){
Toast({
message: "最多只能设置20个收货地址",
duration: 2000
});
return;
}
this.editUi();
this.edOrAdd=false;
this.consignee="";
this.mobile="";
this.detail_address="";
this.xgsdz="";
this.is_default=true;
this.selectVal="0086";
this.com_province_id=2;
this.com_city_id=52;
this.com_area_id=500;
this.com_province="北京";
this.com_city="北京";
this.com_area="东城区";
],
data: "", //接口返回所有省市区数据
pageShow: false, //省市区三级联动是否显示(因为是接口返回的数据,等省市区数据渲染完毕之后,在显示三级联动)
cityDates: "", //安联当前选中市的所有区所有数据
};
},
computed: {
...mapState({
loading: (state) => state.address.loading,
addressList: (state) => state.address.addressList,
addressInfo: (state) => state.address.addressInfo,
addressInfoState: (state) => state.address.addressInfoState,
areaList: (state) => state.address.areaList,
addressAllInfo: (state) => state.userInfo.addressInfo,
}),
},
watch: {
addressAllInfo(res) {
if (res) {
this.data = res;
// 默认展示一级的数据
this.columns[0].values = Object.values(res).map(function (e) {
return { text: e.text, value: e.value };
});
// 默认展示二级的数据
this.columns[1].values = Object.values(res[0].children).map(function (
e
) {
return { text: e.text, value: e.value };
});
// 默认展示三级的数据
},
deleteAdress(id_){
Dialog.confirm({
message: '请确认是否要删除当前地址吗?'
}).then(() => {
this.$store.dispatch({
type: 'deleteAddress',
address_id:id_
this.columns[2].values = Object.values(res[0].children[0].children).map(
function (e) {
return { text: e.text, value: e.value };
}
);
// 等待dom渲染完毕之后,在去显示 三级联动。
this.$nextTick(function () {
this.pageShow = true;
});
}
},
addressInfoState(val) {
})
}).catch(() => {
// on cancel
});
},
editAdress(id_){
this.editUi();
this.edOrAdd=true;
this.edid=id_;
this.$store.dispatch({
type: 'infoAddress',
address_id:id_
})
},
sectUi(quVal){
this.selectState=false;
this.selectVal=quVal;
},
setDefault(id_,is_default){
if(is_default==1){
Toast({
message: "当前地址已经是默认地址,请选择其他地址",
duration: 2000
});
}else{
this.$store.dispatch({
type: 'setdefault',
address_id:id_
})
}
},
showp(){
this.showPicker=!this.showPicker;
var obj_=this.addressAllInfo;
for(var i=0;i<obj_.length;i++){
province.push({
value:obj_[i].value,
text:obj_[i].text,
})
city[obj_[i].text]=obj_[i].children;
var list2=obj_[i].children;
for(var j=0;j<list2.length;j++){
area[list2[j].text]=list2[j].children
}
}
console.log(this.com_province)
console.log(this.com_city)
this.columns=[
{
values: province , //可以是数组,或者对象数组
className: 'column1' //选择器的第一列
},
{
values: city [this.com_province], //默认选中country对象中的第一项
className: 'column2', //选择器的第二列
},
{
values: area [this.com_city], //默认选中country对象中的第一项
className: 'column3', //选择器的第二列
}
]
this.$nextTick(()=> {
this.$refs['test123'].setColumnValue(0,this.com_province)
this.$refs['test123'].setColumnValue(1,this.com_city)
this.$refs['test123'].setColumnValue(2,this.com_area)
})
},
onConfirm(value) {
this.showPicker = false;
this.com_province=value[0]['text'];
this.com_city=value[1]['text'];
this.com_area=value[2]['text'];
this.xgsdz=this.com_province+this.com_city+this.com_area;
this.com_province_id=value[0]['value'];
this.com_city_id=value[1]['value'];
this.com_area_id=value[2]['value'];
console.log(this.com_province_id)
console.log(this.com_city_id)
console.log(this.com_area_id)
},
onChange(picker, values) {
this.columns=[
{
values: province , //可以是数组,或者对象数组
className: 'column1' //选择器的第一列
},
{
values: city [values[0]['text']], //默认选中country对象中的第一项
className: 'column2', //选择器的第二列
},
{
values: area [values[1]['text']], //默认选中country对象中的第一项
className: 'column3', //选择器的第二列
}
]
picker.setColumnValue(0, values[0]['text']);
picker.setColumnValue(1, values[1]['text']);
picker.setColumnValue(2, values[2]['text']);
},
pointFunc(){
var list_=this.addressList;
var adderss_id_="";
for(var i=0;i<list_.length;i++){
if(list_[i].is_default==1){
adderss_id_=list_[i].address_id;
}
}
if(!adderss_id_){
Toast({
message: "请选择一个地址",
duration: 2000
});
}
this.$store.dispatch({
type: 'changeReceivePrizeAddress',
point_exchange_id:this.pointS,
address_id:adderss_id_
})
},
submitGo:function(){
if(this.consignee){
this.tips="";
}else{
this.tips="请输入收货人";
return;
}
if (!this.mobile) {
this.tips = "请输入手机号";
return;
} else {
if (this.mobile.length < 5 || this.mobile.length > 11) {
this.tips="手机号格式不正确";
return;
} else {
var r = /^[+]?\d*$/;
if (r.test(this.mobile)) {
this.tips="";
} else {
this.tips="手机号格式不正确";
return;
}
}
}
if(!this.com_province_id && !this.com_city_id){
this.tips="请选择省市区";
return;
}else{
this.tips="";
}
if(this.detail_address){
this.tips="";
}else{
this.tips="请输入详细收货地址";
return;
}
var idt_=this.edid;
if(this.iso&&this.address_id_p){
idt_=this.address_id_p
}
if(this.edOrAdd){
//编辑
this.$store.dispatch({
type: 'updateAddress',
consignee:this.consignee,
province: this.com_province_id,
city: this.com_city_id,
district: this.com_area_id,
detail_address: this.detail_address,
address_type: 0,
is_default: this.is_default?'1':0,
mobile: this.mobile,
intl_code:this.selectVal,
address_id:idt_,
orderpg:this.iso?true:false
})
}else{
//新增
this.$store.dispatch({
type: 'createAddress',
consignee:this.consignee,
province: this.com_province_id,
city: this.com_city_id,
district: this.com_area_id,
detail_address: this.detail_address,
address_type: 0,
is_default: this.is_default?'1':0,
mobile: this.mobile,
intl_code:this.selectVal,
orderpg:this.iso ?true:false
})
if (val) {
this.consignee = this.addressInfo.consignee;
this.mobile = this.addressInfo.mobile;
this.detail_address = this.addressInfo.detail_address;
this.is_default = this.addressInfo.is_default == 1 ? true : false;
this.selectVal = this.addressInfo.intl_code;
this.fillData();
}
},
},
created() {
this.$store.dispatch({
type: "recvlistUser",
});
this.$store.dispatch({
type: "getOverseaMsgArea",
});
this.$store.dispatch({
type: "allAddressInfo",
});
//是否从订单过来
this.isOrder();
},
methods: {
fillData() {
if (this.addressInfo) {
let obj = this.addressInfo;
if (obj.province) {
this.com_province_id = obj.province;
this.com_city_id = obj.city;
this.com_area_id = obj.district;
}
}
if (this.com_province_id) {
let { province, city, area } = this.toIdByName(
this.com_province_id,
this.com_city_id,
this.com_area_id
);
this.com_province = province;
this.com_city = city;
this.com_area = area;
this.xgsdz = `${province}${city}${area}`;
}
},
toIdByName(id1, id2, id3) {
let province, city, area;
for (let i = 0; i < this.data.length; i++) {
let firstItem = this.data[i];
if (firstItem.value == id1) {
province = firstItem.text;
for (let i = 0; i < firstItem.children.length; i++) {
let sencondItem = firstItem.children[i];
if (sencondItem.value == id2) {
city = sencondItem.text;
for (let i = 0; i < sencondItem.children.length; i++) {
let lastItem = sencondItem.children[i];
if (lastItem.value == id3) {
area = lastItem.text;
}
}
}
},
components: {
Header
}
}
}
return {
province,
city,
area,
};
},
isOrder() {
if (this.iso) {
if (this.address_id_p) {
//编辑
this.editAdress(this.address_id_p, 1);
} else {
//新增
this.addAssress();
}
}
},
editUi() {
if (this.isEdit) {
this.title = "收货地址列表";
this.isEdit = false;
} else {
this.title = "编辑收货地址";
this.isEdit = true;
}
},
toSomeThingGo() {
if (this.isEdit) {
this.editUi();
} else {
history.go(-1);
}
},
addAssress() {
if (this.addressList.length == 20) {
Toast({
message: "最多只能设置20个收货地址",
duration: 2000,
});
return;
}
this.editUi();
this.edOrAdd = false;
this.consignee = "";
this.mobile = "";
this.detail_address = "";
this.xgsdz = "北京北京东城区";
this.is_default = true;
this.selectVal = "0086";
this.com_province_id = 2;
this.com_city_id = 52;
this.com_area_id = 500;
this.com_province = "北京";
this.com_city = "北京";
this.com_area = "东城区";
},
deleteAdress(id_) {
Dialog.confirm({
message: "请确认是否要删除当前地址吗?",
})
.then(() => {
this.$store.dispatch({
type: "deleteAddress",
address_id: id_,
});
})
.catch(() => {
// on cancel
});
},
editAdress(id_) {
this.editUi();
this.edOrAdd = true;
this.edid = id_;
this.$store.dispatch({
type: "infoAddress",
address_id: id_,
});
},
sectUi(quVal) {
this.selectState = false;
this.selectVal = quVal;
},
setDefault(id_, is_default) {
if (is_default == 1) {
Toast({
message: "当前地址已经是默认地址,请选择其他地址",
duration: 2000,
});
} else {
this.$store.dispatch({
type: "setdefault",
address_id: id_,
});
}
},
showp() {
this.showPicker = !this.showPicker;
this.$nextTick(() => {
// 回调时修改第2列数据
this.$refs["test123"].setColumnValues(
1,
this.cityDate(this.data, this.com_province)
);
// 回调时修改第3列数据
this.$refs["test123"].setColumnValues(
2,
this.county(this.data, this.com_city)
);
this.$refs["test123"].setColumnValue(0, this.com_province);
this.$refs["test123"].setColumnValue(1, this.com_city);
this.$refs["test123"].setColumnValue(2, this.com_area);
});
},
onConfirm(value) {
this.showPicker = false;
this.com_province = value[0]["text"];
this.com_city = value[1]["text"];
this.com_area = value[2]["text"];
this.xgsdz = this.com_province + this.com_city + this.com_area;
this.com_province_id = value[0]["value"];
this.com_city_id = value[1]["value"];
this.com_area_id = value[2]["value"];
},
onChange(picker, values) {
// 回调时修改第2列数据
picker.setColumnValues(1, this.cityDate(this.data, values[0].text));
// 回调时修改第3列数据
picker.setColumnValues(2, this.county(this.data, values[1].text));
},
cityDate(data, province) {
var that = this;
data.forEach(function (res) {
if (res.text == province) {
that.cityDates = res;
}
});
console.log(that.cityDates.children);
return that.cityDates.children.map(function (e) {
return { text: e.text, value: e.value };
});
},
county(data, county) {
var that = this;
var countyDate = "";
that.cityDates.children.forEach(function (res) {
if (res.text == county) {
countyDate = res;
}
});
if (countyDate == "") {
countyDate = that.cityDates.children[0];
}
return countyDate.children.map(function (e) {
return { text: e.text, value: e.value };
});
},
pointFunc() {
var list_ = this.addressList;
var adderss_id_ = "";
for (var i = 0; i < list_.length; i++) {
if (list_[i].is_default == 1) {
adderss_id_ = list_[i].address_id;
}
}
if (!adderss_id_) {
Toast({
message: "请选择一个地址",
duration: 2000,
});
}
this.$store.dispatch({
type: "changeReceivePrizeAddress",
point_exchange_id: this.pointS,
address_id: adderss_id_,
});
},
submitGo: function () {
if (this.consignee) {
this.tips = "";
} else {
this.tips = "请输入收货人";
return;
}
if (!this.mobile) {
this.tips = "请输入手机号";
return;
} else {
if (this.mobile.length < 5 || this.mobile.length > 11) {
this.tips = "手机号格式不正确";
return;
} else {
var r = /^[+]?\d*$/;
if (r.test(this.mobile)) {
this.tips = "";
} else {
this.tips = "手机号格式不正确";
return;
}
}
}
}
if (!this.com_province_id && !this.com_city_id) {
this.tips = "请选择省市区";
return;
} else {
this.tips = "";
}
if (this.detail_address) {
this.tips = "";
} else {
this.tips = "请输入详细收货地址";
return;
}
var idt_ = this.edid;
if (this.iso && this.address_id_p) {
idt_ = this.address_id_p;
}
if (this.edOrAdd) {
//编辑
this.$store.dispatch({
type: "updateAddress",
consignee: this.consignee,
province: this.com_province_id,
city: this.com_city_id,
district: this.com_area_id,
detail_address: this.detail_address,
address_type: 0,
is_default: this.is_default ? "1" : 0,
mobile: this.mobile,
intl_code: this.selectVal,
address_id: idt_,
orderpg: this.iso ? true : false,
});
} else {
//新增
this.$store.dispatch({
type: "createAddress",
consignee: this.consignee,
province: this.com_province_id,
city: this.com_city_id,
district: this.com_area_id,
detail_address: this.detail_address,
address_type: 0,
is_default: this.is_default ? "1" : 0,
mobile: this.mobile,
intl_code: this.selectVal,
orderpg: this.iso ? true : false,
});
}
},
},
components: {
Header,
},
};
</script>
<style scoped>
@import "../../assets/css/user/address.min.css";
@import "../../assets/css/user/address.min.css";
</style>
\ 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:0;padding-bottom:0}.sample-apply .van-cell__title{font-size:16px}.sample-apply .info-con .img-box{border:1px solid #e5e5e5;-webkit-box-sizing:border-box;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:-.1rem}.sample-apply .info-con .cb-box .title{margin-bottom:0}}.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{padding:15px 16px;padding-bottom:0}.sample-apply .form-info .form-group input,.sample-apply .form-info .form-group textarea{border:0;display:block;color:#333;font-size:14px;width:100%;-webkit-box-sizing:border-box;box-sizing:border-box}.sample-apply .form-info .form-group textarea{padding:15px 16px}.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-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:-.8rem}.sample-apply .form-info .form-group .txt span{color:#ffa200;font-size:14px;padding:10px 0 0 0;display:inline-block}.sample-apply .form-info .form-group .txt p{color:#666;font-size:14px;margin-bottom:9px}.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;-webkit-box-shadow:0 0 10px #000;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;-webkit-box-shadow:0 0 20px #e5e5e5;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 .txt{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;margin:.3rem auto 0;width:64%}.sample-apply .submit-success-pop .get-user-con .txt span{font-size:13px;color:#999}.sample-apply .submit-success-pop .get-user-con .share-btn-wrap{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;margin:.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:1px solid #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:.1rem}.sample-apply .submit-success-pop .mask{position:fixed;bottom:0;top:0;left:0;right:0;background:rgba(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:0;padding-bottom:0}.sample-apply .van-cell__title{font-size:16px}.sample-apply .info-con .img-box{border:1px solid #e5e5e5;-webkit-box-sizing:border-box;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:-.1rem}.sample-apply .info-con .cb-box .title{margin-bottom:0}}.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{padding:15px 16px;padding-bottom:0}.sample-apply .form-info .form-group input,.sample-apply .form-info .form-group textarea{border:0;display:block;color:#333;font-size:14px;width:100%;-webkit-box-sizing:border-box;box-sizing:border-box}.sample-apply .form-info .form-group textarea{padding:15px 16px}.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-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:-.8rem}.sample-apply .form-info .form-group .txt span{color:#ffa200;font-size:14px;padding:10px 0 0 0;display:inline-block}.sample-apply .form-info .form-group .txt p{color:#666;font-size:14px;margin-bottom:9px}.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;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;-webkit-box-shadow:0 0 20px #e5e5e5;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 .txt{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;margin:.3rem auto 0;width:64%}.sample-apply .submit-success-pop .get-user-con .txt span{font-size:13px;color:#999}.sample-apply .submit-success-pop .get-user-con .share-btn-wrap{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;margin:.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:1px solid #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:.1rem}.sample-apply .submit-success-pop .mask{position:fixed;bottom:0;top:0;left:0;right:0;background:rgba(0,0,0,.3);z-index:999}
\ No newline at end of file
.sample-basinfo{background-color:#f3f3f3;height:100%}.sample-basinfo .basinfo-form{padding:0 15px;background-color:#fff}.sample-basinfo .basinfo-form .form-item{border-bottom:1px solid #e9e9e9;display:-webkit-box;display:-ms-flexbox;display:flex;padding:20px 0}.sample-basinfo .basinfo-form .form-item.no-border{border:none}.sample-basinfo .basinfo-form .form-item .label-h3{font-size:14px;color:#333;-webkit-box-flex:0;-ms-flex:0 0 90px;flex:0 0 90px}.sample-basinfo .basinfo-form .form-item .label-h3 span{margin-right:8px;vertical-align:middle;color:red}.sample-basinfo .basinfo-form .form-item .input{-webkit-box-flex:1;-ms-flex:1;flex:1;text-align:right;font-size:14px}.sample-basinfo .save-btn-div{padding:1rem 0}.sample-basinfo .save-btn-div .btn{width:144px;height:34px;background-color:#1080d0;border-radius:50px;text-align:center;line-height:34px;font-size:14px;color:#fff;margin:0 auto}
\ No newline at end of file
.sample-cominfo .cominfo-form{padding:0 15px}.sample-cominfo .cominfo-form .form-item{border-bottom:1px solid #e9e9e9;display:-webkit-box;display:-ms-flexbox;display:flex;padding:20px 0}.sample-cominfo .cominfo-form .form-item.detail-add{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.sample-cominfo .cominfo-form .form-item.detail-add .textarea{display:block;height:60px;font-size:14px;padding:10px 0;resize:none}.sample-cominfo .cominfo-form .form-item.pic-item{display:block;border:none;padding-bottom:2rem}.sample-cominfo .cominfo-form .form-item.pic-item .default-img{width:219px;height:94px;background-color:#e9e9e9;border-radius:2px;margin:20px auto 0;-webkit-box-sizing:border-box;box-sizing:border-box;padding-top:10px}.sample-cominfo .cominfo-form .form-item.pic-item .default-img .img{width:88px;height:73px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALAAAACSCAYAAADl00BjAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6NjUxMjgyRDVENzg5MTFFQThDQTU5RjQ1QjlCMzFFRDgiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6NjUxMjgyRDZENzg5MTFFQThDQTU5RjQ1QjlCMzFFRDgiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo2NTEyODJEM0Q3ODkxMUVBOENBNTlGNDVCOUIzMUVEOCIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo2NTEyODJENEQ3ODkxMUVBOENBNTlGNDVCOUIzMUVEOCIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Po9ncU8AAAj7SURBVHja7J1rbBVFGIaniBIaEVJQoaZQaQELGCBgJAJSkcjVlhAhkTtGihpEjNYLaEQxeEFBLvUCqKAmKhqVSxBBATViJKLcrFFKbCGIPwziDX74o36fO5WTk152z+7OfLN9n+SFAKd7trNPh9k5M99m1dbWqoD0o5RSCnW6UXIUAME5RTlCqdLZQKkMcoAsnwKzoHMpJVpgAOJiD2UHZYUWPLTAd2p5C9G2wCBVWuKVmQrMve4rergAgC12UqZRTgQRuICyj9IW7QcEcJZSTNnrR+A+lP1oMyCQfEpN6l+0SHtBB8o2tBMQynZKm8YEXkPpiHYCQumu78vqHUKMpWxGGwEHuJGyJb0HLkO7AEcoSx9CjNRWA+BKDzw6VeDhaBPgGCWpY+BjlDy0CXCIk5Rc7oGLIS9wkE7sbksVzUoynp87SPmCchptCxrhQsoAykDKiJDHyolC4KmUN3BdQAC26N95oc6cMAK3CClwOeQFIeCVjqVhBc7O8IvfpDyDawBCsonycoZfm90ixBt/jrYHEXEg0y8MI/BxtDuIiOM2BP4L7Q4i4rQNgQGwDgQGEBgACAwABAYQGAAIDAAEBgACg2TTspl8n+3SUq0DILBYJqSkIepE5hVRuynfQgkIbBOu5cZrTG+hXO7j9fk6xfrP3yuvcAaWiWIMbBxe2f8VZZFPeeujiLKEskuF3+4CILAvOitviwpvT+kR0TG5R96mZQYQODYGK69a4ZiYjn8v5SNoAoHj4EFlZlfIDZRfoAoEjpKZlMUG3+9SfYMHIHBoBlEqLLzvFZRlUAYCh2UBpbWl955HWQhtIHCm3EwZZfkcZimvrBGAwIGZI+AccimzoQ4EDspkyjVCzgW9MAQOzChB58K98CToA4H9kqN7YEmMhz4Q2C8TBJ4TD2d6QiEI7Ie+Qs9rIhSCwH7IF3peeBQvBHZa4HZQCAJDYJB4gf+BwMBlgX8Tel7VUAgCuyxwDRSCwOiBQeIF/hACA5cFlvhAGX6uw24oBIH98CXlhLBzeg/6QOAgbIbAwGWBue6DlCcjvU/5DPpA4CBUUlYJOZdVUAcCZyqO7Tv/Vyk7oY4MXCvuxzdyj2qJbPCdkln4j0tqXUm5TCdX/16t87NuO675dhYC22Ud5WrKbRbee6IeykhhGmU6ZZjP1x+lvKVzGEMIe9yuzH+40UuQvKP0TeT6APIyBcqrq3FInSspC4EtMZoy19B7DRQk70LKVsqQkMfh4UQOBLYLT63NiPH4ByldlVd3WAJTKI9EeDyuTN8aAttlvR4Tvx7xcdcqb+PmT0K+zw6U+REfk+vMPQWB7bNX39BwVfWwn9i9QxmqvOIlfwv6HnnsWhTDcfmRDDMxCyGD7To99YzBTfrmqyl2Uz5V3poLiQWt+QdzXozH5174G8oBCCyDSn2zw+FtP/kpaaW89cV14d77D+Hfz4KYj3+xlngkBJbHacp+HReZH8GMg99e/gnlVb7HGBhEQn8DvW8qDyiZVZAgsMO9b7bh9+ShRAEEBmEpU3YKCPIz9p6GwCAMXVT0c75BGG946AKBEzh06GL5HB5X3sf1EBgE7v3KhJwLj4fbQ2Dgl2zLQ4d0elOWQmDgFx539hd2TvwR/V0QGDTFEGG9b/pQYjAEBk31vlLhj9+XSPQFAsuAF+qMEH6OvKh/JQQG6RQpR+ZciTsot0JgkAqPezs4dL48Hu4FgQEzRccleB/dcxAYxLFFyBTDlZD1EhDYHnFtETJFufJ2vEDgZkjcW4RM8azyKgBZQ/qOjP7q3CdTXNbpB8qvCel9k0BnSgVlHAQ+B3/+vohyraq/8MZqnX0OzzoMUcmhlPKwvmbNfgjBq7A+0T/ROY285mvKMuXec9pMbxEyxWP6xq5ZC7yO8hLlEp+v5zHkLpv/fWXY+2arZLLcxvcmRWAulzo9g6/jp9i/rYIVuLP5v8t4lVx66qFdsxOYhwIzQnz9Bbr37iv44treImSKycqr9NNsBF6ooplOylNeLbNOgocOXVTzYKkyuKbZpsBc+inKSovcaC8KvKCStgiZgGe2Xki6wHFtVSmhPC/oYkrbImSKq0xdBxsCn6fHvXF9gsPV2x8SciElbhEyBV+HqUkUmHveuOcMeVLddslQyVuETMEL4AuSJPBsZe6xADynbHOXwwIF2lLWJEVg/mh4ucH3O1/f1PW2cOFc2CJkiusoi10XmNe+8iLoVoYbL19LbPJhJi5tETIFl2wd67LAfNPWz1LjDVJmp9dc2yJkCr4G7V0UmH/6bG+bmaB/iOLGxS1CpuBZp7WuCVwa5/gng3FpeczDpPnwtFHGRX0N4hS4u5JXR4D3cU2KcdahCI76ugaDXRCYZxzyhI7FhkZ8zKRsETLF2qjci0tgfqK71CfetFHeHHG3iHtf4J8eUY2H4xCYPwG7x4EG5J44igXYSdsiZAr2ZJY0gfmRrxWONOAw3ROHIalbhEzB7d9LisAXUVYptx4ezVNeT4bsfbPhYcZkhR1KRCkwzzgMcLAR71eZ7SJI+hYhU3DVyxLbAt+nvErerrJCBXvAX57CnG+U3G1T4DHKq1joOhsCvPY11Xy2CIkmrMD5Dt20+aG2iZ6Yb9oOU4qhjgzCVuapSGBPxD0xPxh8I6Vap6vyZljKoExyBB6tHHgQXob0VbK36YMIhhDlaD7g+hgYAAgMAAQGEBgACAwABAYAAgMIDAAEBgACAwCBQSIFPoNmAI5yhgU+hXYAjnIKAgMIDIAtgbNqa3kXjTqmZJaBAqAhTlJy62YhNqA9gGNs4l/qBP4Y7QFcFngbZTPaBDgCu7o1VWBmNdoFOML/rqYKvIXyAdoGCOdd7ep/1M1C1MFl8g9ROqKdgEB+VF79vT8bEpjpo7zCHgBII59Sk/oX9S3mOUAppPyO9gJCOKu8ykg16f/Q0Gq0o8orp7QRbQcss1N5j4PYW98/Nrackj9i5sci8bONq9COwDBV2r3rKScaelF9Y+D6yNEH40LE/dC2IEb2UHYor2Zzk+t0/AqcCgtcqsfJhbp7z0G7gwxgQY/o3pbDSxoqgxzgXwEGAH90b+8gyxiIAAAAAElFTkSuQmCC) no-repeat;background-size:100% 100%;margin:0 auto}.sample-cominfo .cominfo-form .form-item.pic-item .has-img{width:219px;height:94px;margin:20px auto 0;position:relative;border-radius:2px}.sample-cominfo .cominfo-form .form-item.pic-item .has-img img{height:100%;width:100%}.sample-cominfo .cominfo-form .form-item.pic-item .has-img .img-mask{position:absolute;top:0;left:0;right:0;bottom:0;background-color:hsla(0,0%,91.4%,.78);display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.sample-cominfo .cominfo-form .form-item.pic-item .has-img .img-mask .yes-icon{height:50px;width:50px;background:url(../img/yes.55af035c.png) no-repeat;background-size:100% 100%}.sample-cominfo .cominfo-form .form-item.pic-item .file{display:none}.sample-cominfo .cominfo-form .form-item.pic-item .upload-btn{width:100px;height:28px;border:1px solid #1080d0;font-size:14px;text-align:center;line-height:28px;color:#1080d0;margin:18px auto 0;border-radius:50px}.sample-cominfo .cominfo-form .form-item .detail-add-label,.sample-cominfo .cominfo-form .form-item .label-h3,.sample-cominfo .cominfo-form .form-item .pic-item-label{font-size:14px;color:#333}.sample-cominfo .cominfo-form .form-item .detail-add-label.label-h3,.sample-cominfo .cominfo-form .form-item .label-h3.label-h3,.sample-cominfo .cominfo-form .form-item .pic-item-label.label-h3{-webkit-box-flex:0;-ms-flex:0 0 80px;flex:0 0 80px}.sample-cominfo .cominfo-form .form-item .detail-add-label span,.sample-cominfo .cominfo-form .form-item .label-h3 span,.sample-cominfo .cominfo-form .form-item .pic-item-label span{margin-right:8px;vertical-align:middle;color:red}.sample-cominfo .cominfo-form .form-item .choose-right,.sample-cominfo .cominfo-form .form-item .input{-webkit-box-flex:1;-ms-flex:1;flex:1;text-align:right;font-size:14px}.sample-cominfo .cominfo-form .form-item .choose-right.choose-right,.sample-cominfo .cominfo-form .form-item .input.choose-right{color:#999}.sample-cominfo .cominfo-form .form-item .choose-right.choose-right i,.sample-cominfo .cominfo-form .form-item .input.choose-right i{vertical-align:middle;margin-left:8px}.sample-cominfo .save-btn-div{background-color:#f3f3f3;padding:1rem 0}.sample-cominfo .save-btn-div .btn{width:144px;height:34px;background-color:#1080d0;border-radius:50px;text-align:center;line-height:34px;font-size:14px;color:#fff;margin:0 auto}
\ No newline at end of file
.sample{padding-bottom:50px}.sample .ele{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.sample .banner{height:173px;width:100%}.sample .banner img{width: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;padding-top:15px}.sample .fx_text div{padding:0 15px 10px}.sample .fx_text span{color:#ffa200}.sample .nav{position:relative;z-index:2}.sample .nav .van-hairline--top-bottom:after{border-width:0 0 1px 0}.sample .con .con-group{padding:15px;padding-bottom:0}.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 .btn-wrap{margin-top:.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:1px solid #1080d0;text-align:center}.sample .con .con-group .cb-box .btn-wrap .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){.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;-webkit-box-shadow:0 0 10px #000;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;-webkit-box-shadow:0 0 20px #e5e5e5;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,.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,.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:.4rem 0 .4rem .2rem;height:.53333rem;line-height:.53333rem}.sample .sample-search ul li dl{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.sample .sample-search ul li dl dd{-webkit-box-flex:0;-ms-flex:0 0 50%;flex:0 0 50%;text-align:center;height:32px;line-height:32px;font-size:14px;color:#333;-webkit-transition:all .2s ease;transition:all .2s ease;border:1px solid transparent;overflow:hidden;text-overflow:ellipsis}.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:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:distribute;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}
\ No newline at end of file
.sample{padding-bottom:50px}.sample .ele{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.sample .banner{height:173px;width:100%}.sample .banner img{width: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 .activity-rule{margin:15px 15px 0 15px;border:1px solid #d5c06d;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:2px;background-color:#fffae7;color:#333}.sample .activity-rule .rule-title{height:1rem;line-height:1rem;font-size:14px;text-align:center;position:relative}.sample .activity-rule .rule-title .icon{position:absolute;right:7px;font-size:20px;color:#d5c06d}.sample .activity-rule .rule-title .icon.icon-down-trangle{font-size:26px}.sample .activity-rule .rule-content{padding:0 15px 0;font-size:12px;height:0;-webkit-transition:height .5s linear;transition:height .5s linear;overflow:hidden}.sample .activity-rule .rule-content.show{height:250px}.sample .activity-rule .rule-content p{padding-top:5px;line-height:20px}.sample .fx_text{color:#999;text-align:right;padding-top:15px}.sample .fx_text div{padding:0 15px 10px}.sample .fx_text span{color:#ffa200}.sample .nav{position:relative;z-index:2}.sample .nav .van-hairline--top-bottom:after{border-width:0 0 1px 0}.sample .con .con-group{padding:15px;padding-bottom:0}.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 .btn-wrap{margin-top:.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:1px solid #1080d0;text-align:center}.sample .con .con-group .cb-box .btn-wrap .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){.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;-webkit-box-shadow:0 0 10px #000;box-shadow:0 0 10px #000;cursor:pointer}.sample .choose-work-pop .mask{position:fixed;bottom:0;top:0;left:0;right:0;background:rgba(0,0,0,.3);z-index:999}.sample .choose-work-pop .choose-work-con{background:#fff;width:9rem;height:10rem;position:fixed;top:50%;left:50%;margin-left:-4.5rem;margin-top:-5rem;z-index:99999;border-radius:3px}.sample .choose-work-pop .choose-work-con i{position:absolute;top:-30px;color:#fff;font-size:20px;right:0}.sample .choose-work-pop .choose-work-con .work-groups .work-item{width:50%;height:4.2rem;text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box}.sample .choose-work-pop .choose-work-con .work-groups .work-item.xs-item{background-color:#eaecff;border-bottom:1px solid #fff}.sample .choose-work-pop .choose-work-con .work-groups .work-item.mys-item{background-color:#f7f7f7;border-bottom:1px solid #fff;border-left:1px solid #fff}.sample .choose-work-pop .choose-work-con .work-groups .work-item.gcs-item{background-color:#fff7f0}.sample .choose-work-pop .choose-work-con .work-groups .work-item.zds-item{background-color:#eafffb;border-left:1px solid #fff}.sample .choose-work-pop .choose-work-con .work-groups .work-item.active .radius-div{border:3px solid #0080cc}.sample .choose-work-pop .choose-work-con .work-groups .work-item .radius-div{margin:10px auto 0;height:3rem;width:3rem;-webkit-box-sizing:border-box;box-sizing:border-box;border-radius:50% 50%;border:3px solid transparent;background-repeat:no-repeat;background-size:100% 100%}.sample .choose-work-pop .choose-work-con .work-groups .work-item .radius-div.xs-radius{background-image:url(../img/work1.1684c80b.png)}.sample .choose-work-pop .choose-work-con .work-groups .work-item .radius-div.mys-radius{background-image:url(../img/work2.d809af8f.png)}.sample .choose-work-pop .choose-work-con .work-groups .work-item .radius-div.gcs-radius{background-image:url(../img/work3.7f3f8872.png)}.sample .choose-work-pop .choose-work-con .work-groups .work-item .radius-div.zds-radius{background-image:url(../img/work4.b1105a2b.png)}.sample .choose-work-pop .choose-work-con .work-groups .work-item p{font-size:14px;color:#000;margin-top:7px}.sample .choose-work-pop .choose-work-con .btn{width:4rem;height:1rem;line-height:1rem;border-radius:15px;font-size:14px;text-align:center;margin:10px auto 0;color:#fff;background-color:#d1d1d1}.sample .choose-work-pop .choose-work-con .btn.active{background-color:#0080cc}.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;-webkit-box-shadow:0 0 20px #e5e5e5;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,.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,.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:.4rem 0 .4rem .2rem;height:.53333rem;line-height:.53333rem}.sample .sample-search ul li dl{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.sample .sample-search ul li dl dd{-webkit-box-flex:0;-ms-flex:0 0 50%;flex:0 0 50%;text-align:center;height:32px;line-height:32px;font-size:14px;color:#333;-webkit-transition:all .2s ease;transition:all .2s ease;border:1px solid transparent;overflow:hidden;text-overflow:ellipsis}.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:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:distribute;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}
\ No newline at end of file
<!DOCTYPE HTML><html lang=zh-CN><head><title>猎芯网 - 电子元器件_ic交易网_电子元件/元器件批发采购网上商城平台</title><meta name=author content=www.ichunt.com><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0,user-scalable=no,minimal-ui"><meta http-equiv=Content-Type content="text/html;charset=utf-8"><meta name=apple-mobile-web-app-capable content=yes><meta name=apple-mobile-web-app-status-bar-style content=black><meta name=format-detection content="telephone=no"><meta http-equiv=Expires content=-1><meta http-equiv=Cache-Control content=no-cache><meta http-equiv=Pragma content=no-cache><meta name=full-screen content=yes><meta name=browsermode content=application><meta name=x5-fullscreen content=true><meta name=x5-page-mode content=app><meta name=keywords content=电子元器件,ic交易网,电子元件,元器件,电子元件商城,IC芯片,猎芯网><meta name=description content=猎芯网(www.Ichunt.com)是国内外知名的买电子元器件、电子元件、元器件采购商城平台,IC交易网站。为客户提供电子元器件现货批发采购,IC采购,进口报关,元器件寄售,供应链金融等一站式电子元器件采购服务><link rel=icon href=//h5static.ichunt.com/favicon.ico><link rel=stylesheet href=/v3/dist/res/m/css/font/iconfont.css><script src=/h5/view/get_time.php></script><script>var fwtimes = window.fwtime - (Math.floor((new Date().getTime()) / 1000)); //获取服务器时间差</script><script src=https://res.wx.qq.com/open/js/jweixin-1.4.0.js charset=utf-8></script><script src=https://qzonestyle.gtimg.cn/qzone/qzact/common/share/share.js charset=utf-8></script><script src=//h5static.ichunt.com/static/js/flexible.min.js charset=utf-8></script><script src=//h5static.ichunt.com/static/js/shence.min.js charset=utf-8></script><link href=//h5static.ichunt.com/css/chunk-003fb384.b11e5fdf.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-084e7fbd.ff0fdc85.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-0da6f5bc.a8e34331.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-1401b758.d8d1f2d1.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-1943a952.036eb04e.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-1e656f57.093f2cac.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-1f0dc545.7034f78f.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-1f5ab15f.d8d1f2d1.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-24add2e0.92647ec0.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-284a544b.6bb54f1a.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-29823840.5b2fbafc.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-2a765010.21c4acaa.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-2aa1802a.d8d1f2d1.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-30f776c2.d8d1f2d1.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-324f0d94.be20e716.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-32ec94d2.271480a7.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-34530264.39ce91c5.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-378fe7a6.519384fc.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-3795b890.114f15f7.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-398241fe.d8d1f2d1.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-39b24832.b2d544b7.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-39faa2a4.d8d1f2d1.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-3bb45ba4.e63f5a4d.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-3c097c09.fd90b228.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-4044944a.92647ec0.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-46520f01.6bb54f1a.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-470ba04a.614bd80c.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-5bb10935.37f79355.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-5dc4ca1f.d8d1f2d1.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-60950cc8.d8d1f2d1.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-65512df9.fc99011c.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-69b10b86.3acfb353.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-76d147b0.2c3d307f.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-7d7870ef.d8d1f2d1.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-7fb2ce2c.f81b02da.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-81b4e91a.3c8a89a1.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-839b1e56.aee9a026.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-9a8ab3ca.0930351f.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-a22f9470.75c32dbb.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-a27f09fe.d8d1f2d1.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-ad9e6894.079157bd.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-af472a0e.89eca092.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-b9590988.db4e652e.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-bbb45496.5d3ce0db.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-cab1310e.37f79355.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-cbeab798.dbb7f188.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-cdd96bb8.d8d1f2d1.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-cf36f306.d8d1f2d1.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-d040a468.a86b5b21.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-fad0077e.faa60e27.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-fe284ece.b1cd8c5b.css rel=prefetch><link href=//h5static.ichunt.com/js/chunk-003fb384.c636ca56.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-084e7fbd.5ca015b6.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-0da6f5bc.b4e21fa5.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-1401b758.210c2bd6.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-1943a952.42d3ed60.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-1e656f57.e7e6aa03.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-1f0dc545.2d257f64.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-1f5ab15f.efb59724.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-24add2e0.078b9ac9.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-284a544b.6fbdf21c.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-29823840.15ea7be3.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-2a4a33e8.1015497e.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-2a765010.6dd1298a.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-2aa1802a.3f526f0f.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-30f776c2.4def019d.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-324f0d94.90ac52d7.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-32ec94d2.506cf328.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-34530264.b027295f.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-378fe7a6.bb602b2f.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-3795b890.33ae24cf.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-398241fe.76017e50.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-39b24832.956ab788.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-39faa2a4.380a3a12.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-3bb45ba4.521edc0c.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-3c097c09.588e7e7f.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-4044944a.5695817e.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-46520f01.eb21be48.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-470ba04a.c98beff2.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-5bb10935.c211be03.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-5dc4ca1f.38aae168.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-60950cc8.55cb3cad.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-65512df9.f830df5c.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-69b10b86.a86bc788.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-76d147b0.d624e82b.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-7d7870ef.e0d87c8a.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-7fb2ce2c.13e42dea.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-81b4e91a.b4a2e1f7.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-839b1e56.49eb907b.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-9a8ab3ca.9176005b.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-a22f9470.ad1a7071.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-a27f09fe.af6ff140.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-ad9e6894.906f4812.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-af472a0e.da326cb1.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-b9590988.9eb94504.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-bbb45496.6b821aec.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-bfe218ac.68536a98.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-cab1310e.ba9c6b75.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-cbeab798.ddeec951.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-cdd96bb8.4d77338b.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-cf36f306.0e4f056f.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-d040a468.c789ff56.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-fad0077e.a395fe16.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-fe284ece.a2313cd8.js rel=prefetch><link href=//h5static.ichunt.com/css/app.cd6fce63.css rel=preload as=style><link href=//h5static.ichunt.com/css/chunk-vendors.6b99b9f1.css rel=preload as=style><link href=//h5static.ichunt.com/js/app.d14f35e2.js rel=preload as=script><link href=//h5static.ichunt.com/js/chunk-vendors.356ce250.js rel=preload as=script><link href=//h5static.ichunt.com/css/chunk-vendors.6b99b9f1.css rel=stylesheet><link href=//h5static.ichunt.com/css/app.cd6fce63.css rel=stylesheet></head><body class=boxsiz><noscript><strong>网站出现了一点小问题,正在紧急修复中.......</strong></noscript><div id=app></div><script>function SetCookie(name, value, time, domain) {
<!DOCTYPE HTML><html lang=zh-CN><head><title>猎芯网 - 电子元器件_ic交易网_电子元件/元器件批发采购网上商城平台</title><meta name=author content=www.ichunt.com><meta name=viewport content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0,user-scalable=no,minimal-ui"><meta http-equiv=Content-Type content="text/html;charset=utf-8"><meta name=apple-mobile-web-app-capable content=yes><meta name=apple-mobile-web-app-status-bar-style content=black><meta name=format-detection content="telephone=no"><meta http-equiv=Expires content=-1><meta http-equiv=Cache-Control content=no-cache><meta http-equiv=Pragma content=no-cache><meta name=full-screen content=yes><meta name=browsermode content=application><meta name=x5-fullscreen content=true><meta name=x5-page-mode content=app><meta name=keywords content=电子元器件,ic交易网,电子元件,元器件,电子元件商城,IC芯片,猎芯网><meta name=description content=猎芯网(www.Ichunt.com)是国内外知名的买电子元器件、电子元件、元器件采购商城平台,IC交易网站。为客户提供电子元器件现货批发采购,IC采购,进口报关,元器件寄售,供应链金融等一站式电子元器件采购服务><link rel=icon href=//h5static.ichunt.com/favicon.ico><link rel=stylesheet href=/v3/dist/res/m/css/font/iconfont.css><script src=/h5/view/get_time.php></script><script>var fwtimes = window.fwtime - (Math.floor((new Date().getTime()) / 1000)); //获取服务器时间差</script><script src=https://res.wx.qq.com/open/js/jweixin-1.4.0.js charset=utf-8></script><script src=https://qzonestyle.gtimg.cn/qzone/qzact/common/share/share.js charset=utf-8></script><script src=//h5static.ichunt.com/static/js/flexible.min.js charset=utf-8></script><script src=//h5static.ichunt.com/static/js/shence.min.js charset=utf-8></script><link href=//h5static.ichunt.com/css/chunk-003fb384.b11e5fdf.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-084e7fbd.ff0fdc85.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-0c9bf163.12fe2761.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-1401b758.d8d1f2d1.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-1943a952.036eb04e.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-1c926693.89993a2b.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-1e656f57.093f2cac.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-1f0dc545.7034f78f.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-1f5ab15f.d8d1f2d1.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-24add2e0.92647ec0.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-284a544b.6bb54f1a.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-29823840.5b2fbafc.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-2a765010.21c4acaa.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-2aa1802a.d8d1f2d1.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-30f776c2.d8d1f2d1.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-324f0d94.be20e716.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-32ec94d2.271480a7.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-34530264.39ce91c5.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-378fe7a6.519384fc.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-3795b890.114f15f7.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-398241fe.d8d1f2d1.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-39b24832.b2d544b7.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-39faa2a4.d8d1f2d1.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-3bb45ba4.e63f5a4d.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-3c097c09.fd90b228.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-4044944a.92647ec0.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-46520f01.6bb54f1a.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-470ba04a.614bd80c.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-503d2a1d.23e36eeb.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-5bb10935.37f79355.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-5dc4ca1f.d8d1f2d1.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-60950cc8.d8d1f2d1.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-65512df9.fc99011c.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-69b10b86.3acfb353.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-76d147b0.2c3d307f.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-783f1fe8.f5ef0fe7.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-7d7870ef.d8d1f2d1.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-7fb2ce2c.f81b02da.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-81b4e91a.3c8a89a1.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-839b1e56.aee9a026.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-9a8ab3ca.0930351f.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-a22f9470.75c32dbb.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-a27f09fe.d8d1f2d1.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-ad9e6894.079157bd.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-af472a0e.89eca092.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-b9590988.db4e652e.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-bbb45496.5d3ce0db.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-cab1310e.37f79355.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-cdd96bb8.d8d1f2d1.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-cf36f306.d8d1f2d1.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-d040a468.a86b5b21.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-f38b08f0.f30d63e2.css rel=prefetch><link href=//h5static.ichunt.com/css/chunk-fad0077e.faa60e27.css rel=prefetch><link href=//h5static.ichunt.com/js/chunk-003fb384.e54126b0.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-084e7fbd.5ab06405.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-0c9bf163.b9539fbb.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-1401b758.f8180175.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-1943a952.b25f7cd7.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-1c926693.0958a5c3.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-1e656f57.3e05397c.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-1f0dc545.eb68d46f.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-1f5ab15f.6177f942.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-24add2e0.972584ff.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-284a544b.6fbdf21c.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-29823840.1ff298b7.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-2a4a33e8.1015497e.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-2a765010.73c71263.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-2aa1802a.b6b7d2b4.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-30f776c2.36e8cbb8.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-324f0d94.d3ee8dea.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-32ec94d2.d6c39dab.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-34530264.05d68bbc.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-378fe7a6.5af09d7f.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-3795b890.2b9edf01.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-398241fe.02af0d23.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-39b24832.d7558276.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-39faa2a4.a45e6e69.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-3bb45ba4.de27909b.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-3c097c09.588e7e7f.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-4044944a.2f556008.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-46520f01.eb21be48.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-470ba04a.60694ac0.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-503d2a1d.bfa887b4.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-5bb10935.b0c1e8b7.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-5dc4ca1f.dc6c127a.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-60950cc8.cd659c7d.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-65512df9.cf5ed7d8.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-69b10b86.e0632dd1.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-76d147b0.b6ff4ae0.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-783f1fe8.e05f9813.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-7d7870ef.0eb9c465.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-7fb2ce2c.fd0946fe.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-81b4e91a.b4a2e1f7.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-839b1e56.29d97c30.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-9a8ab3ca.93eeb686.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-a22f9470.ad1a7071.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-a27f09fe.7b22704c.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-ad9e6894.273819bb.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-af472a0e.254f527e.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-b9590988.586bd90e.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-bbb45496.1bc197eb.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-bfe218ac.68536a98.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-cab1310e.4bf11cd5.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-cdd96bb8.35751194.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-cf36f306.31b26781.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-d040a468.a178a55b.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-f38b08f0.c801fd0a.js rel=prefetch><link href=//h5static.ichunt.com/js/chunk-fad0077e.bb5e91de.js rel=prefetch><link href=//h5static.ichunt.com/css/app.a467ff26.css rel=preload as=style><link href=//h5static.ichunt.com/css/chunk-vendors.6b99b9f1.css rel=preload as=style><link href=//h5static.ichunt.com/js/app.dc36bc4a.js rel=preload as=script><link href=//h5static.ichunt.com/js/chunk-vendors.356ce250.js rel=preload as=script><link href=//h5static.ichunt.com/css/chunk-vendors.6b99b9f1.css rel=stylesheet><link href=//h5static.ichunt.com/css/app.a467ff26.css rel=stylesheet></head><body class=boxsiz><noscript><strong>网站出现了一点小问题,正在紧急修复中.......</strong></noscript><div id=app></div><script>function SetCookie(name, value, time, domain) {
domain = domain ? ";domain=" + domain : "";
var Days = time;
var exp = new Date();
......@@ -233,4 +233,4 @@
user_rank: '0'
});
sensors.quick('autoTrack');
}</script><script src=//h5static.ichunt.com/js/chunk-vendors.356ce250.js></script><script src=//h5static.ichunt.com/js/app.d14f35e2.js></script></body></html>
\ No newline at end of file
}</script><script src=//h5static.ichunt.com/js/chunk-vendors.356ce250.js></script><script src=//h5static.ichunt.com/js/app.dc36bc4a.js></script></body></html>
\ No newline at end of file
(function(t){function e(e){for(var n,o,c=e[0],s=e[1],d=e[2],u=0,l=[];u<c.length;u++)o=c[u],Object.prototype.hasOwnProperty.call(i,o)&&i[o]&&l.push(i[o][0]),i[o]=0;for(n in s)Object.prototype.hasOwnProperty.call(s,n)&&(t[n]=s[n]);f&&f(e);while(l.length)l.shift()();return r.push.apply(r,d||[]),a()}function a(){for(var t,e=0;e<r.length;e++){for(var a=r[e],n=!0,o=1;o<a.length;o++){var c=a[o];0!==i[c]&&(n=!1)}n&&(r.splice(e--,1),t=s(s.s=a[0]))}return t}var n={},o={app:0},i={app:0},r=[];function c(t){return s.p+"js/"+({}[t]||t)+"."+{"chunk-003fb384":"c636ca56","chunk-084e7fbd":"5ca015b6","chunk-1e656f57":"e7e6aa03","chunk-1f0dc545":"2d257f64","chunk-2a4a33e8":"1015497e","chunk-32ec94d2":"506cf328","chunk-7fb2ce2c":"13e42dea","chunk-324f0d94":"90ac52d7","chunk-3795b890":"33ae24cf","chunk-5bb10935":"c211be03","chunk-81b4e91a":"b4a2e1f7","chunk-a22f9470":"ad1a7071","chunk-0da6f5bc":"b4e21fa5","chunk-1401b758":"210c2bd6","chunk-1943a952":"42d3ed60","chunk-1f5ab15f":"efb59724","chunk-29823840":"15ea7be3","chunk-470ba04a":"c98beff2","chunk-65512df9":"f830df5c","chunk-d040a468":"c789ff56","chunk-2a765010":"6dd1298a","chunk-2aa1802a":"3f526f0f","chunk-30f776c2":"4def019d","chunk-34530264":"b027295f","chunk-378fe7a6":"bb602b2f","chunk-398241fe":"76017e50","chunk-39b24832":"956ab788","chunk-39faa2a4":"380a3a12","chunk-3bb45ba4":"521edc0c","chunk-3c097c09":"588e7e7f","chunk-24add2e0":"078b9ac9","chunk-4044944a":"5695817e","chunk-5dc4ca1f":"38aae168","chunk-60950cc8":"55cb3cad","chunk-69b10b86":"a86bc788","chunk-76d147b0":"d624e82b","chunk-7d7870ef":"e0d87c8a","chunk-839b1e56":"49eb907b","chunk-9a8ab3ca":"9176005b","chunk-a27f09fe":"af6ff140","chunk-af472a0e":"da326cb1","chunk-b9590988":"9eb94504","chunk-bbb45496":"6b821aec","chunk-cbeab798":"ddeec951","chunk-cdd96bb8":"4d77338b","chunk-cf36f306":"0e4f056f","chunk-fad0077e":"a395fe16","chunk-fe284ece":"a2313cd8","chunk-ad9e6894":"906f4812","chunk-cab1310e":"ba9c6b75","chunk-bfe218ac":"68536a98","chunk-284a544b":"6fbdf21c","chunk-46520f01":"eb21be48"}[t]+".js"}function s(e){if(n[e])return n[e].exports;var a=n[e]={i:e,l:!1,exports:{}};return t[e].call(a.exports,a,a.exports,s),a.l=!0,a.exports}s.e=function(t){var e=[],a={"chunk-003fb384":1,"chunk-084e7fbd":1,"chunk-1e656f57":1,"chunk-1f0dc545":1,"chunk-32ec94d2":1,"chunk-7fb2ce2c":1,"chunk-324f0d94":1,"chunk-3795b890":1,"chunk-5bb10935":1,"chunk-81b4e91a":1,"chunk-a22f9470":1,"chunk-0da6f5bc":1,"chunk-1401b758":1,"chunk-1943a952":1,"chunk-1f5ab15f":1,"chunk-29823840":1,"chunk-470ba04a":1,"chunk-65512df9":1,"chunk-d040a468":1,"chunk-2a765010":1,"chunk-2aa1802a":1,"chunk-30f776c2":1,"chunk-34530264":1,"chunk-378fe7a6":1,"chunk-398241fe":1,"chunk-39b24832":1,"chunk-39faa2a4":1,"chunk-3bb45ba4":1,"chunk-3c097c09":1,"chunk-24add2e0":1,"chunk-4044944a":1,"chunk-5dc4ca1f":1,"chunk-60950cc8":1,"chunk-69b10b86":1,"chunk-76d147b0":1,"chunk-7d7870ef":1,"chunk-839b1e56":1,"chunk-9a8ab3ca":1,"chunk-a27f09fe":1,"chunk-af472a0e":1,"chunk-b9590988":1,"chunk-bbb45496":1,"chunk-cbeab798":1,"chunk-cdd96bb8":1,"chunk-cf36f306":1,"chunk-fad0077e":1,"chunk-fe284ece":1,"chunk-ad9e6894":1,"chunk-cab1310e":1,"chunk-284a544b":1,"chunk-46520f01":1};o[t]?e.push(o[t]):0!==o[t]&&a[t]&&e.push(o[t]=new Promise((function(e,a){for(var n="css/"+({}[t]||t)+"."+{"chunk-003fb384":"b11e5fdf","chunk-084e7fbd":"ff0fdc85","chunk-1e656f57":"093f2cac","chunk-1f0dc545":"7034f78f","chunk-2a4a33e8":"31d6cfe0","chunk-32ec94d2":"271480a7","chunk-7fb2ce2c":"f81b02da","chunk-324f0d94":"be20e716","chunk-3795b890":"114f15f7","chunk-5bb10935":"37f79355","chunk-81b4e91a":"3c8a89a1","chunk-a22f9470":"75c32dbb","chunk-0da6f5bc":"a8e34331","chunk-1401b758":"d8d1f2d1","chunk-1943a952":"036eb04e","chunk-1f5ab15f":"d8d1f2d1","chunk-29823840":"5b2fbafc","chunk-470ba04a":"614bd80c","chunk-65512df9":"fc99011c","chunk-d040a468":"a86b5b21","chunk-2a765010":"21c4acaa","chunk-2aa1802a":"d8d1f2d1","chunk-30f776c2":"d8d1f2d1","chunk-34530264":"39ce91c5","chunk-378fe7a6":"519384fc","chunk-398241fe":"d8d1f2d1","chunk-39b24832":"b2d544b7","chunk-39faa2a4":"d8d1f2d1","chunk-3bb45ba4":"e63f5a4d","chunk-3c097c09":"fd90b228","chunk-24add2e0":"92647ec0","chunk-4044944a":"92647ec0","chunk-5dc4ca1f":"d8d1f2d1","chunk-60950cc8":"d8d1f2d1","chunk-69b10b86":"3acfb353","chunk-76d147b0":"2c3d307f","chunk-7d7870ef":"d8d1f2d1","chunk-839b1e56":"aee9a026","chunk-9a8ab3ca":"0930351f","chunk-a27f09fe":"d8d1f2d1","chunk-af472a0e":"89eca092","chunk-b9590988":"db4e652e","chunk-bbb45496":"5d3ce0db","chunk-cbeab798":"dbb7f188","chunk-cdd96bb8":"d8d1f2d1","chunk-cf36f306":"d8d1f2d1","chunk-fad0077e":"faa60e27","chunk-fe284ece":"b1cd8c5b","chunk-ad9e6894":"079157bd","chunk-cab1310e":"37f79355","chunk-bfe218ac":"31d6cfe0","chunk-284a544b":"6bb54f1a","chunk-46520f01":"6bb54f1a"}[t]+".css",i=s.p+n,r=document.getElementsByTagName("link"),c=0;c<r.length;c++){var d=r[c],u=d.getAttribute("data-href")||d.getAttribute("href");if("stylesheet"===d.rel&&(u===n||u===i))return e()}var l=document.getElementsByTagName("style");for(c=0;c<l.length;c++){d=l[c],u=d.getAttribute("data-href");if(u===n||u===i)return e()}var f=document.createElement("link");f.rel="stylesheet",f.type="text/css",f.onload=e,f.onerror=function(e){var n=e&&e.target&&e.target.src||i,r=new Error("Loading CSS chunk "+t+" failed.\n("+n+")");r.code="CSS_CHUNK_LOAD_FAILED",r.request=n,delete o[t],f.parentNode.removeChild(f),a(r)},f.href=i;var g=document.getElementsByTagName("head")[0];g.appendChild(f)})).then((function(){o[t]=0})));var n=i[t];if(0!==n)if(n)e.push(n[2]);else{var r=new Promise((function(e,a){n=i[t]=[e,a]}));e.push(n[2]=r);var d,u=document.createElement("script");u.charset="utf-8",u.timeout=120,s.nc&&u.setAttribute("nonce",s.nc),u.src=c(t);var l=new Error;d=function(e){u.onerror=u.onload=null,clearTimeout(f);var a=i[t];if(0!==a){if(a){var n=e&&("load"===e.type?"missing":e.type),o=e&&e.target&&e.target.src;l.message="Loading chunk "+t+" failed.\n("+n+": "+o+")",l.name="ChunkLoadError",l.type=n,l.request=o,a[1](l)}i[t]=void 0}};var f=setTimeout((function(){d({type:"timeout",target:u})}),12e4);u.onerror=u.onload=d,document.head.appendChild(u)}return Promise.all(e)},s.m=t,s.c=n,s.d=function(t,e,a){s.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:a})},s.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},s.t=function(t,e){if(1&e&&(t=s(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var a=Object.create(null);if(s.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)s.d(a,n,function(e){return t[e]}.bind(null,n));return a},s.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return s.d(e,"a",e),e},s.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},s.p="//h5static.ichunt.com/",s.oe=function(t){throw t};var d=window["webpackJsonp"]=window["webpackJsonp"]||[],u=d.push.bind(d);d.push=e,d=d.slice();for(var l=0;l<d.length;l++)e(d[l]);var f=u;r.push([0,"chunk-vendors"]),a()})({0:function(t,e,a){t.exports=a("56d7")},"365c":function(t,e,a){"use strict";a.d(e,"b",(function(){return g})),a.d(e,"a",(function(){return m})),a.d(e,"c",(function(){return _}));a("5ab2"),a("6d57"),a("e44b"),a("e10e");var n,o,i,r,c,s=a("9bef"),d=a("f753"),u=a.n(d);function l(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,n)}return a}function f(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?l(Object(a),!0).forEach((function(e){Object(s["a"])(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):l(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}switch(window.location.hostname){case"m.ichunt.com":i="https://www.ichunt.com/v3/",o="https://m.ichunt.com/v3/",n="https://api.ichunt.com/",r="https://so12.ichunt.com",c="https://so12.ichunt.com";break;case"szm.ichunt.com":n="https://szapi.ichunt.com/",o="https://szm.ichunt.com/v3/",i="https://sz.ichunt.com/v3/",r="https://szso.ichunt.com",c="https://szso.ichunt.com";break;case"tm.ichunt.com":o="https://tm.ichunt.com/v3/",n="https://api.ichunt.com/",i="https://t.ichunt.com/v3/",r="https://so12.ichunt.com",c="https://so12.ichunt.com";break;case"m.liexin.com":o="http://m.liexin.com/v3/",n="http://api.liexin.com/",i="http://www.liexin.com/v3/",r="http://soso12.ichunt.com",c="http://soso12.ichunt.com";break;default:o="/m/v3/",n="/apis/"}var g=i,h=o,m=n,p={wxShare:o+"shareparams",index:h+"index",loginCheck:m+"login/check",cartCount:m+"cart/count",confirmBehavior:m+"/public/confirmBehavior",cartList:m+"cart/lists",cartDelete:m+"cart/delete",allcount:m+"cart/allcount",changenum:m+"/cart/changenum",customsrService:m+"public/customsrservice",getCommonParams:h+"getcommonparams",wxaccess:h+"api/wxaccess",checkAccountExists:m+"public/checkAccountExists",customSmsVerify:m+"public/customSmsVerify",chainFind:h+"Service/chainFind",wechatArticle:m+"Wechat/WechatArticleJinJi/article",newsArticle:m+"Article/Article/index",newsArticleDetail:m+"Article/Article/details",newsArticleDetailAd:h+"api/newsdetailad",actionLogin:m+"login/action",actionLogins:m+"login/action",smsVerify:m+"public/smsVerify",feedback:m+"help/help/feedback",getUserCurrentPoint:m+"/point/getUserCurrentPoint",isSignInToday:m+"signIn/isSignInToday",signIn:m+"signIn/signIn",checkMktScore:m+"user/checkMktScore",getPointPrize:m+"point/getPointPrize",exchangePrize:m+"point/exchangePrize",getUserPointExchangeDetail:m+"point/getUserPointExchangeDetail",recvlist:m+"address/recvlist",createAddress:m+"address/create",updateAddress:m+"address/update",changeReceivePrizeAddress:m+"point/changeReceivePrizeAddress",setdefault:m+"address/setdefault",deleteAddress:m+"address/delete",infoAddress:m+"address/info",getOverseaMsgArea:m+"/reg/getOverseaMsgArea",pointruleApi:h+"api/pointrule",getUserPointDetail:m+"point/getUserPointDetail",getUserPointExchangeList:m+"point/getUserPointExchangeList",getWalletInfo:m+"wallet/info",activateWallet:m+"wallet/activate",sendSafesms:m+"wallet/safesms",verifyResetsms:m+"wallet/verifyresetsms",changeWalletpwd:m+"wallet/changepwd",walletListLog:m+"wallet/log",walletRecordList:m+"wallet/lists",verifySafeMobile:m+"wallet/verifysafe",getBindBankmsg:m+"wallet/getbankmsg",bindBankCard:m+"wallet/bindbankcard",walletRecharge:m+"wallet/recharge",walletWithdraw:m+"wallet/withdraw",rechargeWithdrawOrderIfo:m+"wallet/orderinfo",payTodo:m+"pay/todo",orderInfo:m+"order/info",getAboutUsData:h+"api/aboutData",searchZy:r+"/search/ZiYing/zy",searchLy:c+"/search/getData/index",searchLyEs:c+"/search/es/index",supplierApi:h+"api/supplierApi",goodDetail:m+"/goods/detail",defaultClass:h+"api/defaultClass",addGood:m+"/cart/add",selfSampleCreate:m+"/order/selfsamplecreate",getusersampleinfo:m+"/user/getusersampleinfo",loginsampleaction:m+"/login/sampleaction",samplelist:m+"/sample/list",sampleclasslist:m+"/sample/class/list",getsampleinfo:o+"getsampleinfo",getUserType:m+"/user/getUserType",orderCount:m+"/order/count",getBindInfo:m+"/user/getBindInfo",unbindPhone:m+"/user/unbind",logout:m+"/login/logout",allAddress:m+"/address/allpcd",changeUserInfo:m+"/user/changeUserInfo",ucouponCount:m+"/ucoupon/count",ucouponLists:m+"/ucoupon/lists",brandList:h+"api/brandList",brandInfo:h+"api/brandInfo",skuList:m+"sku/info",getlxuserrank:m+"activity/getlxuserrank",getfileuploadbanner:h+"news/getfileuploadbanner",articleShowData:m+"article/showData",downloadFile:m+"article/DownloadFile",smsVerifys:m+"public/smsVerify",showClass:m+"article/show_class",aggSample:r+"/search/ZiYing/aggSample",aggs:r+"/search/ZiYing/aggs",ZiYingIndex:r+"/search/ZiYing/index",getsamplebanner:o+"/getsamplebanner",invited:n+"/activity/invited",rotation:n+"/activity/rotation",yaoHaoYouJP:n+"/activity/yaoHaoYouJP",getYaoHaoYouGoodId:n+"/activity/getYaoHaoYouGoodId"},_={index:function(t){return u.a.post(p.index,t)},loginCheck:function(t){return u.a.get(p.loginCheck,{params:f({},t)})},smsVerify:function(t){return u.a.post(p.smsVerify,t)},smsVerifys:function(t){return u.a.post(p.smsVerifys,t)},actionLogin:function(t){return u.a.post(p.actionLogin,t)},actionLogins:function(t){return u.a.post(p.actionLogins,t)},feedback:function(t){return u.a.post(p.feedback,t)},cartCount:function(t){return u.a.get(p.cartCount,{params:f({},t)})},customsrService:function(t){return u.a.get(p.customsrService,{params:f({},t)})},getCommonParams:function(t){return u.a.post(p.getCommonParams,t)},wxaccess:function(t){return u.a.post(p.wxaccess,t)},checkAccountExists:function(t){return u.a.post(p.checkAccountExists,t)},customSmsVerify:function(t){return u.a.post(p.customSmsVerify,t)},chainFind:function(t){return u.a.post(p.chainFind,t)},wechatArticle:function(t){return u.a.post(p.wechatArticle,t)},newsArticle:function(t){return u.a.post(p.newsArticle,t)},newsArticleDetail:function(t){return u.a.post(p.newsArticleDetail,t)},newsArticleDetailAd:function(t){return u.a.post(p.newsArticleDetailAd,t)},getUserCurrentPoint:function(t){return u.a.post(p.getUserCurrentPoint,t)},isSignInToday:function(t){return u.a.post(p.isSignInToday,t)},signIn:function(t){return u.a.post(p.signIn,t)},checkMktScore:function(t){return u.a.post(p.checkMktScore,t)},getPointPrize:function(t){return u.a.post(p.getPointPrize,t)},exchangePrize:function(t){return u.a.post(p.exchangePrize,t)},recvlist:function(t){return u.a.post(p.recvlist,t)},createAddress:function(t){return u.a.post(p.createAddress,t)},updateAddress:function(t){return u.a.post(p.updateAddress,t)},changeReceivePrizeAddress:function(t){return u.a.post(p.changeReceivePrizeAddress,t)},setdefault:function(t){return u.a.post(p.setdefault,t)},deleteAddress:function(t){return u.a.post(p.deleteAddress,t)},infoAddress:function(t){return u.a.post(p.infoAddress,t)},getOverseaMsgArea:function(t){return u.a.post(p.getOverseaMsgArea,t)},getUserPointExchangeDetail:function(t){return u.a.post(p.getUserPointExchangeDetail,t)},pointruleApi:function(t){return u.a.post(p.pointruleApi,t)},getUserPointDetail:function(t){return u.a.post(p.getUserPointDetail,t)},getUserPointExchangeList:function(t){return u.a.post(p.getUserPointExchangeList,t)},getAboutUsData:function(t){return u.a.post(p.getAboutUsData,t)},getWalletInfo:function(t){return u.a.get(p.getWalletInfo,{params:f({},t)})},activateWallet:function(t){return u.a.post(p.activateWallet,t)},sendSafesms:function(t){return u.a.post(p.sendSafesms,t)},verifyResetsms:function(t){return u.a.post(p.verifyResetsms,t)},walletListLog:function(t){return u.a.post(p.walletListLog,t)},changeWalletpwd:function(t){return u.a.post(p.changeWalletpwd,t)},walletRecordList:function(t){return u.a.post(p.walletRecordList,t)},verifySafeMobile:function(t){return u.a.post(p.verifySafeMobile,t)},getBindBankmsg:function(t){return u.a.post(p.getBindBankmsg,t)},bindBankCard:function(t){return u.a.post(p.bindBankCard,t)},walletRecharge:function(t){return u.a.post(p.walletRecharge,t)},walletWithdraw:function(t){return u.a.post(p.walletWithdraw,t)},rechargeWithdrawOrderIfo:function(t){return u.a.post(p.rechargeWithdrawOrderIfo,t)},payTodo:function(t){return u.a.post(p.payTodo,t)},orderInfo:function(t){return u.a.post(p.orderInfo,t)},getZyData:function(t){return u.a.post(p.searchZy,t)},getLyData:function(t){return u.a.post(p.searchLy,t)},getLyEsData:function(t){return u.a.post(p.searchLyEs,t)},supplierApi:function(t){return u.a.post(p.supplierApi,t)},goodDetail:function(t){return u.a.post(p.goodDetail,t)},defaultClass:function(t){return u.a.post(p.defaultClass,t)},addGood:function(t){return u.a.post(p.addGood,t)},cartList:function(t){return u.a.post(p.cartList,t)},cartDelete:function(t){return u.a.post(p.cartDelete,t)},allcount:function(t){return u.a.post(p.allcount,t)},confirmBehavior:function(t){return u.a.post(p.confirmBehavior,t)},changenum:function(t){return u.a.post(p.changenum,t)},getUserType:function(t){return u.a.post(p.getUserType,t)},orderCount:function(t){return u.a.post(p.orderCount,t)},getBindInfo:function(t){return u.a.post(p.getBindInfo,t)},ucouponCount:function(t){return u.a.post(p.ucouponCount,t)},ucouponLists:function(t){return u.a.post(p.ucouponLists,t)},unbindPhone:function(t){return u.a.post(p.unbindPhone,t)},logout:function(t){return u.a.post(p.logout,t)},allAddress:function(t){return u.a.post(p.allAddress,t)},changeUserInfo:function(t){return u.a.post(p.changeUserInfo,t)},brandList:function(t){return u.a.post(p.brandList,t)},brandInfo:function(t){return u.a.get(p.brandInfo,{params:f({},t)})},skuList:function(t){return u.a.post(p.skuList,t)},getlxuserrank:function(t){return u.a.post(p.getlxuserrank,t)},getfileuploadbanner:function(t){return u.a.post(p.getfileuploadbanner,t)},articleShowData:function(t){return u.a.post(p.articleShowData,t)},downloadFile:function(t){return u.a.post(p.downloadFile,t)},wxShare:function(t){return u.a.post(p.wxShare,t)},selfSampleCreate:function(t){return u.a.post(p.selfSampleCreate,t)},sampleClassList:function(t){return u.a.get(p.sampleclasslist,{params:f({},t)})},sampleList:function(t){return u.a.get(p.samplelist,{params:f({},t)})},getUserSampleInfo:function(t){return u.a.get(p.getusersampleinfo,{params:f({},t)})},getSampleInfo:function(t){return u.a.post(p.getsampleinfo,t)},showClass:function(t){return u.a.post(p.showClass,t)},aggSample:function(t){return u.a.post(p.aggSample,t)},aggs:function(t){return u.a.post(p.aggs,t)},ZiYingIndex:function(t){return u.a.post(p.ZiYingIndex,t)},getsamplebanner:function(t){return u.a.post(p.getsamplebanner,t)},oscilloscopeinvited:function(t){return u.a.post(p.invited,t)},getBannerData:function(t){return u.a.post(p.rotation,t)},yaoHaoYouJP:function(t){return u.a.post(p.yaoHaoYouJP,t)},getYaoHaoYouGoodId:function(t){return u.a.get(p.getYaoHaoYouGoodId,{params:f({},t)})}}},4260:function(t,e,a){"use strict";a("163d"),a("9e76"),a("f548"),a("c904"),a("e44b"),a("e10e"),a("6d57"),a("5f54"),a("9a33");var n=0,o=8;function i(t){return f(r(l(t),t.length*o))}function r(t,e){t[e>>5]|=128<<24-e%32,t[15+(e+64>>9<<4)]=e;for(var a=Array(80),n=1732584193,o=-271733879,i=-1732584194,r=271733878,l=-1009589776,f=0;f<t.length;f+=16){for(var g=n,h=o,m=i,p=r,_=l,b=0;b<80;b++){a[b]=b<16?t[f+b]:u(a[b-3]^a[b-8]^a[b-14]^a[b-16],1);var v=d(d(u(n,5),c(b,o,i,r)),d(d(l,a[b]),s(b)));l=r,r=i,i=u(o,30),o=n,n=v}n=d(n,g),o=d(o,h),i=d(i,m),r=d(r,p),l=d(l,_)}return Array(n,o,i,r,l)}function c(t,e,a,n){return t<20?e&a|~e&n:t<40?e^a^n:t<60?e&a|e&n|a&n:e^a^n}function s(t){return t<20?1518500249:t<40?1859775393:t<60?-1894007588:-899497514}function d(t,e){var a=(65535&t)+(65535&e),n=(t>>16)+(e>>16)+(a>>16);return n<<16|65535&a}function u(t,e){return t<<e|t>>>32-e}function l(t){for(var e=Array(),a=(1<<o)-1,n=0;n<t.length*o;n+=o)e[n>>5]|=(t.charCodeAt(n/o)&a)<<24-n%32;return e}function f(t){for(var e=n?"0123456789ABCDEF":"0123456789abcdef",a="",o=0;o<4*t.length;o++)a+=e.charAt(t[o>>2]>>8*(3-o%4)+4&15)+e.charAt(t[o>>2]>>8*(3-o%4)&15);return a}var g=a("1cfa");e["a"]={setCookie:function(t,e,a,n){n=n?";domain="+n:"";var o=a,i=new Date;return i.setTime(i.getTime()+24*o*60*60*1e3),document.cookie=t+"="+encodeURIComponent(e)+";expires="+i.toGMTString()+";path=/"+n,!0},getCookie:function(t){for(var e=document.cookie,a=e.split("; "),n=0;n<a.length;n++){var o=a[n].split("=");if(t==o[0])return o[1]}return null},delCookie:function(t){var e=new Date;e.setTime(e.getTime()-1);var a=this.getCookie(t);null!=a&&(document.cookie=t+"="+a+";expires="+e.toGMTString())},getParams:function(t){var e=this.getCookie("Yo4teW_gid"),a=this.getCookie("cache_time");if(null!=a)var n=Math.floor((new Date).getTime()/1e3);else{n=Math.floor((new Date).getTime()/1e3)+window.fwtimes;this.setCookie("cache_time",window.fwtimes,1,window.cookieHostname)}var o=[],r={},c="",s="",d="",u={pf:2,qwertyuiop:n,Yo4teW_gid:e},l=Object.assign({},u,t);Object.keys(l).forEach((function(t,e,a){o.push(t)})),o=o.sort(),o.forEach((function(t,e,a){r[o[e]]=l[o[e]]})),Object.keys(r).forEach((function(t,e,a){c+=t+"="+r[t]})),s=c.replace(/[^0-9a-zA-Z]/g,""),s=s.toUpperCase();for(var f=0;f<s.length;f++)"A"!=s[f]&&"B"!=s[f]&&"C"!=s[f]&&(d+=s[f]);c=i(d);var h=Object.assign({},t,{asdfghjkl:c},{qwertyuiop:n},{pf:2});return g.stringify(h)},isLogin:function(){var t=0;return this.getCookie("Yo4teW_uid")&&(t=2,this.getCookie("Yo4teW_skey")&&(t=1)),t},loginBack:function(){},compare:function(t,e){return function(a,n){var o=a[t],i=n[t];return e?o-i:i-o}},distinct:function(t){var e,a,n=t,o=[],i=n.length;for(e=0;e<i;e++){for(a=e+1;a<i;a++)n[e]===n[a]&&(a=++e);o.push(n[e])}return o},isUerAgent:function(){var t=navigator.userAgent,e="";return e=t.indexOf("Android")>-1||t.indexOf("Adr")>-1?"android":t.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)?"ios":"pc",e},aggxde:function(t){t=String(t);if(t&&-1!=t.indexOf("font")){var e=t.split('class="');e.shift();for(var a="",n=[["asfgdqwer","asfgdtyhg","asfgdpolk","asfgdpoqw"],["asfgdrfdf","asfgderfd","asfgdwdsa","asfgdpoer"],["asfgdasde","asfgdqwsz","asfgdrtgd","asfgdpovv"],["asfgdwsxc","asfgdwsxz","asfgdrfvb","asfgdpoee"],["asfgdqazs","asfgdqasd","asfgdqwag","asfgdpogh"],["asfgdrtyh","asfgdyutr","asfgdeews","asfgdpotg"],["asfgdpluj","asfgdikjf","asfgdesgj","asfgdpfff"],["asfgdtrdb","asfgdiksf","asfgdsgkp","asfgdprty"],["asfgdpehl","asfgdstgb","asfgderll","asfgdpokf"],["asfgdpehg","asfgdstgf","asfgderlf","asfgdpogk"]],o=0;o<e.length;o++)for(var i=e[o].split(" ")[0],r=0;r<n.length;r++)-1!=n[r].indexOf(i)&&(a+=r);return Number(a)}return Number(t)}}},"49b7":function(module,__webpack_exports__,__webpack_require__){"use strict";var core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("e44b"),core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_0__),core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("e10e"),core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_1__),core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("6d57"),core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_2__),vue__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("0261"),vant__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("0a68"),_util_index__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("4260"),_api_index__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("365c"),qs=__webpack_require__("1cfa");vue__WEBPACK_IMPORTED_MODULE_3__["a"].use(vant__WEBPACK_IMPORTED_MODULE_4__["a"]);var state={loading:!1,supplierList:[],supplierIds:"",isLyData:!1,lyData:[],isHaveData:!1},mutations={supplierApi:function supplierApi(state,payload){var datalisy=eval("("+payload.data+")");Object.keys(datalisy).forEach((function(t){state.supplierList.push({ids:t,name:datalisy[t],isCheck:!1}),state.supplierIds+=","+t})),state.supplierIds=state.supplierIds.slice(1)},searchLyEsData:function(t,e){if(e.isMore){for(var a=t.lyData||[],n=0;n<a.length;n++)if(a[n].supplier_id==e.data.supplier_id){var o=a[n].data,i=e.data.data;t.lyData[n].data=o.concat(i),t.lyData[n].p=e.p+1,t.lyData[n].updateLength=e.data.total-t.lyData[n].data.length,t.lyData[n].updateLength<=0&&(t.lyData[n].fished=!0)}}else e.data.updateLength=e.data.total-2,e.data.p=2,e.data.k=e.k,t.lyData.push(e.data)},resetData:function(t){t.lyData=[]}},actions={supplierApi:function(t,e){var a=t.commit;_api_index__WEBPACK_IMPORTED_MODULE_6__["c"].supplierApi().then((function(t){state.isLyData=!1;var e=t.data;0==e.err_code&&(state.isLyData=!0,a({type:"supplierApi",data:e.data}))}))},searchLyEsData:function(t,e){var a=t.commit;e.isMore&&(state.loading=!0);var n=_util_index__WEBPACK_IMPORTED_MODULE_5__["a"].getParams({k:e.k,p:e.p||1});_api_index__WEBPACK_IMPORTED_MODULE_6__["c"].getLyEsData(n).then((function(t){state.loading=!1;var n=t.data;0==n.error_code&&a({type:"searchLyEsData",data:n.data,isMore:e.isMore,k:e.k,p:e.p||1})}))}},getters={};__webpack_exports__["a"]={state:state,mutations:mutations,actions:actions,getters:getters}},"56d7":function(t,e,a){"use strict";a.r(e);a("5ab2");var n=a("9bef"),o=(a("e44b"),a("e10e"),a("6d57"),a("6648"),a("0b53"),a("0261")),i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"app"}},[a("keep-alive",{attrs:{exclude:"newsDetail,pointchange,wallet,walletRetrieve,walletDetail,walletRecord,walletStatus,walletWithdraw,walletRecharge,xianhuo,lxshop,brand,brandList,sampleapply,risk,risksuccess,sample"}},[a("router-view",{staticClass:"router-view"})],1)],1)},r=[],c={name:"app"},s=c,d=a("9ca4"),u=Object(d["a"])(s,i,r,!1,null,null,null),l=u.exports,f=a("f753"),g=a.n(f),h=(a("cc57"),a("3f11")),m=function(t){return a.e("chunk-81b4e91a").then(function(){var e=[a("9553")];t.apply(null,e)}.bind(this)).catch(a.oe)},p=function(t){return a.e("chunk-3795b890").then(function(){var e=[a("2500")];t.apply(null,e)}.bind(this)).catch(a.oe)},_=function(t){return a.e("chunk-1f0dc545").then(function(){var e=[a("9055")];t.apply(null,e)}.bind(this)).catch(a.oe)},b=function(t){return Promise.all([a.e("chunk-a22f9470"),a.e("chunk-76d147b0")]).then(function(){var e=[a("bd04")];t.apply(null,e)}.bind(this)).catch(a.oe)},v=function(t){return Promise.all([a.e("chunk-a22f9470"),a.e("chunk-af472a0e")]).then(function(){var e=[a("2536")];t.apply(null,e)}.bind(this)).catch(a.oe)},y=function(t){return Promise.all([a.e("chunk-a22f9470"),a.e("chunk-bbb45496")]).then(function(){var e=[a("832f")];t.apply(null,e)}.bind(this)).catch(a.oe)},w=function(t){return Promise.all([a.e("chunk-2a4a33e8"),a.e("chunk-32ec94d2")]).then(function(){var e=[a("f825")];t.apply(null,e)}.bind(this)).catch(a.oe)},k=function(t){return Promise.all([a.e("chunk-2a4a33e8"),a.e("chunk-7fb2ce2c")]).then(function(){var e=[a("9c63")];t.apply(null,e)}.bind(this)).catch(a.oe)},D=function(t){return Promise.all([a.e("chunk-a22f9470"),a.e("chunk-b9590988")]).then(function(){var e=[a("c46d")];t.apply(null,e)}.bind(this)).catch(a.oe)},O=function(t){return Promise.all([a.e("chunk-a22f9470"),a.e("chunk-9a8ab3ca")]).then(function(){var e=[a("ca8b")];t.apply(null,e)}.bind(this)).catch(a.oe)},P=function(t){return Promise.all([a.e("chunk-a22f9470"),a.e("chunk-39b24832")]).then(function(){var e=[a("4835")];t.apply(null,e)}.bind(this)).catch(a.oe)},j=function(t){return Promise.all([a.e("chunk-a22f9470"),a.e("chunk-1943a952")]).then(function(){var e=[a("0224")];t.apply(null,e)}.bind(this)).catch(a.oe)},C=function(t){return Promise.all([a.e("chunk-a22f9470"),a.e("chunk-2a765010")]).then(function(){var e=[a("9646")];t.apply(null,e)}.bind(this)).catch(a.oe)},L=function(t){return a.e("chunk-003fb384").then(function(){var e=[a("ffc5")];t.apply(null,e)}.bind(this)).catch(a.oe)},S=function(t){return a.e("chunk-ad9e6894").then(function(){var e=[a("0696")];t.apply(null,e)}.bind(this)).catch(a.oe)},I=function(t){return Promise.all([a.e("chunk-a22f9470"),a.e("chunk-60950cc8")]).then(function(){var e=[a("7526")];t.apply(null,e)}.bind(this)).catch(a.oe)},A=function(t){return Promise.all([a.e("chunk-a22f9470"),a.e("chunk-1f5ab15f")]).then(function(){var e=[a("e175")];t.apply(null,e)}.bind(this)).catch(a.oe)},x=function(t){return Promise.all([a.e("chunk-a22f9470"),a.e("chunk-1401b758")]).then(function(){var e=[a("51d9")];t.apply(null,e)}.bind(this)).catch(a.oe)},E=function(t){return Promise.all([a.e("chunk-a22f9470"),a.e("chunk-cf36f306")]).then(function(){var e=[a("f9f6")];t.apply(null,e)}.bind(this)).catch(a.oe)},T=function(t){return Promise.all([a.e("chunk-a22f9470"),a.e("chunk-39faa2a4")]).then(function(){var e=[a("bdad")];t.apply(null,e)}.bind(this)).catch(a.oe)},z=function(t){return Promise.all([a.e("chunk-a22f9470"),a.e("chunk-cdd96bb8")]).then(function(){var e=[a("6a6c")];t.apply(null,e)}.bind(this)).catch(a.oe)},U=function(t){return Promise.all([a.e("chunk-a22f9470"),a.e("chunk-398241fe")]).then(function(){var e=[a("c96d")];t.apply(null,e)}.bind(this)).catch(a.oe)},M=function(t){return Promise.all([a.e("chunk-a22f9470"),a.e("chunk-7d7870ef")]).then(function(){var e=[a("a34f")];t.apply(null,e)}.bind(this)).catch(a.oe)},W=function(t){return Promise.all([a.e("chunk-a22f9470"),a.e("chunk-3c097c09"),a.e("chunk-4044944a")]).then(function(){var e=[a("a619")];t.apply(null,e)}.bind(this)).catch(a.oe)},R=function(t){return Promise.all([a.e("chunk-a22f9470"),a.e("chunk-5dc4ca1f")]).then(function(){var e=[a("10b5")];t.apply(null,e)}.bind(this)).catch(a.oe)},B=function(t){return Promise.all([a.e("chunk-a22f9470"),a.e("chunk-3c097c09"),a.e("chunk-24add2e0")]).then(function(){var e=[a("2d18")];t.apply(null,e)}.bind(this)).catch(a.oe)},F=function(t){return Promise.all([a.e("chunk-a22f9470"),a.e("chunk-a27f09fe")]).then(function(){var e=[a("4c69")];t.apply(null,e)}.bind(this)).catch(a.oe)},Y=function(t){return Promise.all([a.e("chunk-a22f9470"),a.e("chunk-30f776c2")]).then(function(){var e=[a("a179")];t.apply(null,e)}.bind(this)).catch(a.oe)},q=function(t){return Promise.all([a.e("chunk-a22f9470"),a.e("chunk-2aa1802a")]).then(function(){var e=[a("82d7")];t.apply(null,e)}.bind(this)).catch(a.oe)},V=function(t){return Promise.all([a.e("chunk-a22f9470"),a.e("chunk-29823840"),a.e("chunk-65512df9")]).then(function(){var e=[a("3fa7")];t.apply(null,e)}.bind(this)).catch(a.oe)},G=function(t){return Promise.all([a.e("chunk-a22f9470"),a.e("chunk-29823840"),a.e("chunk-d040a468")]).then(function(){var e=[a("c80a")];t.apply(null,e)}.bind(this)).catch(a.oe)},N=function(t){return Promise.all([a.e("chunk-a22f9470"),a.e("chunk-34530264")]).then(function(){var e=[a("b365")];t.apply(null,e)}.bind(this)).catch(a.oe)},K=function(t){return a.e("chunk-1e656f57").then(function(){var e=[a("e382")];t.apply(null,e)}.bind(this)).catch(a.oe)},H=function(t){return Promise.all([a.e("chunk-a22f9470"),a.e("chunk-839b1e56")]).then(function(){var e=[a("f10b")];t.apply(null,e)}.bind(this)).catch(a.oe)},Z=function(t){return Promise.all([a.e("chunk-a22f9470"),a.e("chunk-3bb45ba4")]).then(function(){var e=[a("3a6c")];t.apply(null,e)}.bind(this)).catch(a.oe)},J=function(t){return Promise.all([a.e("chunk-a22f9470"),a.e("chunk-fe284ece")]).then(function(){var e=[a("cc18")];t.apply(null,e)}.bind(this)).catch(a.oe)},$=function(t){return Promise.all([a.e("chunk-a22f9470"),a.e("chunk-69b10b86")]).then(function(){var e=[a("be26")];t.apply(null,e)}.bind(this)).catch(a.oe)},X=function(t){return Promise.all([a.e("chunk-a22f9470"),a.e("chunk-29823840"),a.e("chunk-470ba04a")]).then(function(){var e=[a("7683")];t.apply(null,e)}.bind(this)).catch(a.oe)},Q=function(t){return a.e("chunk-084e7fbd").then(function(){var e=[a("cc7e")];t.apply(null,e)}.bind(this)).catch(a.oe)},tt=function(t){return Promise.all([a.e("chunk-a22f9470"),a.e("chunk-fad0077e")]).then(function(){var e=[a("1300")];t.apply(null,e)}.bind(this)).catch(a.oe)},et=function(t){return Promise.all([a.e("chunk-a22f9470"),a.e("chunk-cbeab798")]).then(function(){var e=[a("2a15")];t.apply(null,e)}.bind(this)).catch(a.oe)},at=function(t){return Promise.all([a.e("chunk-a22f9470"),a.e("chunk-0da6f5bc")]).then(function(){var e=[a("b7aa")];t.apply(null,e)}.bind(this)).catch(a.oe)},nt=function(t){return a.e("chunk-324f0d94").then(function(){var e=[a("36c2")];t.apply(null,e)}.bind(this)).catch(a.oe)},ot=function(t){return a.e("chunk-5bb10935").then(function(){var e=[a("a5d4")];t.apply(null,e)}.bind(this)).catch(a.oe)},it=function(t){return a.e("chunk-cab1310e").then(function(){var e=[a("72c1")];t.apply(null,e)}.bind(this)).catch(a.oe)},rt=function(t){return Promise.all([a.e("chunk-a22f9470"),a.e("chunk-378fe7a6")]).then(function(){var e=[a("558e")];t.apply(null,e)}.bind(this)).catch(a.oe)};o["a"].use(h["a"]);var ct=[{path:"/",component:m,meta:{title:"猎芯网 - 电子元器件_ic交易网_电子元件/元器件批发采购网上商城平台"}},{path:"/smt",component:p,meta:{title:"SMT打样"}},{path:"/supplier",component:_,meta:{title:"猎芯网,猎芯网供应商,猎芯网合作伙伴,电子元器件采购,电子元器件商城,IC采购网"}},{path:"/wxlist",name:"Wxlist",component:b,meta:{title:"猎芯网"}},{path:"/news",name:"News",component:v,meta:{title:"猎芯网-新闻列表"}},{path:"/seo",name:"Seo",component:w,meta:{title:"猎芯网——京东战投元器件商城"}},{path:"/findthing",name:"Findthing",component:k,meta:{title:"猎芯网——快速找料"}},{path:"/pointmall",name:"Pointmall",component:D,meta:{title:"积分商城"}},{path:"/pointchange",name:"Pointchange",component:j,meta:{title:"兑换成功",back:!0}},{path:"/exchange",component:P,meta:{title:"兑换记录",back:!0}},{path:"/point",component:O,meta:{title:"积分明细",back:!0}},{path:"/pointrule",component:C,meta:{title:"积分规则"}},{path:"/chain",component:S,meta:{title:"猎芯供应链有限公司_专业IC电子元器件进口报关服务商"}},{path:"/news/detail/:art_id/:cat_id",name:"NewsDetail",component:y,meta:{title:"猎芯网-新闻详情"}},{path:"/aboutUs",name:"aboutUs",component:L,meta:{title:"关于我们"}},{path:"/wallet",component:I,meta:{title:"猎芯网-我的钱包"}},{path:"/wallet/status",component:A,meta:{title:"猎芯网-钱包状态"}},{path:"/wallet/activate",component:x,meta:{title:"猎芯网-激活钱包"}},{path:"/wallet/recharge",component:E,meta:{title:"猎芯网-钱包充值"}},{path:"/wallet/verify",component:T,meta:{title:"猎芯网-验证身份"}},{path:"/wallet/bind",component:z,meta:{title:"猎芯网-绑定银行账号"}},{path:"/wallet/withdraw",component:U,meta:{title:"猎芯网-钱包提现"}},{path:"/wallet/question",component:M,meta:{title:"猎芯网-常见问题"}},{path:"/wallet/walletdetail",component:W,meta:{title:"猎芯网-钱包明细"}},{path:"/wallet/accountdetail",component:R,meta:{title:"猎芯网-账单详情"}},{path:"/wallet/record",component:B,meta:{title:"猎芯网-充值提现记录"}},{path:"/wallet/withdrawdetail",component:F,meta:{title:"猎芯网-充值提现详情"}},{path:"/wallet/retrieve",component:Y,meta:{title:"猎芯网-找回密码"}},{path:"/wallet/cashier",component:q,meta:{title:"猎芯网-收银台"}},{path:"/product",component:V,meta:{title:"猎芯自营"}},{path:"/lxshop",component:G,meta:{title:"猎芯联营"}},{path:"/joincart",component:N,meta:{title:"购物车"}},{path:"/user",component:K,meta:{title:"会员中心首页",back:!0}},{path:"/userInfo",component:H,meta:{title:"基本信息",back:!0}},{path:"/userAddress",component:J,meta:{title:"收货地址",back:!0}},{path:"/userCoupon",component:Z,meta:{title:"优惠劵",back:!0}},{path:"/brand",component:$,meta:{title:"品牌分类"}},{path:"/brandList/:brand_id",component:X,name:"brandList",meta:{title:"品牌列表"}},{path:"/ranking",component:Q,meta:{title:"猎芯网-京东战投电子元器件商城_一站式解决电子元器件采购难题"}},{path:"/download",component:tt,meta:{title:"资料下载"}},{path:"/sample",component:et,meta:{title:"猎芯网-自营样片"}},{path:"/sampleapply",name:"sampleapply",component:at,meta:{title:"样片申请",back:!0}},{path:"/oscilloscope",name:"oscilloscope",component:rt,meta:{title:"示波器",back:!0}},{path:"/creditest",component:ot,meta:{title:"IC信用贷"}},{path:"/creditestsuccess",component:it,meta:{title:"IC信用贷"}},{path:"/special",name:"special",component:nt,meta:{title:""}},{path:"*",redirect:"/"}];ct.forEach((function(t){t.path=t.path||"/"+(t.name||"")}));var st=new h["a"]({routes:ct,scrollBehavior:function(t,e,a){return{x:0,y:0}}}),dt=a("9f3a"),ut=a("0a68"),lt=a("365c"),ft=a("4260"),gt=a("1cfa");o["a"].use(ut["a"]);var ht={walletInfoData:{},verifyShowImgCode:!1,verifyCountDownFlag:!1,activateShowImgCode:!1,activateCountDownFlag:!1,retieveShowImgCode:!1,retieveCountDownFlag:!1,passwordToken:"",walletListData:[],walletRecordData:[],bankPasswordToken:"",bankCountDownFlag:!1,bindBankKey:"",bindBankData:"",amountRechargeID:"",amountWithdrawID:"",rechargeWithdrawOrderDetail:[],orderInfoData:[],amountWithdrawFlag:!1},mt={getWalletInfo:function(t,e){t.walletInfoData=e.data},sendSafesms:function(t,e){t.verifyShowImgCode=!e.verifyCountDownFlag,t.verifyCountDownFlag=e.verifyCountDownFlag},smsVerifyActivate:function(t,e){t.activateShowImgCode=!e.activateCountDownFlag,t.activateCountDownFlag=e.activateCountDownFlag},smsVerifyRetrieve:function(t,e){t.retieveShowImgCode=!e.retieveCountDownFlag,t.retieveCountDownFlag=e.retieveCountDownFlag},verifyResetsms:function(t,e){t.passwordToken=e.data},walletListLog:function(t,e){t.walletListData=e.data},walletRecordList:function(t,e){t.walletRecordData=e.data},verifySafeMobile:function(t,e){t.bankPasswordToken=e.data,ft["a"].setCookie("bankPasswordToken",e.data,1)},getBindBankmsg:function(t,e){t.bankCountDownFlag=e.bankCountDownFlag,t.bindBankKey=e.data.access_key,t.bindBankData=e.data.access_data},walletRecharge:function(t,e){t.amountRechargeID=e.data},walletWithdraw:function(t,e){},rechargeWithdrawOrderIfo:function(t,e){t.rechargeWithdrawOrderDetail=e.data},payTodo:function(t,e){t.rechargeWithdrawOrderDetail=e.data},orderInfo:function(t,e){t.orderInfoData=e.data}},pt={getWalletInfo:function(t,e){var a=t.commit,n={};lt["c"].getWalletInfo(gt.stringify(n)).then((function(t){var e=t.data;0==e.err_code&&a({type:"getWalletInfo",data:e.data})})).catch((function(t){}))},smsVerifyActivate:function(t,e){var a=t.commit;ut["a"].loading({message:"处理中..."});var n={mobile:e.mobile,verify:e.imgCode,channel:3};lt["c"].smsVerify(gt.stringify(n)).then((function(t){var e=t.data;0==e.err_code?(Object(ut["a"])({message:e.err_msg,duration:2e3}),a({type:"smsVerifyActivate",activateCountDownFlag:!0})):10001==e.err_code||10002==e.err_code?(Object(ut["a"])({message:e.err_msg,duration:2e3}),a({type:"smsVerifyActivate",activateCountDownFlag:!1})):Object(ut["a"])({message:e.err_msg,duration:3e3})})).catch((function(t){ut["a"].clear()}))},activateWallet:function(t,e){t.commit;var a={intl_code:"",safe_mobile:e.mobile,verify_code:e.verifyCode,pay_password:e.password,reconfirm:e.passwordConfirm};lt["c"].activateWallet(gt.stringify(a)).then((function(t){var a=t.data;0==a.err_code?(Object(ut["a"])({message:a.err_msg,duration:2e3}),e.referer?setTimeout((function(){window.location.href=e.referer}),2e3):setTimeout((function(){window.location.href="/h5/view/#/wallet"}),2e3)):(Object(ut["a"])({message:a.err_msg,duration:2e3}),setTimeout((function(){window.location.href="/h5/view/#/wallet/activate"}),2e3))})).catch((function(t){}))},sendSafesms:function(t,e){var a=t.commit;ut["a"].loading({message:"处理中..."});var n={verify:e.imgCode,channel:3};lt["c"].sendSafesms(gt.stringify(n)).then((function(t){var e=t.data;0==e.err_code?(Object(ut["a"])({message:e.err_msg,duration:2e3}),a({type:"sendSafesms",verifyCountDownFlag:!0})):23019==e.err_code||10001==e.err_code?(Object(ut["a"])({message:e.err_msg,duration:2e3}),a({type:"sendSafesms",verifyCountDownFlag:!1})):Object(ut["a"])({message:e.err_msg,duration:3e3})})).catch((function(t){ut["a"].clear()}))},smsVerifyRetrieve:function(t,e){var a=t.commit;ut["a"].loading({message:"处理中..."});var n={verify:e.imgCode,channel:3};lt["c"].sendSafesms(gt.stringify(n)).then((function(t){var e=t.data;0==e.err_code?(Object(ut["a"])({message:e.err_msg,duration:2e3}),a({type:"smsVerifyRetrieve",retieveCountDownFlag:!0})):23019==e.err_code||10001==e.err_code?(Object(ut["a"])({message:e.err_msg,duration:2e3}),a({type:"smsVerifyRetrieve",retieveCountDownFlag:!1})):Object(ut["a"])({message:e.err_msg,duration:3e3})})).catch((function(t){ut["a"].clear()}))},verifyResetsms:function(t,e){var a=t.commit,n={verify_code:e.verify_code};lt["c"].verifyResetsms(gt.stringify(n)).then((function(t){var e=t.data;0==e.err_code?(Object(ut["a"])({message:e.err_msg,duration:2e3}),a({type:"verifyResetsms",data:e.data})):Object(ut["a"])({message:e.err_msg,duration:3e3})})).catch((function(t){}))},changeWalletpwd:function(t,e){t.commit;var a={token:e.token,pay_password:e.pay_password,reconfirm:e.reconfirm,mode:e.mode};lt["c"].changeWalletpwd(gt.stringify(a)).then((function(t){var e=t.data;0==e.err_code?(Object(ut["a"])({message:e.err_msg,duration:2e3}),setTimeout((function(){window.location.href="/h5/view/#/wallet"}),2e3)):Object(ut["a"])({message:e.err_msg,duration:3e3})})).catch((function(t){}))},walletListLog:function(t,e){var a=t.commit;ut["a"].loading({message:"加载中..."});var n={log_type:e.log_type,stime:e.stime,etime:e.etime};lt["c"].walletListLog(gt.stringify(n)).then((function(t){var e=t.data;0==e.err_code?(a({type:"walletListLog",data:e.data.list}),ut["a"].clear()):Object(ut["a"])({message:e.err_msg,duration:3e3})})).catch((function(t){ut["a"].clear()}))},walletRecordList:function(t,e){var a=t.commit;ut["a"].loading({message:"加载中..."});var n={wallet_type:e.wallet_type,stime:e.stime,etime:e.etime};lt["c"].walletRecordList(gt.stringify(n)).then((function(t){var e=t.data;0==e.err_code?(a({type:"walletRecordList",data:e.data.list}),ut["a"].clear()):Object(ut["a"])({message:e.err_msg,duration:3e3})})).catch((function(t){ut["a"].clear()}))},verifySafeMobile:function(t,e){var a=t.commit,n={verify_code:e.verify_code,pay_password:e.pay_password};lt["c"].verifySafeMobile(gt.stringify(n)).then((function(t){var e=t.data;ut["a"].loading({message:"处理中..."}),0==e.err_code?(Object(ut["a"])({message:e.err_msg,duration:2e3}),a({type:"verifySafeMobile",data:e.data}),setTimeout((function(){window.location.href="/h5/view/#/wallet/bind"}),2e3)):11030==e.err_code?(Object(ut["a"])({message:e.err_msg,duration:2e3}),setTimeout((function(){window.location.href="/h5/view/#/"}),2e3)):Object(ut["a"])({message:e.err_msg,duration:2e3})})).catch((function(t){ut["a"].clear()}))},getBindBankmsg:function(t,e){var a=t.commit,n={bank_user:e.bank_user,bank_id:e.bank_id,bank_account:e.bank_account,id_type:e.id_type,id_number:e.id_number,account_type:e.account_type,mobile:e.mobile,channel:3};lt["c"].getBindBankmsg(gt.stringify(n)).then((function(t){var e=t.data;0==e.err_code?(Object(ut["a"])({message:e.err_msg,duration:2e3}),a({type:"getBindBankmsg",bankCountDownFlag:!0,data:e.data})):Object(ut["a"])({message:e.err_msg,duration:3e3})})).catch((function(t){}))},bindBankCard:function(t,e){t.commit;ut["a"].loading({message:"处理中..."});var a={token:e.token,wallet_bank_id:e.wallet_bank_id,sms_code:e.sms_code,access_key:e.access_key,access_data:e.access_data};lt["c"].bindBankCard(gt.stringify(a)).then((function(t){var e=t.data;0==e.err_code?(Object(ut["a"])({message:e.err_msg,duration:2e3}),setTimeout((function(){window.location.href="/h5/view/#/wallet"}),2e3)):Object(ut["a"])({message:e.err_msg,duration:3e3})})).catch((function(t){ut["a"].clear()}))},walletRecharge:function(t,e){var a=t.commit,n={amount:e.amount};e.order_id&&(n.order_id=e.order_id),lt["c"].walletRecharge(gt.stringify(n)).then((function(t){var e=t.data;0==e.err_code?a({type:"walletRecharge",data:e.data}):Object(ut["a"])({message:e.err_msg,duration:3e3})})).catch((function(t){}))},walletWithdraw:function(t,e){t.commit;var a={amount:e.amount,pay_password:e.pay_password};ut["a"].loading({message:"处理中..."}),ht.amountWithdrawFlag=!0,lt["c"].walletWithdraw(gt.stringify(a)).then((function(t){var e=t.data;0==e.err_code?(Object(ut["a"])({message:"提现申请成功,预计1个工作日后到账,节假日顺延,请耐心等待",duration:2e3}),setTimeout((function(){ht.amountWithdrawFlag=!1,window.location.href="/h5/view/#/wallet/record"}),2e3)):(Object(ut["a"])({message:e.err_msg,duration:2e3}),setTimeout((function(){ht.amountWithdrawFlag=!1}),2e3))})).catch((function(t){ut["a"].clear()}))},rechargeWithdrawOrderIfo:function(t,e){var a=t.commit,n={wallet_id:e.wallet_id};lt["c"].rechargeWithdrawOrderIfo(gt.stringify(n)).then((function(t){var e=t.data;0==e.err_code?(Object(ut["a"])({message:e.err_msg,duration:2e3}),a({type:"rechargeWithdrawOrderIfo",data:e.data})):Object(ut["a"])({message:e.err_msg,duration:3e3})})).catch((function(t){}))},payTodo:function(t,e){t.commit;var a={pay_code:e.pay_code,rescue:e.rescue,types:e.types,site_type:e.site_type,order_id:e.order_id};lt["c"].payTodo(gt.stringify(a)).then((function(t){var e=t.data;0==e.err_code?is_miniProgram()?wx.requestPayment(e.data):window.location.href=e.data:Object(ut["a"])({message:e.err_msg,duration:3e3})})).catch((function(t){}))},orderInfo:function(t,e){var a=t.commit,n={order_id:e.order_id};lt["c"].orderInfo(gt.stringify(n)).then((function(t){var e=t.data;0==e.err_code?a({type:"orderInfo",data:e.data}):Object(ut["a"])({message:e.err_msg,duration:3e3})})).catch((function(t){}))},walletPayTodo:function(t,e){t.commit;var a={pay_code:e.pay_code,pay_password:e.pay_password,types:e.types,order_id:e.order_id,site_type:e.site_type};lt["c"].payTodo(gt.stringify(a)).then((function(t){var a=t.data;0==a.err_code?setTimeout((function(){window.location.href="/v3/pay/success?order_id="+e.order_id+"&types="+(e.types||0)}),2e3):Object(ut["a"])({message:a.err_msg,duration:3e3})})).catch((function(t){}))}},_t={},bt={state:ht,mutations:mt,actions:pt,getters:_t};o["a"].use(ut["a"]);var vt={index:{},loading:!0},yt={index:function(t,e){t.index=e.data}},wt={index:function(t,e){var a=t.commit;vt.loading=!0;var n=ft["a"].getParams();lt["c"].index(n).then((function(t){var e=t.data;vt.loading=!1,0==e.err_code?a({type:"index",data:e.data}):2==e.err_code&&Object(ut["a"])({message:"非常抱歉,当前客户端时间与服务器时间不一致,请校准您的时间",duration:3e3})})).catch((function(t){vt.loading=!1}))}},kt={},Dt={state:vt,mutations:yt,actions:wt,getters:kt};o["a"].use(ut["a"]);var Ot={cartCount:0,loginCheck:!1,phpParams:{},wxShareInfo:"",wxShareState:""},Pt={cartCount:function(t,e){t.cartCount=e.data?e.data:0},loginCheck:function(t,e){0==e.data.err_code||11030==e.data.err_code?t.loginCheck=!0:t.loginCheck=!1},phpParams:function(t,e){t.phpParams=e.data.data}},jt={cartCount:function(t,e){var a=t.commit;lt["c"].cartCount().then((function(t){var e=t.data;0==e.err_code&&a({type:"cartCount",data:e.data})})).catch((function(t){}))},loginCheck:function(t,e){var a=t.commit;lt["c"].loginCheck().then((function(t){var n=t.data;e.is_jump?11010==n.err_code?window.location.href="/h5/view/":11030==n.err_code&&(window.location.href="/v3/login"):a({type:"loginCheck",data:n})})).catch((function(t){}))},customsrService:function(t,e){t.commit;var a={pf:window.lxpf,searchModel:""};lt["c"].customsrService(a).then((function(t){})).catch((function(t){}))},getCommonParams:function(t,e){var a=t.commit,n=ft["a"].getParams();lt["c"].getCommonParams(n).then((function(t){var e=t.data;a({type:"phpParams",data:e})})).catch((function(t){}))},wxShare:function(t,e){t.commit;var a={current_url:e.current_url},n=ft["a"].getParams(a);lt["c"].wxShare(n).then((function(t){var e=t.data;Ot.wxShareInfo=e.data,Ot.wxShareState=(new Date).getTime()+Math.random()})).catch((function(t){}))}},Ct={},Lt={state:Ot,mutations:Pt,actions:jt,getters:Ct},St=a("1cfa");o["a"].use(ut["a"]);var It={loading:!1,formCodeStatus:!1,formImgShow:!1},At={index:function(t,e){t.index=e.data}},xt={checkAccountExists:function(t,e){t.commit;It.loading=!0;var a={type:2,account:e.account};lt["c"].checkAccountExists(St.stringify(a)).then((function(t){var e=t.data;It.loading=!1,0!=e.err_code&&Object(ut["a"])({message:"该手机号尚未注册,我们将为您自动生成猎芯网帐号",duration:3e3})})).catch((function(t){It.loading=!1}))},customSmsVerify:function(t,e){t.commit;It.loading=!0,It.formCodeStatus=!1;var a={channel:0,verify:e.verify,mobile:e.mobile};lt["c"].customSmsVerify(St.stringify(a)).then((function(t){var e=t.data;It.loading=!1,0==e.err_code?(It.formCodeStatus=!0,Object(ut["a"])({message:e.err_msg,duration:2e3})):10001==e.err_code||10002==e.err_code?(Object(ut["a"])({message:e.err_msg,duration:2e3}),It["formImgShow"]=!0):Object(ut["a"])({message:e.err_msg,duration:3e3})})).catch((function(t){It.loading=!1}))},chainFind:function(t,e){t.commit;if(It.loading=!0,2==e.types)var a={type:2,mobile:e.mobile,linkName:e.linkName,verifyCode:e.verifyCode,com_name:e.com_name,main_brand:e.main_brand,supplier_type:e.supplier_type};else if(3==e.types)a={type:3,mobile:e.mobile,linkName:e.linkName,verifyCode:e.verifyCode};lt["c"].chainFind(St.stringify(a)).then((function(t){var a=t.data;It.loading=!1,1==a.errcode?Object(ut["a"])({message:a.errmsg,duration:3e3}):2==a.errcode?(Object(ut["a"])({message:"已为您自动创建的猎芯网登录账号为"+e.mobile+"请使用免密码登录",duration:3e3}),setTimeout((function(){window.location.reload()}),3e3)):(Object(ut["a"])({message:"您已经提交成功,我们将会在2个工作日内联系您",duration:3e3}),setTimeout((function(){window.location.reload()}),3e3))})).catch((function(t){It.loading=!1,Object(ut["a"])({message:"网络出现问题,请重试",duration:3e3})}))}},Et={},Tt={state:It,mutations:At,actions:xt,getters:Et},zt=a("1cfa");o["a"].use(ut["a"]);var Ut={loadStatus:!1,wechatArticle:{},wechatArticleList:[],finished:!1,limits:1},Mt={wechatArticle:function(t,e){t.wechatArticle=e.data,t.wechatArticleList=t.wechatArticleList.concat(e.data.list),t.limits=Math.ceil(e.data.total/6),e.page>=t.limits&&(t.finished=!0)}},Wt={wechatArticle:function(t,e){var a=t.commit;Ut.loadStatus=!0;var n={type_id:e.type_id,page:e.page,limit:e.limit};lt["c"].wechatArticle(zt.stringify(n)).then((function(t){var n=t.data;Ut.loadStatus=!1,0==n.err_code&&a({type:"wechatArticle",data:n.data,page:e.page,limit:e.limit})})).catch((function(t){Ut.loadStatus=!1}))}},Rt={},Bt={state:Ut,mutations:Mt,actions:Wt,getters:Rt},Ft=(a("163d"),a("1cfa"));o["a"].use(ut["a"]);var Yt={finished:!1,loadStatus:!1,cat_list:[],content_list:[],rollbanner:[],p:1,limit:10,totalLimit:0},qt={newsArticle:function(t,e){t.rollbanner=e.data.rollbanner,t.cat_list=e.data.cat_list,1==t.p?t.content_list=e.data.content_list:t.content_list=t.content_list.concat(e.data.content_list),t.totalLimit=Math.ceil(Number(e.data.tatol_num)/t.limit),t.p>=t.totalLimit?t.finished=!0:t.finished=!1}},Vt={newsArticle:function(t,e){var a=t.commit;Yt.loadStatus=!0;var n={cat_id:e.cat_id,p:e.p,limit:e.limit};Yt.p=e.p,Yt.limit=e.limit,lt["c"].newsArticle(Ft.stringify(n)).then((function(t){var e=t.data;Yt.loadStatus=!1,0==e.err_code&&a({type:"newsArticle",data:e.data})})).catch((function(t){Yt.loadStatus=!1}))}},Gt={},Nt={state:Yt,mutations:qt,actions:Vt,getters:Gt},Kt=a("1cfa");o["a"].use(ut["a"]);var Ht={loadStatus:!1,newsDetailObj:{},newsDetailAd:{}},Zt={newsArticleDetail:function(t,e){t.newsDetailObj=e.data},newsArticleDetailAd:function(t,e){t.newsDetailAd=e.data,ft["a"].getCookie("newsdetailpop")?t.newsDetailAd.h5_news_ad_pop="":ft["a"].setCookie("newsdetailpop","1",1)}},Jt={newsArticleDetail:function(t,e){var a=t.commit;Ht.newsDetailObj={},Ht.loadStatus=!0;var n={art_id:e.art_id};lt["c"].newsArticleDetail(Kt.stringify(n)).then((function(t){Ht.loadStatus=!1;var e=t.data;0==e.err_code&&a({type:"newsArticleDetail",data:e.data})})).catch((function(t){Ht.loadStatus=!1}))},newsArticleDetailAd:function(t,e){var a=t.commit,n={cat_id:e.cat_id},o=ft["a"].getParams(n);lt["c"].newsArticleDetailAd(o).then((function(t){var e=t.data;0==e.err_code&&a({type:"newsArticleDetailAd",data:e.data})})).catch((function(t){}))}},$t={},Xt={state:Ht,mutations:Zt,actions:Jt,getters:$t},Qt=a("1cfa");o["a"].use(ut["a"]);var te={loading:!1,form1ImgShow:!1,form2ImgShow:!1,form1CodeStatus:!1,form2CodeStatus:!1,isRegLogin:!1},ee={smsVerify:function(t,e){}},ae={smsVerify:function(t,e){var a=t.commit;te.form1CodeStatus=!1,te.loading=!0;var n={mobile:e.mobile,verify:e.verify,channel:1};lt["c"].smsVerify(Qt.stringify(n)).then((function(t){var n=t.data;te.loading=!1;var o="form2"==e.types?"form2":"form1";te[o+"ImgShow"]=!1,0==n.err_code?(Object(ut["a"])({message:n.err_msg,duration:2e3}),te[o+"CodeStatus"]=!0,a({type:"smsVerify",data:n.data})):10001==n.err_code||10002==n.err_code?(Object(ut["a"])({message:n.err_msg,duration:2e3}),te[o+"ImgShow"]=!0):Object(ut["a"])({message:n.err_msg,duration:3e3})})).catch((function(t){te.loading=!1}))},actionLogin:function(t,e){var a=t.commit;te.loading=!0,te.isRegLogin=!1;var n={account:e.account,sms_verify:e.sms_verify};lt["c"].actionLogin(Qt.stringify(n)).then((function(t){var n=t.data;if(te.loading=!1,0==n.err_code){if("form1"==e.form_name)return Object(ut["a"])({message:"提交成功",duration:2e3}),void setTimeout((function(){window.location.href="/"}),2e3);te.isRegLogin=!0,a({type:"actionLogin",data:n.data})}else Object(ut["a"])({message:n.err_msg,duration:3e3})})).catch((function(t){te.loading=!1}))},feedback:function(t,e){var a=t.commit;te.loading=!0;var n={type:e.types,content:e.content,mobile:e.mobile,source:window.location.href};lt["c"].feedback(Qt.stringify(n)).then((function(t){var e=t.data;te.loading=!1,0==e.err_code?(Object(ut["a"])({message:"需求已提交成功,客服人员会尽快与您联系",duration:3e3}),setTimeout((function(){window.location.href="/"}),3e3),a({type:"feedback",data:e.data})):Object(ut["a"])({message:e.err_msg,duration:3e3})})).catch((function(t){te.loading=!1}))}},ne={},oe={state:te,mutations:ee,actions:ae,getters:ne},ie=a("1cfa");o["a"].use(ut["a"]);var re={loading:!1,form1ImgShow:!1,form1CodeStatus:!1,isRegLogin:!1},ce={},se={smsVerify1:function(t,e){var a=t.commit;re.form1CodeStatus=!1,re.loading=!0;var n={mobile:e.mobile,verify:e.verify,channel:1};lt["c"].smsVerify(ie.stringify(n)).then((function(t){var e=t.data;re.loading=!1,re["form1ImgShow"]=!1,0==e.err_code?(Object(ut["a"])({message:e.err_msg,duration:2e3}),re["form1CodeStatus"]=!0,a({type:"smsVerify",data:e.data})):10001==e.err_code||10002==e.err_code?(Object(ut["a"])({message:e.err_msg,duration:2e3}),re["form1ImgShow"]=!0):Object(ut["a"])({message:e.err_msg,duration:3e3})})).catch((function(t){re.loading=!1}))},actionLogin1:function(t,e){var a=t.commit;re.loading=!0,re.isRegLogin=!1;var n={account:e.account,sms_verify:e.sms_verify};lt["c"].actionLogin(ie.stringify(n)).then((function(t){var e=t.data;re.loading=!1,0==e.err_code?(re.isRegLogin=!0,a({type:"actionLogin",data:e.data})):Object(ut["a"])({message:e.err_msg,duration:3e3})})).catch((function(t){re.loading=!1}))},feedback1:function(t,e){var a=t.commit;re.loading=!0;var n={type:e.types,content:e.content,mobile:e.mobile,source:window.location.href};lt["c"].feedback(ie.stringify(n)).then((function(t){var e=t.data;re.loading=!1,0==e.err_code?(Object(ut["a"])({message:"需求已提交成功,客服人员会尽快与您联系",duration:3e3}),setTimeout((function(){window.location.href="/"}),3e3),a({type:"feedback",data:e.data})):Object(ut["a"])({message:e.err_msg,duration:3e3})})).catch((function(t){re.loading=!1}))}},de={},ue={state:re,mutations:ce,actions:se,getters:de},le=(a("c904"),a("f548"),a("1cfa"));o["a"].use(ut["a"]);var fe={loginUrl:"/v3/login?referer="+encodeURIComponent(window.location.href),userInfo:"",loading:!1,getUserCurrentPoint:0,isSignInToday:!1,isSignInTodayStateGo:!1,checkInfoState:!1,navlist:[],listdata:[]},ge={getPointPrize:function(t,e){var a=e.data||[];if(a.length>0){for(var n=[],o=[],i=[],r=[],c=0;c<a.length;c++)n.push(a[c]["prize_type"]),r.push(a[c]["prize_sort"]),o.push(a[c]["prize_type_text"].replace(/\s/g,""));n=ft["a"].distinct(n),o=ft["a"].distinct(o),r=ft["a"].distinct(r);for(var s=0;s<n.length;s++)i.push({prise_type:n[s],prise_type_text:o[s],prize_sort:r[s]});i=i.sort(ft["a"].compare("prise_type",1)),t.navlist=i,t.listdata=a}}},he={getPointPrize:function(t,e){var a=t.commit;fe.loading=!0;var n={limit:1e3};lt["c"].getPointPrize(le.stringify(n)).then((function(t){fe.loading=!1;var e=t.data;0==e.errcode&&a({type:"getPointPrize",data:e.data.data})})).catch((function(t){fe.loading=!1}))},loginCheckp:function(t,e){t.commit;lt["c"].loginCheck().then((function(t){var e=t.data;0!=e.err_code&&11030!=e.err_code||(fe.userInfo=e.data)}))},getUserCurrentPoint:function(t,e){t.commit;var a={user_id:ft["a"].getCookie("Yo4teW_uid")};lt["c"].getUserCurrentPoint(le.stringify(a)).then((function(t){var e=t.data;0==e.errcode&&(fe.getUserCurrentPoint=e.data)}))},isSignInToday:function(t,e){t.commit;lt["c"].isSignInToday().then((function(t){var e=t.data;0==e.err_code&&(fe.isSignInToday=e.data)}))},signIn:function(t,e){t.commit;fe.loading=!0,lt["c"].signIn().then((function(t){fe.loading=!1;var e=t.data;0==e.err_code&&(fe.isSignInToday=!0,fe.isSignInTodayStateGo=!0,Object(ut["a"])({message:"签到完成,恭喜您获得100个积分!",duration:3e3}))})).catch((function(t){fe.loading=!1}))},checkMktScore:function(t,e){t.commit;fe.loading=!0,lt["c"].checkMktScore().then((function(t){fe.loading=!1;var e=t.data;0==e.err_code&&(1==e.data?fe.checkInfoState=!0:fe.checkInfoState=!1)})).catch((function(t){fe.loading=!1}))},exchangePrize:function(t,e){t.commit;fe.loading=!0;var a={user_id:ft["a"].getCookie("Yo4teW_uid"),point_prize_id:e.point_prize_id};lt["c"].exchangePrize(le.stringify(a)).then((function(t){fe.loading=!1;var e=t.data;if(0==e.errcode){var a=e.data.point_exchange_id;window.location.href="/h5/view/#/pointchange?point_exchange_id="+a+"&prize_type="+e.data.prize_type}else Object(ut["a"])({message:e.errmsg,duration:2500})})).catch((function(t){fe.loading=!1}))}},me={},pe={state:fe,mutations:ge,actions:he,getters:me},_e=a("1cfa");o["a"].use(ut["a"]);var be={loading:!1,prize_info:"",prize_types:"",address_id:"",address_info:"",adressApiState:!1},ve={},ye={getUserPointExchangeDetail:function(t,e){t.commit;be.loading=!0;var a={point_exchange_id:e.point_exchange_id};lt["c"].getUserPointExchangeDetail(_e.stringify(a)).then((function(t){be.loading=!1;var e=t.data;0==e.errcode&&(be.prize_info=e.data.prize_info,be.prize_types=e.data.prize_info.prize_type,e.data.address_info?(be.address_info=e.data.address_info,be.address_info.point_addressp=1,be.address_id=e.data.prize_info.address_id):be.adressApiState=!0)})).catch((function(t){be.loading=!1}))},recvlist:function(t,e){t.commit;lt["c"].recvlist().then((function(t){var e=t.data;if(0==e.err_code){var a=e.data||[];if(a.length>0)for(var n=0;n<a.length;n++)1==a[n].is_default&&(be.address_info=a[n],be.address_id=a[n].address_id)}}))}},we={},ke={state:be,mutations:ve,actions:ye,getters:we};o["a"].use(ut["a"]);var De={loading:!1,ruledata:""},Oe={},Pe={pointruleApi:function(t,e){t.commit;De.loading=!0,lt["c"].pointruleApi().then((function(t){De.loading=!1;var e=t.data;0==e.err_code&&(De.ruledata=e.data.data[0])})).catch((function(t){De.loading=!1}))}},je={},Ce={state:De,mutations:Oe,actions:Pe,getters:je},Le=a("1cfa");o["a"].use(ut["a"]);var Se={finished:!1,loadStatus:!1,getUserCurrentPoint:0,detaillist:[],totalLimit:0},Ie={getUserPointDetail:function(t,e){1==e.data.current_page?t.detaillist=e.data.data:t.detaillist=t.detaillist.concat(e.data.data),t.totalLimit=e.data.last_page,e.data.current_page>=e.data.last_page?t.finished=!0:t.finished=!1}},Ae={getUserPointDetail:function(t,e){var a=t.commit;Se.loadStatus=!0;var n={page:e.page,limit:e.limit,user_id:ft["a"].getCookie("Yo4teW_uid"),flow_type:e.flow_type};1==e.page&&(Se.finished=!1,Se.detaillist=[]),lt["c"].getUserPointDetail(Le.stringify(n)).then((function(t){var e=t.data;Se.loadStatus=!1,0==e.errcode&&a({type:"getUserPointDetail",data:e.data})})).catch((function(t){Se.loadStatus=!1}))},getUserCurrentPointdetail:function(t,e){t.commit;var a={user_id:ft["a"].getCookie("Yo4teW_uid")};lt["c"].getUserCurrentPoint(Le.stringify(a)).then((function(t){var e=t.data;0==e.errcode&&(Se.getUserCurrentPoint=e.data)}))}},xe={},Ee={state:Se,mutations:Ie,actions:Ae,getters:xe},Te=a("1cfa");o["a"].use(ut["a"]);var ze={finished:!1,loadStatus:!1,getUserCurrentPoint:0,detaillist:[],totalLimit:0},Ue={getUserPointExchangeList:function(t,e){1==e.data.current_page?t.detaillist=e.data.data:t.detaillist=t.detaillist.concat(e.data.data),t.totalLimit=e.data.last_page,e.data.current_page>=e.data.last_page?t.finished=!0:t.finished=!1}},Me={getUserPointExchangeList:function(t,e){var a=t.commit;ze.loadStatus=!0;var n={page:e.page,limit:e.limit,user_id:ft["a"].getCookie("Yo4teW_uid"),prize_type:e.prize_type};1==e.page&&(ze.finished=!1,ze.detaillist=[]),lt["c"].getUserPointExchangeList(Te.stringify(n)).then((function(t){var e=t.data;ze.loadStatus=!1,0==e.errcode&&a({type:"getUserPointExchangeList",data:e.data})})).catch((function(t){ze.loadStatus=!1}))}},We={},Re={state:ze,mutations:Ue,actions:Me,getters:We};a("1cfa");o["a"].use(ut["a"]);var Be={loading:!1,aboutdata:""},Fe={getAboutUsData:function(){var t=ut["a"].loading({message:"加载中...",duration:0});lt["c"].getAboutUsData().then((function(e){t.clear();var a=e.data;0==a.err_code&&(Be.aboutdata=a.data.data[0])})).catch((function(e){t.clear()}))}},Ye={state:Be,actions:Fe};o["a"].use(ut["a"]);var qe=a("1cfa"),Ve={loading:!1,formCodeStatus:!1,formImgShow:!1},Ge={},Ne={chainSmsVerify:function(t,e){t.commit;Ve.loading=!0,Ve.formCodeStatus=!1;var a={verify:e.verify,mobile:e.mobile,channel:0};lt["c"].smsVerify(qe.stringify(a)).then((function(t){Ve.loading=!1,Ve.formImgShow=!1;var e=t.data;0==e.err_code?(Ve.formCodeStatus=!0,Object(ut["a"])({message:e.err_msg,duration:2e3})):10001==e.err_code||10002==e.err_code?(Object(ut["a"])({message:e.err_msg,duration:2e3}),Ve["formImgShow"]=!0):Object(ut["a"])({message:e.err_msg,duration:3e3})})).catch((function(t){Ve.loading=!1}))},chainFindBg:function(t,e){t.commit;Ve.loading=!0;var a={need:e.need,mobile:e.mobile,linkName:e.linkName,verifyCode:e.verifyCode,type:1};lt["c"].chainFind(qe.stringify(a)).then((function(t){Ve.loading=!1;var e=t.data;1==e.errcode?Object(ut["a"])({message:e.errmsg,duration:2e3}):(e.errcode,Object(ut["a"])({message:"您的需求已经提交成功!我们将会在30分钟内联系您!",duration:3e3}),setTimeout((function(){history.go(0)}),2500))})).catch((function(t){Ve.loading=!1}))}},Ke={},He={state:Ve,mutations:Ge,actions:Ne,getters:Ke};function Ze(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,n)}return a}function Je(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?Ze(Object(a),!0).forEach((function(e){Object(n["a"])(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):Ze(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}a("1cfa");var $e={zyFilter:!1,zyClass:!1,zyRank:!1,classData:[],classLight:{},zyFilterData:{},zyData:[],loading:!1,finished:!1,count:0},Xe={xianhuo:function(t,e){"filter"==e.type?(t.zyFilter=e.bool,t.zyFilterData=e.data):"rank"==e.type?t.zyRank=e.bool:"class"==e.type?(t.zyClass=e.bool,t.classData=e.data):"class_light"==e.type?t.classLight=e.data:"zydata"==e.type&&(t.zyData=t.zyData.concat(e.data))}},Qe={getZyData:function(t,e){var a=t.commit;$e.loading=!0,$e.finished=!1;var n=e.data.p;1==n&&($e.zyData=[]);var o=ft["a"].getParams(Je({},e.data));lt["c"].getZyData(o).then((function(t){$e.loading=!1;var e=t.data;if(0==e.error_code){if(!e.data.data)return void($e.finished=!0);var o=Math.ceil(e.data.total/10);n==o&&($e.finished=!0),e.data.aggs&&a("xianhuo",{type:"filter",bool:!0,data:e.data.aggs}),e.data.class&&a("xianhuo",{type:"class",bool:!0,data:e.data.class}),e.data.class_light&&a("xianhuo",{type:"class_light",data:e.data.class_light}),0!==e.data.total&&a("xianhuo",{type:"rank",bool:!0,data:e.data.aggs}),e.data.data.data_list&&a("xianhuo",{type:"zydata",data:e.data.data.data_list})}else $e.loading=!1,$e.finished=!0})).catch((function(t){$e.loading=!1,$e.finished=!0}))}},ta={state:$e,actions:Qe,mutations:Xe},ea=a("49b7"),aa=a("1cfa");o["a"].use(ut["a"]);var na={zygoodDetail:{},lygoodDetail:{},isShowAlert:!1,tipText:""},oa={changeZyGoodDetail:function(t,e){var a=e.data;t.zygoodDetail=a},changeLyGoodDetail:function(t,e){var a=e.data;t.lygoodDetail=a},closeAlert:function(t){t.isShowAlert=!1,t.tipText=""}},ia={getDetailData:function(t,e){var a=t.commit,n=ut["a"].loading({message:"加载中...",duration:0,forbidClick:!0,loadingType:"spinner"});na.zygoodDetail={},na.lygoodDetail={},lt["c"].goodDetail(aa.stringify(e.data)).then((function(t){n.clear();var e=t.data;0==e.err_code&&(3==e.data.goods_type||4==e.data.goods_type?a("changeZyGoodDetail",{data:e.data}):1!=e.data.goods_type&&2!=e.data.goods_type||a("changeLyGoodDetail",{data:e.data}))})).catch((function(t){n.clear()}))},addGoods:function(t,e){t.commit;var a=ut["a"].loading({message:"加载中...",duration:0,forbidClick:!0});na.isShowAlert=!1,na.tipText="",lt["c"].addGood(aa.stringify(e.data.datax)).then((function(t){a.clear();var n=t.data;0==n.err_code?1==e.data.datax.buy?(window.sessionStorage.setItem("car_xk",n.data),1==e.data.type?window.location.href="/v3/order/confirm?type=zy&k="+e.data.k:e.invitedId?window.location.href="/v3/order/confirm?type=other&k="+e.data.k+"&invitedId="+e.invitedId:window.location.href="/v3/order/confirm?type=other&k="+e.data.k):(na.isShowAlert=!0,na.tipText=n.err_msg):Object(ut["a"])(n.err_msg)})).catch((function(t){a.clear(),Object(ut["a"])(t)}))}},ra={state:na,actions:ia,mutations:oa};a("9a33");o["a"].use(ut["a"]);var ca=a("1cfa"),sa={loading:!1,loading1:!1,ly1:!1,ly2:!1,zy1:!1,ly1Data:[],ly2Data:[],zy1Data:[],zy2Data:[],ly1Length:0,ly2Length:0,zy1Length:0,ly1LoseData:[],ly2LoseData:[],zy1LoseData:[],priceInit:!1,totlaMState:!1},da={cartList:function(t,e){if(1==e.types_)for(var a=e.data.list,n=0;n<a.length;n++)a[n].editState=!1,a[n].check=!0,-1==a[n].status?t.ly1LoseData.push(a[n]):t.ly1Data.push(a[n]);else if(2==e.types_)for(a=e.data.list,n=0;n<a.length;n++)a[n].editState=!1,a[n].check=!0,-1==a[n].status?t.ly2LoseData.push(a[n]):t.ly2Data.push(a[n]);else for(a=e.data.list,n=0;n<a.length;n++)a[n].editState=!1,-1==a[n].status?t.zy1LoseData.push(a[n]):1==a[n].sale_type?(a[n].check=!0,t.zy1Data.push(a[n])):(a[n].check=!1,t.zy2Data.push(a[n]))},cartDelete:function(t,e){var a=e.cart_id.split(",");if(1==e.types)if("normal"==e.act){for(var n=1==e.delivery?t.ly1Data:t.ly2Data,o=0;o<n.length;o++)for(var i=0;i<a.length;i++)n[o].cart_id==a[i]&&n.splice(o,1);1==e.delivery?(t.ly1Data=n,t.ly1Length=Number(t.ly1Length)-a.length):(t.ly2Data=n,t.ly2Length=Number(t.ly2Length)-a.length)}else 1==e.delivery?t.ly1LoseData=[]:t.ly2LoseData=[];else if("normal"==e.act){for(o=0;o<t.zy1Data.length;o++)for(i=0;i<a.length;i++)t.zy1Data[o].cart_id==a[i]&&t.zy1Data.splice(o,1);for(var r=0;r<t.zy2Data.length;o++)for(var c=0;c<a.length;c++)t.zy2Data[r].cart_id==a[c]&&t.zy2Data.splice(r,1);t.zy1Length=Number(t.zy1Length)-a.length}else t.zy1LoseData=[]},changenum:function(t,e){if(1==e.delivery_place||2==e.delivery_place)for(var a=1==e.delivery_place?t.ly1Data:t.ly2Data,n=0;n<a.length;n++)a[n].cart_id==e.cart_id&&(a[n].goods_number=e.data.num,a[n].goods_amount=e.data.goods_amount,a[n].goods_amount_format=e.data.goods_amount_format,a[n].goods_price=e.data.goods_price,a[n].goods_price_format=e.data.goods_price_format);else{var o=t.zy1Data,i=t.zy2Data;for(n=0;n<o.length;n++)if(o[n].cart_id==e.cart_id&&(o[n].goods_number=e.data.num,o[n].goods_amount=e.data.goods_amount,o[n].goods_amount_format=e.data.goods_amount_format,o[n].goods_price=e.data.goods_price,o[n].goods_price_format=e.data.goods_price_format,2==e.data.sale_type)){var r=o[n];o.splice(n,1),t.zy2Data.push(r)}for(var c=0;c<i.length;c++)if(i[c].cart_id==e.cart_id&&(i[c].goods_number=e.data.num,i[c].goods_amount=e.data.goods_amount,i[c].goods_amount_format=e.data.goods_amount_format,i[c].goods_price=e.data.goods_price,1==e.data.sale_type)){r=i[c];i.splice(c,1),t.zy1Data.push(r)}}t.totlaMState=!0}},ua={cartList:function(t,e){var a=t.commit;sa.loading=!0,sa.loading1=!0;var n,o={delivery_place:e.delivery_place,order_goods_type:e.order_goods_type};n=2==e.order_goods_type?3:e.delivery_place,lt["c"].cartList(ca.stringify(o)).then((function(t){sa.loading=!1,sa.loading1=!1;var e=t.data;1==n?sa.ly1=!0:2==n?sa.ly2=!0:sa.zy1=!0,0==e.err_code&&a({type:"cartList",data:e.data,types_:n})})).catch((function(t){sa.loading=!1,sa.loading1=!1}))},allcount:function(t,e){t.commit;lt["c"].allcount().then((function(t){var e=t.data;0==e.err_code&&(sa.ly1Length=Number(e.data["1"]["1"]||0),sa.ly2Length=Number(e.data["1"]["2"]||0),sa.zy1Length=Number(e.data["2"]["1"]||0))}))},cartDelete:function(t,e){var a=t.commit;sa.loading=!0;var n={cart_id:e.cart_id,act:e.act};lt["c"].cartDelete(ca.stringify(n)).then((function(t){sa.loading=!1;var n=t.data;0==n.err_code?a({type:"cartDelete",data:n.data,act:e.act,cart_id:e.cart_id,types:e.types,delivery:e.delivery}):Object(ut["a"])({message:n.err_msg,duration:3e3})})).catch((function(t){sa.loading=!1}))},confirmBehavior:function(t,e){t.commit;sa.loading=!0,lt["c"].confirmBehavior().then((function(t){sa.loading=!1,window.location.href=e.url_})).catch((function(t){sa.loading=!1}))},changenum:function(t,e){var a=t.commit;1!=e.types&&2!=e.types||(sa.loading=!0);var n={cart_id:e.cart_id,num:e.num,delivery_place:e.delivery_place};sa.totlaMState=!1,lt["c"].changenum(ca.stringify(n)).then((function(t){sa.loading=!1;var n=t.data;0==n.err_code?a({type:"changenum",data:n.data,cart_id:e.cart_id,delivery_place:e.delivery_place}):Object(ut["a"])({message:n.err_msg,duration:3e3})})).catch((function(t){sa.loading=!1}))}},la={},fa={state:sa,mutations:da,actions:ua,getters:la},ga=a("1cfa");o["a"].use(ut["a"]);var ha={loading:!1,userInfo:"",orderCounts:"",bindInfo:"",isLayout:!1,isGetBindInfo:!1},ma={},pa={getUserType:function(t,e){t.commit;var a={type:2};lt["c"].getUserType(ga.stringify(a)).then((function(t){var e=t.data;0==e.err_code?ha.userInfo=e.data:Object(ut["a"])({message:e.err_msg,duration:3e3})})).catch((function(t){ha.loading=!1}))},orderCount:function(t,e){t.commit;ha.loading=!0;var a={status:"1,2,3,4,7,8,10,-1",mul:1};lt["c"].orderCount(ga.stringify(a)).then((function(t){var e=t.data;ha.loading=!1,0==e.err_code?ha.orderCounts=e.data:Object(ut["a"])({message:e.err_msg,duration:3e3})})).catch((function(t){ha.loading=!1}))},getBindInfo:function(t,e){t.commit;lt["c"].getBindInfo().then((function(t){var e=t.data;0==e.err_code?ha.bindInfo=e.data:Object(ut["a"])({message:e.err_msg,duration:3e3})})).catch((function(t){}))},unbindPhone:function(t,e){t.commit;ha.loading=!0,ha.isGetBindInfo=!1,lt["c"].unbindPhone().then((function(t){ha.loading=!1;var e=t.data;0==e.err_code?(ha.isGetBindInfo=!0,Object(ut["a"])({message:e.err_msg,duration:2e3}),isMiniProgram&&(ha.isLayout=!0)):Object(ut["a"])({message:e.err_msg,duration:3e3})})).catch((function(t){}))},logout:function(t,e){t.commit;ha.loading=!0;var a={referUrl:window.location.href};lt["c"].logout(ga.stringify(a)).then((function(t){ha.loading=!1;var e=t.data;0==e.err_code?e.referUrl?window.location.href="/v3":window.location.reload():Object(ut["a"])({message:e.err_msg,duration:3e3})})).catch((function(t){}))}},_a={},ba={state:ha,mutations:ma,actions:pa,getters:_a},va=a("1cfa");o["a"].use(ut["a"]);var ya={loading:!1,lists:[],counts:{0:"0",1:"0","-2":"0","-1":"0"}},wa={},ka={ucouponLists:function(t,e){t.commit;ya.loading=!0;var a={status:e.status};lt["c"].ucouponLists(va.stringify(a)).then((function(t){var e=t.data;ya.loading=!1,0==e.err_code?ya.lists=e.data:Object(ut["a"])({message:e.err_msg,duration:3e3})})).catch((function(t){ya.loading=!1}))},ucouponCount:function(t,e){t.commit;lt["c"].ucouponCount().then((function(t){var e=t.data;0==e.err_code?ya.counts=e.data:Object(ut["a"])({message:e.err_msg,duration:3e3})})).catch((function(t){ya.loading=!1}))}},Da={},Oa={state:ya,mutations:wa,actions:ka,getters:Da},Pa=a("1cfa");o["a"].use(ut["a"]);var ja={loading:!1,userInfo:"",addressInfo:""},Ca={},La={getUserType2:function(t,e){t.commit;ja.loading=!0;var a={type:2};lt["c"].getUserType(Pa.stringify(a)).then((function(t){ja.loading=!1;var e=t.data;0==e.err_code?ja.userInfo=e.data:11030==e.err_code||11010==e.err_code?(Object(ut["a"])({message:e.err_msg,duration:3e3}),setTimeout((function(){window.location.href="/v3/login?referer="+encodeURIComponent(window.location.href)}),1e3)):Object(ut["a"])({message:e.err_msg,duration:3e3})})).catch((function(t){ja.loading=!1}))},allAddressInfo:function(t,e){t.commit;lt["c"].allAddress().then((function(t){var e=t.data;0==e.err_code&&(ja.addressInfo=e.data)}))},changeUserInfo:function(t,e){t.commit;ja.loading=!0;var a={nike_name:e.nike_name,com_name:e.com_name,type_id:e.type_id,sex:e.sex,com_telphone:e.com_telphone,com_desc:e.com_desc,com_province_id:e.com_province_id,com_city_id:e.com_city_id,com_area_id:e.com_area_id,com_address:e.com_address,com_mobile:e.com_mobile};lt["c"].changeUserInfo(Pa.stringify(a)).then((function(t){ja.loading=!1;var a=t.data;if(0==a.err_code){var n=a.err_msg;Number(a.point)>0&&(n="恭喜您获得"+a.point+"积分"),Object(ut["a"])({message:n,duration:3e3}),setTimeout((function(){e.urlback?window.location.href="/v3/user/order":window.location.href="/v3/user"}),800)}else 11030==a.err_code||11010==a.err_code?(Object(ut["a"])({message:a.err_msg,duration:3e3}),setTimeout((function(){window.location.href="/v3/login?referer="+encodeURIComponent(window.location.href)}),1e3)):Object(ut["a"])({message:a.err_msg,duration:3e3})})).catch((function(t){ja.loading=!1}))}},Sa={},Ia={state:ja,mutations:Ca,actions:La,getters:Sa},Aa=a("1cfa");o["a"].use(ut["a"]);var xa={loading:!1,addressList:[],addressInfo:{},addressInfoState:!1,areaList:{}},Ea={recvlistUser:function(t,e){t.addressList=e.data},setdefault:function(t,e){for(var a=0;a<t.addressList.length;a++)t.addressList[a].is_default="0",t.addressList[a].address_id==e.address_id&&(t.addressList[a].is_default="1")},deleteAddress:function(t,e){for(var a=0;a<t.addressList.length;a++)t.addressList[a].address_id==e.address_id&&t.addressList.splice(a,1)}},Ta={recvlistUser:function(t,e){var a=t.commit;xa.loading=!0,lt["c"].recvlist().then((function(t){var e=t.data;xa.loading=!1,0==e.err_code&&a({type:"recvlistUser",data:e.data})})).catch((function(t){xa.loading=!1}))},setdefault:function(t,e){var a=t.commit;xa.loading=!0;var n={address_id:e.address_id};lt["c"].setdefault(Aa.stringify(n)).then((function(t){var n=t.data;xa.loading=!1,0==n.err_code?(a({type:"setdefault",data:n.data,address_id:e.address_id}),Object(ut["a"])({message:n.err_msg,duration:2e3})):Object(ut["a"])({message:n.err_msg,duration:3e3})})).catch((function(t){xa.loading=!1}))},deleteAddress:function(t,e){var a=t.commit;xa.loading=!0;var n={address_id:e.address_id};lt["c"].deleteAddress(Aa.stringify(n)).then((function(t){var n=t.data;xa.loading=!1,0==n.err_code?(a({type:"deleteAddress",data:n.data,address_id:e.address_id}),Object(ut["a"])({message:"删除成功",duration:2e3})):Object(ut["a"])({message:n.err_msg,duration:3e3})})).catch((function(t){xa.loading=!1}))},infoAddress:function(t,e){t.commit;xa.loading=!0,xa.addressInfoState=!1;var a={address_id:e.address_id};lt["c"].infoAddress(Aa.stringify(a)).then((function(t){var e=t.data;xa.loading=!1,0==e.err_code&&(xa.addressInfoState=!0,xa.addressInfo=e.data)})).catch((function(t){xa.loading=!1}))},getOverseaMsgArea:function(t,e){t.commit;lt["c"].getOverseaMsgArea().then((function(t){var e=t.data;0==e.err_code&&(xa.areaList=e.data)}))},createAddress:function(t,e){t.commit;xa.loading=!0;var a={consignee:e.consignee,province:e.province,city:e.city,district:e.district,detail_address:e.detail_address,address_type:e.address_type,is_default:e.is_default,mobile:e.mobile,intl_code:e.intl_code};lt["c"].createAddress(Aa.stringify(a)).then((function(t){var a=t.data;xa.loading=!1,0==a.err_code?(Object(ut["a"])({message:a.err_msg,duration:3e3}),e.orderpg?window.location.href=document.referrer:history.go(0)):Object(ut["a"])({message:a.err_msg,duration:3e3})})).catch((function(t){xa.loading=!1}))},updateAddress:function(t,e){t.commit;xa.loading=!0;var a={consignee:e.consignee,province:e.province,city:e.city,district:e.district,detail_address:e.detail_address,address_type:e.address_type,is_default:e.is_default,mobile:e.mobile,intl_code:e.intl_code,address_id:e.address_id};lt["c"].updateAddress(Aa.stringify(a)).then((function(t){var a=t.data;xa.loading=!1,0==a.err_code?(Object(ut["a"])({message:a.err_msg,duration:3e3}),setTimeout((function(){e.orderpg?history.go(-1):history.go(0)}),1500)):Object(ut["a"])({message:a.err_msg,duration:3e3})})).catch((function(t){xa.loading=!1}))},changeReceivePrizeAddress:function(t,e){t.commit;xa.loading=!0;var a={point_exchange_id:e.point_exchange_id,user_id:ft["a"].getCookie("Yo4teW_uid"),address_id:e.address_id};lt["c"].changeReceivePrizeAddress(Aa.stringify(a)).then((function(t){var e=t.data;xa.loading=!1,0==e.errcode?(Object(ut["a"])({message:"保存成功",duration:3e3}),setTimeout((function(){history.go(-1)}),1e3)):Object(ut["a"])({message:e.err_msg,duration:3e3})})).catch((function(t){xa.loading=!1}))}},za={},Ua={state:xa,mutations:Ea,actions:Ta,getters:za};a("de78");o["a"].use(ut["a"]);var Ma=a("1cfa"),Wa={loading:!1,brandMapData:[],indexList:[],loadStatus:!1,p:1,offset:10,totalLimit:0,listData:[],finished:!1,brandDetail:""},Ra={skuList:function(t,e){e.data.goods_list=Object.values(e.data.goods_list),1==t.p?t.listData=e.data.goods_list:t.listData=t.listData.concat(e.data.goods_list),t.totalLimit=Math.ceil(Number(e.data.total)/t.offset),t.p>=t.totalLimit?t.finished=!0:t.finished=!1}},Ba={brandList:function(t,e){t.commit;Wa.loading=!0;var a={brand_area:e.brand_area};lt["c"].brandList(Ma.stringify(a)).then((function(t){Wa.loading=!1;var e=t.data.data.BrandList;if(Wa.brandMapData=[],Wa.indexList=[],0==e.err_code)for(var a in Wa.brandMapData=e.data,Wa.brandMapData)Wa.indexList.push(a);else Object(ut["a"])({message:e.err_msg,duration:3e3})})).catch((function(t){Wa.loading=!1}))},brandInfo:function(t,e){t.commit;Wa.loading=!0;var a={brand_id:e.brand_id};lt["c"].brandInfo(a).then((function(t){Wa.loading=!1;var e=t.data.data;0==e.err_code?Wa.brandDetail=e.data:Object(ut["a"])({message:e.err_msg,duration:3e3})})).catch((function(t){Wa.loading=!1}))},skuList:function(t,e){var a=t.commit;Wa.loadStatus=!0,Wa.p=e.p,Wa.offset=e.offset;var n={"stock/sr":e["stock/sr"],"brand_id/condition":e["brand_id/condition"],p:e.p,offset:e.offset};e["stock/order"]&&(n["stock/order"]=e["stock/order"]),e["single_price/order"]&&(n["single_price/order"]=e["single_price/order"]);var o=ft["a"].getParams(n);lt["c"].skuList(o).then((function(t){var e=t.data;Wa.loadStatus=!1,0==e.err_code&&a({type:"skuList",data:e.data})})).catch((function(t){Wa.loadStatus=!1}))}},Fa={},Ya={state:Wa,mutations:Ra,actions:Ba,getters:Fa};a("1cfa");o["a"].use(ut["a"]);var qa={rankList:[]},Va={},Ga={getlxuserrank:function(t,e){t.commit;qa.loading=!0,lt["c"].getlxuserrank().then((function(t){var e=t.data;0==e.err_code&&(qa.rankList=e.data)})).catch((function(t){}))}},Na={},Ka={state:qa,mutations:Va,actions:Ga,getters:Na};o["a"].use(ut["a"]);var Ha={loading:!1,getfileuploadbanner:[],articleShowData:[],showClass:[]},Za={getfileuploadbanner:function(t,e){t.getfileuploadbanner=e.data},articleShowData:function(t,e){t.articleShowData=e.data},showClass:function(t,e){t.showClass=e.data}},Ja={getfileuploadbanner:function(t,e){var a=t.commit,n=ft["a"].getParams();lt["c"].getfileuploadbanner(n).then((function(t){var e=t.data;0==e.err_code&&a({type:"getfileuploadbanner",data:e.data.data})})).catch((function(t){}))},downloadFile:function(t,e){t.commit;var a={data_id:e.id,download:e.download},n=ft["a"].getParams(a);lt["c"].downloadFile(n).then((function(t){var a=t.data;if(0==a.err_code){var n=ft["a"].isUerAgent();1==e.download?Object(ut["a"])({message:a.err_msg,duration:2e3}):"ios"==n?(Object(ut["a"])({message:"该文件只能在safari浏览器中下载保存,请在safari中打开页面并下载\n",duration:2e3}),setTimeout((function(){window.location.href=a.data[0].file_url}),2e3)):window.location.href=a.data[0].file_url}else a.err_code,Object(ut["a"])({message:a.err_msg,duration:2e3})})).catch((function(t){}))},articleShowData:function(t,e){var a=t.commit;ut["a"].loading({message:"加载中...",forbidClick:!0,loadingType:"spinner"});var n={limit:300,class_id:e.class_id},o=ft["a"].getParams(n);lt["c"].articleShowData(o).then((function(t){var e=t.data;0==e.err_code?a({type:"articleShowData",data:e.data}):Object(ut["a"])({message:e.err_msg,duration:2e3}),ut["a"].clear()})).catch((function(t){ut["a"].clear()}))},showClass:function(t,e){var a=t.commit,n=ft["a"].getParams();lt["c"].showClass(n).then((function(t){var e=t.data;0==e.err_code?a({type:"showClass",data:e.data}):Object(ut["a"])({message:e.err_msg,duration:2e3})})).catch((function(t){}))}},$a={},Xa={state:Ha,mutations:Za,actions:Ja,getters:$a};a("5f54");function Qa(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,n)}return a}function tn(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?Qa(Object(a),!0).forEach((function(e){Object(n["a"])(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):Qa(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}o["a"].use(ut["a"]);var en={classList:[],goodList:[],loading:!1,finished:!1,goodCount:0,aggSample:[],aggs:{},aggsFlag:[],ziYingIndex:[],smaple_class_id:"",getsamplebanner:[]},an={ziYingIndex:function(t,e){var a=[];for(var n in e.data.data.data_list)a.push(e.data.data.data_list[n]);t.ziYingIndex=t.ziYingIndex.concat(a)},aggs:function(t,e){var a=[];for(var n in e.id&&(a=e.id.split(",")),e.data.aggs)for(var o=0;o<e.data.aggs[n].list.length;o++){e.data.aggs[n].list[o].check=!1;for(var i=0;i<a.length;i++)e.data.aggs[n].list[o].id==a[i]&&(e.data.aggs[n].list[o].check=!e.data.aggs[n].list[o].check,e.data.aggs[n].list[o].flag=!e.data.aggs[n].list[o].flag)}t.aggs=e.data},aggSample:function(t,e){t.smaple_class_id=e.data[0].smaple_class_id,t.aggSample=e.data},classListM:function(t,e){t.classList=e.data},goodList:function(t,e){var a=[];for(var n in e.data)a.push(e.data[n]);t.goodList=t.goodList.concat(a)},getsamplebanner:function(t,e){t.getsamplebanner=e.data}},nn={ziYingIndex:function(t,e){var a=t.commit;ut["a"].loading({message:"加载中...",forbidClick:!0,loadingType:"spinner"}),en.loading=!0,en.finished=!1,1==e.params.p&&(en.ziYingIndex=[]);var n=tn(tn({},e.params),{},{offset:10,"sample_status/eq":1}),o=ft["a"].getParams(n);lt["c"].ZiYingIndex(o).then((function(t){ut["a"].clear();var n=t.data;if(en.loading=!1,0==n.error_code){var o=0;n.data.total&&(o=Math.ceil(1*n.data.total/10)),(e.params.p>=o||!o)&&(en.finished=!0),a({type:"ziYingIndex",data:n.data})}else en.loading=!1,en.finished=!0})).catch((function(t){ut["a"].clear(),en.loading=!1,en.finished=!0}))},aggs:function(t,e){var a=t.commit;ut["a"].loading({message:"加载中...",forbidClick:!0,loadingType:"spinner"});var n={"sample_status/eq":1},o=Object.assign({},n,e.params),i=ft["a"].getParams(o);lt["c"].aggs(i).then((function(t){ut["a"].clear();var n=t.data;0==n.error_code?a({type:"aggs",data:n.data,reset:e.params.reset,id:e.params.id}):Object(ut["a"])({message:n.error_msg,duration:3e3})})).catch((function(t){ut["a"].clear()}))},aggSample:function(t,e){var a=t.commit,n=ft["a"].getParams();lt["c"].aggSample(n).then((function(t){var e=t.data;0==e.error_code?a({type:"aggSample",data:e.data}):Object(ut["a"])({message:e.error_msg,duration:3e3})})).catch((function(t){}))},getClasslist:function(t,e){var a=t.commit;lt["c"].sampleClassList().then((function(t){var e=t.data;0==e.err_code?a("classListM",{data:e.data||[]}):a("classListM",{data:[]})})).catch((function(t){a("classListM",{data:[]})}))},getGoodList:function(t,e){var a=t.commit;en.loading=!0,en.finished=!1;var n=e.data.p;1==n&&(en.goodList=[]);var o=tn(tn({},e.data),{},{limit:10});lt["c"].sampleList(o).then((function(t){en.loading=!1;var e=t.data;if(0==e.err_code){var o=0;e.data.total&&(o=Math.ceil(e.data.total/10)),n!=o&&o||(en.finished=!0),e.data.total&&a("goodList",{data:e.data.data})}else en.loading=!1,en.finished=!0})).catch((function(t){en.loading=!1,en.finished=!0}))},getsamplebanner:function(t,e){var a=t.commit,n=ft["a"].getParams();lt["c"].getsamplebanner(n).then((function(t){en.loading=!1;var e=t.data;0==e.err_code?a({type:"getsamplebanner",data:e.data}):Object(ut["a"])({message:e.error_msg,duration:3e3})})).catch((function(t){}))}},on={state:en,actions:nn,mutations:an},rn=a("1cfa");o["a"].use(ut["a"]);var cn={loading:!1,addressInfo:"",submitState:!1,ypGoodDetail:{},ordernum:""},sn={recvlistSample:function(t,e){t.addressInfo=e.data.filter((function(t){return 1==t["is_default"]})),t.addressInfo=t.addressInfo[0]}},dn={recvlistSample:function(t,e){var a=t.commit;lt["c"].recvlist().then((function(t){var e=t.data;0==e.err_code&&a({type:"recvlistSample",data:e.data})})).catch((function(t){}))},selfSampleCreate:function(t,e){t.commit;cn.loading=!0;var a={goods_id:e.goods_id,apply_num:e.apply_num,com_name:e.com_name,sample_demand_desc:e.sample_demand_desc,address_id:e.address_id};lt["c"].selfSampleCreate(rn.stringify(a)).then((function(t){var e=t.data;cn.loading=!1,0==e.err_code?(cn.submitState=!0,cn.ordernum=e.data||""):"40014"==e.err_code?Object(ut["a"])("样品库存不足"):Object(ut["a"])(e.err_msg)})).catch((function(t){cn.loading=!1}))},getDetailYp:function(t,e){t.commit;cn.loading=!0;var a={id:e.data.id},n=ft["a"].getParams(a);lt["c"].getSampleInfo(n).then((function(t){var e=t.data;cn.loading=!1,0==e.err_code?cn.ypGoodDetail=e.data:Object(ut["a"])(e.err_msg)})).catch((function(t){cn.loading=!1}))}},un={},ln={state:cn,mutations:sn,actions:dn,getters:un},fn=a("1cfa");o["a"].use(ut["a"]);var gn={formImgShow:!1,countDown:!1},hn={getfileuploadbanner:function(t,e){t.getfileuploadbanner=e.data},articleShowData:function(t,e){t.articleShowData=e.data}},mn={actionLogins:function(t,e){t.commit;var a=ut["a"].loading({forbidClick:!0});if("risk"==e.from)var n={com_name:e.com_name,user_name:e.user_name,account:e.account,sms_verify:e.sms_verify,ptag:"edcp"};else n={account:e.account,sms_verify:e.sms_verify};lt["c"].actionLogins(fn.stringify(n)).then((function(t){var n=t.data;0==n.err_code?setTimeout((function(){a.clear(),"risk"==e.from?window.location.href="/h5/view/#/creditestsuccess":window.location.href="/"}),1e3):(a.clear(),Object(ut["a"])({message:n.err_msg,duration:3e3}))})).catch((function(t){gn.loading=!1}))},smsVerifys:function(t,e){t.commit;var a={mobile:e.mobile,verify:e.verify,channel:1};lt["c"].smsVerifys(fn.stringify(a)).then((function(t){var e=t.data;0==e.err_code?(gn.formImgShow=!1,gn.countDown=!0):10001==e.err_code||10002==e.err_code?(gn.formImgShow=!0,gn.countDown=!1,Object(ut["a"])({message:e.err_msg,duration:2e3})):Object(ut["a"])({message:e.err_msg,duration:3e3})})).catch((function(t){}))},countDownflag:function(t,e){t.commit;gn.countDown=!1}},pn={},_n={state:gn,mutations:hn,actions:mn,getters:pn};function bn(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,n)}return a}function vn(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?bn(Object(a),!0).forEach((function(e){Object(n["a"])(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):bn(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}o["a"].use(ut["a"]);var yn={bannerData:[],isLodingFinishData:!1,prizeData:{},goodId:""},wn={getBannerData:function(t,e){t.bannerData=e.data},changeBannerData:function(t){var e=t.bannerData;e.push(e[0]),e.shift(),t.bannerData=e},changeIsLodingFinishData:function(t,e){t.isLodingFinishData=e.bool},yaoHaoYouJP:function(t,e){t.prizeData=e.obj},changeGoodId:function(t,e){t.goodId=e.id}},kn={oscilloscopeinvited:function(t,e){t.commit;var a=vn({},e.data),n=ft["a"].getParams(a);lt["c"].oscilloscopeinvited(n).then((function(t){})).catch((function(t){}))},getbannerdata:function(t,e){var a=t.commit,n=vn({},e.data);a({type:"changeIsLodingFinishData",bool:!1});var o=ft["a"].getParams(n);lt["c"].getBannerData(o).then((function(t){var e=t.data;0==e.err_code&&(a({type:"getBannerData",data:e.data}),a({type:"changeIsLodingFinishData",bool:!0}))})).catch((function(t){}))},yaoHaoYouJP:function(t,e){var a=t.commit;ut["a"].loading({message:"加载中...",forbidClick:!0,loadingType:"spinner"});var n=vn({},e.data),o=ft["a"].getParams(n);lt["c"].yaoHaoYouJP(o).then((function(t){ut["a"].clear();var e=t.data;0==e.err_code&&a({type:"yaoHaoYouJP",obj:e.data})})).catch((function(t){ut["a"].clear()}))},getYaoHaoYouGoodId:function(t,e){var a=t.commit,n=vn({},e.data);a({type:"changeGoodId",id:""}),lt["c"].getYaoHaoYouGoodId(n).then((function(t){var e=t.data;0==e.err_code?a({type:"changeGoodId",id:e.data.id}):Object(ut["a"])({message:e.err_msg,duration:3e3})})).catch((function(t){}))}},Dn={state:yn,actions:kn,mutations:wn};o["a"].use(dt["a"]);var On=new dt["a"].Store({modules:{wallet:bt,home:Dt,common:Lt,smt:Tt,wxlist:Bt,news:Nt,newsdetail:Xt,seo:oe,findthing:ue,pointmall:pe,pointchange:ke,pointrule:Ce,pointdetail:Ee,exchange:Re,aboutus:Ye,chain:He,xianhuo:ta,lxshop:ea["a"],gooddetail:ra,car:fa,user:ba,userInfo:Ia,coupon:Oa,address:Ua,brand:Ya,rank:Ka,download:Xa,sample:on,sampleapply:ln,special:_n,oscilloscope:Dn}}),Pn=function(t,e){var a=t;return-1==a.indexOf("ptag")&&(a=a.indexOf("?")>-1?a+"&ptag="+e:a+"?ptag="+e),a},jn=function(t){return encodeURIComponent(t)},Cn=function(t){return t.indexOf("?")>-1?t+"&ptag=index-dynamic":t+"?ptag=index-dynamic"},Ln=function(t,e){var a=new Date(1e3*t);function n(t){return t<10&&(t="0"+t),t}var o=a.getFullYear(),i=a.getMonth()+1,r=a.getDate(),c=a.getHours(),s=a.getMinutes(),d=a.getSeconds();return o+"-"+n(i)+"-"+n(r)+" "+n(c)+":"+n(s)+":"+n(d)},Sn=function(t,e){var a=String(t);if(a&&-1!=a.indexOf("font")){var n=a.split('class="');n.shift();for(var o="",i=[["asfgdqwer","asfgdtyhg","asfgdpolk","asfgdpoqw"],["asfgdrfdf","asfgderfd","asfgdwdsa","asfgdpoer"],["asfgdasde","asfgdqwsz","asfgdrtgd","asfgdpovv"],["asfgdwsxc","asfgdwsxz","asfgdrfvb","asfgdpoee"],["asfgdqazs","asfgdqasd","asfgdqwag","asfgdpogh"],["asfgdrtyh","asfgdyutr","asfgdeews","asfgdpotg"],["asfgdpluj","asfgdikjf","asfgdesgj","asfgdpfff"],["asfgdtrdb","asfgdiksf","asfgdsgkp","asfgdprty"],["asfgdpehl","asfgdstgb","asfgderll","asfgdpokf"],["asfgdpehg","asfgdstgf","asfgderlf","asfgdpogk"]],r=0;r<n.length;r++)for(var c=n[r].split(" ")[0],s=0;s<i.length;s++)-1!=i[s].indexOf(c)&&(o+=s);return Number(o)}return Number(a)},In={dateTimeFormate:Ln,urlParams:Cn,urlPatg:Pn,urlEncode:jn,numberCode:Sn},An={bind:function(t,e){t.addEventListener("click",(function(){var t=document.querySelector(".container-wrap").scrollTop,e=(t/100).toFixed(0),a=setInterval((function(){t-=e,t<=0&&(t=0,clearInterval(a)),document.querySelector(".container-wrap").scrollTop=t}),1)}),!1)}},xn={bind:function(t,e){t.addEventListener("click",(function(t){var e=document.documentElement.scrollTop||document.body.scrollTop,a=(e/100).toFixed(0),n=setInterval((function(){e-=a,e<=0&&(e=0,clearInterval(n)),document.documentElement.scrollTop?document.documentElement.scrollTop=e:document.body.scrollTop?document.body.scrollTop=e:document.querySelector("html,body").scrollTop=e}),1)}),!1)}},En={bind:function(t,e){var a=lt["b"]+"public/verify?"+(new Date).getTime();t.setAttribute("src",a),t.addEventListener("click",(function(){var e=lt["b"]+"public/verify?"+(new Date).getTime();t.setAttribute("src",e)}),!1)}},Tn={bind:function(t,e){t.addEventListener("click",(function(){var t=!!ft["a"].isLogin();if(t){var e=document.body,a=document.createElement("div");a.setAttribute("class","share-mask");var n=document.createElement("img");n.src="http://img.ichunt.com/test/images/ichunt/201904/10/b6dac89d8e471cc6cb499e1023373e0a.png",e.appendChild(a),a.appendChild(n),a.addEventListener("click",(function(){a.remove()}),!1)}else window.location.href="/v3/login?referer="+encodeURIComponent(window.location.href)}),!1)}},zn={install:function(t){t.directive("shareMask",Tn),t.directive("backTop",An),t.directive("backTopWindow",xn),t.directive("imgCode",En)}},Un=(a("897d"),a("aac1")),Mn=a.n(Un);a("b378"),a("bfd9");function Wn(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,n)}return a}function Rn(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?Wn(Object(a),!0).forEach((function(e){Object(n["a"])(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):Wn(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}o["a"].config.productionTip=!1;var Bn="production";if("production"!=Bn)new Mn.a;Object.keys(In).forEach((function(t){return o["a"].filter(t,In[t])})),o["a"].use(zn);var Fn=ft["a"].getCookie("Yo4teW_csrf")||"";o["a"].prototype.$http=g.a,g.a.defaults.headers.post["Content-Type"]="application/x-www-form-urlencoded",g.a.defaults.withCredentials=!0,g.a.interceptors.request.use((function(t){if("post"==t.method)t.data?-1==t.data.indexOf("&pf=2")&&(t.data+="&pf="+window.lxpf+"&csrf="+Fn):t.data="pf="+window.lxpf+"&csrf="+Fn;else if("get"==t.method){var e=Object.keys(t.params);e.length?-1==e.indexOf("pf")&&(t.params=Rn({pf:window.lxpf,csrf:Fn},t.params)):t.params={pf:window.lxpf,csrf:Fn}}return t}),(function(t){return Promise.reject(t)}));ft["a"].getCookie("Yo4teW_gid"),(new Date).getTime(),Math.random();var Yn={urlhash:window.location.hash};Yn=ft["a"].getParams(Yn),lt["c"].wxaccess(Yn).then((function(t){var e=t.data;0==e.err_code&&e.data&&(window.location.href=e.data)})),st.beforeEach((function(t,e,a){var n=t.meta&&t.meta.title,o=["/oscilloscope"],i=t.path;n&&(document.title=n);var r=t.meta.back||"";if(r){var c=!!ft["a"].isLogin();c||-1!=o.indexOf(i)?a():window.location.href="/v3/login?referer="+encodeURIComponent(window.location.href)}else a()})),new o["a"]({router:st,store:On,render:function(t){return t(l)}}).$mount("#app")},bfd9:function(t,e,a){}});
\ No newline at end of file
(function(t){function e(e){for(var n,o,c=e[0],s=e[1],d=e[2],u=0,l=[];u<c.length;u++)o=c[u],Object.prototype.hasOwnProperty.call(i,o)&&i[o]&&l.push(i[o][0]),i[o]=0;for(n in s)Object.prototype.hasOwnProperty.call(s,n)&&(t[n]=s[n]);f&&f(e);while(l.length)l.shift()();return r.push.apply(r,d||[]),a()}function a(){for(var t,e=0;e<r.length;e++){for(var a=r[e],n=!0,o=1;o<a.length;o++){var c=a[o];0!==i[c]&&(n=!1)}n&&(r.splice(e--,1),t=s(s.s=a[0]))}return t}var n={},o={app:0},i={app:0},r=[];function c(t){return s.p+"js/"+({}[t]||t)+"."+{"chunk-003fb384":"e54126b0","chunk-084e7fbd":"5ab06405","chunk-1e656f57":"3e05397c","chunk-1f0dc545":"eb68d46f","chunk-2a4a33e8":"1015497e","chunk-32ec94d2":"d6c39dab","chunk-7fb2ce2c":"fd0946fe","chunk-324f0d94":"d3ee8dea","chunk-3795b890":"2b9edf01","chunk-5bb10935":"b0c1e8b7","chunk-81b4e91a":"b4a2e1f7","chunk-a22f9470":"ad1a7071","chunk-0c9bf163":"b9539fbb","chunk-1401b758":"f8180175","chunk-1943a952":"b25f7cd7","chunk-1c926693":"0958a5c3","chunk-1f5ab15f":"6177f942","chunk-29823840":"1ff298b7","chunk-470ba04a":"60694ac0","chunk-65512df9":"cf5ed7d8","chunk-d040a468":"a178a55b","chunk-2a765010":"73c71263","chunk-2aa1802a":"b6b7d2b4","chunk-30f776c2":"36e8cbb8","chunk-34530264":"05d68bbc","chunk-378fe7a6":"5af09d7f","chunk-398241fe":"02af0d23","chunk-39b24832":"d7558276","chunk-39faa2a4":"a45e6e69","chunk-3bb45ba4":"de27909b","chunk-3c097c09":"588e7e7f","chunk-24add2e0":"972584ff","chunk-4044944a":"2f556008","chunk-503d2a1d":"bfa887b4","chunk-5dc4ca1f":"dc6c127a","chunk-60950cc8":"cd659c7d","chunk-69b10b86":"e0632dd1","chunk-76d147b0":"b6ff4ae0","chunk-783f1fe8":"e05f9813","chunk-7d7870ef":"0eb9c465","chunk-839b1e56":"29d97c30","chunk-9a8ab3ca":"93eeb686","chunk-a27f09fe":"7b22704c","chunk-af472a0e":"254f527e","chunk-b9590988":"586bd90e","chunk-bbb45496":"1bc197eb","chunk-cdd96bb8":"35751194","chunk-cf36f306":"31b26781","chunk-f38b08f0":"c801fd0a","chunk-fad0077e":"bb5e91de","chunk-ad9e6894":"273819bb","chunk-cab1310e":"4bf11cd5","chunk-bfe218ac":"68536a98","chunk-284a544b":"6fbdf21c","chunk-46520f01":"eb21be48"}[t]+".js"}function s(e){if(n[e])return n[e].exports;var a=n[e]={i:e,l:!1,exports:{}};return t[e].call(a.exports,a,a.exports,s),a.l=!0,a.exports}s.e=function(t){var e=[],a={"chunk-003fb384":1,"chunk-084e7fbd":1,"chunk-1e656f57":1,"chunk-1f0dc545":1,"chunk-32ec94d2":1,"chunk-7fb2ce2c":1,"chunk-324f0d94":1,"chunk-3795b890":1,"chunk-5bb10935":1,"chunk-81b4e91a":1,"chunk-a22f9470":1,"chunk-0c9bf163":1,"chunk-1401b758":1,"chunk-1943a952":1,"chunk-1c926693":1,"chunk-1f5ab15f":1,"chunk-29823840":1,"chunk-470ba04a":1,"chunk-65512df9":1,"chunk-d040a468":1,"chunk-2a765010":1,"chunk-2aa1802a":1,"chunk-30f776c2":1,"chunk-34530264":1,"chunk-378fe7a6":1,"chunk-398241fe":1,"chunk-39b24832":1,"chunk-39faa2a4":1,"chunk-3bb45ba4":1,"chunk-3c097c09":1,"chunk-24add2e0":1,"chunk-4044944a":1,"chunk-503d2a1d":1,"chunk-5dc4ca1f":1,"chunk-60950cc8":1,"chunk-69b10b86":1,"chunk-76d147b0":1,"chunk-783f1fe8":1,"chunk-7d7870ef":1,"chunk-839b1e56":1,"chunk-9a8ab3ca":1,"chunk-a27f09fe":1,"chunk-af472a0e":1,"chunk-b9590988":1,"chunk-bbb45496":1,"chunk-cdd96bb8":1,"chunk-cf36f306":1,"chunk-f38b08f0":1,"chunk-fad0077e":1,"chunk-ad9e6894":1,"chunk-cab1310e":1,"chunk-284a544b":1,"chunk-46520f01":1};o[t]?e.push(o[t]):0!==o[t]&&a[t]&&e.push(o[t]=new Promise((function(e,a){for(var n="css/"+({}[t]||t)+"."+{"chunk-003fb384":"b11e5fdf","chunk-084e7fbd":"ff0fdc85","chunk-1e656f57":"093f2cac","chunk-1f0dc545":"7034f78f","chunk-2a4a33e8":"31d6cfe0","chunk-32ec94d2":"271480a7","chunk-7fb2ce2c":"f81b02da","chunk-324f0d94":"be20e716","chunk-3795b890":"114f15f7","chunk-5bb10935":"37f79355","chunk-81b4e91a":"3c8a89a1","chunk-a22f9470":"75c32dbb","chunk-0c9bf163":"12fe2761","chunk-1401b758":"d8d1f2d1","chunk-1943a952":"036eb04e","chunk-1c926693":"89993a2b","chunk-1f5ab15f":"d8d1f2d1","chunk-29823840":"5b2fbafc","chunk-470ba04a":"614bd80c","chunk-65512df9":"fc99011c","chunk-d040a468":"a86b5b21","chunk-2a765010":"21c4acaa","chunk-2aa1802a":"d8d1f2d1","chunk-30f776c2":"d8d1f2d1","chunk-34530264":"39ce91c5","chunk-378fe7a6":"519384fc","chunk-398241fe":"d8d1f2d1","chunk-39b24832":"b2d544b7","chunk-39faa2a4":"d8d1f2d1","chunk-3bb45ba4":"e63f5a4d","chunk-3c097c09":"fd90b228","chunk-24add2e0":"92647ec0","chunk-4044944a":"92647ec0","chunk-503d2a1d":"23e36eeb","chunk-5dc4ca1f":"d8d1f2d1","chunk-60950cc8":"d8d1f2d1","chunk-69b10b86":"3acfb353","chunk-76d147b0":"2c3d307f","chunk-783f1fe8":"f5ef0fe7","chunk-7d7870ef":"d8d1f2d1","chunk-839b1e56":"aee9a026","chunk-9a8ab3ca":"0930351f","chunk-a27f09fe":"d8d1f2d1","chunk-af472a0e":"89eca092","chunk-b9590988":"db4e652e","chunk-bbb45496":"5d3ce0db","chunk-cdd96bb8":"d8d1f2d1","chunk-cf36f306":"d8d1f2d1","chunk-f38b08f0":"f30d63e2","chunk-fad0077e":"faa60e27","chunk-ad9e6894":"079157bd","chunk-cab1310e":"37f79355","chunk-bfe218ac":"31d6cfe0","chunk-284a544b":"6bb54f1a","chunk-46520f01":"6bb54f1a"}[t]+".css",i=s.p+n,r=document.getElementsByTagName("link"),c=0;c<r.length;c++){var d=r[c],u=d.getAttribute("data-href")||d.getAttribute("href");if("stylesheet"===d.rel&&(u===n||u===i))return e()}var l=document.getElementsByTagName("style");for(c=0;c<l.length;c++){d=l[c],u=d.getAttribute("data-href");if(u===n||u===i)return e()}var f=document.createElement("link");f.rel="stylesheet",f.type="text/css",f.onload=e,f.onerror=function(e){var n=e&&e.target&&e.target.src||i,r=new Error("Loading CSS chunk "+t+" failed.\n("+n+")");r.code="CSS_CHUNK_LOAD_FAILED",r.request=n,delete o[t],f.parentNode.removeChild(f),a(r)},f.href=i;var g=document.getElementsByTagName("head")[0];g.appendChild(f)})).then((function(){o[t]=0})));var n=i[t];if(0!==n)if(n)e.push(n[2]);else{var r=new Promise((function(e,a){n=i[t]=[e,a]}));e.push(n[2]=r);var d,u=document.createElement("script");u.charset="utf-8",u.timeout=120,s.nc&&u.setAttribute("nonce",s.nc),u.src=c(t);var l=new Error;d=function(e){u.onerror=u.onload=null,clearTimeout(f);var a=i[t];if(0!==a){if(a){var n=e&&("load"===e.type?"missing":e.type),o=e&&e.target&&e.target.src;l.message="Loading chunk "+t+" failed.\n("+n+": "+o+")",l.name="ChunkLoadError",l.type=n,l.request=o,a[1](l)}i[t]=void 0}};var f=setTimeout((function(){d({type:"timeout",target:u})}),12e4);u.onerror=u.onload=d,document.head.appendChild(u)}return Promise.all(e)},s.m=t,s.c=n,s.d=function(t,e,a){s.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:a})},s.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},s.t=function(t,e){if(1&e&&(t=s(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var a=Object.create(null);if(s.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var n in t)s.d(a,n,function(e){return t[e]}.bind(null,n));return a},s.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return s.d(e,"a",e),e},s.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},s.p="//h5static.ichunt.com/",s.oe=function(t){throw t};var d=window["webpackJsonp"]=window["webpackJsonp"]||[],u=d.push.bind(d);d.push=e,d=d.slice();for(var l=0;l<d.length;l++)e(d[l]);var f=u;r.push([0,"chunk-vendors"]),a()})({0:function(t,e,a){t.exports=a("56d7")},"365c":function(t,e,a){"use strict";a.d(e,"c",(function(){return g})),a.d(e,"b",(function(){return m})),a.d(e,"a",(function(){return p})),a.d(e,"d",(function(){return _}));a("5ab2"),a("6d57"),a("e44b"),a("e10e");var n,o,i,r,c,s=a("9bef"),d=a("f753"),u=a.n(d);function l(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,n)}return a}function f(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?l(Object(a),!0).forEach((function(e){Object(s["a"])(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):l(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}switch(window.location.hostname){case"m.ichunt.com":i="https://www.ichunt.com/v3/",o="https://m.ichunt.com/v3/",n="https://api.ichunt.com/",r="https://so12.ichunt.com",c="https://so12.ichunt.com";break;case"szm.ichunt.com":n="https://szapi.ichunt.com/",o="https://szm.ichunt.com/v3/",i="https://sz.ichunt.com/v3/",r="https://szso.ichunt.com",c="https://szso.ichunt.com";break;case"tm.ichunt.com":o="https://tm.ichunt.com/v3/",n="https://api.ichunt.com/",i="https://t.ichunt.com/v3/",r="https://so12.ichunt.com",c="https://so12.ichunt.com";break;case"m.liexin.com":o="http://m.liexin.com/v3/",n="http://api.liexin.com/",i="http://www.liexin.com/v3/",r="http://soso12.ichunt.com",c="http://soso12.ichunt.com";break;default:o="/m/v3/",n="/apis/"}var g=i,h=o,m=n,p={wxShare:o+"shareparams",index:h+"index",loginCheck:m+"login/check",cartCount:m+"cart/count",confirmBehavior:m+"/public/confirmBehavior",cartList:m+"cart/lists",cartDelete:m+"cart/delete",allcount:m+"cart/allcount",changenum:m+"/cart/changenum",customsrService:m+"public/customsrservice",getCommonParams:h+"getcommonparams",wxaccess:h+"api/wxaccess",checkAccountExists:m+"public/checkAccountExists",customSmsVerify:m+"public/customSmsVerify",chainFind:h+"Service/chainFind",wechatArticle:m+"Wechat/WechatArticleJinJi/article",newsArticle:m+"Article/Article/index",newsArticleDetail:m+"Article/Article/details",newsArticleDetailAd:h+"api/newsdetailad",actionLogin:m+"login/action",actionLogins:m+"login/action",smsVerify:m+"public/smsVerify",feedback:m+"help/help/feedback",getUserCurrentPoint:m+"/point/getUserCurrentPoint",isSignInToday:m+"signIn/isSignInToday",signIn:m+"signIn/signIn",checkMktScore:m+"user/checkMktScore",getPointPrize:m+"point/getPointPrize",exchangePrize:m+"point/exchangePrize",getUserPointExchangeDetail:m+"point/getUserPointExchangeDetail",recvlist:m+"address/recvlist",createAddress:m+"address/create",updateAddress:m+"address/update",changeReceivePrizeAddress:m+"point/changeReceivePrizeAddress",setdefault:m+"address/setdefault",deleteAddress:m+"address/delete",infoAddress:m+"address/info",getOverseaMsgArea:m+"/reg/getOverseaMsgArea",pointruleApi:h+"api/pointrule",getUserPointDetail:m+"point/getUserPointDetail",getUserPointExchangeList:m+"point/getUserPointExchangeList",getWalletInfo:m+"wallet/info",activateWallet:m+"wallet/activate",sendSafesms:m+"wallet/safesms",verifyResetsms:m+"wallet/verifyresetsms",changeWalletpwd:m+"wallet/changepwd",walletListLog:m+"wallet/log",walletRecordList:m+"wallet/lists",verifySafeMobile:m+"wallet/verifysafe",getBindBankmsg:m+"wallet/getbankmsg",bindBankCard:m+"wallet/bindbankcard",walletRecharge:m+"wallet/recharge",walletWithdraw:m+"wallet/withdraw",rechargeWithdrawOrderIfo:m+"wallet/orderinfo",payTodo:m+"pay/todo",orderInfo:m+"order/info",getAboutUsData:h+"api/aboutData",searchZy:r+"/search/ZiYing/zy",searchLy:c+"/search/getData/index",searchLyEs:c+"/search/es/index",supplierApi:h+"api/supplierApi",goodDetail:m+"/goods/detail",defaultClass:h+"api/defaultClass",addGood:m+"/cart/add",selfSampleCreate:m+"/order/selfsamplecreate",getusersampleinfo:m+"/user/getusersampleinfo",loginsampleaction:m+"/login/sampleaction",samplelist:m+"/sample/list",sampleclasslist:m+"/sample/class/list",getsampleinfo:o+"getsampleinfo",getUserType:m+"/user/getUserType",orderCount:m+"/order/count",getBindInfo:m+"/user/getBindInfo",unbindPhone:m+"/user/unbind",logout:m+"/login/logout",allAddress:m+"/address/allpcd",changeUserInfo:m+"/user/changeUserInfo",ucouponCount:m+"/ucoupon/count",ucouponLists:m+"/ucoupon/lists",brandList:h+"api/brandList",brandInfo:h+"api/brandInfo",skuList:m+"sku/info",getlxuserrank:m+"activity/getlxuserrank",getfileuploadbanner:h+"news/getfileuploadbanner",articleShowData:m+"article/showData",downloadFile:m+"article/DownloadFile",smsVerifys:m+"public/smsVerify",showClass:m+"article/show_class",aggSample:r+"/search/ZiYing/aggSample",aggs:r+"/search/ZiYing/aggs",ZiYingIndex:r+"/search/ZiYing/index",getsamplebanner:o+"/getsamplebanner",invited:n+"/activity/invited",rotation:n+"/activity/rotation",yaoHaoYouJP:n+"/activity/yaoHaoYouJP",getYaoHaoYouGoodId:n+"/activity/getYaoHaoYouGoodId",uploadImg:n+"/oss/upload"},_={index:function(t){return u.a.post(p.index,t)},loginCheck:function(t){return u.a.get(p.loginCheck,{params:f({},t)})},smsVerify:function(t){return u.a.post(p.smsVerify,t)},smsVerifys:function(t){return u.a.post(p.smsVerifys,t)},actionLogin:function(t){return u.a.post(p.actionLogin,t)},actionLogins:function(t){return u.a.post(p.actionLogins,t)},feedback:function(t){return u.a.post(p.feedback,t)},cartCount:function(t){return u.a.get(p.cartCount,{params:f({},t)})},customsrService:function(t){return u.a.get(p.customsrService,{params:f({},t)})},getCommonParams:function(t){return u.a.post(p.getCommonParams,t)},wxaccess:function(t){return u.a.post(p.wxaccess,t)},checkAccountExists:function(t){return u.a.post(p.checkAccountExists,t)},customSmsVerify:function(t){return u.a.post(p.customSmsVerify,t)},chainFind:function(t){return u.a.post(p.chainFind,t)},wechatArticle:function(t){return u.a.post(p.wechatArticle,t)},newsArticle:function(t){return u.a.post(p.newsArticle,t)},newsArticleDetail:function(t){return u.a.post(p.newsArticleDetail,t)},newsArticleDetailAd:function(t){return u.a.post(p.newsArticleDetailAd,t)},getUserCurrentPoint:function(t){return u.a.post(p.getUserCurrentPoint,t)},isSignInToday:function(t){return u.a.post(p.isSignInToday,t)},signIn:function(t){return u.a.post(p.signIn,t)},checkMktScore:function(t){return u.a.post(p.checkMktScore,t)},getPointPrize:function(t){return u.a.post(p.getPointPrize,t)},exchangePrize:function(t){return u.a.post(p.exchangePrize,t)},recvlist:function(t){return u.a.post(p.recvlist,t)},createAddress:function(t){return u.a.post(p.createAddress,t)},updateAddress:function(t){return u.a.post(p.updateAddress,t)},changeReceivePrizeAddress:function(t){return u.a.post(p.changeReceivePrizeAddress,t)},setdefault:function(t){return u.a.post(p.setdefault,t)},deleteAddress:function(t){return u.a.post(p.deleteAddress,t)},infoAddress:function(t){return u.a.post(p.infoAddress,t)},getOverseaMsgArea:function(t){return u.a.post(p.getOverseaMsgArea,t)},getUserPointExchangeDetail:function(t){return u.a.post(p.getUserPointExchangeDetail,t)},pointruleApi:function(t){return u.a.post(p.pointruleApi,t)},getUserPointDetail:function(t){return u.a.post(p.getUserPointDetail,t)},getUserPointExchangeList:function(t){return u.a.post(p.getUserPointExchangeList,t)},getAboutUsData:function(t){return u.a.post(p.getAboutUsData,t)},getWalletInfo:function(t){return u.a.get(p.getWalletInfo,{params:f({},t)})},activateWallet:function(t){return u.a.post(p.activateWallet,t)},sendSafesms:function(t){return u.a.post(p.sendSafesms,t)},verifyResetsms:function(t){return u.a.post(p.verifyResetsms,t)},walletListLog:function(t){return u.a.post(p.walletListLog,t)},changeWalletpwd:function(t){return u.a.post(p.changeWalletpwd,t)},walletRecordList:function(t){return u.a.post(p.walletRecordList,t)},verifySafeMobile:function(t){return u.a.post(p.verifySafeMobile,t)},getBindBankmsg:function(t){return u.a.post(p.getBindBankmsg,t)},bindBankCard:function(t){return u.a.post(p.bindBankCard,t)},walletRecharge:function(t){return u.a.post(p.walletRecharge,t)},walletWithdraw:function(t){return u.a.post(p.walletWithdraw,t)},rechargeWithdrawOrderIfo:function(t){return u.a.post(p.rechargeWithdrawOrderIfo,t)},payTodo:function(t){return u.a.post(p.payTodo,t)},orderInfo:function(t){return u.a.post(p.orderInfo,t)},getZyData:function(t){return u.a.post(p.searchZy,t)},getLyData:function(t){return u.a.post(p.searchLy,t)},getLyEsData:function(t){return u.a.post(p.searchLyEs,t)},supplierApi:function(t){return u.a.post(p.supplierApi,t)},goodDetail:function(t){return u.a.post(p.goodDetail,t)},defaultClass:function(t){return u.a.post(p.defaultClass,t)},addGood:function(t){return u.a.post(p.addGood,t)},cartList:function(t){return u.a.post(p.cartList,t)},cartDelete:function(t){return u.a.post(p.cartDelete,t)},allcount:function(t){return u.a.post(p.allcount,t)},confirmBehavior:function(t){return u.a.post(p.confirmBehavior,t)},changenum:function(t){return u.a.post(p.changenum,t)},getUserType:function(t){return u.a.post(p.getUserType,t)},orderCount:function(t){return u.a.post(p.orderCount,t)},getBindInfo:function(t){return u.a.post(p.getBindInfo,t)},ucouponCount:function(t){return u.a.post(p.ucouponCount,t)},ucouponLists:function(t){return u.a.post(p.ucouponLists,t)},unbindPhone:function(t){return u.a.post(p.unbindPhone,t)},logout:function(t){return u.a.post(p.logout,t)},allAddress:function(t){return u.a.post(p.allAddress,t)},changeUserInfo:function(t){return u.a.post(p.changeUserInfo,t)},brandList:function(t){return u.a.post(p.brandList,t)},brandInfo:function(t){return u.a.get(p.brandInfo,{params:f({},t)})},skuList:function(t){return u.a.post(p.skuList,t)},getlxuserrank:function(t){return u.a.post(p.getlxuserrank,t)},getfileuploadbanner:function(t){return u.a.post(p.getfileuploadbanner,t)},articleShowData:function(t){return u.a.post(p.articleShowData,t)},downloadFile:function(t){return u.a.post(p.downloadFile,t)},wxShare:function(t){return u.a.post(p.wxShare,t)},selfSampleCreate:function(t){return u.a.post(p.selfSampleCreate,t)},sampleClassList:function(t){return u.a.get(p.sampleclasslist,{params:f({},t)})},sampleList:function(t){return u.a.get(p.samplelist,{params:f({},t)})},getUserSampleInfo:function(t){return u.a.get(p.getusersampleinfo,{params:f({},t)})},getSampleInfo:function(t){return u.a.post(p.getsampleinfo,t)},showClass:function(t){return u.a.post(p.showClass,t)},aggSample:function(t){return u.a.post(p.aggSample,t)},aggs:function(t){return u.a.post(p.aggs,t)},ZiYingIndex:function(t){return u.a.post(p.ZiYingIndex,t)},getsamplebanner:function(t){return u.a.post(p.getsamplebanner,t)},oscilloscopeinvited:function(t){return u.a.post(p.invited,t)},getBannerData:function(t){return u.a.post(p.rotation,t)},yaoHaoYouJP:function(t){return u.a.post(p.yaoHaoYouJP,t)},getYaoHaoYouGoodId:function(t){return u.a.get(p.getYaoHaoYouGoodId,{params:f({},t)})}}},4260:function(t,e,a){"use strict";a("163d"),a("9e76"),a("f548"),a("c904"),a("e44b"),a("e10e"),a("6d57"),a("5f54"),a("9a33");var n=0,o=8;function i(t){return f(r(l(t),t.length*o))}function r(t,e){t[e>>5]|=128<<24-e%32,t[15+(e+64>>9<<4)]=e;for(var a=Array(80),n=1732584193,o=-271733879,i=-1732584194,r=271733878,l=-1009589776,f=0;f<t.length;f+=16){for(var g=n,h=o,m=i,p=r,_=l,b=0;b<80;b++){a[b]=b<16?t[f+b]:u(a[b-3]^a[b-8]^a[b-14]^a[b-16],1);var v=d(d(u(n,5),c(b,o,i,r)),d(d(l,a[b]),s(b)));l=r,r=i,i=u(o,30),o=n,n=v}n=d(n,g),o=d(o,h),i=d(i,m),r=d(r,p),l=d(l,_)}return Array(n,o,i,r,l)}function c(t,e,a,n){return t<20?e&a|~e&n:t<40?e^a^n:t<60?e&a|e&n|a&n:e^a^n}function s(t){return t<20?1518500249:t<40?1859775393:t<60?-1894007588:-899497514}function d(t,e){var a=(65535&t)+(65535&e),n=(t>>16)+(e>>16)+(a>>16);return n<<16|65535&a}function u(t,e){return t<<e|t>>>32-e}function l(t){for(var e=Array(),a=(1<<o)-1,n=0;n<t.length*o;n+=o)e[n>>5]|=(t.charCodeAt(n/o)&a)<<24-n%32;return e}function f(t){for(var e=n?"0123456789ABCDEF":"0123456789abcdef",a="",o=0;o<4*t.length;o++)a+=e.charAt(t[o>>2]>>8*(3-o%4)+4&15)+e.charAt(t[o>>2]>>8*(3-o%4)&15);return a}var g=a("1cfa");e["a"]={setCookie:function(t,e,a,n){n=n?";domain="+n:"";var o=a,i=new Date;return i.setTime(i.getTime()+24*o*60*60*1e3),document.cookie=t+"="+encodeURIComponent(e)+";expires="+i.toGMTString()+";path=/"+n,!0},getCookie:function(t){for(var e=document.cookie,a=e.split("; "),n=0;n<a.length;n++){var o=a[n].split("=");if(t==o[0])return o[1]}return null},delCookie:function(t){var e=new Date;e.setTime(e.getTime()-1);var a=this.getCookie(t);null!=a&&(document.cookie=t+"="+a+";expires="+e.toGMTString())},getParams:function(t){var e=this.getCookie("Yo4teW_gid"),a=this.getCookie("cache_time");if(null!=a)var n=Math.floor((new Date).getTime()/1e3);else{n=Math.floor((new Date).getTime()/1e3)+window.fwtimes;this.setCookie("cache_time",window.fwtimes,1,window.cookieHostname)}var o=[],r={},c="",s="",d="",u={pf:2,qwertyuiop:n,Yo4teW_gid:e},l=Object.assign({},u,t);Object.keys(l).forEach((function(t,e,a){o.push(t)})),o=o.sort(),o.forEach((function(t,e,a){r[o[e]]=l[o[e]]})),Object.keys(r).forEach((function(t,e,a){c+=t+"="+r[t]})),s=c.replace(/[^0-9a-zA-Z]/g,""),s=s.toUpperCase();for(var f=0;f<s.length;f++)"A"!=s[f]&&"B"!=s[f]&&"C"!=s[f]&&(d+=s[f]);c=i(d);var h=Object.assign({},t,{asdfghjkl:c},{qwertyuiop:n},{pf:2});return g.stringify(h)},isLogin:function(){var t=0;return this.getCookie("Yo4teW_uid")&&(t=2,this.getCookie("Yo4teW_skey")&&(t=1)),t},loginBack:function(){},compare:function(t,e){return function(a,n){var o=a[t],i=n[t];return e?o-i:i-o}},distinct:function(t){var e,a,n=t,o=[],i=n.length;for(e=0;e<i;e++){for(a=e+1;a<i;a++)n[e]===n[a]&&(a=++e);o.push(n[e])}return o},isUerAgent:function(){var t=navigator.userAgent,e="";return e=t.indexOf("Android")>-1||t.indexOf("Adr")>-1?"android":t.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)?"ios":"pc",e},aggxde:function(t){t=String(t);if(t&&-1!=t.indexOf("font")){var e=t.split('class="');e.shift();for(var a="",n=[["asfgdqwer","asfgdtyhg","asfgdpolk","asfgdpoqw"],["asfgdrfdf","asfgderfd","asfgdwdsa","asfgdpoer"],["asfgdasde","asfgdqwsz","asfgdrtgd","asfgdpovv"],["asfgdwsxc","asfgdwsxz","asfgdrfvb","asfgdpoee"],["asfgdqazs","asfgdqasd","asfgdqwag","asfgdpogh"],["asfgdrtyh","asfgdyutr","asfgdeews","asfgdpotg"],["asfgdpluj","asfgdikjf","asfgdesgj","asfgdpfff"],["asfgdtrdb","asfgdiksf","asfgdsgkp","asfgdprty"],["asfgdpehl","asfgdstgb","asfgderll","asfgdpokf"],["asfgdpehg","asfgdstgf","asfgderlf","asfgdpogk"]],o=0;o<e.length;o++)for(var i=e[o].split(" ")[0],r=0;r<n.length;r++)-1!=n[r].indexOf(i)&&(a+=r);return Number(a)}return Number(t)}}},"49b7":function(module,__webpack_exports__,__webpack_require__){"use strict";var core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("e44b"),core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_0__),core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("e10e"),core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_1__),core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("6d57"),core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_2__),vue__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("0261"),vant__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("0a68"),_util_index__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("4260"),_api_index__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("365c"),qs=__webpack_require__("1cfa");vue__WEBPACK_IMPORTED_MODULE_3__["a"].use(vant__WEBPACK_IMPORTED_MODULE_4__["a"]);var state={loading:!1,supplierList:[],supplierIds:"",isLyData:!1,lyData:[],isHaveData:!1},mutations={supplierApi:function supplierApi(state,payload){var datalisy=eval("("+payload.data+")");Object.keys(datalisy).forEach((function(t){state.supplierList.push({ids:t,name:datalisy[t],isCheck:!1}),state.supplierIds+=","+t})),state.supplierIds=state.supplierIds.slice(1)},searchLyEsData:function(t,e){if(e.isMore){for(var a=t.lyData||[],n=0;n<a.length;n++)if(a[n].supplier_id==e.data.supplier_id){var o=a[n].data,i=e.data.data;t.lyData[n].data=o.concat(i),t.lyData[n].p=e.p+1,t.lyData[n].updateLength=e.data.total-t.lyData[n].data.length,t.lyData[n].updateLength<=0&&(t.lyData[n].fished=!0)}}else e.data.updateLength=e.data.total-2,e.data.p=2,e.data.k=e.k,t.lyData.push(e.data)},resetData:function(t){t.lyData=[]}},actions={supplierApi:function(t,e){var a=t.commit;_api_index__WEBPACK_IMPORTED_MODULE_6__["d"].supplierApi().then((function(t){state.isLyData=!1;var e=t.data;0==e.err_code&&(state.isLyData=!0,a({type:"supplierApi",data:e.data}))}))},searchLyEsData:function(t,e){var a=t.commit;e.isMore&&(state.loading=!0);var n=_util_index__WEBPACK_IMPORTED_MODULE_5__["a"].getParams({k:e.k,p:e.p||1});_api_index__WEBPACK_IMPORTED_MODULE_6__["d"].getLyEsData(n).then((function(t){state.loading=!1;var n=t.data;0==n.error_code&&a({type:"searchLyEsData",data:n.data,isMore:e.isMore,k:e.k,p:e.p||1})}))}},getters={};__webpack_exports__["a"]={state:state,mutations:mutations,actions:actions,getters:getters}},"56d7":function(t,e,a){"use strict";a.r(e);a("5ab2");var n=a("9bef"),o=(a("e44b"),a("e10e"),a("6d57"),a("6648"),a("0b53"),a("0261")),i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"app"}},[a("keep-alive",{attrs:{exclude:"newsDetail,pointchange,wallet,walletRetrieve,walletDetail,walletRecord,walletStatus,walletWithdraw,walletRecharge,xianhuo,lxshop,brand,brandList,sampleapply,samplecominfo,samplebasinfo,risk,risksuccess,sample,addressp"}},[a("router-view",{staticClass:"router-view"})],1)],1)},r=[],c={name:"app"},s=c,d=a("9ca4"),u=Object(d["a"])(s,i,r,!1,null,null,null),l=u.exports,f=a("f753"),g=a.n(f),h=(a("cc57"),a("3f11")),m=function(t){return a.e("chunk-81b4e91a").then(function(){var e=[a("9553")];t.apply(null,e)}.bind(this)).catch(a.oe)},p=function(t){return a.e("chunk-3795b890").then(function(){var e=[a("2500")];t.apply(null,e)}.bind(this)).catch(a.oe)},_=function(t){return a.e("chunk-1f0dc545").then(function(){var e=[a("9055")];t.apply(null,e)}.bind(this)).catch(a.oe)},b=function(t){return Promise.all([a.e("chunk-a22f9470"),a.e("chunk-76d147b0")]).then(function(){var e=[a("bd04")];t.apply(null,e)}.bind(this)).catch(a.oe)},v=function(t){return Promise.all([a.e("chunk-a22f9470"),a.e("chunk-af472a0e")]).then(function(){var e=[a("2536")];t.apply(null,e)}.bind(this)).catch(a.oe)},y=function(t){return Promise.all([a.e("chunk-a22f9470"),a.e("chunk-bbb45496")]).then(function(){var e=[a("832f")];t.apply(null,e)}.bind(this)).catch(a.oe)},w=function(t){return Promise.all([a.e("chunk-2a4a33e8"),a.e("chunk-32ec94d2")]).then(function(){var e=[a("f825")];t.apply(null,e)}.bind(this)).catch(a.oe)},k=function(t){return Promise.all([a.e("chunk-2a4a33e8"),a.e("chunk-7fb2ce2c")]).then(function(){var e=[a("9c63")];t.apply(null,e)}.bind(this)).catch(a.oe)},D=function(t){return Promise.all([a.e("chunk-a22f9470"),a.e("chunk-b9590988")]).then(function(){var e=[a("c46d")];t.apply(null,e)}.bind(this)).catch(a.oe)},O=function(t){return Promise.all([a.e("chunk-a22f9470"),a.e("chunk-9a8ab3ca")]).then(function(){var e=[a("ca8b")];t.apply(null,e)}.bind(this)).catch(a.oe)},P=function(t){return Promise.all([a.e("chunk-a22f9470"),a.e("chunk-39b24832")]).then(function(){var e=[a("4835")];t.apply(null,e)}.bind(this)).catch(a.oe)},j=function(t){return Promise.all([a.e("chunk-a22f9470"),a.e("chunk-1943a952")]).then(function(){var e=[a("0224")];t.apply(null,e)}.bind(this)).catch(a.oe)},C=function(t){return Promise.all([a.e("chunk-a22f9470"),a.e("chunk-2a765010")]).then(function(){var e=[a("9646")];t.apply(null,e)}.bind(this)).catch(a.oe)},L=function(t){return a.e("chunk-003fb384").then(function(){var e=[a("ffc5")];t.apply(null,e)}.bind(this)).catch(a.oe)},S=function(t){return a.e("chunk-ad9e6894").then(function(){var e=[a("0696")];t.apply(null,e)}.bind(this)).catch(a.oe)},I=function(t){return Promise.all([a.e("chunk-a22f9470"),a.e("chunk-60950cc8")]).then(function(){var e=[a("7526")];t.apply(null,e)}.bind(this)).catch(a.oe)},A=function(t){return Promise.all([a.e("chunk-a22f9470"),a.e("chunk-1f5ab15f")]).then(function(){var e=[a("e175")];t.apply(null,e)}.bind(this)).catch(a.oe)},x=function(t){return Promise.all([a.e("chunk-a22f9470"),a.e("chunk-1401b758")]).then(function(){var e=[a("51d9")];t.apply(null,e)}.bind(this)).catch(a.oe)},E=function(t){return Promise.all([a.e("chunk-a22f9470"),a.e("chunk-cf36f306")]).then(function(){var e=[a("f9f6")];t.apply(null,e)}.bind(this)).catch(a.oe)},T=function(t){return Promise.all([a.e("chunk-a22f9470"),a.e("chunk-39faa2a4")]).then(function(){var e=[a("bdad")];t.apply(null,e)}.bind(this)).catch(a.oe)},z=function(t){return Promise.all([a.e("chunk-a22f9470"),a.e("chunk-cdd96bb8")]).then(function(){var e=[a("6a6c")];t.apply(null,e)}.bind(this)).catch(a.oe)},U=function(t){return Promise.all([a.e("chunk-a22f9470"),a.e("chunk-398241fe")]).then(function(){var e=[a("c96d")];t.apply(null,e)}.bind(this)).catch(a.oe)},M=function(t){return Promise.all([a.e("chunk-a22f9470"),a.e("chunk-7d7870ef")]).then(function(){var e=[a("a34f")];t.apply(null,e)}.bind(this)).catch(a.oe)},W=function(t){return Promise.all([a.e("chunk-a22f9470"),a.e("chunk-3c097c09"),a.e("chunk-4044944a")]).then(function(){var e=[a("a619")];t.apply(null,e)}.bind(this)).catch(a.oe)},B=function(t){return Promise.all([a.e("chunk-a22f9470"),a.e("chunk-5dc4ca1f")]).then(function(){var e=[a("10b5")];t.apply(null,e)}.bind(this)).catch(a.oe)},R=function(t){return Promise.all([a.e("chunk-a22f9470"),a.e("chunk-3c097c09"),a.e("chunk-24add2e0")]).then(function(){var e=[a("2d18")];t.apply(null,e)}.bind(this)).catch(a.oe)},F=function(t){return Promise.all([a.e("chunk-a22f9470"),a.e("chunk-a27f09fe")]).then(function(){var e=[a("4c69")];t.apply(null,e)}.bind(this)).catch(a.oe)},Y=function(t){return Promise.all([a.e("chunk-a22f9470"),a.e("chunk-30f776c2")]).then(function(){var e=[a("a179")];t.apply(null,e)}.bind(this)).catch(a.oe)},q=function(t){return Promise.all([a.e("chunk-a22f9470"),a.e("chunk-2aa1802a")]).then(function(){var e=[a("82d7")];t.apply(null,e)}.bind(this)).catch(a.oe)},V=function(t){return Promise.all([a.e("chunk-a22f9470"),a.e("chunk-29823840"),a.e("chunk-65512df9")]).then(function(){var e=[a("3fa7")];t.apply(null,e)}.bind(this)).catch(a.oe)},G=function(t){return Promise.all([a.e("chunk-a22f9470"),a.e("chunk-29823840"),a.e("chunk-d040a468")]).then(function(){var e=[a("c80a")];t.apply(null,e)}.bind(this)).catch(a.oe)},N=function(t){return Promise.all([a.e("chunk-a22f9470"),a.e("chunk-34530264")]).then(function(){var e=[a("b365")];t.apply(null,e)}.bind(this)).catch(a.oe)},K=function(t){return a.e("chunk-1e656f57").then(function(){var e=[a("e382")];t.apply(null,e)}.bind(this)).catch(a.oe)},H=function(t){return Promise.all([a.e("chunk-a22f9470"),a.e("chunk-839b1e56")]).then(function(){var e=[a("f10b")];t.apply(null,e)}.bind(this)).catch(a.oe)},Z=function(t){return Promise.all([a.e("chunk-a22f9470"),a.e("chunk-3bb45ba4")]).then(function(){var e=[a("3a6c")];t.apply(null,e)}.bind(this)).catch(a.oe)},J=function(t){return Promise.all([a.e("chunk-a22f9470"),a.e("chunk-0c9bf163")]).then(function(){var e=[a("cc18")];t.apply(null,e)}.bind(this)).catch(a.oe)},$=function(t){return Promise.all([a.e("chunk-a22f9470"),a.e("chunk-69b10b86")]).then(function(){var e=[a("be26")];t.apply(null,e)}.bind(this)).catch(a.oe)},X=function(t){return Promise.all([a.e("chunk-a22f9470"),a.e("chunk-29823840"),a.e("chunk-470ba04a")]).then(function(){var e=[a("7683")];t.apply(null,e)}.bind(this)).catch(a.oe)},Q=function(t){return a.e("chunk-084e7fbd").then(function(){var e=[a("cc7e")];t.apply(null,e)}.bind(this)).catch(a.oe)},tt=function(t){return Promise.all([a.e("chunk-a22f9470"),a.e("chunk-fad0077e")]).then(function(){var e=[a("1300")];t.apply(null,e)}.bind(this)).catch(a.oe)},et=function(t){return Promise.all([a.e("chunk-a22f9470"),a.e("chunk-f38b08f0")]).then(function(){var e=[a("2a15")];t.apply(null,e)}.bind(this)).catch(a.oe)},at=function(t){return Promise.all([a.e("chunk-a22f9470"),a.e("chunk-783f1fe8")]).then(function(){var e=[a("ba1b")];t.apply(null,e)}.bind(this)).catch(a.oe)},nt=function(t){return Promise.all([a.e("chunk-a22f9470"),a.e("chunk-503d2a1d")]).then(function(){var e=[a("869c")];t.apply(null,e)}.bind(this)).catch(a.oe)},ot=function(t){return Promise.all([a.e("chunk-a22f9470"),a.e("chunk-1c926693")]).then(function(){var e=[a("b7aa")];t.apply(null,e)}.bind(this)).catch(a.oe)},it=function(t){return a.e("chunk-324f0d94").then(function(){var e=[a("36c2")];t.apply(null,e)}.bind(this)).catch(a.oe)},rt=function(t){return a.e("chunk-5bb10935").then(function(){var e=[a("a5d4")];t.apply(null,e)}.bind(this)).catch(a.oe)},ct=function(t){return a.e("chunk-cab1310e").then(function(){var e=[a("72c1")];t.apply(null,e)}.bind(this)).catch(a.oe)},st=function(t){return Promise.all([a.e("chunk-a22f9470"),a.e("chunk-378fe7a6")]).then(function(){var e=[a("558e")];t.apply(null,e)}.bind(this)).catch(a.oe)};o["a"].use(h["a"]);var dt=[{path:"/",component:m,meta:{title:"猎芯网 - 电子元器件_ic交易网_电子元件/元器件批发采购网上商城平台"}},{path:"/smt",component:p,meta:{title:"SMT打样"}},{path:"/supplier",component:_,meta:{title:"猎芯网,猎芯网供应商,猎芯网合作伙伴,电子元器件采购,电子元器件商城,IC采购网"}},{path:"/wxlist",name:"Wxlist",component:b,meta:{title:"猎芯网"}},{path:"/news",name:"News",component:v,meta:{title:"猎芯网-新闻列表"}},{path:"/seo",name:"Seo",component:w,meta:{title:"猎芯网——京东战投元器件商城"}},{path:"/findthing",name:"Findthing",component:k,meta:{title:"猎芯网——快速找料"}},{path:"/pointmall",name:"Pointmall",component:D,meta:{title:"积分商城"}},{path:"/pointchange",name:"Pointchange",component:j,meta:{title:"兑换成功",back:!0}},{path:"/exchange",component:P,meta:{title:"兑换记录",back:!0}},{path:"/point",component:O,meta:{title:"积分明细",back:!0}},{path:"/pointrule",component:C,meta:{title:"积分规则"}},{path:"/chain",component:S,meta:{title:"猎芯供应链有限公司_专业IC电子元器件进口报关服务商"}},{path:"/news/detail/:art_id/:cat_id",name:"NewsDetail",component:y,meta:{title:"猎芯网-新闻详情"}},{path:"/aboutUs",name:"aboutUs",component:L,meta:{title:"关于我们"}},{path:"/wallet",component:I,meta:{title:"猎芯网-我的钱包"}},{path:"/wallet/status",component:A,meta:{title:"猎芯网-钱包状态"}},{path:"/wallet/activate",component:x,meta:{title:"猎芯网-激活钱包"}},{path:"/wallet/recharge",component:E,meta:{title:"猎芯网-钱包充值"}},{path:"/wallet/verify",component:T,meta:{title:"猎芯网-验证身份"}},{path:"/wallet/bind",component:z,meta:{title:"猎芯网-绑定银行账号"}},{path:"/wallet/withdraw",component:U,meta:{title:"猎芯网-钱包提现"}},{path:"/wallet/question",component:M,meta:{title:"猎芯网-常见问题"}},{path:"/wallet/walletdetail",component:W,meta:{title:"猎芯网-钱包明细"}},{path:"/wallet/accountdetail",component:B,meta:{title:"猎芯网-账单详情"}},{path:"/wallet/record",component:R,meta:{title:"猎芯网-充值提现记录"}},{path:"/wallet/withdrawdetail",component:F,meta:{title:"猎芯网-充值提现详情"}},{path:"/wallet/retrieve",component:Y,meta:{title:"猎芯网-找回密码"}},{path:"/wallet/cashier",component:q,meta:{title:"猎芯网-收银台"}},{path:"/product",component:V,meta:{title:"猎芯自营"}},{path:"/lxshop",component:G,meta:{title:"猎芯联营"}},{path:"/joincart",component:N,meta:{title:"购物车"}},{path:"/user",component:K,meta:{title:"会员中心首页",back:!0}},{path:"/userInfo",component:H,meta:{title:"基本信息",back:!0}},{path:"/userAddress",component:J,meta:{title:"收货地址",back:!0}},{path:"/userCoupon",component:Z,meta:{title:"优惠劵",back:!0}},{path:"/brand",component:$,meta:{title:"品牌分类"}},{path:"/brandList/:brand_id",component:X,name:"brandList",meta:{title:"品牌列表"}},{path:"/ranking",component:Q,meta:{title:"猎芯网-京东战投电子元器件商城_一站式解决电子元器件采购难题"}},{path:"/download",component:tt,meta:{title:"资料下载"}},{path:"/sample",component:et,meta:{title:"猎芯网-自营样片"}},{path:"/samplecominfo",component:at,meta:{title:"公司信息填写"}},{path:"/samplebasinfo",component:nt,meta:{title:"基础信息填写"}},{path:"/sampleapply",name:"sampleapply",component:ot,meta:{title:"样片申请",back:!0}},{path:"/oscilloscope",name:"oscilloscope",component:st,meta:{title:"示波器",back:!0}},{path:"/creditest",component:rt,meta:{title:"IC信用贷"}},{path:"/creditestsuccess",component:ct,meta:{title:"IC信用贷"}},{path:"/special",name:"special",component:it,meta:{title:""}},{path:"*",redirect:"/"}];dt.forEach((function(t){t.path=t.path||"/"+(t.name||"")}));var ut=new h["a"]({routes:dt,scrollBehavior:function(t,e,a){return{x:0,y:0}}}),lt=a("9f3a"),ft=a("0a68"),gt=a("365c"),ht=a("4260"),mt=a("1cfa");o["a"].use(ft["a"]);var pt={walletInfoData:{},verifyShowImgCode:!1,verifyCountDownFlag:!1,activateShowImgCode:!1,activateCountDownFlag:!1,retieveShowImgCode:!1,retieveCountDownFlag:!1,passwordToken:"",walletListData:[],walletRecordData:[],bankPasswordToken:"",bankCountDownFlag:!1,bindBankKey:"",bindBankData:"",amountRechargeID:"",amountWithdrawID:"",rechargeWithdrawOrderDetail:[],orderInfoData:[],amountWithdrawFlag:!1},_t={getWalletInfo:function(t,e){t.walletInfoData=e.data},sendSafesms:function(t,e){t.verifyShowImgCode=!e.verifyCountDownFlag,t.verifyCountDownFlag=e.verifyCountDownFlag},smsVerifyActivate:function(t,e){t.activateShowImgCode=!e.activateCountDownFlag,t.activateCountDownFlag=e.activateCountDownFlag},smsVerifyRetrieve:function(t,e){t.retieveShowImgCode=!e.retieveCountDownFlag,t.retieveCountDownFlag=e.retieveCountDownFlag},verifyResetsms:function(t,e){t.passwordToken=e.data},walletListLog:function(t,e){t.walletListData=e.data},walletRecordList:function(t,e){t.walletRecordData=e.data},verifySafeMobile:function(t,e){t.bankPasswordToken=e.data,ht["a"].setCookie("bankPasswordToken",e.data,1)},getBindBankmsg:function(t,e){t.bankCountDownFlag=e.bankCountDownFlag,t.bindBankKey=e.data.access_key,t.bindBankData=e.data.access_data},walletRecharge:function(t,e){t.amountRechargeID=e.data},walletWithdraw:function(t,e){},rechargeWithdrawOrderIfo:function(t,e){t.rechargeWithdrawOrderDetail=e.data},payTodo:function(t,e){t.rechargeWithdrawOrderDetail=e.data},orderInfo:function(t,e){t.orderInfoData=e.data}},bt={getWalletInfo:function(t,e){var a=t.commit,n={};gt["d"].getWalletInfo(mt.stringify(n)).then((function(t){var e=t.data;0==e.err_code&&a({type:"getWalletInfo",data:e.data})})).catch((function(t){}))},smsVerifyActivate:function(t,e){var a=t.commit;ft["a"].loading({message:"处理中..."});var n={mobile:e.mobile,verify:e.imgCode,channel:3};gt["d"].smsVerify(mt.stringify(n)).then((function(t){var e=t.data;0==e.err_code?(Object(ft["a"])({message:e.err_msg,duration:2e3}),a({type:"smsVerifyActivate",activateCountDownFlag:!0})):10001==e.err_code||10002==e.err_code?(Object(ft["a"])({message:e.err_msg,duration:2e3}),a({type:"smsVerifyActivate",activateCountDownFlag:!1})):Object(ft["a"])({message:e.err_msg,duration:3e3})})).catch((function(t){ft["a"].clear()}))},activateWallet:function(t,e){t.commit;var a={intl_code:"",safe_mobile:e.mobile,verify_code:e.verifyCode,pay_password:e.password,reconfirm:e.passwordConfirm};gt["d"].activateWallet(mt.stringify(a)).then((function(t){var a=t.data;0==a.err_code?(Object(ft["a"])({message:a.err_msg,duration:2e3}),e.referer?setTimeout((function(){window.location.href=e.referer}),2e3):setTimeout((function(){window.location.href="/h5/view/#/wallet"}),2e3)):(Object(ft["a"])({message:a.err_msg,duration:2e3}),setTimeout((function(){window.location.href="/h5/view/#/wallet/activate"}),2e3))})).catch((function(t){}))},sendSafesms:function(t,e){var a=t.commit;ft["a"].loading({message:"处理中..."});var n={verify:e.imgCode,channel:3};gt["d"].sendSafesms(mt.stringify(n)).then((function(t){var e=t.data;0==e.err_code?(Object(ft["a"])({message:e.err_msg,duration:2e3}),a({type:"sendSafesms",verifyCountDownFlag:!0})):23019==e.err_code||10001==e.err_code?(Object(ft["a"])({message:e.err_msg,duration:2e3}),a({type:"sendSafesms",verifyCountDownFlag:!1})):Object(ft["a"])({message:e.err_msg,duration:3e3})})).catch((function(t){ft["a"].clear()}))},smsVerifyRetrieve:function(t,e){var a=t.commit;ft["a"].loading({message:"处理中..."});var n={verify:e.imgCode,channel:3};gt["d"].sendSafesms(mt.stringify(n)).then((function(t){var e=t.data;0==e.err_code?(Object(ft["a"])({message:e.err_msg,duration:2e3}),a({type:"smsVerifyRetrieve",retieveCountDownFlag:!0})):23019==e.err_code||10001==e.err_code?(Object(ft["a"])({message:e.err_msg,duration:2e3}),a({type:"smsVerifyRetrieve",retieveCountDownFlag:!1})):Object(ft["a"])({message:e.err_msg,duration:3e3})})).catch((function(t){ft["a"].clear()}))},verifyResetsms:function(t,e){var a=t.commit,n={verify_code:e.verify_code};gt["d"].verifyResetsms(mt.stringify(n)).then((function(t){var e=t.data;0==e.err_code?(Object(ft["a"])({message:e.err_msg,duration:2e3}),a({type:"verifyResetsms",data:e.data})):Object(ft["a"])({message:e.err_msg,duration:3e3})})).catch((function(t){}))},changeWalletpwd:function(t,e){t.commit;var a={token:e.token,pay_password:e.pay_password,reconfirm:e.reconfirm,mode:e.mode};gt["d"].changeWalletpwd(mt.stringify(a)).then((function(t){var e=t.data;0==e.err_code?(Object(ft["a"])({message:e.err_msg,duration:2e3}),setTimeout((function(){window.location.href="/h5/view/#/wallet"}),2e3)):Object(ft["a"])({message:e.err_msg,duration:3e3})})).catch((function(t){}))},walletListLog:function(t,e){var a=t.commit;ft["a"].loading({message:"加载中..."});var n={log_type:e.log_type,stime:e.stime,etime:e.etime};gt["d"].walletListLog(mt.stringify(n)).then((function(t){var e=t.data;0==e.err_code?(a({type:"walletListLog",data:e.data.list}),ft["a"].clear()):Object(ft["a"])({message:e.err_msg,duration:3e3})})).catch((function(t){ft["a"].clear()}))},walletRecordList:function(t,e){var a=t.commit;ft["a"].loading({message:"加载中..."});var n={wallet_type:e.wallet_type,stime:e.stime,etime:e.etime};gt["d"].walletRecordList(mt.stringify(n)).then((function(t){var e=t.data;0==e.err_code?(a({type:"walletRecordList",data:e.data.list}),ft["a"].clear()):Object(ft["a"])({message:e.err_msg,duration:3e3})})).catch((function(t){ft["a"].clear()}))},verifySafeMobile:function(t,e){var a=t.commit,n={verify_code:e.verify_code,pay_password:e.pay_password};gt["d"].verifySafeMobile(mt.stringify(n)).then((function(t){var e=t.data;ft["a"].loading({message:"处理中..."}),0==e.err_code?(Object(ft["a"])({message:e.err_msg,duration:2e3}),a({type:"verifySafeMobile",data:e.data}),setTimeout((function(){window.location.href="/h5/view/#/wallet/bind"}),2e3)):11030==e.err_code?(Object(ft["a"])({message:e.err_msg,duration:2e3}),setTimeout((function(){window.location.href="/h5/view/#/"}),2e3)):Object(ft["a"])({message:e.err_msg,duration:2e3})})).catch((function(t){ft["a"].clear()}))},getBindBankmsg:function(t,e){var a=t.commit,n={bank_user:e.bank_user,bank_id:e.bank_id,bank_account:e.bank_account,id_type:e.id_type,id_number:e.id_number,account_type:e.account_type,mobile:e.mobile,channel:3};gt["d"].getBindBankmsg(mt.stringify(n)).then((function(t){var e=t.data;0==e.err_code?(Object(ft["a"])({message:e.err_msg,duration:2e3}),a({type:"getBindBankmsg",bankCountDownFlag:!0,data:e.data})):Object(ft["a"])({message:e.err_msg,duration:3e3})})).catch((function(t){}))},bindBankCard:function(t,e){t.commit;ft["a"].loading({message:"处理中..."});var a={token:e.token,wallet_bank_id:e.wallet_bank_id,sms_code:e.sms_code,access_key:e.access_key,access_data:e.access_data};gt["d"].bindBankCard(mt.stringify(a)).then((function(t){var e=t.data;0==e.err_code?(Object(ft["a"])({message:e.err_msg,duration:2e3}),setTimeout((function(){window.location.href="/h5/view/#/wallet"}),2e3)):Object(ft["a"])({message:e.err_msg,duration:3e3})})).catch((function(t){ft["a"].clear()}))},walletRecharge:function(t,e){var a=t.commit,n={amount:e.amount};e.order_id&&(n.order_id=e.order_id),gt["d"].walletRecharge(mt.stringify(n)).then((function(t){var e=t.data;0==e.err_code?a({type:"walletRecharge",data:e.data}):Object(ft["a"])({message:e.err_msg,duration:3e3})})).catch((function(t){}))},walletWithdraw:function(t,e){t.commit;var a={amount:e.amount,pay_password:e.pay_password};ft["a"].loading({message:"处理中..."}),pt.amountWithdrawFlag=!0,gt["d"].walletWithdraw(mt.stringify(a)).then((function(t){var e=t.data;0==e.err_code?(Object(ft["a"])({message:"提现申请成功,预计1个工作日后到账,节假日顺延,请耐心等待",duration:2e3}),setTimeout((function(){pt.amountWithdrawFlag=!1,window.location.href="/h5/view/#/wallet/record"}),2e3)):(Object(ft["a"])({message:e.err_msg,duration:2e3}),setTimeout((function(){pt.amountWithdrawFlag=!1}),2e3))})).catch((function(t){ft["a"].clear()}))},rechargeWithdrawOrderIfo:function(t,e){var a=t.commit,n={wallet_id:e.wallet_id};gt["d"].rechargeWithdrawOrderIfo(mt.stringify(n)).then((function(t){var e=t.data;0==e.err_code?(Object(ft["a"])({message:e.err_msg,duration:2e3}),a({type:"rechargeWithdrawOrderIfo",data:e.data})):Object(ft["a"])({message:e.err_msg,duration:3e3})})).catch((function(t){}))},payTodo:function(t,e){t.commit;var a={pay_code:e.pay_code,rescue:e.rescue,types:e.types,site_type:e.site_type,order_id:e.order_id};gt["d"].payTodo(mt.stringify(a)).then((function(t){var e=t.data;0==e.err_code?is_miniProgram()?wx.requestPayment(e.data):window.location.href=e.data:Object(ft["a"])({message:e.err_msg,duration:3e3})})).catch((function(t){}))},orderInfo:function(t,e){var a=t.commit,n={order_id:e.order_id};gt["d"].orderInfo(mt.stringify(n)).then((function(t){var e=t.data;0==e.err_code?a({type:"orderInfo",data:e.data}):Object(ft["a"])({message:e.err_msg,duration:3e3})})).catch((function(t){}))},walletPayTodo:function(t,e){t.commit;var a={pay_code:e.pay_code,pay_password:e.pay_password,types:e.types,order_id:e.order_id,site_type:e.site_type};gt["d"].payTodo(mt.stringify(a)).then((function(t){var a=t.data;0==a.err_code?setTimeout((function(){window.location.href="/v3/pay/success?order_id="+e.order_id+"&types="+(e.types||0)}),2e3):Object(ft["a"])({message:a.err_msg,duration:3e3})})).catch((function(t){}))}},vt={},yt={state:pt,mutations:_t,actions:bt,getters:vt};o["a"].use(ft["a"]);var wt={index:{},loading:!0},kt={index:function(t,e){t.index=e.data}},Dt={index:function(t,e){var a=t.commit;wt.loading=!0;var n=ht["a"].getParams();gt["d"].index(n).then((function(t){var e=t.data;wt.loading=!1,0==e.err_code?a({type:"index",data:e.data}):2==e.err_code&&Object(ft["a"])({message:"非常抱歉,当前客户端时间与服务器时间不一致,请校准您的时间",duration:3e3})})).catch((function(t){wt.loading=!1}))}},Ot={},Pt={state:wt,mutations:kt,actions:Dt,getters:Ot};o["a"].use(ft["a"]);var jt={cartCount:0,loginCheck:!1,phpParams:{},wxShareInfo:"",wxShareState:""},Ct={cartCount:function(t,e){t.cartCount=e.data?e.data:0},loginCheck:function(t,e){0==e.data.err_code||11030==e.data.err_code?t.loginCheck=!0:t.loginCheck=!1},phpParams:function(t,e){t.phpParams=e.data.data}},Lt={cartCount:function(t,e){var a=t.commit;gt["d"].cartCount().then((function(t){var e=t.data;0==e.err_code&&a({type:"cartCount",data:e.data})})).catch((function(t){}))},loginCheck:function(t,e){var a=t.commit;gt["d"].loginCheck().then((function(t){var n=t.data;e.is_jump?11010==n.err_code?window.location.href="/h5/view/":11030==n.err_code&&(window.location.href="/v3/login"):a({type:"loginCheck",data:n})})).catch((function(t){}))},customsrService:function(t,e){t.commit;var a={pf:window.lxpf,searchModel:""};gt["d"].customsrService(a).then((function(t){})).catch((function(t){}))},getCommonParams:function(t,e){var a=t.commit,n=ht["a"].getParams();gt["d"].getCommonParams(n).then((function(t){var e=t.data;a({type:"phpParams",data:e})})).catch((function(t){}))},wxShare:function(t,e){t.commit;var a={current_url:e.current_url},n=ht["a"].getParams(a);gt["d"].wxShare(n).then((function(t){var e=t.data;jt.wxShareInfo=e.data,jt.wxShareState=(new Date).getTime()+Math.random()})).catch((function(t){}))}},St={},It={state:jt,mutations:Ct,actions:Lt,getters:St},At=a("1cfa");o["a"].use(ft["a"]);var xt={loading:!1,formCodeStatus:!1,formImgShow:!1},Et={index:function(t,e){t.index=e.data}},Tt={checkAccountExists:function(t,e){t.commit;xt.loading=!0;var a={type:2,account:e.account};gt["d"].checkAccountExists(At.stringify(a)).then((function(t){var e=t.data;xt.loading=!1,0!=e.err_code&&Object(ft["a"])({message:"该手机号尚未注册,我们将为您自动生成猎芯网帐号",duration:3e3})})).catch((function(t){xt.loading=!1}))},customSmsVerify:function(t,e){t.commit;xt.loading=!0,xt.formCodeStatus=!1;var a={channel:0,verify:e.verify,mobile:e.mobile};gt["d"].customSmsVerify(At.stringify(a)).then((function(t){var e=t.data;xt.loading=!1,0==e.err_code?(xt.formCodeStatus=!0,Object(ft["a"])({message:e.err_msg,duration:2e3})):10001==e.err_code||10002==e.err_code?(Object(ft["a"])({message:e.err_msg,duration:2e3}),xt["formImgShow"]=!0):Object(ft["a"])({message:e.err_msg,duration:3e3})})).catch((function(t){xt.loading=!1}))},chainFind:function(t,e){t.commit;if(xt.loading=!0,2==e.types)var a={type:2,mobile:e.mobile,linkName:e.linkName,verifyCode:e.verifyCode,com_name:e.com_name,main_brand:e.main_brand,supplier_type:e.supplier_type};else if(3==e.types)a={type:3,mobile:e.mobile,linkName:e.linkName,verifyCode:e.verifyCode};gt["d"].chainFind(At.stringify(a)).then((function(t){var a=t.data;xt.loading=!1,1==a.errcode?Object(ft["a"])({message:a.errmsg,duration:3e3}):2==a.errcode?(Object(ft["a"])({message:"已为您自动创建的猎芯网登录账号为"+e.mobile+"请使用免密码登录",duration:3e3}),setTimeout((function(){window.location.reload()}),3e3)):(Object(ft["a"])({message:"您已经提交成功,我们将会在2个工作日内联系您",duration:3e3}),setTimeout((function(){window.location.reload()}),3e3))})).catch((function(t){xt.loading=!1,Object(ft["a"])({message:"网络出现问题,请重试",duration:3e3})}))}},zt={},Ut={state:xt,mutations:Et,actions:Tt,getters:zt},Mt=a("1cfa");o["a"].use(ft["a"]);var Wt={loadStatus:!1,wechatArticle:{},wechatArticleList:[],finished:!1,limits:1},Bt={wechatArticle:function(t,e){t.wechatArticle=e.data,t.wechatArticleList=t.wechatArticleList.concat(e.data.list),t.limits=Math.ceil(e.data.total/6),e.page>=t.limits&&(t.finished=!0)}},Rt={wechatArticle:function(t,e){var a=t.commit;Wt.loadStatus=!0;var n={type_id:e.type_id,page:e.page,limit:e.limit};gt["d"].wechatArticle(Mt.stringify(n)).then((function(t){var n=t.data;Wt.loadStatus=!1,0==n.err_code&&a({type:"wechatArticle",data:n.data,page:e.page,limit:e.limit})})).catch((function(t){Wt.loadStatus=!1}))}},Ft={},Yt={state:Wt,mutations:Bt,actions:Rt,getters:Ft},qt=(a("163d"),a("1cfa"));o["a"].use(ft["a"]);var Vt={finished:!1,loadStatus:!1,cat_list:[],content_list:[],rollbanner:[],p:1,limit:10,totalLimit:0},Gt={newsArticle:function(t,e){t.rollbanner=e.data.rollbanner,t.cat_list=e.data.cat_list,1==t.p?t.content_list=e.data.content_list:t.content_list=t.content_list.concat(e.data.content_list),t.totalLimit=Math.ceil(Number(e.data.tatol_num)/t.limit),t.p>=t.totalLimit?t.finished=!0:t.finished=!1}},Nt={newsArticle:function(t,e){var a=t.commit;Vt.loadStatus=!0;var n={cat_id:e.cat_id,p:e.p,limit:e.limit};Vt.p=e.p,Vt.limit=e.limit,gt["d"].newsArticle(qt.stringify(n)).then((function(t){var e=t.data;Vt.loadStatus=!1,0==e.err_code&&a({type:"newsArticle",data:e.data})})).catch((function(t){Vt.loadStatus=!1}))}},Kt={},Ht={state:Vt,mutations:Gt,actions:Nt,getters:Kt},Zt=a("1cfa");o["a"].use(ft["a"]);var Jt={loadStatus:!1,newsDetailObj:{},newsDetailAd:{}},$t={newsArticleDetail:function(t,e){t.newsDetailObj=e.data},newsArticleDetailAd:function(t,e){t.newsDetailAd=e.data,ht["a"].getCookie("newsdetailpop")?t.newsDetailAd.h5_news_ad_pop="":ht["a"].setCookie("newsdetailpop","1",1)}},Xt={newsArticleDetail:function(t,e){var a=t.commit;Jt.newsDetailObj={},Jt.loadStatus=!0;var n={art_id:e.art_id};gt["d"].newsArticleDetail(Zt.stringify(n)).then((function(t){Jt.loadStatus=!1;var e=t.data;0==e.err_code&&a({type:"newsArticleDetail",data:e.data})})).catch((function(t){Jt.loadStatus=!1}))},newsArticleDetailAd:function(t,e){var a=t.commit,n={cat_id:e.cat_id},o=ht["a"].getParams(n);gt["d"].newsArticleDetailAd(o).then((function(t){var e=t.data;0==e.err_code&&a({type:"newsArticleDetailAd",data:e.data})})).catch((function(t){}))}},Qt={},te={state:Jt,mutations:$t,actions:Xt,getters:Qt},ee=a("1cfa");o["a"].use(ft["a"]);var ae={loading:!1,form1ImgShow:!1,form2ImgShow:!1,form1CodeStatus:!1,form2CodeStatus:!1,isRegLogin:!1},ne={smsVerify:function(t,e){}},oe={smsVerify:function(t,e){var a=t.commit;ae.form1CodeStatus=!1,ae.loading=!0;var n={mobile:e.mobile,verify:e.verify,channel:1};gt["d"].smsVerify(ee.stringify(n)).then((function(t){var n=t.data;ae.loading=!1;var o="form2"==e.types?"form2":"form1";ae[o+"ImgShow"]=!1,0==n.err_code?(Object(ft["a"])({message:n.err_msg,duration:2e3}),ae[o+"CodeStatus"]=!0,a({type:"smsVerify",data:n.data})):10001==n.err_code||10002==n.err_code?(Object(ft["a"])({message:n.err_msg,duration:2e3}),ae[o+"ImgShow"]=!0):Object(ft["a"])({message:n.err_msg,duration:3e3})})).catch((function(t){ae.loading=!1}))},actionLogin:function(t,e){var a=t.commit;ae.loading=!0,ae.isRegLogin=!1;var n={account:e.account,sms_verify:e.sms_verify};gt["d"].actionLogin(ee.stringify(n)).then((function(t){var n=t.data;if(ae.loading=!1,0==n.err_code){if("form1"==e.form_name)return Object(ft["a"])({message:"提交成功",duration:2e3}),void setTimeout((function(){window.location.href="/"}),2e3);ae.isRegLogin=!0,a({type:"actionLogin",data:n.data})}else Object(ft["a"])({message:n.err_msg,duration:3e3})})).catch((function(t){ae.loading=!1}))},feedback:function(t,e){var a=t.commit;ae.loading=!0;var n={type:e.types,content:e.content,mobile:e.mobile,source:window.location.href};gt["d"].feedback(ee.stringify(n)).then((function(t){var e=t.data;ae.loading=!1,0==e.err_code?(Object(ft["a"])({message:"需求已提交成功,客服人员会尽快与您联系",duration:3e3}),setTimeout((function(){window.location.href="/"}),3e3),a({type:"feedback",data:e.data})):Object(ft["a"])({message:e.err_msg,duration:3e3})})).catch((function(t){ae.loading=!1}))}},ie={},re={state:ae,mutations:ne,actions:oe,getters:ie},ce=a("1cfa");o["a"].use(ft["a"]);var se={loading:!1,form1ImgShow:!1,form1CodeStatus:!1,isRegLogin:!1},de={},ue={smsVerify1:function(t,e){var a=t.commit;se.form1CodeStatus=!1,se.loading=!0;var n={mobile:e.mobile,verify:e.verify,channel:1};gt["d"].smsVerify(ce.stringify(n)).then((function(t){var e=t.data;se.loading=!1,se["form1ImgShow"]=!1,0==e.err_code?(Object(ft["a"])({message:e.err_msg,duration:2e3}),se["form1CodeStatus"]=!0,a({type:"smsVerify",data:e.data})):10001==e.err_code||10002==e.err_code?(Object(ft["a"])({message:e.err_msg,duration:2e3}),se["form1ImgShow"]=!0):Object(ft["a"])({message:e.err_msg,duration:3e3})})).catch((function(t){se.loading=!1}))},actionLogin1:function(t,e){var a=t.commit;se.loading=!0,se.isRegLogin=!1;var n={account:e.account,sms_verify:e.sms_verify};gt["d"].actionLogin(ce.stringify(n)).then((function(t){var e=t.data;se.loading=!1,0==e.err_code?(se.isRegLogin=!0,a({type:"actionLogin",data:e.data})):Object(ft["a"])({message:e.err_msg,duration:3e3})})).catch((function(t){se.loading=!1}))},feedback1:function(t,e){var a=t.commit;se.loading=!0;var n={type:e.types,content:e.content,mobile:e.mobile,source:window.location.href};gt["d"].feedback(ce.stringify(n)).then((function(t){var e=t.data;se.loading=!1,0==e.err_code?(Object(ft["a"])({message:"需求已提交成功,客服人员会尽快与您联系",duration:3e3}),setTimeout((function(){window.location.href="/"}),3e3),a({type:"feedback",data:e.data})):Object(ft["a"])({message:e.err_msg,duration:3e3})})).catch((function(t){se.loading=!1}))}},le={},fe={state:se,mutations:de,actions:ue,getters:le},ge=(a("c904"),a("f548"),a("1cfa"));o["a"].use(ft["a"]);var he={loginUrl:"/v3/login?referer="+encodeURIComponent(window.location.href),userInfo:"",loading:!1,getUserCurrentPoint:0,isSignInToday:!1,isSignInTodayStateGo:!1,checkInfoState:!1,navlist:[],listdata:[]},me={getPointPrize:function(t,e){var a=e.data||[];if(a.length>0){for(var n=[],o=[],i=[],r=[],c=0;c<a.length;c++)n.push(a[c]["prize_type"]),r.push(a[c]["prize_sort"]),o.push(a[c]["prize_type_text"].replace(/\s/g,""));n=ht["a"].distinct(n),o=ht["a"].distinct(o),r=ht["a"].distinct(r);for(var s=0;s<n.length;s++)i.push({prise_type:n[s],prise_type_text:o[s],prize_sort:r[s]});i=i.sort(ht["a"].compare("prise_type",1)),t.navlist=i,t.listdata=a}}},pe={getPointPrize:function(t,e){var a=t.commit;he.loading=!0;var n={limit:1e3};gt["d"].getPointPrize(ge.stringify(n)).then((function(t){he.loading=!1;var e=t.data;0==e.errcode&&a({type:"getPointPrize",data:e.data.data})})).catch((function(t){he.loading=!1}))},loginCheckp:function(t,e){t.commit;gt["d"].loginCheck().then((function(t){var e=t.data;0!=e.err_code&&11030!=e.err_code||(he.userInfo=e.data)}))},getUserCurrentPoint:function(t,e){t.commit;var a={user_id:ht["a"].getCookie("Yo4teW_uid")};gt["d"].getUserCurrentPoint(ge.stringify(a)).then((function(t){var e=t.data;0==e.errcode&&(he.getUserCurrentPoint=e.data)}))},isSignInToday:function(t,e){t.commit;gt["d"].isSignInToday().then((function(t){var e=t.data;0==e.err_code&&(he.isSignInToday=e.data)}))},signIn:function(t,e){t.commit;he.loading=!0,gt["d"].signIn().then((function(t){he.loading=!1;var e=t.data;0==e.err_code&&(he.isSignInToday=!0,he.isSignInTodayStateGo=!0,Object(ft["a"])({message:"签到完成,恭喜您获得100个积分!",duration:3e3}))})).catch((function(t){he.loading=!1}))},checkMktScore:function(t,e){t.commit;he.loading=!0,gt["d"].checkMktScore().then((function(t){he.loading=!1;var e=t.data;0==e.err_code&&(1==e.data?he.checkInfoState=!0:he.checkInfoState=!1)})).catch((function(t){he.loading=!1}))},exchangePrize:function(t,e){t.commit;he.loading=!0;var a={user_id:ht["a"].getCookie("Yo4teW_uid"),point_prize_id:e.point_prize_id};gt["d"].exchangePrize(ge.stringify(a)).then((function(t){he.loading=!1;var e=t.data;if(0==e.errcode){var a=e.data.point_exchange_id;window.location.href="/h5/view/#/pointchange?point_exchange_id="+a+"&prize_type="+e.data.prize_type}else Object(ft["a"])({message:e.errmsg,duration:2500})})).catch((function(t){he.loading=!1}))}},_e={},be={state:he,mutations:me,actions:pe,getters:_e},ve=a("1cfa");o["a"].use(ft["a"]);var ye={loading:!1,prize_info:"",prize_types:"",address_id:"",address_info:"",adressApiState:!1},we={},ke={getUserPointExchangeDetail:function(t,e){t.commit;ye.loading=!0;var a={point_exchange_id:e.point_exchange_id};gt["d"].getUserPointExchangeDetail(ve.stringify(a)).then((function(t){ye.loading=!1;var e=t.data;0==e.errcode&&(ye.prize_info=e.data.prize_info,ye.prize_types=e.data.prize_info.prize_type,e.data.address_info?(ye.address_info=e.data.address_info,ye.address_info.point_addressp=1,ye.address_id=e.data.prize_info.address_id):ye.adressApiState=!0)})).catch((function(t){ye.loading=!1}))},recvlist:function(t,e){t.commit;gt["d"].recvlist().then((function(t){var e=t.data;if(0==e.err_code){var a=e.data||[];if(a.length>0)for(var n=0;n<a.length;n++)1==a[n].is_default&&(ye.address_info=a[n],ye.address_id=a[n].address_id)}}))}},De={},Oe={state:ye,mutations:we,actions:ke,getters:De};o["a"].use(ft["a"]);var Pe={loading:!1,ruledata:""},je={},Ce={pointruleApi:function(t,e){t.commit;Pe.loading=!0,gt["d"].pointruleApi().then((function(t){Pe.loading=!1;var e=t.data;0==e.err_code&&(Pe.ruledata=e.data.data[0])})).catch((function(t){Pe.loading=!1}))}},Le={},Se={state:Pe,mutations:je,actions:Ce,getters:Le},Ie=a("1cfa");o["a"].use(ft["a"]);var Ae={finished:!1,loadStatus:!1,getUserCurrentPoint:0,detaillist:[],totalLimit:0},xe={getUserPointDetail:function(t,e){1==e.data.current_page?t.detaillist=e.data.data:t.detaillist=t.detaillist.concat(e.data.data),t.totalLimit=e.data.last_page,e.data.current_page>=e.data.last_page?t.finished=!0:t.finished=!1}},Ee={getUserPointDetail:function(t,e){var a=t.commit;Ae.loadStatus=!0;var n={page:e.page,limit:e.limit,user_id:ht["a"].getCookie("Yo4teW_uid"),flow_type:e.flow_type};1==e.page&&(Ae.finished=!1,Ae.detaillist=[]),gt["d"].getUserPointDetail(Ie.stringify(n)).then((function(t){var e=t.data;Ae.loadStatus=!1,0==e.errcode&&a({type:"getUserPointDetail",data:e.data})})).catch((function(t){Ae.loadStatus=!1}))},getUserCurrentPointdetail:function(t,e){t.commit;var a={user_id:ht["a"].getCookie("Yo4teW_uid")};gt["d"].getUserCurrentPoint(Ie.stringify(a)).then((function(t){var e=t.data;0==e.errcode&&(Ae.getUserCurrentPoint=e.data)}))}},Te={},ze={state:Ae,mutations:xe,actions:Ee,getters:Te},Ue=a("1cfa");o["a"].use(ft["a"]);var Me={finished:!1,loadStatus:!1,getUserCurrentPoint:0,detaillist:[],totalLimit:0},We={getUserPointExchangeList:function(t,e){1==e.data.current_page?t.detaillist=e.data.data:t.detaillist=t.detaillist.concat(e.data.data),t.totalLimit=e.data.last_page,e.data.current_page>=e.data.last_page?t.finished=!0:t.finished=!1}},Be={getUserPointExchangeList:function(t,e){var a=t.commit;Me.loadStatus=!0;var n={page:e.page,limit:e.limit,user_id:ht["a"].getCookie("Yo4teW_uid"),prize_type:e.prize_type};1==e.page&&(Me.finished=!1,Me.detaillist=[]),gt["d"].getUserPointExchangeList(Ue.stringify(n)).then((function(t){var e=t.data;Me.loadStatus=!1,0==e.errcode&&a({type:"getUserPointExchangeList",data:e.data})})).catch((function(t){Me.loadStatus=!1}))}},Re={},Fe={state:Me,mutations:We,actions:Be,getters:Re};a("1cfa");o["a"].use(ft["a"]);var Ye={loading:!1,aboutdata:""},qe={getAboutUsData:function(){var t=ft["a"].loading({message:"加载中...",duration:0});gt["d"].getAboutUsData().then((function(e){t.clear();var a=e.data;0==a.err_code&&(Ye.aboutdata=a.data.data[0])})).catch((function(e){t.clear()}))}},Ve={state:Ye,actions:qe};o["a"].use(ft["a"]);var Ge=a("1cfa"),Ne={loading:!1,formCodeStatus:!1,formImgShow:!1},Ke={},He={chainSmsVerify:function(t,e){t.commit;Ne.loading=!0,Ne.formCodeStatus=!1;var a={verify:e.verify,mobile:e.mobile,channel:0};gt["d"].smsVerify(Ge.stringify(a)).then((function(t){Ne.loading=!1,Ne.formImgShow=!1;var e=t.data;0==e.err_code?(Ne.formCodeStatus=!0,Object(ft["a"])({message:e.err_msg,duration:2e3})):10001==e.err_code||10002==e.err_code?(Object(ft["a"])({message:e.err_msg,duration:2e3}),Ne["formImgShow"]=!0):Object(ft["a"])({message:e.err_msg,duration:3e3})})).catch((function(t){Ne.loading=!1}))},chainFindBg:function(t,e){t.commit;Ne.loading=!0;var a={need:e.need,mobile:e.mobile,linkName:e.linkName,verifyCode:e.verifyCode,type:1};gt["d"].chainFind(Ge.stringify(a)).then((function(t){Ne.loading=!1;var e=t.data;1==e.errcode?Object(ft["a"])({message:e.errmsg,duration:2e3}):(e.errcode,Object(ft["a"])({message:"您的需求已经提交成功!我们将会在30分钟内联系您!",duration:3e3}),setTimeout((function(){history.go(0)}),2500))})).catch((function(t){Ne.loading=!1}))}},Ze={},Je={state:Ne,mutations:Ke,actions:He,getters:Ze};function $e(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,n)}return a}function Xe(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?$e(Object(a),!0).forEach((function(e){Object(n["a"])(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):$e(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}a("1cfa");var Qe={zyFilter:!1,zyClass:!1,zyRank:!1,classData:[],classLight:{},zyFilterData:{},zyData:[],loading:!1,finished:!1,count:0},ta={xianhuo:function(t,e){"filter"==e.type?(t.zyFilter=e.bool,t.zyFilterData=e.data):"rank"==e.type?t.zyRank=e.bool:"class"==e.type?(t.zyClass=e.bool,t.classData=e.data):"class_light"==e.type?t.classLight=e.data:"zydata"==e.type&&(t.zyData=t.zyData.concat(e.data))}},ea={getZyData:function(t,e){var a=t.commit;Qe.loading=!0,Qe.finished=!1;var n=e.data.p;1==n&&(Qe.zyData=[]);var o=ht["a"].getParams(Xe({},e.data));gt["d"].getZyData(o).then((function(t){Qe.loading=!1;var e=t.data;if(0==e.error_code){if(!e.data.data)return void(Qe.finished=!0);var o=Math.ceil(e.data.total/10);n==o&&(Qe.finished=!0),e.data.aggs&&a("xianhuo",{type:"filter",bool:!0,data:e.data.aggs}),e.data.class&&a("xianhuo",{type:"class",bool:!0,data:e.data.class}),e.data.class_light&&a("xianhuo",{type:"class_light",data:e.data.class_light}),0!==e.data.total&&a("xianhuo",{type:"rank",bool:!0,data:e.data.aggs}),e.data.data.data_list&&a("xianhuo",{type:"zydata",data:e.data.data.data_list})}else Qe.loading=!1,Qe.finished=!0})).catch((function(t){Qe.loading=!1,Qe.finished=!0}))}},aa={state:Qe,actions:ea,mutations:ta},na=a("49b7"),oa=a("1cfa");o["a"].use(ft["a"]);var ia={zygoodDetail:{},lygoodDetail:{},isShowAlert:!1,tipText:""},ra={changeZyGoodDetail:function(t,e){var a=e.data;t.zygoodDetail=a},changeLyGoodDetail:function(t,e){var a=e.data;t.lygoodDetail=a},closeAlert:function(t){t.isShowAlert=!1,t.tipText=""}},ca={getDetailData:function(t,e){var a=t.commit,n=ft["a"].loading({message:"加载中...",duration:0,forbidClick:!0,loadingType:"spinner"});ia.zygoodDetail={},ia.lygoodDetail={},gt["d"].goodDetail(oa.stringify(e.data)).then((function(t){n.clear();var e=t.data;0==e.err_code&&(3==e.data.goods_type||4==e.data.goods_type?a("changeZyGoodDetail",{data:e.data}):1!=e.data.goods_type&&2!=e.data.goods_type||a("changeLyGoodDetail",{data:e.data}))})).catch((function(t){n.clear()}))},addGoods:function(t,e){t.commit;var a=ft["a"].loading({message:"加载中...",duration:0,forbidClick:!0});ia.isShowAlert=!1,ia.tipText="",gt["d"].addGood(oa.stringify(e.data.datax)).then((function(t){a.clear();var n=t.data;0==n.err_code?1==e.data.datax.buy?(window.sessionStorage.setItem("car_xk",n.data),1==e.data.type?window.location.href="/v3/order/confirm?type=zy&k="+e.data.k:e.invitedId?window.location.href="/v3/order/confirm?type=other&k="+e.data.k+"&invitedId="+e.invitedId:window.location.href="/v3/order/confirm?type=other&k="+e.data.k):(ia.isShowAlert=!0,ia.tipText=n.err_msg):Object(ft["a"])(n.err_msg)})).catch((function(t){a.clear(),Object(ft["a"])(t)}))}},sa={state:ia,actions:ca,mutations:ra};a("9a33");o["a"].use(ft["a"]);var da=a("1cfa"),ua={loading:!1,loading1:!1,ly1:!1,ly2:!1,zy1:!1,ly1Data:[],ly2Data:[],zy1Data:[],zy2Data:[],ly1Length:0,ly2Length:0,zy1Length:0,ly1LoseData:[],ly2LoseData:[],zy1LoseData:[],priceInit:!1,totlaMState:!1},la={cartList:function(t,e){if(1==e.types_)for(var a=e.data.list,n=0;n<a.length;n++)a[n].editState=!1,a[n].check=!0,-1==a[n].status?t.ly1LoseData.push(a[n]):t.ly1Data.push(a[n]);else if(2==e.types_)for(a=e.data.list,n=0;n<a.length;n++)a[n].editState=!1,a[n].check=!0,-1==a[n].status?t.ly2LoseData.push(a[n]):t.ly2Data.push(a[n]);else for(a=e.data.list,n=0;n<a.length;n++)a[n].editState=!1,-1==a[n].status?t.zy1LoseData.push(a[n]):1==a[n].sale_type?(a[n].check=!0,t.zy1Data.push(a[n])):(a[n].check=!1,t.zy2Data.push(a[n]))},cartDelete:function(t,e){var a=e.cart_id.split(",");if(1==e.types)if("normal"==e.act){for(var n=1==e.delivery?t.ly1Data:t.ly2Data,o=0;o<n.length;o++)for(var i=0;i<a.length;i++)n[o].cart_id==a[i]&&n.splice(o,1);1==e.delivery?(t.ly1Data=n,t.ly1Length=Number(t.ly1Length)-a.length):(t.ly2Data=n,t.ly2Length=Number(t.ly2Length)-a.length)}else 1==e.delivery?t.ly1LoseData=[]:t.ly2LoseData=[];else if("normal"==e.act){for(o=0;o<t.zy1Data.length;o++)for(i=0;i<a.length;i++)t.zy1Data[o].cart_id==a[i]&&t.zy1Data.splice(o,1);for(var r=0;r<t.zy2Data.length;o++)for(var c=0;c<a.length;c++)t.zy2Data[r].cart_id==a[c]&&t.zy2Data.splice(r,1);t.zy1Length=Number(t.zy1Length)-a.length}else t.zy1LoseData=[]},changenum:function(t,e){if(1==e.delivery_place||2==e.delivery_place)for(var a=1==e.delivery_place?t.ly1Data:t.ly2Data,n=0;n<a.length;n++)a[n].cart_id==e.cart_id&&(a[n].goods_number=e.data.num,a[n].goods_amount=e.data.goods_amount,a[n].goods_amount_format=e.data.goods_amount_format,a[n].goods_price=e.data.goods_price,a[n].goods_price_format=e.data.goods_price_format);else{var o=t.zy1Data,i=t.zy2Data;for(n=0;n<o.length;n++)if(o[n].cart_id==e.cart_id&&(o[n].goods_number=e.data.num,o[n].goods_amount=e.data.goods_amount,o[n].goods_amount_format=e.data.goods_amount_format,o[n].goods_price=e.data.goods_price,o[n].goods_price_format=e.data.goods_price_format,2==e.data.sale_type)){var r=o[n];o.splice(n,1),t.zy2Data.push(r)}for(var c=0;c<i.length;c++)if(i[c].cart_id==e.cart_id&&(i[c].goods_number=e.data.num,i[c].goods_amount=e.data.goods_amount,i[c].goods_amount_format=e.data.goods_amount_format,i[c].goods_price=e.data.goods_price,1==e.data.sale_type)){r=i[c];i.splice(c,1),t.zy1Data.push(r)}}t.totlaMState=!0}},fa={cartList:function(t,e){var a=t.commit;ua.loading=!0,ua.loading1=!0;var n,o={delivery_place:e.delivery_place,order_goods_type:e.order_goods_type};n=2==e.order_goods_type?3:e.delivery_place,gt["d"].cartList(da.stringify(o)).then((function(t){ua.loading=!1,ua.loading1=!1;var e=t.data;1==n?ua.ly1=!0:2==n?ua.ly2=!0:ua.zy1=!0,0==e.err_code&&a({type:"cartList",data:e.data,types_:n})})).catch((function(t){ua.loading=!1,ua.loading1=!1}))},allcount:function(t,e){t.commit;gt["d"].allcount().then((function(t){var e=t.data;0==e.err_code&&(ua.ly1Length=Number(e.data["1"]["1"]||0),ua.ly2Length=Number(e.data["1"]["2"]||0),ua.zy1Length=Number(e.data["2"]["1"]||0))}))},cartDelete:function(t,e){var a=t.commit;ua.loading=!0;var n={cart_id:e.cart_id,act:e.act};gt["d"].cartDelete(da.stringify(n)).then((function(t){ua.loading=!1;var n=t.data;0==n.err_code?a({type:"cartDelete",data:n.data,act:e.act,cart_id:e.cart_id,types:e.types,delivery:e.delivery}):Object(ft["a"])({message:n.err_msg,duration:3e3})})).catch((function(t){ua.loading=!1}))},confirmBehavior:function(t,e){t.commit;ua.loading=!0,gt["d"].confirmBehavior().then((function(t){ua.loading=!1,window.location.href=e.url_})).catch((function(t){ua.loading=!1}))},changenum:function(t,e){var a=t.commit;1!=e.types&&2!=e.types||(ua.loading=!0);var n={cart_id:e.cart_id,num:e.num,delivery_place:e.delivery_place};ua.totlaMState=!1,gt["d"].changenum(da.stringify(n)).then((function(t){ua.loading=!1;var n=t.data;0==n.err_code?a({type:"changenum",data:n.data,cart_id:e.cart_id,delivery_place:e.delivery_place}):Object(ft["a"])({message:n.err_msg,duration:3e3})})).catch((function(t){ua.loading=!1}))}},ga={},ha={state:ua,mutations:la,actions:fa,getters:ga},ma=a("1cfa");o["a"].use(ft["a"]);var pa={loading:!1,userInfo:"",orderCounts:"",bindInfo:"",isLayout:!1,isGetBindInfo:!1},_a={},ba={getUserType:function(t,e){t.commit;var a={type:2};gt["d"].getUserType(ma.stringify(a)).then((function(t){var e=t.data;0==e.err_code?pa.userInfo=e.data:Object(ft["a"])({message:e.err_msg,duration:3e3})})).catch((function(t){pa.loading=!1}))},orderCount:function(t,e){t.commit;pa.loading=!0;var a={status:"1,2,3,4,7,8,10,-1",mul:1};gt["d"].orderCount(ma.stringify(a)).then((function(t){var e=t.data;pa.loading=!1,0==e.err_code?pa.orderCounts=e.data:Object(ft["a"])({message:e.err_msg,duration:3e3})})).catch((function(t){pa.loading=!1}))},getBindInfo:function(t,e){t.commit;gt["d"].getBindInfo().then((function(t){var e=t.data;0==e.err_code?pa.bindInfo=e.data:Object(ft["a"])({message:e.err_msg,duration:3e3})})).catch((function(t){}))},unbindPhone:function(t,e){t.commit;pa.loading=!0,pa.isGetBindInfo=!1,gt["d"].unbindPhone().then((function(t){pa.loading=!1;var e=t.data;0==e.err_code?(pa.isGetBindInfo=!0,Object(ft["a"])({message:e.err_msg,duration:2e3}),isMiniProgram&&(pa.isLayout=!0)):Object(ft["a"])({message:e.err_msg,duration:3e3})})).catch((function(t){}))},logout:function(t,e){t.commit;pa.loading=!0;var a={referUrl:window.location.href};gt["d"].logout(ma.stringify(a)).then((function(t){pa.loading=!1;var e=t.data;0==e.err_code?e.referUrl?window.location.href="/v3":window.location.reload():Object(ft["a"])({message:e.err_msg,duration:3e3})})).catch((function(t){}))}},va={},ya={state:pa,mutations:_a,actions:ba,getters:va},wa=a("1cfa");o["a"].use(ft["a"]);var ka={loading:!1,lists:[],counts:{0:"0",1:"0","-2":"0","-1":"0"}},Da={},Oa={ucouponLists:function(t,e){t.commit;ka.loading=!0;var a={status:e.status};gt["d"].ucouponLists(wa.stringify(a)).then((function(t){var e=t.data;ka.loading=!1,0==e.err_code?ka.lists=e.data:Object(ft["a"])({message:e.err_msg,duration:3e3})})).catch((function(t){ka.loading=!1}))},ucouponCount:function(t,e){t.commit;gt["d"].ucouponCount().then((function(t){var e=t.data;0==e.err_code?ka.counts=e.data:Object(ft["a"])({message:e.err_msg,duration:3e3})})).catch((function(t){ka.loading=!1}))}},Pa={},ja={state:ka,mutations:Da,actions:Oa,getters:Pa},Ca=a("1cfa");o["a"].use(ft["a"]);var La={loading:!1,userInfo:"",addressInfo:""},Sa={},Ia={getUserType2:function(t,e){t.commit;La.loading=!0;var a={type:2};gt["d"].getUserType(Ca.stringify(a)).then((function(t){La.loading=!1;var e=t.data;0==e.err_code?La.userInfo=e.data:11030==e.err_code||11010==e.err_code?(Object(ft["a"])({message:e.err_msg,duration:3e3}),setTimeout((function(){window.location.href="/v3/login?referer="+encodeURIComponent(window.location.href)}),1e3)):Object(ft["a"])({message:e.err_msg,duration:3e3})})).catch((function(t){La.loading=!1}))},allAddressInfo:function(t,e){t.commit;gt["d"].allAddress().then((function(t){var e=t.data;0==e.err_code&&(La.addressInfo=e.data)}))},changeUserInfo:function(t,e){t.commit;La.loading=!0;var a={nike_name:e.nike_name,com_name:e.com_name,type_id:e.type_id,sex:e.sex,com_telphone:e.com_telphone,com_desc:e.com_desc,com_province_id:e.com_province_id,com_city_id:e.com_city_id,com_area_id:e.com_area_id,com_address:e.com_address,com_mobile:e.com_mobile};gt["d"].changeUserInfo(Ca.stringify(a)).then((function(t){La.loading=!1;var a=t.data;if(0==a.err_code){var n=a.err_msg;Number(a.point)>0&&(n="恭喜您获得"+a.point+"积分"),Object(ft["a"])({message:n,duration:3e3}),setTimeout((function(){e.urlback?window.location.href="/v3/user/order":window.location.href="/v3/user"}),800)}else 11030==a.err_code||11010==a.err_code?(Object(ft["a"])({message:a.err_msg,duration:3e3}),setTimeout((function(){window.location.href="/v3/login?referer="+encodeURIComponent(window.location.href)}),1e3)):Object(ft["a"])({message:a.err_msg,duration:3e3})})).catch((function(t){La.loading=!1}))}},Aa={},xa={state:La,mutations:Sa,actions:Ia,getters:Aa},Ea=a("1cfa");o["a"].use(ft["a"]);var Ta={loading:!1,addressList:[],addressInfo:{},addressInfoState:!1,areaList:{}},za={recvlistUser:function(t,e){t.addressList=e.data},setdefault:function(t,e){for(var a=0;a<t.addressList.length;a++)t.addressList[a].is_default="0",t.addressList[a].address_id==e.address_id&&(t.addressList[a].is_default="1")},deleteAddress:function(t,e){for(var a=0;a<t.addressList.length;a++)t.addressList[a].address_id==e.address_id&&t.addressList.splice(a,1)}},Ua={recvlistUser:function(t,e){var a=t.commit;Ta.loading=!0,gt["d"].recvlist().then((function(t){var e=t.data;Ta.loading=!1,0==e.err_code&&a({type:"recvlistUser",data:e.data})})).catch((function(t){Ta.loading=!1}))},setdefault:function(t,e){var a=t.commit;Ta.loading=!0;var n={address_id:e.address_id};gt["d"].setdefault(Ea.stringify(n)).then((function(t){var n=t.data;Ta.loading=!1,0==n.err_code?(a({type:"setdefault",data:n.data,address_id:e.address_id}),Object(ft["a"])({message:n.err_msg,duration:2e3})):Object(ft["a"])({message:n.err_msg,duration:3e3})})).catch((function(t){Ta.loading=!1}))},deleteAddress:function(t,e){var a=t.commit;Ta.loading=!0;var n={address_id:e.address_id};gt["d"].deleteAddress(Ea.stringify(n)).then((function(t){var n=t.data;Ta.loading=!1,0==n.err_code?(a({type:"deleteAddress",data:n.data,address_id:e.address_id}),Object(ft["a"])({message:"删除成功",duration:2e3})):Object(ft["a"])({message:n.err_msg,duration:3e3})})).catch((function(t){Ta.loading=!1}))},infoAddress:function(t,e){t.commit;Ta.loading=!0,Ta.addressInfoState=!1;var a={address_id:e.address_id};gt["d"].infoAddress(Ea.stringify(a)).then((function(t){var e=t.data;Ta.loading=!1,0==e.err_code&&(Ta.addressInfoState=!0,Ta.addressInfo=e.data)})).catch((function(t){Ta.loading=!1}))},getOverseaMsgArea:function(t,e){t.commit;gt["d"].getOverseaMsgArea().then((function(t){var e=t.data;0==e.err_code&&(Ta.areaList=e.data)}))},createAddress:function(t,e){t.commit;Ta.loading=!0;var a={consignee:e.consignee,province:e.province,city:e.city,district:e.district,detail_address:e.detail_address,address_type:e.address_type,is_default:e.is_default,mobile:e.mobile,intl_code:e.intl_code};gt["d"].createAddress(Ea.stringify(a)).then((function(t){var a=t.data;Ta.loading=!1,0==a.err_code?(Object(ft["a"])({message:a.err_msg,duration:3e3}),e.orderpg?window.location.href=document.referrer:history.go(0)):Object(ft["a"])({message:a.err_msg,duration:3e3})})).catch((function(t){Ta.loading=!1}))},updateAddress:function(t,e){t.commit;Ta.loading=!0;var a={consignee:e.consignee,province:e.province,city:e.city,district:e.district,detail_address:e.detail_address,address_type:e.address_type,is_default:e.is_default,mobile:e.mobile,intl_code:e.intl_code,address_id:e.address_id};gt["d"].updateAddress(Ea.stringify(a)).then((function(t){var a=t.data;Ta.loading=!1,0==a.err_code?(Object(ft["a"])({message:a.err_msg,duration:3e3}),setTimeout((function(){e.orderpg?history.go(-1):history.go(0)}),1500)):Object(ft["a"])({message:a.err_msg,duration:3e3})})).catch((function(t){Ta.loading=!1}))},changeReceivePrizeAddress:function(t,e){t.commit;Ta.loading=!0;var a={point_exchange_id:e.point_exchange_id,user_id:ht["a"].getCookie("Yo4teW_uid"),address_id:e.address_id};gt["d"].changeReceivePrizeAddress(Ea.stringify(a)).then((function(t){var e=t.data;Ta.loading=!1,0==e.errcode?(Object(ft["a"])({message:"保存成功",duration:3e3}),setTimeout((function(){history.go(-1)}),1e3)):Object(ft["a"])({message:e.err_msg,duration:3e3})})).catch((function(t){Ta.loading=!1}))}},Ma={},Wa={state:Ta,mutations:za,actions:Ua,getters:Ma};a("de78");o["a"].use(ft["a"]);var Ba=a("1cfa"),Ra={loading:!1,brandMapData:[],indexList:[],loadStatus:!1,p:1,offset:10,totalLimit:0,listData:[],finished:!1,brandDetail:""},Fa={skuList:function(t,e){e.data.goods_list=Object.values(e.data.goods_list),1==t.p?t.listData=e.data.goods_list:t.listData=t.listData.concat(e.data.goods_list),t.totalLimit=Math.ceil(Number(e.data.total)/t.offset),t.p>=t.totalLimit?t.finished=!0:t.finished=!1}},Ya={brandList:function(t,e){t.commit;Ra.loading=!0;var a={brand_area:e.brand_area};gt["d"].brandList(Ba.stringify(a)).then((function(t){Ra.loading=!1;var e=t.data.data.BrandList;if(Ra.brandMapData=[],Ra.indexList=[],0==e.err_code)for(var a in Ra.brandMapData=e.data,Ra.brandMapData)Ra.indexList.push(a);else Object(ft["a"])({message:e.err_msg,duration:3e3})})).catch((function(t){Ra.loading=!1}))},brandInfo:function(t,e){t.commit;Ra.loading=!0;var a={brand_id:e.brand_id};gt["d"].brandInfo(a).then((function(t){Ra.loading=!1;var e=t.data.data;0==e.err_code?Ra.brandDetail=e.data:Object(ft["a"])({message:e.err_msg,duration:3e3})})).catch((function(t){Ra.loading=!1}))},skuList:function(t,e){var a=t.commit;Ra.loadStatus=!0,Ra.p=e.p,Ra.offset=e.offset;var n={"stock/sr":e["stock/sr"],"brand_id/condition":e["brand_id/condition"],p:e.p,offset:e.offset};e["stock/order"]&&(n["stock/order"]=e["stock/order"]),e["single_price/order"]&&(n["single_price/order"]=e["single_price/order"]);var o=ht["a"].getParams(n);gt["d"].skuList(o).then((function(t){var e=t.data;Ra.loadStatus=!1,0==e.err_code&&a({type:"skuList",data:e.data})})).catch((function(t){Ra.loadStatus=!1}))}},qa={},Va={state:Ra,mutations:Fa,actions:Ya,getters:qa};a("1cfa");o["a"].use(ft["a"]);var Ga={rankList:[]},Na={},Ka={getlxuserrank:function(t,e){t.commit;Ga.loading=!0,gt["d"].getlxuserrank().then((function(t){var e=t.data;0==e.err_code&&(Ga.rankList=e.data)})).catch((function(t){}))}},Ha={},Za={state:Ga,mutations:Na,actions:Ka,getters:Ha};o["a"].use(ft["a"]);var Ja={loading:!1,getfileuploadbanner:[],articleShowData:[],showClass:[]},$a={getfileuploadbanner:function(t,e){t.getfileuploadbanner=e.data},articleShowData:function(t,e){t.articleShowData=e.data},showClass:function(t,e){t.showClass=e.data}},Xa={getfileuploadbanner:function(t,e){var a=t.commit,n=ht["a"].getParams();gt["d"].getfileuploadbanner(n).then((function(t){var e=t.data;0==e.err_code&&a({type:"getfileuploadbanner",data:e.data.data})})).catch((function(t){}))},downloadFile:function(t,e){t.commit;var a={data_id:e.id,download:e.download},n=ht["a"].getParams(a);gt["d"].downloadFile(n).then((function(t){var a=t.data;if(0==a.err_code){var n=ht["a"].isUerAgent();1==e.download?Object(ft["a"])({message:a.err_msg,duration:2e3}):"ios"==n?(Object(ft["a"])({message:"该文件只能在safari浏览器中下载保存,请在safari中打开页面并下载\n",duration:2e3}),setTimeout((function(){window.location.href=a.data[0].file_url}),2e3)):window.location.href=a.data[0].file_url}else a.err_code,Object(ft["a"])({message:a.err_msg,duration:2e3})})).catch((function(t){}))},articleShowData:function(t,e){var a=t.commit;ft["a"].loading({message:"加载中...",forbidClick:!0,loadingType:"spinner"});var n={limit:300,class_id:e.class_id},o=ht["a"].getParams(n);gt["d"].articleShowData(o).then((function(t){var e=t.data;0==e.err_code?a({type:"articleShowData",data:e.data}):Object(ft["a"])({message:e.err_msg,duration:2e3}),ft["a"].clear()})).catch((function(t){ft["a"].clear()}))},showClass:function(t,e){var a=t.commit,n=ht["a"].getParams();gt["d"].showClass(n).then((function(t){var e=t.data;0==e.err_code?a({type:"showClass",data:e.data}):Object(ft["a"])({message:e.err_msg,duration:2e3})})).catch((function(t){}))}},Qa={},tn={state:Ja,mutations:$a,actions:Xa,getters:Qa};a("5f54");function en(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,n)}return a}function an(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?en(Object(a),!0).forEach((function(e){Object(n["a"])(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):en(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}o["a"].use(ft["a"]);var nn={classList:[],goodList:[],loading:!1,finished:!1,goodCount:0,aggSample:[],aggs:{},aggsFlag:[],ziYingIndex:[],smaple_class_id:"",getsamplebanner:[]},on={ziYingIndex:function(t,e){var a=[];for(var n in e.data.data.data_list)a.push(e.data.data.data_list[n]);t.ziYingIndex=t.ziYingIndex.concat(a)},aggs:function(t,e){var a=[];for(var n in e.id&&(a=e.id.split(",")),e.data.aggs)for(var o=0;o<e.data.aggs[n].list.length;o++){e.data.aggs[n].list[o].check=!1;for(var i=0;i<a.length;i++)e.data.aggs[n].list[o].id==a[i]&&(e.data.aggs[n].list[o].check=!e.data.aggs[n].list[o].check,e.data.aggs[n].list[o].flag=!e.data.aggs[n].list[o].flag)}t.aggs=e.data},aggSample:function(t,e){t.smaple_class_id=e.data[0].smaple_class_id,t.aggSample=e.data},classListM:function(t,e){t.classList=e.data},goodList:function(t,e){var a=[];for(var n in e.data)a.push(e.data[n]);t.goodList=t.goodList.concat(a)},getsamplebanner:function(t,e){t.getsamplebanner=e.data}},rn={ziYingIndex:function(t,e){var a=t.commit;ft["a"].loading({message:"加载中...",forbidClick:!0,loadingType:"spinner"}),nn.loading=!0,nn.finished=!1,1==e.params.p&&(nn.ziYingIndex=[]);var n=an(an({},e.params),{},{offset:10,"sample_status/eq":1}),o=ht["a"].getParams(n);gt["d"].ZiYingIndex(o).then((function(t){ft["a"].clear();var n=t.data;if(nn.loading=!1,0==n.error_code){var o=0;n.data.total&&(o=Math.ceil(1*n.data.total/10)),(e.params.p>=o||!o)&&(nn.finished=!0),a({type:"ziYingIndex",data:n.data})}else nn.loading=!1,nn.finished=!0})).catch((function(t){ft["a"].clear(),nn.loading=!1,nn.finished=!0}))},aggs:function(t,e){var a=t.commit;ft["a"].loading({message:"加载中...",forbidClick:!0,loadingType:"spinner"});var n={"sample_status/eq":1},o=Object.assign({},n,e.params),i=ht["a"].getParams(o);gt["d"].aggs(i).then((function(t){ft["a"].clear();var n=t.data;0==n.error_code?a({type:"aggs",data:n.data,reset:e.params.reset,id:e.params.id}):Object(ft["a"])({message:n.error_msg,duration:3e3})})).catch((function(t){ft["a"].clear()}))},aggSample:function(t,e){var a=t.commit,n=ht["a"].getParams();gt["d"].aggSample(n).then((function(t){var e=t.data;0==e.error_code?a({type:"aggSample",data:e.data}):Object(ft["a"])({message:e.error_msg,duration:3e3})})).catch((function(t){}))},getClasslist:function(t,e){var a=t.commit;gt["d"].sampleClassList().then((function(t){var e=t.data;0==e.err_code?a("classListM",{data:e.data||[]}):a("classListM",{data:[]})})).catch((function(t){a("classListM",{data:[]})}))},getGoodList:function(t,e){var a=t.commit;nn.loading=!0,nn.finished=!1;var n=e.data.p;1==n&&(nn.goodList=[]);var o=an(an({},e.data),{},{limit:10});gt["d"].sampleList(o).then((function(t){nn.loading=!1;var e=t.data;if(0==e.err_code){var o=0;e.data.total&&(o=Math.ceil(e.data.total/10)),n!=o&&o||(nn.finished=!0),e.data.total&&a("goodList",{data:e.data.data})}else nn.loading=!1,nn.finished=!0})).catch((function(t){nn.loading=!1,nn.finished=!0}))},getsamplebanner:function(t,e){var a=t.commit,n=ht["a"].getParams();gt["d"].getsamplebanner(n).then((function(t){nn.loading=!1;var e=t.data;0==e.err_code?a({type:"getsamplebanner",data:e.data}):Object(ft["a"])({message:e.error_msg,duration:3e3})})).catch((function(t){}))}},cn={state:nn,actions:rn,mutations:on},sn=a("1cfa");o["a"].use(ft["a"]);var dn={loading:!1,addressInfo:"",submitState:!1,ypGoodDetail:{},ypComInfo:{},ypBasInfo:{},ordernum:""},un={recvlistSample:function(t,e){e.data?(t.addressInfo=e.data.filter((function(t){return 1==t["is_default"]})),t.addressInfo=t.addressInfo[0]):t.addressInfo=null}},ln={recvlistSample:function(t,e){var a=t.commit;gt["d"].recvlist().then((function(t){var e=t.data;0==e.err_code?a({type:"recvlistSample",data:e.data}):a({type:"recvlistSample",data:null})})).catch((function(t){}))},selfSampleCreate:function(t,e){t.commit;dn.loading=!0;var a=e.data;gt["d"].selfSampleCreate(sn.stringify(a)).then((function(t){var e=t.data;dn.loading=!1,0==e.err_code?(dn.submitState=!0,dn.ordernum=e.data||""):"40014"==e.err_code?Object(ft["a"])("样品库存不足"):Object(ft["a"])(e.err_msg)})).catch((function(t){dn.loading=!1}))},getDetailYp:function(t,e){t.commit;dn.loading=!0;var a={id:e.data.id},n=ht["a"].getParams(a);gt["d"].getSampleInfo(n).then((function(t){var e=t.data;dn.loading=!1,0==e.err_code?(dn.ypGoodDetail=e.data.goods_info||{},dn.ypComInfo=e.data.company_info||{},dn.ypBasInfo=e.data.user_info||{}):Object(ft["a"])(e.err_msg)})).catch((function(t){dn.loading=!1}))}},fn={},gn={state:dn,mutations:un,actions:ln,getters:fn},hn=a("1cfa");o["a"].use(ft["a"]);var mn={formImgShow:!1,countDown:!1},pn={getfileuploadbanner:function(t,e){t.getfileuploadbanner=e.data},articleShowData:function(t,e){t.articleShowData=e.data}},_n={actionLogins:function(t,e){t.commit;var a=ft["a"].loading({forbidClick:!0});if("risk"==e.from)var n={com_name:e.com_name,user_name:e.user_name,account:e.account,sms_verify:e.sms_verify,ptag:"edcp"};else n={account:e.account,sms_verify:e.sms_verify};gt["d"].actionLogins(hn.stringify(n)).then((function(t){var n=t.data;0==n.err_code?setTimeout((function(){a.clear(),"risk"==e.from?window.location.href="/h5/view/#/creditestsuccess":window.location.href="/"}),1e3):(a.clear(),Object(ft["a"])({message:n.err_msg,duration:3e3}))})).catch((function(t){mn.loading=!1}))},smsVerifys:function(t,e){t.commit;var a={mobile:e.mobile,verify:e.verify,channel:1};gt["d"].smsVerifys(hn.stringify(a)).then((function(t){var e=t.data;0==e.err_code?(mn.formImgShow=!1,mn.countDown=!0):10001==e.err_code||10002==e.err_code?(mn.formImgShow=!0,mn.countDown=!1,Object(ft["a"])({message:e.err_msg,duration:2e3})):Object(ft["a"])({message:e.err_msg,duration:3e3})})).catch((function(t){}))},countDownflag:function(t,e){t.commit;mn.countDown=!1}},bn={},vn={state:mn,mutations:pn,actions:_n,getters:bn};function yn(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,n)}return a}function wn(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?yn(Object(a),!0).forEach((function(e){Object(n["a"])(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):yn(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}o["a"].use(ft["a"]);var kn={bannerData:[],isLodingFinishData:!1,prizeData:{},goodId:""},Dn={getBannerData:function(t,e){t.bannerData=e.data},changeBannerData:function(t){var e=t.bannerData;e.push(e[0]),e.shift(),t.bannerData=e},changeIsLodingFinishData:function(t,e){t.isLodingFinishData=e.bool},yaoHaoYouJP:function(t,e){t.prizeData=e.obj},changeGoodId:function(t,e){t.goodId=e.id}},On={oscilloscopeinvited:function(t,e){t.commit;var a=wn({},e.data),n=ht["a"].getParams(a);gt["d"].oscilloscopeinvited(n).then((function(t){})).catch((function(t){}))},getbannerdata:function(t,e){var a=t.commit,n=wn({},e.data);a({type:"changeIsLodingFinishData",bool:!1});var o=ht["a"].getParams(n);gt["d"].getBannerData(o).then((function(t){var e=t.data;0==e.err_code&&(a({type:"getBannerData",data:e.data}),a({type:"changeIsLodingFinishData",bool:!0}))})).catch((function(t){}))},yaoHaoYouJP:function(t,e){var a=t.commit;ft["a"].loading({message:"加载中...",forbidClick:!0,loadingType:"spinner"});var n=wn({},e.data),o=ht["a"].getParams(n);gt["d"].yaoHaoYouJP(o).then((function(t){ft["a"].clear();var e=t.data;0==e.err_code&&a({type:"yaoHaoYouJP",obj:e.data})})).catch((function(t){ft["a"].clear()}))},getYaoHaoYouGoodId:function(t,e){var a=t.commit,n=wn({},e.data);a({type:"changeGoodId",id:""}),gt["d"].getYaoHaoYouGoodId(n).then((function(t){var e=t.data;0==e.err_code?a({type:"changeGoodId",id:e.data.id}):Object(ft["a"])({message:e.err_msg,duration:3e3})})).catch((function(t){}))}},Pn={state:kn,actions:On,mutations:Dn};o["a"].use(lt["a"]);var jn=new lt["a"].Store({modules:{wallet:yt,home:Pt,common:It,smt:Ut,wxlist:Yt,news:Ht,newsdetail:te,seo:re,findthing:fe,pointmall:be,pointchange:Oe,pointrule:Se,pointdetail:ze,exchange:Fe,aboutus:Ve,chain:Je,xianhuo:aa,lxshop:na["a"],gooddetail:sa,car:ha,user:ya,userInfo:xa,coupon:ja,address:Wa,brand:Va,rank:Za,download:tn,sample:cn,sampleapply:gn,special:vn,oscilloscope:Pn}}),Cn=function(t,e){var a=t;return-1==a.indexOf("ptag")&&(a=a.indexOf("?")>-1?a+"&ptag="+e:a+"?ptag="+e),a},Ln=function(t){return encodeURIComponent(t)},Sn=function(t){return t.indexOf("?")>-1?t+"&ptag=index-dynamic":t+"?ptag=index-dynamic"},In=function(t,e){var a=new Date(1e3*t);function n(t){return t<10&&(t="0"+t),t}var o=a.getFullYear(),i=a.getMonth()+1,r=a.getDate(),c=a.getHours(),s=a.getMinutes(),d=a.getSeconds();return o+"-"+n(i)+"-"+n(r)+" "+n(c)+":"+n(s)+":"+n(d)},An=function(t,e){var a=String(t);if(a&&-1!=a.indexOf("font")){var n=a.split('class="');n.shift();for(var o="",i=[["asfgdqwer","asfgdtyhg","asfgdpolk","asfgdpoqw"],["asfgdrfdf","asfgderfd","asfgdwdsa","asfgdpoer"],["asfgdasde","asfgdqwsz","asfgdrtgd","asfgdpovv"],["asfgdwsxc","asfgdwsxz","asfgdrfvb","asfgdpoee"],["asfgdqazs","asfgdqasd","asfgdqwag","asfgdpogh"],["asfgdrtyh","asfgdyutr","asfgdeews","asfgdpotg"],["asfgdpluj","asfgdikjf","asfgdesgj","asfgdpfff"],["asfgdtrdb","asfgdiksf","asfgdsgkp","asfgdprty"],["asfgdpehl","asfgdstgb","asfgderll","asfgdpokf"],["asfgdpehg","asfgdstgf","asfgderlf","asfgdpogk"]],r=0;r<n.length;r++)for(var c=n[r].split(" ")[0],s=0;s<i.length;s++)-1!=i[s].indexOf(c)&&(o+=s);return Number(o)}return Number(a)},xn={dateTimeFormate:In,urlParams:Sn,urlPatg:Cn,urlEncode:Ln,numberCode:An},En={bind:function(t,e){t.addEventListener("click",(function(){var t=document.querySelector(".container-wrap").scrollTop,e=(t/100).toFixed(0),a=setInterval((function(){t-=e,t<=0&&(t=0,clearInterval(a)),document.querySelector(".container-wrap").scrollTop=t}),1)}),!1)}},Tn={bind:function(t,e){t.addEventListener("click",(function(t){var e=document.documentElement.scrollTop||document.body.scrollTop,a=(e/100).toFixed(0),n=setInterval((function(){e-=a,e<=0&&(e=0,clearInterval(n)),document.documentElement.scrollTop?document.documentElement.scrollTop=e:document.body.scrollTop?document.body.scrollTop=e:document.querySelector("html,body").scrollTop=e}),1)}),!1)}},zn={bind:function(t,e){var a=gt["c"]+"public/verify?"+(new Date).getTime();t.setAttribute("src",a),t.addEventListener("click",(function(){var e=gt["c"]+"public/verify?"+(new Date).getTime();t.setAttribute("src",e)}),!1)}},Un={bind:function(t,e){t.addEventListener("click",(function(){var t=!!ht["a"].isLogin();if(t){var e=document.body,a=document.createElement("div");a.setAttribute("class","share-mask");var n=document.createElement("img");n.src="http://img.ichunt.com/test/images/ichunt/201904/10/b6dac89d8e471cc6cb499e1023373e0a.png",e.appendChild(a),a.appendChild(n),a.addEventListener("click",(function(){a.remove()}),!1)}else window.location.href="/v3/login?referer="+encodeURIComponent(window.location.href)}),!1)}},Mn={install:function(t){t.directive("shareMask",Un),t.directive("backTop",En),t.directive("backTopWindow",Tn),t.directive("imgCode",zn)}},Wn=(a("897d"),a("aac1")),Bn=a.n(Wn);a("b378"),a("bfd9");function Rn(t,e){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),a.push.apply(a,n)}return a}function Fn(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{};e%2?Rn(Object(a),!0).forEach((function(e){Object(n["a"])(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):Rn(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}o["a"].config.productionTip=!1;var Yn="production";if("production"!=Yn)new Bn.a;Object.keys(xn).forEach((function(t){return o["a"].filter(t,xn[t])})),o["a"].use(Mn);var qn=ht["a"].getCookie("Yo4teW_csrf")||"";o["a"].prototype.$http=g.a,g.a.defaults.headers.post["Content-Type"]="application/x-www-form-urlencoded",g.a.defaults.withCredentials=!0,g.a.interceptors.request.use((function(t){var e="multipart/form-data"==t["headers"]["Content-Type"];if("post"==t.method)t.data?e||-1!=t.data.indexOf("&pf=2")||(t.data+="&pf="+window.lxpf+"&csrf="+qn):t.data="pf="+window.lxpf+"&csrf="+qn;else if("get"==t.method){var a=Object.keys(t.params);a.length?-1==a.indexOf("pf")&&(t.params=Fn({pf:window.lxpf,csrf:qn},t.params)):t.params={pf:window.lxpf,csrf:qn}}return t}),(function(t){return Promise.reject(t)}));ht["a"].getCookie("Yo4teW_gid"),(new Date).getTime(),Math.random();var Vn={urlhash:window.location.hash};Vn=ht["a"].getParams(Vn),gt["d"].wxaccess(Vn).then((function(t){var e=t.data;0==e.err_code&&e.data&&(window.location.href=e.data)})),ut.beforeEach((function(t,e,a){var n=t.meta&&t.meta.title,o=["/oscilloscope"],i=t.path;n&&(document.title=n);var r=t.meta.back||"";if(r){var c=!!ht["a"].isLogin();c||-1!=o.indexOf(i)?a():window.location.href="/v3/login?referer="+encodeURIComponent(window.location.href)}else a()})),new o["a"]({router:ut,store:jn,render:function(t){return t(l)}}).$mount("#app")},bfd9:function(t,e,a){}});
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0c9bf163"],{"0248":function(t,e,i){},"0aad":function(t,e,i){"use strict";var n=i("292e"),s=i("6f1a"),a=i("fbbe"),o=i("e10b"),r=Object(n["a"])("popup"),c=r[0],l=r[1];e["a"]=c({mixins:[Object(a["a"])()],props:{round:Boolean,duration:[Number,String],closeable:Boolean,transition:String,safeAreaInsetBottom:Boolean,closeIcon:{type:String,default:"cross"},closeIconPosition:{type:String,default:"top-right"},position:{type:String,default:"center"},overlay:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0}},beforeCreate:function(){var t=this,e=function(e){return function(i){return t.$emit(e,i)}};this.onClick=e("click"),this.onOpened=e("opened"),this.onClosed=e("closed")},render:function(){var t,e=arguments[0];if(this.shouldRender){var i=this.round,n=this.position,a=this.duration,r="center"===n,c=this.transition||(r?"van-fade":"van-popup-slide-"+n),d={};if(Object(s["b"])(a)){var u=r?"animationDuration":"transitionDuration";d[u]=a+"s"}return e("transition",{attrs:{name:c},on:{afterEnter:this.onOpened,afterLeave:this.onClosed}},[e("div",{directives:[{name:"show",value:this.value}],style:d,class:l((t={round:i},t[n]=n,t["safe-area-inset-bottom"]=this.safeAreaInsetBottom,t)),on:{click:this.onClick}},[this.slots(),this.closeable&&e(o["a"],{attrs:{role:"button",tabindex:"0",name:this.closeIcon},class:l("close-icon",this.closeIconPosition),on:{click:this.close}})])])}}})},"2b6e":function(t,e,i){"use strict";var n=i("1bb4"),s=i("292e"),a=i("6f1a"),o=i("d8c9"),r=i("7be2"),c=i("8094"),l=i("8e95"),d=i("1132"),u=i("23c4"),h=i.n(u),f=i("a621");function m(t){return Array.isArray(t)?t.map((function(t){return m(t)})):"object"===typeof t?Object(f["a"])({},t):t}var p=i("c7f2"),v=i("75bd"),g=200,b=300,y=15,x=Object(s["a"])("picker-column"),C=x[0],_=x[1];function O(t){var e=window.getComputedStyle(t),i=e.transform||e.webkitTransform,n=i.slice(7,i.length-1).split(", ")[5];return Number(n)}function k(t){return Object(a["d"])(t)&&t.disabled}var S=C({mixins:[v["a"]],props:{valueKey:String,allowHtml:Boolean,className:String,itemHeight:Number,defaultIndex:Number,swipeDuration:[Number,String],visibleItemCount:[Number,String],initialOptions:{type:Array,default:function(){return[]}}},data:function(){return{offset:0,duration:0,options:m(this.initialOptions),currentIndex:this.defaultIndex}},created:function(){this.$parent.children&&this.$parent.children.push(this),this.setIndex(this.currentIndex)},mounted:function(){this.bindTouchEvent(this.$el)},destroyed:function(){var t=this.$parent.children;t&&t.splice(t.indexOf(this),1)},watch:{initialOptions:"setOptions",defaultIndex:function(t){this.setIndex(t)}},computed:{count:function(){return this.options.length},baseOffset:function(){return this.itemHeight*(this.visibleItemCount-1)/2}},methods:{setOptions:function(t){JSON.stringify(t)!==JSON.stringify(this.options)&&(this.options=m(t),this.setIndex(this.defaultIndex))},onTouchStart:function(t){if(this.touchStart(t),this.moving){var e=O(this.$refs.wrapper);this.offset=Math.min(0,e-this.baseOffset),this.startOffset=this.offset}else this.startOffset=this.offset;this.duration=0,this.transitionEndTrigger=null,this.touchStartTime=Date.now(),this.momentumOffset=this.startOffset},onTouchMove:function(t){this.touchMove(t),"vertical"===this.direction&&(this.moving=!0,Object(o["c"])(t,!0)),this.offset=Object(p["b"])(this.startOffset+this.deltaY,-this.count*this.itemHeight,this.itemHeight);var e=Date.now();e-this.touchStartTime>b&&(this.touchStartTime=e,this.momentumOffset=this.offset)},onTouchEnd:function(){var t=this,e=this.offset-this.momentumOffset,i=Date.now()-this.touchStartTime,n=i<b&&Math.abs(e)>y;if(n)this.momentum(e,i);else{var s=this.getIndexByOffset(this.offset);this.duration=g,this.setIndex(s,!0),setTimeout((function(){t.moving=!1}),0)}},onTransitionEnd:function(){this.stopMomentum()},onClickItem:function(t){this.moving||(this.duration=g,this.setIndex(t,!0))},adjustIndex:function(t){t=Object(p["b"])(t,0,this.count);for(var e=t;e<this.count;e++)if(!k(this.options[e]))return e;for(var i=t-1;i>=0;i--)if(!k(this.options[i]))return i},getOptionText:function(t){return Object(a["d"])(t)&&this.valueKey in t?t[this.valueKey]:t},setIndex:function(t,e){var i=this;t=this.adjustIndex(t)||0;var n=-t*this.itemHeight,s=function(){t!==i.currentIndex&&(i.currentIndex=t,e&&i.$emit("change",t))};this.moving&&n!==this.offset?this.transitionEndTrigger=s:s(),this.offset=n},setValue:function(t){for(var e=this.options,i=0;i<e.length;i++)if(this.getOptionText(e[i])===t)return this.setIndex(i)},getValue:function(){return this.options[this.currentIndex]},getIndexByOffset:function(t){return Object(p["b"])(Math.round(-t/this.itemHeight),0,this.count-1)},momentum:function(t,e){var i=Math.abs(t/e);t=this.offset+i/.003*(t<0?-1:1);var n=this.getIndexByOffset(t);this.duration=+this.swipeDuration,this.setIndex(n,!0)},stopMomentum:function(){this.moving=!1,this.duration=0,this.transitionEndTrigger&&(this.transitionEndTrigger(),this.transitionEndTrigger=null)},genOptions:function(){var t=this,e=this.$createElement,i={height:this.itemHeight+"px"};return this.options.map((function(n,s){var a,o=t.getOptionText(n),r=k(n),c={style:i,attrs:{role:"button",tabindex:r?-1:0},class:[_("item",{disabled:r,selected:s===t.currentIndex})],on:{click:function(){t.onClickItem(s)}}},l={class:"van-ellipsis",domProps:(a={},a[t.allowHtml?"innerHTML":"textContent"]=o,a)};return e("li",h()([{},c]),[e("div",h()([{},l]))])}))}},render:function(){var t=arguments[0],e={transform:"translate3d(0, "+(this.offset+this.baseOffset)+"px, 0)",transitionDuration:this.duration+"ms",transitionProperty:this.duration?"all":"none"};return t("div",{class:[_(),this.className]},[t("ul",{ref:"wrapper",style:e,class:_("wrapper"),on:{transitionend:this.onTransitionEnd}},[this.genOptions()])])}}),w=Object(s["a"])("picker"),I=w[0],j=w[1],$=w[2];e["a"]=I({props:Object(n["a"])(Object(n["a"])({},c["b"]),{},{defaultIndex:{type:[Number,String],default:0},columns:{type:Array,default:function(){return[]}},toolbarPosition:{type:String,default:"top"},valueKey:{type:String,default:"text"}}),data:function(){return{children:[],formattedColumns:[]}},computed:{itemPxHeight:function(){return this.itemHeight?Object(l["b"])(this.itemHeight):c["a"]},dataType:function(){var t=this.columns,e=t[0]||{};return e.children?"cascade":e.values?"object":"text"}},watch:{columns:{handler:"format",immediate:!0}},methods:{format:function(){var t=this.columns,e=this.dataType;"text"===e?this.formattedColumns=[{values:t}]:"cascade"===e?this.formatCascade():this.formattedColumns=t},formatCascade:function(){var t=[],e={children:this.columns};while(e&&e.children){var i=Object(a["b"])(e.defaultIndex)?e.defaultIndex:+this.defaultIndex;t.push({values:e.children,className:e.className,defaultIndex:i}),e=e.children[i]}this.formattedColumns=t},emit:function(t){var e=this;if("text"===this.dataType)this.$emit(t,this.getColumnValue(0),this.getColumnIndex(0));else{var i=this.getValues();"cascade"===this.dataType&&(i=i.map((function(t){return t[e.valueKey]}))),this.$emit(t,i,this.getIndexes())}},onCascadeChange:function(t){for(var e={children:this.columns},i=this.getIndexes(),n=0;n<=t;n++)e=e.children[i[n]];while(e&&e.children)t++,this.setColumnValues(t,e.children),e=e.children[e.defaultIndex||0]},onChange:function(t){var e=this;if("cascade"===this.dataType&&this.onCascadeChange(t),"text"===this.dataType)this.$emit("change",this,this.getColumnValue(0),this.getColumnIndex(0));else{var i=this.getValues();"cascade"===this.dataType&&(i=i.map((function(t){return t[e.valueKey]}))),this.$emit("change",this,i,t)}},getColumn:function(t){return this.children[t]},getColumnValue:function(t){var e=this.getColumn(t);return e&&e.getValue()},setColumnValue:function(t,e){var i=this.getColumn(t);i&&(i.setValue(e),"cascade"===this.dataType&&this.onCascadeChange(t))},getColumnIndex:function(t){return(this.getColumn(t)||{}).currentIndex},setColumnIndex:function(t,e){var i=this.getColumn(t);i&&(i.setIndex(e),"cascade"===this.dataType&&this.onCascadeChange(t))},getColumnValues:function(t){return(this.children[t]||{}).options},setColumnValues:function(t,e){var i=this.children[t];i&&i.setOptions(e)},getValues:function(){return this.children.map((function(t){return t.getValue()}))},setValues:function(t){var e=this;t.forEach((function(t,i){e.setColumnValue(i,t)}))},getIndexes:function(){return this.children.map((function(t){return t.currentIndex}))},setIndexes:function(t){var e=this;t.forEach((function(t,i){e.setColumnIndex(i,t)}))},confirm:function(){this.children.forEach((function(t){return t.stopMomentum()})),this.emit("confirm")},cancel:function(){this.emit("cancel")},genTitle:function(){var t=this.$createElement,e=this.slots("title");return e||(this.title?t("div",{class:["van-ellipsis",j("title")]},[this.title]):void 0)},genToolbar:function(){var t=this.$createElement;if(this.showToolbar)return t("div",{class:j("toolbar")},[this.slots()||[t("button",{attrs:{type:"button"},class:j("cancel"),on:{click:this.cancel}},[this.cancelButtonText||$("cancel")]),this.genTitle(),t("button",{attrs:{type:"button"},class:j("confirm"),on:{click:this.confirm}},[this.confirmButtonText||$("confirm")])]])},genColumns:function(){var t=this.$createElement,e=this.itemPxHeight,i=e*this.visibleItemCount,n={height:e+"px"},s={height:i+"px"},a={backgroundSize:"100% "+(i-e)/2+"px"};return t("div",{class:j("columns"),style:s,on:{touchmove:o["c"]}},[this.genColumnItems(),t("div",{class:j("mask"),style:a}),t("div",{class:[r["f"],j("frame")],style:n})])},genColumnItems:function(){var t=this,e=this.$createElement;return this.formattedColumns.map((function(i,n){return e(S,{attrs:{valueKey:t.valueKey,allowHtml:t.allowHtml,className:i.className,itemHeight:t.itemPxHeight,defaultIndex:i.defaultIndex||+t.defaultIndex,swipeDuration:t.swipeDuration,visibleItemCount:t.visibleItemCount,initialOptions:i.values},on:{change:function(){t.onChange(n)}}})}))}},render:function(t){return t("div",{class:j()},["top"===this.toolbarPosition?this.genToolbar():t(),this.loading?t(d["a"],{class:j("loading")}):t(),this.slots("columns-top"),this.genColumns(),this.slots("columns-bottom"),"bottom"===this.toolbarPosition?this.genToolbar():t()])}})},"2ddb":function(t,e,i){"use strict";var n=i("0248"),s=i.n(n);s.a},"7be2":function(t,e,i){"use strict";i.d(e,"g",(function(){return n})),i.d(e,"d",(function(){return a})),i.d(e,"b",(function(){return o})),i.d(e,"a",(function(){return r})),i.d(e,"c",(function(){return c})),i.d(e,"e",(function(){return l})),i.d(e,"f",(function(){return d}));var n="#fff",s="van-hairline",a=s+"--top",o=s+"--left",r=s+"--bottom",c=s+"--surround",l=s+"--top-bottom",d=s+"-unset--top-bottom"},8094:function(t,e,i){"use strict";i.d(e,"a",(function(){return n})),i.d(e,"b",(function(){return s}));var n=44,s={title:String,loading:Boolean,itemHeight:[Number,String],showToolbar:Boolean,cancelButtonText:String,confirmButtonText:String,allowHtml:{type:Boolean,default:!0},visibleItemCount:{type:[Number,String],default:5},swipeDuration:{type:[Number,String],default:1e3}}},"8e8e":function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));var n=i("e10b"),s=i("94e7"),a=i("cc52"),o=i("8e95"),r=function(t){var e=t.parent,i=t.bem,r=t.role;return{mixins:[Object(a["a"])(e),s["a"]],props:{name:null,value:null,disabled:Boolean,iconSize:[Number,String],checkedColor:String,labelPosition:String,labelDisabled:Boolean,shape:{type:String,default:"round"},bindGroup:{type:Boolean,default:!0}},computed:{disableBindRelation:function(){return!this.bindGroup},isDisabled:function(){return this.parent&&this.parent.disabled||this.disabled},direction:function(){return this.parent&&this.parent.direction||null},iconStyle:function(){var t=this.checkedColor||this.parent&&this.parent.checkedColor;if(t&&this.checked&&!this.isDisabled)return{borderColor:t,backgroundColor:t}},tabindex:function(){return this.isDisabled||"radio"===r&&!this.checked?-1:0}},methods:{onClick:function(t){var e=this,i=t.target,n=this.$refs.icon,s=n===i||n.contains(i);this.isDisabled||!s&&this.labelDisabled?this.$emit("click",t):(this.toggle(),setTimeout((function(){e.$emit("click",t)})))},genIcon:function(){var t=this.$createElement,e=this.checked,s=this.iconSize||this.parent&&this.parent.iconSize;return t("div",{ref:"icon",class:i("icon",[this.shape,{disabled:this.isDisabled,checked:e}]),style:{fontSize:Object(o["a"])(s)}},[this.slots("icon",{checked:e})||t(n["a"],{attrs:{name:"success"},style:this.iconStyle})])},genLabel:function(){var t=this.$createElement,e=this.slots();if(e)return t("span",{class:i("label",[this.labelPosition,{disabled:this.isDisabled}])},[e])}},render:function(){var t=arguments[0],e=[this.genIcon()];return"left"===this.labelPosition?e.unshift(this.genLabel()):e.push(this.genLabel()),t("div",{attrs:{role:r,tabindex:this.tabindex,"aria-checked":String(this.checked)},class:i([{disabled:this.isDisabled,"label-disabled":this.labelDisabled},this.direction]),on:{click:this.onClick}},[e])}}}},"94e7":function(t,e,i){"use strict";i.d(e,"a",(function(){return n}));var n={inject:{vanField:{default:null}},watch:{value:function(){var t=this.vanField;t&&(t.resetValidation(),t.validateWithTrigger("onChange"))}},created:function(){var t=this.vanField;t&&!t.children&&(t.children=this)}}},bd89:function(t,e,i){"use strict";var n=i("1bb4"),s=i("0261"),a=i("23c4"),o=i.n(a),r=i("292e"),c=i("8e95"),l=i("7be2"),d=i("fbbe"),u=i("06cb"),h=i("39bf"),f=i("e10b"),m=i("1132"),p=Object(r["a"])("button"),v=p[0],g=p[1];function b(t,e,i,n){var s,a=e.tag,r=e.icon,c=e.type,d=e.color,p=e.plain,v=e.disabled,b=e.loading,y=e.hairline,x=e.loadingText,C={};function _(t){b||v||(Object(u["a"])(n,"click",t),Object(h["a"])(n))}function O(t){Object(u["a"])(n,"touchstart",t)}d&&(C.color=p?d:l["g"],p||(C.background=d),-1!==d.indexOf("gradient")?C.border=0:C.borderColor=d);var k=[g([c,e.size,{plain:p,loading:b,disabled:v,hairline:y,block:e.block,round:e.round,square:e.square}]),(s={},s[l["c"]]=y,s)];function S(){var n,s=[];return b?s.push(t(m["a"],{class:g("loading"),attrs:{size:e.loadingSize,type:e.loadingType,color:"currentColor"}})):r&&s.push(t(f["a"],{attrs:{name:r,classPrefix:e.iconPrefix},class:g("icon")})),n=b?x:i.default?i.default():e.text,n&&s.push(t("span",{class:g("text")},[n])),s}return t(a,o()([{style:C,class:k,attrs:{type:e.nativeType,disabled:v},on:{click:_,touchstart:O}},Object(u["b"])(n)]),[t("div",{class:g("content")},[S()])])}b.props=Object(n["a"])(Object(n["a"])({},h["c"]),{},{text:String,icon:String,color:String,block:Boolean,plain:Boolean,round:Boolean,square:Boolean,loading:Boolean,hairline:Boolean,disabled:Boolean,iconPrefix:String,nativeType:String,loadingText:String,loadingType:String,tag:{type:String,default:"button"},type:{type:String,default:"default"},size:{type:String,default:"normal"},loadingSize:{type:String,default:"20px"}});var y,x=v(b),C=Object(r["a"])("dialog"),_=C[0],O=C[1],k=C[2],S=_({mixins:[Object(d["a"])()],props:{title:String,width:[Number,String],message:String,className:null,callback:Function,beforeClose:Function,messageAlign:String,cancelButtonText:String,cancelButtonColor:String,confirmButtonText:String,confirmButtonColor:String,showCancelButton:Boolean,transition:{type:String,default:"van-dialog-bounce"},showConfirmButton:{type:Boolean,default:!0},overlay:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!1},allowHtml:{type:Boolean,default:!0}},data:function(){return{loading:{confirm:!1,cancel:!1}}},methods:{onClickOverlay:function(){this.handleAction("overlay")},handleAction:function(t){var e=this;this.$emit(t),this.value&&(this.beforeClose?(this.loading[t]=!0,this.beforeClose(t,(function(i){!1!==i&&e.loading[t]&&e.onClose(t),e.loading.confirm=!1,e.loading.cancel=!1}))):this.onClose(t))},onClose:function(t){this.close(),this.callback&&this.callback(t)},onOpened:function(){this.$emit("opened")},onClosed:function(){this.$emit("closed")},genButtons:function(){var t,e=this,i=this.$createElement,n=this.showCancelButton&&this.showConfirmButton;return i("div",{class:[l["d"],O("footer",{buttons:n})]},[this.showCancelButton&&i(x,{attrs:{size:"large",loading:this.loading.cancel,text:this.cancelButtonText||k("cancel")},class:O("cancel"),style:{color:this.cancelButtonColor},on:{click:function(){e.handleAction("cancel")}}}),this.showConfirmButton&&i(x,{attrs:{size:"large",loading:this.loading.confirm,text:this.confirmButtonText||k("confirm")},class:[O("confirm"),(t={},t[l["b"]]=n,t)],style:{color:this.confirmButtonColor},on:{click:function(){e.handleAction("confirm")}}})])},genContent:function(t,e){var i=this.$createElement;if(e)return i("div",{class:O("content")},[e]);var n=this.message,s=this.messageAlign;if(n){var a,r,c={class:O("message",(a={"has-title":t},a[s]=s,a)),domProps:(r={},r[this.allowHtml?"innerHTML":"textContent"]=n,r)};return i("div",{class:O("content")},[i("div",o()([{},c]))])}}},render:function(){var t=arguments[0];if(this.shouldRender){var e=this.message,i=this.slots(),n=this.slots("title")||this.title,s=n&&t("div",{class:O("header",{isolated:!e&&!i})},[n]);return t("transition",{attrs:{name:this.transition},on:{afterEnter:this.onOpened,afterLeave:this.onClosed}},[t("div",{directives:[{name:"show",value:this.value}],attrs:{role:"dialog","aria-labelledby":this.title||e},class:[O(),this.className],style:{width:Object(c["a"])(this.width)}},[s,this.genContent(n,i),this.genButtons()])])}}}),w=i("6f1a");function I(t){return document.body.contains(t)}function j(){y&&y.$destroy(),y=new(s["a"].extend(S))({el:document.createElement("div"),propsData:{lazyRender:!1}}),y.$on("input",(function(t){y.value=t}))}function $(t){return w["f"]?Promise.resolve():new Promise((function(e,i){y&&I(y.$el)||j(),Object(n["a"])(y,$.currentOptions,t,{resolve:e,reject:i})}))}$.defaultOptions={value:!0,title:"",width:"",message:"",overlay:!0,className:"",allowHtml:!0,lockScroll:!0,transition:"van-dialog-bounce",beforeClose:null,overlayClass:"",overlayStyle:null,messageAlign:"",getContainer:"body",cancelButtonText:"",cancelButtonColor:null,confirmButtonText:"",confirmButtonColor:null,showConfirmButton:!0,showCancelButton:!1,closeOnPopstate:!1,closeOnClickOverlay:!1,callback:function(t){y["confirm"===t?"resolve":"reject"](t)}},$.alert=$,$.confirm=function(t){return $(Object(n["a"])({showCancelButton:!0},t))},$.close=function(){y&&(y.value=!1)},$.setDefaultOptions=function(t){Object(n["a"])($.currentOptions,t)},$.resetDefaultOptions=function(){$.currentOptions=Object(n["a"])({},$.defaultOptions)},$.resetDefaultOptions(),$.install=function(){s["a"].use(S)},$.Component=S,s["a"].prototype.$dialog=$;e["a"]=$},cc18:function(t,e,i){"use strict";i.r(e);var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("section",{staticClass:"addressp"},[i("Header",{attrs:{title:t.title,historyb:t.historyb},on:{toSomeThing:t.toSomeThingGo}}),t.isEdit?t._e():i("div",{staticClass:"list-box"},[i("p",{staticClass:"hint van-hairline--bottom"},[t._v("\n 已创建\n "),i("span",{staticClass:"f-blue"},[t._v(t._s(t.addressList.length))]),t._v("个收货地址,最多\n "),i("span",{staticClass:"f-blue"},[t._v("20")]),t._v("个\n ")]),i("div",{staticClass:"data-box"},t._l(t.addressList,(function(e){return i("div",{staticClass:"block-group van-hairline--top-bottom"},[i("ul",{staticClass:"mui-row"},[i("li",{staticClass:"mui-col-sm-6 mui-col-xs-6"},[i("span",{staticClass:"fl"},[t._v("收货人:")]),i("p",[t._v(t._s(e.consignee))])]),i("li",{staticClass:"mui-col-sm-6 mui-col-xs-6"},[i("span",{staticClass:"fl"},[t._v("联系电话:")]),i("p",[t._v(t._s(e.mobile))])]),i("li",{staticClass:"mui-col-sm-12 mui-col-xs-12 clr"},[i("span",{staticClass:"fl"},[t._v("收货地址:")]),i("p",[t._v(t._s(e.province_val+" "+e.district_val+" "+e.city_val+" "+e.detail_address))])])]),i("div",{staticClass:"button clr"},[i("p",{staticClass:"fr"},[i("a",{staticClass:"f-black editx",attrs:{href:"javascript:void('0')"},on:{click:function(i){return t.editAdress(e.address_id)}}},[i("i",{staticClass:"iconfont icon-bianji"}),t._v("编辑\n ")]),i("a",{staticClass:"f-black delBtn",attrs:{href:"javascript:void('0')"},on:{click:function(i){return t.deleteAdress(e.address_id)}}},[i("i",{staticClass:"iconfont icon-shanchu"}),t._v("删除\n ")])]),i("van-checkbox",{staticClass:"fl",on:{click:function(i){return t.setDefault(e.address_id,e.is_default)}},model:{value:1==e.is_default,callback:function(i){t.$set(e,"is_default==1?true:false",i)},expression:"item.is_default==1?true:false"}},[t._v("默认地址")])],1)])})),0),i("div",{directives:[{name:"show",rawName:"v-show",value:!t.pointS,expression:"!pointS"}],staticClass:"but-foot",on:{click:t.addAssress}},[t._v("\n 新增地址 \n "),i("span",{staticClass:"icon iconfont"},[t._v("")])]),i("div",{directives:[{name:"show",rawName:"v-show",value:t.pointS,expression:"pointS"}],staticClass:"but-foot",on:{click:t.pointFunc}},[t._v("保存")])]),i("transition",{attrs:{name:"slide-right"}},[t.isEdit?i("div",{staticClass:"edit-box Router"},[i("div",{staticClass:"block"},[i("dl",{staticClass:"mui-row input-edit"},[i("dt",{staticClass:"mui-col-sm-3 mui-col-xs-3"},[t._v("收货人:")]),i("dd",{staticClass:"mui-col-sm-9 mui-col-xs-9"},[i("div",{staticClass:"mui-input-row add-input"},[i("input",{directives:[{name:"model",rawName:"v-model",value:t.consignee,expression:"consignee"}],attrs:{type:"text",placeholder:"请输入收货人"},domProps:{value:t.consignee},on:{input:function(e){e.target.composing||(t.consignee=e.target.value)}}})])])]),i("dl",{staticClass:"site-add-number mui-row input-edit"},[i("dt",{staticClass:"mui-col-sm-3 mui-col-xs-3 selectqu"},[i("div",{staticClass:"selectBoxqu"},[i("div",{staticClass:"czselect mmSelect",on:{click:function(e){t.selectState=!t.selectState}}},[i("span",[t._v(t._s(t.selectVal))]),i("i",{staticClass:"icon iconfont icon-jinru1",class:{"icon-down-trangle":t.selectState}})]),i("ul",{directives:[{name:"show",rawName:"v-show",value:t.selectState,expression:"selectState"}],staticClass:"selectquval"},t._l(t.areaList,(function(e,n){return i("li",{on:{click:function(e){return t.sectUi(n)}}},[i("span",{staticClass:"fl"},[t._v(t._s(n))]),i("span",{staticClass:"fr"},[t._v(t._s(e))])])})),0)])]),i("dd",{staticClass:"mui-col-sm-9 mui-col-xs-9"},[i("div",{staticClass:"mui-input-row add-input"},[i("input",{directives:[{name:"model",rawName:"v-model",value:t.mobile,expression:"mobile"}],attrs:{type:"text",placeholder:"请输入手机号",onkeyup:"if(event.keyCode !=37 && event.keyCode != 39){if (!/^[\\d]+$/ig.test(this.value)){this.value='';}}"},domProps:{value:t.mobile},on:{input:function(e){e.target.composing||(t.mobile=e.target.value)}}})])])]),i("dl",{staticClass:"mui-row input-edit"},[i("dt",{staticClass:"mui-col-sm-3 mui-col-xs-3"},[t._v("所在地区:")]),i("dd",{staticClass:"mui-col-sm-9 mui-col-xs-9"},[i("input",{directives:[{name:"model",rawName:"v-model",value:t.xgsdz,expression:"xgsdz"}],attrs:{type:"text",placeholder:"请输入地址",readonly:""},domProps:{value:t.xgsdz},on:{click:t.showp,input:function(e){e.target.composing||(t.xgsdz=e.target.value)}}})])]),i("div",{staticClass:"input-edit"},[i("textarea",{directives:[{name:"model",rawName:"v-model",value:t.detail_address,expression:"detail_address"}],attrs:{placeholder:"请输入详细街道地址,如幸福街道幸福路112号"},domProps:{value:t.detail_address},on:{input:function(e){e.target.composing||(t.detail_address=e.target.value)}}})])]),i("van-switch-cell",{attrs:{title:"设为默认地址"},model:{value:t.is_default,callback:function(e){t.is_default=e},expression:"is_default"}}),i("div",{staticClass:"tip-msg"},[t._v(t._s(t.tips))]),i("div",{staticClass:"add-btn",on:{click:t.submitGo}},[t._v("保存")])],1):t._e()]),t.loading?i("van-loading",{staticClass:"loading-background",attrs:{type:"spinner",color:"#000"}}):t._e(),i("van-popup",{attrs:{position:"bottom"},model:{value:t.showPicker,callback:function(e){t.showPicker=e},expression:"showPicker"}},[i("van-picker",{ref:"test123",attrs:{"show-toolbar":"",columns:t.columns},on:{cancel:function(e){t.showPicker=!1},confirm:t.onConfirm,change:t.onChange}})],1)],1)},s=[],a=(i("5ab2"),i("e10e"),i("6d57"),i("e44b"),i("de78"),i("9bef")),o=i("0261"),r=i("9f3a"),c=i("1132"),l=i("2b6e"),d=i("0aad"),u=i("d5d9"),h=i("0a68"),f=i("bd89"),m=i("292e"),p=i("8e95"),v={size:[Number,String],value:null,loading:Boolean,disabled:Boolean,activeColor:String,inactiveColor:String,activeValue:{type:null,default:!0},inactiveValue:{type:null,default:!1}},g=i("94e7"),b=Object(m["a"])("switch"),y=b[0],x=b[1],C=y({mixins:[g["a"]],props:v,computed:{checked:function(){return this.value===this.activeValue},style:function(){return{fontSize:Object(p["a"])(this.size),backgroundColor:this.checked?this.activeColor:this.inactiveColor}}},methods:{onClick:function(t){if(this.$emit("click",t),!this.disabled&&!this.loading){var e=this.checked?this.inactiveValue:this.activeValue;this.$emit("input",e),this.$emit("change",e)}},genLoading:function(){var t=this.$createElement;if(this.loading){var e=this.checked?this.activeColor:this.inactiveColor;return t(c["a"],{class:x("loading"),attrs:{color:e}})}}},render:function(){var t=arguments[0],e=this.checked,i=this.loading,n=this.disabled;return t("div",{class:x({on:e,loading:i,disabled:n}),attrs:{role:"switch","aria-checked":String(e)},style:this.style,on:{click:this.onClick}},[t("div",{class:x("node")},[this.genLoading()])])}}),_=i("1bb4"),O=i("23c4"),k=i.n(O),S=i("06cb"),w=i("b37d"),I=Object(m["a"])("switch-cell"),j=I[0],$=I[1];function T(t,e,i,n){return t(w["a"],k()([{attrs:{center:!0,size:e.cellSize,title:e.title,border:e.border},class:$([e.cellSize])},Object(S["b"])(n)]),[t(C,{props:Object(_["a"])({},e),on:Object(_["a"])({},n.listeners)})])}T.props=Object(_["a"])(Object(_["a"])({},v),{},{title:String,cellSize:String,border:{type:Boolean,default:!0},size:{type:String,default:"24px"}});var B=j(T),P=i("57af");function D(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function V(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?D(Object(i),!0).forEach((function(e){Object(a["a"])(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):D(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}o["a"].use(c["a"]).use(l["a"]).use(d["a"]).use(u["a"]).use(h["a"]).use(f["a"]).use(C).use(B);var E={name:"addressp",data:function(){var t;return t={title:"收货地址列表",isEdit:!1,historyb:!0,pointS:this.$route.query.points,iso:this.$route.query.fp,address_id_p:this.$route.query.address_id,zytp:this.$route.query.zyType,tips:"",edOrAdd:!1,edid:"",selectState:!1,selectVal:"0086",consignee:"",mobile:"",detail_address:"",is_default:!1,showPicker:!1,columns:[],com_province:"北京",com_city:"北京",com_area:"东城区",xgsdz:"北京北京东城区",com_province_id:2,com_city_id:52,com_area_id:500},Object(a["a"])(t,"columns",[{values:"",className:"column1"},{values:"",className:"column2",defaultIndex:0},{values:"",className:"column3",defaultIndex:0}]),Object(a["a"])(t,"data",""),Object(a["a"])(t,"pageShow",!1),Object(a["a"])(t,"cityDates",""),t},computed:V({},Object(r["c"])({loading:function(t){return t.address.loading},addressList:function(t){return t.address.addressList},addressInfo:function(t){return t.address.addressInfo},addressInfoState:function(t){return t.address.addressInfoState},areaList:function(t){return t.address.areaList},addressAllInfo:function(t){return t.userInfo.addressInfo}})),watch:{addressAllInfo:function(t){t&&(this.data=t,this.columns[0].values=Object.values(t).map((function(t){return{text:t.text,value:t.value}})),this.columns[1].values=Object.values(t[0].children).map((function(t){return{text:t.text,value:t.value}})),this.columns[2].values=Object.values(t[0].children[0].children).map((function(t){return{text:t.text,value:t.value}})),this.$nextTick((function(){this.pageShow=!0})))},addressInfoState:function(t){t&&(this.consignee=this.addressInfo.consignee,this.mobile=this.addressInfo.mobile,this.detail_address=this.addressInfo.detail_address,this.is_default=1==this.addressInfo.is_default,this.selectVal=this.addressInfo.intl_code,this.fillData())}},created:function(){this.$store.dispatch({type:"recvlistUser"}),this.$store.dispatch({type:"getOverseaMsgArea"}),this.$store.dispatch({type:"allAddressInfo"}),this.isOrder()},methods:{fillData:function(){if(this.addressInfo){var t=this.addressInfo;t.province&&(this.com_province_id=t.province,this.com_city_id=t.city,this.com_area_id=t.district)}if(this.com_province_id){var e=this.toIdByName(this.com_province_id,this.com_city_id,this.com_area_id),i=e.province,n=e.city,s=e.area;this.com_province=i,this.com_city=n,this.com_area=s,this.xgsdz="".concat(i).concat(n).concat(s)}},toIdByName:function(t,e,i){for(var n,s,a,o=0;o<this.data.length;o++){var r=this.data[o];if(r.value==t){n=r.text;for(var c=0;c<r.children.length;c++){var l=r.children[c];if(l.value==e){s=l.text;for(var d=0;d<l.children.length;d++){var u=l.children[d];u.value==i&&(a=u.text)}}}}}return{province:n,city:s,area:a}},isOrder:function(){this.iso&&(this.address_id_p?this.editAdress(this.address_id_p,1):this.addAssress())},editUi:function(){this.isEdit?(this.title="收货地址列表",this.isEdit=!1):(this.title="编辑收货地址",this.isEdit=!0)},toSomeThingGo:function(){this.isEdit?this.editUi():history.go(-1)},addAssress:function(){20!=this.addressList.length?(this.editUi(),this.edOrAdd=!1,this.consignee="",this.mobile="",this.detail_address="",this.xgsdz="北京北京东城区",this.is_default=!0,this.selectVal="0086",this.com_province_id=2,this.com_city_id=52,this.com_area_id=500,this.com_province="北京",this.com_city="北京",this.com_area="东城区"):Object(h["a"])({message:"最多只能设置20个收货地址",duration:2e3})},deleteAdress:function(t){var e=this;f["a"].confirm({message:"请确认是否要删除当前地址吗?"}).then((function(){e.$store.dispatch({type:"deleteAddress",address_id:t})})).catch((function(){}))},editAdress:function(t){this.editUi(),this.edOrAdd=!0,this.edid=t,this.$store.dispatch({type:"infoAddress",address_id:t})},sectUi:function(t){this.selectState=!1,this.selectVal=t},setDefault:function(t,e){1==e?Object(h["a"])({message:"当前地址已经是默认地址,请选择其他地址",duration:2e3}):this.$store.dispatch({type:"setdefault",address_id:t})},showp:function(){var t=this;this.showPicker=!this.showPicker,this.$nextTick((function(){t.$refs["test123"].setColumnValues(1,t.cityDate(t.data,t.com_province)),t.$refs["test123"].setColumnValues(2,t.county(t.data,t.com_city)),t.$refs["test123"].setColumnValue(0,t.com_province),t.$refs["test123"].setColumnValue(1,t.com_city),t.$refs["test123"].setColumnValue(2,t.com_area)}))},onConfirm:function(t){this.showPicker=!1,this.com_province=t[0]["text"],this.com_city=t[1]["text"],this.com_area=t[2]["text"],this.xgsdz=this.com_province+this.com_city+this.com_area,this.com_province_id=t[0]["value"],this.com_city_id=t[1]["value"],this.com_area_id=t[2]["value"]},onChange:function(t,e){t.setColumnValues(1,this.cityDate(this.data,e[0].text)),t.setColumnValues(2,this.county(this.data,e[1].text))},cityDate:function(t,e){var i=this;return t.forEach((function(t){t.text==e&&(i.cityDates=t)})),i.cityDates.children.map((function(t){return{text:t.text,value:t.value}}))},county:function(t,e){var i=this,n="";return i.cityDates.children.forEach((function(t){t.text==e&&(n=t)})),""==n&&(n=i.cityDates.children[0]),n.children.map((function(t){return{text:t.text,value:t.value}}))},pointFunc:function(){for(var t=this.addressList,e="",i=0;i<t.length;i++)1==t[i].is_default&&(e=t[i].address_id);e||Object(h["a"])({message:"请选择一个地址",duration:2e3}),this.$store.dispatch({type:"changeReceivePrizeAddress",point_exchange_id:this.pointS,address_id:e})},submitGo:function(){if(this.consignee)if(this.tips="",this.mobile)if(this.mobile.length<5||this.mobile.length>11)this.tips="手机号格式不正确";else{var t=/^[+]?\d*$/;if(t.test(this.mobile))if(this.tips="",this.com_province_id||this.com_city_id)if(this.tips="",this.detail_address){this.tips="";var e=this.edid;this.iso&&this.address_id_p&&(e=this.address_id_p),this.edOrAdd?this.$store.dispatch({type:"updateAddress",consignee:this.consignee,province:this.com_province_id,city:this.com_city_id,district:this.com_area_id,detail_address:this.detail_address,address_type:0,is_default:this.is_default?"1":0,mobile:this.mobile,intl_code:this.selectVal,address_id:e,orderpg:!!this.iso}):this.$store.dispatch({type:"createAddress",consignee:this.consignee,province:this.com_province_id,city:this.com_city_id,district:this.com_area_id,detail_address:this.detail_address,address_type:0,is_default:this.is_default?"1":0,mobile:this.mobile,intl_code:this.selectVal,orderpg:!!this.iso})}else this.tips="请输入详细收货地址";else this.tips="请选择省市区";else this.tips="手机号格式不正确"}else this.tips="请输入手机号";else this.tips="请输入收货人"}},components:{Header:P["a"]}},N=E,A=(i("2ddb"),i("9ca4")),z=Object(A["a"])(N,n,s,!1,null,"770c6450",null);e["default"]=z.exports},cc52:function(t,e,i){"use strict";function n(t){var e=[];function i(t){t.forEach((function(t){e.push(t),t.componentInstance&&i(t.componentInstance.$children.map((function(t){return t.$vnode}))),t.children&&i(t.children)}))}return i(t),e}function s(t,e){var i=e.$vnode.componentOptions;if(i&&i.children){var s=n(i.children);t.sort((function(t,e){return s.indexOf(t.$vnode)-s.indexOf(e.$vnode)}))}}function a(t,e){var i,n;void 0===e&&(e={});var a=e.indexKey||"index";return{inject:(i={},i[t]={default:null},i),computed:(n={parent:function(){return this.disableBindRelation?null:this[t]}},n[a]=function(){return this.bindRelation(),this.parent?this.parent.children.indexOf(this):null},n),mounted:function(){this.bindRelation()},beforeDestroy:function(){var t=this;this.parent&&(this.parent.children=this.parent.children.filter((function(e){return e!==t})))},methods:{bindRelation:function(){if(this.parent&&-1===this.parent.children.indexOf(this)){var t=[].concat(this.parent.children,[this]);s(t,this.parent),this.parent.children=t}}}}}function o(t){return{provide:function(){var e;return e={},e[t]=this,e},data:function(){return{children:[]}}}}i.d(e,"a",(function(){return a})),i.d(e,"b",(function(){return o}))},d5d9:function(t,e,i){"use strict";var n=i("292e"),s=i("8e8e"),a=Object(n["a"])("checkbox"),o=a[0],r=a[1];e["a"]=o({mixins:[Object(s["a"])({bem:r,role:"checkbox",parent:"vanCheckbox"})],computed:{checked:{get:function(){return this.parent?-1!==this.parent.value.indexOf(this.name):this.value},set:function(t){this.parent?this.setParentValue(t):this.$emit("input",t)}}},watch:{value:function(t){this.$emit("change",t)}},methods:{toggle:function(t){var e=this;void 0===t&&(t=!this.checked),clearTimeout(this.toggleTask),this.toggleTask=setTimeout((function(){e.checked=t}))},setParentValue:function(t){var e=this.parent,i=e.value.slice();if(t){if(e.max&&i.length>=e.max)return;-1===i.indexOf(this.name)&&(i.push(this.name),e.$emit("input",i))}else{var n=i.indexOf(this.name);-1!==n&&(i.splice(n,1),e.$emit("input",i))}}}})}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0da6f5bc"],{"166e":function(e,t,n){"use strict";var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div")},i=[],o=(n("5ab2"),n("6d57"),n("e44b"),n("e10e"),n("9bef")),s=(n("5490"),n("9f3a")),r=n("4260");function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){Object(o["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var u={name:"wxShare",props:{isLogin:{type:Boolean,default:!0},url:{type:String,default:window.location.href},title:{type:String,default:"好物分享给你,帮我助力,我们一起免费拿样品"},desc:{type:String,default:"在吗?拜托帮我点一下,你也能免费申请元器件样品~帮我助力 你拿样品"},link:{type:String,default:window.location.origin+"/v3/samplereg?uid="+r["a"].getCookie("Yo4teW_uid")},imgUrl:{type:String,default:"http://img.ichunt.com/images/ichunt/self_sample/apply.png"}},data:function(){return{shareObj:{title:this.title,desc:this.desc,link:this.link,imgUrl:this.imgUrl,success:function(e){},error:function(){}}}},computed:d({},Object(s["c"])({wxShareInfo:function(e){return e.common.wxShareInfo},wxShareState:function(e){return e.common.wxShareState}})),watch:{wxShareState:function(e){e&&this.share()}},created:function(){this.isLogin?r["a"].getCookie("Yo4teW_uid")&&this.$store.dispatch({type:"wxShare",current_url:location.href}):this.$store.dispatch({type:"wxShare",current_url:location.href})},methods:{share:function(){var e=this;try{setShareInfo({title:e.shareObj.title,summary:e.shareObj.title,pic:e.shareObj.imgUrl,url:e.shareObj.link,WXconfig:{swapTitleInWX:!0,appId:e.wxShareInfo.appId,timestamp:e.wxShareInfo.timestamp,nonceStr:e.wxShareInfo.nonceStr,signature:e.wxShareInfo.signature}})}catch(t){}wx.config({debug:!1,appId:e.wxShareInfo.appId,timestamp:e.wxShareInfo.timestamp,nonceStr:e.wxShareInfo.nonceStr,signature:e.wxShareInfo.signature,jsApiList:["onMenuShareTimeline","onMenuShareAppMessage","onMenuShareQQ","onMenuShareWeibo","onMenuShareQZone","updateAppMessageShareData","updateTimelineShareData"]}),wx.ready((function(){wx.checkJsApi({jsApiList:["onMenuShareTimeline","onMenuShareAppMessage","onMenuShareQQ","onMenuShareWeibo","onMenuShareQZone","updateAppMessageShareData","updateTimelineShareData"],success:function(e){}}),wx.onMenuShareTimeline(e.shareObj),wx.onMenuShareAppMessage(e.shareObj),wx.onMenuShareWeibo(e.shareObj),wx.onMenuShareQZone(e.shareObj),wx.onMenuShareQQ?wx.onMenuShareQQ(e.shareObj):wx.updateAppMessageShareData(e.shareObj),wx.updateTimelineShareData(e.shareObj)}))}}},l=u,p=n("9ca4"),f=Object(p["a"])(l,a,i,!1,null,null,null);t["a"]=f.exports},5490:function(e,t,n){"use strict";n("9a0e")("link",(function(e){return function(t){return e(this,"a","href",t)}}))},"556f":function(e,t,n){},"7be2":function(e,t,n){"use strict";n.d(t,"g",(function(){return a})),n.d(t,"d",(function(){return o})),n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return c})),n.d(t,"e",(function(){return d})),n.d(t,"f",(function(){return u}));var a="#fff",i="van-hairline",o=i+"--top",s=i+"--left",r=i+"--bottom",c=i+"--surround",d=i+"--top-bottom",u=i+"-unset--top-bottom"},"9a0e":function(e,t,n){var a=n("e46b"),i=n("238a"),o=n("f6b4"),s=/"/g,r=function(e,t,n,a){var i=String(o(e)),r="<"+t;return""!==n&&(r+=" "+n+'="'+String(a).replace(s,"&quot;")+'"'),r+">"+i+"</"+t+">"};e.exports=function(e,t){var n={};n[e]=t(r),a(a.P+a.F*i((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3})),"String",n)}},b76a:function(e,t,n){"use strict";(function(e){n.d(t,"c",(function(){return d})),n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return l}));var a=n("6f1a"),i=Date.now();function o(e){var t=Date.now(),n=Math.max(0,16-(t-i)),a=setTimeout(e,n);return i=t+n,a}var s=a["f"]?e:window,r=s.requestAnimationFrame||o,c=s.cancelAnimationFrame||s.clearTimeout;function d(e){return r.call(s,e)}function u(e){d((function(){d(e)}))}function l(e){c.call(s,e)}}).call(this,n("9edd"))},b7aa:function(e,t,n){"use strict";n.r(t);var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("section",{staticClass:"sample-apply"},[n("Header",{attrs:{title:e.title,meaushow:e.meaushow,bgcolor:e.bgcolor}}),n("wxShare",{attrs:{url:e.shareUrl}}),e.ypGoodDetail.goods_info?n("van-collapse",{attrs:{accordion:"",border:e.noborder},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[n("van-collapse-item",{attrs:{title:"商品信息",name:"1",border:e.noborder}},[n("div",{staticClass:"info-con clr"},[n("div",{staticClass:"fl img-box"},[n("img",{attrs:{src:e.ypGoodDetail.goods_images||"https://www.ichunt.com/v3/dist/res/m/images/materiel_img_3.png",alt:""}})]),e.ypGoodDetail.goods_info?n("div",{staticClass:"fr cb-box"},[n("div",{staticClass:"title"},[e._v(e._s(e.ypGoodDetail.goods_info.goods_name))]),n("p",[n("span",[e._v("类别:")]),e._v(" "+e._s(e.ypGoodDetail.goods_info.class_id1_name))]),n("p",[n("span",[e._v("品牌:")]),e._v(e._s(e.ypGoodDetail.goods_info.brand_name))]),n("p",[n("span",[e._v("最大可申请数量:")]),e._v(e._s(e.ypGoodDetail.max_number||1))])]):e._e()]),e.ypGoodDetail.goods_info?n("div",{staticClass:"info-detail"},[n("p",[n("span",[e._v("型号: ")]),e._v(e._s(e.ypGoodDetail.goods_info.sku_name))]),n("p",{staticClass:"canshudetail"},[n("span",[e._v("参数描述: ")]),e._v("\n "+e._s(e.ypGoodDetail.goods_info.sku_name)+"由"+e._s(e.ypGoodDetail.goods_info.brand_name)+"设计生产制造,在猎芯网自营现货销售。"+e._s(e.ypGoodDetail.goods_info.goods_name)+"的封装/规格参数为:"+e._s(e.ypGoodDetail.goods_info.encap)+";您可以选择下载"+e._s(e.ypGoodDetail.goods_info.sku_name)+"中文资料等数据手册功能说明书,资料中有"+e._s(e.ypGoodDetail.goods_info.class_id1_name)+"、"+e._s(e.ypGoodDetail.goods_info.class_id2_name)+"详细使用方法及教程。\n ")]),n("p",[n("span",[e._v("需邀请好友人数: ")]),n("em",{staticClass:"f-red"},[e._v(e._s(e.ypGoodDetail.quota))])])]):e._e()])],1):e._e(),n("div",{staticClass:"form-info"},[e.addressInfo?n("div",{staticClass:"form-group adderss-sample",on:{click:function(t){return e.addressSample(e.addressInfo.address_id)}}},[n("h3",[n("p",[e._v(e._s(e.addressInfo.consignee)+"   "+e._s(e.addressInfo.mobile))]),n("p",[e._v(e._s(e.addressInfo.province_val+" "+e.addressInfo.district_val+" "+e.addressInfo.city_val+" "+e.addressInfo.detail_address))]),n("span",{staticClass:"fr icon iconfont icon-xiangyoujiankuohao"})])]):n("div",{staticClass:"form-group by",on:{click:e.adderssAdd}},[e._m(0)]),n("div",{staticClass:"form-group"},[e._m(1),n("input",{directives:[{name:"model",rawName:"v-model",value:e.com_name,expression:"com_name"}],attrs:{type:"text",placeholder:"深圳市猎芯科技有限公司"},domProps:{value:e.com_name},on:{input:function(t){t.target.composing||(e.com_name=t.target.value)}}})]),n("div",{staticClass:"form-group"},[n("h3",[e._v("  项目需求描述")]),n("textarea",{directives:[{name:"model",rawName:"v-model",value:e.sample_demand_desc,expression:"sample_demand_desc"}],staticClass:"placeh",attrs:{name:"",placeholder:"“参考描述:例1、无人机项目研发需要 例2、运动相机新方案验证需要 例3、毕业设计激光测距项目需要”"},domProps:{value:e.sample_demand_desc},on:{input:function(t){t.target.composing||(e.sample_demand_desc=t.target.value)}}})]),e._m(2),n("div",{staticClass:"line"})]),n("div",{staticClass:"fix-btns",on:{click:e.submitS}},[e._v("确认提交")]),e.ypGoodDetail.goods_info?n("div",{directives:[{name:"show",rawName:"v-show",value:e.successPop,expression:"successPop"}],staticClass:"submit-success-pop"},[n("div",{staticClass:"mask"}),n("div",{staticClass:"get-user-con"},[n("h3",[e._v("样片领取成功"),n("i",{staticClass:"icon iconfont icon-guanbi",on:{click:e.getuserf}})]),n("h2",[e._v(e._s(e.ypGoodDetail.goods_info.sku_name))]),n("div",{staticClass:"txt"},[n("span",[e._v("类别:"+e._s(e.ypGoodDetail.goods_info.class_id1_name))]),n("span",[e._v("品牌:"+e._s(e.ypGoodDetail.goods_info.brand_name))])]),n("div",{staticClass:"share-btn-wrap"},[n("span",{staticClass:"l",on:{click:e.toUrl}},[e._v("继续领取")]),n("span",{directives:[{name:"shareMask",rawName:"v-shareMask"}],staticClass:"r"},[e._v("给好友送免费样片")])]),e._m(3)])]):e._e(),e.loading?n("van-loading",{staticClass:"loading-background",attrs:{type:"spinner",color:"#000"}}):e._e()],1)},i=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("h3",[e._v("新增收货地址 "),n("span",{staticClass:"fr icon iconfont icon-xiangyoujiankuohao"})])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("h3",[n("span",{staticClass:"f-red"},[e._v("*")]),e._v("公司/机构/学校名称")])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"form-group by"},[n("div",{staticClass:"txt"},[n("span",[e._v("注意:")]),n("p",[e._v("1、请填写真是姓名(或某小姐/先生),并确保电话畅通,可能会有客服人员人工确认订单")]),n("p",[e._v("2、如果恶意刷单行为,本站将视情拒绝申请,猎芯网保留本活动解释权")])])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"tips"},[n("em",[e._v("*")]),e._v("快递预计1-5个工作日内送达,请耐心等待")])}],o=(n("5ab2"),n("6d57"),n("e44b"),n("e10e"),n("9bef")),s=n("0261"),r=n("9f3a"),c=n("57af"),d=n("166e"),u=n("292e"),l=n("cc52"),p=n("7be2"),f=Object(u["a"])("collapse"),h=f[0],m=f[1],v=h({mixins:[Object(l["b"])("vanCollapse")],props:{accordion:Boolean,value:[String,Number,Array],border:{type:Boolean,default:!0}},methods:{switch:function(e,t){this.accordion||(e=t?this.value.concat(e):this.value.filter((function(t){return t!==e}))),this.$emit("change",e),this.$emit("input",e)}},render:function(){var e,t=arguments[0];return t("div",{class:[m(),(e={},e[p["e"]]=this.border,e)]},[this.slots()])}}),_=n("1bb4"),b=n("6f1a"),g=n("b76a"),w=n("b37d"),y=n("f79b"),S=Object(u["a"])("collapse-item"),x=S[0],O=S[1],j=["title","icon","right-icon"],C=x({mixins:[Object(l["a"])("vanCollapse")],props:Object(_["a"])(Object(_["a"])({},y["a"]),{},{name:[Number,String],disabled:Boolean,isLink:{type:Boolean,default:!0}}),data:function(){return{show:null,inited:null}},computed:{currentName:function(){return Object(b["b"])(this.name)?this.name:this.index},expanded:function(){var e=this;if(!this.parent)return null;var t=this.parent,n=t.value,a=t.accordion;return a?n===this.currentName:n.some((function(t){return t===e.currentName}))}},created:function(){this.show=this.expanded,this.inited=this.expanded},watch:{expanded:function(e,t){var n=this;if(null!==t){e&&(this.show=!0,this.inited=!0);var a=e?this.$nextTick:g["c"];a((function(){var t=n.$refs,a=t.content,i=t.wrapper;if(a&&i){var o=a.offsetHeight;if(o){var s=o+"px";i.style.height=e?0:s,Object(g["b"])((function(){i.style.height=e?s:0}))}else n.onTransitionEnd()}}))}}},methods:{onClick:function(){if(!this.disabled){var e=this.parent,t=this.currentName,n=e.accordion&&t===e.value,a=n?"":t;e.switch(a,!this.expanded)}},onTransitionEnd:function(){this.expanded?this.$refs.wrapper.style.height="":this.show=!1},genTitle:function(){var e=this,t=this.$createElement,n=this.border,a=this.disabled,i=this.expanded,o=j.reduce((function(t,n){return e.slots(n)&&(t[n]=function(){return e.slots(n)}),t}),{});return this.slots("value")&&(o.default=function(){return e.slots("value")}),t(w["a"],{attrs:{role:"button",tabindex:a?-1:0,"aria-expanded":String(i)},class:O("title",{disabled:a,expanded:i,borderless:!n}),on:{click:this.onClick},scopedSlots:o,props:Object(_["a"])({},this.$props)})},genContent:function(){var e=this.$createElement;if(this.inited)return e("div",{directives:[{name:"show",value:this.show}],ref:"wrapper",class:O("wrapper"),on:{transitionend:this.onTransitionEnd}},[e("div",{ref:"content",class:O("content")},[this.slots()])])}},render:function(){var e=arguments[0];return e("div",{class:[O({border:this.index&&this.border})]},[this.genTitle(),this.genContent()])}}),D=n("0a68"),k=n("1132"),I=n("4260");function M(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function $(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?M(Object(n),!0).forEach((function(t){Object(o["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}s["a"].use(v).use(C).use(D["a"]).use(k["a"]);var G={name:"sampleapply",data:function(){return{title:"样片申请",meaushow:!0,bgcolor:"#fafafa",color:"#1080d0",activeName:"1",noborder:!1,successPop:!1,goods_id:this.$route.query.id,apply_num:"",com_name:"",sample_demand_desc:"",shareUrl:window.location.origin+"/v3/samplereg?uid="+I["a"].getCookie("Yo4teW_uid")}},computed:$({},Object(r["c"])({loading:function(e){return e.sampleapply.loading},addressInfo:function(e){return e.sampleapply.addressInfo},ypGoodDetail:function(e){return e.sampleapply.ypGoodDetail},submitState:function(e){return e.sampleapply.submitState},ordernum:function(e){return e.sampleapply.ordernum}})),watch:{submitState:function(e){e&&(this.successPop=!0)},apply_num:function(e){var t=this.ypGoodDetail.max_number;t?e>t&&(this.apply_num=t):this.apply_num=1}},created:function(){this.$store.dispatch({type:"getDetailYp",data:{id:this.goods_id}}),this.$store.dispatch({type:"recvlistSample"})},methods:{toUrl:function(){window.location.href="/h5/view/#/sample"},getuserf:function(){this.successPop=!1,window.location.href="/v3/user/order"},submitS:function(){var e=this;this.com_name?this.$store.dispatch({type:"selfSampleCreate",goods_id:e.goods_id,apply_num:e.apply_num,com_name:e.com_name,sample_demand_desc:e.sample_demand_desc,address_id:e.addressInfo.address_id}):Object(D["a"])("请输入单位名称")},addressSample:function(e){window.location.href="/h5/view/#/userAddress?points="+e},adderssAdd:function(){window.location.href="/h5/view/#/userAddress?fp=5"}},components:{Header:c["a"],wxShare:d["a"]}},P=G,A=(n("d1b0"),n("9ca4")),E=Object(A["a"])(P,a,i,!1,null,"770dc6a6",null);t["default"]=E.exports},cc52:function(e,t,n){"use strict";function a(e){var t=[];function n(e){e.forEach((function(e){t.push(e),e.componentInstance&&n(e.componentInstance.$children.map((function(e){return e.$vnode}))),e.children&&n(e.children)}))}return n(e),t}function i(e,t){var n=t.$vnode.componentOptions;if(n&&n.children){var i=a(n.children);e.sort((function(e,t){return i.indexOf(e.$vnode)-i.indexOf(t.$vnode)}))}}function o(e,t){var n,a;void 0===t&&(t={});var o=t.indexKey||"index";return{inject:(n={},n[e]={default:null},n),computed:(a={parent:function(){return this.disableBindRelation?null:this[e]}},a[o]=function(){return this.bindRelation(),this.parent?this.parent.children.indexOf(this):null},a),mounted:function(){this.bindRelation()},beforeDestroy:function(){var e=this;this.parent&&(this.parent.children=this.parent.children.filter((function(t){return t!==e})))},methods:{bindRelation:function(){if(this.parent&&-1===this.parent.children.indexOf(this)){var e=[].concat(this.parent.children,[this]);i(e,this.parent),this.parent.children=e}}}}}function s(e){return{provide:function(){var t;return t={},t[e]=this,t},data:function(){return{children:[]}}}}n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return s}))},d1b0:function(e,t,n){"use strict";var a=n("556f"),i=n.n(a);i.a}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1401b758"],{4520:function(e,t,o){},"51d9":function(e,t,o){"use strict";o.r(t);var s=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("section",{staticClass:"wallet-activate"},[o("Header",{attrs:{title:e.title,meaushow:e.meaushow}}),o("div",{directives:[{name:"show",rawName:"v-show",value:e.step1,expression:"step1"}],staticClass:"activate-content"},[o("ul",{staticClass:"form-wrap"},[o("li",{staticClass:"inp-wrap"},[o("label",{staticClass:"va-m"},[e._v("安全手机号")]),o("br"),o("input",{directives:[{name:"model",rawName:"v-model",value:e.form.safeMobile,expression:"form.safeMobile"}],staticClass:"va-m inp",attrs:{type:"number",placeholder:"请输入手机号"},domProps:{value:e.form.safeMobile},on:{input:function(t){t.target.composing||e.$set(e.form,"safeMobile",t.target.value)}}})]),o("li",{directives:[{name:"show",rawName:"v-show",value:e.activateShowImgCode,expression:"activateShowImgCode"}],staticClass:"inp-wrap yzmImg"},[o("label",{staticClass:"va-m"},[e._v("图片验证码")]),o("br"),o("input",{directives:[{name:"model",rawName:"v-model",value:e.form.imgCode,expression:"form.imgCode"}],staticClass:"va-m inp",attrs:{type:"text",placeholder:"请输入验证码"},domProps:{value:e.form.imgCode},on:{input:function(t){t.target.composing||e.$set(e.form,"imgCode",t.target.value)}}}),o("img",{staticClass:"img-code va-m",attrs:{src:e.imgCodeVal,alt:"图片验证码"},on:{click:e.changeImgCode}})]),o("li",{staticClass:"inp-wrap"},[o("label",{staticClass:"va-m"},[e._v("验证码")]),o("br"),o("input",{directives:[{name:"model",rawName:"v-model",value:e.form.verifyCode,expression:"form.verifyCode"}],staticClass:"va-m inp",attrs:{type:"text",placeholder:"请输入验证码"},domProps:{value:e.form.verifyCode},on:{input:function(t){t.target.composing||e.$set(e.form,"verifyCode",t.target.value)}}}),e.yzmSend?o("a",{staticClass:"send-yzm va-m",attrs:{href:"javascript:;"},on:{click:e.getCode}},[e._v(e._s(e.countDownText))]):o("a",{staticClass:"sending-yzm va-m",attrs:{href:"javascript:;"}},[e._v("再次发送("+e._s(e.countDown)+"s)")])])]),o("p",{directives:[{name:"show",rawName:"v-show",value:e.formError,expression:"formError"}],staticClass:"form-error"},[e._v(e._s(e.formMsg))]),o("a",{staticClass:"next",class:{noClick:e.isClick},attrs:{href:"javascript:;"},on:{click:e.next}},[e._v("下一步")])]),o("div",{directives:[{name:"show",rawName:"v-show",value:e.step2,expression:"step2"}],staticClass:"activate-content"},[o("ul",{staticClass:"form-wrap"},[o("li",{staticClass:"inp-wrap"},[o("label",{staticClass:"va-m"},[e._v("设置支付密码")]),o("br"),e.showPassword?[o("input",{directives:[{name:"model",rawName:"v-model",value:e.form.password,expression:"form.password"}],staticClass:"va-m inp",attrs:{type:"password",placeholder:"密码由6~20位字母、数字组合而成"},domProps:{value:e.form.password},on:{input:function(t){t.target.composing||e.$set(e.form,"password",t.target.value)}}})]:[o("input",{directives:[{name:"model",rawName:"v-model",value:e.form.password,expression:"form.password"}],staticClass:"va-m inp",attrs:{type:"text",placeholder:"密码由6~20位字母、数字组合而成"},domProps:{value:e.form.password},on:{input:function(t){t.target.composing||e.$set(e.form,"password",t.target.value)}}})],e.showPassword?o("van-icon",{staticClass:"va-m f-r",attrs:{name:"closed-eye"},on:{click:e.changeShow}}):o("van-icon",{staticClass:"va-m f-r",attrs:{name:"eye-o"},on:{click:e.changeShow}})],2),o("li",{staticClass:"inp-wrap"},[o("label",{staticClass:"va-m"},[e._v("确认支付密码")]),o("br"),e.showPasswordConfirm?[o("input",{directives:[{name:"model",rawName:"v-model",value:e.form.passwordConfirm,expression:"form.passwordConfirm"}],staticClass:"va-m inp",attrs:{type:"password",placeholder:"请再次输入上面的密码"},domProps:{value:e.form.passwordConfirm},on:{input:function(t){t.target.composing||e.$set(e.form,"passwordConfirm",t.target.value)}}})]:[o("input",{directives:[{name:"model",rawName:"v-model",value:e.form.passwordConfirm,expression:"form.passwordConfirm"}],staticClass:"va-m inp",attrs:{type:"text",placeholder:"请再次输入上面的密码"},domProps:{value:e.form.passwordConfirm},on:{input:function(t){t.target.composing||e.$set(e.form,"passwordConfirm",t.target.value)}}})],e.showPasswordConfirm?o("van-icon",{staticClass:"va-m f-r",attrs:{name:"closed-eye"},on:{click:e.changeShowConfirm}}):o("van-icon",{staticClass:"va-m f-r",attrs:{name:"eye-o"},on:{click:e.changeShowConfirm}})],2)]),o("p",{directives:[{name:"show",rawName:"v-show",value:e.formError,expression:"formError"}],staticClass:"form-error"},[e._v(e._s(e.formMsg))]),o("a",{staticClass:"confirm",attrs:{href:"javascript:;"},on:{click:e.confirm}},[e._v("确认")])])],1)},r=[],a=(o("5ab2"),o("6d57"),o("e44b"),o("e10e"),o("9dd9"),o("9bef")),i=o("0261"),n=o("9f3a"),m=o("57af"),c=o("e10b"),f=o("365c");function l(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,s)}return o}function p(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?l(Object(o),!0).forEach((function(t){Object(a["a"])(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):l(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}i["a"].use(c["a"]);var d={name:"WalletActivate",data:function(){return{title:"激活钱包",meaushow:!0,showPassword:!0,showPasswordConfirm:!0,yzmSend:!0,countDown:60,countDownText:"发送验证码",step1:!0,step2:!1,form:{safeMobile:"",verifyCode:"",imgCode:"",password:"",passwordConfirm:""},formError:!1,formMsg:"",imgCodeVal:f["b"]+"public/verify",isClick:!0}},computed:p({},Object(n["c"])({activateShowImgCode:function(e){return e.wallet.activateShowImgCode},activateCountDownFlag:function(e){return e.wallet.activateCountDownFlag}})),watch:{activateCountDownFlag:function(e){e?(this.yzmSend=!1,this.timeNum()):this.yzmSend=!0},form:{deep:!0,handler:function(e){e.safeMobile&&e.verifyCode?this.isClick=!1:this.isClick=!0}}},created:function(){},methods:{changeShow:function(){this.showPassword=!this.showPassword},changeShowConfirm:function(){this.showPasswordConfirm=!this.showPasswordConfirm},timeNum:function(){var e=this,t=setInterval(o,1e3);function o(){e.countDown--,e.countDown<=0&&(clearInterval(t),e.countDown=60,e.countDownText="再次发送",e.yzmSend=!0)}},changeImgCode:function(){this.imgCodeVal=f["b"]+"public/verify?"+(new Date).getTime()},verify:function(){if(!this.form.safeMobile)return this.formError=!0,void(this.formMsg="亲,请输入手机");var e=/^1[3456789]\d{9}$/;return!!e.test(this.form.safeMobile)||(this.formError=!0,void(this.formMsg="亲,手机格式不正确"))},getCode:function(){this.verify()&&this.$store.dispatch({type:"smsVerifyActivate",mobile:this.form.safeMobile,imgCode:this.form.imgCode})},next:function(){if(!this.isClick&&this.verify()){if(!this.form.verifyCode)return this.formError=!0,void(this.formMsg="亲,请输入验证码");this.formError=!1,this.step1=!1,this.step2=!0}},confirm:function(){var e=new RegExp(/^[a-zA-Z0-9]{6,20}$/);return this.form.password?e.test(this.form.password)?this.form.passwordConfirm?this.form.password!==this.form.passwordConfirm?(this.formError=!0,void(this.formMsg="亲,两次输入支付密码不一致")):(this.formError=!1,void this.$store.dispatch({type:"activateWallet",mobile:this.form.safeMobile,verifyCode:this.form.verifyCode,password:this.form.password,passwordConfirm:this.form.passwordConfirm,referer:this.$route.query.referer})):(this.formError=!0,void(this.formMsg="亲,请再次输入支付密码")):(this.formError=!0,void(this.formMsg="亲,密码由6~20位字母、数字组合")):(this.formError=!0,void(this.formMsg="亲,请输入支付密码"))}},components:{Header:m["a"]}},v=d,u=(o("a907"),o("9ca4")),w=Object(u["a"])(v,s,r,!1,null,"1e8f73bb",null);t["default"]=w.exports},"9dd9":function(e,t,o){var s=o("e7ad"),r=o("1e5b"),a=o("064e").f,i=o("2ea2").f,n=o("2fd4"),m=o("f1fe"),c=s.RegExp,f=c,l=c.prototype,p=/a/g,d=/a/g,v=new c(p)!==p;if(o("149f")&&(!v||o("238a")((function(){return d[o("cb3d")("match")]=!1,c(p)!=p||c(d)==d||"/a/i"!=c(p,"i")})))){c=function(e,t){var o=this instanceof c,s=n(e),a=void 0===t;return!o&&s&&e.constructor===c&&a?e:r(v?new f(s&&!a?e.source:e,t):f((s=e instanceof c)?e.source:e,s&&a?m.call(e):t),o?this:l,c)};for(var u=function(e){e in c||a(c,e,{configurable:!0,get:function(){return f[e]},set:function(t){f[e]=t}})},w=i(f),h=0;w.length>h;)u(w[h++]);l.constructor=c,c.prototype=l,o("bf16")(s,"RegExp",c)}o("1157")("RegExp")},a907:function(e,t,o){"use strict";var s=o("4520"),r=o.n(s);r.a}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1401b758"],{4520:function(e,t,o){},"51d9":function(e,t,o){"use strict";o.r(t);var s=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("section",{staticClass:"wallet-activate"},[o("Header",{attrs:{title:e.title,meaushow:e.meaushow}}),o("div",{directives:[{name:"show",rawName:"v-show",value:e.step1,expression:"step1"}],staticClass:"activate-content"},[o("ul",{staticClass:"form-wrap"},[o("li",{staticClass:"inp-wrap"},[o("label",{staticClass:"va-m"},[e._v("安全手机号")]),o("br"),o("input",{directives:[{name:"model",rawName:"v-model",value:e.form.safeMobile,expression:"form.safeMobile"}],staticClass:"va-m inp",attrs:{type:"number",placeholder:"请输入手机号"},domProps:{value:e.form.safeMobile},on:{input:function(t){t.target.composing||e.$set(e.form,"safeMobile",t.target.value)}}})]),o("li",{directives:[{name:"show",rawName:"v-show",value:e.activateShowImgCode,expression:"activateShowImgCode"}],staticClass:"inp-wrap yzmImg"},[o("label",{staticClass:"va-m"},[e._v("图片验证码")]),o("br"),o("input",{directives:[{name:"model",rawName:"v-model",value:e.form.imgCode,expression:"form.imgCode"}],staticClass:"va-m inp",attrs:{type:"text",placeholder:"请输入验证码"},domProps:{value:e.form.imgCode},on:{input:function(t){t.target.composing||e.$set(e.form,"imgCode",t.target.value)}}}),o("img",{staticClass:"img-code va-m",attrs:{src:e.imgCodeVal,alt:"图片验证码"},on:{click:e.changeImgCode}})]),o("li",{staticClass:"inp-wrap"},[o("label",{staticClass:"va-m"},[e._v("验证码")]),o("br"),o("input",{directives:[{name:"model",rawName:"v-model",value:e.form.verifyCode,expression:"form.verifyCode"}],staticClass:"va-m inp",attrs:{type:"text",placeholder:"请输入验证码"},domProps:{value:e.form.verifyCode},on:{input:function(t){t.target.composing||e.$set(e.form,"verifyCode",t.target.value)}}}),e.yzmSend?o("a",{staticClass:"send-yzm va-m",attrs:{href:"javascript:;"},on:{click:e.getCode}},[e._v(e._s(e.countDownText))]):o("a",{staticClass:"sending-yzm va-m",attrs:{href:"javascript:;"}},[e._v("再次发送("+e._s(e.countDown)+"s)")])])]),o("p",{directives:[{name:"show",rawName:"v-show",value:e.formError,expression:"formError"}],staticClass:"form-error"},[e._v(e._s(e.formMsg))]),o("a",{staticClass:"next",class:{noClick:e.isClick},attrs:{href:"javascript:;"},on:{click:e.next}},[e._v("下一步")])]),o("div",{directives:[{name:"show",rawName:"v-show",value:e.step2,expression:"step2"}],staticClass:"activate-content"},[o("ul",{staticClass:"form-wrap"},[o("li",{staticClass:"inp-wrap"},[o("label",{staticClass:"va-m"},[e._v("设置支付密码")]),o("br"),e.showPassword?[o("input",{directives:[{name:"model",rawName:"v-model",value:e.form.password,expression:"form.password"}],staticClass:"va-m inp",attrs:{type:"password",placeholder:"密码由6~20位字母、数字组合而成"},domProps:{value:e.form.password},on:{input:function(t){t.target.composing||e.$set(e.form,"password",t.target.value)}}})]:[o("input",{directives:[{name:"model",rawName:"v-model",value:e.form.password,expression:"form.password"}],staticClass:"va-m inp",attrs:{type:"text",placeholder:"密码由6~20位字母、数字组合而成"},domProps:{value:e.form.password},on:{input:function(t){t.target.composing||e.$set(e.form,"password",t.target.value)}}})],e.showPassword?o("van-icon",{staticClass:"va-m f-r",attrs:{name:"closed-eye"},on:{click:e.changeShow}}):o("van-icon",{staticClass:"va-m f-r",attrs:{name:"eye-o"},on:{click:e.changeShow}})],2),o("li",{staticClass:"inp-wrap"},[o("label",{staticClass:"va-m"},[e._v("确认支付密码")]),o("br"),e.showPasswordConfirm?[o("input",{directives:[{name:"model",rawName:"v-model",value:e.form.passwordConfirm,expression:"form.passwordConfirm"}],staticClass:"va-m inp",attrs:{type:"password",placeholder:"请再次输入上面的密码"},domProps:{value:e.form.passwordConfirm},on:{input:function(t){t.target.composing||e.$set(e.form,"passwordConfirm",t.target.value)}}})]:[o("input",{directives:[{name:"model",rawName:"v-model",value:e.form.passwordConfirm,expression:"form.passwordConfirm"}],staticClass:"va-m inp",attrs:{type:"text",placeholder:"请再次输入上面的密码"},domProps:{value:e.form.passwordConfirm},on:{input:function(t){t.target.composing||e.$set(e.form,"passwordConfirm",t.target.value)}}})],e.showPasswordConfirm?o("van-icon",{staticClass:"va-m f-r",attrs:{name:"closed-eye"},on:{click:e.changeShowConfirm}}):o("van-icon",{staticClass:"va-m f-r",attrs:{name:"eye-o"},on:{click:e.changeShowConfirm}})],2)]),o("p",{directives:[{name:"show",rawName:"v-show",value:e.formError,expression:"formError"}],staticClass:"form-error"},[e._v(e._s(e.formMsg))]),o("a",{staticClass:"confirm",attrs:{href:"javascript:;"},on:{click:e.confirm}},[e._v("确认")])])],1)},r=[],a=(o("5ab2"),o("6d57"),o("e44b"),o("e10e"),o("9dd9"),o("9bef")),i=o("0261"),n=o("9f3a"),c=o("57af"),m=o("e10b"),f=o("365c");function l(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,s)}return o}function p(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?l(Object(o),!0).forEach((function(t){Object(a["a"])(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):l(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}i["a"].use(m["a"]);var d={name:"WalletActivate",data:function(){return{title:"激活钱包",meaushow:!0,showPassword:!0,showPasswordConfirm:!0,yzmSend:!0,countDown:60,countDownText:"发送验证码",step1:!0,step2:!1,form:{safeMobile:"",verifyCode:"",imgCode:"",password:"",passwordConfirm:""},formError:!1,formMsg:"",imgCodeVal:f["c"]+"public/verify",isClick:!0}},computed:p({},Object(n["c"])({activateShowImgCode:function(e){return e.wallet.activateShowImgCode},activateCountDownFlag:function(e){return e.wallet.activateCountDownFlag}})),watch:{activateCountDownFlag:function(e){e?(this.yzmSend=!1,this.timeNum()):this.yzmSend=!0},form:{deep:!0,handler:function(e){e.safeMobile&&e.verifyCode?this.isClick=!1:this.isClick=!0}}},created:function(){},methods:{changeShow:function(){this.showPassword=!this.showPassword},changeShowConfirm:function(){this.showPasswordConfirm=!this.showPasswordConfirm},timeNum:function(){var e=this,t=setInterval(o,1e3);function o(){e.countDown--,e.countDown<=0&&(clearInterval(t),e.countDown=60,e.countDownText="再次发送",e.yzmSend=!0)}},changeImgCode:function(){this.imgCodeVal=f["c"]+"public/verify?"+(new Date).getTime()},verify:function(){if(!this.form.safeMobile)return this.formError=!0,void(this.formMsg="亲,请输入手机");var e=/^1[3456789]\d{9}$/;return!!e.test(this.form.safeMobile)||(this.formError=!0,void(this.formMsg="亲,手机格式不正确"))},getCode:function(){this.verify()&&this.$store.dispatch({type:"smsVerifyActivate",mobile:this.form.safeMobile,imgCode:this.form.imgCode})},next:function(){if(!this.isClick&&this.verify()){if(!this.form.verifyCode)return this.formError=!0,void(this.formMsg="亲,请输入验证码");this.formError=!1,this.step1=!1,this.step2=!0}},confirm:function(){var e=new RegExp(/^[a-zA-Z0-9]{6,20}$/);return this.form.password?e.test(this.form.password)?this.form.passwordConfirm?this.form.password!==this.form.passwordConfirm?(this.formError=!0,void(this.formMsg="亲,两次输入支付密码不一致")):(this.formError=!1,void this.$store.dispatch({type:"activateWallet",mobile:this.form.safeMobile,verifyCode:this.form.verifyCode,password:this.form.password,passwordConfirm:this.form.passwordConfirm,referer:this.$route.query.referer})):(this.formError=!0,void(this.formMsg="亲,请再次输入支付密码")):(this.formError=!0,void(this.formMsg="亲,密码由6~20位字母、数字组合")):(this.formError=!0,void(this.formMsg="亲,请输入支付密码"))}},components:{Header:c["a"]}},v=d,u=(o("a907"),o("9ca4")),w=Object(u["a"])(v,s,r,!1,null,"1e8f73bb",null);t["default"]=w.exports},"9dd9":function(e,t,o){var s=o("e7ad"),r=o("1e5b"),a=o("064e").f,i=o("2ea2").f,n=o("2fd4"),c=o("f1fe"),m=s.RegExp,f=m,l=m.prototype,p=/a/g,d=/a/g,v=new m(p)!==p;if(o("149f")&&(!v||o("238a")((function(){return d[o("cb3d")("match")]=!1,m(p)!=p||m(d)==d||"/a/i"!=m(p,"i")})))){m=function(e,t){var o=this instanceof m,s=n(e),a=void 0===t;return!o&&s&&e.constructor===m&&a?e:r(v?new f(s&&!a?e.source:e,t):f((s=e instanceof m)?e.source:e,s&&a?c.call(e):t),o?this:l,m)};for(var u=function(e){e in m||a(m,e,{configurable:!0,get:function(){return f[e]},set:function(t){f[e]=t}})},w=i(f),h=0;w.length>h;)u(w[h++]);l.constructor=m,m.prototype=l,o("bf16")(s,"RegExp",m)}o("1157")("RegExp")},a907:function(e,t,o){"use strict";var s=o("4520"),r=o.n(s);r.a}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1c926693"],{"166e":function(e,t,n){"use strict";var o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div")},a=[],i=(n("5ab2"),n("6d57"),n("e44b"),n("e10e"),n("9bef")),s=(n("5490"),n("9f3a")),r=n("4260");function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){Object(i["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var u={name:"wxShare",props:{isLogin:{type:Boolean,default:!0},url:{type:String,default:window.location.href},title:{type:String,default:"好物分享给你,帮我助力,我们一起免费拿样品"},desc:{type:String,default:"在吗?拜托帮我点一下,你也能免费申请元器件样品~帮我助力 你拿样品"},link:{type:String,default:window.location.origin+"/v3/samplereg?uid="+r["a"].getCookie("Yo4teW_uid")},imgUrl:{type:String,default:"http://img.ichunt.com/images/ichunt/self_sample/apply.png"}},data:function(){return{shareObj:{title:this.title,desc:this.desc,link:this.link,imgUrl:this.imgUrl,success:function(e){},error:function(){}}}},computed:l({},Object(s["c"])({wxShareInfo:function(e){return e.common.wxShareInfo},wxShareState:function(e){return e.common.wxShareState}})),watch:{wxShareState:function(e){e&&this.share()}},created:function(){this.isLogin?r["a"].getCookie("Yo4teW_uid")&&this.$store.dispatch({type:"wxShare",current_url:location.href}):this.$store.dispatch({type:"wxShare",current_url:location.href})},methods:{share:function(){var e=this;try{setShareInfo({title:e.shareObj.title,summary:e.shareObj.title,pic:e.shareObj.imgUrl,url:e.shareObj.link,WXconfig:{swapTitleInWX:!0,appId:e.wxShareInfo.appId,timestamp:e.wxShareInfo.timestamp,nonceStr:e.wxShareInfo.nonceStr,signature:e.wxShareInfo.signature}})}catch(t){}wx.config({debug:!1,appId:e.wxShareInfo.appId,timestamp:e.wxShareInfo.timestamp,nonceStr:e.wxShareInfo.nonceStr,signature:e.wxShareInfo.signature,jsApiList:["onMenuShareTimeline","onMenuShareAppMessage","onMenuShareQQ","onMenuShareWeibo","onMenuShareQZone","updateAppMessageShareData","updateTimelineShareData"]}),wx.ready((function(){wx.checkJsApi({jsApiList:["onMenuShareTimeline","onMenuShareAppMessage","onMenuShareQQ","onMenuShareWeibo","onMenuShareQZone","updateAppMessageShareData","updateTimelineShareData"],success:function(e){}}),wx.onMenuShareTimeline(e.shareObj),wx.onMenuShareAppMessage(e.shareObj),wx.onMenuShareWeibo(e.shareObj),wx.onMenuShareQZone(e.shareObj),wx.onMenuShareQQ?wx.onMenuShareQQ(e.shareObj):wx.updateAppMessageShareData(e.shareObj),wx.updateTimelineShareData(e.shareObj)}))}}},d=u,p=n("9ca4"),f=Object(p["a"])(d,o,a,!1,null,null,null);t["a"]=f.exports},5490:function(e,t,n){"use strict";n("9a0e")("link",(function(e){return function(t){return e(this,"a","href",t)}}))},"7be2":function(e,t,n){"use strict";n.d(t,"g",(function(){return o})),n.d(t,"d",(function(){return i})),n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return c})),n.d(t,"e",(function(){return l})),n.d(t,"f",(function(){return u}));var o="#fff",a="van-hairline",i=a+"--top",s=a+"--left",r=a+"--bottom",c=a+"--surround",l=a+"--top-bottom",u=a+"-unset--top-bottom"},"82a0":function(e,t,n){},"9a0e":function(e,t,n){var o=n("e46b"),a=n("238a"),i=n("f6b4"),s=/"/g,r=function(e,t,n,o){var a=String(i(e)),r="<"+t;return""!==n&&(r+=" "+n+'="'+String(o).replace(s,"&quot;")+'"'),r+">"+a+"</"+t+">"};e.exports=function(e,t){var n={};n[e]=t(r),o(o.P+o.F*a((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3})),"String",n)}},b357:function(e,t,n){"use strict";var o=n("82a0"),a=n.n(o);a.a},b76a:function(e,t,n){"use strict";(function(e){n.d(t,"c",(function(){return l})),n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return d}));var o=n("6f1a"),a=Date.now();function i(e){var t=Date.now(),n=Math.max(0,16-(t-a)),o=setTimeout(e,n);return a=t+n,o}var s=o["f"]?e:window,r=s.requestAnimationFrame||i,c=s.cancelAnimationFrame||s.clearTimeout;function l(e){return r.call(s,e)}function u(e){l((function(){l(e)}))}function d(e){c.call(s,e)}}).call(this,n("9edd"))},b7aa:function(e,t,n){"use strict";n.r(t);var o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("section",{staticClass:"sample-apply"},[n("Header",{attrs:{title:e.title,meaushow:e.meaushow,bgcolor:e.bgcolor}}),n("wxShare",{attrs:{url:e.shareUrl}}),e.ypGoodDetail.goods_info?n("van-collapse",{attrs:{accordion:"",border:e.noborder},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[n("van-collapse-item",{attrs:{title:"商品信息",name:"1",border:e.noborder}},[n("div",{staticClass:"info-con clr"},[n("div",{staticClass:"fl img-box"},[n("img",{attrs:{src:e.ypGoodDetail.goods_images||"https://www.ichunt.com/v3/dist/res/m/images/materiel_img_3.png",alt:""}})]),e.ypGoodDetail.goods_info?n("div",{staticClass:"fr cb-box"},[n("div",{staticClass:"title"},[e._v(e._s(e.ypGoodDetail.goods_info.goods_name))]),n("p",[n("span",[e._v("类别:")]),e._v("\n "+e._s(e.ypGoodDetail.goods_info.class_id1_name)+"\n ")]),n("p",[n("span",[e._v("品牌:")]),e._v("\n "+e._s(e.ypGoodDetail.goods_info.brand_name)+"\n ")]),n("p",[n("span",[e._v("最大可申请数量:")]),e._v("\n "+e._s(e.ypGoodDetail.max_number||1)+"\n ")])]):e._e()]),e.ypGoodDetail.goods_info?n("div",{staticClass:"info-detail"},[n("p",[n("span",[e._v("型号:")]),e._v("\n "+e._s(e.ypGoodDetail.goods_info.sku_name)+"\n ")]),n("p",{staticClass:"canshudetail"},[n("span",[e._v("参数描述:")]),e._v("\n "+e._s(e.ypGoodDetail.goods_info.sku_name)+"由"+e._s(e.ypGoodDetail.goods_info.brand_name)+"设计生产制造,在猎芯网自营现货销售。"+e._s(e.ypGoodDetail.goods_info.goods_name)+"的封装/规格参数为:"+e._s(e.ypGoodDetail.goods_info.encap)+";您可以选择下载"+e._s(e.ypGoodDetail.goods_info.sku_name)+"中文资料等数据手册功能说明书,资料中有"+e._s(e.ypGoodDetail.goods_info.class_id1_name)+"、"+e._s(e.ypGoodDetail.goods_info.class_id2_name)+"详细使用方法及教程。\n ")]),n("p",[n("span",[e._v("需邀请好友人数:")]),n("em",{staticClass:"f-red"},[e._v(e._s(e.ypGoodDetail.quota))])])]):e._e()])],1):e._e(),n("div",{staticClass:"form-info"},[e.addressInfo?n("div",{staticClass:"form-group adderss-sample",on:{click:function(t){return e.addressSample(e.addressInfo.address_id)}}},[n("h3",[n("p",[e._v(e._s(e.addressInfo.consignee)+"   "+e._s(e.addressInfo.mobile))]),n("p",[e._v(e._s(e.addressInfo.province_val+" "+e.addressInfo.district_val+" "+e.addressInfo.city_val+" "+e.addressInfo.detail_address))]),n("span",{staticClass:"fr icon iconfont icon-xiangyoujiankuohao"})])]):n("div",{staticClass:"form-group by",on:{click:e.adderssAdd}},[e._m(0)]),e.isShowComName?n("div",{staticClass:"form-group"},[e._m(1),n("input",{directives:[{name:"model",rawName:"v-model",value:e.com_name,expression:"com_name"}],attrs:{type:"text",placeholder:"深圳市猎芯科技有限公司",readonly:Boolean(e.ypComInfo.com_name)&&(4==e.occupationType||7==e.occupationType)},domProps:{value:e.com_name},on:{input:function(t){t.target.composing||(e.com_name=t.target.value)}}})]):e._e(),n("div",{staticClass:"form-group"},[e._m(2),n("textarea",{directives:[{name:"model",rawName:"v-model",value:e.sample_demand_desc,expression:"sample_demand_desc"}],staticClass:"placeh",attrs:{name:"",placeholder:"“参考描述:例1、无人机项目研发需要 例2、运动相机新方案验证需要 例3、毕业设计激光测距项目需要”"},domProps:{value:e.sample_demand_desc},on:{input:function(t){t.target.composing||(e.sample_demand_desc=t.target.value)}}})]),e.isShowBasInfo?n("div",{staticClass:"form-group by",on:{click:e.toBasicInfo}},[e._m(3)]):e._e(),e.isShowComInfo?n("div",{staticClass:"form-group by",on:{click:e.toComInfo}},[e._m(4)]):e._e(),n("div",{staticClass:"line"})]),n("div",{staticClass:"fix-btns",on:{click:e.submitS}},[e._v("确认提交")]),e.ypGoodDetail.goods_info?n("div",{directives:[{name:"show",rawName:"v-show",value:e.successPop,expression:"successPop"}],staticClass:"submit-success-pop"},[n("div",{staticClass:"mask"}),n("div",{staticClass:"get-user-con"},[n("h3",[e._v("\n 样片领取成功\n "),n("i",{staticClass:"icon iconfont icon-guanbi",on:{click:e.getuserf}})]),n("h2",[e._v(e._s(e.ypGoodDetail.goods_info.sku_name))]),n("div",{staticClass:"txt"},[n("span",[e._v("类别:"+e._s(e.ypGoodDetail.goods_info.class_id1_name))]),n("span",[e._v("品牌:"+e._s(e.ypGoodDetail.goods_info.brand_name))])]),n("div",{staticClass:"share-btn-wrap"},[n("span",{staticClass:"l",on:{click:e.toUrl}},[e._v("继续领取")]),n("span",{directives:[{name:"shareMask",rawName:"v-shareMask"}],staticClass:"r"},[e._v("给好友送免费样片")])]),e._m(5)])]):e._e(),e.loading?n("van-loading",{staticClass:"loading-background",attrs:{type:"spinner",color:"#000"}}):e._e()],1)},a=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("h3",[n("span",{staticClass:"f-red"},[e._v("*")]),e._v("新增收货地址\n "),n("span",{staticClass:"fr icon iconfont icon-xiangyoujiankuohao"})])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("h3",[n("span",{staticClass:"f-red"},[e._v("*")]),e._v("公司/机构/学校名称\n ")])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("h3",[n("span",{staticClass:"f-red"},[e._v("*")]),e._v("项目需求描述\n ")])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("h3",[n("span",{staticClass:"f-red"},[e._v("*")]),e._v("基本信息\n "),n("span",{staticClass:"fr icon iconfont icon-xiangyoujiankuohao"})])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("h3",[n("span",{staticClass:"f-red"},[e._v("*")]),e._v("公司信息\n "),n("span",{staticClass:"fr icon iconfont icon-xiangyoujiankuohao"})])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"tips"},[n("em",[e._v("*")]),e._v("快递预计1-5个工作日内送达,请耐心等待\n ")])}],i=(n("5ab2"),n("6d57"),n("e44b"),n("e10e"),n("f548"),n("9bef")),s=n("0261"),r=n("9f3a"),c=n("57af"),l=n("166e"),u=n("292e"),d=n("cc52"),p=n("7be2"),f=Object(u["a"])("collapse"),m=f[0],h=f[1],_=m({mixins:[Object(d["b"])("vanCollapse")],props:{accordion:Boolean,value:[String,Number,Array],border:{type:Boolean,default:!0}},methods:{switch:function(e,t){this.accordion||(e=t?this.value.concat(e):this.value.filter((function(t){return t!==e}))),this.$emit("change",e),this.$emit("input",e)}},render:function(){var e,t=arguments[0];return t("div",{class:[h(),(e={},e[p["e"]]=this.border,e)]},[this.slots()])}}),v=n("1bb4"),b=n("6f1a"),g=n("b76a"),y=n("b37d"),w=n("f79b"),S=Object(u["a"])("collapse-item"),O=S[0],x=S[1],C=["title","icon","right-icon"],j=O({mixins:[Object(d["a"])("vanCollapse")],props:Object(v["a"])(Object(v["a"])({},w["a"]),{},{name:[Number,String],disabled:Boolean,isLink:{type:Boolean,default:!0}}),data:function(){return{show:null,inited:null}},computed:{currentName:function(){return Object(b["b"])(this.name)?this.name:this.index},expanded:function(){var e=this;if(!this.parent)return null;var t=this.parent,n=t.value,o=t.accordion;return o?n===this.currentName:n.some((function(t){return t===e.currentName}))}},created:function(){this.show=this.expanded,this.inited=this.expanded},watch:{expanded:function(e,t){var n=this;if(null!==t){e&&(this.show=!0,this.inited=!0);var o=e?this.$nextTick:g["c"];o((function(){var t=n.$refs,o=t.content,a=t.wrapper;if(o&&a){var i=o.offsetHeight;if(i){var s=i+"px";a.style.height=e?0:s,Object(g["b"])((function(){a.style.height=e?s:0}))}else n.onTransitionEnd()}}))}}},methods:{onClick:function(){if(!this.disabled){var e=this.parent,t=this.currentName,n=e.accordion&&t===e.value,o=n?"":t;e.switch(o,!this.expanded)}},onTransitionEnd:function(){this.expanded?this.$refs.wrapper.style.height="":this.show=!1},genTitle:function(){var e=this,t=this.$createElement,n=this.border,o=this.disabled,a=this.expanded,i=C.reduce((function(t,n){return e.slots(n)&&(t[n]=function(){return e.slots(n)}),t}),{});return this.slots("value")&&(i.default=function(){return e.slots("value")}),t(y["a"],{attrs:{role:"button",tabindex:o?-1:0,"aria-expanded":String(a)},class:x("title",{disabled:o,expanded:a,borderless:!n}),on:{click:this.onClick},scopedSlots:i,props:Object(v["a"])({},this.$props)})},genContent:function(){var e=this.$createElement;if(this.inited)return e("div",{directives:[{name:"show",value:this.show}],ref:"wrapper",class:x("wrapper"),on:{transitionend:this.onTransitionEnd}},[e("div",{ref:"content",class:x("content")},[this.slots()])])}},render:function(){var e=arguments[0];return e("div",{class:[x({border:this.index&&this.border})]},[this.genTitle(),this.genContent()])}}),I=n("0a68"),k=n("1132"),D=n("4260");function $(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function T(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$(Object(n),!0).forEach((function(t){Object(i["a"])(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}s["a"].use(_).use(j).use(I["a"]).use(k["a"]);var P={name:"sampleapply",data:function(){return{title:"样片申请",meaushow:!0,bgcolor:"#fafafa",color:"#1080d0",activeName:"1",noborder:!1,successPop:!1,goods_id:this.$route.query.id,apply_num:"",com_name:"",sample_demand_desc:"",shareUrl:window.location.origin+"/v3/samplereg?uid="+D["a"].getCookie("Yo4teW_uid"),isShowComName:!1,isShowBasInfo:!1,isShowComInfo:!1,occupationType:this.$route.query.type||-1,fullType:this.$route.query.full||-1,cominfocookie:localStorage.getItem("samplecominfo")||"",basinfocookie:localStorage.getItem("samplebasinfo")||""}},computed:T({},Object(r["c"])({loading:function(e){return e.sampleapply.loading},addressInfo:function(e){return e.sampleapply.addressInfo},ypGoodDetail:function(e){return e.sampleapply.ypGoodDetail},ypComInfo:function(e){return e.sampleapply.ypComInfo},ypBasInfo:function(e){return e.sampleapply.ypBasInfo},submitState:function(e){return e.sampleapply.submitState},ordernum:function(e){return e.sampleapply.ordernum}})),watch:{ypGoodDetail:function(e){var t=this.occupationType,n=this.fullType,o=e.max_number;this.apply_num=o||1,0==n&&this.fillData(),0==n&&(4==t||7==t?this.isShowComName=!0:1!=t&&8!=t||(this.isShowBasInfo=!0,this.isShowComInfo=!0))},submitState:function(e){e&&(this.successPop=!0)}},beforeRouteEnter:function(e,t,n){"/samplebasinfo"!=t.path&&"/samplecominfo"!=t.path&&(localStorage.removeItem("samplebasinfo"),localStorage.removeItem("samplecominfo"),localStorage.removeItem("sampledesc")),n()},created:function(){this.$store.dispatch({type:"getDetailYp",data:{id:this.goods_id}}),this.$store.dispatch({type:"recvlistSample"});var e=localStorage.getItem("sampledesc")||"";e&&(this.sample_demand_desc=e)},methods:{descCookie:function(){this.sample_demand_desc&&localStorage.setItem("sampledesc",this.sample_demand_desc)},toBasicInfo:function(){this.descCookie(),this.$router.push({path:"/samplebasinfo",query:{type:this.occupationType,full:this.fullType}})},toComInfo:function(){this.descCookie(),this.$router.push({path:"/samplecominfo",query:{type:this.occupationType,full:this.fullType}})},fillData:function(){this.com_name=this.ypComInfo.com_name||""},toUrl:function(){this.$router.replace("/sample")},getuserf:function(){this.successPop=!1,window.location.href="/v3/user/order"},validateForm:function(){var e=this.occupationType,t=this.fullType;if((4==e||7==e)&&0==t&&!this.com_name)return Object(I["a"])("请输入单位名称"),!1;if(!this.sample_demand_desc)return Object(I["a"])("请填写项目描述"),!1;if((1==e||8==e)&&0==t){var n=this.ypBasInfo,o=this.ypComInfo;if(!(n.mobile&&n.user_name&&n.email||this.basinfocookie))return Object(I["a"])("基本信息未填写完成"),!1;if(!(o.com_name&&o.com_telphone&&o.type_id&&o.com_province_id&&o.com_address&&o.comPic||this.cominfocookie))return Object(I["a"])("公司信息未填写完成"),!1}return!0},formDataDeal:function(){var e=this;if(!this.validateForm())return!1;var t=this.occupationType,n=this.fullType,o=this.ypBasInfo,a=this.ypComInfo,i=this.basinfocookie?JSON.parse(this.basinfocookie):{},s=this.cominfocookie?JSON.parse(this.cominfocookie):{},r={goods_id:e.goods_id,apply_num:e.apply_num,sample_demand_desc:e.sample_demand_desc,address_id:e.addressInfo.address_id};return-1!=t&&(r["user_info[work_function]"]=t),0==n&&(4==t||7==t?r["company_info[com_name]"]=this.com_name:1!=t&&8!=t||(r["user_basic[mobile]"]=o.mobile||i.mobile,r["user_basic[email]"]=o.email||i.email,r["user_basic[user_name]"]=o.user_name||i.user_name,r["user_info[work_card]"]=a.comPic||s.com_pic,r["company_info[com_name]"]=a.com_name||s.com_name_1,r["company_info[type_id]"]=a.type_id||s.com_nature,r["company_info[com_telphone]"]=a.com_telphone||s.phone,r["company_info[com_province_id]"]=a.com_province_id||s.province_id,r["company_info[com_city_id]"]=a.com_city_id||s.city_id,r["company_info[com_area_id]"]=a.com_area_id||s.area_id,r["company_info[com_address]"]=a.com_address||s.com_detail_add)),r},submitS:function(){var e=this.formDataDeal();e&&this.$store.dispatch({type:"selfSampleCreate",data:e})},addressSample:function(e){window.location.href="/h5/view/#/userAddress?points="+e},adderssAdd:function(){window.location.href="/h5/view/#/userAddress"}},components:{Header:c["a"],wxShare:l["a"]}},M=P,G=(n("b357"),n("9ca4")),E=Object(G["a"])(M,o,a,!1,null,"05f43639",null);t["default"]=E.exports},cc52:function(e,t,n){"use strict";function o(e){var t=[];function n(e){e.forEach((function(e){t.push(e),e.componentInstance&&n(e.componentInstance.$children.map((function(e){return e.$vnode}))),e.children&&n(e.children)}))}return n(e),t}function a(e,t){var n=t.$vnode.componentOptions;if(n&&n.children){var a=o(n.children);e.sort((function(e,t){return a.indexOf(e.$vnode)-a.indexOf(t.$vnode)}))}}function i(e,t){var n,o;void 0===t&&(t={});var i=t.indexKey||"index";return{inject:(n={},n[e]={default:null},n),computed:(o={parent:function(){return this.disableBindRelation?null:this[e]}},o[i]=function(){return this.bindRelation(),this.parent?this.parent.children.indexOf(this):null},o),mounted:function(){this.bindRelation()},beforeDestroy:function(){var e=this;this.parent&&(this.parent.children=this.parent.children.filter((function(t){return t!==e})))},methods:{bindRelation:function(){if(this.parent&&-1===this.parent.children.indexOf(this)){var e=[].concat(this.parent.children,[this]);a(e,this.parent),this.parent.children=e}}}}}function s(e){return{provide:function(){var t;return t={},t[e]=this,t},data:function(){return{children:[]}}}}n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return s}))}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1e656f57"],{"39bf":function(t,n,e){"use strict";function i(t){return"NavigationDuplicated"===t.name||t.message&&-1!==t.message.indexOf("redundant navigation")}function o(t,n){var e=n.to,o=n.url,s=n.replace;if(e&&t){var a=t[s?"replace":"push"](e);a&&a.catch&&a.catch((function(t){if(t&&!i(t))throw t}))}else o&&(s?location.replace(o):location.href=o)}function s(t){o(t.parent&&t.parent.$router,t.props)}e.d(n,"b",(function(){return o})),e.d(n,"a",(function(){return s})),e.d(n,"c",(function(){return a}));var a={url:String,replace:Boolean,to:[String,Object]}},"3be7":function(t,n,e){"use strict";var i=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"navigator"},[e("ul",{staticClass:"boxsiz"},[e("li",{class:{curr:1==t.typeVal}},[t._m(0)]),e("li",{class:{curr:2==t.typeVal}},[t._m(1)]),e("li",{class:{curr:3==t.typeVal}},[t._m(2)]),e("li",{class:{curr:4==t.typeVal}},[e("a",{attrs:{href:"/h5/view/#/joincart"}},[e("i",{staticClass:"iconfont icon-gouwuche2"}),e("p",[t._v("购物车")]),e("span",{staticClass:"cart boxsiz"},[t._v(t._s(t.cartCount>99?"99+":t.cartCount))])])]),e("li",{class:{curr:5==t.typeVal}},[t._m(3)])])])},o=[function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("a",{attrs:{href:"/v3"}},[e("i",{staticClass:"iconfont icon-shouye-1"}),e("p",[t._v("首页")])])},function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("a",{attrs:{href:"/h5/view/#/product"}},[e("i",{staticClass:"iconfont icon-ziying"}),e("p",[t._v("自营商城")])])},function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("a",{attrs:{href:"/h5/view/#/lxshop"}},[e("i",{staticClass:"iconfont icon-lianying"}),e("p",[t._v("联营商城")])])},function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("a",{attrs:{href:"/v3/user"}},[e("i",{staticClass:"iconfont icon-huiyuanzhongxin1"}),e("p",[t._v("会员中心")])])}],s=(e("163d"),e("9f3a")),a={name:"navigator",props:{typeVal:{type:Number,default:1}},computed:Object(s["c"])({cartCount:function(t){return t.common.cartCount}}),created:function(){this.$store.dispatch({type:"cartCount"}),this.$store.dispatch({type:"loginCheck"})}},r=a,c=e("9ca4"),l=Object(c["a"])(r,i,o,!1,null,null,null);n["a"]=l.exports},"7be2":function(t,n,e){"use strict";e.d(n,"g",(function(){return i})),e.d(n,"d",(function(){return s})),e.d(n,"b",(function(){return a})),e.d(n,"a",(function(){return r})),e.d(n,"c",(function(){return c})),e.d(n,"e",(function(){return l})),e.d(n,"f",(function(){return u}));var i="#fff",o="van-hairline",s=o+"--top",a=o+"--left",r=o+"--bottom",c=o+"--surround",l=o+"--top-bottom",u=o+"-unset--top-bottom"},"98ee":function(t,n,e){"use strict";var i=e("b3f3"),o=e.n(i);o.a},b3f3:function(t,n,e){},bd89:function(t,n,e){"use strict";var i=e("1bb4"),o=e("0261"),s=e("23c4"),a=e.n(s),r=e("292e"),c=e("8e95"),l=e("7be2"),u=e("fbbe"),f=e("06cb"),d=e("39bf"),h=e("e10b"),p=e("1132"),v=Object(r["a"])("button"),m=v[0],g=v[1];function b(t,n,e,i){var o,s=n.tag,r=n.icon,c=n.type,u=n.color,v=n.plain,m=n.disabled,b=n.loading,_=n.hairline,C=n.loadingText,y={};function O(t){b||m||(Object(f["a"])(i,"click",t),Object(d["a"])(i))}function w(t){Object(f["a"])(i,"touchstart",t)}u&&(y.color=v?u:l["g"],v||(y.background=u),-1!==u.indexOf("gradient")?y.border=0:y.borderColor=u);var j=[g([c,n.size,{plain:v,loading:b,disabled:m,hairline:_,block:n.block,round:n.round,square:n.square}]),(o={},o[l["c"]]=_,o)];function B(){var i,o=[];return b?o.push(t(p["a"],{class:g("loading"),attrs:{size:n.loadingSize,type:n.loadingType,color:"currentColor"}})):r&&o.push(t(h["a"],{attrs:{name:r,classPrefix:n.iconPrefix},class:g("icon")})),i=b?C:e.default?e.default():n.text,i&&o.push(t("span",{class:g("text")},[i])),o}return t(s,a()([{style:y,class:j,attrs:{type:n.nativeType,disabled:m},on:{click:O,touchstart:w}},Object(f["b"])(i)]),[t("div",{class:g("content")},[B()])])}b.props=Object(i["a"])(Object(i["a"])({},d["c"]),{},{text:String,icon:String,color:String,block:Boolean,plain:Boolean,round:Boolean,square:Boolean,loading:Boolean,hairline:Boolean,disabled:Boolean,iconPrefix:String,nativeType:String,loadingText:String,loadingType:String,tag:{type:String,default:"button"},type:{type:String,default:"default"},size:{type:String,default:"normal"},loadingSize:{type:String,default:"20px"}});var _,C=m(b),y=Object(r["a"])("dialog"),O=y[0],w=y[1],j=y[2],B=O({mixins:[Object(u["a"])()],props:{title:String,width:[Number,String],message:String,className:null,callback:Function,beforeClose:Function,messageAlign:String,cancelButtonText:String,cancelButtonColor:String,confirmButtonText:String,confirmButtonColor:String,showCancelButton:Boolean,transition:{type:String,default:"van-dialog-bounce"},showConfirmButton:{type:Boolean,default:!0},overlay:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!1},allowHtml:{type:Boolean,default:!0}},data:function(){return{loading:{confirm:!1,cancel:!1}}},methods:{onClickOverlay:function(){this.handleAction("overlay")},handleAction:function(t){var n=this;this.$emit(t),this.value&&(this.beforeClose?(this.loading[t]=!0,this.beforeClose(t,(function(e){!1!==e&&n.loading[t]&&n.onClose(t),n.loading.confirm=!1,n.loading.cancel=!1}))):this.onClose(t))},onClose:function(t){this.close(),this.callback&&this.callback(t)},onOpened:function(){this.$emit("opened")},onClosed:function(){this.$emit("closed")},genButtons:function(){var t,n=this,e=this.$createElement,i=this.showCancelButton&&this.showConfirmButton;return e("div",{class:[l["d"],w("footer",{buttons:i})]},[this.showCancelButton&&e(C,{attrs:{size:"large",loading:this.loading.cancel,text:this.cancelButtonText||j("cancel")},class:w("cancel"),style:{color:this.cancelButtonColor},on:{click:function(){n.handleAction("cancel")}}}),this.showConfirmButton&&e(C,{attrs:{size:"large",loading:this.loading.confirm,text:this.confirmButtonText||j("confirm")},class:[w("confirm"),(t={},t[l["b"]]=i,t)],style:{color:this.confirmButtonColor},on:{click:function(){n.handleAction("confirm")}}})])},genContent:function(t,n){var e=this.$createElement;if(n)return e("div",{class:w("content")},[n]);var i=this.message,o=this.messageAlign;if(i){var s,r,c={class:w("message",(s={"has-title":t},s[o]=o,s)),domProps:(r={},r[this.allowHtml?"innerHTML":"textContent"]=i,r)};return e("div",{class:w("content")},[e("div",a()([{},c]))])}}},render:function(){var t=arguments[0];if(this.shouldRender){var n=this.message,e=this.slots(),i=this.slots("title")||this.title,o=i&&t("div",{class:w("header",{isolated:!n&&!e})},[i]);return t("transition",{attrs:{name:this.transition},on:{afterEnter:this.onOpened,afterLeave:this.onClosed}},[t("div",{directives:[{name:"show",value:this.value}],attrs:{role:"dialog","aria-labelledby":this.title||n},class:[w(),this.className],style:{width:Object(c["a"])(this.width)}},[o,this.genContent(i,e),this.genButtons()])])}}}),x=e("6f1a");function $(t){return document.body.contains(t)}function S(){_&&_.$destroy(),_=new(o["a"].extend(B))({el:document.createElement("div"),propsData:{lazyRender:!1}}),_.$on("input",(function(t){_.value=t}))}function k(t){return x["f"]?Promise.resolve():new Promise((function(n,e){_&&$(_.$el)||S(),Object(i["a"])(_,k.currentOptions,t,{resolve:n,reject:e})}))}k.defaultOptions={value:!0,title:"",width:"",message:"",overlay:!0,className:"",allowHtml:!0,lockScroll:!0,transition:"van-dialog-bounce",beforeClose:null,overlayClass:"",overlayStyle:null,messageAlign:"",getContainer:"body",cancelButtonText:"",cancelButtonColor:null,confirmButtonText:"",confirmButtonColor:null,showConfirmButton:!0,showCancelButton:!1,closeOnPopstate:!1,closeOnClickOverlay:!1,callback:function(t){_["confirm"===t?"resolve":"reject"](t)}},k.alert=k,k.confirm=function(t){return k(Object(i["a"])({showCancelButton:!0},t))},k.close=function(){_&&(_.value=!1)},k.setDefaultOptions=function(t){Object(i["a"])(k.currentOptions,t)},k.resetDefaultOptions=function(){k.currentOptions=Object(i["a"])({},k.defaultOptions)},k.resetDefaultOptions(),k.install=function(){o["a"].use(B)},k.Component=B,o["a"].prototype.$dialog=k;n["a"]=k},e382:function(t,n,e){"use strict";e.r(n);var i=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("section",{staticClass:"user-index"},[e("dl",{staticClass:"user-logo"},[e("dt",[t.userInfo.user_info?[e("img",{attrs:{src:t.userInfo.user_info.user_head||"https://www.ichunt.com/v3/dist/res/m/images/headimg/boy1.png"}})]:[e("img",{attrs:{src:"https://www.ichunt.com/v3/dist/res/m/images/headimg/boy1.png"}})]],2),e("dd",[t.userInfo.company_info?e("h4",[t._v("\n "+t._s(t.userInfo.company_info.com_name||"")+"\n ")]):e("h4"),t.userInfo.user_info?[t.userInfo.user_info.email?e("p",{staticClass:"email-x"},[t._v("邮箱:"),e("span",{},[t._v(t._s(t.userInfo.user_info.email))])]):t._e()]:t._e(),t.userInfo.user_info?e("p",{staticClass:"mobile-x"},[t._v("手机号:"),e("span",{},[t._v(t._s(t.userInfo.user_info.mobile))])]):t._e()],2)]),e("div",{staticClass:"clr orderbox"},[e("ul",{staticClass:"user-news mui-row"},[e("li",[e("a",{attrs:{href:"/v3/user/order.html?status=1"}},[e("b",{staticClass:"status1"},[t._v(t._s(t.orderCounts["1"]))]),e("span",[t._v("待审核")])])]),e("li",[e("a",{attrs:{href:"/v3/user/order.html?status=2"}},[e("b",{staticClass:"status2"},[t._v(t._s(t.orderCounts["2"]))]),e("span",[t._v("待付款")])])]),e("li",[e("a",{attrs:{href:"/v3/user/order.html?status=3"}},[e("b",{staticClass:"status3"},[t._v(t._s(t.orderCounts["3"]))]),e("span",[t._v("待付尾款")])])]),e("li",[e("a",{attrs:{href:"/v3/user/order.html?status=8"}},[e("b",{staticClass:"status8"},[t._v(t._s(t.orderCounts["8"]))]),e("span",[t._v("待收货")])])])]),t._m(0)]),e("ul",{staticClass:"user-nav mui-row"},[t._m(1),t._m(2),t._m(3),t._m(4),t._m(5),t.userInfo.user_info?[e("li",[e("a",{attrs:{href:"/v3/forget?phone="+t.userInfo.user_info.mobile}},[e("i",{staticClass:"icon-6 iconfont icon-xiugaimima"}),e("span",[t._v("修改密码")])])])]:[t._m(6)],t._m(7),-1==t.bindInfo.status?[e("li",{staticClass:"bangding bangp"},[e("a",{attrs:{href:2==t.bindInfo.type_?t.qqurl_:"/v3/login/bind"}},[e("i",{staticClass:"icon iconfont icon-jiebang"}),e("span",[t._v("绑定账号")])])])]:[e("li",{staticClass:"jiebang bangp",on:{click:t.jiebang}},[t._m(8)])]],2),t.ismini?e("a",{staticClass:"loginLayoutx",attrs:{href:"javascript:void('0')"},on:{click:t.goOut}},[t._v("退出登录")]):t._e(),e("Navigator",{attrs:{typeVal:t.typeVal}}),t.loading?e("van-loading",{staticClass:"loading-background",attrs:{type:"spinner",color:"#000"}}):t._e()],1)},o=[function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("a",{staticClass:"fr f-gray",attrs:{href:"/v3/user/order.html"}},[e("span",[t._v("查看全部订单")]),e("i",{staticClass:"icon iconfont icon-jinru2"})])},function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("li",[e("a",{attrs:{href:"/v3/user/order"}},[e("i",{staticClass:"icon-1 iconfont icon-wodedingdan-"}),e("span",[t._v("我的订单")])])])},function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("li",[e("a",{attrs:{href:"/v3/user/invoice"}},[e("i",{staticClass:"icon-2 iconfont icon-fapiaoshezhi-"}),e("span",[t._v("发票设置")])])])},function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("li",[e("a",{attrs:{href:"/v3/user/reciveaddress"}},[e("i",{staticClass:"icon-3 iconfont icon-shouhuodizhi-"}),e("span",[t._v("收货地址")])])])},function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("li",[e("a",{attrs:{href:"/v3/user/account"}},[e("i",{staticClass:"icon-4 iconfont icon-jibenxinxi-"}),e("span",[t._v("基本信息")])])])},function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("li",[e("a",{attrs:{href:"/v3/user/coupon"}},[e("i",{staticClass:"icon-5 iconfont icon-youhuiquan"}),e("span",[t._v("优惠劵")])])])},function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("li",[e("a",{attrs:{href:"/v3/forget"}},[e("i",{staticClass:"icon-6 iconfont icon-xiugaimima"}),e("span",[t._v("修改密码")])])])},function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("li",[e("a",{attrs:{href:"/v3/pointmall"}},[e("i",{staticClass:"i7"}),e("span",[t._v("积分商城")])])])},function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("a",{attrs:{href:"javascript:void('0')"}},[e("i",{staticClass:"icon iconfont icon-jiebang"}),e("span",[t._v("解绑账号")])])}],s=(e("5ab2"),e("6d57"),e("e44b"),e("e10e"),e("9bef")),a=e("0261"),r=e("9f3a"),c=e("1132"),l=e("bd89"),u=e("3be7"),f=e("365c");function d(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,i)}return e}function h(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?d(Object(e),!0).forEach((function(n){Object(s["a"])(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):d(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}a["a"].use(c["a"]).use(l["a"]);var p={name:"userIndex",data:function(){return{qqurl_:f["a"]+"login/qq",typeVal:5,ismini:!0}},computed:h({},Object(r["c"])({loading:function(t){return t.user.loading},userInfo:function(t){return t.user.userInfo},orderCounts:function(t){return t.user.orderCounts},bindInfo:function(t){return t.user.bindInfo},isLayout:function(t){return t.user.isLayout},isGetBindInfo:function(t){return t.user.isGetBindInfo}})),watch:{isLayout:function(t){t&&this.goOut()},isGetBindInfo:function(t){t&&this.$store.dispatch({type:"getBindInfo"})}},created:function(){this.getData(),isMiniProgram&&(this.ismini=!1)},methods:{getData:function(){this.$store.dispatch({type:"getUserType"}),this.$store.dispatch({type:"orderCount"}),this.$store.dispatch({type:"getBindInfo"})},goOut:function(){this.$store.dispatch({type:"logout"})},jiebang:function(){var t=this;l["a"].confirm({message:"请确认是否要解绑当前账号?"}).then((function(){t.$store.dispatch({type:"unbindPhone"})})).catch((function(){}))}},components:{Navigator:u["a"]}},v=p,m=(e("98ee"),e("9ca4")),g=Object(m["a"])(v,i,o,!1,null,"0109257d",null);n["default"]=g.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1e656f57"],{"39bf":function(t,n,e){"use strict";function i(t){return"NavigationDuplicated"===t.name||t.message&&-1!==t.message.indexOf("redundant navigation")}function o(t,n){var e=n.to,o=n.url,s=n.replace;if(e&&t){var a=t[s?"replace":"push"](e);a&&a.catch&&a.catch((function(t){if(t&&!i(t))throw t}))}else o&&(s?location.replace(o):location.href=o)}function s(t){o(t.parent&&t.parent.$router,t.props)}e.d(n,"b",(function(){return o})),e.d(n,"a",(function(){return s})),e.d(n,"c",(function(){return a}));var a={url:String,replace:Boolean,to:[String,Object]}},"3be7":function(t,n,e){"use strict";var i=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("div",{staticClass:"navigator"},[e("ul",{staticClass:"boxsiz"},[e("li",{class:{curr:1==t.typeVal}},[t._m(0)]),e("li",{class:{curr:2==t.typeVal}},[t._m(1)]),e("li",{class:{curr:3==t.typeVal}},[t._m(2)]),e("li",{class:{curr:4==t.typeVal}},[e("a",{attrs:{href:"/h5/view/#/joincart"}},[e("i",{staticClass:"iconfont icon-gouwuche2"}),e("p",[t._v("购物车")]),e("span",{staticClass:"cart boxsiz"},[t._v(t._s(t.cartCount>99?"99+":t.cartCount))])])]),e("li",{class:{curr:5==t.typeVal}},[t._m(3)])])])},o=[function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("a",{attrs:{href:"/v3"}},[e("i",{staticClass:"iconfont icon-shouye-1"}),e("p",[t._v("首页")])])},function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("a",{attrs:{href:"/h5/view/#/product"}},[e("i",{staticClass:"iconfont icon-ziying"}),e("p",[t._v("自营商城")])])},function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("a",{attrs:{href:"/h5/view/#/lxshop"}},[e("i",{staticClass:"iconfont icon-lianying"}),e("p",[t._v("联营商城")])])},function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("a",{attrs:{href:"/v3/user"}},[e("i",{staticClass:"iconfont icon-huiyuanzhongxin1"}),e("p",[t._v("会员中心")])])}],s=(e("163d"),e("9f3a")),a={name:"navigator",props:{typeVal:{type:Number,default:1}},computed:Object(s["c"])({cartCount:function(t){return t.common.cartCount}}),created:function(){this.$store.dispatch({type:"cartCount"}),this.$store.dispatch({type:"loginCheck"})}},r=a,c=e("9ca4"),l=Object(c["a"])(r,i,o,!1,null,null,null);n["a"]=l.exports},"7be2":function(t,n,e){"use strict";e.d(n,"g",(function(){return i})),e.d(n,"d",(function(){return s})),e.d(n,"b",(function(){return a})),e.d(n,"a",(function(){return r})),e.d(n,"c",(function(){return c})),e.d(n,"e",(function(){return l})),e.d(n,"f",(function(){return u}));var i="#fff",o="van-hairline",s=o+"--top",a=o+"--left",r=o+"--bottom",c=o+"--surround",l=o+"--top-bottom",u=o+"-unset--top-bottom"},"98ee":function(t,n,e){"use strict";var i=e("b3f3"),o=e.n(i);o.a},b3f3:function(t,n,e){},bd89:function(t,n,e){"use strict";var i=e("1bb4"),o=e("0261"),s=e("23c4"),a=e.n(s),r=e("292e"),c=e("8e95"),l=e("7be2"),u=e("fbbe"),f=e("06cb"),d=e("39bf"),h=e("e10b"),p=e("1132"),v=Object(r["a"])("button"),m=v[0],g=v[1];function b(t,n,e,i){var o,s=n.tag,r=n.icon,c=n.type,u=n.color,v=n.plain,m=n.disabled,b=n.loading,_=n.hairline,C=n.loadingText,y={};function O(t){b||m||(Object(f["a"])(i,"click",t),Object(d["a"])(i))}function w(t){Object(f["a"])(i,"touchstart",t)}u&&(y.color=v?u:l["g"],v||(y.background=u),-1!==u.indexOf("gradient")?y.border=0:y.borderColor=u);var j=[g([c,n.size,{plain:v,loading:b,disabled:m,hairline:_,block:n.block,round:n.round,square:n.square}]),(o={},o[l["c"]]=_,o)];function B(){var i,o=[];return b?o.push(t(p["a"],{class:g("loading"),attrs:{size:n.loadingSize,type:n.loadingType,color:"currentColor"}})):r&&o.push(t(h["a"],{attrs:{name:r,classPrefix:n.iconPrefix},class:g("icon")})),i=b?C:e.default?e.default():n.text,i&&o.push(t("span",{class:g("text")},[i])),o}return t(s,a()([{style:y,class:j,attrs:{type:n.nativeType,disabled:m},on:{click:O,touchstart:w}},Object(f["b"])(i)]),[t("div",{class:g("content")},[B()])])}b.props=Object(i["a"])(Object(i["a"])({},d["c"]),{},{text:String,icon:String,color:String,block:Boolean,plain:Boolean,round:Boolean,square:Boolean,loading:Boolean,hairline:Boolean,disabled:Boolean,iconPrefix:String,nativeType:String,loadingText:String,loadingType:String,tag:{type:String,default:"button"},type:{type:String,default:"default"},size:{type:String,default:"normal"},loadingSize:{type:String,default:"20px"}});var _,C=m(b),y=Object(r["a"])("dialog"),O=y[0],w=y[1],j=y[2],B=O({mixins:[Object(u["a"])()],props:{title:String,width:[Number,String],message:String,className:null,callback:Function,beforeClose:Function,messageAlign:String,cancelButtonText:String,cancelButtonColor:String,confirmButtonText:String,confirmButtonColor:String,showCancelButton:Boolean,transition:{type:String,default:"van-dialog-bounce"},showConfirmButton:{type:Boolean,default:!0},overlay:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!1},allowHtml:{type:Boolean,default:!0}},data:function(){return{loading:{confirm:!1,cancel:!1}}},methods:{onClickOverlay:function(){this.handleAction("overlay")},handleAction:function(t){var n=this;this.$emit(t),this.value&&(this.beforeClose?(this.loading[t]=!0,this.beforeClose(t,(function(e){!1!==e&&n.loading[t]&&n.onClose(t),n.loading.confirm=!1,n.loading.cancel=!1}))):this.onClose(t))},onClose:function(t){this.close(),this.callback&&this.callback(t)},onOpened:function(){this.$emit("opened")},onClosed:function(){this.$emit("closed")},genButtons:function(){var t,n=this,e=this.$createElement,i=this.showCancelButton&&this.showConfirmButton;return e("div",{class:[l["d"],w("footer",{buttons:i})]},[this.showCancelButton&&e(C,{attrs:{size:"large",loading:this.loading.cancel,text:this.cancelButtonText||j("cancel")},class:w("cancel"),style:{color:this.cancelButtonColor},on:{click:function(){n.handleAction("cancel")}}}),this.showConfirmButton&&e(C,{attrs:{size:"large",loading:this.loading.confirm,text:this.confirmButtonText||j("confirm")},class:[w("confirm"),(t={},t[l["b"]]=i,t)],style:{color:this.confirmButtonColor},on:{click:function(){n.handleAction("confirm")}}})])},genContent:function(t,n){var e=this.$createElement;if(n)return e("div",{class:w("content")},[n]);var i=this.message,o=this.messageAlign;if(i){var s,r,c={class:w("message",(s={"has-title":t},s[o]=o,s)),domProps:(r={},r[this.allowHtml?"innerHTML":"textContent"]=i,r)};return e("div",{class:w("content")},[e("div",a()([{},c]))])}}},render:function(){var t=arguments[0];if(this.shouldRender){var n=this.message,e=this.slots(),i=this.slots("title")||this.title,o=i&&t("div",{class:w("header",{isolated:!n&&!e})},[i]);return t("transition",{attrs:{name:this.transition},on:{afterEnter:this.onOpened,afterLeave:this.onClosed}},[t("div",{directives:[{name:"show",value:this.value}],attrs:{role:"dialog","aria-labelledby":this.title||n},class:[w(),this.className],style:{width:Object(c["a"])(this.width)}},[o,this.genContent(i,e),this.genButtons()])])}}}),x=e("6f1a");function $(t){return document.body.contains(t)}function S(){_&&_.$destroy(),_=new(o["a"].extend(B))({el:document.createElement("div"),propsData:{lazyRender:!1}}),_.$on("input",(function(t){_.value=t}))}function k(t){return x["f"]?Promise.resolve():new Promise((function(n,e){_&&$(_.$el)||S(),Object(i["a"])(_,k.currentOptions,t,{resolve:n,reject:e})}))}k.defaultOptions={value:!0,title:"",width:"",message:"",overlay:!0,className:"",allowHtml:!0,lockScroll:!0,transition:"van-dialog-bounce",beforeClose:null,overlayClass:"",overlayStyle:null,messageAlign:"",getContainer:"body",cancelButtonText:"",cancelButtonColor:null,confirmButtonText:"",confirmButtonColor:null,showConfirmButton:!0,showCancelButton:!1,closeOnPopstate:!1,closeOnClickOverlay:!1,callback:function(t){_["confirm"===t?"resolve":"reject"](t)}},k.alert=k,k.confirm=function(t){return k(Object(i["a"])({showCancelButton:!0},t))},k.close=function(){_&&(_.value=!1)},k.setDefaultOptions=function(t){Object(i["a"])(k.currentOptions,t)},k.resetDefaultOptions=function(){k.currentOptions=Object(i["a"])({},k.defaultOptions)},k.resetDefaultOptions(),k.install=function(){o["a"].use(B)},k.Component=B,o["a"].prototype.$dialog=k;n["a"]=k},e382:function(t,n,e){"use strict";e.r(n);var i=function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("section",{staticClass:"user-index"},[e("dl",{staticClass:"user-logo"},[e("dt",[t.userInfo.user_info?[e("img",{attrs:{src:t.userInfo.user_info.user_head||"https://www.ichunt.com/v3/dist/res/m/images/headimg/boy1.png"}})]:[e("img",{attrs:{src:"https://www.ichunt.com/v3/dist/res/m/images/headimg/boy1.png"}})]],2),e("dd",[t.userInfo.company_info?e("h4",[t._v("\n "+t._s(t.userInfo.company_info.com_name||"")+"\n ")]):e("h4"),t.userInfo.user_info?[t.userInfo.user_info.email?e("p",{staticClass:"email-x"},[t._v("邮箱:"),e("span",{},[t._v(t._s(t.userInfo.user_info.email))])]):t._e()]:t._e(),t.userInfo.user_info?e("p",{staticClass:"mobile-x"},[t._v("手机号:"),e("span",{},[t._v(t._s(t.userInfo.user_info.mobile))])]):t._e()],2)]),e("div",{staticClass:"clr orderbox"},[e("ul",{staticClass:"user-news mui-row"},[e("li",[e("a",{attrs:{href:"/v3/user/order.html?status=1"}},[e("b",{staticClass:"status1"},[t._v(t._s(t.orderCounts["1"]))]),e("span",[t._v("待审核")])])]),e("li",[e("a",{attrs:{href:"/v3/user/order.html?status=2"}},[e("b",{staticClass:"status2"},[t._v(t._s(t.orderCounts["2"]))]),e("span",[t._v("待付款")])])]),e("li",[e("a",{attrs:{href:"/v3/user/order.html?status=3"}},[e("b",{staticClass:"status3"},[t._v(t._s(t.orderCounts["3"]))]),e("span",[t._v("待付尾款")])])]),e("li",[e("a",{attrs:{href:"/v3/user/order.html?status=8"}},[e("b",{staticClass:"status8"},[t._v(t._s(t.orderCounts["8"]))]),e("span",[t._v("待收货")])])])]),t._m(0)]),e("ul",{staticClass:"user-nav mui-row"},[t._m(1),t._m(2),t._m(3),t._m(4),t._m(5),t.userInfo.user_info?[e("li",[e("a",{attrs:{href:"/v3/forget?phone="+t.userInfo.user_info.mobile}},[e("i",{staticClass:"icon-6 iconfont icon-xiugaimima"}),e("span",[t._v("修改密码")])])])]:[t._m(6)],t._m(7),-1==t.bindInfo.status?[e("li",{staticClass:"bangding bangp"},[e("a",{attrs:{href:2==t.bindInfo.type_?t.qqurl_:"/v3/login/bind"}},[e("i",{staticClass:"icon iconfont icon-jiebang"}),e("span",[t._v("绑定账号")])])])]:[e("li",{staticClass:"jiebang bangp",on:{click:t.jiebang}},[t._m(8)])]],2),t.ismini?e("a",{staticClass:"loginLayoutx",attrs:{href:"javascript:void('0')"},on:{click:t.goOut}},[t._v("退出登录")]):t._e(),e("Navigator",{attrs:{typeVal:t.typeVal}}),t.loading?e("van-loading",{staticClass:"loading-background",attrs:{type:"spinner",color:"#000"}}):t._e()],1)},o=[function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("a",{staticClass:"fr f-gray",attrs:{href:"/v3/user/order.html"}},[e("span",[t._v("查看全部订单")]),e("i",{staticClass:"icon iconfont icon-jinru2"})])},function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("li",[e("a",{attrs:{href:"/v3/user/order"}},[e("i",{staticClass:"icon-1 iconfont icon-wodedingdan-"}),e("span",[t._v("我的订单")])])])},function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("li",[e("a",{attrs:{href:"/v3/user/invoice"}},[e("i",{staticClass:"icon-2 iconfont icon-fapiaoshezhi-"}),e("span",[t._v("发票设置")])])])},function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("li",[e("a",{attrs:{href:"/v3/user/reciveaddress"}},[e("i",{staticClass:"icon-3 iconfont icon-shouhuodizhi-"}),e("span",[t._v("收货地址")])])])},function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("li",[e("a",{attrs:{href:"/v3/user/account"}},[e("i",{staticClass:"icon-4 iconfont icon-jibenxinxi-"}),e("span",[t._v("基本信息")])])])},function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("li",[e("a",{attrs:{href:"/v3/user/coupon"}},[e("i",{staticClass:"icon-5 iconfont icon-youhuiquan"}),e("span",[t._v("优惠劵")])])])},function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("li",[e("a",{attrs:{href:"/v3/forget"}},[e("i",{staticClass:"icon-6 iconfont icon-xiugaimima"}),e("span",[t._v("修改密码")])])])},function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("li",[e("a",{attrs:{href:"/v3/pointmall"}},[e("i",{staticClass:"i7"}),e("span",[t._v("积分商城")])])])},function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("a",{attrs:{href:"javascript:void('0')"}},[e("i",{staticClass:"icon iconfont icon-jiebang"}),e("span",[t._v("解绑账号")])])}],s=(e("5ab2"),e("6d57"),e("e44b"),e("e10e"),e("9bef")),a=e("0261"),r=e("9f3a"),c=e("1132"),l=e("bd89"),u=e("3be7"),f=e("365c");function d(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),e.push.apply(e,i)}return e}function h(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?d(Object(e),!0).forEach((function(n){Object(s["a"])(t,n,e[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):d(Object(e)).forEach((function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}))}return t}a["a"].use(c["a"]).use(l["a"]);var p={name:"userIndex",data:function(){return{qqurl_:f["b"]+"login/qq",typeVal:5,ismini:!0}},computed:h({},Object(r["c"])({loading:function(t){return t.user.loading},userInfo:function(t){return t.user.userInfo},orderCounts:function(t){return t.user.orderCounts},bindInfo:function(t){return t.user.bindInfo},isLayout:function(t){return t.user.isLayout},isGetBindInfo:function(t){return t.user.isGetBindInfo}})),watch:{isLayout:function(t){t&&this.goOut()},isGetBindInfo:function(t){t&&this.$store.dispatch({type:"getBindInfo"})}},created:function(){this.getData(),isMiniProgram&&(this.ismini=!1)},methods:{getData:function(){this.$store.dispatch({type:"getUserType"}),this.$store.dispatch({type:"orderCount"}),this.$store.dispatch({type:"getBindInfo"})},goOut:function(){this.$store.dispatch({type:"logout"})},jiebang:function(){var t=this;l["a"].confirm({message:"请确认是否要解绑当前账号?"}).then((function(){t.$store.dispatch({type:"unbindPhone"})})).catch((function(){}))}},components:{Navigator:u["a"]}},v=p,m=(e("98ee"),e("9ca4")),g=Object(m["a"])(v,i,o,!1,null,"0109257d",null);n["default"]=g.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-30f776c2"],{4839:function(e,t,o){},"9dd9":function(e,t,o){var s=o("e7ad"),r=o("1e5b"),a=o("064e").f,i=o("2ea2").f,n=o("2fd4"),c=o("f1fe"),m=s.RegExp,f=m,l=m.prototype,p=/a/g,d=/a/g,w=new m(p)!==p;if(o("149f")&&(!w||o("238a")((function(){return d[o("cb3d")("match")]=!1,m(p)!=p||m(d)==d||"/a/i"!=m(p,"i")})))){m=function(e,t){var o=this instanceof m,s=n(e),a=void 0===t;return!o&&s&&e.constructor===m&&a?e:r(w?new f(s&&!a?e.source:e,t):f((s=e instanceof m)?e.source:e,s&&a?c.call(e):t),o?this:l,m)};for(var v=function(e){e in m||a(m,e,{configurable:!0,get:function(){return f[e]},set:function(t){f[e]=t}})},u=i(f),h=0;u.length>h;)v(u[h++]);l.constructor=m,m.prototype=l,o("bf16")(s,"RegExp",m)}o("1157")("RegExp")},a179:function(e,t,o){"use strict";o.r(t);var s=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("section",{staticClass:"wallet-retrieve"},[o("Header",{attrs:{title:e.title,meaushow:e.meaushow}}),o("div",{directives:[{name:"show",rawName:"v-show",value:e.step1,expression:"step1"}],staticClass:"retrieve-content"},[o("ul",{staticClass:"form-wrap"},[o("li",{staticClass:"inp-wrap",staticStyle:{height:"1.5rem"}},[o("label",{staticClass:"va-m"},[e._v("安全手机号: "+e._s(e.walletInfoData.safe_mobile))])]),o("li",{directives:[{name:"show",rawName:"v-show",value:e.retieveShowImgCode,expression:"retieveShowImgCode"}],staticClass:"inp-wrap"},[o("label",{staticClass:"va-m"},[e._v("图片验证码")]),o("br"),o("input",{directives:[{name:"model",rawName:"v-model",value:e.form.imgCode,expression:"form.imgCode"}],staticClass:"va-m inp",attrs:{type:"text",placeholder:"请输入验证码"},domProps:{value:e.form.imgCode},on:{input:function(t){t.target.composing||e.$set(e.form,"imgCode",t.target.value)}}}),o("img",{staticClass:"img-code va-m",attrs:{src:e.imgCodeVal,alt:"图片验证码"},on:{click:e.changeImgCode}})]),o("li",{staticClass:"inp-wrap",staticStyle:{"border-top":"none"}},[o("label",{staticClass:"va-m"},[e._v("验证码")]),o("br"),o("input",{directives:[{name:"model",rawName:"v-model",value:e.form.verifyCode,expression:"form.verifyCode"}],staticClass:"va-m inp",attrs:{type:"text",placeholder:"请输入验证码"},domProps:{value:e.form.verifyCode},on:{input:function(t){t.target.composing||e.$set(e.form,"verifyCode",t.target.value)}}}),e.yzmSend?o("a",{staticClass:"send-yzm va-m",attrs:{href:"javascript:;"},on:{click:e.getCode}},[e._v(e._s(e.countDownText))]):o("a",{staticClass:"sending-yzm va-m",attrs:{href:"javascript:;"}},[e._v("再次发送("+e._s(e.countDown)+"s)")])])]),o("p",{directives:[{name:"show",rawName:"v-show",value:e.formError,expression:"formError"}],staticClass:"form-error"},[e._v(e._s(e.formMsg))]),o("a",{staticClass:"next",attrs:{href:"javascript:;"},on:{click:e.next}},[e._v("下一步")])]),o("div",{directives:[{name:"show",rawName:"v-show",value:e.step2,expression:"step2"}],staticClass:"retrieve-content"},[o("ul",{staticClass:"form-wrap"},[o("li",{staticClass:"inp-wrap"},[o("label",{staticClass:"va-m"},[e._v("设置支付密码")]),o("br"),e.showPassword?[o("input",{directives:[{name:"model",rawName:"v-model",value:e.form.password,expression:"form.password"}],staticClass:"va-m inp",attrs:{type:"password",placeholder:"密码由6~20位字母、数字组合而成"},domProps:{value:e.form.password},on:{input:function(t){t.target.composing||e.$set(e.form,"password",t.target.value)}}})]:[o("input",{directives:[{name:"model",rawName:"v-model",value:e.form.password,expression:"form.password"}],staticClass:"va-m inp",attrs:{type:"text",placeholder:"密码由6~20位字母、数字组合而成"},domProps:{value:e.form.password},on:{input:function(t){t.target.composing||e.$set(e.form,"password",t.target.value)}}})],e.showPassword?o("van-icon",{staticClass:"va-m f-r",attrs:{name:"closed-eye"},on:{click:e.changeShow}}):o("van-icon",{staticClass:"va-m f-r",attrs:{name:"eye-o"},on:{click:e.changeShow}})],2),o("li",{staticClass:"inp-wrap"},[o("label",{staticClass:"va-m"},[e._v("确认支付密码")]),o("br"),e.showPasswordConfirm?[o("input",{directives:[{name:"model",rawName:"v-model",value:e.form.passwordConfirm,expression:"form.passwordConfirm"}],staticClass:"va-m inp",attrs:{type:"password",placeholder:"请再次输入上面的密码"},domProps:{value:e.form.passwordConfirm},on:{input:function(t){t.target.composing||e.$set(e.form,"passwordConfirm",t.target.value)}}})]:[o("input",{directives:[{name:"model",rawName:"v-model",value:e.form.passwordConfirm,expression:"form.passwordConfirm"}],staticClass:"va-m inp",attrs:{type:"text",placeholder:"请再次输入上面的密码"},domProps:{value:e.form.passwordConfirm},on:{input:function(t){t.target.composing||e.$set(e.form,"passwordConfirm",t.target.value)}}})],e.showPasswordConfirm?o("van-icon",{staticClass:"va-m f-r",attrs:{name:"closed-eye"},on:{click:e.changeShowConfirm}}):o("van-icon",{staticClass:"va-m f-r",attrs:{name:"eye-o"},on:{click:e.changeShowConfirm}})],2)]),o("p",{directives:[{name:"show",rawName:"v-show",value:e.formError,expression:"formError"}],staticClass:"form-error"},[e._v(e._s(e.formMsg))]),o("a",{staticClass:"confirm",attrs:{href:"javascript:;"},on:{click:e.confirm}},[e._v("确认")])])],1)},r=[],a=(o("5ab2"),o("6d57"),o("e44b"),o("e10e"),o("9dd9"),o("9bef")),i=o("0261"),n=o("9f3a"),c=o("57af"),m=o("e10b"),f=o("365c");function l(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,s)}return o}function p(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?l(Object(o),!0).forEach((function(t){Object(a["a"])(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):l(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}i["a"].use(m["a"]);var d={name:"walletRetrieve",data:function(){return{title:"找回密码",meaushow:!0,showPassword:!0,showPasswordConfirm:!0,yzmSend:!0,countDown:60,countDownText:"发送验证码",step1:!0,step2:!1,form:{verifyCode:"",imgCode:"",password:"",passwordConfirm:""},formError:!1,formMsg:"",imgCodeVal:f["b"]+"public/verify"}},computed:p({},Object(n["c"])({walletInfoData:function(e){return e.wallet.walletInfoData},retieveShowImgCode:function(e){return e.wallet.retieveShowImgCode},retieveCountDownFlag:function(e){return e.wallet.retieveCountDownFlag},passwordToken:function(e){return e.wallet.passwordToken}})),watch:{retieveCountDownFlag:function(e){e?(this.yzmSend=!1,this.timeNum()):this.yzmSend=!0},passwordToken:function(e){e?(this.step1=!1,this.step2=!0):(this.step1=!0,this.step2=!1)}},created:function(){this.$store.dispatch({type:"getWalletInfo"})},methods:{changeShow:function(){this.showPassword=!this.showPassword},changeShowConfirm:function(){this.showPasswordConfirm=!this.showPasswordConfirm},timeNum:function(){var e=this,t=setInterval(o,1e3);function o(){e.countDown--,e.countDown<=0&&(clearInterval(t),e.countDown=60,e.countDownText="再次发送",e.yzmSend=!0)}},changeImgCode:function(){this.imgCodeVal=f["b"]+"public/verify?"+(new Date).getTime()},getCode:function(){this.$store.dispatch({type:"smsVerifyRetrieve",imgCode:this.form.imgCode})},next:function(){if(!this.form.verifyCode)return this.formError=!0,void(this.formMsg="亲,请输入验证码");this.formError=!1,this.$store.dispatch({type:"verifyResetsms",verify_code:this.form.verifyCode})},confirm:function(){var e=new RegExp(/^[a-zA-Z0-9]{6,20}$/);return this.form.password?e.test(this.form.password)?this.form.passwordConfirm?this.form.password!==this.form.passwordConfirm?(this.formError=!0,void(this.formMsg="亲,两次输入支付密码不一致")):(this.formError=!1,void this.$store.dispatch({type:"changeWalletpwd",token:this.passwordToken,pay_password:this.form.password,reconfirm:this.form.passwordConfirm,mode:"forget"})):(this.formError=!0,void(this.formMsg="亲,请再次输入支付密码")):(this.formError=!0,void(this.formMsg="亲,密码由6~20位字母、数字组合")):(this.formError=!0,void(this.formMsg="亲,请输入支付密码"))}},components:{Header:c["a"]}},w=d,v=(o("b5ac"),o("9ca4")),u=Object(v["a"])(w,s,r,!1,null,"4f0ad80f",null);t["default"]=u.exports},b5ac:function(e,t,o){"use strict";var s=o("4839"),r=o.n(s);r.a}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-30f776c2"],{4839:function(e,t,o){},"9dd9":function(e,t,o){var s=o("e7ad"),r=o("1e5b"),a=o("064e").f,i=o("2ea2").f,n=o("2fd4"),c=o("f1fe"),m=s.RegExp,f=m,l=m.prototype,p=/a/g,d=/a/g,w=new m(p)!==p;if(o("149f")&&(!w||o("238a")((function(){return d[o("cb3d")("match")]=!1,m(p)!=p||m(d)==d||"/a/i"!=m(p,"i")})))){m=function(e,t){var o=this instanceof m,s=n(e),a=void 0===t;return!o&&s&&e.constructor===m&&a?e:r(w?new f(s&&!a?e.source:e,t):f((s=e instanceof m)?e.source:e,s&&a?c.call(e):t),o?this:l,m)};for(var v=function(e){e in m||a(m,e,{configurable:!0,get:function(){return f[e]},set:function(t){f[e]=t}})},u=i(f),h=0;u.length>h;)v(u[h++]);l.constructor=m,m.prototype=l,o("bf16")(s,"RegExp",m)}o("1157")("RegExp")},a179:function(e,t,o){"use strict";o.r(t);var s=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("section",{staticClass:"wallet-retrieve"},[o("Header",{attrs:{title:e.title,meaushow:e.meaushow}}),o("div",{directives:[{name:"show",rawName:"v-show",value:e.step1,expression:"step1"}],staticClass:"retrieve-content"},[o("ul",{staticClass:"form-wrap"},[o("li",{staticClass:"inp-wrap",staticStyle:{height:"1.5rem"}},[o("label",{staticClass:"va-m"},[e._v("安全手机号: "+e._s(e.walletInfoData.safe_mobile))])]),o("li",{directives:[{name:"show",rawName:"v-show",value:e.retieveShowImgCode,expression:"retieveShowImgCode"}],staticClass:"inp-wrap"},[o("label",{staticClass:"va-m"},[e._v("图片验证码")]),o("br"),o("input",{directives:[{name:"model",rawName:"v-model",value:e.form.imgCode,expression:"form.imgCode"}],staticClass:"va-m inp",attrs:{type:"text",placeholder:"请输入验证码"},domProps:{value:e.form.imgCode},on:{input:function(t){t.target.composing||e.$set(e.form,"imgCode",t.target.value)}}}),o("img",{staticClass:"img-code va-m",attrs:{src:e.imgCodeVal,alt:"图片验证码"},on:{click:e.changeImgCode}})]),o("li",{staticClass:"inp-wrap",staticStyle:{"border-top":"none"}},[o("label",{staticClass:"va-m"},[e._v("验证码")]),o("br"),o("input",{directives:[{name:"model",rawName:"v-model",value:e.form.verifyCode,expression:"form.verifyCode"}],staticClass:"va-m inp",attrs:{type:"text",placeholder:"请输入验证码"},domProps:{value:e.form.verifyCode},on:{input:function(t){t.target.composing||e.$set(e.form,"verifyCode",t.target.value)}}}),e.yzmSend?o("a",{staticClass:"send-yzm va-m",attrs:{href:"javascript:;"},on:{click:e.getCode}},[e._v(e._s(e.countDownText))]):o("a",{staticClass:"sending-yzm va-m",attrs:{href:"javascript:;"}},[e._v("再次发送("+e._s(e.countDown)+"s)")])])]),o("p",{directives:[{name:"show",rawName:"v-show",value:e.formError,expression:"formError"}],staticClass:"form-error"},[e._v(e._s(e.formMsg))]),o("a",{staticClass:"next",attrs:{href:"javascript:;"},on:{click:e.next}},[e._v("下一步")])]),o("div",{directives:[{name:"show",rawName:"v-show",value:e.step2,expression:"step2"}],staticClass:"retrieve-content"},[o("ul",{staticClass:"form-wrap"},[o("li",{staticClass:"inp-wrap"},[o("label",{staticClass:"va-m"},[e._v("设置支付密码")]),o("br"),e.showPassword?[o("input",{directives:[{name:"model",rawName:"v-model",value:e.form.password,expression:"form.password"}],staticClass:"va-m inp",attrs:{type:"password",placeholder:"密码由6~20位字母、数字组合而成"},domProps:{value:e.form.password},on:{input:function(t){t.target.composing||e.$set(e.form,"password",t.target.value)}}})]:[o("input",{directives:[{name:"model",rawName:"v-model",value:e.form.password,expression:"form.password"}],staticClass:"va-m inp",attrs:{type:"text",placeholder:"密码由6~20位字母、数字组合而成"},domProps:{value:e.form.password},on:{input:function(t){t.target.composing||e.$set(e.form,"password",t.target.value)}}})],e.showPassword?o("van-icon",{staticClass:"va-m f-r",attrs:{name:"closed-eye"},on:{click:e.changeShow}}):o("van-icon",{staticClass:"va-m f-r",attrs:{name:"eye-o"},on:{click:e.changeShow}})],2),o("li",{staticClass:"inp-wrap"},[o("label",{staticClass:"va-m"},[e._v("确认支付密码")]),o("br"),e.showPasswordConfirm?[o("input",{directives:[{name:"model",rawName:"v-model",value:e.form.passwordConfirm,expression:"form.passwordConfirm"}],staticClass:"va-m inp",attrs:{type:"password",placeholder:"请再次输入上面的密码"},domProps:{value:e.form.passwordConfirm},on:{input:function(t){t.target.composing||e.$set(e.form,"passwordConfirm",t.target.value)}}})]:[o("input",{directives:[{name:"model",rawName:"v-model",value:e.form.passwordConfirm,expression:"form.passwordConfirm"}],staticClass:"va-m inp",attrs:{type:"text",placeholder:"请再次输入上面的密码"},domProps:{value:e.form.passwordConfirm},on:{input:function(t){t.target.composing||e.$set(e.form,"passwordConfirm",t.target.value)}}})],e.showPasswordConfirm?o("van-icon",{staticClass:"va-m f-r",attrs:{name:"closed-eye"},on:{click:e.changeShowConfirm}}):o("van-icon",{staticClass:"va-m f-r",attrs:{name:"eye-o"},on:{click:e.changeShowConfirm}})],2)]),o("p",{directives:[{name:"show",rawName:"v-show",value:e.formError,expression:"formError"}],staticClass:"form-error"},[e._v(e._s(e.formMsg))]),o("a",{staticClass:"confirm",attrs:{href:"javascript:;"},on:{click:e.confirm}},[e._v("确认")])])],1)},r=[],a=(o("5ab2"),o("6d57"),o("e44b"),o("e10e"),o("9dd9"),o("9bef")),i=o("0261"),n=o("9f3a"),c=o("57af"),m=o("e10b"),f=o("365c");function l(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,s)}return o}function p(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?l(Object(o),!0).forEach((function(t){Object(a["a"])(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):l(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}i["a"].use(m["a"]);var d={name:"walletRetrieve",data:function(){return{title:"找回密码",meaushow:!0,showPassword:!0,showPasswordConfirm:!0,yzmSend:!0,countDown:60,countDownText:"发送验证码",step1:!0,step2:!1,form:{verifyCode:"",imgCode:"",password:"",passwordConfirm:""},formError:!1,formMsg:"",imgCodeVal:f["c"]+"public/verify"}},computed:p({},Object(n["c"])({walletInfoData:function(e){return e.wallet.walletInfoData},retieveShowImgCode:function(e){return e.wallet.retieveShowImgCode},retieveCountDownFlag:function(e){return e.wallet.retieveCountDownFlag},passwordToken:function(e){return e.wallet.passwordToken}})),watch:{retieveCountDownFlag:function(e){e?(this.yzmSend=!1,this.timeNum()):this.yzmSend=!0},passwordToken:function(e){e?(this.step1=!1,this.step2=!0):(this.step1=!0,this.step2=!1)}},created:function(){this.$store.dispatch({type:"getWalletInfo"})},methods:{changeShow:function(){this.showPassword=!this.showPassword},changeShowConfirm:function(){this.showPasswordConfirm=!this.showPasswordConfirm},timeNum:function(){var e=this,t=setInterval(o,1e3);function o(){e.countDown--,e.countDown<=0&&(clearInterval(t),e.countDown=60,e.countDownText="再次发送",e.yzmSend=!0)}},changeImgCode:function(){this.imgCodeVal=f["c"]+"public/verify?"+(new Date).getTime()},getCode:function(){this.$store.dispatch({type:"smsVerifyRetrieve",imgCode:this.form.imgCode})},next:function(){if(!this.form.verifyCode)return this.formError=!0,void(this.formMsg="亲,请输入验证码");this.formError=!1,this.$store.dispatch({type:"verifyResetsms",verify_code:this.form.verifyCode})},confirm:function(){var e=new RegExp(/^[a-zA-Z0-9]{6,20}$/);return this.form.password?e.test(this.form.password)?this.form.passwordConfirm?this.form.password!==this.form.passwordConfirm?(this.formError=!0,void(this.formMsg="亲,两次输入支付密码不一致")):(this.formError=!1,void this.$store.dispatch({type:"changeWalletpwd",token:this.passwordToken,pay_password:this.form.password,reconfirm:this.form.passwordConfirm,mode:"forget"})):(this.formError=!0,void(this.formMsg="亲,请再次输入支付密码")):(this.formError=!0,void(this.formMsg="亲,密码由6~20位字母、数字组合")):(this.formError=!0,void(this.formMsg="亲,请输入支付密码"))}},components:{Header:c["a"]}},w=d,v=(o("b5ac"),o("9ca4")),u=Object(v["a"])(w,s,r,!1,null,"4f0ad80f",null);t["default"]=u.exports},b5ac:function(e,t,o){"use strict";var s=o("4839"),r=o.n(s);r.a}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-39faa2a4"],{"17a2":function(e,t,o){"use strict";var r=o("8395"),a=o.n(r);a.a},8395:function(e,t,o){},"9dd9":function(e,t,o){var r=o("e7ad"),a=o("1e5b"),s=o("064e").f,n=o("2ea2").f,i=o("2fd4"),c=o("f1fe"),f=r.RegExp,m=f,l=f.prototype,d=/a/g,u=/a/g,p=new f(d)!==d;if(o("149f")&&(!p||o("238a")((function(){return u[o("cb3d")("match")]=!1,f(d)!=d||f(u)==u||"/a/i"!=f(d,"i")})))){f=function(e,t){var o=this instanceof f,r=i(e),s=void 0===t;return!o&&r&&e.constructor===f&&s?e:a(p?new m(r&&!s?e.source:e,t):m((r=e instanceof f)?e.source:e,r&&s?c.call(e):t),o?this:l,f)};for(var v=function(e){e in f||s(f,e,{configurable:!0,get:function(){return m[e]},set:function(t){m[e]=t}})},w=n(m),h=0;w.length>h;)v(w[h++]);l.constructor=f,f.prototype=l,o("bf16")(r,"RegExp",f)}o("1157")("RegExp")},bdad:function(e,t,o){"use strict";o.r(t);var r=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("section",{staticClass:"wallet-verify"},[o("Header",{attrs:{title:e.title,meaushow:e.meaushow}}),o("div",{staticClass:"verify-content"},[o("ul",{staticClass:"form-wrap"},[o("li",{staticClass:"inp-wrap"},[o("label",{staticClass:"va-m"},[e._v("支付密码")]),o("br"),e.showPassword?[o("input",{directives:[{name:"model",rawName:"v-model",value:e.form.password,expression:"form.password"}],staticClass:"va-m inp",attrs:{type:"password",placeholder:"请输入支付密码"},domProps:{value:e.form.password},on:{input:function(t){t.target.composing||e.$set(e.form,"password",t.target.value)}}})]:[o("input",{directives:[{name:"model",rawName:"v-model",value:e.form.password,expression:"form.password"}],staticClass:"va-m inp",attrs:{type:"text",placeholder:"请输入支付密码"},domProps:{value:e.form.password},on:{input:function(t){t.target.composing||e.$set(e.form,"password",t.target.value)}}})],e.showPassword?o("van-icon",{staticClass:"va-m f-r",attrs:{name:"closed-eye"},on:{click:e.changeShow}}):o("van-icon",{staticClass:"va-m f-r",attrs:{name:"eye-o"},on:{click:e.changeShow}})],2),o("li",{directives:[{name:"show",rawName:"v-show",value:e.verifyShowImgCode,expression:"verifyShowImgCode"}],staticClass:"inp-wrap"},[o("label",{staticClass:"va-m"},[e._v("图片验证码")]),o("br"),o("input",{directives:[{name:"model",rawName:"v-model",value:e.form.imgCode,expression:"form.imgCode"}],staticClass:"va-m inp",attrs:{type:"text",placeholder:"请输入验证码"},domProps:{value:e.form.imgCode},on:{input:function(t){t.target.composing||e.$set(e.form,"imgCode",t.target.value)}}}),o("img",{staticClass:"img-code va-m",attrs:{src:e.imgCodeVal,alt:"图片验证码"},on:{click:e.changeImgCode}})]),o("li",{staticClass:"inp-wrap"},[o("label",{staticClass:"va-m"},[e._v("安全手机:"+e._s(e.walletInfoData.safe_mobile))]),o("br"),o("input",{directives:[{name:"model",rawName:"v-model",value:e.form.verifyCode,expression:"form.verifyCode"}],staticClass:"va-m inp",attrs:{type:"text",placeholder:"请输入验证码"},domProps:{value:e.form.verifyCode},on:{input:function(t){t.target.composing||e.$set(e.form,"verifyCode",t.target.value)}}}),e.yzmSend?o("a",{staticClass:"send-yzm va-m",attrs:{href:"javascript:;"},on:{click:e.getCode}},[e._v(e._s(e.countDownText))]):o("a",{staticClass:"sending-yzm va-m",attrs:{href:"javascript:;"}},[e._v("再次发送("+e._s(e.countDown)+"s)")])])]),o("p",{directives:[{name:"show",rawName:"v-show",value:e.formError,expression:"formError"}],staticClass:"form-error"},[e._v(e._s(e.formMsg))]),o("a",{staticClass:"next",attrs:{href:"javascript:;"},on:{click:e.next}},[e._v("下一步")])])],1)},a=[],s=(o("5ab2"),o("6d57"),o("e44b"),o("e10e"),o("9dd9"),o("9bef")),n=o("0261"),i=o("9f3a"),c=o("57af"),f=o("e10b"),m=o("0a68"),l=o("365c");function d(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,r)}return o}function u(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?d(Object(o),!0).forEach((function(t){Object(s["a"])(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):d(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}n["a"].use(f["a"]);var p={name:"WalletVerify",data:function(){return{title:"验证身份",meaushow:!0,showPassword:!0,yzmSend:!0,countDown:60,countDownText:"发送验证码",form:{verifyCode:"",imgCode:"",password:""},formError:!1,formMsg:"",imgCodeVal:l["b"]+"public/verify"}},computed:u({},Object(i["c"])({walletInfoData:function(e){return e.wallet.walletInfoData},verifyShowImgCode:function(e){return e.wallet.verifyShowImgCode},verifyCountDownFlag:function(e){return e.wallet.verifyCountDownFlag}})),watch:{verifyCountDownFlag:function(e){e?(this.yzmSend=!1,this.timeNum()):this.yzmSend=!0}},created:function(){this.$store.dispatch({type:"getWalletInfo"})},methods:{changeShow:function(){this.showPassword=!this.showPassword},timeNum:function(){var e=this,t=setInterval(o,1e3);function o(){e.countDown--,e.countDown<=0&&(clearInterval(t),e.countDown=60,e.countDownText="再次发送",e.yzmSend=!0)}},changeImgCode:function(){this.imgCodeVal=l["b"]+"public/verify?"+(new Date).getTime()},getCode:function(){var e=new RegExp(/^[a-zA-Z0-9]{6,20}$/);this.form.password?e.test(this.form.password)?this.$store.dispatch({type:"sendSafesms",imgCode:this.form.imgCode}):Object(m["a"])({message:"亲,密码由6~20位字母、数字组合",duration:2e3}):Object(m["a"])({message:"亲,请输入支付密码",duration:2e3})},next:function(){var e=new RegExp(/^[a-zA-Z0-9]{6,20}$/);return this.form.password?e.test(this.form.password)?this.form.verifyCode?(this.formError=!1,void this.$store.dispatch({type:"verifySafeMobile",verify_code:this.form.verifyCode,pay_password:this.form.password})):(this.formError=!0,void(this.formMsg="亲,请输入验证码")):(this.formError=!0,void(this.formMsg="亲,密码由6~20位字母、数字组合")):(this.formError=!0,void(this.formMsg="亲,请输入支付密码"))}},components:{Header:c["a"]}},v=p,w=(o("17a2"),o("9ca4")),h=Object(w["a"])(v,r,a,!1,null,"3f338f56",null);t["default"]=h.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-39faa2a4"],{"17a2":function(e,t,o){"use strict";var r=o("8395"),a=o.n(r);a.a},8395:function(e,t,o){},"9dd9":function(e,t,o){var r=o("e7ad"),a=o("1e5b"),s=o("064e").f,n=o("2ea2").f,i=o("2fd4"),c=o("f1fe"),f=r.RegExp,m=f,l=f.prototype,d=/a/g,u=/a/g,p=new f(d)!==d;if(o("149f")&&(!p||o("238a")((function(){return u[o("cb3d")("match")]=!1,f(d)!=d||f(u)==u||"/a/i"!=f(d,"i")})))){f=function(e,t){var o=this instanceof f,r=i(e),s=void 0===t;return!o&&r&&e.constructor===f&&s?e:a(p?new m(r&&!s?e.source:e,t):m((r=e instanceof f)?e.source:e,r&&s?c.call(e):t),o?this:l,f)};for(var v=function(e){e in f||s(f,e,{configurable:!0,get:function(){return m[e]},set:function(t){m[e]=t}})},w=n(m),h=0;w.length>h;)v(w[h++]);l.constructor=f,f.prototype=l,o("bf16")(r,"RegExp",f)}o("1157")("RegExp")},bdad:function(e,t,o){"use strict";o.r(t);var r=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("section",{staticClass:"wallet-verify"},[o("Header",{attrs:{title:e.title,meaushow:e.meaushow}}),o("div",{staticClass:"verify-content"},[o("ul",{staticClass:"form-wrap"},[o("li",{staticClass:"inp-wrap"},[o("label",{staticClass:"va-m"},[e._v("支付密码")]),o("br"),e.showPassword?[o("input",{directives:[{name:"model",rawName:"v-model",value:e.form.password,expression:"form.password"}],staticClass:"va-m inp",attrs:{type:"password",placeholder:"请输入支付密码"},domProps:{value:e.form.password},on:{input:function(t){t.target.composing||e.$set(e.form,"password",t.target.value)}}})]:[o("input",{directives:[{name:"model",rawName:"v-model",value:e.form.password,expression:"form.password"}],staticClass:"va-m inp",attrs:{type:"text",placeholder:"请输入支付密码"},domProps:{value:e.form.password},on:{input:function(t){t.target.composing||e.$set(e.form,"password",t.target.value)}}})],e.showPassword?o("van-icon",{staticClass:"va-m f-r",attrs:{name:"closed-eye"},on:{click:e.changeShow}}):o("van-icon",{staticClass:"va-m f-r",attrs:{name:"eye-o"},on:{click:e.changeShow}})],2),o("li",{directives:[{name:"show",rawName:"v-show",value:e.verifyShowImgCode,expression:"verifyShowImgCode"}],staticClass:"inp-wrap"},[o("label",{staticClass:"va-m"},[e._v("图片验证码")]),o("br"),o("input",{directives:[{name:"model",rawName:"v-model",value:e.form.imgCode,expression:"form.imgCode"}],staticClass:"va-m inp",attrs:{type:"text",placeholder:"请输入验证码"},domProps:{value:e.form.imgCode},on:{input:function(t){t.target.composing||e.$set(e.form,"imgCode",t.target.value)}}}),o("img",{staticClass:"img-code va-m",attrs:{src:e.imgCodeVal,alt:"图片验证码"},on:{click:e.changeImgCode}})]),o("li",{staticClass:"inp-wrap"},[o("label",{staticClass:"va-m"},[e._v("安全手机:"+e._s(e.walletInfoData.safe_mobile))]),o("br"),o("input",{directives:[{name:"model",rawName:"v-model",value:e.form.verifyCode,expression:"form.verifyCode"}],staticClass:"va-m inp",attrs:{type:"text",placeholder:"请输入验证码"},domProps:{value:e.form.verifyCode},on:{input:function(t){t.target.composing||e.$set(e.form,"verifyCode",t.target.value)}}}),e.yzmSend?o("a",{staticClass:"send-yzm va-m",attrs:{href:"javascript:;"},on:{click:e.getCode}},[e._v(e._s(e.countDownText))]):o("a",{staticClass:"sending-yzm va-m",attrs:{href:"javascript:;"}},[e._v("再次发送("+e._s(e.countDown)+"s)")])])]),o("p",{directives:[{name:"show",rawName:"v-show",value:e.formError,expression:"formError"}],staticClass:"form-error"},[e._v(e._s(e.formMsg))]),o("a",{staticClass:"next",attrs:{href:"javascript:;"},on:{click:e.next}},[e._v("下一步")])])],1)},a=[],s=(o("5ab2"),o("6d57"),o("e44b"),o("e10e"),o("9dd9"),o("9bef")),n=o("0261"),i=o("9f3a"),c=o("57af"),f=o("e10b"),m=o("0a68"),l=o("365c");function d(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,r)}return o}function u(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?d(Object(o),!0).forEach((function(t){Object(s["a"])(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):d(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}n["a"].use(f["a"]);var p={name:"WalletVerify",data:function(){return{title:"验证身份",meaushow:!0,showPassword:!0,yzmSend:!0,countDown:60,countDownText:"发送验证码",form:{verifyCode:"",imgCode:"",password:""},formError:!1,formMsg:"",imgCodeVal:l["c"]+"public/verify"}},computed:u({},Object(i["c"])({walletInfoData:function(e){return e.wallet.walletInfoData},verifyShowImgCode:function(e){return e.wallet.verifyShowImgCode},verifyCountDownFlag:function(e){return e.wallet.verifyCountDownFlag}})),watch:{verifyCountDownFlag:function(e){e?(this.yzmSend=!1,this.timeNum()):this.yzmSend=!0}},created:function(){this.$store.dispatch({type:"getWalletInfo"})},methods:{changeShow:function(){this.showPassword=!this.showPassword},timeNum:function(){var e=this,t=setInterval(o,1e3);function o(){e.countDown--,e.countDown<=0&&(clearInterval(t),e.countDown=60,e.countDownText="再次发送",e.yzmSend=!0)}},changeImgCode:function(){this.imgCodeVal=l["c"]+"public/verify?"+(new Date).getTime()},getCode:function(){var e=new RegExp(/^[a-zA-Z0-9]{6,20}$/);this.form.password?e.test(this.form.password)?this.$store.dispatch({type:"sendSafesms",imgCode:this.form.imgCode}):Object(m["a"])({message:"亲,密码由6~20位字母、数字组合",duration:2e3}):Object(m["a"])({message:"亲,请输入支付密码",duration:2e3})},next:function(){var e=new RegExp(/^[a-zA-Z0-9]{6,20}$/);return this.form.password?e.test(this.form.password)?this.form.verifyCode?(this.formError=!1,void this.$store.dispatch({type:"verifySafeMobile",verify_code:this.form.verifyCode,pay_password:this.form.password})):(this.formError=!0,void(this.formMsg="亲,请输入验证码")):(this.formError=!0,void(this.formMsg="亲,密码由6~20位字母、数字组合")):(this.formError=!0,void(this.formMsg="亲,请输入支付密码"))}},components:{Header:c["a"]}},v=p,w=(o("17a2"),o("9ca4")),h=Object(w["a"])(v,r,a,!1,null,"3f338f56",null);t["default"]=h.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-503d2a1d"],{"869c":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("section",{staticClass:"sample-basinfo"},[a("Header",{attrs:{title:e.title,meaushow:e.meaushow,bgcolor:e.bgcolor}}),a("div",{staticClass:"basinfo-form"},[a("div",{staticClass:"form-item"},[e._m(0),a("input",{directives:[{name:"model",rawName:"v-model",value:e.comPhone,expression:"comPhone"}],staticClass:"input",attrs:{type:"text",placeholder:"点击填写手机号码",readonly:Boolean(e.ypBasInfo.mobile)},domProps:{value:e.comPhone},on:{input:function(t){t.target.composing||(e.comPhone=t.target.value)}}})]),a("div",{staticClass:"form-item"},[e._m(1),a("input",{directives:[{name:"model",rawName:"v-model",value:e.userName,expression:"userName"}],staticClass:"input",attrs:{type:"text",placeholder:"请填写真实姓名",maxlength:"10",readonly:Boolean(e.ypBasInfo.user_name)},domProps:{value:e.userName},on:{input:function(t){t.target.composing||(e.userName=t.target.value)}}})]),a("div",{staticClass:"form-item no-border"},[e._m(2),a("input",{directives:[{name:"model",rawName:"v-model",value:e.comEmail,expression:"comEmail"}],staticClass:"input",attrs:{type:"text",placeholder:"请填写常用邮箱",readonly:Boolean(e.ypBasInfo.email)},domProps:{value:e.comEmail},on:{input:function(t){t.target.composing||(e.comEmail=t.target.value)}}})])]),a("div",{staticClass:"save-btn-div"},[a("div",{staticClass:"btn",on:{click:e.saveBasInfo}},[e._v("保存")])])],1)},o=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("h3",{staticClass:"label-h3"},[a("span",{staticClass:"f-red"},[e._v("*")]),e._v("手机号码\n ")])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("h3",{staticClass:"label-h3"},[a("span",{staticClass:"f-red"},[e._v("*")]),e._v("联系人姓名\n ")])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("h3",{staticClass:"label-h3"},[a("span",{staticClass:"f-red"},[e._v("*")]),e._v("邮箱\n ")])}],i=(a("5ab2"),a("6d57"),a("e44b"),a("e10e"),a("9bef")),n=a("0261"),r=a("0a68"),c=a("9f3a"),l=a("57af");function m(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,s)}return a}function u(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?m(Object(a),!0).forEach((function(t){Object(i["a"])(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):m(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}n["a"].use(r["a"]);var f={name:"samplebasinfo",data:function(){return{title:"基础信息填写",meaushow:!0,bgcolor:"#fafafa",comPhone:"",userName:"",comEmail:"",occupationType:this.$route.query.type||-1,fullType:this.$route.query.full||-1,basinfocookie:localStorage.getItem("samplebasinfo")||""}},created:function(){this.fillData()},computed:u({},Object(c["c"])({ypBasInfo:function(e){return e.sampleapply.ypBasInfo}})),methods:{fillData:function(){if(this.basinfocookie){var e=JSON.parse(this.basinfocookie);this.comPhone=e.mobile,this.userName=e.user_name,this.comEmail=e.email}else this.comPhone=this.ypBasInfo.mobile,this.userName=this.ypBasInfo.user_name,this.comEmail=this.ypBasInfo.email},saveBasInfo:function(){var e=this.comPhone.trim(),t=/^[+]?\d*$/,a=this.comEmail.trim(),s=/^[a-zA-Z0-9._%-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,4}$/;if(e.length<5||e.length>11||!t.test(e))Object(r["a"])("请填写正确的手机号码");else if(this.userName)if(s.test(a)){var o=JSON.stringify({mobile:this.comPhone,user_name:this.userName,email:this.comEmail});localStorage.setItem("samplebasinfo",o),this.$router.go(-1)}else Object(r["a"])("请填写正确邮箱");else Object(r["a"])("请填写真实姓名")}},components:{Header:l["a"]}},p=f,h=(a("b799"),a("9ca4")),b=Object(h["a"])(p,s,o,!1,null,"f14c42ea",null);t["default"]=b.exports},b799:function(e,t,a){"use strict";var s=a("d8df"),o=a.n(s);o.a},d8df:function(e,t,a){}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5bb10935"],{2501:function(e,t,a){},3794:function(e,t,a){"use strict";var s=a("2501"),i=a.n(s);i.a},a5d4:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("section",{staticClass:"risk"},[a("div",{staticClass:"banner"}),a("div",{staticClass:"content"},[a("p",{staticClass:"t1"},[e._v("贷款额度在线测评系统")]),a("p",{staticClass:"t2"},[e._v("Online loan quota evaluation system")]),a("div",{staticClass:"form-box boxsiz"},[a("div",{staticClass:"inpt-wrap"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.com_name,expression:"com_name"}],staticClass:"inp",attrs:{type:"text",placeholder:"请输入公司名称"},domProps:{value:e.com_name},on:{input:function(t){t.target.composing||(e.com_name=t.target.value)}}})]),a("div",{staticClass:"inpt-wrap"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.user_name,expression:"user_name"}],staticClass:"inp",attrs:{type:"text",placeholder:"怎么称呼您"},domProps:{value:e.user_name},on:{input:function(t){t.target.composing||(e.user_name=t.target.value)}}})]),a("div",{staticClass:"inpt-wrap"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.account,expression:"account"}],staticClass:"inp",attrs:{type:"number",placeholder:"请输入手机号"},domProps:{value:e.account},on:{input:function(t){t.target.composing||(e.account=t.target.value)}}})]),e.formImgShow?a("div",{staticClass:"inpt-wrap fx"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.verify,expression:"verify"}],staticClass:"inps",attrs:{type:"text",placeholder:"请输入图形验证码"},domProps:{value:e.verify},on:{input:function(t){t.target.composing||(e.verify=t.target.value)}}}),a("a",{staticClass:"imgcode",attrs:{href:"javascript:;"},on:{click:e.updateCode}},[a("img",{attrs:{src:e.imgSrc,alt:""}})])]):e._e(),e.codeshow?a("div",{staticClass:"inpt-wrap fx"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.sms_verify,expression:"sms_verify"}],staticClass:"inps",attrs:{type:"number",placeholder:"输入验证码"},domProps:{value:e.sms_verify},on:{input:function(t){t.target.composing||(e.sms_verify=t.target.value)}}}),a("input",{staticClass:"codebtn lineBlock",class:{codebtndisabled:e.codeactive},attrs:{type:"button",value:e.codetext,disabled:e.disabled},on:{click:e.codeFn}})]):e._e(),a("p",{staticClass:"txt"},[e._v("详细的测评结果会通过手机号传达")]),a("a",{staticClass:"btn",attrs:{href:"javascript:;"},on:{click:e.submit}},[e._v("立即获取测评结果")])])])])},i=[],n=(a("5ab2"),a("6d57"),a("e44b"),a("e10e"),a("9bef")),c=a("9f3a"),o=a("0a68"),r=a("365c"),u=a("4260");function m(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,s)}return a}function l(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?m(Object(a),!0).forEach((function(t){Object(n["a"])(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):m(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var d={name:"risk",computed:l({},Object(c["c"])({formImgShow:function(e){return e.special.formImgShow},countDown:function(e){return e.special.countDown}})),data:function(){return{com_name:"",user_name:"",imgSrc:"",account:"",verify:"",sms_verify:"",codetext:"发送验证码",disabled:!1,codeactive:!1,codeshow:!1}},created:function(){"pc"==u["a"].isUerAgent()&&(window.location.href=r["b"]+"/v3/home/risk"),this.imgSrc=r["b"]+"public/verify"},watch:{account:function(e){var t=/^(13[0-9]|14[579]|15[0-3,5-9]|16[6]|17[0135678]|18[0-9]|19[89])\d{8}$/;t.test(e)&&(this.codeshow=!0)},countDown:function(e){e&&this.timeNum()}},methods:{updateCode:function(){this.imgSrc=r["b"]+"public/verify?"+(new Date).getTime()},timeNum:function(){var e=this,t=60;e.disabled=!0,e.codeactive=!0,e.codetext=t+"秒后获取";var a=setInterval(s,1e3);function s(){t--,t>0?(e.codetext=t+"秒后获取",e.codeactive=!0):(clearInterval(a),e.disabled=!1,e.codeactive=!1,e.codetext="重新获取",t=60)}},submit:function(){return this.com_name?isNaN(this.com_name)?this.com_name.length>50?(Object(o["a"])({message:"公司名称长度不能超过50",duration:2e3}),!1):this.user_name?isNaN(this.user_name)?this.user_name.length>50?(Object(o["a"])({message:"称呼长度不能超过50",duration:2e3}),!1):this.account?this.sms_verify?void this.$store.dispatch({type:"actionLogins",account:this.account,from:"risk",sms_verify:this.sms_verify,com_name:this.com_name,user_name:this.user_name}):(Object(o["a"])({message:"请输入验证码",duration:2e3}),!1):(Object(o["a"])({message:"请输入手机号",duration:2e3}),!1):(Object(o["a"])({message:"不允许输入纯数字",duration:2e3}),!1):(Object(o["a"])({message:"怎么称呼您",duration:2e3}),!1):(Object(o["a"])({message:"公司名称不允许输入纯数字",duration:2e3}),!1):(Object(o["a"])({message:"请输入公司名称",duration:2e3}),!1)},codeFn:function(){if(!this.account)return Object(o["a"])({message:"请输入手机号",duration:2e3}),!1;this.$store.dispatch({type:"smsVerifys",mobile:this.account,verify:this.verify})}}},p=d,v=(a("3794"),a("9ca4")),f=Object(v["a"])(p,s,i,!1,null,"eb1b0594",null);t["default"]=f.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5bb10935"],{2501:function(e,t,a){},3794:function(e,t,a){"use strict";var s=a("2501"),i=a.n(s);i.a},a5d4:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("section",{staticClass:"risk"},[a("div",{staticClass:"banner"}),a("div",{staticClass:"content"},[a("p",{staticClass:"t1"},[e._v("贷款额度在线测评系统")]),a("p",{staticClass:"t2"},[e._v("Online loan quota evaluation system")]),a("div",{staticClass:"form-box boxsiz"},[a("div",{staticClass:"inpt-wrap"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.com_name,expression:"com_name"}],staticClass:"inp",attrs:{type:"text",placeholder:"请输入公司名称"},domProps:{value:e.com_name},on:{input:function(t){t.target.composing||(e.com_name=t.target.value)}}})]),a("div",{staticClass:"inpt-wrap"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.user_name,expression:"user_name"}],staticClass:"inp",attrs:{type:"text",placeholder:"怎么称呼您"},domProps:{value:e.user_name},on:{input:function(t){t.target.composing||(e.user_name=t.target.value)}}})]),a("div",{staticClass:"inpt-wrap"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.account,expression:"account"}],staticClass:"inp",attrs:{type:"number",placeholder:"请输入手机号"},domProps:{value:e.account},on:{input:function(t){t.target.composing||(e.account=t.target.value)}}})]),e.formImgShow?a("div",{staticClass:"inpt-wrap fx"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.verify,expression:"verify"}],staticClass:"inps",attrs:{type:"text",placeholder:"请输入图形验证码"},domProps:{value:e.verify},on:{input:function(t){t.target.composing||(e.verify=t.target.value)}}}),a("a",{staticClass:"imgcode",attrs:{href:"javascript:;"},on:{click:e.updateCode}},[a("img",{attrs:{src:e.imgSrc,alt:""}})])]):e._e(),e.codeshow?a("div",{staticClass:"inpt-wrap fx"},[a("input",{directives:[{name:"model",rawName:"v-model",value:e.sms_verify,expression:"sms_verify"}],staticClass:"inps",attrs:{type:"number",placeholder:"输入验证码"},domProps:{value:e.sms_verify},on:{input:function(t){t.target.composing||(e.sms_verify=t.target.value)}}}),a("input",{staticClass:"codebtn lineBlock",class:{codebtndisabled:e.codeactive},attrs:{type:"button",value:e.codetext,disabled:e.disabled},on:{click:e.codeFn}})]):e._e(),a("p",{staticClass:"txt"},[e._v("详细的测评结果会通过手机号传达")]),a("a",{staticClass:"btn",attrs:{href:"javascript:;"},on:{click:e.submit}},[e._v("立即获取测评结果")])])])])},i=[],n=(a("5ab2"),a("6d57"),a("e44b"),a("e10e"),a("9bef")),c=a("9f3a"),o=a("0a68"),r=a("365c"),u=a("4260");function m(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,s)}return a}function l(e){for(var t=1;t<arguments.length;t++){var a=null!=arguments[t]?arguments[t]:{};t%2?m(Object(a),!0).forEach((function(t){Object(n["a"])(e,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):m(Object(a)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(a,t))}))}return e}var d={name:"risk",computed:l({},Object(c["c"])({formImgShow:function(e){return e.special.formImgShow},countDown:function(e){return e.special.countDown}})),data:function(){return{com_name:"",user_name:"",imgSrc:"",account:"",verify:"",sms_verify:"",codetext:"发送验证码",disabled:!1,codeactive:!1,codeshow:!1}},created:function(){"pc"==u["a"].isUerAgent()&&(window.location.href=r["c"]+"/v3/home/risk"),this.imgSrc=r["c"]+"public/verify"},watch:{account:function(e){var t=/^(13[0-9]|14[579]|15[0-3,5-9]|16[6]|17[0135678]|18[0-9]|19[89])\d{8}$/;t.test(e)&&(this.codeshow=!0)},countDown:function(e){e&&this.timeNum()}},methods:{updateCode:function(){this.imgSrc=r["c"]+"public/verify?"+(new Date).getTime()},timeNum:function(){var e=this,t=60;e.disabled=!0,e.codeactive=!0,e.codetext=t+"秒后获取";var a=setInterval(s,1e3);function s(){t--,t>0?(e.codetext=t+"秒后获取",e.codeactive=!0):(clearInterval(a),e.disabled=!1,e.codeactive=!1,e.codetext="重新获取",t=60)}},submit:function(){return this.com_name?isNaN(this.com_name)?this.com_name.length>50?(Object(o["a"])({message:"公司名称长度不能超过50",duration:2e3}),!1):this.user_name?isNaN(this.user_name)?this.user_name.length>50?(Object(o["a"])({message:"称呼长度不能超过50",duration:2e3}),!1):this.account?this.sms_verify?void this.$store.dispatch({type:"actionLogins",account:this.account,from:"risk",sms_verify:this.sms_verify,com_name:this.com_name,user_name:this.user_name}):(Object(o["a"])({message:"请输入验证码",duration:2e3}),!1):(Object(o["a"])({message:"请输入手机号",duration:2e3}),!1):(Object(o["a"])({message:"不允许输入纯数字",duration:2e3}),!1):(Object(o["a"])({message:"怎么称呼您",duration:2e3}),!1):(Object(o["a"])({message:"公司名称不允许输入纯数字",duration:2e3}),!1):(Object(o["a"])({message:"请输入公司名称",duration:2e3}),!1)},codeFn:function(){if(!this.account)return Object(o["a"])({message:"请输入手机号",duration:2e3}),!1;this.$store.dispatch({type:"smsVerifys",mobile:this.account,verify:this.verify})}}},p=d,v=(a("3794"),a("9ca4")),f=Object(v["a"])(p,s,i,!1,null,"eb1b0594",null);t["default"]=f.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-65512df9"],{"0092":function(t,i,s){"use strict";var n=s("292e"),a=s("ee4e"),e=s("4382"),c=s("40c0"),r=s("1132"),o=Object(n["a"])("list"),l=o[0],h=o[1],d=o[2];i["a"]=l({mixins:[Object(c["a"])((function(t){this.scroller||(this.scroller=Object(e["d"])(this.$el)),t(this.scroller,"scroll",this.check)}))],model:{prop:"loading"},props:{error:Boolean,loading:Boolean,finished:Boolean,errorText:String,loadingText:String,finishedText:String,immediateCheck:{type:Boolean,default:!0},offset:{type:[Number,String],default:300},direction:{type:String,default:"down"}},data:function(){return{innerLoading:this.loading}},updated:function(){this.innerLoading=this.loading},mounted:function(){this.immediateCheck&&this.check()},watch:{loading:"check",finished:"check"},methods:{check:function(){var t=this;this.$nextTick((function(){if(!(t.innerLoading||t.finished||t.error)){var i,s=t.$el,n=t.scroller,e=t.offset,c=t.direction;i=n.getBoundingClientRect?n.getBoundingClientRect():{top:0,bottom:n.innerHeight};var r=i.bottom-i.top;if(!r||Object(a["a"])(s))return!1;var o=!1,l=t.$refs.placeholder.getBoundingClientRect();o="up"===c?i.top-l.top<=e:l.bottom-i.bottom<=e,o&&(t.innerLoading=!0,t.$emit("input",!0),t.$emit("load"))}}))},clickErrorText:function(){this.$emit("update:error",!1),this.check()},genLoading:function(){var t=this.$createElement;if(this.innerLoading&&!this.finished)return t("div",{class:h("loading"),key:"loading"},[this.slots("loading")||t(r["a"],{attrs:{size:"16"}},[this.loadingText||d("loading")])])},genFinishedText:function(){var t=this.$createElement;if(this.finished){var i=this.slots("finished")||this.finishedText;if(i)return t("div",{class:h("finished-text")},[i])}},genErrorText:function(){var t=this.$createElement;if(this.error){var i=this.slots("error")||this.errorText;if(i)return t("div",{on:{click:this.clickErrorText},class:h("error-text")},[i])}}},render:function(){var t=arguments[0],i=t("div",{ref:"placeholder",class:h("placeholder")});return t("div",{class:h(),attrs:{role:"feed","aria-busy":this.innerLoading}},["down"===this.direction?this.slots():i,this.genLoading(),this.genFinishedText(),this.genErrorText(),"up"===this.direction?this.slots():i])}})},"013f":function(t,i,s){var n=s("4ce5"),a=s("224c"),e=s("008a"),c=s("eafa"),r=s("5dd2");t.exports=function(t,i){var s=1==t,o=2==t,l=3==t,h=4==t,d=6==t,u=5==t||d,f=i||r;return function(i,r,g){for(var p,v,y=e(i),b=a(y),k=n(r,g,3),m=c(b.length),_=0,C=s?f(i,m):o?f(i,0):void 0;m>_;_++)if((u||_ in b)&&(p=b[_],v=k(p,_,y),t))if(s)C[_]=v;else if(v)switch(t){case 3:return!0;case 5:return p;case 6:return _;case 2:C.push(p)}else if(h)return!1;return d?-1:l||h?h:C}}},"3fa7":function(t,i,s){"use strict";s.r(i);var n=function(){var t=this,i=t.$createElement,s=t._self._c||i;return s("div",[s("Header",{attrs:{inputShow:!0,meaushow:!0},on:{toSearch:t.toSearch}}),s("div",{staticClass:"xianhuo"},[s("div",{staticClass:"search-cont"},[s("div",{staticClass:"search-list"},[s("div",{staticClass:"self-ichunt"},[s("div",{staticClass:"search-sift"},[t.isScrollShow?t._e():s("div",{staticClass:"title-cut"},[s("p",{staticClass:"fr xuan",on:{click:t.openRight}},[s("span",{staticClass:"font"},[t._v("筛选")]),s("i",{staticClass:"icon iconfont icon-shaixuan"})]),s("ul",{staticClass:"total-rank"},[s("li",{class:{act:0==t.zyRankInit},on:{click:function(i){return t.changezyRankInit(0)}}},[t._v("综合")]),s("li",{class:{act:1==t.zyRankInit||2==t.zyRankInit},on:{click:function(i){return t.changezyRankInit("kc")}}},[t._v("\n 库存\n "),s("span",[s("i",{class:{"icon-top":!0,bright:1==t.zyRankInit}}),s("i",{class:{"icon-bot":!0,bright:2==t.zyRankInit}})])]),s("li",{class:{act:3==t.zyRankInit||4==t.zyRankInit},on:{click:function(i){return t.changezyRankInit("jg")}}},[t._v("\n 价格\n "),s("span",[s("i",{class:{"icon-top":!0,bright:3==t.zyRankInit}}),s("i",{class:{"icon-bot":!0,bright:4==t.zyRankInit}})])])])]),t.isScrollShow?t._e():s("div",{staticClass:"sift-box"},[s("dl",{class:{p_act:0==t.zyFilterInit}},[s("dt",{class:{"f-blue":t.classFilter},on:{click:function(i){return t.changeZyFilterInit(0)}}},[t._v(t._s(t.classFilter||"分类筛选"))]),s("dd",{style:{display:0==t.zyFilterInit?"block":"none"}},[s("ul",[s("ul",{staticClass:"classify_left"},[t.classData.length?t._l(t.classData,(function(i,n){return s("li",{class:{check:i.flag||t.firstCheckId==i.class_id1},on:{click:function(s){return t.getClassSecond(i)}}},[s("span",[t._v(t._s(i.class_id1_name+"("+i.class_id1_num+")"))])])})):t._e()],2),s("div",{staticClass:"classify_right_box"},[s("ul",{staticClass:"classify_right"},[t.secondClass?t._l(t.secondClass,(function(i,n){return s("li",{class:{check:i.flag},on:{click:function(s){return t.getSecondData(i)}}},[s("span",[t._v(t._s(i.class_id2_name+"("+i.class_id2_num+")"))])])})):t._e()],2)])]),s("div",{staticClass:"button"},[s("a",{staticClass:"cancel",on:{click:function(i){return t.reset("class")}}},[t._v("重置")]),s("a",{staticClass:"confirm",on:{click:function(i){return t.addPostData("class")}}},[t._v("确定")])])])]),s("dl",{class:{p_act:1==t.zyFilterInit}},[s("dt",{class:{"f-blue":t.brand},on:{click:function(i){return t.changeZyFilterInit(1)}}},[t._v(t._s(t.brand||"制造商"))]),s("dd",{style:{display:1==t.zyFilterInit?"block":"none"}},[s("ul",[t.zyFilterData.brand_id?t._l(t.zyFilterData.brand_id.list,(function(i,n){return s("li",{class:{check:i.check},on:{click:function(i){return t.addFilterData(n,"brand_id")}}},[s("span",[t._v(t._s(i.name+"("+i.num+")"))])])})):t._e()],2),s("div",{staticClass:"button"},[s("a",{staticClass:"cancel",on:{click:function(i){return t.reset("brand")}}},[t._v("重置")]),s("a",{staticClass:"confirm",on:{click:function(i){return t.addPostData("brand")}}},[t._v("确定")])])])]),s("dl",{class:{p_act:2==t.zyFilterInit}},[s("dt",{class:{"f-blue":t.encap},on:{click:function(i){return t.changeZyFilterInit(2)}}},[t._v(t._s(t.encap||"封装规格"))]),s("dd",{style:{display:2==t.zyFilterInit?"block":"none"}},[s("ul",[t.zyFilterData.encap?t._l(t.zyFilterData.encap.list,(function(i,n){return s("li",{class:{check:i.check},on:{click:function(i){return t.addFilterData(n,"encap")}}},[s("span",[t._v(t._s(i.name+"("+i.num+")"))])])})):t._e()],2),s("div",{staticClass:"button"},[s("a",{staticClass:"cancel",on:{click:function(i){return t.reset("encap")}}},[t._v("重置")]),s("a",{staticClass:"confirm",on:{click:function(i){return t.addPostData("encap")}}},[t._v("确定")])])])]),s("dl",{class:{p_act:3==t.zyFilterInit}},[s("dt",{class:{"f-blue":t.packing},on:{click:function(i){return t.changeZyFilterInit(3)}}},[t._v(t._s(t.packing||"包装筛选"))]),s("dd",{style:{display:3==t.zyFilterInit?"block":"none"}},[s("ul",[t.zyFilterData.packing?t._l(t.zyFilterData.packing.list,(function(i,n){return s("li",{class:{check:i.check},on:{click:function(i){return t.addFilterData(n,"packing")}}},[s("span",[t._v(t._s(i.name+"("+i.num+")"))])])})):t._e()],2),s("div",{staticClass:"button"},[s("a",{staticClass:"cancel",on:{click:function(i){return t.reset("packing")}}},[t._v("重置")]),s("a",{staticClass:"confirm",on:{click:function(i){return t.addPostData("packing")}}},[t._v("确定")])])])])]),t.isScrollShow?s("div",{staticClass:"sosoarr"},[t._l(t.navTopStr,(function(i,n){return["classStr"!==n&&"rightStr"!==n&&i?s("span",[s("b",[t._v("·")]),t._v("\n "+t._s(i)+"\n ")]):t._e(),"classStr"!=n&&"rightStr"!=n||!i?t._e():s("span",[t._v(t._s(i))])]}))],2):t._e()])])])]),s("div",{staticClass:"content_scroll",style:{top:t.isScrollShow?"44px":"80px"},on:{scroll:t.scrollEvent}},[s("van-list",{attrs:{finished:t.finished,"finished-text":"我是有底线的噢","immediate-check":!1},on:{load:t.onLoad},model:{value:t.loadingXh,callback:function(i){t.loadingXh=i},expression:"loadingXh"}},[s("GoodsOne",{attrs:{dataList:t.zyData,isZy:t.isZy},on:{placeOrder:t.placeOrder}})],1)],1)]),s("SideBar",{attrs:{isWindow:t.isWindow,carshow:t.carshow}}),s("rightSelect",{directives:[{name:"show",rawName:"v-show",value:t.isShowRight,expression:"isShowRight"}],attrs:{filterData:t.zyFilterData,isShow:t.isShowRight},on:{resetRight:t.resetRight,filterRight:t.filterRight}}),t.isShowRight||-1!=t.zyFilterInit?s("div",{class:{backdrop:!0,zIndex:-1!=t.zyFilterInit},on:{click:t.closeRight}}):t._e(),s("goodsDetail",{attrs:{detailsData:t.detailsData}}),s("addCarAlert")],1)},a=[],e=(s("5ab2"),s("6d57"),s("e44b"),s("e10e"),s("cc57"),s("e204"),s("9bef")),c=s("57af"),r=s("e10b"),o=s("0092"),l=s("9f3a"),h=function(){var t=this,i=t.$createElement,s=t._self._c||i;return s("div",{staticClass:"filter_box"},[s("div",{staticClass:"filter_condition"},[s("dl",{staticClass:"filter_stock"},[t._m(0),s("dd",{staticClass:"stock_content"},[s("span",{class:{stock_li:!0,check:t.isyh},on:{click:t.changYh}},[t._v("仅看有货")])])]),t._l(t.filterData,(function(i,n){return["brand_id"!=n&&"encap"!=n&&"packing"!=n?[s("dl",{staticClass:"filter_dl"},[s("dt",{staticClass:"filter_dt"},[s("div",{staticClass:"filter_head"},[s("span",{staticClass:"filter_title"},[t._v(t._s(n))]),t.selectObj[n]&&t.selectObj[n].length?[s("span",{staticClass:"filter_xuan",staticStyle:{color:"rgb(16, 128, 208)"}},[t._v(t._s(t.selectObj[n].join()))])]:[s("span",{staticClass:"filter_xuan"},[t._v("全部")])]],2),s("div",{staticClass:"filter_more",on:{click:function(i){return t.showDetail(n)}}},[s("i",{staticClass:"icon iconfont icon_down",class:{icon:!0,iconfont:!0,icon_up:i.showMore,icon_down:!i.showMore}})])]),s("dd",{staticClass:"filter_content",style:{height:i.showMore?"auto":"0.89333rem"}},[s("ul",{staticClass:"clr filter_ul"},t._l(i.list,(function(i,a){return s("li",{class:{filter_li:!0,check:i.check},on:{click:function(i){return t.selectRight(n,a)}}},[t._v(t._s(i.name+"("+i.num+")"))])})),0)])])]:t._e()]}))],2),s("div",{staticClass:"button"},[s("a",{staticClass:"but font cancel",on:{click:t.resetRight}},[t._v("重置")]),s("a",{staticClass:"but-blue confirm",on:{click:t.filterRight}},[t._v("确定")])])])},d=[function(){var t=this,i=t.$createElement,s=t._self._c||i;return s("dt",{staticClass:"stock_dt"},[s("span",{staticClass:"stock_title"},[t._v("商品库存")])])}],u={data:function(){return{selectObj:{},isyh:!1}},props:{filterData:{type:Object,default:function(){return{}}},isShow:{type:Boolean,default:!1}},watch:{isShow:function(t){if(t&&"{}"!==JSON.stringify(this.selectObj))for(var i in this.filterData)for(var s=this.filterData[i].list,n=0;n<s.length;n++)if(this.selectObj[i]){var a=this.selectObj[i].indexOf(s[n].name);-1!==a&&this.$set(this.filterData[i].list[n],"check",!0)}}},methods:{changYh:function(){this.isyh=!this.isyh},resetRight:function(){this.selectObj={},this.isyh=!1,this.$emit("resetRight")},filterRight:function(){var t={};t=this.isyh?{filterData:this.selectObj,isyh:!0}:{filterData:this.selectObj,isyh:!1},this.$emit("filterRight",t)},showDetail:function(t){this.filterData[t].showMore?this.filterData[t].showMore=!1:this.$set(this.filterData[t],"showMore",!0)},selectRight:function(t,i){var s=this.filterData[t].list[i].name;if(this.filterData[t].list[i].check){this.filterData[t].list[i].check=!1;var n=this.selectObj[t].indexOf(s);this.selectObj[t].splice(n,1),this.selectObj[t].length||delete this.selectObj[t]}else this.$set(this.filterData[t].list[i],"check",!0),this.selectObj[t]?this.selectObj[t].push(s):this.selectObj[t]=[s]}}},f=u,g=(s("81ae"),s("9ca4")),p=Object(g["a"])(f,h,d,!1,null,null,null),v=p.exports,y=s("9df3"),b=s("61ab"),k=s("7f1b"),m=s("365c"),_=s("a923");function C(t,i){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);i&&(n=n.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),s.push.apply(s,n)}return s}function S(t){for(var i=1;i<arguments.length;i++){var s=null!=arguments[i]?arguments[i]:{};i%2?C(Object(s),!0).forEach((function(i){Object(e["a"])(t,i,s[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):C(Object(s)).forEach((function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(s,i))}))}return t}var w={name:"xianhuo",components:{Header:c["a"],"van-icon":r["a"],rightSelect:v,"van-list":o["a"],GoodsOne:y["a"],goodsDetail:b["a"],SideBar:k["a"],addCarAlert:_["a"]},data:function(){return{detailsData:{isShow:!1,id:""},isWindow:!0,carshow:!0,isZy:!0,zyFilterInit:-1,zyRankInit:0,classFilter:"",brand:"",encap:"",packing:"",classStr:"",brandStr:"",encapStr:"",packingStr:"",secondClass:[],addClassStr:"",firstCheckId:"",firstClassName:"",secondClassName:"",isResetData:!1,isShowRight:!1,list:[],loadingXh:!1,p:1,rightFilterData:{},navTopStr:{classStr:"",brandStr:"",encapStr:"",packingStr:"",rightStr:""},isScrollShow:!1}},created:function(){this.getDefaultClass(),this.$store.commit("closeAlert")},computed:S({},Object(l["c"])({zyFilter:function(t){return t.xianhuo.zyFilter},zyClass:function(t){return t.xianhuo.zyClass},zyRank:function(t){return t.xianhuo.zyRank},classData:function(t){return t.xianhuo.classData},classLight:function(t){return t.xianhuo.classLight},zyFilterData:function(t){return t.xianhuo.zyFilterData},zyData:function(t){return t.xianhuo.zyData},total:function(t){return t.xianhuo.total},loading:function(t){return t.xianhuo.loading},finished:function(t){return t.xianhuo.finished},isShowAlert:function(t){return t.gooddetail.isShowAlert}})),watch:{isShowAlert:function(t){t&&(this.detailsData={isShow:!1,id:""},this.$store.dispatch({type:"cartCount"}))},loading:function(t){this.loadingXh=t},zyRankInit:function(t){this.p=1,this.getZyData()},classLight:function(t){this.secondClass=t.class_id2_list||[],this.firstCheckId=t.class_id1,this.firstClassName=t.class_id1_name;var i=this.secondClass.findIndex((function(t,i,s){if(t.flag)return t}));this.classFilter=-1==i?this.firstClassName:this.firstClassName+","+this.secondClass[i].class_id2_name,this.navTopStr.classStr=this.classFilter}},methods:{getDefaultClass:function(){var t=this;m["c"].defaultClass().then((function(i){0==i.data.err_code&&(t.classStr=t.$route.query.list_id||i.data.data,t.addClassStr=t.$route.query.list_id||i.data.data,t.getZyData())})).catch((function(t){}))},placeOrder:function(t){this.detailsData={isShow:!0,id:t}},scrollEvent:function(t){(this.navTopStr.classStr||this.navTopStr.brandStr||this.navTopStr.encapStr||this.navTopStr.packingStr||this.navTopStr.rightStr)&&(t.target.scrollTop>40?this.isScrollShow=!0:this.isScrollShow=!1)},onLoad:function(){this.p++,this.getZyData()},toSearch:function(){window.location.href="/v3/search/search_index.html"},resetRight:function(){this.getZyData()},filterRight:function(t){this.isShowRight=!1,this.p=1,this.rightFilterData=t,this.getZyData()},openRight:function(){this.isShowRight=!0,this.zyFilterInit=-1},closeRight:function(){this.isShowRight&&(this.isShowRight=!1),-1!=this.zyFilterInit&&(this.zyFilterInit=-1)},getClassSecond:function(t){this.firstCheckId="",this.classStr=t.class_id1,this.firstClassName=t.class_id1_name,this.isResetData=!1;for(var i=0;i<this.classData.length;i++)this.classData[i].class_id1==t.class_id1?(this.classData[i].flag=!0,this.secondClass=this.classData[i].class_id2_list,this.getSecondData({},"2")):this.classData[i].flag=!1},getSecondData:function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"1";"1"==i&&(this.classStr=t.class_id2,this.secondClassName=t.class_id2_name,this.isResetData=!1);for(var s=0;s<this.secondClass.length;s++)this.secondClass[s].class_id2==t.class_id2?this.secondClass[s].flag=!0:this.secondClass[s].flag=!1},getZyData:function(){var t={p:this.p,offset:10};this.navTopStr.rightStr="";var i=JSON.stringify(this.rightFilterData);if(this.addClassStr&&(t["class_id/condition"]=this.addClassStr),this.brandStr&&(t["brand_id/condition"]=this.brandStr),this.encapStr&&(t["encap/condition"]=this.encapStr),this.packingStr&&(t["packing/condition"]=this.packingStr),0==this.zyRankInit?t["com_rank"]=1:1==this.zyRankInit?t["stock_rank"]=2:2==this.zyRankInit?t["stock_rank"]=1:3==this.zyRankInit?t["single_rank"]=1:4==this.zyRankInit&&(t["single_rank"]=2),t["need_aggs"]=1,"{}"!==i){if("{}"!==JSON.stringify(this.rightFilterData.filterData)){t["attrs/nested"]=JSON.stringify(this.rightFilterData.filterData);var s="";for(var n in this.rightFilterData.filterData){var a=this.rightFilterData.filterData[n];a.length&&(s+="."+a.join())}s=s.slice(1),this.navTopStr.rightStr=s}this.rightFilterData.isyh&&(t["avail_rank"]=1)}this.$store.dispatch({type:"getZyData",data:t})},changezyRankInit:function(t){"kc"==t?1==this.zyRankInit?this.zyRankInit=2:this.zyRankInit=1:"jg"==t?3==this.zyRankInit?this.zyRankInit=4:this.zyRankInit=3:this.zyRankInit=t},changeZyFilterInit:function(t){this.zyFilterInit==t?this.zyFilterInit=-1:this.zyFilterInit=t},addFilterData:function(t,i){this.isResetData=!1,this.zyFilterData[i].list[t].check?this.$set(this.zyFilterData[i].list[t],"check",!1):this.$set(this.zyFilterData[i].list[t],"check",!0)},reset:function(t){this.isResetData=!0;var i="";if("class"==t){this.firstCheckId="";for(var s=0;s<this.classData.length;s++)this.classData[s].flag=0;for(var n=0;n<this.secondClass.length;n++)this.secondClass[n].flag=0}else{"brand"==t?i="brand_id":"encap"==t?i="encap":"packing"==t&&(i="packing");for(var a=0;a<this.zyFilterData[i].list.length;a++)this.zyFilterData[i].list[a].check&&(this.zyFilterData[i].list[a].check=!1)}},addPostData:function(t){if(this.zyFilterInit=-1,"class"==t)this.brand="",this.encap="",this.packing="",this.brandStr="",this.encapStr="",this.packingStr="",this.isResetData?(this.addClassStr=this.$route.query.list_id||"",this.firstClassName="",this.secondClassName="",this.classFilter="",this.navTopStr.classStr=""):(this.addClassStr=this.classStr,this.classFilter=this.secondClassName?this.firstClassName+","+this.secondClassName:this.firstClassName,this.navTopStr.classStr=this.classFilter);else if("brand"==t){if(this.brandStr="",this.brand="",this.isResetData)this.navTopStr.brandStr="";else for(var i=0;i<this.zyFilterData["brand_id"].list.length;i++)this.zyFilterData["brand_id"].list[i].check&&(this.brandStr+=this.zyFilterData["brand_id"].list[i].id+",",this.brand+=this.zyFilterData["brand_id"].list[i].name+",");this.brandStr=this.brandStr.slice(0,-1),this.brand=this.brand.slice(0,-1),this.navTopStr.brandStr=this.brand}else if("encap"==t){if(this.encapStr="",this.encap="",this.isResetData)this.navTopStr.encapStr="";else for(var s=0;s<this.zyFilterData["encap"].list.length;s++)this.zyFilterData["encap"].list[s].check&&(this.encapStr+=this.zyFilterData["encap"].list[s].id+",",this.encap+=this.zyFilterData["encap"].list[s].name+",");this.encapStr=this.encapStr.slice(0,-1),this.encap=this.encap.slice(0,-1),this.navTopStr.encapStr=this.encap}else if("packing"==t){if(this.packingStr="",this.packing="",this.isResetData)this.navTopStr.packingStr="";else for(var n=0;n<this.zyFilterData["packing"].list.length;n++)this.zyFilterData["packing"].list[n].check&&(this.packingStr+=this.zyFilterData["packing"].list[n].id+",",this.packing+=this.zyFilterData["packing"].list[n].name+",");this.packingStr=this.packingStr.slice(0,-1),this.packing=this.packing.slice(0,-1),this.navTopStr.packingStr=this.packing}this.p=1,this.getZyData()}}},D=w,O=(s("cb25"),Object(g["a"])(D,n,a,!1,null,null,null));i["default"]=O.exports},"542d":function(t,i,s){},"5dd2":function(t,i,s){var n=s("81dc");t.exports=function(t,i){return new(n(t))(i)}},"7be2":function(t,i,s){"use strict";s.d(i,"g",(function(){return n})),s.d(i,"d",(function(){return e})),s.d(i,"b",(function(){return c})),s.d(i,"a",(function(){return r})),s.d(i,"c",(function(){return o})),s.d(i,"e",(function(){return l})),s.d(i,"f",(function(){return h}));var n="#fff",a="van-hairline",e=a+"--top",c=a+"--left",r=a+"--bottom",o=a+"--surround",l=a+"--top-bottom",h=a+"-unset--top-bottom"},"7f1b":function(t,i,s){"use strict";var n=function(){var t=this,i=t.$createElement,s=t._self._c||i;return s("section",[s("div",{staticClass:"slide-bar"},[t.kefuishow?s("div",{staticClass:"customer-service",on:{click:t.recordFn}},[s("i",{staticClass:"iconfont icon-kefu"})]):t._e(),t.carshow?s("div",{staticClass:"backtop carslide"},[s("a",{attrs:{href:"/v3/joincart"}},[s("i",{staticClass:"iconfont icon-gouwuche1"}),s("b",{staticClass:"carNumx"},[t._v(t._s(t.cartCount))])])]):t._e(),t.isWindow?[s("div",{directives:[{name:"backTopWindow",rawName:"v-backTopWindow"},{name:"show",rawName:"v-show",value:t.show,expression:"show"}],staticClass:"backtop "},[s("i",{staticClass:"iconfont icon-xiangshang1"})])]:[s("div",{directives:[{name:"backTop",rawName:"v-backTop"},{name:"show",rawName:"v-show",value:t.show,expression:"show"}],staticClass:"backtop"},[s("i",{staticClass:"iconfont icon-xiangshang1"})])]],2),s("van-dialog",{attrs:{showConfirmButton:t.showButton,showCancelButton:t.showButton,closeOnClickOverlay:t.closeOnClickOverlay},model:{value:t.flag,callback:function(i){t.flag=i},expression:"flag"}},[s("div",{staticClass:"van-dialog__message"},[s("div",{staticClass:"kefu"},[s("p",{staticClass:"t0"},[s("i",{staticClass:"iconfont icon-kefu"})]),s("p",{staticClass:"t1"},[s("a",{staticClass:"but-blue",attrs:{href:"tel:0755-88914841"}},[t._v("国内服务电话:0755-88914841")])]),s("p",{staticClass:"t2"},[s("a",{staticClass:"but-white kefuio kefuioxk",attrs:{target:"_blank",href:t.phpParams.kfqq_xk,"data-href":"http://wpa.b.qq.com/cgi/wpa.php?ln=1&key=XzgwMDE1ODQzMl80ODY0NDVfODAwMTU4NDMyXzJf","data-ptag":"right-layer"},on:{click:t.customsrService}},[s("i",{staticClass:"icon iconfont icon-qq"}),t._v("客服QQ\n ")])])])])])],1)},a=[],e=s("9f3a"),c=s("0261"),r=s("bd89"),o=s("6ad0");c["a"].use(r["a"]);var l={name:"sidebar",props:{kefuishow:{type:Boolean,default:!0},carshow:{type:Boolean,default:!1},isWindow:{type:Boolean,default:!1}},data:function(){return{flag:!1,show:!1,showButton:!1,closeOnClickOverlay:!0,showFastNav:!1}},computed:Object(e["c"])({phpParams:function(t){return t.common.phpParams},cartCount:function(t){return t.common.cartCount}}),mounted:function(){this.isWindow?this.scrollFnWindow():this.scrollFn()},created:function(){var t=this;o["a"].$on("xunjia",(function(){t.recordFn()})),this.carshow&&this.$store.dispatch({type:"cartCount"})},methods:{customsrService:function(){this.$store.dispatch({type:"customsrService"})},scrollFnWindow:function(){var t=this;window.onscroll=function(){var i=document.documentElement.scrollTop||document.body.scrollTop;t.show=i>=300}},scrollFn:function(){var t=document.querySelector(".container-wrap"),i=this;t.onscroll=function(){var t=document.querySelector(".container-wrap").scrollTop;i.show=t>=300}},recordFn:function(){this.flag=!0,this.$store.dispatch({type:"getCommonParams"});try{sensors.track("RNavClick",{right_nav_click:"h5-客服"})}catch(t){}},changFastNav:function(){this.showFastNav=!this.showFastNav}}},h=l,d=s("9ca4"),u=Object(d["a"])(h,n,a,!1,null,null,null);i["a"]=u.exports},"81ae":function(t,i,s){"use strict";var n=s("e759"),a=s.n(n);a.a},"81dc":function(t,i,s){var n=s("fb68"),a=s("2346"),e=s("cb3d")("species");t.exports=function(t){var i;return a(t)&&(i=t.constructor,"function"!=typeof i||i!==Array&&!a(i.prototype)||(i=void 0),n(i)&&(i=i[e],null===i&&(i=void 0))),void 0===i?Array:i}},bd89:function(t,i,s){"use strict";var n=s("1bb4"),a=s("0261"),e=s("23c4"),c=s.n(e),r=s("292e"),o=s("8e95"),l=s("7be2"),h=s("fbbe"),d=s("06cb"),u=s("39bf"),f=s("e10b"),g=s("1132"),p=Object(r["a"])("button"),v=p[0],y=p[1];function b(t,i,s,n){var a,e=i.tag,r=i.icon,o=i.type,h=i.color,p=i.plain,v=i.disabled,b=i.loading,k=i.hairline,m=i.loadingText,_={};function C(t){b||v||(Object(d["a"])(n,"click",t),Object(u["a"])(n))}function S(t){Object(d["a"])(n,"touchstart",t)}h&&(_.color=p?h:l["g"],p||(_.background=h),-1!==h.indexOf("gradient")?_.border=0:_.borderColor=h);var w=[y([o,i.size,{plain:p,loading:b,disabled:v,hairline:k,block:i.block,round:i.round,square:i.square}]),(a={},a[l["c"]]=k,a)];function D(){var n,a=[];return b?a.push(t(g["a"],{class:y("loading"),attrs:{size:i.loadingSize,type:i.loadingType,color:"currentColor"}})):r&&a.push(t(f["a"],{attrs:{name:r,classPrefix:i.iconPrefix},class:y("icon")})),n=b?m:s.default?s.default():i.text,n&&a.push(t("span",{class:y("text")},[n])),a}return t(e,c()([{style:_,class:w,attrs:{type:i.nativeType,disabled:v},on:{click:C,touchstart:S}},Object(d["b"])(n)]),[t("div",{class:y("content")},[D()])])}b.props=Object(n["a"])(Object(n["a"])({},u["c"]),{},{text:String,icon:String,color:String,block:Boolean,plain:Boolean,round:Boolean,square:Boolean,loading:Boolean,hairline:Boolean,disabled:Boolean,iconPrefix:String,nativeType:String,loadingText:String,loadingType:String,tag:{type:String,default:"button"},type:{type:String,default:"default"},size:{type:String,default:"normal"},loadingSize:{type:String,default:"20px"}});var k,m=v(b),_=Object(r["a"])("dialog"),C=_[0],S=_[1],w=_[2],D=C({mixins:[Object(h["a"])()],props:{title:String,width:[Number,String],message:String,className:null,callback:Function,beforeClose:Function,messageAlign:String,cancelButtonText:String,cancelButtonColor:String,confirmButtonText:String,confirmButtonColor:String,showCancelButton:Boolean,transition:{type:String,default:"van-dialog-bounce"},showConfirmButton:{type:Boolean,default:!0},overlay:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!1},allowHtml:{type:Boolean,default:!0}},data:function(){return{loading:{confirm:!1,cancel:!1}}},methods:{onClickOverlay:function(){this.handleAction("overlay")},handleAction:function(t){var i=this;this.$emit(t),this.value&&(this.beforeClose?(this.loading[t]=!0,this.beforeClose(t,(function(s){!1!==s&&i.loading[t]&&i.onClose(t),i.loading.confirm=!1,i.loading.cancel=!1}))):this.onClose(t))},onClose:function(t){this.close(),this.callback&&this.callback(t)},onOpened:function(){this.$emit("opened")},onClosed:function(){this.$emit("closed")},genButtons:function(){var t,i=this,s=this.$createElement,n=this.showCancelButton&&this.showConfirmButton;return s("div",{class:[l["d"],S("footer",{buttons:n})]},[this.showCancelButton&&s(m,{attrs:{size:"large",loading:this.loading.cancel,text:this.cancelButtonText||w("cancel")},class:S("cancel"),style:{color:this.cancelButtonColor},on:{click:function(){i.handleAction("cancel")}}}),this.showConfirmButton&&s(m,{attrs:{size:"large",loading:this.loading.confirm,text:this.confirmButtonText||w("confirm")},class:[S("confirm"),(t={},t[l["b"]]=n,t)],style:{color:this.confirmButtonColor},on:{click:function(){i.handleAction("confirm")}}})])},genContent:function(t,i){var s=this.$createElement;if(i)return s("div",{class:S("content")},[i]);var n=this.message,a=this.messageAlign;if(n){var e,r,o={class:S("message",(e={"has-title":t},e[a]=a,e)),domProps:(r={},r[this.allowHtml?"innerHTML":"textContent"]=n,r)};return s("div",{class:S("content")},[s("div",c()([{},o]))])}}},render:function(){var t=arguments[0];if(this.shouldRender){var i=this.message,s=this.slots(),n=this.slots("title")||this.title,a=n&&t("div",{class:S("header",{isolated:!i&&!s})},[n]);return t("transition",{attrs:{name:this.transition},on:{afterEnter:this.onOpened,afterLeave:this.onClosed}},[t("div",{directives:[{name:"show",value:this.value}],attrs:{role:"dialog","aria-labelledby":this.title||i},class:[S(),this.className],style:{width:Object(o["a"])(this.width)}},[a,this.genContent(n,s),this.genButtons()])])}}}),O=s("6f1a");function z(t){return document.body.contains(t)}function F(){k&&k.$destroy(),k=new(a["a"].extend(D))({el:document.createElement("div"),propsData:{lazyRender:!1}}),k.$on("input",(function(t){k.value=t}))}function x(t){return O["f"]?Promise.resolve():new Promise((function(i,s){k&&z(k.$el)||F(),Object(n["a"])(k,x.currentOptions,t,{resolve:i,reject:s})}))}x.defaultOptions={value:!0,title:"",width:"",message:"",overlay:!0,className:"",allowHtml:!0,lockScroll:!0,transition:"van-dialog-bounce",beforeClose:null,overlayClass:"",overlayStyle:null,messageAlign:"",getContainer:"body",cancelButtonText:"",cancelButtonColor:null,confirmButtonText:"",confirmButtonColor:null,showConfirmButton:!0,showCancelButton:!1,closeOnPopstate:!1,closeOnClickOverlay:!1,callback:function(t){k["confirm"===t?"resolve":"reject"](t)}},x.alert=x,x.confirm=function(t){return x(Object(n["a"])({showCancelButton:!0},t))},x.close=function(){k&&(k.value=!1)},x.setDefaultOptions=function(t){Object(n["a"])(x.currentOptions,t)},x.resetDefaultOptions=function(){x.currentOptions=Object(n["a"])({},x.defaultOptions)},x.resetDefaultOptions(),x.install=function(){a["a"].use(D)},x.Component=D,a["a"].prototype.$dialog=x;i["a"]=x},cb25:function(t,i,s){"use strict";var n=s("542d"),a=s.n(n);a.a},e204:function(t,i,s){"use strict";var n=s("e46b"),a=s("013f")(6),e="findIndex",c=!0;e in[]&&Array(1)[e]((function(){c=!1})),n(n.P+n.F*c,"Array",{findIndex:function(t){return a(this,t,arguments.length>1?arguments[1]:void 0)}}),s("0e8b")(e)},e759:function(t,i,s){},ee4e:function(t,i,s){"use strict";function n(t){var i=window.getComputedStyle(t),s="none"===i.display,n=null===t.offsetParent&&"fixed"!==i.position;return s||n}s.d(i,"a",(function(){return n}))}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-65512df9"],{"0092":function(t,i,s){"use strict";var n=s("292e"),a=s("ee4e"),e=s("4382"),c=s("40c0"),r=s("1132"),o=Object(n["a"])("list"),l=o[0],h=o[1],d=o[2];i["a"]=l({mixins:[Object(c["a"])((function(t){this.scroller||(this.scroller=Object(e["d"])(this.$el)),t(this.scroller,"scroll",this.check)}))],model:{prop:"loading"},props:{error:Boolean,loading:Boolean,finished:Boolean,errorText:String,loadingText:String,finishedText:String,immediateCheck:{type:Boolean,default:!0},offset:{type:[Number,String],default:300},direction:{type:String,default:"down"}},data:function(){return{innerLoading:this.loading}},updated:function(){this.innerLoading=this.loading},mounted:function(){this.immediateCheck&&this.check()},watch:{loading:"check",finished:"check"},methods:{check:function(){var t=this;this.$nextTick((function(){if(!(t.innerLoading||t.finished||t.error)){var i,s=t.$el,n=t.scroller,e=t.offset,c=t.direction;i=n.getBoundingClientRect?n.getBoundingClientRect():{top:0,bottom:n.innerHeight};var r=i.bottom-i.top;if(!r||Object(a["a"])(s))return!1;var o=!1,l=t.$refs.placeholder.getBoundingClientRect();o="up"===c?i.top-l.top<=e:l.bottom-i.bottom<=e,o&&(t.innerLoading=!0,t.$emit("input",!0),t.$emit("load"))}}))},clickErrorText:function(){this.$emit("update:error",!1),this.check()},genLoading:function(){var t=this.$createElement;if(this.innerLoading&&!this.finished)return t("div",{class:h("loading"),key:"loading"},[this.slots("loading")||t(r["a"],{attrs:{size:"16"}},[this.loadingText||d("loading")])])},genFinishedText:function(){var t=this.$createElement;if(this.finished){var i=this.slots("finished")||this.finishedText;if(i)return t("div",{class:h("finished-text")},[i])}},genErrorText:function(){var t=this.$createElement;if(this.error){var i=this.slots("error")||this.errorText;if(i)return t("div",{on:{click:this.clickErrorText},class:h("error-text")},[i])}}},render:function(){var t=arguments[0],i=t("div",{ref:"placeholder",class:h("placeholder")});return t("div",{class:h(),attrs:{role:"feed","aria-busy":this.innerLoading}},["down"===this.direction?this.slots():i,this.genLoading(),this.genFinishedText(),this.genErrorText(),"up"===this.direction?this.slots():i])}})},"013f":function(t,i,s){var n=s("4ce5"),a=s("224c"),e=s("008a"),c=s("eafa"),r=s("5dd2");t.exports=function(t,i){var s=1==t,o=2==t,l=3==t,h=4==t,d=6==t,u=5==t||d,f=i||r;return function(i,r,g){for(var p,v,y=e(i),b=a(y),k=n(r,g,3),m=c(b.length),_=0,C=s?f(i,m):o?f(i,0):void 0;m>_;_++)if((u||_ in b)&&(p=b[_],v=k(p,_,y),t))if(s)C[_]=v;else if(v)switch(t){case 3:return!0;case 5:return p;case 6:return _;case 2:C.push(p)}else if(h)return!1;return d?-1:l||h?h:C}}},"3fa7":function(t,i,s){"use strict";s.r(i);var n=function(){var t=this,i=t.$createElement,s=t._self._c||i;return s("div",[s("Header",{attrs:{inputShow:!0,meaushow:!0},on:{toSearch:t.toSearch}}),s("div",{staticClass:"xianhuo"},[s("div",{staticClass:"search-cont"},[s("div",{staticClass:"search-list"},[s("div",{staticClass:"self-ichunt"},[s("div",{staticClass:"search-sift"},[t.isScrollShow?t._e():s("div",{staticClass:"title-cut"},[s("p",{staticClass:"fr xuan",on:{click:t.openRight}},[s("span",{staticClass:"font"},[t._v("筛选")]),s("i",{staticClass:"icon iconfont icon-shaixuan"})]),s("ul",{staticClass:"total-rank"},[s("li",{class:{act:0==t.zyRankInit},on:{click:function(i){return t.changezyRankInit(0)}}},[t._v("综合")]),s("li",{class:{act:1==t.zyRankInit||2==t.zyRankInit},on:{click:function(i){return t.changezyRankInit("kc")}}},[t._v("\n 库存\n "),s("span",[s("i",{class:{"icon-top":!0,bright:1==t.zyRankInit}}),s("i",{class:{"icon-bot":!0,bright:2==t.zyRankInit}})])]),s("li",{class:{act:3==t.zyRankInit||4==t.zyRankInit},on:{click:function(i){return t.changezyRankInit("jg")}}},[t._v("\n 价格\n "),s("span",[s("i",{class:{"icon-top":!0,bright:3==t.zyRankInit}}),s("i",{class:{"icon-bot":!0,bright:4==t.zyRankInit}})])])])]),t.isScrollShow?t._e():s("div",{staticClass:"sift-box"},[s("dl",{class:{p_act:0==t.zyFilterInit}},[s("dt",{class:{"f-blue":t.classFilter},on:{click:function(i){return t.changeZyFilterInit(0)}}},[t._v(t._s(t.classFilter||"分类筛选"))]),s("dd",{style:{display:0==t.zyFilterInit?"block":"none"}},[s("ul",[s("ul",{staticClass:"classify_left"},[t.classData.length?t._l(t.classData,(function(i,n){return s("li",{class:{check:i.flag||t.firstCheckId==i.class_id1},on:{click:function(s){return t.getClassSecond(i)}}},[s("span",[t._v(t._s(i.class_id1_name+"("+i.class_id1_num+")"))])])})):t._e()],2),s("div",{staticClass:"classify_right_box"},[s("ul",{staticClass:"classify_right"},[t.secondClass?t._l(t.secondClass,(function(i,n){return s("li",{class:{check:i.flag},on:{click:function(s){return t.getSecondData(i)}}},[s("span",[t._v(t._s(i.class_id2_name+"("+i.class_id2_num+")"))])])})):t._e()],2)])]),s("div",{staticClass:"button"},[s("a",{staticClass:"cancel",on:{click:function(i){return t.reset("class")}}},[t._v("重置")]),s("a",{staticClass:"confirm",on:{click:function(i){return t.addPostData("class")}}},[t._v("确定")])])])]),s("dl",{class:{p_act:1==t.zyFilterInit}},[s("dt",{class:{"f-blue":t.brand},on:{click:function(i){return t.changeZyFilterInit(1)}}},[t._v(t._s(t.brand||"制造商"))]),s("dd",{style:{display:1==t.zyFilterInit?"block":"none"}},[s("ul",[t.zyFilterData.brand_id?t._l(t.zyFilterData.brand_id.list,(function(i,n){return s("li",{class:{check:i.check},on:{click:function(i){return t.addFilterData(n,"brand_id")}}},[s("span",[t._v(t._s(i.name+"("+i.num+")"))])])})):t._e()],2),s("div",{staticClass:"button"},[s("a",{staticClass:"cancel",on:{click:function(i){return t.reset("brand")}}},[t._v("重置")]),s("a",{staticClass:"confirm",on:{click:function(i){return t.addPostData("brand")}}},[t._v("确定")])])])]),s("dl",{class:{p_act:2==t.zyFilterInit}},[s("dt",{class:{"f-blue":t.encap},on:{click:function(i){return t.changeZyFilterInit(2)}}},[t._v(t._s(t.encap||"封装规格"))]),s("dd",{style:{display:2==t.zyFilterInit?"block":"none"}},[s("ul",[t.zyFilterData.encap?t._l(t.zyFilterData.encap.list,(function(i,n){return s("li",{class:{check:i.check},on:{click:function(i){return t.addFilterData(n,"encap")}}},[s("span",[t._v(t._s(i.name+"("+i.num+")"))])])})):t._e()],2),s("div",{staticClass:"button"},[s("a",{staticClass:"cancel",on:{click:function(i){return t.reset("encap")}}},[t._v("重置")]),s("a",{staticClass:"confirm",on:{click:function(i){return t.addPostData("encap")}}},[t._v("确定")])])])]),s("dl",{class:{p_act:3==t.zyFilterInit}},[s("dt",{class:{"f-blue":t.packing},on:{click:function(i){return t.changeZyFilterInit(3)}}},[t._v(t._s(t.packing||"包装筛选"))]),s("dd",{style:{display:3==t.zyFilterInit?"block":"none"}},[s("ul",[t.zyFilterData.packing?t._l(t.zyFilterData.packing.list,(function(i,n){return s("li",{class:{check:i.check},on:{click:function(i){return t.addFilterData(n,"packing")}}},[s("span",[t._v(t._s(i.name+"("+i.num+")"))])])})):t._e()],2),s("div",{staticClass:"button"},[s("a",{staticClass:"cancel",on:{click:function(i){return t.reset("packing")}}},[t._v("重置")]),s("a",{staticClass:"confirm",on:{click:function(i){return t.addPostData("packing")}}},[t._v("确定")])])])])]),t.isScrollShow?s("div",{staticClass:"sosoarr"},[t._l(t.navTopStr,(function(i,n){return["classStr"!==n&&"rightStr"!==n&&i?s("span",[s("b",[t._v("·")]),t._v("\n "+t._s(i)+"\n ")]):t._e(),"classStr"!=n&&"rightStr"!=n||!i?t._e():s("span",[t._v(t._s(i))])]}))],2):t._e()])])])]),s("div",{staticClass:"content_scroll",style:{top:t.isScrollShow?"44px":"80px"},on:{scroll:t.scrollEvent}},[s("van-list",{attrs:{finished:t.finished,"finished-text":"我是有底线的噢","immediate-check":!1},on:{load:t.onLoad},model:{value:t.loadingXh,callback:function(i){t.loadingXh=i},expression:"loadingXh"}},[s("GoodsOne",{attrs:{dataList:t.zyData,isZy:t.isZy},on:{placeOrder:t.placeOrder}})],1)],1)]),s("SideBar",{attrs:{isWindow:t.isWindow,carshow:t.carshow}}),s("rightSelect",{directives:[{name:"show",rawName:"v-show",value:t.isShowRight,expression:"isShowRight"}],attrs:{filterData:t.zyFilterData,isShow:t.isShowRight},on:{resetRight:t.resetRight,filterRight:t.filterRight}}),t.isShowRight||-1!=t.zyFilterInit?s("div",{class:{backdrop:!0,zIndex:-1!=t.zyFilterInit},on:{click:t.closeRight}}):t._e(),s("goodsDetail",{attrs:{detailsData:t.detailsData}}),s("addCarAlert")],1)},a=[],e=(s("5ab2"),s("6d57"),s("e44b"),s("e10e"),s("cc57"),s("e204"),s("9bef")),c=s("57af"),r=s("e10b"),o=s("0092"),l=s("9f3a"),h=function(){var t=this,i=t.$createElement,s=t._self._c||i;return s("div",{staticClass:"filter_box"},[s("div",{staticClass:"filter_condition"},[s("dl",{staticClass:"filter_stock"},[t._m(0),s("dd",{staticClass:"stock_content"},[s("span",{class:{stock_li:!0,check:t.isyh},on:{click:t.changYh}},[t._v("仅看有货")])])]),t._l(t.filterData,(function(i,n){return["brand_id"!=n&&"encap"!=n&&"packing"!=n?[s("dl",{staticClass:"filter_dl"},[s("dt",{staticClass:"filter_dt"},[s("div",{staticClass:"filter_head"},[s("span",{staticClass:"filter_title"},[t._v(t._s(n))]),t.selectObj[n]&&t.selectObj[n].length?[s("span",{staticClass:"filter_xuan",staticStyle:{color:"rgb(16, 128, 208)"}},[t._v(t._s(t.selectObj[n].join()))])]:[s("span",{staticClass:"filter_xuan"},[t._v("全部")])]],2),s("div",{staticClass:"filter_more",on:{click:function(i){return t.showDetail(n)}}},[s("i",{staticClass:"icon iconfont icon_down",class:{icon:!0,iconfont:!0,icon_up:i.showMore,icon_down:!i.showMore}})])]),s("dd",{staticClass:"filter_content",style:{height:i.showMore?"auto":"0.89333rem"}},[s("ul",{staticClass:"clr filter_ul"},t._l(i.list,(function(i,a){return s("li",{class:{filter_li:!0,check:i.check},on:{click:function(i){return t.selectRight(n,a)}}},[t._v(t._s(i.name+"("+i.num+")"))])})),0)])])]:t._e()]}))],2),s("div",{staticClass:"button"},[s("a",{staticClass:"but font cancel",on:{click:t.resetRight}},[t._v("重置")]),s("a",{staticClass:"but-blue confirm",on:{click:t.filterRight}},[t._v("确定")])])])},d=[function(){var t=this,i=t.$createElement,s=t._self._c||i;return s("dt",{staticClass:"stock_dt"},[s("span",{staticClass:"stock_title"},[t._v("商品库存")])])}],u={data:function(){return{selectObj:{},isyh:!1}},props:{filterData:{type:Object,default:function(){return{}}},isShow:{type:Boolean,default:!1}},watch:{isShow:function(t){if(t&&"{}"!==JSON.stringify(this.selectObj))for(var i in this.filterData)for(var s=this.filterData[i].list,n=0;n<s.length;n++)if(this.selectObj[i]){var a=this.selectObj[i].indexOf(s[n].name);-1!==a&&this.$set(this.filterData[i].list[n],"check",!0)}}},methods:{changYh:function(){this.isyh=!this.isyh},resetRight:function(){this.selectObj={},this.isyh=!1,this.$emit("resetRight")},filterRight:function(){var t={};t=this.isyh?{filterData:this.selectObj,isyh:!0}:{filterData:this.selectObj,isyh:!1},this.$emit("filterRight",t)},showDetail:function(t){this.filterData[t].showMore?this.filterData[t].showMore=!1:this.$set(this.filterData[t],"showMore",!0)},selectRight:function(t,i){var s=this.filterData[t].list[i].name;if(this.filterData[t].list[i].check){this.filterData[t].list[i].check=!1;var n=this.selectObj[t].indexOf(s);this.selectObj[t].splice(n,1),this.selectObj[t].length||delete this.selectObj[t]}else this.$set(this.filterData[t].list[i],"check",!0),this.selectObj[t]?this.selectObj[t].push(s):this.selectObj[t]=[s]}}},f=u,g=(s("81ae"),s("9ca4")),p=Object(g["a"])(f,h,d,!1,null,null,null),v=p.exports,y=s("9df3"),b=s("61ab"),k=s("7f1b"),m=s("365c"),_=s("a923");function C(t,i){var s=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);i&&(n=n.filter((function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable}))),s.push.apply(s,n)}return s}function S(t){for(var i=1;i<arguments.length;i++){var s=null!=arguments[i]?arguments[i]:{};i%2?C(Object(s),!0).forEach((function(i){Object(e["a"])(t,i,s[i])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(s)):C(Object(s)).forEach((function(i){Object.defineProperty(t,i,Object.getOwnPropertyDescriptor(s,i))}))}return t}var w={name:"xianhuo",components:{Header:c["a"],"van-icon":r["a"],rightSelect:v,"van-list":o["a"],GoodsOne:y["a"],goodsDetail:b["a"],SideBar:k["a"],addCarAlert:_["a"]},data:function(){return{detailsData:{isShow:!1,id:""},isWindow:!0,carshow:!0,isZy:!0,zyFilterInit:-1,zyRankInit:0,classFilter:"",brand:"",encap:"",packing:"",classStr:"",brandStr:"",encapStr:"",packingStr:"",secondClass:[],addClassStr:"",firstCheckId:"",firstClassName:"",secondClassName:"",isResetData:!1,isShowRight:!1,list:[],loadingXh:!1,p:1,rightFilterData:{},navTopStr:{classStr:"",brandStr:"",encapStr:"",packingStr:"",rightStr:""},isScrollShow:!1}},created:function(){this.getDefaultClass(),this.$store.commit("closeAlert")},computed:S({},Object(l["c"])({zyFilter:function(t){return t.xianhuo.zyFilter},zyClass:function(t){return t.xianhuo.zyClass},zyRank:function(t){return t.xianhuo.zyRank},classData:function(t){return t.xianhuo.classData},classLight:function(t){return t.xianhuo.classLight},zyFilterData:function(t){return t.xianhuo.zyFilterData},zyData:function(t){return t.xianhuo.zyData},total:function(t){return t.xianhuo.total},loading:function(t){return t.xianhuo.loading},finished:function(t){return t.xianhuo.finished},isShowAlert:function(t){return t.gooddetail.isShowAlert}})),watch:{isShowAlert:function(t){t&&(this.detailsData={isShow:!1,id:""},this.$store.dispatch({type:"cartCount"}))},loading:function(t){this.loadingXh=t},zyRankInit:function(t){this.p=1,this.getZyData()},classLight:function(t){this.secondClass=t.class_id2_list||[],this.firstCheckId=t.class_id1,this.firstClassName=t.class_id1_name;var i=this.secondClass.findIndex((function(t,i,s){if(t.flag)return t}));this.classFilter=-1==i?this.firstClassName:this.firstClassName+","+this.secondClass[i].class_id2_name,this.navTopStr.classStr=this.classFilter}},methods:{getDefaultClass:function(){var t=this;m["d"].defaultClass().then((function(i){0==i.data.err_code&&(t.classStr=t.$route.query.list_id||i.data.data,t.addClassStr=t.$route.query.list_id||i.data.data,t.getZyData())})).catch((function(t){}))},placeOrder:function(t){this.detailsData={isShow:!0,id:t}},scrollEvent:function(t){(this.navTopStr.classStr||this.navTopStr.brandStr||this.navTopStr.encapStr||this.navTopStr.packingStr||this.navTopStr.rightStr)&&(t.target.scrollTop>40?this.isScrollShow=!0:this.isScrollShow=!1)},onLoad:function(){this.p++,this.getZyData()},toSearch:function(){window.location.href="/v3/search/search_index.html"},resetRight:function(){this.getZyData()},filterRight:function(t){this.isShowRight=!1,this.p=1,this.rightFilterData=t,this.getZyData()},openRight:function(){this.isShowRight=!0,this.zyFilterInit=-1},closeRight:function(){this.isShowRight&&(this.isShowRight=!1),-1!=this.zyFilterInit&&(this.zyFilterInit=-1)},getClassSecond:function(t){this.firstCheckId="",this.classStr=t.class_id1,this.firstClassName=t.class_id1_name,this.isResetData=!1;for(var i=0;i<this.classData.length;i++)this.classData[i].class_id1==t.class_id1?(this.classData[i].flag=!0,this.secondClass=this.classData[i].class_id2_list,this.getSecondData({},"2")):this.classData[i].flag=!1},getSecondData:function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"1";"1"==i&&(this.classStr=t.class_id2,this.secondClassName=t.class_id2_name,this.isResetData=!1);for(var s=0;s<this.secondClass.length;s++)this.secondClass[s].class_id2==t.class_id2?this.secondClass[s].flag=!0:this.secondClass[s].flag=!1},getZyData:function(){var t={p:this.p,offset:10};this.navTopStr.rightStr="";var i=JSON.stringify(this.rightFilterData);if(this.addClassStr&&(t["class_id/condition"]=this.addClassStr),this.brandStr&&(t["brand_id/condition"]=this.brandStr),this.encapStr&&(t["encap/condition"]=this.encapStr),this.packingStr&&(t["packing/condition"]=this.packingStr),0==this.zyRankInit?t["com_rank"]=1:1==this.zyRankInit?t["stock_rank"]=2:2==this.zyRankInit?t["stock_rank"]=1:3==this.zyRankInit?t["single_rank"]=1:4==this.zyRankInit&&(t["single_rank"]=2),t["need_aggs"]=1,"{}"!==i){if("{}"!==JSON.stringify(this.rightFilterData.filterData)){t["attrs/nested"]=JSON.stringify(this.rightFilterData.filterData);var s="";for(var n in this.rightFilterData.filterData){var a=this.rightFilterData.filterData[n];a.length&&(s+="."+a.join())}s=s.slice(1),this.navTopStr.rightStr=s}this.rightFilterData.isyh&&(t["avail_rank"]=1)}this.$store.dispatch({type:"getZyData",data:t})},changezyRankInit:function(t){"kc"==t?1==this.zyRankInit?this.zyRankInit=2:this.zyRankInit=1:"jg"==t?3==this.zyRankInit?this.zyRankInit=4:this.zyRankInit=3:this.zyRankInit=t},changeZyFilterInit:function(t){this.zyFilterInit==t?this.zyFilterInit=-1:this.zyFilterInit=t},addFilterData:function(t,i){this.isResetData=!1,this.zyFilterData[i].list[t].check?this.$set(this.zyFilterData[i].list[t],"check",!1):this.$set(this.zyFilterData[i].list[t],"check",!0)},reset:function(t){this.isResetData=!0;var i="";if("class"==t){this.firstCheckId="";for(var s=0;s<this.classData.length;s++)this.classData[s].flag=0;for(var n=0;n<this.secondClass.length;n++)this.secondClass[n].flag=0}else{"brand"==t?i="brand_id":"encap"==t?i="encap":"packing"==t&&(i="packing");for(var a=0;a<this.zyFilterData[i].list.length;a++)this.zyFilterData[i].list[a].check&&(this.zyFilterData[i].list[a].check=!1)}},addPostData:function(t){if(this.zyFilterInit=-1,"class"==t)this.brand="",this.encap="",this.packing="",this.brandStr="",this.encapStr="",this.packingStr="",this.isResetData?(this.addClassStr=this.$route.query.list_id||"",this.firstClassName="",this.secondClassName="",this.classFilter="",this.navTopStr.classStr=""):(this.addClassStr=this.classStr,this.classFilter=this.secondClassName?this.firstClassName+","+this.secondClassName:this.firstClassName,this.navTopStr.classStr=this.classFilter);else if("brand"==t){if(this.brandStr="",this.brand="",this.isResetData)this.navTopStr.brandStr="";else for(var i=0;i<this.zyFilterData["brand_id"].list.length;i++)this.zyFilterData["brand_id"].list[i].check&&(this.brandStr+=this.zyFilterData["brand_id"].list[i].id+",",this.brand+=this.zyFilterData["brand_id"].list[i].name+",");this.brandStr=this.brandStr.slice(0,-1),this.brand=this.brand.slice(0,-1),this.navTopStr.brandStr=this.brand}else if("encap"==t){if(this.encapStr="",this.encap="",this.isResetData)this.navTopStr.encapStr="";else for(var s=0;s<this.zyFilterData["encap"].list.length;s++)this.zyFilterData["encap"].list[s].check&&(this.encapStr+=this.zyFilterData["encap"].list[s].id+",",this.encap+=this.zyFilterData["encap"].list[s].name+",");this.encapStr=this.encapStr.slice(0,-1),this.encap=this.encap.slice(0,-1),this.navTopStr.encapStr=this.encap}else if("packing"==t){if(this.packingStr="",this.packing="",this.isResetData)this.navTopStr.packingStr="";else for(var n=0;n<this.zyFilterData["packing"].list.length;n++)this.zyFilterData["packing"].list[n].check&&(this.packingStr+=this.zyFilterData["packing"].list[n].id+",",this.packing+=this.zyFilterData["packing"].list[n].name+",");this.packingStr=this.packingStr.slice(0,-1),this.packing=this.packing.slice(0,-1),this.navTopStr.packingStr=this.packing}this.p=1,this.getZyData()}}},D=w,O=(s("cb25"),Object(g["a"])(D,n,a,!1,null,null,null));i["default"]=O.exports},"542d":function(t,i,s){},"5dd2":function(t,i,s){var n=s("81dc");t.exports=function(t,i){return new(n(t))(i)}},"7be2":function(t,i,s){"use strict";s.d(i,"g",(function(){return n})),s.d(i,"d",(function(){return e})),s.d(i,"b",(function(){return c})),s.d(i,"a",(function(){return r})),s.d(i,"c",(function(){return o})),s.d(i,"e",(function(){return l})),s.d(i,"f",(function(){return h}));var n="#fff",a="van-hairline",e=a+"--top",c=a+"--left",r=a+"--bottom",o=a+"--surround",l=a+"--top-bottom",h=a+"-unset--top-bottom"},"7f1b":function(t,i,s){"use strict";var n=function(){var t=this,i=t.$createElement,s=t._self._c||i;return s("section",[s("div",{staticClass:"slide-bar"},[t.kefuishow?s("div",{staticClass:"customer-service",on:{click:t.recordFn}},[s("i",{staticClass:"iconfont icon-kefu"})]):t._e(),t.carshow?s("div",{staticClass:"backtop carslide"},[s("a",{attrs:{href:"/v3/joincart"}},[s("i",{staticClass:"iconfont icon-gouwuche1"}),s("b",{staticClass:"carNumx"},[t._v(t._s(t.cartCount))])])]):t._e(),t.isWindow?[s("div",{directives:[{name:"backTopWindow",rawName:"v-backTopWindow"},{name:"show",rawName:"v-show",value:t.show,expression:"show"}],staticClass:"backtop "},[s("i",{staticClass:"iconfont icon-xiangshang1"})])]:[s("div",{directives:[{name:"backTop",rawName:"v-backTop"},{name:"show",rawName:"v-show",value:t.show,expression:"show"}],staticClass:"backtop"},[s("i",{staticClass:"iconfont icon-xiangshang1"})])]],2),s("van-dialog",{attrs:{showConfirmButton:t.showButton,showCancelButton:t.showButton,closeOnClickOverlay:t.closeOnClickOverlay},model:{value:t.flag,callback:function(i){t.flag=i},expression:"flag"}},[s("div",{staticClass:"van-dialog__message"},[s("div",{staticClass:"kefu"},[s("p",{staticClass:"t0"},[s("i",{staticClass:"iconfont icon-kefu"})]),s("p",{staticClass:"t1"},[s("a",{staticClass:"but-blue",attrs:{href:"tel:0755-88914841"}},[t._v("国内服务电话:0755-88914841")])]),s("p",{staticClass:"t2"},[s("a",{staticClass:"but-white kefuio kefuioxk",attrs:{target:"_blank",href:t.phpParams.kfqq_xk,"data-href":"http://wpa.b.qq.com/cgi/wpa.php?ln=1&key=XzgwMDE1ODQzMl80ODY0NDVfODAwMTU4NDMyXzJf","data-ptag":"right-layer"},on:{click:t.customsrService}},[s("i",{staticClass:"icon iconfont icon-qq"}),t._v("客服QQ\n ")])])])])])],1)},a=[],e=s("9f3a"),c=s("0261"),r=s("bd89"),o=s("6ad0");c["a"].use(r["a"]);var l={name:"sidebar",props:{kefuishow:{type:Boolean,default:!0},carshow:{type:Boolean,default:!1},isWindow:{type:Boolean,default:!1}},data:function(){return{flag:!1,show:!1,showButton:!1,closeOnClickOverlay:!0,showFastNav:!1}},computed:Object(e["c"])({phpParams:function(t){return t.common.phpParams},cartCount:function(t){return t.common.cartCount}}),mounted:function(){this.isWindow?this.scrollFnWindow():this.scrollFn()},created:function(){var t=this;o["a"].$on("xunjia",(function(){t.recordFn()})),this.carshow&&this.$store.dispatch({type:"cartCount"})},methods:{customsrService:function(){this.$store.dispatch({type:"customsrService"})},scrollFnWindow:function(){var t=this;window.onscroll=function(){var i=document.documentElement.scrollTop||document.body.scrollTop;t.show=i>=300}},scrollFn:function(){var t=document.querySelector(".container-wrap"),i=this;t.onscroll=function(){var t=document.querySelector(".container-wrap").scrollTop;i.show=t>=300}},recordFn:function(){this.flag=!0,this.$store.dispatch({type:"getCommonParams"});try{sensors.track("RNavClick",{right_nav_click:"h5-客服"})}catch(t){}},changFastNav:function(){this.showFastNav=!this.showFastNav}}},h=l,d=s("9ca4"),u=Object(d["a"])(h,n,a,!1,null,null,null);i["a"]=u.exports},"81ae":function(t,i,s){"use strict";var n=s("e759"),a=s.n(n);a.a},"81dc":function(t,i,s){var n=s("fb68"),a=s("2346"),e=s("cb3d")("species");t.exports=function(t){var i;return a(t)&&(i=t.constructor,"function"!=typeof i||i!==Array&&!a(i.prototype)||(i=void 0),n(i)&&(i=i[e],null===i&&(i=void 0))),void 0===i?Array:i}},bd89:function(t,i,s){"use strict";var n=s("1bb4"),a=s("0261"),e=s("23c4"),c=s.n(e),r=s("292e"),o=s("8e95"),l=s("7be2"),h=s("fbbe"),d=s("06cb"),u=s("39bf"),f=s("e10b"),g=s("1132"),p=Object(r["a"])("button"),v=p[0],y=p[1];function b(t,i,s,n){var a,e=i.tag,r=i.icon,o=i.type,h=i.color,p=i.plain,v=i.disabled,b=i.loading,k=i.hairline,m=i.loadingText,_={};function C(t){b||v||(Object(d["a"])(n,"click",t),Object(u["a"])(n))}function S(t){Object(d["a"])(n,"touchstart",t)}h&&(_.color=p?h:l["g"],p||(_.background=h),-1!==h.indexOf("gradient")?_.border=0:_.borderColor=h);var w=[y([o,i.size,{plain:p,loading:b,disabled:v,hairline:k,block:i.block,round:i.round,square:i.square}]),(a={},a[l["c"]]=k,a)];function D(){var n,a=[];return b?a.push(t(g["a"],{class:y("loading"),attrs:{size:i.loadingSize,type:i.loadingType,color:"currentColor"}})):r&&a.push(t(f["a"],{attrs:{name:r,classPrefix:i.iconPrefix},class:y("icon")})),n=b?m:s.default?s.default():i.text,n&&a.push(t("span",{class:y("text")},[n])),a}return t(e,c()([{style:_,class:w,attrs:{type:i.nativeType,disabled:v},on:{click:C,touchstart:S}},Object(d["b"])(n)]),[t("div",{class:y("content")},[D()])])}b.props=Object(n["a"])(Object(n["a"])({},u["c"]),{},{text:String,icon:String,color:String,block:Boolean,plain:Boolean,round:Boolean,square:Boolean,loading:Boolean,hairline:Boolean,disabled:Boolean,iconPrefix:String,nativeType:String,loadingText:String,loadingType:String,tag:{type:String,default:"button"},type:{type:String,default:"default"},size:{type:String,default:"normal"},loadingSize:{type:String,default:"20px"}});var k,m=v(b),_=Object(r["a"])("dialog"),C=_[0],S=_[1],w=_[2],D=C({mixins:[Object(h["a"])()],props:{title:String,width:[Number,String],message:String,className:null,callback:Function,beforeClose:Function,messageAlign:String,cancelButtonText:String,cancelButtonColor:String,confirmButtonText:String,confirmButtonColor:String,showCancelButton:Boolean,transition:{type:String,default:"van-dialog-bounce"},showConfirmButton:{type:Boolean,default:!0},overlay:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!1},allowHtml:{type:Boolean,default:!0}},data:function(){return{loading:{confirm:!1,cancel:!1}}},methods:{onClickOverlay:function(){this.handleAction("overlay")},handleAction:function(t){var i=this;this.$emit(t),this.value&&(this.beforeClose?(this.loading[t]=!0,this.beforeClose(t,(function(s){!1!==s&&i.loading[t]&&i.onClose(t),i.loading.confirm=!1,i.loading.cancel=!1}))):this.onClose(t))},onClose:function(t){this.close(),this.callback&&this.callback(t)},onOpened:function(){this.$emit("opened")},onClosed:function(){this.$emit("closed")},genButtons:function(){var t,i=this,s=this.$createElement,n=this.showCancelButton&&this.showConfirmButton;return s("div",{class:[l["d"],S("footer",{buttons:n})]},[this.showCancelButton&&s(m,{attrs:{size:"large",loading:this.loading.cancel,text:this.cancelButtonText||w("cancel")},class:S("cancel"),style:{color:this.cancelButtonColor},on:{click:function(){i.handleAction("cancel")}}}),this.showConfirmButton&&s(m,{attrs:{size:"large",loading:this.loading.confirm,text:this.confirmButtonText||w("confirm")},class:[S("confirm"),(t={},t[l["b"]]=n,t)],style:{color:this.confirmButtonColor},on:{click:function(){i.handleAction("confirm")}}})])},genContent:function(t,i){var s=this.$createElement;if(i)return s("div",{class:S("content")},[i]);var n=this.message,a=this.messageAlign;if(n){var e,r,o={class:S("message",(e={"has-title":t},e[a]=a,e)),domProps:(r={},r[this.allowHtml?"innerHTML":"textContent"]=n,r)};return s("div",{class:S("content")},[s("div",c()([{},o]))])}}},render:function(){var t=arguments[0];if(this.shouldRender){var i=this.message,s=this.slots(),n=this.slots("title")||this.title,a=n&&t("div",{class:S("header",{isolated:!i&&!s})},[n]);return t("transition",{attrs:{name:this.transition},on:{afterEnter:this.onOpened,afterLeave:this.onClosed}},[t("div",{directives:[{name:"show",value:this.value}],attrs:{role:"dialog","aria-labelledby":this.title||i},class:[S(),this.className],style:{width:Object(o["a"])(this.width)}},[a,this.genContent(n,s),this.genButtons()])])}}}),O=s("6f1a");function z(t){return document.body.contains(t)}function F(){k&&k.$destroy(),k=new(a["a"].extend(D))({el:document.createElement("div"),propsData:{lazyRender:!1}}),k.$on("input",(function(t){k.value=t}))}function x(t){return O["f"]?Promise.resolve():new Promise((function(i,s){k&&z(k.$el)||F(),Object(n["a"])(k,x.currentOptions,t,{resolve:i,reject:s})}))}x.defaultOptions={value:!0,title:"",width:"",message:"",overlay:!0,className:"",allowHtml:!0,lockScroll:!0,transition:"van-dialog-bounce",beforeClose:null,overlayClass:"",overlayStyle:null,messageAlign:"",getContainer:"body",cancelButtonText:"",cancelButtonColor:null,confirmButtonText:"",confirmButtonColor:null,showConfirmButton:!0,showCancelButton:!1,closeOnPopstate:!1,closeOnClickOverlay:!1,callback:function(t){k["confirm"===t?"resolve":"reject"](t)}},x.alert=x,x.confirm=function(t){return x(Object(n["a"])({showCancelButton:!0},t))},x.close=function(){k&&(k.value=!1)},x.setDefaultOptions=function(t){Object(n["a"])(x.currentOptions,t)},x.resetDefaultOptions=function(){x.currentOptions=Object(n["a"])({},x.defaultOptions)},x.resetDefaultOptions(),x.install=function(){a["a"].use(D)},x.Component=D,a["a"].prototype.$dialog=x;i["a"]=x},cb25:function(t,i,s){"use strict";var n=s("542d"),a=s.n(n);a.a},e204:function(t,i,s){"use strict";var n=s("e46b"),a=s("013f")(6),e="findIndex",c=!0;e in[]&&Array(1)[e]((function(){c=!1})),n(n.P+n.F*c,"Array",{findIndex:function(t){return a(this,t,arguments.length>1?arguments[1]:void 0)}}),s("0e8b")(e)},e759:function(t,i,s){},ee4e:function(t,i,s){"use strict";function n(t){var i=window.getComputedStyle(t),s="none"===i.display,n=null===t.offsetParent&&"fixed"!==i.position;return s||n}s.d(i,"a",(function(){return n}))}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-783f1fe8"],{"0aad":function(t,e,i){"use strict";var n=i("292e"),o=i("6f1a"),s=i("fbbe"),a=i("e10b"),c=Object(n["a"])("popup"),r=c[0],l=c[1];e["a"]=r({mixins:[Object(s["a"])()],props:{round:Boolean,duration:[Number,String],closeable:Boolean,transition:String,safeAreaInsetBottom:Boolean,closeIcon:{type:String,default:"cross"},closeIconPosition:{type:String,default:"top-right"},position:{type:String,default:"center"},overlay:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0}},beforeCreate:function(){var t=this,e=function(e){return function(i){return t.$emit(e,i)}};this.onClick=e("click"),this.onOpened=e("opened"),this.onClosed=e("closed")},render:function(){var t,e=arguments[0];if(this.shouldRender){var i=this.round,n=this.position,s=this.duration,c="center"===n,r=this.transition||(c?"van-fade":"van-popup-slide-"+n),u={};if(Object(o["b"])(s)){var h=c?"animationDuration":"transitionDuration";u[h]=s+"s"}return e("transition",{attrs:{name:r},on:{afterEnter:this.onOpened,afterLeave:this.onClosed}},[e("div",{directives:[{name:"show",value:this.value}],style:u,class:l((t={round:i},t[n]=n,t["safe-area-inset-bottom"]=this.safeAreaInsetBottom,t)),on:{click:this.onClick}},[this.slots(),this.closeable&&e(a["a"],{attrs:{role:"button",tabindex:"0",name:this.closeIcon},class:l("close-icon",this.closeIconPosition),on:{click:this.close}})])])}}})},"2b6e":function(t,e,i){"use strict";var n=i("1bb4"),o=i("292e"),s=i("6f1a"),a=i("d8c9"),c=i("7be2"),r=i("8094"),l=i("8e95"),u=i("1132"),h=i("23c4"),d=i.n(h),m=i("a621");function f(t){return Array.isArray(t)?t.map((function(t){return f(t)})):"object"===typeof t?Object(m["a"])({},t):t}var p=i("c7f2"),v=i("75bd"),g=200,b=300,C=15,x=Object(o["a"])("picker-column"),I=x[0],y=x[1];function w(t){var e=window.getComputedStyle(t),i=e.transform||e.webkitTransform,n=i.slice(7,i.length-1).split(", ")[5];return Number(n)}function k(t){return Object(s["d"])(t)&&t.disabled}var O=I({mixins:[v["a"]],props:{valueKey:String,allowHtml:Boolean,className:String,itemHeight:Number,defaultIndex:Number,swipeDuration:[Number,String],visibleItemCount:[Number,String],initialOptions:{type:Array,default:function(){return[]}}},data:function(){return{offset:0,duration:0,options:f(this.initialOptions),currentIndex:this.defaultIndex}},created:function(){this.$parent.children&&this.$parent.children.push(this),this.setIndex(this.currentIndex)},mounted:function(){this.bindTouchEvent(this.$el)},destroyed:function(){var t=this.$parent.children;t&&t.splice(t.indexOf(this),1)},watch:{initialOptions:"setOptions",defaultIndex:function(t){this.setIndex(t)}},computed:{count:function(){return this.options.length},baseOffset:function(){return this.itemHeight*(this.visibleItemCount-1)/2}},methods:{setOptions:function(t){JSON.stringify(t)!==JSON.stringify(this.options)&&(this.options=f(t),this.setIndex(this.defaultIndex))},onTouchStart:function(t){if(this.touchStart(t),this.moving){var e=w(this.$refs.wrapper);this.offset=Math.min(0,e-this.baseOffset),this.startOffset=this.offset}else this.startOffset=this.offset;this.duration=0,this.transitionEndTrigger=null,this.touchStartTime=Date.now(),this.momentumOffset=this.startOffset},onTouchMove:function(t){this.touchMove(t),"vertical"===this.direction&&(this.moving=!0,Object(a["c"])(t,!0)),this.offset=Object(p["b"])(this.startOffset+this.deltaY,-this.count*this.itemHeight,this.itemHeight);var e=Date.now();e-this.touchStartTime>b&&(this.touchStartTime=e,this.momentumOffset=this.offset)},onTouchEnd:function(){var t=this,e=this.offset-this.momentumOffset,i=Date.now()-this.touchStartTime,n=i<b&&Math.abs(e)>C;if(n)this.momentum(e,i);else{var o=this.getIndexByOffset(this.offset);this.duration=g,this.setIndex(o,!0),setTimeout((function(){t.moving=!1}),0)}},onTransitionEnd:function(){this.stopMomentum()},onClickItem:function(t){this.moving||(this.duration=g,this.setIndex(t,!0))},adjustIndex:function(t){t=Object(p["b"])(t,0,this.count);for(var e=t;e<this.count;e++)if(!k(this.options[e]))return e;for(var i=t-1;i>=0;i--)if(!k(this.options[i]))return i},getOptionText:function(t){return Object(s["d"])(t)&&this.valueKey in t?t[this.valueKey]:t},setIndex:function(t,e){var i=this;t=this.adjustIndex(t)||0;var n=-t*this.itemHeight,o=function(){t!==i.currentIndex&&(i.currentIndex=t,e&&i.$emit("change",t))};this.moving&&n!==this.offset?this.transitionEndTrigger=o:o(),this.offset=n},setValue:function(t){for(var e=this.options,i=0;i<e.length;i++)if(this.getOptionText(e[i])===t)return this.setIndex(i)},getValue:function(){return this.options[this.currentIndex]},getIndexByOffset:function(t){return Object(p["b"])(Math.round(-t/this.itemHeight),0,this.count-1)},momentum:function(t,e){var i=Math.abs(t/e);t=this.offset+i/.003*(t<0?-1:1);var n=this.getIndexByOffset(t);this.duration=+this.swipeDuration,this.setIndex(n,!0)},stopMomentum:function(){this.moving=!1,this.duration=0,this.transitionEndTrigger&&(this.transitionEndTrigger(),this.transitionEndTrigger=null)},genOptions:function(){var t=this,e=this.$createElement,i={height:this.itemHeight+"px"};return this.options.map((function(n,o){var s,a=t.getOptionText(n),c=k(n),r={style:i,attrs:{role:"button",tabindex:c?-1:0},class:[y("item",{disabled:c,selected:o===t.currentIndex})],on:{click:function(){t.onClickItem(o)}}},l={class:"van-ellipsis",domProps:(s={},s[t.allowHtml?"innerHTML":"textContent"]=a,s)};return e("li",d()([{},r]),[e("div",d()([{},l]))])}))}},render:function(){var t=arguments[0],e={transform:"translate3d(0, "+(this.offset+this.baseOffset)+"px, 0)",transitionDuration:this.duration+"ms",transitionProperty:this.duration?"all":"none"};return t("div",{class:[y(),this.className]},[t("ul",{ref:"wrapper",style:e,class:y("wrapper"),on:{transitionend:this.onTransitionEnd}},[this.genOptions()])])}}),_=Object(o["a"])("picker"),P=_[0],D=_[1],j=_[2];e["a"]=P({props:Object(n["a"])(Object(n["a"])({},r["b"]),{},{defaultIndex:{type:[Number,String],default:0},columns:{type:Array,default:function(){return[]}},toolbarPosition:{type:String,default:"top"},valueKey:{type:String,default:"text"}}),data:function(){return{children:[],formattedColumns:[]}},computed:{itemPxHeight:function(){return this.itemHeight?Object(l["b"])(this.itemHeight):r["a"]},dataType:function(){var t=this.columns,e=t[0]||{};return e.children?"cascade":e.values?"object":"text"}},watch:{columns:{handler:"format",immediate:!0}},methods:{format:function(){var t=this.columns,e=this.dataType;"text"===e?this.formattedColumns=[{values:t}]:"cascade"===e?this.formatCascade():this.formattedColumns=t},formatCascade:function(){var t=[],e={children:this.columns};while(e&&e.children){var i=Object(s["b"])(e.defaultIndex)?e.defaultIndex:+this.defaultIndex;t.push({values:e.children,className:e.className,defaultIndex:i}),e=e.children[i]}this.formattedColumns=t},emit:function(t){var e=this;if("text"===this.dataType)this.$emit(t,this.getColumnValue(0),this.getColumnIndex(0));else{var i=this.getValues();"cascade"===this.dataType&&(i=i.map((function(t){return t[e.valueKey]}))),this.$emit(t,i,this.getIndexes())}},onCascadeChange:function(t){for(var e={children:this.columns},i=this.getIndexes(),n=0;n<=t;n++)e=e.children[i[n]];while(e&&e.children)t++,this.setColumnValues(t,e.children),e=e.children[e.defaultIndex||0]},onChange:function(t){var e=this;if("cascade"===this.dataType&&this.onCascadeChange(t),"text"===this.dataType)this.$emit("change",this,this.getColumnValue(0),this.getColumnIndex(0));else{var i=this.getValues();"cascade"===this.dataType&&(i=i.map((function(t){return t[e.valueKey]}))),this.$emit("change",this,i,t)}},getColumn:function(t){return this.children[t]},getColumnValue:function(t){var e=this.getColumn(t);return e&&e.getValue()},setColumnValue:function(t,e){var i=this.getColumn(t);i&&(i.setValue(e),"cascade"===this.dataType&&this.onCascadeChange(t))},getColumnIndex:function(t){return(this.getColumn(t)||{}).currentIndex},setColumnIndex:function(t,e){var i=this.getColumn(t);i&&(i.setIndex(e),"cascade"===this.dataType&&this.onCascadeChange(t))},getColumnValues:function(t){return(this.children[t]||{}).options},setColumnValues:function(t,e){var i=this.children[t];i&&i.setOptions(e)},getValues:function(){return this.children.map((function(t){return t.getValue()}))},setValues:function(t){var e=this;t.forEach((function(t,i){e.setColumnValue(i,t)}))},getIndexes:function(){return this.children.map((function(t){return t.currentIndex}))},setIndexes:function(t){var e=this;t.forEach((function(t,i){e.setColumnIndex(i,t)}))},confirm:function(){this.children.forEach((function(t){return t.stopMomentum()})),this.emit("confirm")},cancel:function(){this.emit("cancel")},genTitle:function(){var t=this.$createElement,e=this.slots("title");return e||(this.title?t("div",{class:["van-ellipsis",D("title")]},[this.title]):void 0)},genToolbar:function(){var t=this.$createElement;if(this.showToolbar)return t("div",{class:D("toolbar")},[this.slots()||[t("button",{attrs:{type:"button"},class:D("cancel"),on:{click:this.cancel}},[this.cancelButtonText||j("cancel")]),this.genTitle(),t("button",{attrs:{type:"button"},class:D("confirm"),on:{click:this.confirm}},[this.confirmButtonText||j("confirm")])]])},genColumns:function(){var t=this.$createElement,e=this.itemPxHeight,i=e*this.visibleItemCount,n={height:e+"px"},o={height:i+"px"},s={backgroundSize:"100% "+(i-e)/2+"px"};return t("div",{class:D("columns"),style:o,on:{touchmove:a["c"]}},[this.genColumnItems(),t("div",{class:D("mask"),style:s}),t("div",{class:[c["f"],D("frame")],style:n})])},genColumnItems:function(){var t=this,e=this.$createElement;return this.formattedColumns.map((function(i,n){return e(O,{attrs:{valueKey:t.valueKey,allowHtml:t.allowHtml,className:i.className,itemHeight:t.itemPxHeight,defaultIndex:i.defaultIndex||+t.defaultIndex,swipeDuration:t.swipeDuration,visibleItemCount:t.visibleItemCount,initialOptions:i.values},on:{change:function(){t.onChange(n)}}})}))}},render:function(t){return t("div",{class:D()},["top"===this.toolbarPosition?this.genToolbar():t(),this.loading?t(u["a"],{class:D("loading")}):t(),this.slots("columns-top"),this.genColumns(),this.slots("columns-bottom"),"bottom"===this.toolbarPosition?this.genToolbar():t()])}})},"7be2":function(t,e,i){"use strict";i.d(e,"g",(function(){return n})),i.d(e,"d",(function(){return s})),i.d(e,"b",(function(){return a})),i.d(e,"a",(function(){return c})),i.d(e,"c",(function(){return r})),i.d(e,"e",(function(){return l})),i.d(e,"f",(function(){return u}));var n="#fff",o="van-hairline",s=o+"--top",a=o+"--left",c=o+"--bottom",r=o+"--surround",l=o+"--top-bottom",u=o+"-unset--top-bottom"},8094:function(t,e,i){"use strict";i.d(e,"a",(function(){return n})),i.d(e,"b",(function(){return o}));var n=44,o={title:String,loading:Boolean,itemHeight:[Number,String],showToolbar:Boolean,cancelButtonText:String,confirmButtonText:String,allowHtml:{type:Boolean,default:!0},visibleItemCount:{type:[Number,String],default:5},swipeDuration:{type:[Number,String],default:1e3}}},ae8c:function(t,e,i){"use strict";var n=i("c444"),o=i.n(n);o.a},ba1b:function(t,e,i){"use strict";i.r(e);var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("section",{staticClass:"sample-cominfo"},[i("Header",{attrs:{title:t.title,meaushow:t.meaushow,bgcolor:t.bgcolor}}),i("div",{staticClass:"cominfo-form"},[i("div",{staticClass:"form-item"},[t._m(0),i("input",{directives:[{name:"model",rawName:"v-model",value:t.comName,expression:"comName"}],staticClass:"input",attrs:{type:"text",placeholder:"填写完整公司名称",readonly:Boolean(t.ypComInfo.com_name)},domProps:{value:t.comName},on:{input:function(e){e.target.composing||(t.comName=e.target.value)}}})]),i("div",{staticClass:"form-item"},[t._m(1),i("input",{directives:[{name:"model",rawName:"v-model",value:t.comPhone,expression:"comPhone"}],staticClass:"input",attrs:{type:"text",placeholder:"填写公司座机号码",readonly:Boolean(t.ypComInfo.com_telphone)},domProps:{value:t.comPhone},on:{input:function(e){e.target.composing||(t.comPhone=e.target.value)}}})]),i("div",{staticClass:"form-item",on:{click:t.showWorkPop}},[t._m(2),i("div",{staticClass:"choose-right"},[i("span",[t._v(t._s(t.workDefaultValue))]),i("i",{staticClass:"icon iconfont icon-jinru1"})])]),i("div",{staticClass:"form-item",on:{click:t.showChooseAdd}},[t._m(3),i("div",{staticClass:"choose-right"},[i("span",[t._v(t._s(t.chooseAddtext))]),i("i",{staticClass:"icon iconfont icon-jinru1"})])]),i("div",{staticClass:"form-item detail-add"},[t._m(4),i("textarea",{directives:[{name:"model",rawName:"v-model",value:t.comDetailAdd,expression:"comDetailAdd"}],staticClass:"textarea",attrs:{placeholder:"请输入详细地址",maxlength:"60",readonly:Boolean(t.ypComInfo.com_address)},domProps:{value:t.comDetailAdd},on:{input:function(e){e.target.composing||(t.comDetailAdd=e.target.value)}}})]),i("div",{staticClass:"form-item pic-item"},[t._m(5),t.comPic?i("div",{staticClass:"has-img"},[i("img",{attrs:{src:t.comPic,alt:""}}),t._m(6)]):i("div",{staticClass:"default-img"},[i("div",{staticClass:"img"})]),i("input",{ref:"uploadFile",staticClass:"file",attrs:{type:"file",id:"file"},on:{change:t.changeImg}}),i("div",{staticClass:"upload-btn",on:{click:t.uploadImg}},[t._v("上传图片")])])]),i("div",{staticClass:"save-btn-div"},[i("div",{staticClass:"btn",on:{click:t.saveComInfo}},[t._v("保存")])]),i("van-popup",{attrs:{position:"bottom"},model:{value:t.showWorkPicker,callback:function(e){t.showWorkPicker=e},expression:"showWorkPicker"}},[i("van-picker",{ref:"work",attrs:{"show-toolbar":"","default-index":t.workDefaultIndex,columns:t.workColumns},on:{cancel:function(e){t.showWorkPicker=!1},confirm:t.onWorkConfirm}})],1),i("van-popup",{attrs:{position:"bottom"},model:{value:t.showPicker,callback:function(e){t.showPicker=e},expression:"showPicker"}},[t.pageShow?i("van-picker",{ref:"chooseadd",attrs:{"show-toolbar":"",columns:t.columns},on:{cancel:function(e){t.showPicker=!1},confirm:t.onConfirm,change:t.onChange}}):t._e()],1)],1)},o=[function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("h3",{staticClass:"label-h3"},[i("span",{staticClass:"f-red"},[t._v("*")]),t._v("公司名称\n ")])},function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("h3",{staticClass:"label-h3"},[i("span",{staticClass:"f-red"},[t._v("*")]),t._v("公司座机\n ")])},function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("h3",{staticClass:"label-h3"},[i("span",{staticClass:"f-red"},[t._v("*")]),t._v("公司性质\n ")])},function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("h3",{staticClass:"label-h3"},[i("span",{staticClass:"f-red"},[t._v("*")]),t._v("公司地址\n ")])},function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("h3",{staticClass:"detail-add-label"},[i("span",{staticClass:"f-red"},[t._v("*")]),t._v("详细地址\n ")])},function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("h3",{staticClass:"pic-item-label"},[i("span",{staticClass:"f-red"},[t._v("*")]),t._v("工牌/名片\n ")])},function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"img-mask"},[i("div",{staticClass:"yes-icon"})])}],s=(i("5ab2"),i("e10e"),i("6d57"),i("e44b"),i("de78"),i("9bef")),a=i("0261"),c=i("2b6e"),r=i("0aad"),l=i("0a68"),u=i("9f3a"),h=i("57af"),d=i("365c"),m=i("f753"),f=i.n(m);function p(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function v(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?p(Object(i),!0).forEach((function(e){Object(s["a"])(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):p(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}a["a"].use(c["a"]).use(r["a"]).use(l["a"]);var g={name:"samplecominfo",data:function(){return{title:"公司信息填写",meaushow:!0,bgcolor:"#fafafa",showWorkPicker:!1,workDefaultIndex:1,workDefaultValue:"终端采购商",workColumns:["个人","终端采购商","原厂制造商","授权分销商","学校/科研机构","贸易商","其他"],columns:[{values:"",className:"column1"},{values:"",className:"column2",defaultIndex:0},{values:"",className:"column3",defaultIndex:0}],pageShow:!1,cityDates:"",showPicker:!1,data:"",chooseAddtext:"北京北京东城区",choosePId:"2",chooseCId:"52",chooseAId:"500",comProvince:"北京",comCity:"北京",comArea:"东城区",comName:"",comPhone:"",comDetailAdd:"",comPic:"",cominfocookie:localStorage.getItem("samplecominfo")||""}},computed:v({},Object(u["c"])({addressAllInfo:function(t){return t.userInfo.addressInfo},ypComInfo:function(t){return t.sampleapply.ypComInfo}})),watch:{addressAllInfo:function(t){t&&(this.data=t,this.columns[0].values=Object.values(t).map((function(t){return{text:t.text,value:t.value}})),this.columns[1].values=Object.values(t[0].children).map((function(t){return{text:t.text,value:t.value}})),this.columns[2].values=Object.values(t[0].children[0].children).map((function(t){return{text:t.text,value:t.value}})),this.fillData(),this.$nextTick((function(){this.pageShow=!0})))}},created:function(){if(this.$store.dispatch({type:"allAddressInfo"}),this.cominfocookie){var t=JSON.parse(this.cominfocookie);this.comName=t.com_name_1,this.comPhone=t.phone,this.comDetailAdd=t.com_detail_add,this.comPic=t.com_pic,t.com_nature&&(this.workDefaultIndex=t.com_nature,this.workDefaultValue=this.workColumns[this.workDefaultIndex])}else{var e=this.ypComInfo;this.comName=e.com_name,this.comPhone=e.com_telphone,this.comDetailAdd=e.com_address,this.comPic="",e.type_id&&(this.workDefaultIndex=e.type_id,this.workDefaultValue=this.workColumns[this.workDefaultIndex])}},methods:{fillData:function(){if(this.cominfocookie){var t=JSON.parse(this.cominfocookie);t.province_id&&(this.choosePId=t.province_id,this.chooseCId=t.city_id,this.chooseAId=t.area_id)}else{var e=this.ypComInfo;e.com_province_id&&(this.choosePId=e.com_province_id,this.chooseCId=e.com_city_id,this.chooseAId=e.com_area_id)}if(this.choosePId){var i=this.toIdByName(this.choosePId,this.chooseCId,this.chooseAId),n=i.province,o=i.city,s=i.area;this.comProvince=n,this.comCity=o,this.comArea=s,this.chooseAddtext="".concat(n).concat(o).concat(s)}},toIdByName:function(t,e,i){for(var n,o,s,a=0;a<this.data.length;a++){var c=this.data[a];if(c.value==t){n=c.text;for(var r=0;r<c.children.length;r++){var l=c.children[r];if(l.value==e){o=l.text;for(var u=0;u<l.children.length;u++){var h=l.children[u];h.value==i&&(s=h.text)}}}}}return{province:n,city:o,area:s}},showChooseAdd:function(){var t=this;this.ypComInfo.com_province_id||(this.showPicker=!this.showPicker,this.$nextTick((function(){t.$refs["chooseadd"].setColumnValues(1,t.cityDate(t.data,t.comProvince)),t.$refs["chooseadd"].setColumnValues(2,t.county(t.data,t.comCity)),t.$refs["chooseadd"].setColumnValue(0,t.comProvince),t.$refs["chooseadd"].setColumnValue(1,t.comCity),t.$refs["chooseadd"].setColumnValue(2,t.comArea)})))},onChange:function(t,e,i){t.setColumnValues(1,this.cityDate(this.data,e[0].text)),t.setColumnValues(2,this.county(this.data,e[1].text))},cityDate:function(t,e){var i=this;return t.forEach((function(t){t.text==e&&(i.cityDates=t)})),i.cityDates.children.map((function(t){return{text:t.text,value:t.value}}))},county:function(t,e){var i=this,n="";return i.cityDates.children.forEach((function(t){t.text==e&&(n=t)})),""==n&&(n=i.cityDates.children[0]),n.children.map((function(t){return{text:t.text,value:t.value}}))},onConfirm:function(t,e){this.showPicker=!1,this.comProvince=t[0]["text"],this.comCity=t[1]["text"],this.comArea=t[2]["text"],this.chooseAddtext=this.comProvince+this.comCity+this.comArea,this.choosePId=t[0]["value"],this.chooseCId=t[1]["value"],this.chooseAId=t[2]["value"]},onWorkConfirm:function(t){this.showWorkPicker=!1,this.workDefaultIndex=this.workColumns.indexOf(t),this.workDefaultValue=t},showWorkPop:function(){var t=this;this.ypComInfo.type_id||(this.showWorkPicker=!this.showWorkPicker,this.$nextTick((function(){t.$refs["work"].setColumnIndex(0,t.workDefaultIndex)})))},saveComInfo:function(){if(this.comName.trim())if(/^[0][1-9]{2,3}-[0-9]{5,10}$/.test(this.comPhone.trim()))if(this.choosePId.trim())if(this.comDetailAdd.trim())if(this.comPic){var t=JSON.stringify({com_name_1:this.comName,phone:this.comPhone,com_nature:this.workDefaultIndex,province_id:this.choosePId,city_id:this.chooseCId,area_id:this.chooseAId,com_detail_add:this.comDetailAdd,com_pic:this.comPic});localStorage.setItem("samplecominfo",t),this.$router.go(-1)}else Object(l["a"])("请上传工牌/名片");else Object(l["a"])("请填写详细地址");else Object(l["a"])("请选择地址");else Object(l["a"])("请正确填写公司座机");else Object(l["a"])("请填写完整公司名称")},uploadImg:function(){this.$refs["uploadFile"].click()},changeImg:function(t){var e=this.$refs["uploadFile"].files[0];if(e)return e.size/1024/1024>2?(Object(l["a"])("图片大小不能超过2M"),void(this.$refs["uploadFile"].value="")):void this.uploadImgToSer(e)},uploadImgToSer:function(t){var e=this,i=new FormData;i.append("upload",t),i.append("source",2);var n={headers:{"Content-Type":"multipart/form-data"}},o=l["a"].loading({duration:0,type:"loading",forbidClick:!0,message:"上传中"});f.a.post(d["a"].uploadImg,i,n).then((function(t){if(o.clear(),200===t.data.code){var i=t.data.data;e.comPic=i[0]}else Object(l["a"])(t.data.message||"服务器异常")})).catch((function(t){o.clear(),Object(l["a"])("服务器异常")}))}},components:{Header:h["a"]}},b=g,C=(i("ae8c"),i("9ca4")),x=Object(C["a"])(b,n,o,!1,null,"59c7d26b",null);e["default"]=x.exports},c444:function(t,e,i){}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-cbeab798"],{"0092":function(t,e,i){"use strict";var n=i("292e"),r=i("ee4e"),o=i("4382"),s=i("40c0"),a=i("1132"),c=Object(n["a"])("list"),l=c[0],u=c[1],h=c[2];e["a"]=l({mixins:[Object(s["a"])((function(t){this.scroller||(this.scroller=Object(o["d"])(this.$el)),t(this.scroller,"scroll",this.check)}))],model:{prop:"loading"},props:{error:Boolean,loading:Boolean,finished:Boolean,errorText:String,loadingText:String,finishedText:String,immediateCheck:{type:Boolean,default:!0},offset:{type:[Number,String],default:300},direction:{type:String,default:"down"}},data:function(){return{innerLoading:this.loading}},updated:function(){this.innerLoading=this.loading},mounted:function(){this.immediateCheck&&this.check()},watch:{loading:"check",finished:"check"},methods:{check:function(){var t=this;this.$nextTick((function(){if(!(t.innerLoading||t.finished||t.error)){var e,i=t.$el,n=t.scroller,o=t.offset,s=t.direction;e=n.getBoundingClientRect?n.getBoundingClientRect():{top:0,bottom:n.innerHeight};var a=e.bottom-e.top;if(!a||Object(r["a"])(i))return!1;var c=!1,l=t.$refs.placeholder.getBoundingClientRect();c="up"===s?e.top-l.top<=o:l.bottom-e.bottom<=o,c&&(t.innerLoading=!0,t.$emit("input",!0),t.$emit("load"))}}))},clickErrorText:function(){this.$emit("update:error",!1),this.check()},genLoading:function(){var t=this.$createElement;if(this.innerLoading&&!this.finished)return t("div",{class:u("loading"),key:"loading"},[this.slots("loading")||t(a["a"],{attrs:{size:"16"}},[this.loadingText||h("loading")])])},genFinishedText:function(){var t=this.$createElement;if(this.finished){var e=this.slots("finished")||this.finishedText;if(e)return t("div",{class:u("finished-text")},[e])}},genErrorText:function(){var t=this.$createElement;if(this.error){var e=this.slots("error")||this.errorText;if(e)return t("div",{on:{click:this.clickErrorText},class:u("error-text")},[e])}}},render:function(){var t=arguments[0],e=t("div",{ref:"placeholder",class:u("placeholder")});return t("div",{class:u(),attrs:{role:"feed","aria-busy":this.innerLoading}},["down"===this.direction?this.slots():e,this.genLoading(),this.genFinishedText(),this.genErrorText(),"up"===this.direction?this.slots():e])}})},"0aad":function(t,e,i){"use strict";var n=i("292e"),r=i("6f1a"),o=i("fbbe"),s=i("e10b"),a=Object(n["a"])("popup"),c=a[0],l=a[1];e["a"]=c({mixins:[Object(o["a"])()],props:{round:Boolean,duration:[Number,String],closeable:Boolean,transition:String,safeAreaInsetBottom:Boolean,closeIcon:{type:String,default:"cross"},closeIconPosition:{type:String,default:"top-right"},position:{type:String,default:"center"},overlay:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0}},beforeCreate:function(){var t=this,e=function(e){return function(i){return t.$emit(e,i)}};this.onClick=e("click"),this.onOpened=e("opened"),this.onClosed=e("closed")},render:function(){var t,e=arguments[0];if(this.shouldRender){var i=this.round,n=this.position,o=this.duration,a="center"===n,c=this.transition||(a?"van-fade":"van-popup-slide-"+n),u={};if(Object(r["b"])(o)){var h=a?"animationDuration":"transitionDuration";u[h]=o+"s"}return e("transition",{attrs:{name:c},on:{afterEnter:this.onOpened,afterLeave:this.onClosed}},[e("div",{directives:[{name:"show",value:this.value}],style:u,class:l((t={round:i},t[n]=n,t["safe-area-inset-bottom"]=this.safeAreaInsetBottom,t)),on:{click:this.onClick}},[this.slots(),this.closeable&&e(s["a"],{attrs:{role:"button",tabindex:"0",name:this.closeIcon},class:l("close-icon",this.closeIconPosition),on:{click:this.close}})])])}}})},1292:function(t,e,i){"use strict";var n=i("1bb4"),r=i("292e"),o=i("6f1a"),s=i("cc52"),a=i("39bf"),c=Object(r["a"])("tab"),l=c[0],u=c[1];e["a"]=l({mixins:[Object(s["a"])("vanTabs")],props:Object(n["a"])(Object(n["a"])({},a["c"]),{},{dot:Boolean,name:[Number,String],info:[Number,String],badge:[Number,String],title:String,titleStyle:null,disabled:Boolean}),data:function(){return{inited:!1}},computed:{computedName:function(){return Object(o["b"])(this.name)?this.name:this.index},isActive:function(){var t=this.computedName===this.parent.currentName;return t&&(this.inited=!0),t}},watch:{title:function(){this.parent.setLine()},inited:function(t){var e=this;this.parent.lazyRender&&t&&this.$nextTick((function(){e.parent.$emit("rendered",e.computedName,e.title)}))}},render:function(t){var e=this.slots,i=this.parent,n=this.isActive,r=this.inited||i.scrollspy||!i.lazyRender,o=i.scrollspy||n,s=r?e():t();return i.animated?t("div",{attrs:{role:"tabpanel","aria-hidden":!n},class:u("pane-wrapper",{inactive:!n})},[t("div",{class:u("pane")},[s])]):t("div",{directives:[{name:"show",value:o}],attrs:{role:"tabpanel"},class:u("pane")},[s])}})},"166e":function(t,e,i){"use strict";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div")},r=[],o=(i("5ab2"),i("6d57"),i("e44b"),i("e10e"),i("9bef")),s=(i("5490"),i("9f3a")),a=i("4260");function c(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function l(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?c(Object(i),!0).forEach((function(e){Object(o["a"])(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):c(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var u={name:"wxShare",props:{isLogin:{type:Boolean,default:!0},url:{type:String,default:window.location.href},title:{type:String,default:"好物分享给你,帮我助力,我们一起免费拿样品"},desc:{type:String,default:"在吗?拜托帮我点一下,你也能免费申请元器件样品~帮我助力 你拿样品"},link:{type:String,default:window.location.origin+"/v3/samplereg?uid="+a["a"].getCookie("Yo4teW_uid")},imgUrl:{type:String,default:"http://img.ichunt.com/images/ichunt/self_sample/apply.png"}},data:function(){return{shareObj:{title:this.title,desc:this.desc,link:this.link,imgUrl:this.imgUrl,success:function(t){},error:function(){}}}},computed:l({},Object(s["c"])({wxShareInfo:function(t){return t.common.wxShareInfo},wxShareState:function(t){return t.common.wxShareState}})),watch:{wxShareState:function(t){t&&this.share()}},created:function(){this.isLogin?a["a"].getCookie("Yo4teW_uid")&&this.$store.dispatch({type:"wxShare",current_url:location.href}):this.$store.dispatch({type:"wxShare",current_url:location.href})},methods:{share:function(){var t=this;try{setShareInfo({title:t.shareObj.title,summary:t.shareObj.title,pic:t.shareObj.imgUrl,url:t.shareObj.link,WXconfig:{swapTitleInWX:!0,appId:t.wxShareInfo.appId,timestamp:t.wxShareInfo.timestamp,nonceStr:t.wxShareInfo.nonceStr,signature:t.wxShareInfo.signature}})}catch(e){}wx.config({debug:!1,appId:t.wxShareInfo.appId,timestamp:t.wxShareInfo.timestamp,nonceStr:t.wxShareInfo.nonceStr,signature:t.wxShareInfo.signature,jsApiList:["onMenuShareTimeline","onMenuShareAppMessage","onMenuShareQQ","onMenuShareWeibo","onMenuShareQZone","updateAppMessageShareData","updateTimelineShareData"]}),wx.ready((function(){wx.checkJsApi({jsApiList:["onMenuShareTimeline","onMenuShareAppMessage","onMenuShareQQ","onMenuShareWeibo","onMenuShareQZone","updateAppMessageShareData","updateTimelineShareData"],success:function(t){}}),wx.onMenuShareTimeline(t.shareObj),wx.onMenuShareAppMessage(t.shareObj),wx.onMenuShareWeibo(t.shareObj),wx.onMenuShareQZone(t.shareObj),wx.onMenuShareQQ?wx.onMenuShareQQ(t.shareObj):wx.updateAppMessageShareData(t.shareObj),wx.updateTimelineShareData(t.shareObj)}))}}},h=u,d=i("9ca4"),f=Object(d["a"])(h,n,r,!1,null,null,null);e["a"]=f.exports},"16a8":function(t,e,i){"use strict";var n=i("a571"),r=i.n(n);r.a},2413:function(t,e,i){"use strict";var n=i("292e"),r=i("ee4e"),o=i("d8c9"),s=i("b76a"),a=i("c7f2"),c=i("75bd"),l=i("cc52"),u=i("40c0"),h=Object(n["a"])("swipe"),d=h[0],f=h[1];e["a"]=d({mixins:[c["a"],Object(l["b"])("vanSwipe"),Object(u["a"])((function(t,e){t(window,"resize",this.resize,!0),t(window,"visibilitychange",this.onVisibilityChange),e?this.initialize():this.clear()}))],props:{width:[Number,String],height:[Number,String],autoplay:[Number,String],vertical:Boolean,lazyRender:Boolean,indicatorColor:String,loop:{type:Boolean,default:!0},duration:{type:[Number,String],default:500},touchable:{type:Boolean,default:!0},initialSwipe:{type:[Number,String],default:0},showIndicators:{type:Boolean,default:!0},stopPropagation:{type:Boolean,default:!0}},data:function(){return{rect:null,offset:0,active:0,deltaX:0,deltaY:0,swiping:!1,computedWidth:0,computedHeight:0}},watch:{children:function(){this.initialize()},initialSwipe:function(){this.initialize()},autoplay:function(t){t>0?this.autoPlay():this.clear()}},computed:{count:function(){return this.children.length},maxCount:function(){return Math.ceil(Math.abs(this.minOffset)/this.size)},delta:function(){return this.vertical?this.deltaY:this.deltaX},size:function(){return this[this.vertical?"computedHeight":"computedWidth"]},trackSize:function(){return this.count*this.size},activeIndicator:function(){return(this.active+this.count)%this.count},isCorrectDirection:function(){var t=this.vertical?"vertical":"horizontal";return this.direction===t},trackStyle:function(){var t,e=this.vertical?"height":"width",i=this.vertical?"width":"height";return t={},t[e]=this.trackSize+"px",t[i]=this[i]?this[i]+"px":"",t.transitionDuration=(this.swiping?0:this.duration)+"ms",t.transform="translate"+(this.vertical?"Y":"X")+"("+this.offset+"px)",t},indicatorStyle:function(){return{backgroundColor:this.indicatorColor}},minOffset:function(){return(this.vertical?this.rect.height:this.rect.width)-this.size*this.count}},mounted:function(){this.bindTouchEvent(this.$refs.track)},methods:{initialize:function(t){if(void 0===t&&(t=+this.initialSwipe),this.$el&&!Object(r["a"])(this.$el)){clearTimeout(this.timer);var e=this.$el.getBoundingClientRect();this.rect=e,this.swiping=!0,this.active=t,this.computedWidth=Math.round(+this.width||e.width),this.computedHeight=Math.round(+this.height||e.height),this.offset=this.getTargetOffset(t),this.children.forEach((function(t){t.offset=0})),this.autoPlay()}},resize:function(){this.initialize(this.activeIndicator)},onVisibilityChange:function(){document.hidden?this.clear():this.autoPlay()},onTouchStart:function(t){this.touchable&&(this.clear(),this.touchStartTime=Date.now(),this.touchStart(t),this.correctPosition())},onTouchMove:function(t){this.touchable&&this.swiping&&(this.touchMove(t),this.isCorrectDirection&&(Object(o["c"])(t,this.stopPropagation),this.move({offset:this.delta})))},onTouchEnd:function(){if(this.touchable&&this.swiping){var t=this.size,e=this.delta,i=Date.now()-this.touchStartTime,n=e/i,r=Math.abs(n)>.25||Math.abs(e)>t/2;if(r&&this.isCorrectDirection){var o=this.vertical?this.offsetY:this.offsetX,s=0;s=this.loop?o>0?e>0?-1:1:0:-Math[e>0?"ceil":"floor"](e/t),this.move({pace:s,emitChange:!0})}else e&&this.move({pace:0});this.swiping=!1,this.autoPlay()}},getTargetActive:function(t){var e=this.active,i=this.count,n=this.maxCount;return t?this.loop?Object(a["b"])(e+t,-1,i):Object(a["b"])(e+t,0,n):e},getTargetOffset:function(t,e){void 0===e&&(e=0);var i=t*this.size;this.loop||(i=Math.min(i,-this.minOffset));var n=Math.round(e-i);return this.loop||(n=Object(a["b"])(n,this.minOffset,0)),n},move:function(t){var e=t.pace,i=void 0===e?0:e,n=t.offset,r=void 0===n?0:n,o=t.emitChange,s=this.loop,a=this.count,c=this.active,l=this.children,u=this.trackSize,h=this.minOffset;if(!(a<=1)){var d=this.getTargetActive(i),f=this.getTargetOffset(d,r);if(s){if(l[0]&&f!==h){var p=f<h;l[0].offset=p?u:0}if(l[a-1]&&0!==f){var v=f>0;l[a-1].offset=v?-u:0}}this.active=d,this.offset=f,o&&d!==c&&this.$emit("change",this.activeIndicator)}},prev:function(){var t=this;this.correctPosition(),this.resetTouchStatus(),Object(s["b"])((function(){t.swiping=!1,t.move({pace:-1,emitChange:!0})}))},next:function(){var t=this;this.correctPosition(),this.resetTouchStatus(),Object(s["b"])((function(){t.swiping=!1,t.move({pace:1,emitChange:!0})}))},swipeTo:function(t,e){var i=this;void 0===e&&(e={}),this.correctPosition(),this.resetTouchStatus(),Object(s["b"])((function(){var n;n=i.loop&&t===i.count?0===i.active?0:t:t%i.count,e.immediate?Object(s["b"])((function(){i.swiping=!1})):i.swiping=!1,i.move({pace:n-i.active,emitChange:!0})}))},correctPosition:function(){this.swiping=!0,this.active<=-1&&this.move({pace:this.count}),this.active>=this.count&&this.move({pace:-this.count})},clear:function(){clearTimeout(this.timer)},autoPlay:function(){var t=this,e=this.autoplay;e>0&&this.count>1&&(this.clear(),this.timer=setTimeout((function(){t.next(),t.autoPlay()}),e))},genIndicator:function(){var t=this,e=this.$createElement,i=this.count,n=this.activeIndicator,r=this.slots("indicator");return r||(this.showIndicators&&i>1?e("div",{class:f("indicators",{vertical:this.vertical})},[Array.apply(void 0,Array(i)).map((function(i,r){return e("i",{class:f("indicator",{active:r===n}),style:r===n?t.indicatorStyle:null})}))]):void 0)}},render:function(){var t=arguments[0];return t("div",{class:f()},[t("div",{ref:"track",style:this.trackStyle,class:f("track",{vertical:this.vertical})},[this.slots()]),this.genIndicator()])}})},2969:function(t,e,i){"use strict";var n,r=i("292e"),o=i("6f1a"),s=i("8e95"),a=i("b76a"),c=i("4382");function l(t,e,i){Object(a["a"])(n);var r=0,o=t.scrollLeft,s=0===i?1:Math.round(1e3*i/16);function c(){t.scrollLeft+=(e-o)/s,++r<s&&(n=Object(a["c"])(c))}c()}function u(t,e,i,n){var r=Object(c["c"])(t),o=r<e,s=0===i?1:Math.round(1e3*i/16),l=(e-r)/s;function u(){r+=l,(o&&r>e||!o&&r<e)&&(r=e),Object(c["h"])(t,r),o&&r<e||!o&&r>e?Object(a["c"])(u):n&&Object(a["c"])(n)}u()}var h=i("39bf"),d=i("ee4e"),f=i("d8c9"),p=i("7be2"),v=i("cc52"),b=i("40c0"),g=i("bc00"),m=Object(r["a"])("tab"),y=m[0],w=m[1],x=y({props:{dot:Boolean,type:String,info:[Number,String],color:String,title:String,isActive:Boolean,ellipsis:Boolean,disabled:Boolean,scrollable:Boolean,activeColor:String,inactiveColor:String,swipeThreshold:[Number,String]},computed:{style:function(){var t={},e=this.color,i=this.isActive,n="card"===this.type;e&&n&&(t.borderColor=e,this.disabled||(i?t.backgroundColor=e:t.color=e));var r=i?this.activeColor:this.inactiveColor;return r&&(t.color=r),this.scrollable&&this.ellipsis&&(t.flexBasis=88/this.swipeThreshold+"%"),t}},methods:{onClick:function(){this.$emit("click")},genText:function(){var t=this.$createElement,e=t("span",{class:w("text",{ellipsis:this.ellipsis})},[this.slots()||this.title]);return this.dot||Object(o["b"])(this.info)&&""!==this.info?t("span",{class:w("text-wrapper")},[e,t(g["a"],{attrs:{dot:this.dot,info:this.info}})]):e}},render:function(){var t=arguments[0];return t("div",{attrs:{role:"tab","aria-selected":this.isActive},class:[w({active:this.isActive,disabled:this.disabled,complete:!this.ellipsis})],style:this.style,on:{click:this.onClick}},[this.genText()])}}),O=Object(r["a"])("sticky"),S=O[0],j=O[1],k=S({mixins:[Object(b["a"])((function(t,e){if(this.scroller||(this.scroller=Object(c["d"])(this.$el)),this.observer){var i=e?"observe":"unobserve";this.observer[i](this.$el)}t(this.scroller,"scroll",this.onScroll,!0),this.onScroll()}))],props:{zIndex:[Number,String],container:null,offsetTop:{type:[Number,String],default:0}},data:function(){return{fixed:!1,height:0,transform:0}},computed:{offsetTopPx:function(){return Object(s["b"])(this.offsetTop)},style:function(){if(this.fixed){var t={};return Object(o["b"])(this.zIndex)&&(t.zIndex=this.zIndex),this.offsetTopPx&&this.fixed&&(t.top=this.offsetTopPx+"px"),this.transform&&(t.transform="translate3d(0, "+this.transform+"px, 0)"),t}}},created:function(){var t=this;!o["f"]&&window.IntersectionObserver&&(this.observer=new IntersectionObserver((function(e){e[0].intersectionRatio>0&&t.onScroll()}),{root:document.body}))},methods:{onScroll:function(){var t=this;if(!Object(d["a"])(this.$el)){this.height=this.$el.offsetHeight;var e=this.container,i=this.offsetTopPx,n=Object(c["c"])(window),r=Object(c["a"])(this.$el),o=function(){t.$emit("scroll",{scrollTop:n,isFixed:t.fixed})};if(e){var s=r+e.offsetHeight;if(n+i+this.height>s){var a=this.height+n-s;return a<this.height?(this.fixed=!0,this.transform=-(a+i)):this.fixed=!1,void o()}}n+i>r?(this.fixed=!0,this.transform=0):this.fixed=!1,o()}}},render:function(){var t=arguments[0],e=this.fixed,i={height:e?this.height+"px":null};return t("div",{style:i},[t("div",{class:j({fixed:e}),style:this.style},[this.slots()])])}}),_=i("1bb4"),T=i("75bd"),I=Object(r["a"])("tabs"),C=I[0],$=I[1],L=50,A=C({mixins:[T["a"]],props:{count:Number,duration:[Number,String],animated:Boolean,swipeable:Boolean,currentIndex:Number},computed:{style:function(){if(this.animated)return{transform:"translate3d("+-1*this.currentIndex*100+"%, 0, 0)",transitionDuration:this.duration+"s"}},listeners:function(){if(this.swipeable)return{touchstart:this.touchStart,touchmove:this.touchMove,touchend:this.onTouchEnd,touchcancel:this.onTouchEnd}}},methods:{onTouchEnd:function(){var t=this.direction,e=this.deltaX,i=this.currentIndex;"horizontal"===t&&this.offsetX>=L&&(e>0&&0!==i?this.$emit("change",i-1):e<0&&i!==this.count-1&&this.$emit("change",i+1))},genChildren:function(){var t=this.$createElement;return this.animated?t("div",{class:$("track"),style:this.style},[this.slots()]):this.slots()}},render:function(){var t=arguments[0];return t("div",{class:$("content",{animated:this.animated}),on:Object(_["a"])({},this.listeners)},[this.genChildren()])}}),z=Object(r["a"])("tabs"),E=z[0],B=z[1];e["a"]=E({mixins:[Object(v["b"])("vanTabs"),Object(b["a"])((function(t){this.scroller||(this.scroller=Object(c["d"])(this.$el)),t(window,"resize",this.resize,!0),this.scrollspy&&t(this.scroller,"scroll",this.onScroll,!0)}))],model:{prop:"active"},props:{color:String,sticky:Boolean,animated:Boolean,swipeable:Boolean,scrollspy:Boolean,background:String,lineWidth:[Number,String],lineHeight:[Number,String],titleActiveColor:String,titleInactiveColor:String,type:{type:String,default:"line"},active:{type:[Number,String],default:0},border:{type:Boolean,default:!0},ellipsis:{type:Boolean,default:!0},duration:{type:[Number,String],default:.3},offsetTop:{type:[Number,String],default:0},lazyRender:{type:Boolean,default:!0},swipeThreshold:{type:[Number,String],default:4}},data:function(){return{position:"",currentIndex:null,lineStyle:{backgroundColor:this.color}}},computed:{scrollable:function(){return this.children.length>this.swipeThreshold||!this.ellipsis},navStyle:function(){return{borderColor:this.color,background:this.background}},currentName:function(){var t=this.children[this.currentIndex];if(t)return t.computedName},scrollOffset:function(){return this.sticky?+this.offsetTop+this.tabHeight:0}},watch:{color:"setLine",active:function(t){t!==this.currentName&&this.setCurrentIndexByName(t)},children:function(){var t=this;this.setCurrentIndexByName(this.currentName||this.active),this.setLine(),this.$nextTick((function(){t.scrollIntoView(!0)}))},currentIndex:function(){this.scrollIntoView(),this.setLine(),this.stickyFixed&&!this.scrollspy&&Object(c["g"])(Math.ceil(Object(c["a"])(this.$el)-this.offsetTop))},scrollspy:function(t){t?Object(f["b"])(this.scroller,"scroll",this.onScroll,!0):Object(f["a"])(this.scroller,"scroll",this.onScroll)}},mounted:function(){this.init()},activated:function(){this.init(),this.setLine()},methods:{resize:function(){this.setLine()},init:function(){var t=this;this.$nextTick((function(){t.inited=!0,t.tabHeight=Object(c["e"])(t.$refs.wrap),t.scrollIntoView(!0)}))},setLine:function(){var t=this,e=this.inited;this.$nextTick((function(){var i=t.$refs.titles;if(i&&i[t.currentIndex]&&"line"===t.type&&!Object(d["a"])(t.$el)){var n=i[t.currentIndex].$el,r=t.lineWidth,a=t.lineHeight,c=Object(o["b"])(r)?r:n.offsetWidth/2,l=n.offsetLeft+n.offsetWidth/2,u={width:Object(s["a"])(c),backgroundColor:t.color,transform:"translateX("+l+"px) translateX(-50%)"};if(e&&(u.transitionDuration=t.duration+"s"),Object(o["b"])(a)){var h=Object(s["a"])(a);u.height=h,u.borderRadius=h}t.lineStyle=u}}))},setCurrentIndexByName:function(t){var e=this.children.filter((function(e){return e.computedName===t})),i=(this.children[0]||{}).index||0;this.setCurrentIndex(e.length?e[0].index:i)},setCurrentIndex:function(t){if(t=this.findAvailableTab(t),Object(o["b"])(t)&&t!==this.currentIndex){var e=null!==this.currentIndex;this.currentIndex=t,this.$emit("input",this.currentName),e&&this.$emit("change",this.currentName,this.children[t].title)}},findAvailableTab:function(t){var e=t<this.currentIndex?-1:1;while(t>=0&&t<this.children.length){if(!this.children[t].disabled)return t;t+=e}},onClick:function(t){var e=this.children[t],i=e.title,n=e.disabled,r=e.computedName;n?this.$emit("disabled",r,i):(this.setCurrentIndex(t),this.scrollToCurrentContent(),this.$emit("click",r,i))},scrollIntoView:function(t){var e=this.$refs.titles;if(this.scrollable&&e&&e[this.currentIndex]){var i=this.$refs.nav,n=e[this.currentIndex].$el,r=n.offsetLeft-(i.offsetWidth-n.offsetWidth)/2;l(i,r,t?0:+this.duration)}},onSticktScroll:function(t){this.stickyFixed=t.isFixed,this.$emit("scroll",t)},scrollToCurrentContent:function(){var t=this;if(this.scrollspy){var e=this.children[this.currentIndex],i=null==e?void 0:e.$el;if(i){var n=Object(c["a"])(i,this.scroller)-this.scrollOffset;this.lockScroll=!0,u(this.scroller,n,+this.duration,(function(){t.lockScroll=!1}))}}},onScroll:function(){if(this.scrollspy&&!this.lockScroll){var t=this.getCurrentIndexOnScroll();this.setCurrentIndex(t)}},getCurrentIndexOnScroll:function(){for(var t=this.children,e=0;e<t.length;e++){var i=Object(c["f"])(t[e].$el);if(i>this.scrollOffset)return 0===e?0:e-1}return t.length-1}},render:function(){var t,e=this,i=arguments[0],n=this.type,r=this.ellipsis,s=this.animated,a=this.scrollable,c=this.children.map((function(t,s){return i(x,{ref:"titles",refInFor:!0,attrs:{type:n,dot:t.dot,info:Object(o["b"])(t.badge)?t.badge:t.info,title:t.title,color:e.color,isActive:s===e.currentIndex,ellipsis:r,disabled:t.disabled,scrollable:a,activeColor:e.titleActiveColor,inactiveColor:e.titleInactiveColor,swipeThreshold:e.swipeThreshold},style:t.titleStyle,scopedSlots:{default:function(){return t.slots("title")}},on:{click:function(){e.onClick(s),Object(h["b"])(t.$router,t)}}})})),l=i("div",{ref:"wrap",class:[B("wrap",{scrollable:a}),(t={},t[p["e"]]="line"===n&&this.border,t)]},[i("div",{ref:"nav",attrs:{role:"tablist"},class:B("nav",[n]),style:this.navStyle},[this.slots("nav-left"),c,"line"===n&&i("div",{class:B("line"),style:this.lineStyle}),this.slots("nav-right")])]);return i("div",{class:B([n])},[this.sticky?i(k,{attrs:{container:this.$el,offsetTop:this.offsetTop},on:{scroll:this.onSticktScroll}},[l]):l,i(A,{attrs:{count:this.children.length,animated:s,duration:this.duration,swipeable:this.swipeable,currentIndex:this.currentIndex},on:{change:this.setCurrentIndex}},[this.slots()])])}})},"2a15":function(t,e,i){"use strict";i.r(e);var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("section",{staticClass:"sample"},[i("Header",{attrs:{title:t.title,meaushow:t.meaushow,bgcolor:t.bgcolor}}),i("van-popup",{model:{value:t.show,callback:function(e){t.show=e},expression:"show"}},[i("div",{staticStyle:{padding:"30px 0"}},[i("p",{staticClass:"text",staticStyle:{"font-size":"16px","text-align":"center","font-weight":"bold","padding-bottom":"20px",color:"#333333","margin-top":"30%"}},[t._v("样片活动已经结束了哦,去看看其他活动吧")]),i("a",{staticStyle:{display:"block","border-radius":"5px",margin:"0 auto",width:"110px","text-align":"center",color:"#fff","font-size":"14px",height:"40px","line-height":"40px",background:"#0073c5"},attrs:{href:"https://m.ichunt.com/v3/activity/activityhz.html"}},[t._v("去看看")])])]),t._e()],1)},r=[],o=(i("5ab2"),i("6d57"),i("e44b"),i("e10e"),i("5f54"),i("9bef")),s=i("0261"),a=i("9f3a"),c=i("57af"),l=i("166e"),u=i("365c"),h=i("4260"),d=i("1292"),f=i("2969"),p=i("b1d0"),v=i("0a68"),b=i("2413"),g=i("78cd"),m=i("0aad"),y=i("0092");function w(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function x(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?w(Object(i),!0).forEach((function(e){Object(o["a"])(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):w(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}s["a"].use(d["a"]).use(f["a"]).use(p["a"]).use(v["a"]).use(b["a"]).use(g["a"]).use(m["a"]);var O={name:"sample",data:function(){return{show:!0,bannerHeight:173,title:"猎芯网-自营样片",meaushow:!0,bgcolor:"#fafafa",color:"#1080d0",defaultcolor:"#333",swipeThreshold:4,active:0,getPop:!1,getPops:!1,quota:"",quotaNum:"",loadingYp:!1,applyCount:0,inviteCount:0,p:1,classId:"",fxType:0,layer:!1,type:"",sample_class_id:"",brand_id:{},packing:{},encap:{},attrs:{},curr:!1,id:[],shareUrl:window.location.origin+"/v3/samplereg?uid="+h["a"].getCookie("Yo4teW_uid")}},computed:x({},Object(a["c"])({aggSample:function(t){return t.sample.aggSample},ziYingIndex:function(t){return t.sample.ziYingIndex},aggs:function(t){return t.sample.aggs},goodList:function(t){return t.sample.goodList},loading:function(t){return t.sample.loading},finished:function(t){return t.sample.finished},smaple_class_id:function(t){return t.sample.smaple_class_id},getsamplebanner:function(t){return t.sample.getsamplebanner}})),watch:{loading:function(t){this.loadingYp=t},smaple_class_id:function(t){t&&this.$store.dispatch({type:"ziYingIndex",params:{"sample_class_id/eq":t,p:this.p}})}},beforeCreate:function(){if(!/Android|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent)){var t="";for(var e in this.$route.query)t+=e+"="+this.$route.query[e]+"&";switch(t=t.slice(0,-1),window.location.hostname){case"m.liexin.com":window.location.href=t?"http://www.liexin.com/v3/sample?"+t:"http://www.liexin.com/v3/sample";break;default:window.location.href=window.location.origin+(t?"/v3/sample?"+t:"/v3/sample");break}}},created:function(){setTimeout((function(){window.location.href="https://www.ichunt.com/v3/activity/activityhz.html"}),5e3)},methods:{judgeLogin:function(){getCookie("Yo4teW_uid")?this.getCount():this.fxType=3},getGoodList:function(){this.$store.dispatch({type:"getGoodList",data:{p:this.p,class_id:this.classId}})},onClick:function(t){this.sample_class_id=t,this.layer=!this.layer,this.getAggData(t)},changeTab:function(t){this.layer=!1,this.sample_class_id=t,this.$store.dispatch({type:"ziYingIndex",params:{"sample_class_id/eq":t,p:this.p}})},onLoad:function(){var t=this;this.p++;var e=Object.assign({},{p:this.p},{"sample_class_id/eq":this.sample_class_id||this.smaple_class_id},this.brand_id,this.packing,this.encap,this.attrs);setTimeout((function(){t.$store.dispatch({type:"ziYingIndex",params:e})}),100)},getuserf:function(){this.getPop=!1},getAggData:function(t){var e=Object.assign({},{reset:!0,"sample_class_id/eq":t});this.id=[],this.brand_id={},this.packing={},this.encap={},this.attrs={},this.$store.dispatch(Object(o["a"])({type:"aggs",params:e},"params",e))},submit:function(){var t=Object.assign({},{"sample_class_id/eq":this.sample_class_id},this.brand_id,this.packing,this.encap,this.attrs);this.$store.dispatch({type:"ziYingIndex",params:t}),this.layer=!1},canel:function(){var t=Object.assign({},{reset:!0,"sample_class_id/eq":this.sample_class_id});this.id=[],this.brand_id={},this.packing={},this.encap={},this.attrs={},this.$store.dispatch(Object(o["a"])({type:"aggs",params:t},"params",t))},screenFn:function(t,e,i){if("brand_id"==e)this.brand_id={"brand_id/condition":t},i&&(this.brand_id={});else if("packing"==e)this.packing={"packing/condition":t},i&&(this.packing={});else if("encap"==e)this.encap={"encap/condition":t},i&&(this.encap={});else{var n={};n[e]=[t],this.attrs={"attrs/nested":JSON.stringify(n)},i&&(this.attrs={})}this.id.push(t);var r=Object.assign({},{"sample_class_id/eq":this.sample_class_id},this.brand_id,this.packing,this.encap,this.attrs,{id:this.id.join(",")});this.$store.dispatch({type:"aggs",params:r})},getCount:function(){var t=this;u["c"].getUserSampleInfo().then((function(e){var i=e.data;0==i.err_code?(t.applyCount=i.data.apply_count||0,t.inviteCount=i.data.invite_count||0,0==t.inviteCount?t.fxType=2:t.fxType=1):"11012"==i.err_code&&(window.location.href="/v3/login?referer="+encodeURIComponent(window.location.href))})).catch((function(t){}))},yaoqing:function(t){var e=h["a"].isLogin();if(1==e){var i=h["a"].aggxde(t.stock);0!=this.applyCount?i?1*this.applyCount<1*t.quota?(this.getPops=!0,this.quota=t.quota,this.quotaNum=1*t.quota-1*this.applyCount):this.$router.push({path:"/sampleapply",query:{id:t.goods_id}}):Object(v["a"])("样品库存不足"):this.getPop=!0}else window.location.href="/v3/login?referer="+encodeURIComponent(window.location.href)}},components:{Header:c["a"],wxShare:l["a"],"van-list":y["a"]}},S=O,j=(i("16a8"),i("9ca4")),k=Object(j["a"])(S,n,r,!1,null,"0fa81a12",null);e["default"]=k.exports},5490:function(t,e,i){"use strict";i("9a0e")("link",(function(t){return function(e){return t(this,"a","href",e)}}))},"5a2a":function(t,e,i){
/*!
* Vue-Lazyload.js v1.2.3
* (c) 2018 Awe <hilongjw@gmail.com>
* Released under the MIT License.
*/
!function(e,i){t.exports=i()}(0,(function(){"use strict";function t(t){return t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}function e(t){t=t||{};var e=arguments.length,r=0;if(1===e)return t;for(;++r<e;){var o=arguments[r];m(t)&&(t=o),n(o)&&i(t,o)}return t}function i(t,i){for(var o in y(t,i),i)if("__proto__"!==o&&r(i,o)){var s=i[o];n(s)?("undefined"===x(t[o])&&"function"===x(s)&&(t[o]=s),t[o]=e(t[o]||{},s)):t[o]=s}return t}function n(t){return"object"===x(t)||"function"===x(t)}function r(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function o(t,e){if(t.length){var i=t.indexOf(e);return i>-1?t.splice(i,1):void 0}}function s(t,e){for(var i=!1,n=0,r=t.length;n<r;n++)if(e(t[n])){i=!0;break}return i}function a(t,e){if("IMG"===t.tagName&&t.getAttribute("data-srcset")){var i=t.getAttribute("data-srcset"),n=[],r=t.parentNode,o=r.offsetWidth*e,s=void 0,a=void 0,c=void 0;i=i.trim().split(","),i.map((function(t){t=t.trim(),s=t.lastIndexOf(" "),-1===s?(a=t,c=999998):(a=t.substr(0,s),c=parseInt(t.substr(s+1,t.length-s-2),10)),n.push([c,a])})),n.sort((function(t,e){if(t[0]<e[0])return-1;if(t[0]>e[0])return 1;if(t[0]===e[0]){if(-1!==e[1].indexOf(".webp",e[1].length-5))return 1;if(-1!==t[1].indexOf(".webp",t[1].length-5))return-1}return 0}));for(var l="",u=void 0,h=n.length,d=0;d<h;d++)if(u=n[d],u[0]>=o){l=u[1];break}return l}}function c(t,e){for(var i=void 0,n=0,r=t.length;n<r;n++)if(e(t[n])){i=t[n];break}return i}function l(){if(!S)return!1;var t=!0,e=document;try{var i=e.createElement("object");i.type="image/webp",i.style.visibility="hidden",i.innerHTML="!",e.body.appendChild(i),t=!i.offsetWidth,e.body.removeChild(i)}catch(e){t=!1}return t}function u(t,e){var i=null,n=0;return function(){if(!i){var r=Date.now()-n,o=this,s=arguments,a=function(){n=Date.now(),i=!1,t.apply(o,s)};r>=e?a():i=setTimeout(a,e)}}}function h(t){return null!==t&&"object"===(void 0===t?"undefined":v(t))}function d(t){if(!(t instanceof Object))return[];if(Object.keys)return Object.keys(t);var e=[];for(var i in t)t.hasOwnProperty(i)&&e.push(i);return e}function f(t){for(var e=t.length,i=[],n=0;n<e;n++)i.push(t[n]);return i}function p(){}var v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},b=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},g=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),m=function(t){return null==t||"function"!=typeof t&&"object"!==(void 0===t?"undefined":v(t))},y=function(t,e){if(null===t||void 0===t)throw new TypeError("expected first argument to be an object.");if(void 0===e||"undefined"==typeof Symbol)return t;if("function"!=typeof Object.getOwnPropertySymbols)return t;for(var i=Object.prototype.propertyIsEnumerable,n=Object(t),r=arguments.length,o=0;++o<r;)for(var s=Object(arguments[o]),a=Object.getOwnPropertySymbols(s),c=0;c<a.length;c++){var l=a[c];i.call(s,l)&&(n[l]=s[l])}return n},w=Object.prototype.toString,x=function(e){var i=void 0===e?"undefined":v(e);return"undefined"===i?"undefined":null===e?"null":!0===e||!1===e||e instanceof Boolean?"boolean":"string"===i||e instanceof String?"string":"number"===i||e instanceof Number?"number":"function"===i||e instanceof Function?void 0!==e.constructor.name&&"Generator"===e.constructor.name.slice(0,9)?"generatorfunction":"function":void 0!==Array.isArray&&Array.isArray(e)?"array":e instanceof RegExp?"regexp":e instanceof Date?"date":(i=w.call(e),"[object RegExp]"===i?"regexp":"[object Date]"===i?"date":"[object Arguments]"===i?"arguments":"[object Error]"===i?"error":"[object Promise]"===i?"promise":t(e)?"buffer":"[object Set]"===i?"set":"[object WeakSet]"===i?"weakset":"[object Map]"===i?"map":"[object WeakMap]"===i?"weakmap":"[object Symbol]"===i?"symbol":"[object Map Iterator]"===i?"mapiterator":"[object Set Iterator]"===i?"setiterator":"[object String Iterator]"===i?"stringiterator":"[object Array Iterator]"===i?"arrayiterator":"[object Int8Array]"===i?"int8array":"[object Uint8Array]"===i?"uint8array":"[object Uint8ClampedArray]"===i?"uint8clampedarray":"[object Int16Array]"===i?"int16array":"[object Uint16Array]"===i?"uint16array":"[object Int32Array]"===i?"int32array":"[object Uint32Array]"===i?"uint32array":"[object Float32Array]"===i?"float32array":"[object Float64Array]"===i?"float64array":"object")},O=e,S="undefined"!=typeof window,j=S&&"IntersectionObserver"in window,k={event:"event",observer:"observer"},_=function(){function t(t,e){e=e||{bubbles:!1,cancelable:!1,detail:void 0};var i=document.createEvent("CustomEvent");return i.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),i}if(S)return"function"==typeof window.CustomEvent?window.CustomEvent:(t.prototype=window.Event.prototype,t)}(),T=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return S&&window.devicePixelRatio||t},I=function(){if(S){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("test",null,e)}catch(t){}return t}}(),C={on:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];I?t.addEventListener(e,i,{capture:n,passive:!0}):t.addEventListener(e,i,n)},off:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];t.removeEventListener(e,i,n)}},$=function(t,e,i){var n=new Image;n.src=t.src,n.onload=function(){e({naturalHeight:n.naturalHeight,naturalWidth:n.naturalWidth,src:n.src})},n.onerror=function(t){i(t)}},L=function(t,e){return"undefined"!=typeof getComputedStyle?getComputedStyle(t,null).getPropertyValue(e):t.style[e]},A=function(t){return L(t,"overflow")+L(t,"overflow-y")+L(t,"overflow-x")},z=function(t){if(S){if(!(t instanceof HTMLElement))return window;for(var e=t;e&&e!==document.body&&e!==document.documentElement&&e.parentNode;){if(/(scroll|auto)/.test(A(e)))return e;e=e.parentNode}return window}},E={},B=function(){function t(e){var i=e.el,n=e.src,r=e.error,o=e.loading,s=e.bindType,a=e.$parent,c=e.options,l=e.elRenderer;b(this,t),this.el=i,this.src=n,this.error=r,this.loading=o,this.bindType=s,this.attempt=0,this.naturalHeight=0,this.naturalWidth=0,this.options=c,this.rect=null,this.$parent=a,this.elRenderer=l,this.performanceData={init:Date.now(),loadStart:0,loadEnd:0},this.filter(),this.initState(),this.render("loading",!1)}return g(t,[{key:"initState",value:function(){this.el.dataset.src=this.src,this.state={error:!1,loaded:!1,rendered:!1}}},{key:"record",value:function(t){this.performanceData[t]=Date.now()}},{key:"update",value:function(t){var e=t.src,i=t.loading,n=t.error,r=this.src;this.src=e,this.loading=i,this.error=n,this.filter(),r!==this.src&&(this.attempt=0,this.initState())}},{key:"getRect",value:function(){this.rect=this.el.getBoundingClientRect()}},{key:"checkInView",value:function(){return this.getRect(),this.rect.top<window.innerHeight*this.options.preLoad&&this.rect.bottom>this.options.preLoadTop&&this.rect.left<window.innerWidth*this.options.preLoad&&this.rect.right>0}},{key:"filter",value:function(){var t=this;d(this.options.filter).map((function(e){t.options.filter[e](t,t.options)}))}},{key:"renderLoading",value:function(t){var e=this;$({src:this.loading},(function(i){e.render("loading",!1),t()}),(function(){t(),e.options.silent}))}},{key:"load",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p;return this.attempt>this.options.attempt-1&&this.state.error?(this.options.silent,void e()):this.state.loaded||E[this.src]?(this.state.loaded=!0,e(),this.render("loaded",!0)):void this.renderLoading((function(){t.attempt++,t.record("loadStart"),$({src:t.src},(function(i){t.naturalHeight=i.naturalHeight,t.naturalWidth=i.naturalWidth,t.state.loaded=!0,t.state.error=!1,t.record("loadEnd"),t.render("loaded",!1),E[t.src]=1,e()}),(function(e){t.options.silent,t.state.error=!0,t.state.loaded=!1,t.render("error",!1)}))}))}},{key:"render",value:function(t,e){this.elRenderer(this,t,e)}},{key:"performance",value:function(){var t="loading",e=0;return this.state.loaded&&(t="loaded",e=(this.performanceData.loadEnd-this.performanceData.loadStart)/1e3),this.state.error&&(t="error"),{src:this.src,state:t,time:e}}},{key:"destroy",value:function(){this.el=null,this.src=null,this.error=null,this.loading=null,this.bindType=null,this.attempt=0}}]),t}(),P="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",N=["scroll","wheel","mousewheel","resize","animationend","transitionend","touchmove"],M={rootMargin:"0px",threshold:0},D=function(t){return function(){function e(t){var i=t.preLoad,n=t.error,r=t.throttleWait,o=t.preLoadTop,s=t.dispatchEvent,a=t.loading,c=t.attempt,h=t.silent,d=void 0===h||h,f=t.scale,p=t.listenEvents,v=(t.hasbind,t.filter),g=t.adapter,m=t.observer,y=t.observerOptions;b(this,e),this.version="1.2.3",this.mode=k.event,this.ListenerQueue=[],this.TargetIndex=0,this.TargetQueue=[],this.options={silent:d,dispatchEvent:!!s,throttleWait:r||200,preLoad:i||1.3,preLoadTop:o||0,error:n||P,loading:a||P,attempt:c||3,scale:f||T(f),ListenEvents:p||N,hasbind:!1,supportWebp:l(),filter:v||{},adapter:g||{},observer:!!m,observerOptions:y||M},this._initEvent(),this.lazyLoadHandler=u(this._lazyLoadHandler.bind(this),this.options.throttleWait),this.setMode(this.options.observer?k.observer:k.event)}return g(e,[{key:"config",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};O(this.options,t)}},{key:"performance",value:function(){var t=[];return this.ListenerQueue.map((function(e){t.push(e.performance())})),t}},{key:"addLazyBox",value:function(t){this.ListenerQueue.push(t),S&&(this._addListenerTarget(window),this._observer&&this._observer.observe(t.el),t.$el&&t.$el.parentNode&&this._addListenerTarget(t.$el.parentNode))}},{key:"add",value:function(e,i,n){var r=this;if(s(this.ListenerQueue,(function(t){return t.el===e})))return this.update(e,i),t.nextTick(this.lazyLoadHandler);var o=this._valueFormatter(i.value),c=o.src,l=o.loading,u=o.error;t.nextTick((function(){c=a(e,r.options.scale)||c,r._observer&&r._observer.observe(e);var o=Object.keys(i.modifiers)[0],s=void 0;o&&(s=n.context.$refs[o],s=s?s.$el||s:document.getElementById(o)),s||(s=z(e));var h=new B({bindType:i.arg,$parent:s,el:e,loading:l,error:u,src:c,elRenderer:r._elRenderer.bind(r),options:r.options});r.ListenerQueue.push(h),S&&(r._addListenerTarget(window),r._addListenerTarget(s)),r.lazyLoadHandler(),t.nextTick((function(){return r.lazyLoadHandler()}))}))}},{key:"update",value:function(e,i){var n=this,r=this._valueFormatter(i.value),o=r.src,s=r.loading,l=r.error;o=a(e,this.options.scale)||o;var u=c(this.ListenerQueue,(function(t){return t.el===e}));u&&u.update({src:o,loading:s,error:l}),this._observer&&(this._observer.unobserve(e),this._observer.observe(e)),this.lazyLoadHandler(),t.nextTick((function(){return n.lazyLoadHandler()}))}},{key:"remove",value:function(t){if(t){this._observer&&this._observer.unobserve(t);var e=c(this.ListenerQueue,(function(e){return e.el===t}));e&&(this._removeListenerTarget(e.$parent),this._removeListenerTarget(window),o(this.ListenerQueue,e)&&e.destroy())}}},{key:"removeComponent",value:function(t){t&&(o(this.ListenerQueue,t),this._observer&&this._observer.unobserve(t.el),t.$parent&&t.$el.parentNode&&this._removeListenerTarget(t.$el.parentNode),this._removeListenerTarget(window))}},{key:"setMode",value:function(t){var e=this;j||t!==k.observer||(t=k.event),this.mode=t,t===k.event?(this._observer&&(this.ListenerQueue.forEach((function(t){e._observer.unobserve(t.el)})),this._observer=null),this.TargetQueue.forEach((function(t){e._initListen(t.el,!0)}))):(this.TargetQueue.forEach((function(t){e._initListen(t.el,!1)})),this._initIntersectionObserver())}},{key:"_addListenerTarget",value:function(t){if(t){var e=c(this.TargetQueue,(function(e){return e.el===t}));return e?e.childrenCount++:(e={el:t,id:++this.TargetIndex,childrenCount:1,listened:!0},this.mode===k.event&&this._initListen(e.el,!0),this.TargetQueue.push(e)),this.TargetIndex}}},{key:"_removeListenerTarget",value:function(t){var e=this;this.TargetQueue.forEach((function(i,n){i.el===t&&(--i.childrenCount||(e._initListen(i.el,!1),e.TargetQueue.splice(n,1),i=null))}))}},{key:"_initListen",value:function(t,e){var i=this;this.options.ListenEvents.forEach((function(n){return C[e?"on":"off"](t,n,i.lazyLoadHandler)}))}},{key:"_initEvent",value:function(){var t=this;this.Event={listeners:{loading:[],loaded:[],error:[]}},this.$on=function(e,i){t.Event.listeners[e].push(i)},this.$once=function(e,i){function n(){r.$off(e,n),i.apply(r,arguments)}var r=t;t.$on(e,n)},this.$off=function(e,i){i?o(t.Event.listeners[e],i):t.Event.listeners[e]=[]},this.$emit=function(e,i,n){t.Event.listeners[e].forEach((function(t){return t(i,n)}))}}},{key:"_lazyLoadHandler",value:function(){var t=this;this.ListenerQueue.forEach((function(e,i){e.state.loaded||e.checkInView()&&e.load((function(){!e.error&&e.loaded&&t.ListenerQueue.splice(i,1)}))}))}},{key:"_initIntersectionObserver",value:function(){var t=this;j&&(this._observer=new IntersectionObserver(this._observerHandler.bind(this),this.options.observerOptions),this.ListenerQueue.length&&this.ListenerQueue.forEach((function(e){t._observer.observe(e.el)})))}},{key:"_observerHandler",value:function(t,e){var i=this;t.forEach((function(t){t.isIntersecting&&i.ListenerQueue.forEach((function(e){if(e.el===t.target){if(e.state.loaded)return i._observer.unobserve(e.el);e.load()}}))}))}},{key:"_elRenderer",value:function(t,e,i){if(t.el){var n=t.el,r=t.bindType,o=void 0;switch(e){case"loading":o=t.loading;break;case"error":o=t.error;break;default:o=t.src}if(r?n.style[r]='url("'+o+'")':n.getAttribute("src")!==o&&n.setAttribute("src",o),n.setAttribute("lazy",e),this.$emit(e,t,i),this.options.adapter[e]&&this.options.adapter[e](t,this.options),this.options.dispatchEvent){var s=new _(e,{detail:t});n.dispatchEvent(s)}}}},{key:"_valueFormatter",value:function(t){var e=t,i=this.options.loading,n=this.options.error;return h(t)&&(t.src||this.options.silent,e=t.src,i=t.loading||this.options.loading,n=t.error||this.options.error),{src:e,loading:i,error:n}}}]),e}()},H=function(t){return{props:{tag:{type:String,default:"div"}},render:function(t){return!1===this.show?t(this.tag):t(this.tag,null,this.$slots.default)},data:function(){return{el:null,state:{loaded:!1},rect:{},show:!1}},mounted:function(){this.el=this.$el,t.addLazyBox(this),t.lazyLoadHandler()},beforeDestroy:function(){t.removeComponent(this)},methods:{getRect:function(){this.rect=this.$el.getBoundingClientRect()},checkInView:function(){return this.getRect(),S&&this.rect.top<window.innerHeight*t.options.preLoad&&this.rect.bottom>0&&this.rect.left<window.innerWidth*t.options.preLoad&&this.rect.right>0},load:function(){this.show=!0,this.state.loaded=!0,this.$emit("show",this)}}}},R=function(){function t(e){var i=e.lazy;b(this,t),this.lazy=i,i.lazyContainerMananger=this,this._queue=[]}return g(t,[{key:"bind",value:function(t,e,i){var n=new W({el:t,binding:e,vnode:i,lazy:this.lazy});this._queue.push(n)}},{key:"update",value:function(t,e,i){var n=c(this._queue,(function(e){return e.el===t}));n&&n.update({el:t,binding:e,vnode:i})}},{key:"unbind",value:function(t,e,i){var n=c(this._queue,(function(e){return e.el===t}));n&&(n.clear(),o(this._queue,n))}}]),t}(),Q={selector:"img"},W=function(){function t(e){var i=e.el,n=e.binding,r=e.vnode,o=e.lazy;b(this,t),this.el=null,this.vnode=r,this.binding=n,this.options={},this.lazy=o,this._queue=[],this.update({el:i,binding:n})}return g(t,[{key:"update",value:function(t){var e=this,i=t.el,n=t.binding;this.el=i,this.options=O({},Q,n.value),this.getImgs().forEach((function(t){e.lazy.add(t,O({},e.binding,{value:{src:t.dataset.src,error:t.dataset.error,loading:t.dataset.loading}}),e.vnode)}))}},{key:"getImgs",value:function(){return f(this.el.querySelectorAll(this.options.selector))}},{key:"clear",value:function(){var t=this;this.getImgs().forEach((function(e){return t.lazy.remove(e)})),this.vnode=null,this.binding=null,this.lazy=null}}]),t}();return{install:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=D(t),n=new i(e),r=new R({lazy:n}),o="2"===t.version.split(".")[0];t.prototype.$Lazyload=n,e.lazyComponent&&t.component("lazy-component",H(n)),o?(t.directive("lazy",{bind:n.add.bind(n),update:n.update.bind(n),componentUpdated:n.lazyLoadHandler.bind(n),unbind:n.remove.bind(n)}),t.directive("lazy-container",{bind:r.bind.bind(r),update:r.update.bind(r),unbind:r.unbind.bind(r)})):(t.directive("lazy",{bind:n.lazyLoadHandler.bind(n),update:function(t,e){O(this.vm.$refs,this.vm.$els),n.add(this.el,{modifiers:this.modifiers||{},arg:this.arg,value:t,oldValue:e},{context:this.vm})},unbind:function(){n.remove(this.el)}}),t.directive("lazy-container",{update:function(t,e){r.update(this.el,{modifiers:this.modifiers||{},arg:this.arg,value:t,oldValue:e},{context:this.vm})},unbind:function(){r.unbind(this.el)}}))}}}))},"78cd":function(t,e,i){"use strict";var n=i("1bb4"),r=i("292e"),o=i("cc52"),s=Object(r["a"])("swipe-item"),a=s[0],c=s[1];e["a"]=a({mixins:[Object(o["a"])("vanSwipe")],data:function(){return{offset:0,mounted:!1}},mounted:function(){var t=this;this.$nextTick((function(){t.mounted=!0}))},computed:{style:function(){var t={},e=this.parent,i=e.size,n=e.vertical;return t[n?"height":"width"]=i+"px",this.offset&&(t.transform="translate"+(n?"Y":"X")+"("+this.offset+"px)"),t},shouldRender:function(){var t=this.index,e=this.parent,i=this.mounted;if(!e.lazyRender)return!0;if(!i)return!1;var n=e.activeIndicator,r=e.count-1,o=0===n?r:n-1,s=n===r?0:n+1;return t===n||t===o||t===s}},render:function(){var t=arguments[0];return t("div",{class:c(),style:this.style,on:Object(n["a"])({},this.$listeners)},[this.shouldRender&&this.slots()])}})},"7be2":function(t,e,i){"use strict";i.d(e,"g",(function(){return n})),i.d(e,"d",(function(){return o})),i.d(e,"b",(function(){return s})),i.d(e,"a",(function(){return a})),i.d(e,"c",(function(){return c})),i.d(e,"e",(function(){return l})),i.d(e,"f",(function(){return u}));var n="#fff",r="van-hairline",o=r+"--top",s=r+"--left",a=r+"--bottom",c=r+"--surround",l=r+"--top-bottom",u=r+"-unset--top-bottom"},"9a0e":function(t,e,i){var n=i("e46b"),r=i("238a"),o=i("f6b4"),s=/"/g,a=function(t,e,i,n){var r=String(o(t)),a="<"+e;return""!==i&&(a+=" "+i+'="'+String(n).replace(s,"&quot;")+'"'),a+">"+r+"</"+e+">"};t.exports=function(t,e){var i={};i[t]=e(a),n(n.P+n.F*r((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3})),"String",i)}},a571:function(t,e,i){},b1d0:function(t,e,i){"use strict";var n=i("5a2a"),r=i.n(n);e["a"]=r.a},b76a:function(t,e,i){"use strict";(function(t){i.d(e,"c",(function(){return l})),i.d(e,"b",(function(){return u})),i.d(e,"a",(function(){return h}));var n=i("6f1a"),r=Date.now();function o(t){var e=Date.now(),i=Math.max(0,16-(e-r)),n=setTimeout(t,i);return r=e+i,n}var s=n["f"]?t:window,a=s.requestAnimationFrame||o,c=s.cancelAnimationFrame||s.clearTimeout;function l(t){return a.call(s,t)}function u(t){l((function(){l(t)}))}function h(t){c.call(s,t)}}).call(this,i("9edd"))},cc52:function(t,e,i){"use strict";function n(t){var e=[];function i(t){t.forEach((function(t){e.push(t),t.componentInstance&&i(t.componentInstance.$children.map((function(t){return t.$vnode}))),t.children&&i(t.children)}))}return i(t),e}function r(t,e){var i=e.$vnode.componentOptions;if(i&&i.children){var r=n(i.children);t.sort((function(t,e){return r.indexOf(t.$vnode)-r.indexOf(e.$vnode)}))}}function o(t,e){var i,n;void 0===e&&(e={});var o=e.indexKey||"index";return{inject:(i={},i[t]={default:null},i),computed:(n={parent:function(){return this.disableBindRelation?null:this[t]}},n[o]=function(){return this.bindRelation(),this.parent?this.parent.children.indexOf(this):null},n),mounted:function(){this.bindRelation()},beforeDestroy:function(){var t=this;this.parent&&(this.parent.children=this.parent.children.filter((function(e){return e!==t})))},methods:{bindRelation:function(){if(this.parent&&-1===this.parent.children.indexOf(this)){var t=[].concat(this.parent.children,[this]);r(t,this.parent),this.parent.children=t}}}}}function s(t){return{provide:function(){var e;return e={},e[t]=this,e},data:function(){return{children:[]}}}}i.d(e,"a",(function(){return o})),i.d(e,"b",(function(){return s}))},ee4e:function(t,e,i){"use strict";function n(t){var e=window.getComputedStyle(t),i="none"===e.display,n=null===t.offsetParent&&"fixed"!==e.position;return i||n}i.d(e,"a",(function(){return n}))}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-f38b08f0"],{"0092":function(t,e,i){"use strict";var n=i("292e"),r=i("ee4e"),s=i("4382"),o=i("40c0"),a=i("1132"),c=Object(n["a"])("list"),l=c[0],u=c[1],h=c[2];e["a"]=l({mixins:[Object(o["a"])((function(t){this.scroller||(this.scroller=Object(s["d"])(this.$el)),t(this.scroller,"scroll",this.check)}))],model:{prop:"loading"},props:{error:Boolean,loading:Boolean,finished:Boolean,errorText:String,loadingText:String,finishedText:String,immediateCheck:{type:Boolean,default:!0},offset:{type:[Number,String],default:300},direction:{type:String,default:"down"}},data:function(){return{innerLoading:this.loading}},updated:function(){this.innerLoading=this.loading},mounted:function(){this.immediateCheck&&this.check()},watch:{loading:"check",finished:"check"},methods:{check:function(){var t=this;this.$nextTick((function(){if(!(t.innerLoading||t.finished||t.error)){var e,i=t.$el,n=t.scroller,s=t.offset,o=t.direction;e=n.getBoundingClientRect?n.getBoundingClientRect():{top:0,bottom:n.innerHeight};var a=e.bottom-e.top;if(!a||Object(r["a"])(i))return!1;var c=!1,l=t.$refs.placeholder.getBoundingClientRect();c="up"===o?e.top-l.top<=s:l.bottom-e.bottom<=s,c&&(t.innerLoading=!0,t.$emit("input",!0),t.$emit("load"))}}))},clickErrorText:function(){this.$emit("update:error",!1),this.check()},genLoading:function(){var t=this.$createElement;if(this.innerLoading&&!this.finished)return t("div",{class:u("loading"),key:"loading"},[this.slots("loading")||t(a["a"],{attrs:{size:"16"}},[this.loadingText||h("loading")])])},genFinishedText:function(){var t=this.$createElement;if(this.finished){var e=this.slots("finished")||this.finishedText;if(e)return t("div",{class:u("finished-text")},[e])}},genErrorText:function(){var t=this.$createElement;if(this.error){var e=this.slots("error")||this.errorText;if(e)return t("div",{on:{click:this.clickErrorText},class:u("error-text")},[e])}}},render:function(){var t=arguments[0],e=t("div",{ref:"placeholder",class:u("placeholder")});return t("div",{class:u(),attrs:{role:"feed","aria-busy":this.innerLoading}},["down"===this.direction?this.slots():e,this.genLoading(),this.genFinishedText(),this.genErrorText(),"up"===this.direction?this.slots():e])}})},"0aad":function(t,e,i){"use strict";var n=i("292e"),r=i("6f1a"),s=i("fbbe"),o=i("e10b"),a=Object(n["a"])("popup"),c=a[0],l=a[1];e["a"]=c({mixins:[Object(s["a"])()],props:{round:Boolean,duration:[Number,String],closeable:Boolean,transition:String,safeAreaInsetBottom:Boolean,closeIcon:{type:String,default:"cross"},closeIconPosition:{type:String,default:"top-right"},position:{type:String,default:"center"},overlay:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0}},beforeCreate:function(){var t=this,e=function(e){return function(i){return t.$emit(e,i)}};this.onClick=e("click"),this.onOpened=e("opened"),this.onClosed=e("closed")},render:function(){var t,e=arguments[0];if(this.shouldRender){var i=this.round,n=this.position,s=this.duration,a="center"===n,c=this.transition||(a?"van-fade":"van-popup-slide-"+n),u={};if(Object(r["b"])(s)){var h=a?"animationDuration":"transitionDuration";u[h]=s+"s"}return e("transition",{attrs:{name:c},on:{afterEnter:this.onOpened,afterLeave:this.onClosed}},[e("div",{directives:[{name:"show",value:this.value}],style:u,class:l((t={round:i},t[n]=n,t["safe-area-inset-bottom"]=this.safeAreaInsetBottom,t)),on:{click:this.onClick}},[this.slots(),this.closeable&&e(o["a"],{attrs:{role:"button",tabindex:"0",name:this.closeIcon},class:l("close-icon",this.closeIconPosition),on:{click:this.close}})])])}}})},1292:function(t,e,i){"use strict";var n=i("1bb4"),r=i("292e"),s=i("6f1a"),o=i("cc52"),a=i("39bf"),c=Object(r["a"])("tab"),l=c[0],u=c[1];e["a"]=l({mixins:[Object(o["a"])("vanTabs")],props:Object(n["a"])(Object(n["a"])({},a["c"]),{},{dot:Boolean,name:[Number,String],info:[Number,String],badge:[Number,String],title:String,titleStyle:null,disabled:Boolean}),data:function(){return{inited:!1}},computed:{computedName:function(){return Object(s["b"])(this.name)?this.name:this.index},isActive:function(){var t=this.computedName===this.parent.currentName;return t&&(this.inited=!0),t}},watch:{title:function(){this.parent.setLine()},inited:function(t){var e=this;this.parent.lazyRender&&t&&this.$nextTick((function(){e.parent.$emit("rendered",e.computedName,e.title)}))}},render:function(t){var e=this.slots,i=this.parent,n=this.isActive,r=this.inited||i.scrollspy||!i.lazyRender,s=i.scrollspy||n,o=r?e():t();return i.animated?t("div",{attrs:{role:"tabpanel","aria-hidden":!n},class:u("pane-wrapper",{inactive:!n})},[t("div",{class:u("pane")},[o])]):t("div",{directives:[{name:"show",value:s}],attrs:{role:"tabpanel"},class:u("pane")},[o])}})},"166e":function(t,e,i){"use strict";var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div")},r=[],s=(i("5ab2"),i("6d57"),i("e44b"),i("e10e"),i("9bef")),o=(i("5490"),i("9f3a")),a=i("4260");function c(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function l(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?c(Object(i),!0).forEach((function(e){Object(s["a"])(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):c(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}var u={name:"wxShare",props:{isLogin:{type:Boolean,default:!0},url:{type:String,default:window.location.href},title:{type:String,default:"好物分享给你,帮我助力,我们一起免费拿样品"},desc:{type:String,default:"在吗?拜托帮我点一下,你也能免费申请元器件样品~帮我助力 你拿样品"},link:{type:String,default:window.location.origin+"/v3/samplereg?uid="+a["a"].getCookie("Yo4teW_uid")},imgUrl:{type:String,default:"http://img.ichunt.com/images/ichunt/self_sample/apply.png"}},data:function(){return{shareObj:{title:this.title,desc:this.desc,link:this.link,imgUrl:this.imgUrl,success:function(t){},error:function(){}}}},computed:l({},Object(o["c"])({wxShareInfo:function(t){return t.common.wxShareInfo},wxShareState:function(t){return t.common.wxShareState}})),watch:{wxShareState:function(t){t&&this.share()}},created:function(){this.isLogin?a["a"].getCookie("Yo4teW_uid")&&this.$store.dispatch({type:"wxShare",current_url:location.href}):this.$store.dispatch({type:"wxShare",current_url:location.href})},methods:{share:function(){var t=this;try{setShareInfo({title:t.shareObj.title,summary:t.shareObj.title,pic:t.shareObj.imgUrl,url:t.shareObj.link,WXconfig:{swapTitleInWX:!0,appId:t.wxShareInfo.appId,timestamp:t.wxShareInfo.timestamp,nonceStr:t.wxShareInfo.nonceStr,signature:t.wxShareInfo.signature}})}catch(e){}wx.config({debug:!1,appId:t.wxShareInfo.appId,timestamp:t.wxShareInfo.timestamp,nonceStr:t.wxShareInfo.nonceStr,signature:t.wxShareInfo.signature,jsApiList:["onMenuShareTimeline","onMenuShareAppMessage","onMenuShareQQ","onMenuShareWeibo","onMenuShareQZone","updateAppMessageShareData","updateTimelineShareData"]}),wx.ready((function(){wx.checkJsApi({jsApiList:["onMenuShareTimeline","onMenuShareAppMessage","onMenuShareQQ","onMenuShareWeibo","onMenuShareQZone","updateAppMessageShareData","updateTimelineShareData"],success:function(t){}}),wx.onMenuShareTimeline(t.shareObj),wx.onMenuShareAppMessage(t.shareObj),wx.onMenuShareWeibo(t.shareObj),wx.onMenuShareQZone(t.shareObj),wx.onMenuShareQQ?wx.onMenuShareQQ(t.shareObj):wx.updateAppMessageShareData(t.shareObj),wx.updateTimelineShareData(t.shareObj)}))}}},h=u,d=i("9ca4"),f=Object(d["a"])(h,n,r,!1,null,null,null);e["a"]=f.exports},2413:function(t,e,i){"use strict";var n=i("292e"),r=i("ee4e"),s=i("d8c9"),o=i("b76a"),a=i("c7f2"),c=i("75bd"),l=i("cc52"),u=i("40c0"),h=Object(n["a"])("swipe"),d=h[0],f=h[1];e["a"]=d({mixins:[c["a"],Object(l["b"])("vanSwipe"),Object(u["a"])((function(t,e){t(window,"resize",this.resize,!0),t(window,"visibilitychange",this.onVisibilityChange),e?this.initialize():this.clear()}))],props:{width:[Number,String],height:[Number,String],autoplay:[Number,String],vertical:Boolean,lazyRender:Boolean,indicatorColor:String,loop:{type:Boolean,default:!0},duration:{type:[Number,String],default:500},touchable:{type:Boolean,default:!0},initialSwipe:{type:[Number,String],default:0},showIndicators:{type:Boolean,default:!0},stopPropagation:{type:Boolean,default:!0}},data:function(){return{rect:null,offset:0,active:0,deltaX:0,deltaY:0,swiping:!1,computedWidth:0,computedHeight:0}},watch:{children:function(){this.initialize()},initialSwipe:function(){this.initialize()},autoplay:function(t){t>0?this.autoPlay():this.clear()}},computed:{count:function(){return this.children.length},maxCount:function(){return Math.ceil(Math.abs(this.minOffset)/this.size)},delta:function(){return this.vertical?this.deltaY:this.deltaX},size:function(){return this[this.vertical?"computedHeight":"computedWidth"]},trackSize:function(){return this.count*this.size},activeIndicator:function(){return(this.active+this.count)%this.count},isCorrectDirection:function(){var t=this.vertical?"vertical":"horizontal";return this.direction===t},trackStyle:function(){var t,e=this.vertical?"height":"width",i=this.vertical?"width":"height";return t={},t[e]=this.trackSize+"px",t[i]=this[i]?this[i]+"px":"",t.transitionDuration=(this.swiping?0:this.duration)+"ms",t.transform="translate"+(this.vertical?"Y":"X")+"("+this.offset+"px)",t},indicatorStyle:function(){return{backgroundColor:this.indicatorColor}},minOffset:function(){return(this.vertical?this.rect.height:this.rect.width)-this.size*this.count}},mounted:function(){this.bindTouchEvent(this.$refs.track)},methods:{initialize:function(t){if(void 0===t&&(t=+this.initialSwipe),this.$el&&!Object(r["a"])(this.$el)){clearTimeout(this.timer);var e=this.$el.getBoundingClientRect();this.rect=e,this.swiping=!0,this.active=t,this.computedWidth=Math.round(+this.width||e.width),this.computedHeight=Math.round(+this.height||e.height),this.offset=this.getTargetOffset(t),this.children.forEach((function(t){t.offset=0})),this.autoPlay()}},resize:function(){this.initialize(this.activeIndicator)},onVisibilityChange:function(){document.hidden?this.clear():this.autoPlay()},onTouchStart:function(t){this.touchable&&(this.clear(),this.touchStartTime=Date.now(),this.touchStart(t),this.correctPosition())},onTouchMove:function(t){this.touchable&&this.swiping&&(this.touchMove(t),this.isCorrectDirection&&(Object(s["c"])(t,this.stopPropagation),this.move({offset:this.delta})))},onTouchEnd:function(){if(this.touchable&&this.swiping){var t=this.size,e=this.delta,i=Date.now()-this.touchStartTime,n=e/i,r=Math.abs(n)>.25||Math.abs(e)>t/2;if(r&&this.isCorrectDirection){var s=this.vertical?this.offsetY:this.offsetX,o=0;o=this.loop?s>0?e>0?-1:1:0:-Math[e>0?"ceil":"floor"](e/t),this.move({pace:o,emitChange:!0})}else e&&this.move({pace:0});this.swiping=!1,this.autoPlay()}},getTargetActive:function(t){var e=this.active,i=this.count,n=this.maxCount;return t?this.loop?Object(a["b"])(e+t,-1,i):Object(a["b"])(e+t,0,n):e},getTargetOffset:function(t,e){void 0===e&&(e=0);var i=t*this.size;this.loop||(i=Math.min(i,-this.minOffset));var n=Math.round(e-i);return this.loop||(n=Object(a["b"])(n,this.minOffset,0)),n},move:function(t){var e=t.pace,i=void 0===e?0:e,n=t.offset,r=void 0===n?0:n,s=t.emitChange,o=this.loop,a=this.count,c=this.active,l=this.children,u=this.trackSize,h=this.minOffset;if(!(a<=1)){var d=this.getTargetActive(i),f=this.getTargetOffset(d,r);if(o){if(l[0]&&f!==h){var p=f<h;l[0].offset=p?u:0}if(l[a-1]&&0!==f){var v=f>0;l[a-1].offset=v?-u:0}}this.active=d,this.offset=f,s&&d!==c&&this.$emit("change",this.activeIndicator)}},prev:function(){var t=this;this.correctPosition(),this.resetTouchStatus(),Object(o["b"])((function(){t.swiping=!1,t.move({pace:-1,emitChange:!0})}))},next:function(){var t=this;this.correctPosition(),this.resetTouchStatus(),Object(o["b"])((function(){t.swiping=!1,t.move({pace:1,emitChange:!0})}))},swipeTo:function(t,e){var i=this;void 0===e&&(e={}),this.correctPosition(),this.resetTouchStatus(),Object(o["b"])((function(){var n;n=i.loop&&t===i.count?0===i.active?0:t:t%i.count,e.immediate?Object(o["b"])((function(){i.swiping=!1})):i.swiping=!1,i.move({pace:n-i.active,emitChange:!0})}))},correctPosition:function(){this.swiping=!0,this.active<=-1&&this.move({pace:this.count}),this.active>=this.count&&this.move({pace:-this.count})},clear:function(){clearTimeout(this.timer)},autoPlay:function(){var t=this,e=this.autoplay;e>0&&this.count>1&&(this.clear(),this.timer=setTimeout((function(){t.next(),t.autoPlay()}),e))},genIndicator:function(){var t=this,e=this.$createElement,i=this.count,n=this.activeIndicator,r=this.slots("indicator");return r||(this.showIndicators&&i>1?e("div",{class:f("indicators",{vertical:this.vertical})},[Array.apply(void 0,Array(i)).map((function(i,r){return e("i",{class:f("indicator",{active:r===n}),style:r===n?t.indicatorStyle:null})}))]):void 0)}},render:function(){var t=arguments[0];return t("div",{class:f()},[t("div",{ref:"track",style:this.trackStyle,class:f("track",{vertical:this.vertical})},[this.slots()]),this.genIndicator()])}})},"261a":function(t,e,i){"use strict";var n=i("3739"),r=i.n(n);r.a},2969:function(t,e,i){"use strict";var n,r=i("292e"),s=i("6f1a"),o=i("8e95"),a=i("b76a"),c=i("4382");function l(t,e,i){Object(a["a"])(n);var r=0,s=t.scrollLeft,o=0===i?1:Math.round(1e3*i/16);function c(){t.scrollLeft+=(e-s)/o,++r<o&&(n=Object(a["c"])(c))}c()}function u(t,e,i,n){var r=Object(c["c"])(t),s=r<e,o=0===i?1:Math.round(1e3*i/16),l=(e-r)/o;function u(){r+=l,(s&&r>e||!s&&r<e)&&(r=e),Object(c["h"])(t,r),s&&r<e||!s&&r>e?Object(a["c"])(u):n&&Object(a["c"])(n)}u()}var h=i("39bf"),d=i("ee4e"),f=i("d8c9"),p=i("7be2"),v=i("cc52"),b=i("40c0"),g=i("bc00"),m=Object(r["a"])("tab"),y=m[0],w=m[1],_=y({props:{dot:Boolean,type:String,info:[Number,String],color:String,title:String,isActive:Boolean,ellipsis:Boolean,disabled:Boolean,scrollable:Boolean,activeColor:String,inactiveColor:String,swipeThreshold:[Number,String]},computed:{style:function(){var t={},e=this.color,i=this.isActive,n="card"===this.type;e&&n&&(t.borderColor=e,this.disabled||(i?t.backgroundColor=e:t.color=e));var r=i?this.activeColor:this.inactiveColor;return r&&(t.color=r),this.scrollable&&this.ellipsis&&(t.flexBasis=88/this.swipeThreshold+"%"),t}},methods:{onClick:function(){this.$emit("click")},genText:function(){var t=this.$createElement,e=t("span",{class:w("text",{ellipsis:this.ellipsis})},[this.slots()||this.title]);return this.dot||Object(s["b"])(this.info)&&""!==this.info?t("span",{class:w("text-wrapper")},[e,t(g["a"],{attrs:{dot:this.dot,info:this.info}})]):e}},render:function(){var t=arguments[0];return t("div",{attrs:{role:"tab","aria-selected":this.isActive},class:[w({active:this.isActive,disabled:this.disabled,complete:!this.ellipsis})],style:this.style,on:{click:this.onClick}},[this.genText()])}}),k=Object(r["a"])("sticky"),x=k[0],S=k[1],O=x({mixins:[Object(b["a"])((function(t,e){if(this.scroller||(this.scroller=Object(c["d"])(this.$el)),this.observer){var i=e?"observe":"unobserve";this.observer[i](this.$el)}t(this.scroller,"scroll",this.onScroll,!0),this.onScroll()}))],props:{zIndex:[Number,String],container:null,offsetTop:{type:[Number,String],default:0}},data:function(){return{fixed:!1,height:0,transform:0}},computed:{offsetTopPx:function(){return Object(o["b"])(this.offsetTop)},style:function(){if(this.fixed){var t={};return Object(s["b"])(this.zIndex)&&(t.zIndex=this.zIndex),this.offsetTopPx&&this.fixed&&(t.top=this.offsetTopPx+"px"),this.transform&&(t.transform="translate3d(0, "+this.transform+"px, 0)"),t}}},created:function(){var t=this;!s["f"]&&window.IntersectionObserver&&(this.observer=new IntersectionObserver((function(e){e[0].intersectionRatio>0&&t.onScroll()}),{root:document.body}))},methods:{onScroll:function(){var t=this;if(!Object(d["a"])(this.$el)){this.height=this.$el.offsetHeight;var e=this.container,i=this.offsetTopPx,n=Object(c["c"])(window),r=Object(c["a"])(this.$el),s=function(){t.$emit("scroll",{scrollTop:n,isFixed:t.fixed})};if(e){var o=r+e.offsetHeight;if(n+i+this.height>o){var a=this.height+n-o;return a<this.height?(this.fixed=!0,this.transform=-(a+i)):this.fixed=!1,void s()}}n+i>r?(this.fixed=!0,this.transform=0):this.fixed=!1,s()}}},render:function(){var t=arguments[0],e=this.fixed,i={height:e?this.height+"px":null};return t("div",{style:i},[t("div",{class:S({fixed:e}),style:this.style},[this.slots()])])}}),j=i("1bb4"),C=i("75bd"),T=Object(r["a"])("tabs"),I=T[0],$=T[1],L=50,z=I({mixins:[C["a"]],props:{count:Number,duration:[Number,String],animated:Boolean,swipeable:Boolean,currentIndex:Number},computed:{style:function(){if(this.animated)return{transform:"translate3d("+-1*this.currentIndex*100+"%, 0, 0)",transitionDuration:this.duration+"s"}},listeners:function(){if(this.swipeable)return{touchstart:this.touchStart,touchmove:this.touchMove,touchend:this.onTouchEnd,touchcancel:this.onTouchEnd}}},methods:{onTouchEnd:function(){var t=this.direction,e=this.deltaX,i=this.currentIndex;"horizontal"===t&&this.offsetX>=L&&(e>0&&0!==i?this.$emit("change",i-1):e<0&&i!==this.count-1&&this.$emit("change",i+1))},genChildren:function(){var t=this.$createElement;return this.animated?t("div",{class:$("track"),style:this.style},[this.slots()]):this.slots()}},render:function(){var t=arguments[0];return t("div",{class:$("content",{animated:this.animated}),on:Object(j["a"])({},this.listeners)},[this.genChildren()])}}),A=Object(r["a"])("tabs"),E=A[0],B=A[1];e["a"]=E({mixins:[Object(v["b"])("vanTabs"),Object(b["a"])((function(t){this.scroller||(this.scroller=Object(c["d"])(this.$el)),t(window,"resize",this.resize,!0),this.scrollspy&&t(this.scroller,"scroll",this.onScroll,!0)}))],model:{prop:"active"},props:{color:String,sticky:Boolean,animated:Boolean,swipeable:Boolean,scrollspy:Boolean,background:String,lineWidth:[Number,String],lineHeight:[Number,String],titleActiveColor:String,titleInactiveColor:String,type:{type:String,default:"line"},active:{type:[Number,String],default:0},border:{type:Boolean,default:!0},ellipsis:{type:Boolean,default:!0},duration:{type:[Number,String],default:.3},offsetTop:{type:[Number,String],default:0},lazyRender:{type:Boolean,default:!0},swipeThreshold:{type:[Number,String],default:4}},data:function(){return{position:"",currentIndex:null,lineStyle:{backgroundColor:this.color}}},computed:{scrollable:function(){return this.children.length>this.swipeThreshold||!this.ellipsis},navStyle:function(){return{borderColor:this.color,background:this.background}},currentName:function(){var t=this.children[this.currentIndex];if(t)return t.computedName},scrollOffset:function(){return this.sticky?+this.offsetTop+this.tabHeight:0}},watch:{color:"setLine",active:function(t){t!==this.currentName&&this.setCurrentIndexByName(t)},children:function(){var t=this;this.setCurrentIndexByName(this.currentName||this.active),this.setLine(),this.$nextTick((function(){t.scrollIntoView(!0)}))},currentIndex:function(){this.scrollIntoView(),this.setLine(),this.stickyFixed&&!this.scrollspy&&Object(c["g"])(Math.ceil(Object(c["a"])(this.$el)-this.offsetTop))},scrollspy:function(t){t?Object(f["b"])(this.scroller,"scroll",this.onScroll,!0):Object(f["a"])(this.scroller,"scroll",this.onScroll)}},mounted:function(){this.init()},activated:function(){this.init(),this.setLine()},methods:{resize:function(){this.setLine()},init:function(){var t=this;this.$nextTick((function(){t.inited=!0,t.tabHeight=Object(c["e"])(t.$refs.wrap),t.scrollIntoView(!0)}))},setLine:function(){var t=this,e=this.inited;this.$nextTick((function(){var i=t.$refs.titles;if(i&&i[t.currentIndex]&&"line"===t.type&&!Object(d["a"])(t.$el)){var n=i[t.currentIndex].$el,r=t.lineWidth,a=t.lineHeight,c=Object(s["b"])(r)?r:n.offsetWidth/2,l=n.offsetLeft+n.offsetWidth/2,u={width:Object(o["a"])(c),backgroundColor:t.color,transform:"translateX("+l+"px) translateX(-50%)"};if(e&&(u.transitionDuration=t.duration+"s"),Object(s["b"])(a)){var h=Object(o["a"])(a);u.height=h,u.borderRadius=h}t.lineStyle=u}}))},setCurrentIndexByName:function(t){var e=this.children.filter((function(e){return e.computedName===t})),i=(this.children[0]||{}).index||0;this.setCurrentIndex(e.length?e[0].index:i)},setCurrentIndex:function(t){if(t=this.findAvailableTab(t),Object(s["b"])(t)&&t!==this.currentIndex){var e=null!==this.currentIndex;this.currentIndex=t,this.$emit("input",this.currentName),e&&this.$emit("change",this.currentName,this.children[t].title)}},findAvailableTab:function(t){var e=t<this.currentIndex?-1:1;while(t>=0&&t<this.children.length){if(!this.children[t].disabled)return t;t+=e}},onClick:function(t){var e=this.children[t],i=e.title,n=e.disabled,r=e.computedName;n?this.$emit("disabled",r,i):(this.setCurrentIndex(t),this.scrollToCurrentContent(),this.$emit("click",r,i))},scrollIntoView:function(t){var e=this.$refs.titles;if(this.scrollable&&e&&e[this.currentIndex]){var i=this.$refs.nav,n=e[this.currentIndex].$el,r=n.offsetLeft-(i.offsetWidth-n.offsetWidth)/2;l(i,r,t?0:+this.duration)}},onSticktScroll:function(t){this.stickyFixed=t.isFixed,this.$emit("scroll",t)},scrollToCurrentContent:function(){var t=this;if(this.scrollspy){var e=this.children[this.currentIndex],i=null==e?void 0:e.$el;if(i){var n=Object(c["a"])(i,this.scroller)-this.scrollOffset;this.lockScroll=!0,u(this.scroller,n,+this.duration,(function(){t.lockScroll=!1}))}}},onScroll:function(){if(this.scrollspy&&!this.lockScroll){var t=this.getCurrentIndexOnScroll();this.setCurrentIndex(t)}},getCurrentIndexOnScroll:function(){for(var t=this.children,e=0;e<t.length;e++){var i=Object(c["f"])(t[e].$el);if(i>this.scrollOffset)return 0===e?0:e-1}return t.length-1}},render:function(){var t,e=this,i=arguments[0],n=this.type,r=this.ellipsis,o=this.animated,a=this.scrollable,c=this.children.map((function(t,o){return i(_,{ref:"titles",refInFor:!0,attrs:{type:n,dot:t.dot,info:Object(s["b"])(t.badge)?t.badge:t.info,title:t.title,color:e.color,isActive:o===e.currentIndex,ellipsis:r,disabled:t.disabled,scrollable:a,activeColor:e.titleActiveColor,inactiveColor:e.titleInactiveColor,swipeThreshold:e.swipeThreshold},style:t.titleStyle,scopedSlots:{default:function(){return t.slots("title")}},on:{click:function(){e.onClick(o),Object(h["b"])(t.$router,t)}}})})),l=i("div",{ref:"wrap",class:[B("wrap",{scrollable:a}),(t={},t[p["e"]]="line"===n&&this.border,t)]},[i("div",{ref:"nav",attrs:{role:"tablist"},class:B("nav",[n]),style:this.navStyle},[this.slots("nav-left"),c,"line"===n&&i("div",{class:B("line"),style:this.lineStyle}),this.slots("nav-right")])]);return i("div",{class:B([n])},[this.sticky?i(O,{attrs:{container:this.$el,offsetTop:this.offsetTop},on:{scroll:this.onSticktScroll}},[l]):l,i(z,{attrs:{count:this.children.length,animated:o,duration:this.duration,swipeable:this.swipeable,currentIndex:this.currentIndex},on:{change:this.setCurrentIndex}},[this.slots()])])}})},"2a15":function(t,e,i){"use strict";i.r(e);var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("section",{staticClass:"sample"},[i("Header",{attrs:{title:t.title,meaushow:t.meaushow,bgcolor:t.bgcolor}}),i("div",[i("wxShare",{attrs:{url:t.shareUrl}}),i("div",{staticClass:"banner"},[i("van-swipe",{attrs:{autoplay:3e3,"indicator-color":"white",height:t.bannerHeight}},t._l(t.getsamplebanner,(function(t,e){return i("van-swipe-item",{key:e},[i("a",{attrs:{href:t.url,target:t.window_open>0?"_blank":"_self"}},[i("img",{attrs:{src:t.images,alt:""}})])])})),1)],1),i("div",{staticClass:"activity-rule"},[i("div",{staticClass:"rule-title",on:{click:function(e){t.isShowRule=!t.isShowRule}}},[t._v("\n 活动规则\n "),i("i",{class:["icon","iconfont",t.isShowRule?"icon-down-trangle":"icon-jinru1"]})]),i("div",{class:["rule-content",t.isShowRule?"show":""]},[i("p",[t._v("• 活动时间:")]),i("p",[t._v("2020 年 8 月 3 日 ~ 2020 年 9 月 3 日(逾期申请次数将清零)")]),i("p",[t._v("• 工程师、终端等用户可享受包邮福利;")]),i("p",[t._v("• 学生、贸易商等用户运费需自理。")]),i("p",[t._v("• 同一用户需付运费的多个样品单,通过审核后将合并为一个付运费的样品单。")]),i("p",[t._v("• 样品订单将在 5 - 7 个工作日内通过审核,1 个工作日内寄出。")]),i("p",[t._v("• 在法律允许范围内,本活动最终解释权归猎芯网所有。")])])]),t.fxType?i("div",{staticClass:"fx_text"},[1==t.fxType?i("div",{staticClass:"fx_text_one"},[t._v("\n 我已邀请好友\n "),i("span",[t._v(t._s(t.inviteCount))]),t._v(" 人,剩余领取次数\n "),i("span",[t._v(t._s(t.applyCount))]),t._v(" 次\n ")]):2==t.fxType?i("div",{staticClass:"fx_text_two"},[t._v("\n 当前可领取次数为:\n "),i("span",[t._v(t._s(t.applyCount))]),t._v(" 次,分享可额外获得领取机会\n ")]):i("div",{staticClass:"fx_text_three"},[t._v("分享可额外获得领取机会")])]):t._e(),t.aggSample.length?i("div",{staticClass:"nav"},[i("van-tabs",{attrs:{ellipsis:!1,color:t.color,"swipe-threshold":t.swipeThreshold,"title-active-color":t.color,"title-inactive-color":t.defaultcolor},on:{click:t.onClick,change:t.changeTab},model:{value:t.active,callback:function(e){t.active=e},expression:"active"}},t._l(t.aggSample,(function(t,e){return i("van-tab",{key:e,attrs:{title:t.smaple_class_name,name:t.smaple_class_id}})})),1),t.layer?i("div",{staticClass:"sample-search"},[i("ul",[t._l(t.aggs.aggs,(function(e,n,r){return[i("li",["brand_id"==n?[i("p",{staticClass:"tit"},[t._v("制造商")])]:"class_id2"==n?[i("p",{staticClass:"tit"},[t._v("分类筛选")])]:"encap"==n?[i("p",{staticClass:"tit"},[t._v("封装规格")])]:"packing"==n?[i("p",{staticClass:"tit"},[t._v("包装筛选")])]:[i("p",{staticClass:"tit"},[t._v(t._s(n))])],i("dl",{staticClass:"boxsiz"},[t._l(e.list,(function(e,r,s){return[i("dd",{staticClass:"boxsiz",class:{curr:e.check},on:{click:function(i){return t.screenFn(e.id,n,e.flag)}}},[t._v(t._s(e.name)+"("+t._s(e.num)+")")])]}))],2)],2)]}))],2),i("div",{staticClass:"button"},[i("a",{staticClass:"cancel",on:{click:function(e){return t.canel()}}},[t._v("重置")]),i("a",{staticClass:"confirm",on:{click:function(e){return t.submit()}}},[t._v("确定")])])]):t._e()],1):t._e(),t.ziYingIndex?i("div",{staticClass:"con"},[i("van-list",{attrs:{finished:t.finished,"finished-text":"我是有底线的噢","immediate-check":!1},on:{load:t.onLoad},model:{value:t.loadingYp,callback:function(e){t.loadingYp=e},expression:"loadingYp"}},t._l(t.ziYingIndex,(function(e,n){return i("div",{staticClass:"con-group clr"},[i("div",{directives:[{name:"lazy-container",rawName:"v-lazy-container",value:{selector:"img"},expression:"{selector:'img'}"}],staticClass:"fl img-box"},[i("img",{staticClass:"lazy img-lazy",attrs:{alt:e.goods_name,"data-src":e.goods_images,"data-error":"https://www.ichunt.com/v3/dist/res/m/images/materiel_img_3.png"}})]),i("div",{staticClass:"fr cb-box van-hairline--bottom"},[i("div",{staticClass:"title"},[t._v(t._s(e.goods_name))]),i("p",[i("span",[t._v("类别:")]),t._v("\n "+t._s(e.class_id1_name)+"\n ")]),i("p",[i("span",[t._v("品牌:")]),t._v("\n "+t._s(e.brand_name)+"\n ")]),i("p",[i("span",[t._v("最大可申请数量:")]),t._v("\n "+t._s(e.sample_max_number)+"\n ")]),i("div",{staticClass:"btn-wrap clr"},[i("div",{directives:[{name:"shareMask",rawName:"v-shareMask"}],staticClass:"btnw fl"},[t._v("送朋友")]),i("div",{staticClass:"btnx fr",on:{click:function(i){return t.yaoqing(e)}}},[t._v("领取样品")])])])])})),0)],1):t._e(),i("div",{directives:[{name:"shareMask",rawName:"v-shareMask"}],staticClass:"fix-btns"},[t._v("送好友样片")]),t.getPop?i("div",{staticClass:"get-user-pop"},[i("div",{staticClass:"mask"}),i("div",{staticClass:"get-user-con"},[i("h3",[t._v("\n 您已将所有样片机会用完\n "),i("i",{staticClass:"icon iconfont icon-guanbi",on:{click:t.getuserf}})]),i("h2",[t._v("邀请好友注册可额外获得一次样品申请机会,多邀多得")]),i("span",{directives:[{name:"shareMask",rawName:"v-shareMask"}]},[t._v("点击邀请")])])]):t._e(),t.getPops?i("div",{staticClass:"get-user-pop"},[i("div",{staticClass:"mask"}),i("div",{staticClass:"get-user-con"},[i("h3",[t._v("\n 该样品需要邀请"+t._s(t.quota)+"个好友才能申请哦\n "),i("i",{staticClass:"icon iconfont icon-guanbi",on:{click:function(e){t.getPops=!1}}})]),i("h2",[t._v("再邀请"+t._s(t.quotaNum)+"个好友即可申请该样片,多邀多得")]),i("span",{directives:[{name:"shareMask",rawName:"v-shareMask"}]},[t._v("点击邀请")])])]):t._e(),t.isShowChooseWork?i("div",{staticClass:"choose-work-pop"},[i("div",{staticClass:"mask"}),i("div",{staticClass:"choose-work-con"},[i("i",{staticClass:"icon iconfont icon-shandiao-",on:{click:function(e){t.isShowChooseWork=!1}}}),i("div",{staticClass:"work-groups clr"},[i("div",{class:["fl","work-item","xs-item",4==t.workType?"active":""],on:{click:function(e){return t.changeWorkType(4)}}},[i("div",{staticClass:"radius-div xs-radius"}),i("p",[t._v("我是学生")])]),i("div",{class:["fl","work-item","mys-item",7==t.workType?"active":""],on:{click:function(e){return t.changeWorkType(7)}}},[i("div",{staticClass:"radius-div mys-radius"}),i("p",[t._v("我是贸易商")])]),i("div",{class:["fl","work-item","gcs-item",1==t.workType?"active":""],on:{click:function(e){return t.changeWorkType(1)}}},[i("div",{staticClass:"radius-div gcs-radius"}),i("p",[t._v("我是工程师")])]),i("div",{class:["fl","work-item","zds-item",8==t.workType?"active":""],on:{click:function(e){return t.changeWorkType(8)}}},[i("div",{staticClass:"radius-div zds-radius"}),i("p",[t._v("我是终端商")])])]),i("div",{class:["btn",-1!=t.workType?"active":""],on:{click:t.chooseWork}},[t._v("确定")])])]):t._e()],1)],1)},r=[],s=(i("5ab2"),i("6d57"),i("e44b"),i("e10e"),i("5f54"),i("9bef")),o=i("0261"),a=i("9f3a"),c=i("57af"),l=i("166e"),u=i("365c"),h=i("4260"),d=i("1292"),f=i("2969"),p=i("b1d0"),v=i("0a68"),b=i("2413"),g=i("78cd"),m=i("0aad"),y=i("0092");function w(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function _(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?w(Object(i),!0).forEach((function(e){Object(s["a"])(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):w(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}o["a"].use(d["a"]).use(f["a"]).use(p["a"]).use(v["a"]).use(b["a"]).use(g["a"]).use(m["a"]);var k={name:"sample",data:function(){return{bannerHeight:173,title:"猎芯网-自营样片",meaushow:!0,bgcolor:"#fafafa",color:"#1080d0",defaultcolor:"#333",swipeThreshold:4,active:0,getPop:!1,getPops:!1,quota:"",quotaNum:"",loadingYp:!1,applyCount:0,inviteCount:0,p:1,classId:"",fxType:0,layer:!1,type:"",sample_class_id:"",brand_id:{},packing:{},encap:{},attrs:{},curr:!1,id:[],shareUrl:window.location.origin+"/v3/samplereg?uid="+h["a"].getCookie("Yo4teW_uid"),isShowChooseWork:!1,workType:-1,workFun:0,isBelongs:0,isProvideInfo:0,goodId:null,isShowRule:!1}},computed:_({},Object(a["c"])({aggSample:function(t){return t.sample.aggSample},ziYingIndex:function(t){return t.sample.ziYingIndex},aggs:function(t){return t.sample.aggs},goodList:function(t){return t.sample.goodList},loading:function(t){return t.sample.loading},finished:function(t){return t.sample.finished},smaple_class_id:function(t){return t.sample.smaple_class_id},getsamplebanner:function(t){return t.sample.getsamplebanner}})),watch:{loading:function(t){this.loadingYp=t},smaple_class_id:function(t){t&&this.$store.dispatch({type:"ziYingIndex",params:{"sample_class_id/eq":t,p:this.p}})}},beforeCreate:function(){if(!/Android|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent)){var t="";for(var e in this.$route.query)t+=e+"="+this.$route.query[e]+"&";switch(t=t.slice(0,-1),window.location.hostname){case"m.liexin.com":window.location.href=t?"http://www.liexin.com/v3/sample?"+t:"http://www.liexin.com/v3/sample";break;default:window.location.href=window.location.origin+(t?"/v3/sample?"+t:"/v3/sample");break}}},created:function(){this.$store.dispatch({type:"getsamplebanner"}),this.$store.dispatch({type:"aggSample"}),this.judgeLogin()},methods:{judgeOccupation:function(){var t=this.isBelongs;return 0!=t||(this.isShowChooseWork=!0,!1)},chooseWork:function(){-1!=this.workType&&this.$router.push({path:"/sampleapply",query:{id:this.goodId,type:this.workType,full:"0"}})},changeWorkType:function(t){this.workType=t},judgeLogin:function(){getCookie("Yo4teW_uid")?this.getCount():this.fxType=3},getGoodList:function(){this.$store.dispatch({type:"getGoodList",data:{p:this.p,class_id:this.classId}})},onClick:function(t){this.sample_class_id=t,this.layer=!this.layer,this.getAggData(t)},changeTab:function(t){this.layer=!1,this.sample_class_id=t,this.$store.dispatch({type:"ziYingIndex",params:{"sample_class_id/eq":t,p:this.p}})},onLoad:function(){var t=this;this.p++;var e=Object.assign({},{p:this.p},{"sample_class_id/eq":this.sample_class_id||this.smaple_class_id},this.brand_id,this.packing,this.encap,this.attrs);setTimeout((function(){t.$store.dispatch({type:"ziYingIndex",params:e})}),100)},getuserf:function(){this.getPop=!1},getAggData:function(t){var e=Object.assign({},{reset:!0,"sample_class_id/eq":t});this.id=[],this.brand_id={},this.packing={},this.encap={},this.attrs={},this.$store.dispatch(Object(s["a"])({type:"aggs",params:e},"params",e))},submit:function(){var t=Object.assign({},{"sample_class_id/eq":this.sample_class_id},this.brand_id,this.packing,this.encap,this.attrs);this.$store.dispatch({type:"ziYingIndex",params:t}),this.layer=!1},canel:function(){var t=Object.assign({},{reset:!0,"sample_class_id/eq":this.sample_class_id});this.id=[],this.brand_id={},this.packing={},this.encap={},this.attrs={},this.$store.dispatch(Object(s["a"])({type:"aggs",params:t},"params",t))},screenFn:function(t,e,i){if("brand_id"==e)this.brand_id={"brand_id/condition":t},i&&(this.brand_id={});else if("packing"==e)this.packing={"packing/condition":t},i&&(this.packing={});else if("encap"==e)this.encap={"encap/condition":t},i&&(this.encap={});else{var n={};n[e]=[t],this.attrs={"attrs/nested":JSON.stringify(n)},i&&(this.attrs={})}this.id.push(t);var r=Object.assign({},{"sample_class_id/eq":this.sample_class_id},this.brand_id,this.packing,this.encap,this.attrs,{id:this.id.join(",")});this.$store.dispatch({type:"aggs",params:r})},getCount:function(){var t=this;u["d"].getUserSampleInfo().then((function(e){var i=e.data;0==i.err_code?(t.applyCount=i.data.apply_count||0,t.inviteCount=i.data.invite_count||0,t.workFun=i.data.work_function||0,t.isBelongs=i.data.is_belongs||0,t.isProvideInfo=i.data.is_provide_info||0,0==t.inviteCount?t.fxType=2:t.fxType=1):"11012"==i.err_code&&(window.location.href="/v3/login?referer="+encodeURIComponent(window.location.href))})).catch((function(t){}))},yaoqing:function(t){var e=h["a"].isLogin();if(1==e){var i=h["a"].aggxde(t.stock);if(this.goodId=t.goods_id,0!=this.applyCount)if(i)if(1*this.applyCount<1*t.quota)this.getPops=!0,this.quota=t.quota,this.quotaNum=1*t.quota-1*this.applyCount;else{if(!this.judgeOccupation())return;this.$router.push({path:"/sampleapply",query:{id:t.goods_id,type:this.workFun,full:this.isProvideInfo+""}})}else Object(v["a"])("样品库存不足");else this.getPop=!0}else window.location.href="/v3/login?referer="+encodeURIComponent(window.location.href)}},components:{Header:c["a"],wxShare:l["a"],"van-list":y["a"]}},x=k,S=(i("261a"),i("9ca4")),O=Object(S["a"])(x,n,r,!1,null,"298434a3",null);e["default"]=O.exports},3739:function(t,e,i){},5490:function(t,e,i){"use strict";i("9a0e")("link",(function(t){return function(e){return t(this,"a","href",e)}}))},"5a2a":function(t,e,i){
/*!
* Vue-Lazyload.js v1.2.3
* (c) 2018 Awe <hilongjw@gmail.com>
* Released under the MIT License.
*/
!function(e,i){t.exports=i()}(0,(function(){"use strict";function t(t){return t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}function e(t){t=t||{};var e=arguments.length,r=0;if(1===e)return t;for(;++r<e;){var s=arguments[r];m(t)&&(t=s),n(s)&&i(t,s)}return t}function i(t,i){for(var s in y(t,i),i)if("__proto__"!==s&&r(i,s)){var o=i[s];n(o)?("undefined"===_(t[s])&&"function"===_(o)&&(t[s]=o),t[s]=e(t[s]||{},o)):t[s]=o}return t}function n(t){return"object"===_(t)||"function"===_(t)}function r(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function s(t,e){if(t.length){var i=t.indexOf(e);return i>-1?t.splice(i,1):void 0}}function o(t,e){for(var i=!1,n=0,r=t.length;n<r;n++)if(e(t[n])){i=!0;break}return i}function a(t,e){if("IMG"===t.tagName&&t.getAttribute("data-srcset")){var i=t.getAttribute("data-srcset"),n=[],r=t.parentNode,s=r.offsetWidth*e,o=void 0,a=void 0,c=void 0;i=i.trim().split(","),i.map((function(t){t=t.trim(),o=t.lastIndexOf(" "),-1===o?(a=t,c=999998):(a=t.substr(0,o),c=parseInt(t.substr(o+1,t.length-o-2),10)),n.push([c,a])})),n.sort((function(t,e){if(t[0]<e[0])return-1;if(t[0]>e[0])return 1;if(t[0]===e[0]){if(-1!==e[1].indexOf(".webp",e[1].length-5))return 1;if(-1!==t[1].indexOf(".webp",t[1].length-5))return-1}return 0}));for(var l="",u=void 0,h=n.length,d=0;d<h;d++)if(u=n[d],u[0]>=s){l=u[1];break}return l}}function c(t,e){for(var i=void 0,n=0,r=t.length;n<r;n++)if(e(t[n])){i=t[n];break}return i}function l(){if(!x)return!1;var t=!0,e=document;try{var i=e.createElement("object");i.type="image/webp",i.style.visibility="hidden",i.innerHTML="!",e.body.appendChild(i),t=!i.offsetWidth,e.body.removeChild(i)}catch(e){t=!1}return t}function u(t,e){var i=null,n=0;return function(){if(!i){var r=Date.now()-n,s=this,o=arguments,a=function(){n=Date.now(),i=!1,t.apply(s,o)};r>=e?a():i=setTimeout(a,e)}}}function h(t){return null!==t&&"object"===(void 0===t?"undefined":v(t))}function d(t){if(!(t instanceof Object))return[];if(Object.keys)return Object.keys(t);var e=[];for(var i in t)t.hasOwnProperty(i)&&e.push(i);return e}function f(t){for(var e=t.length,i=[],n=0;n<e;n++)i.push(t[n]);return i}function p(){}var v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},b=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},g=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),m=function(t){return null==t||"function"!=typeof t&&"object"!==(void 0===t?"undefined":v(t))},y=function(t,e){if(null===t||void 0===t)throw new TypeError("expected first argument to be an object.");if(void 0===e||"undefined"==typeof Symbol)return t;if("function"!=typeof Object.getOwnPropertySymbols)return t;for(var i=Object.prototype.propertyIsEnumerable,n=Object(t),r=arguments.length,s=0;++s<r;)for(var o=Object(arguments[s]),a=Object.getOwnPropertySymbols(o),c=0;c<a.length;c++){var l=a[c];i.call(o,l)&&(n[l]=o[l])}return n},w=Object.prototype.toString,_=function(e){var i=void 0===e?"undefined":v(e);return"undefined"===i?"undefined":null===e?"null":!0===e||!1===e||e instanceof Boolean?"boolean":"string"===i||e instanceof String?"string":"number"===i||e instanceof Number?"number":"function"===i||e instanceof Function?void 0!==e.constructor.name&&"Generator"===e.constructor.name.slice(0,9)?"generatorfunction":"function":void 0!==Array.isArray&&Array.isArray(e)?"array":e instanceof RegExp?"regexp":e instanceof Date?"date":(i=w.call(e),"[object RegExp]"===i?"regexp":"[object Date]"===i?"date":"[object Arguments]"===i?"arguments":"[object Error]"===i?"error":"[object Promise]"===i?"promise":t(e)?"buffer":"[object Set]"===i?"set":"[object WeakSet]"===i?"weakset":"[object Map]"===i?"map":"[object WeakMap]"===i?"weakmap":"[object Symbol]"===i?"symbol":"[object Map Iterator]"===i?"mapiterator":"[object Set Iterator]"===i?"setiterator":"[object String Iterator]"===i?"stringiterator":"[object Array Iterator]"===i?"arrayiterator":"[object Int8Array]"===i?"int8array":"[object Uint8Array]"===i?"uint8array":"[object Uint8ClampedArray]"===i?"uint8clampedarray":"[object Int16Array]"===i?"int16array":"[object Uint16Array]"===i?"uint16array":"[object Int32Array]"===i?"int32array":"[object Uint32Array]"===i?"uint32array":"[object Float32Array]"===i?"float32array":"[object Float64Array]"===i?"float64array":"object")},k=e,x="undefined"!=typeof window,S=x&&"IntersectionObserver"in window,O={event:"event",observer:"observer"},j=function(){function t(t,e){e=e||{bubbles:!1,cancelable:!1,detail:void 0};var i=document.createEvent("CustomEvent");return i.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),i}if(x)return"function"==typeof window.CustomEvent?window.CustomEvent:(t.prototype=window.Event.prototype,t)}(),C=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return x&&window.devicePixelRatio||t},T=function(){if(x){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("test",null,e)}catch(t){}return t}}(),I={on:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];T?t.addEventListener(e,i,{capture:n,passive:!0}):t.addEventListener(e,i,n)},off:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]&&arguments[3];t.removeEventListener(e,i,n)}},$=function(t,e,i){var n=new Image;n.src=t.src,n.onload=function(){e({naturalHeight:n.naturalHeight,naturalWidth:n.naturalWidth,src:n.src})},n.onerror=function(t){i(t)}},L=function(t,e){return"undefined"!=typeof getComputedStyle?getComputedStyle(t,null).getPropertyValue(e):t.style[e]},z=function(t){return L(t,"overflow")+L(t,"overflow-y")+L(t,"overflow-x")},A=function(t){if(x){if(!(t instanceof HTMLElement))return window;for(var e=t;e&&e!==document.body&&e!==document.documentElement&&e.parentNode;){if(/(scroll|auto)/.test(z(e)))return e;e=e.parentNode}return window}},E={},B=function(){function t(e){var i=e.el,n=e.src,r=e.error,s=e.loading,o=e.bindType,a=e.$parent,c=e.options,l=e.elRenderer;b(this,t),this.el=i,this.src=n,this.error=r,this.loading=s,this.bindType=o,this.attempt=0,this.naturalHeight=0,this.naturalWidth=0,this.options=c,this.rect=null,this.$parent=a,this.elRenderer=l,this.performanceData={init:Date.now(),loadStart:0,loadEnd:0},this.filter(),this.initState(),this.render("loading",!1)}return g(t,[{key:"initState",value:function(){this.el.dataset.src=this.src,this.state={error:!1,loaded:!1,rendered:!1}}},{key:"record",value:function(t){this.performanceData[t]=Date.now()}},{key:"update",value:function(t){var e=t.src,i=t.loading,n=t.error,r=this.src;this.src=e,this.loading=i,this.error=n,this.filter(),r!==this.src&&(this.attempt=0,this.initState())}},{key:"getRect",value:function(){this.rect=this.el.getBoundingClientRect()}},{key:"checkInView",value:function(){return this.getRect(),this.rect.top<window.innerHeight*this.options.preLoad&&this.rect.bottom>this.options.preLoadTop&&this.rect.left<window.innerWidth*this.options.preLoad&&this.rect.right>0}},{key:"filter",value:function(){var t=this;d(this.options.filter).map((function(e){t.options.filter[e](t,t.options)}))}},{key:"renderLoading",value:function(t){var e=this;$({src:this.loading},(function(i){e.render("loading",!1),t()}),(function(){t(),e.options.silent}))}},{key:"load",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p;return this.attempt>this.options.attempt-1&&this.state.error?(this.options.silent,void e()):this.state.loaded||E[this.src]?(this.state.loaded=!0,e(),this.render("loaded",!0)):void this.renderLoading((function(){t.attempt++,t.record("loadStart"),$({src:t.src},(function(i){t.naturalHeight=i.naturalHeight,t.naturalWidth=i.naturalWidth,t.state.loaded=!0,t.state.error=!1,t.record("loadEnd"),t.render("loaded",!1),E[t.src]=1,e()}),(function(e){t.options.silent,t.state.error=!0,t.state.loaded=!1,t.render("error",!1)}))}))}},{key:"render",value:function(t,e){this.elRenderer(this,t,e)}},{key:"performance",value:function(){var t="loading",e=0;return this.state.loaded&&(t="loaded",e=(this.performanceData.loadEnd-this.performanceData.loadStart)/1e3),this.state.error&&(t="error"),{src:this.src,state:t,time:e}}},{key:"destroy",value:function(){this.el=null,this.src=null,this.error=null,this.loading=null,this.bindType=null,this.attempt=0}}]),t}(),P="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",M=["scroll","wheel","mousewheel","resize","animationend","transitionend","touchmove"],N={rootMargin:"0px",threshold:0},W=function(t){return function(){function e(t){var i=t.preLoad,n=t.error,r=t.throttleWait,s=t.preLoadTop,o=t.dispatchEvent,a=t.loading,c=t.attempt,h=t.silent,d=void 0===h||h,f=t.scale,p=t.listenEvents,v=(t.hasbind,t.filter),g=t.adapter,m=t.observer,y=t.observerOptions;b(this,e),this.version="1.2.3",this.mode=O.event,this.ListenerQueue=[],this.TargetIndex=0,this.TargetQueue=[],this.options={silent:d,dispatchEvent:!!o,throttleWait:r||200,preLoad:i||1.3,preLoadTop:s||0,error:n||P,loading:a||P,attempt:c||3,scale:f||C(f),ListenEvents:p||M,hasbind:!1,supportWebp:l(),filter:v||{},adapter:g||{},observer:!!m,observerOptions:y||N},this._initEvent(),this.lazyLoadHandler=u(this._lazyLoadHandler.bind(this),this.options.throttleWait),this.setMode(this.options.observer?O.observer:O.event)}return g(e,[{key:"config",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};k(this.options,t)}},{key:"performance",value:function(){var t=[];return this.ListenerQueue.map((function(e){t.push(e.performance())})),t}},{key:"addLazyBox",value:function(t){this.ListenerQueue.push(t),x&&(this._addListenerTarget(window),this._observer&&this._observer.observe(t.el),t.$el&&t.$el.parentNode&&this._addListenerTarget(t.$el.parentNode))}},{key:"add",value:function(e,i,n){var r=this;if(o(this.ListenerQueue,(function(t){return t.el===e})))return this.update(e,i),t.nextTick(this.lazyLoadHandler);var s=this._valueFormatter(i.value),c=s.src,l=s.loading,u=s.error;t.nextTick((function(){c=a(e,r.options.scale)||c,r._observer&&r._observer.observe(e);var s=Object.keys(i.modifiers)[0],o=void 0;s&&(o=n.context.$refs[s],o=o?o.$el||o:document.getElementById(s)),o||(o=A(e));var h=new B({bindType:i.arg,$parent:o,el:e,loading:l,error:u,src:c,elRenderer:r._elRenderer.bind(r),options:r.options});r.ListenerQueue.push(h),x&&(r._addListenerTarget(window),r._addListenerTarget(o)),r.lazyLoadHandler(),t.nextTick((function(){return r.lazyLoadHandler()}))}))}},{key:"update",value:function(e,i){var n=this,r=this._valueFormatter(i.value),s=r.src,o=r.loading,l=r.error;s=a(e,this.options.scale)||s;var u=c(this.ListenerQueue,(function(t){return t.el===e}));u&&u.update({src:s,loading:o,error:l}),this._observer&&(this._observer.unobserve(e),this._observer.observe(e)),this.lazyLoadHandler(),t.nextTick((function(){return n.lazyLoadHandler()}))}},{key:"remove",value:function(t){if(t){this._observer&&this._observer.unobserve(t);var e=c(this.ListenerQueue,(function(e){return e.el===t}));e&&(this._removeListenerTarget(e.$parent),this._removeListenerTarget(window),s(this.ListenerQueue,e)&&e.destroy())}}},{key:"removeComponent",value:function(t){t&&(s(this.ListenerQueue,t),this._observer&&this._observer.unobserve(t.el),t.$parent&&t.$el.parentNode&&this._removeListenerTarget(t.$el.parentNode),this._removeListenerTarget(window))}},{key:"setMode",value:function(t){var e=this;S||t!==O.observer||(t=O.event),this.mode=t,t===O.event?(this._observer&&(this.ListenerQueue.forEach((function(t){e._observer.unobserve(t.el)})),this._observer=null),this.TargetQueue.forEach((function(t){e._initListen(t.el,!0)}))):(this.TargetQueue.forEach((function(t){e._initListen(t.el,!1)})),this._initIntersectionObserver())}},{key:"_addListenerTarget",value:function(t){if(t){var e=c(this.TargetQueue,(function(e){return e.el===t}));return e?e.childrenCount++:(e={el:t,id:++this.TargetIndex,childrenCount:1,listened:!0},this.mode===O.event&&this._initListen(e.el,!0),this.TargetQueue.push(e)),this.TargetIndex}}},{key:"_removeListenerTarget",value:function(t){var e=this;this.TargetQueue.forEach((function(i,n){i.el===t&&(--i.childrenCount||(e._initListen(i.el,!1),e.TargetQueue.splice(n,1),i=null))}))}},{key:"_initListen",value:function(t,e){var i=this;this.options.ListenEvents.forEach((function(n){return I[e?"on":"off"](t,n,i.lazyLoadHandler)}))}},{key:"_initEvent",value:function(){var t=this;this.Event={listeners:{loading:[],loaded:[],error:[]}},this.$on=function(e,i){t.Event.listeners[e].push(i)},this.$once=function(e,i){function n(){r.$off(e,n),i.apply(r,arguments)}var r=t;t.$on(e,n)},this.$off=function(e,i){i?s(t.Event.listeners[e],i):t.Event.listeners[e]=[]},this.$emit=function(e,i,n){t.Event.listeners[e].forEach((function(t){return t(i,n)}))}}},{key:"_lazyLoadHandler",value:function(){var t=this;this.ListenerQueue.forEach((function(e,i){e.state.loaded||e.checkInView()&&e.load((function(){!e.error&&e.loaded&&t.ListenerQueue.splice(i,1)}))}))}},{key:"_initIntersectionObserver",value:function(){var t=this;S&&(this._observer=new IntersectionObserver(this._observerHandler.bind(this),this.options.observerOptions),this.ListenerQueue.length&&this.ListenerQueue.forEach((function(e){t._observer.observe(e.el)})))}},{key:"_observerHandler",value:function(t,e){var i=this;t.forEach((function(t){t.isIntersecting&&i.ListenerQueue.forEach((function(e){if(e.el===t.target){if(e.state.loaded)return i._observer.unobserve(e.el);e.load()}}))}))}},{key:"_elRenderer",value:function(t,e,i){if(t.el){var n=t.el,r=t.bindType,s=void 0;switch(e){case"loading":s=t.loading;break;case"error":s=t.error;break;default:s=t.src}if(r?n.style[r]='url("'+s+'")':n.getAttribute("src")!==s&&n.setAttribute("src",s),n.setAttribute("lazy",e),this.$emit(e,t,i),this.options.adapter[e]&&this.options.adapter[e](t,this.options),this.options.dispatchEvent){var o=new j(e,{detail:t});n.dispatchEvent(o)}}}},{key:"_valueFormatter",value:function(t){var e=t,i=this.options.loading,n=this.options.error;return h(t)&&(t.src||this.options.silent,e=t.src,i=t.loading||this.options.loading,n=t.error||this.options.error),{src:e,loading:i,error:n}}}]),e}()},R=function(t){return{props:{tag:{type:String,default:"div"}},render:function(t){return!1===this.show?t(this.tag):t(this.tag,null,this.$slots.default)},data:function(){return{el:null,state:{loaded:!1},rect:{},show:!1}},mounted:function(){this.el=this.$el,t.addLazyBox(this),t.lazyLoadHandler()},beforeDestroy:function(){t.removeComponent(this)},methods:{getRect:function(){this.rect=this.$el.getBoundingClientRect()},checkInView:function(){return this.getRect(),x&&this.rect.top<window.innerHeight*t.options.preLoad&&this.rect.bottom>0&&this.rect.left<window.innerWidth*t.options.preLoad&&this.rect.right>0},load:function(){this.show=!0,this.state.loaded=!0,this.$emit("show",this)}}}},D=function(){function t(e){var i=e.lazy;b(this,t),this.lazy=i,i.lazyContainerMananger=this,this._queue=[]}return g(t,[{key:"bind",value:function(t,e,i){var n=new Q({el:t,binding:e,vnode:i,lazy:this.lazy});this._queue.push(n)}},{key:"update",value:function(t,e,i){var n=c(this._queue,(function(e){return e.el===t}));n&&n.update({el:t,binding:e,vnode:i})}},{key:"unbind",value:function(t,e,i){var n=c(this._queue,(function(e){return e.el===t}));n&&(n.clear(),s(this._queue,n))}}]),t}(),H={selector:"img"},Q=function(){function t(e){var i=e.el,n=e.binding,r=e.vnode,s=e.lazy;b(this,t),this.el=null,this.vnode=r,this.binding=n,this.options={},this.lazy=s,this._queue=[],this.update({el:i,binding:n})}return g(t,[{key:"update",value:function(t){var e=this,i=t.el,n=t.binding;this.el=i,this.options=k({},H,n.value),this.getImgs().forEach((function(t){e.lazy.add(t,k({},e.binding,{value:{src:t.dataset.src,error:t.dataset.error,loading:t.dataset.loading}}),e.vnode)}))}},{key:"getImgs",value:function(){return f(this.el.querySelectorAll(this.options.selector))}},{key:"clear",value:function(){var t=this;this.getImgs().forEach((function(e){return t.lazy.remove(e)})),this.vnode=null,this.binding=null,this.lazy=null}}]),t}();return{install:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=W(t),n=new i(e),r=new D({lazy:n}),s="2"===t.version.split(".")[0];t.prototype.$Lazyload=n,e.lazyComponent&&t.component("lazy-component",R(n)),s?(t.directive("lazy",{bind:n.add.bind(n),update:n.update.bind(n),componentUpdated:n.lazyLoadHandler.bind(n),unbind:n.remove.bind(n)}),t.directive("lazy-container",{bind:r.bind.bind(r),update:r.update.bind(r),unbind:r.unbind.bind(r)})):(t.directive("lazy",{bind:n.lazyLoadHandler.bind(n),update:function(t,e){k(this.vm.$refs,this.vm.$els),n.add(this.el,{modifiers:this.modifiers||{},arg:this.arg,value:t,oldValue:e},{context:this.vm})},unbind:function(){n.remove(this.el)}}),t.directive("lazy-container",{update:function(t,e){r.update(this.el,{modifiers:this.modifiers||{},arg:this.arg,value:t,oldValue:e},{context:this.vm})},unbind:function(){r.unbind(this.el)}}))}}}))},"78cd":function(t,e,i){"use strict";var n=i("1bb4"),r=i("292e"),s=i("cc52"),o=Object(r["a"])("swipe-item"),a=o[0],c=o[1];e["a"]=a({mixins:[Object(s["a"])("vanSwipe")],data:function(){return{offset:0,mounted:!1}},mounted:function(){var t=this;this.$nextTick((function(){t.mounted=!0}))},computed:{style:function(){var t={},e=this.parent,i=e.size,n=e.vertical;return t[n?"height":"width"]=i+"px",this.offset&&(t.transform="translate"+(n?"Y":"X")+"("+this.offset+"px)"),t},shouldRender:function(){var t=this.index,e=this.parent,i=this.mounted;if(!e.lazyRender)return!0;if(!i)return!1;var n=e.activeIndicator,r=e.count-1,s=0===n?r:n-1,o=n===r?0:n+1;return t===n||t===s||t===o}},render:function(){var t=arguments[0];return t("div",{class:c(),style:this.style,on:Object(n["a"])({},this.$listeners)},[this.shouldRender&&this.slots()])}})},"7be2":function(t,e,i){"use strict";i.d(e,"g",(function(){return n})),i.d(e,"d",(function(){return s})),i.d(e,"b",(function(){return o})),i.d(e,"a",(function(){return a})),i.d(e,"c",(function(){return c})),i.d(e,"e",(function(){return l})),i.d(e,"f",(function(){return u}));var n="#fff",r="van-hairline",s=r+"--top",o=r+"--left",a=r+"--bottom",c=r+"--surround",l=r+"--top-bottom",u=r+"-unset--top-bottom"},"9a0e":function(t,e,i){var n=i("e46b"),r=i("238a"),s=i("f6b4"),o=/"/g,a=function(t,e,i,n){var r=String(s(t)),a="<"+e;return""!==i&&(a+=" "+i+'="'+String(n).replace(o,"&quot;")+'"'),a+">"+r+"</"+e+">"};t.exports=function(t,e){var i={};i[t]=e(a),n(n.P+n.F*r((function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3})),"String",i)}},b1d0:function(t,e,i){"use strict";var n=i("5a2a"),r=i.n(n);e["a"]=r.a},b76a:function(t,e,i){"use strict";(function(t){i.d(e,"c",(function(){return l})),i.d(e,"b",(function(){return u})),i.d(e,"a",(function(){return h}));var n=i("6f1a"),r=Date.now();function s(t){var e=Date.now(),i=Math.max(0,16-(e-r)),n=setTimeout(t,i);return r=e+i,n}var o=n["f"]?t:window,a=o.requestAnimationFrame||s,c=o.cancelAnimationFrame||o.clearTimeout;function l(t){return a.call(o,t)}function u(t){l((function(){l(t)}))}function h(t){c.call(o,t)}}).call(this,i("9edd"))},cc52:function(t,e,i){"use strict";function n(t){var e=[];function i(t){t.forEach((function(t){e.push(t),t.componentInstance&&i(t.componentInstance.$children.map((function(t){return t.$vnode}))),t.children&&i(t.children)}))}return i(t),e}function r(t,e){var i=e.$vnode.componentOptions;if(i&&i.children){var r=n(i.children);t.sort((function(t,e){return r.indexOf(t.$vnode)-r.indexOf(e.$vnode)}))}}function s(t,e){var i,n;void 0===e&&(e={});var s=e.indexKey||"index";return{inject:(i={},i[t]={default:null},i),computed:(n={parent:function(){return this.disableBindRelation?null:this[t]}},n[s]=function(){return this.bindRelation(),this.parent?this.parent.children.indexOf(this):null},n),mounted:function(){this.bindRelation()},beforeDestroy:function(){var t=this;this.parent&&(this.parent.children=this.parent.children.filter((function(e){return e!==t})))},methods:{bindRelation:function(){if(this.parent&&-1===this.parent.children.indexOf(this)){var t=[].concat(this.parent.children,[this]);r(t,this.parent),this.parent.children=t}}}}}function o(t){return{provide:function(){var e;return e={},e[t]=this,e},data:function(){return{children:[]}}}}i.d(e,"a",(function(){return s})),i.d(e,"b",(function(){return o}))},ee4e:function(t,e,i){"use strict";function n(t){var e=window.getComputedStyle(t),i="none"===e.display,n=null===t.offsetParent&&"fixed"!==e.position;return i||n}i.d(e,"a",(function(){return n}))}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-fe284ece"],{"0aad":function(t,e,i){"use strict";var s=i("292e"),n=i("6f1a"),o=i("fbbe"),a=i("e10b"),r=Object(s["a"])("popup"),c=r[0],l=r[1];e["a"]=c({mixins:[Object(o["a"])()],props:{round:Boolean,duration:[Number,String],closeable:Boolean,transition:String,safeAreaInsetBottom:Boolean,closeIcon:{type:String,default:"cross"},closeIconPosition:{type:String,default:"top-right"},position:{type:String,default:"center"},overlay:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0}},beforeCreate:function(){var t=this,e=function(e){return function(i){return t.$emit(e,i)}};this.onClick=e("click"),this.onOpened=e("opened"),this.onClosed=e("closed")},render:function(){var t,e=arguments[0];if(this.shouldRender){var i=this.round,s=this.position,o=this.duration,r="center"===s,c=this.transition||(r?"van-fade":"van-popup-slide-"+s),d={};if(Object(n["b"])(o)){var u=r?"animationDuration":"transitionDuration";d[u]=o+"s"}return e("transition",{attrs:{name:c},on:{afterEnter:this.onOpened,afterLeave:this.onClosed}},[e("div",{directives:[{name:"show",value:this.value}],style:d,class:l((t={round:i},t[s]=s,t["safe-area-inset-bottom"]=this.safeAreaInsetBottom,t)),on:{click:this.onClick}},[this.slots(),this.closeable&&e(a["a"],{attrs:{role:"button",tabindex:"0",name:this.closeIcon},class:l("close-icon",this.closeIconPosition),on:{click:this.close}})])])}}})},1088:function(t,e,i){"use strict";var s=i("6f81"),n=i.n(s);n.a},"2b6e":function(t,e,i){"use strict";var s=i("1bb4"),n=i("292e"),o=i("6f1a"),a=i("d8c9"),r=i("7be2"),c=i("8094"),l=i("8e95"),d=i("1132"),u=i("23c4"),h=i.n(u),f=i("a621");function m(t){return Array.isArray(t)?t.map((function(t){return m(t)})):"object"===typeof t?Object(f["a"])({},t):t}var p=i("c7f2"),v=i("75bd"),g=200,b=300,C=15,y=Object(n["a"])("picker-column"),_=y[0],x=y[1];function O(t){var e=window.getComputedStyle(t),i=e.transform||e.webkitTransform,s=i.slice(7,i.length-1).split(", ")[5];return Number(s)}function k(t){return Object(o["d"])(t)&&t.disabled}var S=_({mixins:[v["a"]],props:{valueKey:String,allowHtml:Boolean,className:String,itemHeight:Number,defaultIndex:Number,swipeDuration:[Number,String],visibleItemCount:[Number,String],initialOptions:{type:Array,default:function(){return[]}}},data:function(){return{offset:0,duration:0,options:m(this.initialOptions),currentIndex:this.defaultIndex}},created:function(){this.$parent.children&&this.$parent.children.push(this),this.setIndex(this.currentIndex)},mounted:function(){this.bindTouchEvent(this.$el)},destroyed:function(){var t=this.$parent.children;t&&t.splice(t.indexOf(this),1)},watch:{initialOptions:"setOptions",defaultIndex:function(t){this.setIndex(t)}},computed:{count:function(){return this.options.length},baseOffset:function(){return this.itemHeight*(this.visibleItemCount-1)/2}},methods:{setOptions:function(t){JSON.stringify(t)!==JSON.stringify(this.options)&&(this.options=m(t),this.setIndex(this.defaultIndex))},onTouchStart:function(t){if(this.touchStart(t),this.moving){var e=O(this.$refs.wrapper);this.offset=Math.min(0,e-this.baseOffset),this.startOffset=this.offset}else this.startOffset=this.offset;this.duration=0,this.transitionEndTrigger=null,this.touchStartTime=Date.now(),this.momentumOffset=this.startOffset},onTouchMove:function(t){this.touchMove(t),"vertical"===this.direction&&(this.moving=!0,Object(a["c"])(t,!0)),this.offset=Object(p["b"])(this.startOffset+this.deltaY,-this.count*this.itemHeight,this.itemHeight);var e=Date.now();e-this.touchStartTime>b&&(this.touchStartTime=e,this.momentumOffset=this.offset)},onTouchEnd:function(){var t=this,e=this.offset-this.momentumOffset,i=Date.now()-this.touchStartTime,s=i<b&&Math.abs(e)>C;if(s)this.momentum(e,i);else{var n=this.getIndexByOffset(this.offset);this.duration=g,this.setIndex(n,!0),setTimeout((function(){t.moving=!1}),0)}},onTransitionEnd:function(){this.stopMomentum()},onClickItem:function(t){this.moving||(this.duration=g,this.setIndex(t,!0))},adjustIndex:function(t){t=Object(p["b"])(t,0,this.count);for(var e=t;e<this.count;e++)if(!k(this.options[e]))return e;for(var i=t-1;i>=0;i--)if(!k(this.options[i]))return i},getOptionText:function(t){return Object(o["d"])(t)&&this.valueKey in t?t[this.valueKey]:t},setIndex:function(t,e){var i=this;t=this.adjustIndex(t)||0;var s=-t*this.itemHeight,n=function(){t!==i.currentIndex&&(i.currentIndex=t,e&&i.$emit("change",t))};this.moving&&s!==this.offset?this.transitionEndTrigger=n:n(),this.offset=s},setValue:function(t){for(var e=this.options,i=0;i<e.length;i++)if(this.getOptionText(e[i])===t)return this.setIndex(i)},getValue:function(){return this.options[this.currentIndex]},getIndexByOffset:function(t){return Object(p["b"])(Math.round(-t/this.itemHeight),0,this.count-1)},momentum:function(t,e){var i=Math.abs(t/e);t=this.offset+i/.003*(t<0?-1:1);var s=this.getIndexByOffset(t);this.duration=+this.swipeDuration,this.setIndex(s,!0)},stopMomentum:function(){this.moving=!1,this.duration=0,this.transitionEndTrigger&&(this.transitionEndTrigger(),this.transitionEndTrigger=null)},genOptions:function(){var t=this,e=this.$createElement,i={height:this.itemHeight+"px"};return this.options.map((function(s,n){var o,a=t.getOptionText(s),r=k(s),c={style:i,attrs:{role:"button",tabindex:r?-1:0},class:[x("item",{disabled:r,selected:n===t.currentIndex})],on:{click:function(){t.onClickItem(n)}}},l={class:"van-ellipsis",domProps:(o={},o[t.allowHtml?"innerHTML":"textContent"]=a,o)};return e("li",h()([{},c]),[e("div",h()([{},l]))])}))}},render:function(){var t=arguments[0],e={transform:"translate3d(0, "+(this.offset+this.baseOffset)+"px, 0)",transitionDuration:this.duration+"ms",transitionProperty:this.duration?"all":"none"};return t("div",{class:[x(),this.className]},[t("ul",{ref:"wrapper",style:e,class:x("wrapper"),on:{transitionend:this.onTransitionEnd}},[this.genOptions()])])}}),w=Object(n["a"])("picker"),I=w[0],j=w[1],T=w[2];e["a"]=I({props:Object(s["a"])(Object(s["a"])({},c["b"]),{},{defaultIndex:{type:[Number,String],default:0},columns:{type:Array,default:function(){return[]}},toolbarPosition:{type:String,default:"top"},valueKey:{type:String,default:"text"}}),data:function(){return{children:[],formattedColumns:[]}},computed:{itemPxHeight:function(){return this.itemHeight?Object(l["b"])(this.itemHeight):c["a"]},dataType:function(){var t=this.columns,e=t[0]||{};return e.children?"cascade":e.values?"object":"text"}},watch:{columns:{handler:"format",immediate:!0}},methods:{format:function(){var t=this.columns,e=this.dataType;"text"===e?this.formattedColumns=[{values:t}]:"cascade"===e?this.formatCascade():this.formattedColumns=t},formatCascade:function(){var t=[],e={children:this.columns};while(e&&e.children){var i=Object(o["b"])(e.defaultIndex)?e.defaultIndex:+this.defaultIndex;t.push({values:e.children,className:e.className,defaultIndex:i}),e=e.children[i]}this.formattedColumns=t},emit:function(t){var e=this;if("text"===this.dataType)this.$emit(t,this.getColumnValue(0),this.getColumnIndex(0));else{var i=this.getValues();"cascade"===this.dataType&&(i=i.map((function(t){return t[e.valueKey]}))),this.$emit(t,i,this.getIndexes())}},onCascadeChange:function(t){for(var e={children:this.columns},i=this.getIndexes(),s=0;s<=t;s++)e=e.children[i[s]];while(e&&e.children)t++,this.setColumnValues(t,e.children),e=e.children[e.defaultIndex||0]},onChange:function(t){var e=this;if("cascade"===this.dataType&&this.onCascadeChange(t),"text"===this.dataType)this.$emit("change",this,this.getColumnValue(0),this.getColumnIndex(0));else{var i=this.getValues();"cascade"===this.dataType&&(i=i.map((function(t){return t[e.valueKey]}))),this.$emit("change",this,i,t)}},getColumn:function(t){return this.children[t]},getColumnValue:function(t){var e=this.getColumn(t);return e&&e.getValue()},setColumnValue:function(t,e){var i=this.getColumn(t);i&&(i.setValue(e),"cascade"===this.dataType&&this.onCascadeChange(t))},getColumnIndex:function(t){return(this.getColumn(t)||{}).currentIndex},setColumnIndex:function(t,e){var i=this.getColumn(t);i&&(i.setIndex(e),"cascade"===this.dataType&&this.onCascadeChange(t))},getColumnValues:function(t){return(this.children[t]||{}).options},setColumnValues:function(t,e){var i=this.children[t];i&&i.setOptions(e)},getValues:function(){return this.children.map((function(t){return t.getValue()}))},setValues:function(t){var e=this;t.forEach((function(t,i){e.setColumnValue(i,t)}))},getIndexes:function(){return this.children.map((function(t){return t.currentIndex}))},setIndexes:function(t){var e=this;t.forEach((function(t,i){e.setColumnIndex(i,t)}))},confirm:function(){this.children.forEach((function(t){return t.stopMomentum()})),this.emit("confirm")},cancel:function(){this.emit("cancel")},genTitle:function(){var t=this.$createElement,e=this.slots("title");return e||(this.title?t("div",{class:["van-ellipsis",j("title")]},[this.title]):void 0)},genToolbar:function(){var t=this.$createElement;if(this.showToolbar)return t("div",{class:j("toolbar")},[this.slots()||[t("button",{attrs:{type:"button"},class:j("cancel"),on:{click:this.cancel}},[this.cancelButtonText||T("cancel")]),this.genTitle(),t("button",{attrs:{type:"button"},class:j("confirm"),on:{click:this.confirm}},[this.confirmButtonText||T("confirm")])]])},genColumns:function(){var t=this.$createElement,e=this.itemPxHeight,i=e*this.visibleItemCount,s={height:e+"px"},n={height:i+"px"},o={backgroundSize:"100% "+(i-e)/2+"px"};return t("div",{class:j("columns"),style:n,on:{touchmove:a["c"]}},[this.genColumnItems(),t("div",{class:j("mask"),style:o}),t("div",{class:[r["f"],j("frame")],style:s})])},genColumnItems:function(){var t=this,e=this.$createElement;return this.formattedColumns.map((function(i,s){return e(S,{attrs:{valueKey:t.valueKey,allowHtml:t.allowHtml,className:i.className,itemHeight:t.itemPxHeight,defaultIndex:i.defaultIndex||+t.defaultIndex,swipeDuration:t.swipeDuration,visibleItemCount:t.visibleItemCount,initialOptions:i.values},on:{change:function(){t.onChange(s)}}})}))}},render:function(t){return t("div",{class:j()},["top"===this.toolbarPosition?this.genToolbar():t(),this.loading?t(d["a"],{class:j("loading")}):t(),this.slots("columns-top"),this.genColumns(),this.slots("columns-bottom"),"bottom"===this.toolbarPosition?this.genToolbar():t()])}})},"6f81":function(t,e,i){},"7be2":function(t,e,i){"use strict";i.d(e,"g",(function(){return s})),i.d(e,"d",(function(){return o})),i.d(e,"b",(function(){return a})),i.d(e,"a",(function(){return r})),i.d(e,"c",(function(){return c})),i.d(e,"e",(function(){return l})),i.d(e,"f",(function(){return d}));var s="#fff",n="van-hairline",o=n+"--top",a=n+"--left",r=n+"--bottom",c=n+"--surround",l=n+"--top-bottom",d=n+"-unset--top-bottom"},8094:function(t,e,i){"use strict";i.d(e,"a",(function(){return s})),i.d(e,"b",(function(){return n}));var s=44,n={title:String,loading:Boolean,itemHeight:[Number,String],showToolbar:Boolean,cancelButtonText:String,confirmButtonText:String,allowHtml:{type:Boolean,default:!0},visibleItemCount:{type:[Number,String],default:5},swipeDuration:{type:[Number,String],default:1e3}}},"8e8e":function(t,e,i){"use strict";i.d(e,"a",(function(){return r}));var s=i("e10b"),n=i("94e7"),o=i("cc52"),a=i("8e95"),r=function(t){var e=t.parent,i=t.bem,r=t.role;return{mixins:[Object(o["a"])(e),n["a"]],props:{name:null,value:null,disabled:Boolean,iconSize:[Number,String],checkedColor:String,labelPosition:String,labelDisabled:Boolean,shape:{type:String,default:"round"},bindGroup:{type:Boolean,default:!0}},computed:{disableBindRelation:function(){return!this.bindGroup},isDisabled:function(){return this.parent&&this.parent.disabled||this.disabled},direction:function(){return this.parent&&this.parent.direction||null},iconStyle:function(){var t=this.checkedColor||this.parent&&this.parent.checkedColor;if(t&&this.checked&&!this.isDisabled)return{borderColor:t,backgroundColor:t}},tabindex:function(){return this.isDisabled||"radio"===r&&!this.checked?-1:0}},methods:{onClick:function(t){var e=this,i=t.target,s=this.$refs.icon,n=s===i||s.contains(i);this.isDisabled||!n&&this.labelDisabled?this.$emit("click",t):(this.toggle(),setTimeout((function(){e.$emit("click",t)})))},genIcon:function(){var t=this.$createElement,e=this.checked,n=this.iconSize||this.parent&&this.parent.iconSize;return t("div",{ref:"icon",class:i("icon",[this.shape,{disabled:this.isDisabled,checked:e}]),style:{fontSize:Object(a["a"])(n)}},[this.slots("icon",{checked:e})||t(s["a"],{attrs:{name:"success"},style:this.iconStyle})])},genLabel:function(){var t=this.$createElement,e=this.slots();if(e)return t("span",{class:i("label",[this.labelPosition,{disabled:this.isDisabled}])},[e])}},render:function(){var t=arguments[0],e=[this.genIcon()];return"left"===this.labelPosition?e.unshift(this.genLabel()):e.push(this.genLabel()),t("div",{attrs:{role:r,tabindex:this.tabindex,"aria-checked":String(this.checked)},class:i([{disabled:this.isDisabled,"label-disabled":this.labelDisabled},this.direction]),on:{click:this.onClick}},[e])}}}},"94e7":function(t,e,i){"use strict";i.d(e,"a",(function(){return s}));var s={inject:{vanField:{default:null}},watch:{value:function(){var t=this.vanField;t&&(t.resetValidation(),t.validateWithTrigger("onChange"))}},created:function(){var t=this.vanField;t&&!t.children&&(t.children=this)}}},bd89:function(t,e,i){"use strict";var s=i("1bb4"),n=i("0261"),o=i("23c4"),a=i.n(o),r=i("292e"),c=i("8e95"),l=i("7be2"),d=i("fbbe"),u=i("06cb"),h=i("39bf"),f=i("e10b"),m=i("1132"),p=Object(r["a"])("button"),v=p[0],g=p[1];function b(t,e,i,s){var n,o=e.tag,r=e.icon,c=e.type,d=e.color,p=e.plain,v=e.disabled,b=e.loading,C=e.hairline,y=e.loadingText,_={};function x(t){b||v||(Object(u["a"])(s,"click",t),Object(h["a"])(s))}function O(t){Object(u["a"])(s,"touchstart",t)}d&&(_.color=p?d:l["g"],p||(_.background=d),-1!==d.indexOf("gradient")?_.border=0:_.borderColor=d);var k=[g([c,e.size,{plain:p,loading:b,disabled:v,hairline:C,block:e.block,round:e.round,square:e.square}]),(n={},n[l["c"]]=C,n)];function S(){var s,n=[];return b?n.push(t(m["a"],{class:g("loading"),attrs:{size:e.loadingSize,type:e.loadingType,color:"currentColor"}})):r&&n.push(t(f["a"],{attrs:{name:r,classPrefix:e.iconPrefix},class:g("icon")})),s=b?y:i.default?i.default():e.text,s&&n.push(t("span",{class:g("text")},[s])),n}return t(o,a()([{style:_,class:k,attrs:{type:e.nativeType,disabled:v},on:{click:x,touchstart:O}},Object(u["b"])(s)]),[t("div",{class:g("content")},[S()])])}b.props=Object(s["a"])(Object(s["a"])({},h["c"]),{},{text:String,icon:String,color:String,block:Boolean,plain:Boolean,round:Boolean,square:Boolean,loading:Boolean,hairline:Boolean,disabled:Boolean,iconPrefix:String,nativeType:String,loadingText:String,loadingType:String,tag:{type:String,default:"button"},type:{type:String,default:"default"},size:{type:String,default:"normal"},loadingSize:{type:String,default:"20px"}});var C,y=v(b),_=Object(r["a"])("dialog"),x=_[0],O=_[1],k=_[2],S=x({mixins:[Object(d["a"])()],props:{title:String,width:[Number,String],message:String,className:null,callback:Function,beforeClose:Function,messageAlign:String,cancelButtonText:String,cancelButtonColor:String,confirmButtonText:String,confirmButtonColor:String,showCancelButton:Boolean,transition:{type:String,default:"van-dialog-bounce"},showConfirmButton:{type:Boolean,default:!0},overlay:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!1},allowHtml:{type:Boolean,default:!0}},data:function(){return{loading:{confirm:!1,cancel:!1}}},methods:{onClickOverlay:function(){this.handleAction("overlay")},handleAction:function(t){var e=this;this.$emit(t),this.value&&(this.beforeClose?(this.loading[t]=!0,this.beforeClose(t,(function(i){!1!==i&&e.loading[t]&&e.onClose(t),e.loading.confirm=!1,e.loading.cancel=!1}))):this.onClose(t))},onClose:function(t){this.close(),this.callback&&this.callback(t)},onOpened:function(){this.$emit("opened")},onClosed:function(){this.$emit("closed")},genButtons:function(){var t,e=this,i=this.$createElement,s=this.showCancelButton&&this.showConfirmButton;return i("div",{class:[l["d"],O("footer",{buttons:s})]},[this.showCancelButton&&i(y,{attrs:{size:"large",loading:this.loading.cancel,text:this.cancelButtonText||k("cancel")},class:O("cancel"),style:{color:this.cancelButtonColor},on:{click:function(){e.handleAction("cancel")}}}),this.showConfirmButton&&i(y,{attrs:{size:"large",loading:this.loading.confirm,text:this.confirmButtonText||k("confirm")},class:[O("confirm"),(t={},t[l["b"]]=s,t)],style:{color:this.confirmButtonColor},on:{click:function(){e.handleAction("confirm")}}})])},genContent:function(t,e){var i=this.$createElement;if(e)return i("div",{class:O("content")},[e]);var s=this.message,n=this.messageAlign;if(s){var o,r,c={class:O("message",(o={"has-title":t},o[n]=n,o)),domProps:(r={},r[this.allowHtml?"innerHTML":"textContent"]=s,r)};return i("div",{class:O("content")},[i("div",a()([{},c]))])}}},render:function(){var t=arguments[0];if(this.shouldRender){var e=this.message,i=this.slots(),s=this.slots("title")||this.title,n=s&&t("div",{class:O("header",{isolated:!e&&!i})},[s]);return t("transition",{attrs:{name:this.transition},on:{afterEnter:this.onOpened,afterLeave:this.onClosed}},[t("div",{directives:[{name:"show",value:this.value}],attrs:{role:"dialog","aria-labelledby":this.title||e},class:[O(),this.className],style:{width:Object(c["a"])(this.width)}},[n,this.genContent(s,i),this.genButtons()])])}}}),w=i("6f1a");function I(t){return document.body.contains(t)}function j(){C&&C.$destroy(),C=new(n["a"].extend(S))({el:document.createElement("div"),propsData:{lazyRender:!1}}),C.$on("input",(function(t){C.value=t}))}function T(t){return w["f"]?Promise.resolve():new Promise((function(e,i){C&&I(C.$el)||j(),Object(s["a"])(C,T.currentOptions,t,{resolve:e,reject:i})}))}T.defaultOptions={value:!0,title:"",width:"",message:"",overlay:!0,className:"",allowHtml:!0,lockScroll:!0,transition:"van-dialog-bounce",beforeClose:null,overlayClass:"",overlayStyle:null,messageAlign:"",getContainer:"body",cancelButtonText:"",cancelButtonColor:null,confirmButtonText:"",confirmButtonColor:null,showConfirmButton:!0,showCancelButton:!1,closeOnPopstate:!1,closeOnClickOverlay:!1,callback:function(t){C["confirm"===t?"resolve":"reject"](t)}},T.alert=T,T.confirm=function(t){return T(Object(s["a"])({showCancelButton:!0},t))},T.close=function(){C&&(C.value=!1)},T.setDefaultOptions=function(t){Object(s["a"])(T.currentOptions,t)},T.resetDefaultOptions=function(){T.currentOptions=Object(s["a"])({},T.defaultOptions)},T.resetDefaultOptions(),T.install=function(){n["a"].use(S)},T.Component=S,n["a"].prototype.$dialog=T;e["a"]=T},cc18:function(t,e,i){"use strict";i.r(e);var s=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("section",{staticClass:"addressp "},[i("Header",{attrs:{title:t.title,historyb:t.historyb},on:{toSomeThing:t.toSomeThingGo}}),t.isEdit?t._e():i("div",{staticClass:"list-box "},[i("p",{staticClass:"hint van-hairline--bottom"},[t._v("\n 已创建"),i("span",{staticClass:"f-blue"},[t._v(t._s(t.addressList.length))]),t._v("个收货地址,最多\n "),i("span",{staticClass:"f-blue"},[t._v("20")]),t._v("个\n ")]),i("div",{staticClass:"data-box"},t._l(t.addressList,(function(e){return i("div",{staticClass:"block-group van-hairline--top-bottom"},[i("ul",{staticClass:"mui-row "},[i("li",{staticClass:"mui-col-sm-6 mui-col-xs-6"},[i("span",{staticClass:"fl"},[t._v("收货人:")]),i("p",[t._v(t._s(e.consignee))])]),i("li",{staticClass:"mui-col-sm-6 mui-col-xs-6"},[i("span",{staticClass:"fl"},[t._v("联系电话:")]),i("p",[t._v(t._s(e.mobile))])]),i("li",{staticClass:"mui-col-sm-12 mui-col-xs-12 clr"},[i("span",{staticClass:"fl"},[t._v("收货地址:")]),i("p",[t._v(t._s(e.province_val+" "+e.district_val+" "+e.city_val+" "+e.detail_address))])])]),i("div",{staticClass:"button clr"},[i("p",{staticClass:"fr"},[i("a",{staticClass:"f-black editx",attrs:{href:"javascript:void('0')"},on:{click:function(i){return t.editAdress(e.address_id)}}},[i("i",{staticClass:"iconfont icon-bianji"}),t._v("编辑\n ")]),i("a",{staticClass:"f-black delBtn",attrs:{href:"javascript:void('0')"},on:{click:function(i){return t.deleteAdress(e.address_id)}}},[i("i",{staticClass:"iconfont icon-shanchu"}),t._v("删除\n ")])]),i("van-checkbox",{staticClass:"fl",on:{click:function(i){return t.setDefault(e.address_id,e.is_default)}},model:{value:1==e.is_default,callback:function(i){t.$set(e,"is_default==1?true:false",i)},expression:"item.is_default==1?true:false"}},[t._v("默认地址")])],1)])})),0),i("div",{directives:[{name:"show",rawName:"v-show",value:!t.pointS,expression:"!pointS"}],staticClass:"but-foot",on:{click:t.addAssress}},[t._v("\n 新增地址 "),i("span",{staticClass:"icon iconfont"},[t._v("")])]),i("div",{directives:[{name:"show",rawName:"v-show",value:t.pointS,expression:"pointS"}],staticClass:"but-foot",on:{click:t.pointFunc}},[t._v("\n 保存\n ")])]),i("transition",{attrs:{name:"slide-right"}},[t.isEdit?i("div",{staticClass:"edit-box Router"},[i("div",{staticClass:"block"},[i("dl",{staticClass:"mui-row input-edit"},[i("dt",{staticClass:"mui-col-sm-3 mui-col-xs-3"},[t._v("收货人:")]),i("dd",{staticClass:"mui-col-sm-9 mui-col-xs-9"},[i("div",{staticClass:"mui-input-row add-input"},[i("input",{directives:[{name:"model",rawName:"v-model",value:t.consignee,expression:"consignee"}],attrs:{type:"text",placeholder:"请输入收货人"},domProps:{value:t.consignee},on:{input:function(e){e.target.composing||(t.consignee=e.target.value)}}})])])]),i("dl",{staticClass:"site-add-number mui-row input-edit"},[i("dt",{staticClass:"mui-col-sm-3 mui-col-xs-3 selectqu"},[i("div",{staticClass:"selectBoxqu "},[i("div",{staticClass:"czselect mmSelect",on:{click:function(e){t.selectState=!t.selectState}}},[i("span",[t._v(t._s(t.selectVal))]),i("i",{staticClass:"icon iconfont icon-jinru1 ",class:{"icon-down-trangle":t.selectState}})]),i("ul",{directives:[{name:"show",rawName:"v-show",value:t.selectState,expression:"selectState"}],staticClass:"selectquval"},t._l(t.areaList,(function(e,s){return i("li",{on:{click:function(e){return t.sectUi(s)}}},[i("span",{staticClass:"fl"},[t._v(t._s(s))]),i("span",{staticClass:"fr"},[t._v(t._s(e))])])})),0)])]),i("dd",{staticClass:"mui-col-sm-9 mui-col-xs-9"},[i("div",{staticClass:"mui-input-row add-input"},[i("input",{directives:[{name:"model",rawName:"v-model",value:t.mobile,expression:"mobile"}],attrs:{type:"text",placeholder:"请输入手机号",onkeyup:"if(event.keyCode !=37 && event.keyCode != 39){if (!/^[\\d]+$/ig.test(this.value)){this.value='';}}"},domProps:{value:t.mobile},on:{input:function(e){e.target.composing||(t.mobile=e.target.value)}}})])])]),i("dl",{staticClass:"mui-row input-edit"},[i("dt",{staticClass:"mui-col-sm-3 mui-col-xs-3"},[t._v("所在地区:")]),i("dd",{staticClass:"mui-col-sm-9 mui-col-xs-9"},[i("input",{directives:[{name:"model",rawName:"v-model",value:t.xgsdz,expression:"xgsdz"}],attrs:{type:"text",placeholder:"请输入地址",readonly:""},domProps:{value:t.xgsdz},on:{click:t.showp,input:function(e){e.target.composing||(t.xgsdz=e.target.value)}}})])]),i("div",{staticClass:"input-edit"},[i("textarea",{directives:[{name:"model",rawName:"v-model",value:t.detail_address,expression:"detail_address"}],attrs:{placeholder:"请输入详细街道地址,如幸福街道幸福路112号"},domProps:{value:t.detail_address},on:{input:function(e){e.target.composing||(t.detail_address=e.target.value)}}})])]),i("van-switch-cell",{attrs:{title:"设为默认地址"},model:{value:t.is_default,callback:function(e){t.is_default=e},expression:"is_default"}}),i("div",{staticClass:"tip-msg"},[t._v(t._s(t.tips))]),i("div",{staticClass:"add-btn",on:{click:t.submitGo}},[t._v("保存")])],1):t._e()]),t.loading?i("van-loading",{staticClass:"loading-background",attrs:{type:"spinner",color:"#000"}}):t._e(),i("van-popup",{attrs:{position:"bottom"},model:{value:t.showPicker,callback:function(e){t.showPicker=e},expression:"showPicker"}},[i("van-picker",{ref:"test123",attrs:{"show-toolbar":"",columns:t.columns},on:{cancel:function(e){t.showPicker=!1},confirm:t.onConfirm,change:t.onChange}})],1)],1)},n=[],o=(i("5ab2"),i("6d57"),i("e44b"),i("e10e"),i("9bef")),a=i("0261"),r=i("9f3a"),c=i("1132"),l=i("2b6e"),d=i("0aad"),u=i("d5d9"),h=i("0a68"),f=i("bd89"),m=i("292e"),p=i("8e95"),v={size:[Number,String],value:null,loading:Boolean,disabled:Boolean,activeColor:String,inactiveColor:String,activeValue:{type:null,default:!0},inactiveValue:{type:null,default:!1}},g=i("94e7"),b=Object(m["a"])("switch"),C=b[0],y=b[1],_=C({mixins:[g["a"]],props:v,computed:{checked:function(){return this.value===this.activeValue},style:function(){return{fontSize:Object(p["a"])(this.size),backgroundColor:this.checked?this.activeColor:this.inactiveColor}}},methods:{onClick:function(t){if(this.$emit("click",t),!this.disabled&&!this.loading){var e=this.checked?this.inactiveValue:this.activeValue;this.$emit("input",e),this.$emit("change",e)}},genLoading:function(){var t=this.$createElement;if(this.loading){var e=this.checked?this.activeColor:this.inactiveColor;return t(c["a"],{class:y("loading"),attrs:{color:e}})}}},render:function(){var t=arguments[0],e=this.checked,i=this.loading,s=this.disabled;return t("div",{class:y({on:e,loading:i,disabled:s}),attrs:{role:"switch","aria-checked":String(e)},style:this.style,on:{click:this.onClick}},[t("div",{class:y("node")},[this.genLoading()])])}}),x=i("1bb4"),O=i("23c4"),k=i.n(O),S=i("06cb"),w=i("b37d"),I=Object(m["a"])("switch-cell"),j=I[0],T=I[1];function $(t,e,i,s){return t(w["a"],k()([{attrs:{center:!0,size:e.cellSize,title:e.title,border:e.border},class:T([e.cellSize])},Object(S["b"])(s)]),[t(_,{props:Object(x["a"])({},e),on:Object(x["a"])({},s.listeners)})])}$.props=Object(x["a"])(Object(x["a"])({},v),{},{title:String,cellSize:String,border:{type:Boolean,default:!0},size:{type:String,default:"24px"}});var B=j($),P=i("57af");function V(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);e&&(s=s.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,s)}return i}function N(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?V(Object(i),!0).forEach((function(e){Object(o["a"])(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):V(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}a["a"].use(c["a"]).use(l["a"]).use(d["a"]).use(u["a"]).use(h["a"]).use(f["a"]).use(_).use(B);var E=[],A={},z={},D={name:"addressp",data:function(){return{title:"收货地址列表",isEdit:!1,historyb:!0,pointS:this.$route.query.points,iso:this.$route.query.fp,address_id_p:this.$route.query.address_id,zytp:this.$route.query.zyType,tips:"",edOrAdd:!1,edid:"",selectState:!1,selectVal:"0086",consignee:"",mobile:"",detail_address:"",is_default:!1,showPicker:!1,columns:[],com_province:"北京",com_city:"北京",com_area:"东城区",xgsdz:"",com_province_id:2,com_city_id:52,com_area_id:500}},computed:N({},Object(r["c"])({loading:function(t){return t.address.loading},addressList:function(t){return t.address.addressList},addressInfo:function(t){return t.address.addressInfo},addressInfoState:function(t){return t.address.addressInfoState},areaList:function(t){return t.address.areaList},addressAllInfo:function(t){return t.userInfo.addressInfo}})),watch:{addressInfoState:function(t){t&&(this.consignee=this.addressInfo.consignee,this.mobile=this.addressInfo.mobile,this.detail_address=this.addressInfo.detail_address,this.is_default=1==this.addressInfo.is_default,this.selectVal=this.addressInfo.intl_code,this.com_province=this.addressInfo.province_val,this.com_city=this.addressInfo.district_val,this.com_area=this.addressInfo.city_val,this.xgsdz=this.com_province+this.com_city+this.com_area,this.com_province_id=this.addressInfo.province,this.com_city_id=this.addressInfo.district,this.com_area_id=this.addressInfo.city)}},created:function(){this.$store.dispatch({type:"recvlistUser"}),this.$store.dispatch({type:"getOverseaMsgArea"}),this.$store.dispatch({type:"allAddressInfo"}),this.isOrder()},methods:{isOrder:function(){this.iso&&(this.address_id_p?this.editAdress(this.address_id_p,1):this.addAssress())},editUi:function(){this.isEdit?(this.title="收货地址列表",this.isEdit=!1):(this.title="编辑收货地址",this.isEdit=!0)},toSomeThingGo:function(){this.isEdit?this.editUi():history.go(-1)},addAssress:function(){20!=this.addressList.length?(this.editUi(),this.edOrAdd=!1,this.consignee="",this.mobile="",this.detail_address="",this.xgsdz="",this.is_default=!0,this.selectVal="0086",this.com_province_id=2,this.com_city_id=52,this.com_area_id=500,this.com_province="北京",this.com_city="北京",this.com_area="东城区"):Object(h["a"])({message:"最多只能设置20个收货地址",duration:2e3})},deleteAdress:function(t){var e=this;f["a"].confirm({message:"请确认是否要删除当前地址吗?"}).then((function(){e.$store.dispatch({type:"deleteAddress",address_id:t})})).catch((function(){}))},editAdress:function(t){this.editUi(),this.edOrAdd=!0,this.edid=t,this.$store.dispatch({type:"infoAddress",address_id:t})},sectUi:function(t){this.selectState=!1,this.selectVal=t},setDefault:function(t,e){1==e?Object(h["a"])({message:"当前地址已经是默认地址,请选择其他地址",duration:2e3}):this.$store.dispatch({type:"setdefault",address_id:t})},showp:function(){var t=this;this.showPicker=!this.showPicker;for(var e=this.addressAllInfo,i=0;i<e.length;i++){E.push({value:e[i].value,text:e[i].text}),A[e[i].text]=e[i].children;for(var s=e[i].children,n=0;n<s.length;n++)z[s[n].text]=s[n].children}this.columns=[{values:E,className:"column1"},{values:A[this.com_province],className:"column2"},{values:z[this.com_city],className:"column3"}],this.$nextTick((function(){t.$refs["test123"].setColumnValue(0,t.com_province),t.$refs["test123"].setColumnValue(1,t.com_city),t.$refs["test123"].setColumnValue(2,t.com_area)}))},onConfirm:function(t){this.showPicker=!1,this.com_province=t[0]["text"],this.com_city=t[1]["text"],this.com_area=t[2]["text"],this.xgsdz=this.com_province+this.com_city+this.com_area,this.com_province_id=t[0]["value"],this.com_city_id=t[1]["value"],this.com_area_id=t[2]["value"]},onChange:function(t,e){this.columns=[{values:E,className:"column1"},{values:A[e[0]["text"]],className:"column2"},{values:z[e[1]["text"]],className:"column3"}],t.setColumnValue(0,e[0]["text"]),t.setColumnValue(1,e[1]["text"]),t.setColumnValue(2,e[2]["text"])},pointFunc:function(){for(var t=this.addressList,e="",i=0;i<t.length;i++)1==t[i].is_default&&(e=t[i].address_id);e||Object(h["a"])({message:"请选择一个地址",duration:2e3}),this.$store.dispatch({type:"changeReceivePrizeAddress",point_exchange_id:this.pointS,address_id:e})},submitGo:function(){if(this.consignee)if(this.tips="",this.mobile)if(this.mobile.length<5||this.mobile.length>11)this.tips="手机号格式不正确";else{var t=/^[+]?\d*$/;if(t.test(this.mobile))if(this.tips="",this.com_province_id||this.com_city_id)if(this.tips="",this.detail_address){this.tips="";var e=this.edid;this.iso&&this.address_id_p&&(e=this.address_id_p),this.edOrAdd?this.$store.dispatch({type:"updateAddress",consignee:this.consignee,province:this.com_province_id,city:this.com_city_id,district:this.com_area_id,detail_address:this.detail_address,address_type:0,is_default:this.is_default?"1":0,mobile:this.mobile,intl_code:this.selectVal,address_id:e,orderpg:!!this.iso}):this.$store.dispatch({type:"createAddress",consignee:this.consignee,province:this.com_province_id,city:this.com_city_id,district:this.com_area_id,detail_address:this.detail_address,address_type:0,is_default:this.is_default?"1":0,mobile:this.mobile,intl_code:this.selectVal,orderpg:!!this.iso})}else this.tips="请输入详细收货地址";else this.tips="请选择省市区";else this.tips="手机号格式不正确"}else this.tips="请输入手机号";else this.tips="请输入收货人"}},components:{Header:P["a"]}},H=D,L=(i("1088"),i("9ca4")),M=Object(L["a"])(H,s,n,!1,null,"20e89a46",null);e["default"]=M.exports},cc52:function(t,e,i){"use strict";function s(t){var e=[];function i(t){t.forEach((function(t){e.push(t),t.componentInstance&&i(t.componentInstance.$children.map((function(t){return t.$vnode}))),t.children&&i(t.children)}))}return i(t),e}function n(t,e){var i=e.$vnode.componentOptions;if(i&&i.children){var n=s(i.children);t.sort((function(t,e){return n.indexOf(t.$vnode)-n.indexOf(e.$vnode)}))}}function o(t,e){var i,s;void 0===e&&(e={});var o=e.indexKey||"index";return{inject:(i={},i[t]={default:null},i),computed:(s={parent:function(){return this.disableBindRelation?null:this[t]}},s[o]=function(){return this.bindRelation(),this.parent?this.parent.children.indexOf(this):null},s),mounted:function(){this.bindRelation()},beforeDestroy:function(){var t=this;this.parent&&(this.parent.children=this.parent.children.filter((function(e){return e!==t})))},methods:{bindRelation:function(){if(this.parent&&-1===this.parent.children.indexOf(this)){var t=[].concat(this.parent.children,[this]);n(t,this.parent),this.parent.children=t}}}}}function a(t){return{provide:function(){var e;return e={},e[t]=this,e},data:function(){return{children:[]}}}}i.d(e,"a",(function(){return o})),i.d(e,"b",(function(){return a}))},d5d9:function(t,e,i){"use strict";var s=i("292e"),n=i("8e8e"),o=Object(s["a"])("checkbox"),a=o[0],r=o[1];e["a"]=a({mixins:[Object(n["a"])({bem:r,role:"checkbox",parent:"vanCheckbox"})],computed:{checked:{get:function(){return this.parent?-1!==this.parent.value.indexOf(this.name):this.value},set:function(t){this.parent?this.setParentValue(t):this.$emit("input",t)}}},watch:{value:function(t){this.$emit("change",t)}},methods:{toggle:function(t){var e=this;void 0===t&&(t=!this.checked),clearTimeout(this.toggleTask),this.toggleTask=setTimeout((function(){e.checked=t}))},setParentValue:function(t){var e=this.parent,i=e.value.slice();if(t){if(e.max&&i.length>=e.max)return;-1===i.indexOf(this.name)&&(i.push(this.name),e.$emit("input",i))}else{var s=i.indexOf(this.name);-1!==s&&(i.splice(s,1),e.$emit("input",i))}}}})}}]);
\ No newline at end of file
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