Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
梁建民
/
h5
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
48687601
authored
Oct 12, 2019
by
施宇
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
11
parent
09782492
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
25 additions
and
16 deletions
src/assets/css/user/coupon.less
src/assets/css/user/coupon.min.css
src/store/modules/sample/sampleapply.js
src/views/sample/sample.vue
view/14.js
view/31.js
view/app.js
src/assets/css/user/coupon.less
View file @
48687601
...
...
@@ -10,11 +10,13 @@
top:44px;
left:0px;
right:0px;
background:#fff;
z-index:99
}
}
/*优惠劵*/
.coupon-box{ padding:
0 5px
; }
.coupon-box{ padding:
44px 5px 0
; }
.coupon-box .block{overflow: hidden; margin-top: 15px; /*border-top: .1rem solid #fff;*/ border-radius: 5px; background: #fff;-webkit-box-shadow: 0 2px 5px #ddd;box-shadow: 0 2px 5px #ddd; }
.coupon-box .block dt{ width:125px; padding:10px 8px; float: left; }
.coupon-box .block dt h4{ font-size: 36px; font-family: Impact; height: 40px; line-height: 40px; text-align: center; }
...
...
src/assets/css/user/coupon.min.css
View file @
48687601
.coupon
{
background
:
#f8f8f8
}
.coupon
.van-tab--active
span
{
color
:
red
!important
}
.coupon
.van-tabs
.van-tabs__wrap
{
position
:
fixed
;
top
:
44px
;
left
:
0px
;
right
:
0px
}
.coupon
.coupon-box
{
padding
:
0
5px
}
.coupon
.coupon-box
.block
{
overflow
:
hidden
;
margin-top
:
15px
;
border-radius
:
5px
;
background
:
#fff
;
-webkit-box-shadow
:
0
2px
5px
#ddd
;
box-shadow
:
0
2px
5px
#ddd
}
.coupon
.coupon-box
.block
dt
{
width
:
125px
;
padding
:
10px
8px
;
float
:
left
}
.coupon
.coupon-box
.block
dt
h4
{
font-size
:
36px
;
font-family
:
Impact
;
height
:
40px
;
line-height
:
40px
;
text-align
:
center
}
.coupon
.coupon-box
.block
dt
h4
span
{
font-size
:
18px
;
position
:
relative
;
top
:
-15px
;
font-weight
:
400
;
line-height
:
20px
}
.coupon
.coupon-box
.block
dt
h4
b
{
font-size
:
16px
;
font-weight
:
400
;
line-height
:
20px
}
.coupon
.coupon-box
.block
dt
p
{
text-align
:
center
;
font-size
:
14px
;
padding-top
:
2.5px
;
line-height
:
16px
;
overflow
:
hidden
}
.coupon
.coupon-box
.block
.text
{
padding
:
10px
8px
8px
125px
;
position
:
relative
}
.coupon
.coupon-box
.block
.text
.tag
{
font-size
:
12px
;
position
:
absolute
;
top
:
0
;
right
:
0
;
display
:
block
;
width
:
50px
;
height
:
50px
}
.coupon
.coupon-box
.block
.text
.tag
span
{
-webkit-transform
:
rotate
(
45deg
);
transform
:
rotate
(
45deg
);
position
:
absolute
;
top
:
8px
;
right
:
-3px
;
z-index
:
2
;
color
:
#fff
;
overflow
:
hidden
;
display
:
block
;
width
:
40px
;
text-align
:
center
}
.coupon
.coupon-box
.block
.text
.tag
i
{
position
:
absolute
;
top
:
0
;
right
:
0
;
z-index
:
1
;
display
:
block
;
border-top
:
50px
solid
red
;
border-left
:
50px
solid
transparent
}
.coupon
.coupon-box
.block
.text
h4
{
padding-right
:
50px
;
font-size
:
12px
;
color
:
#666
;
font-weight
:
400
;
line-height
:
20px
;
height
:
40px
;
overflow
:
hidden
}
.coupon
.coupon-box
.block
.text
h4
b
{
position
:
relative
;
color
:
#fff
;
display
:
inline-block
;
height
:
16px
;
font-weight
:
400
;
line-height
:
16px
;
padding
:
0
5px
;
margin
:
5px
6px
}
.coupon
.coupon-box
.block
.text
h4
i
{
float
:
left
;
position
:
absolute
;
top
:
0
;
left
:
-12px
;
content
:
""
;
height
:
0
;
width
:
0
;
pointer-events
:
none
;
border
:
solid
transparent
;
border-width
:
8px
6px
}
.coupon
.coupon-box
.block
.text
p
{
font-size
:
12px
;
position
:
relative
}
.coupon
.coupon-box
.block
.text
p
span
{
padding-top
:
12px
;
display
:
block
;
color
:
#999
}
.coupon
.coupon-box
.block
.text
.but-bg
{
height
:
30px
;
line-height
:
30px
;
font-size
:
14px
;
border-radius
:
30px
;
padding
:
0
12px
;
text-decoration
:
none
;
text-align
:
center
;
background
:
#fff
}
.coupon
.coupon-box
.block
.text
.but-bg
:hover
{
color
:
#fff
}
.coupon
.coupon-box
.box-orange
.text
.but-bg
{
color
:
#ffa200
;
border
:
1px
solid
#ffa200
}
.coupon
.coupon-box
.box-blue
.text
.but-bg
{
color
:
#1080d0
;
border
:
1px
solid
#1080d0
}
.coupon
.coupon-box
.box-green
.text
.but-bg
{
color
:
#52bd61
;
border
:
1px
solid
#52bd61
}
.coupon
.coupon-box
.box-gray
.text
.but-bg
{
color
:
#999999
;
border
:
1px
solid
#999999
}
.coupon
.coupon-box
.block
.number
{
height
:
33px
;
padding
:
8px
;
font-size
:
12px
;
color
:
#666
;
background
:
url(https://m.ichunt.com/v3/dist/res/m/images/coupon/coupon_bg.png)
repeat-x
;
background-size
:
12px
}
.coupon
.coupon-box
.box-orange
.text
.tag
i
{
border-top-color
:
#ffa200
}
.coupon
.coupon-box
.box-orange
dt
,
.coupon
.coupon-box
.box-orange
dt
p
{
color
:
#ffa200
}
.coupon
.coupon-box
.box-orange
.text
h4
b
,
.coupon
.coupon-box
.box-orange
.text
.but-bg
:hover
{
background
:
#ffa200
}
.coupon
.coupon-box
.box-orange
.text
h4
i
{
border-right-color
:
#ffa200
}
.coupon
.coupon-box
.box-blue
.text
.tag
i
{
border-top-color
:
#1080d0
}
.coupon
.coupon-box
.box-blue
dt
,
.coupon
.coupon-box
.box-blue
dt
p
{
color
:
#1080d0
}
.coupon
.coupon-box
.box-blue
.text
h4
b
,
.coupon
.coupon-box
.box-blue
.text
.but-bg
:hover
{
background
:
#1080d0
}
.coupon
.coupon-box
.box-blue
.text
h4
i
{
border-right-color
:
#1080d0
}
.coupon
.coupon-box
.box-green
.text
.tag
i
{
border-top-color
:
#52bd61
}
.coupon
.coupon-box
.box-green
dt
,
.coupon
.coupon-box
.box-green
dt
p
{
color
:
#52bd61
}
.coupon
.coupon-box
.box-green
.text
h4
b
,
.coupon
.coupon-box
.box-green
.text
.but-bg
:hover
{
background
:
#52bd61
}
.coupon
.coupon-box
.box-green
.text
h4
i
{
border-right-color
:
#52bd61
}
.coupon
.coupon-box
.box-gray
.text
.tag
i
{
border-top-color
:
#999999
}
.coupon
.coupon-box
.box-gray
dt
,
.coupon
.coupon-box
.box-gray
dt
p
{
color
:
#999999
}
.coupon
.coupon-box
.box-gray
.text
h4
b
,
.coupon
.coupon-box
.box-gray
.text
.but-bg
:hover
{
background
:
#999999
}
.coupon
.coupon-box
.box-gray
.text
h4
i
{
border-right-color
:
#999999
}
.coupon
.coupon-box
.box-orange
.text
h4
span
{
color
:
#ffa200
}
.coupon
.coupon-box
.box-blue
.text
h4
span
{
color
:
#1080d0
}
.coupon
.coupon-box
.box-green
.text
h4
span
{
color
:
#52bd61
}
.coupon
.coupon-box
i
.icon-get
{
font-size
:
72px
;
position
:
absolute
;
right
:
10px
;
top
:
-50px
;
text-align
:
right
;
color
:
#999
}
.coupon
.coupon-box
.dangxuan
{
height
:
30px
}
.coupon
.coupon-box
.dangxuan
span
{
font-size
:
12px
;
float
:
left
;
padding-top
:
13px
}
.coupon
.coupon-box
.dangxuan
.mui-radio
{
float
:
right
;
width
:
28px
;
margin-top
:
13px
}
.coupon
.coupon-box
.dangxuan
.mui-radio
input
[
type
=
'radio'
]
{
right
:
0
;
top
:
0
;
width
:
18px
}
.coupon
.coupon-box
.nonuse
{
overflow
:
hidden
;
margin-top
:
15px
;
height
:
30px
;
line-height
:
30px
;
font-size
:
14px
;
border-radius
:
5px
;
background
:
#fff
;
-webkit-box-shadow
:
0
2px
3px
#eeeeee
;
box-shadow
:
0
2px
3px
#eeeeee
}
.coupon
.coupon-box
.nonuse
span
{
font-size
:
14px
;
float
:
left
;
padding-top
:
0
;
padding-left
:
5px
;
color
:
#666
}
.coupon
.coupon-box
.nonuse
.dangxuan
.mui-radio
{
margin
:
8px
5px
0
0
}
.coupon
.coupon_no
{
text-align
:
center
;
padding
:
25px
20px
}
.coupon
.coupon_no
dd
{
font-size
:
12px
}
.coupon
.coupon_no
span
{
width
:
162px
;
height
:
182px
;
padding-bottom
:
20px
;
display
:
inline-block
;
background
:
url(https://m.ichunt.com/v3/dist/res/m/images/coupon/coupon_no.png)
;
background-size
:
contain
;
background-repeat
:
no-repeat
}
\ No newline at end of file
.coupon
{
background
:
#f8f8f8
}
.coupon
.van-tab--active
span
{
color
:
red
!important
}
.coupon
.van-tabs
.van-tabs__wrap
{
position
:
fixed
;
top
:
44px
;
left
:
0px
;
right
:
0px
;
background
:
#fff
;
z-index
:
99
;}
.coupon
.coupon-box
{
padding
:
44px
5px
0
;}
.coupon
.coupon-box
.block
{
overflow
:
hidden
;
margin-top
:
15px
;
border-radius
:
5px
;
background
:
#fff
;
-webkit-box-shadow
:
0
2px
5px
#ddd
;
box-shadow
:
0
2px
5px
#ddd
}
.coupon
.coupon-box
.block
dt
{
width
:
125px
;
padding
:
10px
8px
;
float
:
left
}
.coupon
.coupon-box
.block
dt
h4
{
font-size
:
36px
;
font-family
:
Impact
;
height
:
40px
;
line-height
:
40px
;
text-align
:
center
}
.coupon
.coupon-box
.block
dt
h4
span
{
font-size
:
18px
;
position
:
relative
;
top
:
-15px
;
font-weight
:
400
;
line-height
:
20px
}
.coupon
.coupon-box
.block
dt
h4
b
{
font-size
:
16px
;
font-weight
:
400
;
line-height
:
20px
}
.coupon
.coupon-box
.block
dt
p
{
text-align
:
center
;
font-size
:
14px
;
padding-top
:
2.5px
;
line-height
:
16px
;
overflow
:
hidden
}
.coupon
.coupon-box
.block
.text
{
padding
:
10px
8px
8px
125px
;
position
:
relative
}
.coupon
.coupon-box
.block
.text
.tag
{
font-size
:
12px
;
position
:
absolute
;
top
:
0
;
right
:
0
;
display
:
block
;
width
:
50px
;
height
:
50px
}
.coupon
.coupon-box
.block
.text
.tag
span
{
-webkit-transform
:
rotate
(
45deg
);
transform
:
rotate
(
45deg
);
position
:
absolute
;
top
:
8px
;
right
:
-3px
;
z-index
:
2
;
color
:
#fff
;
overflow
:
hidden
;
display
:
block
;
width
:
40px
;
text-align
:
center
}
.coupon
.coupon-box
.block
.text
.tag
i
{
position
:
absolute
;
top
:
0
;
right
:
0
;
z-index
:
1
;
display
:
block
;
border-top
:
50px
solid
red
;
border-left
:
50px
solid
transparent
}
.coupon
.coupon-box
.block
.text
h4
{
padding-right
:
50px
;
font-size
:
12px
;
color
:
#666
;
font-weight
:
400
;
line-height
:
20px
;
height
:
40px
;
overflow
:
hidden
}
.coupon
.coupon-box
.block
.text
h4
b
{
position
:
relative
;
color
:
#fff
;
display
:
inline-block
;
height
:
16px
;
font-weight
:
400
;
line-height
:
16px
;
padding
:
0
5px
;
margin
:
5px
6px
}
.coupon
.coupon-box
.block
.text
h4
i
{
float
:
left
;
position
:
absolute
;
top
:
0
;
left
:
-12px
;
content
:
""
;
height
:
0
;
width
:
0
;
pointer-events
:
none
;
border
:
solid
transparent
;
border-width
:
8px
6px
}
.coupon
.coupon-box
.block
.text
p
{
font-size
:
12px
;
position
:
relative
}
.coupon
.coupon-box
.block
.text
p
span
{
padding-top
:
12px
;
display
:
block
;
color
:
#999
}
.coupon
.coupon-box
.block
.text
.but-bg
{
height
:
30px
;
line-height
:
30px
;
font-size
:
14px
;
border-radius
:
30px
;
padding
:
0
12px
;
text-decoration
:
none
;
text-align
:
center
;
background
:
#fff
}
.coupon
.coupon-box
.block
.text
.but-bg
:hover
{
color
:
#fff
}
.coupon
.coupon-box
.box-orange
.text
.but-bg
{
color
:
#ffa200
;
border
:
1px
solid
#ffa200
}
.coupon
.coupon-box
.box-blue
.text
.but-bg
{
color
:
#1080d0
;
border
:
1px
solid
#1080d0
}
.coupon
.coupon-box
.box-green
.text
.but-bg
{
color
:
#52bd61
;
border
:
1px
solid
#52bd61
}
.coupon
.coupon-box
.box-gray
.text
.but-bg
{
color
:
#999999
;
border
:
1px
solid
#999999
}
.coupon
.coupon-box
.block
.number
{
height
:
33px
;
padding
:
8px
;
font-size
:
12px
;
color
:
#666
;
background
:
url(https://m.ichunt.com/v3/dist/res/m/images/coupon/coupon_bg.png)
repeat-x
;
background-size
:
12px
}
.coupon
.coupon-box
.box-orange
.text
.tag
i
{
border-top-color
:
#ffa200
}
.coupon
.coupon-box
.box-orange
dt
,
.coupon
.coupon-box
.box-orange
dt
p
{
color
:
#ffa200
}
.coupon
.coupon-box
.box-orange
.text
h4
b
,
.coupon
.coupon-box
.box-orange
.text
.but-bg
:hover
{
background
:
#ffa200
}
.coupon
.coupon-box
.box-orange
.text
h4
i
{
border-right-color
:
#ffa200
}
.coupon
.coupon-box
.box-blue
.text
.tag
i
{
border-top-color
:
#1080d0
}
.coupon
.coupon-box
.box-blue
dt
,
.coupon
.coupon-box
.box-blue
dt
p
{
color
:
#1080d0
}
.coupon
.coupon-box
.box-blue
.text
h4
b
,
.coupon
.coupon-box
.box-blue
.text
.but-bg
:hover
{
background
:
#1080d0
}
.coupon
.coupon-box
.box-blue
.text
h4
i
{
border-right-color
:
#1080d0
}
.coupon
.coupon-box
.box-green
.text
.tag
i
{
border-top-color
:
#52bd61
}
.coupon
.coupon-box
.box-green
dt
,
.coupon
.coupon-box
.box-green
dt
p
{
color
:
#52bd61
}
.coupon
.coupon-box
.box-green
.text
h4
b
,
.coupon
.coupon-box
.box-green
.text
.but-bg
:hover
{
background
:
#52bd61
}
.coupon
.coupon-box
.box-green
.text
h4
i
{
border-right-color
:
#52bd61
}
.coupon
.coupon-box
.box-gray
.text
.tag
i
{
border-top-color
:
#999999
}
.coupon
.coupon-box
.box-gray
dt
,
.coupon
.coupon-box
.box-gray
dt
p
{
color
:
#999999
}
.coupon
.coupon-box
.box-gray
.text
h4
b
,
.coupon
.coupon-box
.box-gray
.text
.but-bg
:hover
{
background
:
#999999
}
.coupon
.coupon-box
.box-gray
.text
h4
i
{
border-right-color
:
#999999
}
.coupon
.coupon-box
.box-orange
.text
h4
span
{
color
:
#ffa200
}
.coupon
.coupon-box
.box-blue
.text
h4
span
{
color
:
#1080d0
}
.coupon
.coupon-box
.box-green
.text
h4
span
{
color
:
#52bd61
}
.coupon
.coupon-box
i
.icon-get
{
font-size
:
72px
;
position
:
absolute
;
right
:
10px
;
top
:
-50px
;
text-align
:
right
;
color
:
#999
}
.coupon
.coupon-box
.dangxuan
{
height
:
30px
}
.coupon
.coupon-box
.dangxuan
span
{
font-size
:
12px
;
float
:
left
;
padding-top
:
13px
}
.coupon
.coupon-box
.dangxuan
.mui-radio
{
float
:
right
;
width
:
28px
;
margin-top
:
13px
}
.coupon
.coupon-box
.dangxuan
.mui-radio
input
[
type
=
'radio'
]
{
right
:
0
;
top
:
0
;
width
:
18px
}
.coupon
.coupon-box
.nonuse
{
overflow
:
hidden
;
margin-top
:
15px
;
height
:
30px
;
line-height
:
30px
;
font-size
:
14px
;
border-radius
:
5px
;
background
:
#fff
;
-webkit-box-shadow
:
0
2px
3px
#eeeeee
;
box-shadow
:
0
2px
3px
#eeeeee
}
.coupon
.coupon-box
.nonuse
span
{
font-size
:
14px
;
float
:
left
;
padding-top
:
0
;
padding-left
:
5px
;
color
:
#666
}
.coupon
.coupon-box
.nonuse
.dangxuan
.mui-radio
{
margin
:
8px
5px
0
0
}
.coupon
.coupon_no
{
text-align
:
center
;
padding
:
25px
20px
}
.coupon
.coupon_no
dd
{
font-size
:
12px
}
.coupon
.coupon_no
span
{
width
:
162px
;
height
:
182px
;
padding-bottom
:
20px
;
display
:
inline-block
;
background
:
url(https://m.ichunt.com/v3/dist/res/m/images/coupon/coupon_no.png)
;
background-size
:
contain
;
background-repeat
:
no-repeat
}
\ No newline at end of file
src/store/modules/sample/sampleapply.js
View file @
48687601
...
...
@@ -52,6 +52,8 @@ const actions = {
if
(
data
.
err_code
==
0
)
{
state
.
submitState
=
true
;
state
.
ordernum
=
data
.
data
||
''
}
else
if
(
data
.
err_code
==
'40014'
){
Toast
(
'样品库存不足'
);
}
else
{
Toast
(
data
.
err_msg
);
}
...
...
src/views/sample/sample.vue
View file @
48687601
...
...
@@ -5,7 +5,7 @@
<div
class=
"banner"
></div>
<div
class=
"zititle"
>
<span>
猎芯自营
</span>
<font>
品现货 1片起订 3小时发货
</font>
<font>
正
品现货 1片起订 3小时发货
</font>
</div>
<div
class=
"fx_text"
v-if=
"fxType"
>
<!-- 邀请记录不为0 -->
...
...
@@ -65,7 +65,7 @@
<span>
最大可申请数量:
</span>
{{
v
.
max_number
}}
</p>
<div
class=
"btnx"
@
click=
"yaoqing(v
.goods_id
)"
>
领取样品
</div>
<div
class=
"btnx"
@
click=
"yaoqing(v)"
>
领取样品
</div>
</div>
</div>
</van-list>
...
...
@@ -197,7 +197,7 @@ export default {
})
.
catch
(
function
(
err
)
{});
},
yaoqing
(
i
d
)
{
yaoqing
(
i
tem
)
{
let
loginpta
=
util
.
isLogin
()
//1强登入态
if
(
loginpta
!=
1
)
{
window
.
location
.
href
=
...
...
@@ -205,12 +205,17 @@ export default {
return
;
}
else
{
if
(
this
.
applyCount
!=
0
)
{
this
.
$router
.
push
({
path
:
"/sampleapply"
,
query
:
{
id
:
id
}
});
if
(
item
.
goods_info
&&
item
.
goods_info
.
stock
){
this
.
$router
.
push
({
path
:
"/sampleapply"
,
query
:
{
id
:
item
.
goods_id
}
});
}
else
{
Toast
(
"样品库存不足"
);
}
}
else
{
this
.
getPop
=
true
;
}
...
...
view/14.js
View file @
48687601
...
...
@@ -20,7 +20,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core
/***/
(
function
(
module
,
__webpack_exports__
,
__webpack_require__
)
{
"use strict"
;
eval
(
"__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_js_modules_es7_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es7.object.get-own-property-descriptors */ \"./node_modules/_core-js@2.6.9@core-js/modules/es7.object.get-own-property-descriptors.js\");\n/* harmony import */ var core_js_modules_es7_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es7_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/web.dom.iterable */ \"./node_modules/_core-js@2.6.9@core-js/modules/web.dom.iterable.js\");\n/* harmony import */ var core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es6.array.iterator */ \"./node_modules/_core-js@2.6.9@core-js/modules/es6.array.iterator.js\");\n/* harmony import */ var core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es6.object.keys */ \"./node_modules/_core-js@2.6.9@core-js/modules/es6.object.keys.js\");\n/* harmony import */ var core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var E_h5_node_modules_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty */ \"./node_modules/_@babel_runtime@7.6.2@@babel/runtime/helpers/esm/defineProperty.js\");\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! vue */ \"./node_modules/_vue@2.6.10@vue/dist/vue.runtime.esm.js\");\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! vuex */ \"./node_modules/_vuex@3.1.1@vuex/dist/vuex.esm.js\");\n/* harmony import */ var _views_common_Header_vue__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @/views/common/Header.vue */ \"./src/views/common/Header.vue\");\n/* harmony import */ var _views_common_wxShare_vue__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @/views/common/wxShare.vue */ \"./src/views/common/wxShare.vue\");\n/* harmony import */ var _api_index__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../api/index */ \"./src/api/index.js\");\n/* harmony import */ var _util_index__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../util/index */ \"./src/util/index.js\");\n/* harmony import */ var vant__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! vant */ \"./node_modules/_vant@2.2.5@vant/es/index.js\");\n\n\n\n\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { Object(E_h5_node_modules_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n\n\n\n\nvue__WEBPACK_IMPORTED_MODULE_5__[\"default\"].use(vant__WEBPACK_IMPORTED_MODULE_11__[\"Tab\"]).use(vant__WEBPACK_IMPORTED_MODULE_11__[\"Tabs\"]).use(vant__WEBPACK_IMPORTED_MODULE_11__[\"Lazyload\"]).use(vant__WEBPACK_IMPORTED_MODULE_11__[\"Toast\"]);\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: \"sample\",\n data: function data() {\n return {\n title: \"猎芯网-自营样片\",\n meaushow: true,\n bgcolor: \"#fafafa\",\n color: \"#1080d0\",\n defaultcolor: \"#333\",\n swipeThreshold: 4,\n active: 0,\n getPop: false,\n //获得机会弹窗,没机会时展示\n loadingYp: false,\n applyCount: 0,\n inviteCount: 0,\n p: 1,\n classId: \"\",\n fxType: 0,\n shareUrl: window.location.origin + \"/v3/samplereg?uid=\" + _util_index__WEBPACK_IMPORTED_MODULE_10__[\"default\"].getCookie(\"Yo4teW_uid\")\n };\n },\n computed: _objectSpread({}, Object(vuex__WEBPACK_IMPORTED_MODULE_6__[\"mapState\"])({\n classList: function classList(state) {\n return state.sample.classList;\n },\n goodList: function goodList(state) {\n return state.sample.goodList;\n },\n finished: function finished(state) {\n return state.sample.finished;\n },\n loading: function loading(state) {\n return state.sample.loading;\n }\n })),\n watch: {\n loading: function loading(now) {\n this.loadingYp = now;\n },\n classList: function classList(now) {\n if (now.length) {\n this.p = 1;\n this.classId = now[0].id;\n this.getGoodList();\n }\n }\n },\n created: function created() {\n this.$store.dispatch({\n type: \"getClasslist\"\n });\n this.judgeLogin();\n },\n methods: {\n judgeLogin: function judgeLogin() {\n if (getCookie(\"Yo4teW_uid\")) {\n this.getCount();\n } else {\n this.fxType = 3;\n }\n },\n getGoodList: function getGoodList() {\n this.$store.dispatch({\n type: \"getGoodList\",\n data: {\n p: this.p,\n class_id: this.classId\n }\n });\n },\n changeTab: function changeTab(data) {\n this.p = 1;\n this.classId = data;\n this.getGoodList();\n },\n onLoad: function onLoad() {\n this.p++;\n this.getGoodList();\n },\n getuserf: function getuserf() {\n this.getPop = false;\n },\n getCount: function getCount() {\n var me = this;\n _api_index__WEBPACK_IMPORTED_MODULE_9__[\"services\"].getUserSampleInfo().then(function (res) {\n var data = res.data;\n\n if (data.err_code == 0) {\n me.applyCount = data.data.apply_count || 0;\n me.inviteCount = data.data.invite_count || 0;\n\n if (me.inviteCount == 0) {\n me.fxType = 2;\n } else {\n me.fxType = 1;\n }\n } else if (data.err_code == \"11012\") {\n window.location.href = \"/v3/login?referer=\" + encodeURIComponent(window.location.href);\n }\n }).catch(function (err) {});\n },\n yaoqing: function yaoqing(i
d) {\n var loginpta = _util_index__WEBPACK_IMPORTED_MODULE_10__[\"default\"].isLogin(); //1强登入态\n\n if (loginpta != 1) {\n window.location.href = \"/v3/login?referer=\" + encodeURIComponent(window.location.href);\n return;\n } else {\n if (this.applyCount != 0) {\n this.$router.push({\n path: \"/sampleapply\",\n query: {\n id: id\n }\n });
\n } else {\n this.getPop = true;\n }\n }\n }\n },\n components: {\n Header: _views_common_Header_vue__WEBPACK_IMPORTED_MODULE_7__[\"default\"],\n wxShare: _views_common_wxShare_vue__WEBPACK_IMPORTED_MODULE_8__[\"default\"],\n \"van-list\": vant__WEBPACK_IMPORTED_MODULE_11__[\"List\"]\n }\n});\n\n//# sourceURL=webpack:///./src/views/sample/sample.vue?./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.0.6@babel-loader/lib!./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.7.1@vue-loader/lib??vue-loader-options"
);
eval
(
"__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core_js_modules_es7_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es7.object.get-own-property-descriptors */ \"./node_modules/_core-js@2.6.9@core-js/modules/es7.object.get-own-property-descriptors.js\");\n/* harmony import */ var core_js_modules_es7_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es7_object_get_own_property_descriptors__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/web.dom.iterable */ \"./node_modules/_core-js@2.6.9@core-js/modules/web.dom.iterable.js\");\n/* harmony import */ var core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es6.array.iterator */ \"./node_modules/_core-js@2.6.9@core-js/modules/es6.array.iterator.js\");\n/* harmony import */ var core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es6.object.keys */ \"./node_modules/_core-js@2.6.9@core-js/modules/es6.object.keys.js\");\n/* harmony import */ var core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es6_object_keys__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var E_h5_node_modules_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/defineProperty */ \"./node_modules/_@babel_runtime@7.6.2@@babel/runtime/helpers/esm/defineProperty.js\");\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! vue */ \"./node_modules/_vue@2.6.10@vue/dist/vue.runtime.esm.js\");\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! vuex */ \"./node_modules/_vuex@3.1.1@vuex/dist/vuex.esm.js\");\n/* harmony import */ var _views_common_Header_vue__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @/views/common/Header.vue */ \"./src/views/common/Header.vue\");\n/* harmony import */ var _views_common_wxShare_vue__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @/views/common/wxShare.vue */ \"./src/views/common/wxShare.vue\");\n/* harmony import */ var _api_index__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../api/index */ \"./src/api/index.js\");\n/* harmony import */ var _util_index__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../util/index */ \"./src/util/index.js\");\n/* harmony import */ var vant__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! vant */ \"./node_modules/_vant@2.2.5@vant/es/index.js\");\n\n\n\n\n\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { Object(E_h5_node_modules_babel_runtime_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_4__[\"default\"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n\n\n\n\nvue__WEBPACK_IMPORTED_MODULE_5__[\"default\"].use(vant__WEBPACK_IMPORTED_MODULE_11__[\"Tab\"]).use(vant__WEBPACK_IMPORTED_MODULE_11__[\"Tabs\"]).use(vant__WEBPACK_IMPORTED_MODULE_11__[\"Lazyload\"]).use(vant__WEBPACK_IMPORTED_MODULE_11__[\"Toast\"]);\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: \"sample\",\n data: function data() {\n return {\n title: \"猎芯网-自营样片\",\n meaushow: true,\n bgcolor: \"#fafafa\",\n color: \"#1080d0\",\n defaultcolor: \"#333\",\n swipeThreshold: 4,\n active: 0,\n getPop: false,\n //获得机会弹窗,没机会时展示\n loadingYp: false,\n applyCount: 0,\n inviteCount: 0,\n p: 1,\n classId: \"\",\n fxType: 0,\n shareUrl: window.location.origin + \"/v3/samplereg?uid=\" + _util_index__WEBPACK_IMPORTED_MODULE_10__[\"default\"].getCookie(\"Yo4teW_uid\")\n };\n },\n computed: _objectSpread({}, Object(vuex__WEBPACK_IMPORTED_MODULE_6__[\"mapState\"])({\n classList: function classList(state) {\n return state.sample.classList;\n },\n goodList: function goodList(state) {\n return state.sample.goodList;\n },\n finished: function finished(state) {\n return state.sample.finished;\n },\n loading: function loading(state) {\n return state.sample.loading;\n }\n })),\n watch: {\n loading: function loading(now) {\n this.loadingYp = now;\n },\n classList: function classList(now) {\n if (now.length) {\n this.p = 1;\n this.classId = now[0].id;\n this.getGoodList();\n }\n }\n },\n created: function created() {\n this.$store.dispatch({\n type: \"getClasslist\"\n });\n this.judgeLogin();\n },\n methods: {\n judgeLogin: function judgeLogin() {\n if (getCookie(\"Yo4teW_uid\")) {\n this.getCount();\n } else {\n this.fxType = 3;\n }\n },\n getGoodList: function getGoodList() {\n this.$store.dispatch({\n type: \"getGoodList\",\n data: {\n p: this.p,\n class_id: this.classId\n }\n });\n },\n changeTab: function changeTab(data) {\n this.p = 1;\n this.classId = data;\n this.getGoodList();\n },\n onLoad: function onLoad() {\n this.p++;\n this.getGoodList();\n },\n getuserf: function getuserf() {\n this.getPop = false;\n },\n getCount: function getCount() {\n var me = this;\n _api_index__WEBPACK_IMPORTED_MODULE_9__[\"services\"].getUserSampleInfo().then(function (res) {\n var data = res.data;\n\n if (data.err_code == 0) {\n me.applyCount = data.data.apply_count || 0;\n me.inviteCount = data.data.invite_count || 0;\n\n if (me.inviteCount == 0) {\n me.fxType = 2;\n } else {\n me.fxType = 1;\n }\n } else if (data.err_code == \"11012\") {\n window.location.href = \"/v3/login?referer=\" + encodeURIComponent(window.location.href);\n }\n }).catch(function (err) {});\n },\n yaoqing: function yaoqing(i
tem) {\n var loginpta = _util_index__WEBPACK_IMPORTED_MODULE_10__[\"default\"].isLogin(); //1强登入态\n\n if (loginpta != 1) {\n window.location.href = \"/v3/login?referer=\" + encodeURIComponent(window.location.href);\n return;\n } else {\n if (this.applyCount != 0) {\n if (item.goods_info && item.goods_info.stock) {\n this.$router.push({\n path: \"/sampleapply\",\n query: {\n id: item.goods_id\n }\n });\n } else {\n Object(vant__WEBPACK_IMPORTED_MODULE_11__[\"Toast\"])(\"样品库存不足\");\n }
\n } else {\n this.getPop = true;\n }\n }\n }\n },\n components: {\n Header: _views_common_Header_vue__WEBPACK_IMPORTED_MODULE_7__[\"default\"],\n wxShare: _views_common_wxShare_vue__WEBPACK_IMPORTED_MODULE_8__[\"default\"],\n \"van-list\": vant__WEBPACK_IMPORTED_MODULE_11__[\"List\"]\n }\n});\n\n//# sourceURL=webpack:///./src/views/sample/sample.vue?./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--12-0!./node_modules/_babel-loader@8.0.6@babel-loader/lib!./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.7.1@vue-loader/lib??vue-loader-options"
);
/***/
}),
...
...
@@ -44,7 +44,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
/***/
(
function
(
module
,
__webpack_exports__
,
__webpack_require__
)
{
"use strict"
;
eval
(
"__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return staticRenderFns; });\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\n \"section\",\n { staticClass: \"sample\" },\n [\n _c(\"Header\", {\n attrs: {\n title: _vm.title,\n meaushow: _vm.meaushow,\n bgcolor: _vm.bgcolor\n }\n }),\n _c(\"wxShare\", { attrs: { url: _vm.shareUrl } }),\n _c(\"div\", { staticClass: \"banner\" }),\n _c(\n \"div\",\n { staticClass: \"zititle\" },\n [\n _c(\"span\", [_vm._v(\"猎芯自营\")]),\n _c(\"font\", [_vm._v(\"
品现货 1片起订 3小时发货\")])\n ],\n 1\n ),\n _vm.fxType\n ? _c(\"div\", { staticClass: \"fx_text\" }, [\n _vm.fxType == 1\n ? _c(\"div\", { staticClass: \"fx_text_one\" }, [\n _vm._v(\"\\n 我已邀请好友\\n \"),\n _c(\"span\", [_vm._v(_vm._s(_vm.inviteCount))]),\n _vm._v(\" 人,剩余领取次数\\n \"),\n _c(\"span\", [_vm._v(_vm._s(_vm.applyCount))]),\n _vm._v(\" 次\\n \")\n ])\n : _vm.fxType == 2\n ? _c(\"div\", { staticClass: \"fx_text_two\" }, [\n _vm._v(\"\\n 当前可领取次数为:\\n \"),\n _c(\"span\", [_vm._v(_vm._s(_vm.applyCount))]),\n _vm._v(\" 次,分享可额外获得领取机会\\n \")\n ])\n : _c(\"div\", { staticClass: \"fx_text_three\" }, [\n _vm._v(\"分享可额外获得领取机会\")\n ])\n ])\n : _vm._e(),\n _vm.classList.length\n ? _c(\n \"div\",\n { staticClass: \"nav\" },\n [\n _c(\n \"van-tabs\",\n {\n attrs: {\n color: _vm.color,\n \"swipe-threshold\": _vm.swipeThreshold,\n \"title-active-color\": _vm.color,\n \"title-inactive-color\": _vm.defaultcolor\n },\n on: { change: _vm.changeTab },\n model: {\n value: _vm.active,\n callback: function($$v) {\n _vm.active = $$v\n },\n expression: \"active\"\n }\n },\n _vm._l(_vm.classList, function(v, k) {\n return _c(\"van-tab\", {\n attrs: { title: v.class_name, name: v.id }\n })\n }),\n 1\n )\n ],\n 1\n )\n : _vm._e(),\n _c(\n \"div\",\n { staticClass: \"con\" },\n [\n _c(\n \"van-list\",\n {\n attrs: {\n finished: _vm.finished,\n \"finished-text\": \"我是有底线的噢\",\n \"immediate-check\": false\n },\n on: { load: _vm.onLoad },\n model: {\n value: _vm.loadingYp,\n callback: function($$v) {\n _vm.loadingYp = $$v\n },\n expression: \"loadingYp\"\n }\n },\n _vm._l(_vm.goodList, function(v, k) {\n return _c(\"div\", { staticClass: \"con-group clr\" }, [\n _c(\n \"div\",\n {\n directives: [\n {\n name: \"lazy-container\",\n rawName: \"v-lazy-container\",\n value: { selector: \"img\" },\n expression: \"{selector:'img'}\"\n }\n ],\n staticClass: \"fl img-box\"\n },\n [\n _c(\"img\", {\n staticClass: \"lazy img-lazy\",\n attrs: {\n alt: v.goods_info.goods_name,\n \"data-src\": v.goods_info.goods_images,\n \"data-error\":\n \"https://www.ichunt.com/v3/dist/res/m/images/materiel_img_3.png\"\n }\n })\n ]\n ),\n _c(\"div\", { staticClass: \"fr cb-box van-hairline--bottom\" }, [\n _c(\"div\", { staticClass: \"title\" }, [\n _vm._v(_vm._s(v.goods_info.goods_name))\n ]),\n _c(\"p\", [\n _c(\"span\", [_vm._v(\"类别:\")]),\n _vm._v(\n \"\\n \" +\n _vm._s(v.goods_info.class_id1_name) +\n \"\\n \"\n )\n ]),\n _c(\"p\", [\n _c(\"span\", [_vm._v(\"品牌:\")]),\n _vm._v(\n \"\\n \" +\n _vm._s(v.goods_info.brand_name) +\n \"\\n \"\n )\n ]),\n _c(\"p\", [\n _c(\"span\", [_vm._v(\"最大可申请数量:\")]),\n _vm._v(\n \"\\n \" + _vm._s(v.max_number) + \"\\n \"\n )\n ]),\n _c(\n \"div\",\n {\n staticClass: \"btnx\",\n on: {\n click: function($event) {\n return _vm.yaoqing(v.goods_id
)\n }\n }\n },\n [_vm._v(\"领取样品\")]\n )\n ])\n ])\n }),\n 0\n )\n ],\n 1\n ),\n _c(\n \"div\",\n {\n directives: [{ name: \"shareMask\", rawName: \"v-shareMask\" }],\n staticClass: \"fix-btns\"\n },\n [_vm._v(\"立即分享\")]\n ),\n _c(\n \"div\",\n {\n directives: [\n {\n name: \"show\",\n rawName: \"v-show\",\n value: _vm.getPop,\n expression: \"getPop\"\n }\n ],\n staticClass: \"get-user-pop\"\n },\n [\n _c(\"div\", { staticClass: \"mask\" }),\n _c(\"div\", { staticClass: \"get-user-con\" }, [\n _c(\"h3\", [\n _vm._v(\"\\n 您已将所有样片机会用完\\n \"),\n _c(\"i\", {\n staticClass: \"icon iconfont icon-guanbi\",\n on: { click: _vm.getuserf }\n })\n ]),\n _c(\"h2\", [\n _vm._v(\"邀请好友注册可额外获得一次样品申请机会,多邀多得\")\n ]),\n _c(\n \"span\",\n { directives: [{ name: \"shareMask\", rawName: \"v-shareMask\" }] },\n [_vm._v(\"点击邀请\")]\n )\n ])\n ]\n )\n ],\n 1\n )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack:///./src/views/sample/sample.vue?./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js?%7B%22cacheDirectory%22:%22node_modules/.cache/vue-loader%22,%22cacheIdentifier%22:%229bbfdd84-vue-loader-template%22%7D!./node_modules/_vue-loader@15.7.1@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.7.1@vue-loader/lib??vue-loader-options"
);
eval
(
"__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return staticRenderFns; });\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n return _c(\n \"section\",\n { staticClass: \"sample\" },\n [\n _c(\"Header\", {\n attrs: {\n title: _vm.title,\n meaushow: _vm.meaushow,\n bgcolor: _vm.bgcolor\n }\n }),\n _c(\"wxShare\", { attrs: { url: _vm.shareUrl } }),\n _c(\"div\", { staticClass: \"banner\" }),\n _c(\n \"div\",\n { staticClass: \"zititle\" },\n [\n _c(\"span\", [_vm._v(\"猎芯自营\")]),\n _c(\"font\", [_vm._v(\"
正品现货 1片起订 3小时发货\")])\n ],\n 1\n ),\n _vm.fxType\n ? _c(\"div\", { staticClass: \"fx_text\" }, [\n _vm.fxType == 1\n ? _c(\"div\", { staticClass: \"fx_text_one\" }, [\n _vm._v(\"\\n 我已邀请好友\\n \"),\n _c(\"span\", [_vm._v(_vm._s(_vm.inviteCount))]),\n _vm._v(\" 人,剩余领取次数\\n \"),\n _c(\"span\", [_vm._v(_vm._s(_vm.applyCount))]),\n _vm._v(\" 次\\n \")\n ])\n : _vm.fxType == 2\n ? _c(\"div\", { staticClass: \"fx_text_two\" }, [\n _vm._v(\"\\n 当前可领取次数为:\\n \"),\n _c(\"span\", [_vm._v(_vm._s(_vm.applyCount))]),\n _vm._v(\" 次,分享可额外获得领取机会\\n \")\n ])\n : _c(\"div\", { staticClass: \"fx_text_three\" }, [\n _vm._v(\"分享可额外获得领取机会\")\n ])\n ])\n : _vm._e(),\n _vm.classList.length\n ? _c(\n \"div\",\n { staticClass: \"nav\" },\n [\n _c(\n \"van-tabs\",\n {\n attrs: {\n color: _vm.color,\n \"swipe-threshold\": _vm.swipeThreshold,\n \"title-active-color\": _vm.color,\n \"title-inactive-color\": _vm.defaultcolor\n },\n on: { change: _vm.changeTab },\n model: {\n value: _vm.active,\n callback: function($$v) {\n _vm.active = $$v\n },\n expression: \"active\"\n }\n },\n _vm._l(_vm.classList, function(v, k) {\n return _c(\"van-tab\", {\n attrs: { title: v.class_name, name: v.id }\n })\n }),\n 1\n )\n ],\n 1\n )\n : _vm._e(),\n _c(\n \"div\",\n { staticClass: \"con\" },\n [\n _c(\n \"van-list\",\n {\n attrs: {\n finished: _vm.finished,\n \"finished-text\": \"我是有底线的噢\",\n \"immediate-check\": false\n },\n on: { load: _vm.onLoad },\n model: {\n value: _vm.loadingYp,\n callback: function($$v) {\n _vm.loadingYp = $$v\n },\n expression: \"loadingYp\"\n }\n },\n _vm._l(_vm.goodList, function(v, k) {\n return _c(\"div\", { staticClass: \"con-group clr\" }, [\n _c(\n \"div\",\n {\n directives: [\n {\n name: \"lazy-container\",\n rawName: \"v-lazy-container\",\n value: { selector: \"img\" },\n expression: \"{selector:'img'}\"\n }\n ],\n staticClass: \"fl img-box\"\n },\n [\n _c(\"img\", {\n staticClass: \"lazy img-lazy\",\n attrs: {\n alt: v.goods_info.goods_name,\n \"data-src\": v.goods_info.goods_images,\n \"data-error\":\n \"https://www.ichunt.com/v3/dist/res/m/images/materiel_img_3.png\"\n }\n })\n ]\n ),\n _c(\"div\", { staticClass: \"fr cb-box van-hairline--bottom\" }, [\n _c(\"div\", { staticClass: \"title\" }, [\n _vm._v(_vm._s(v.goods_info.goods_name))\n ]),\n _c(\"p\", [\n _c(\"span\", [_vm._v(\"类别:\")]),\n _vm._v(\n \"\\n \" +\n _vm._s(v.goods_info.class_id1_name) +\n \"\\n \"\n )\n ]),\n _c(\"p\", [\n _c(\"span\", [_vm._v(\"品牌:\")]),\n _vm._v(\n \"\\n \" +\n _vm._s(v.goods_info.brand_name) +\n \"\\n \"\n )\n ]),\n _c(\"p\", [\n _c(\"span\", [_vm._v(\"最大可申请数量:\")]),\n _vm._v(\n \"\\n \" + _vm._s(v.max_number) + \"\\n \"\n )\n ]),\n _c(\n \"div\",\n {\n staticClass: \"btnx\",\n on: {\n click: function($event) {\n return _vm.yaoqing(v
)\n }\n }\n },\n [_vm._v(\"领取样品\")]\n )\n ])\n ])\n }),\n 0\n )\n ],\n 1\n ),\n _c(\n \"div\",\n {\n directives: [{ name: \"shareMask\", rawName: \"v-shareMask\" }],\n staticClass: \"fix-btns\"\n },\n [_vm._v(\"立即分享\")]\n ),\n _c(\n \"div\",\n {\n directives: [\n {\n name: \"show\",\n rawName: \"v-show\",\n value: _vm.getPop,\n expression: \"getPop\"\n }\n ],\n staticClass: \"get-user-pop\"\n },\n [\n _c(\"div\", { staticClass: \"mask\" }),\n _c(\"div\", { staticClass: \"get-user-con\" }, [\n _c(\"h3\", [\n _vm._v(\"\\n 您已将所有样片机会用完\\n \"),\n _c(\"i\", {\n staticClass: \"icon iconfont icon-guanbi\",\n on: { click: _vm.getuserf }\n })\n ]),\n _c(\"h2\", [\n _vm._v(\"邀请好友注册可额外获得一次样品申请机会,多邀多得\")\n ]),\n _c(\n \"span\",\n { directives: [{ name: \"shareMask\", rawName: \"v-shareMask\" }] },\n [_vm._v(\"点击邀请\")]\n )\n ])\n ]\n )\n ],\n 1\n )\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack:///./src/views/sample/sample.vue?./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js?%7B%22cacheDirectory%22:%22node_modules/.cache/vue-loader%22,%22cacheIdentifier%22:%229bbfdd84-vue-loader-template%22%7D!./node_modules/_vue-loader@15.7.1@vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/_cache-loader@2.0.1@cache-loader/dist/cjs.js??ref--0-0!./node_modules/_vue-loader@15.7.1@vue-loader/lib??vue-loader-options"
);
/***/
}),
...
...
view/31.js
View file @
48687601
...
...
@@ -42,7 +42,7 @@ eval("exports = module.exports = __webpack_require__(/*! ../../../node_modules/_
/*! no static exports found */
/***/
(
function
(
module
,
exports
,
__webpack_require__
)
{
eval
(
"exports = module.exports = __webpack_require__(/*! ../../../../node_modules/_css-loader@1.0.1@css-loader/lib/css-base.js */ \"./node_modules/_css-loader@1.0.1@css-loader/lib/css-base.js\")(false);\n// imports\n\n\n// module\nexports.push([module.i, \".coupon{background:#f8f8f8}.coupon .van-tab--active span{color:red!important}.coupon .van-tabs .van-tabs__wrap{position:fixed;top:44px;left:0px;right:0px
}.coupon .coupon-box{padding:0 5px
}.coupon .coupon-box .block{overflow:hidden;margin-top:15px;border-radius:5px;background:#fff;-webkit-box-shadow:0 2px 5px #ddd;box-shadow:0 2px 5px #ddd}.coupon .coupon-box .block dt{width:125px;padding:10px 8px;float:left}.coupon .coupon-box .block dt h4{font-size:36px;font-family:Impact;height:40px;line-height:40px;text-align:center}.coupon .coupon-box .block dt h4 span{font-size:18px;position:relative;top:-15px;font-weight:400;line-height:20px}.coupon .coupon-box .block dt h4 b{font-size:16px;font-weight:400;line-height:20px}.coupon .coupon-box .block dt p{text-align:center;font-size:14px;padding-top:2.5px;line-height:16px;overflow:hidden}.coupon .coupon-box .block .text{padding:10px 8px 8px 125px;position:relative}.coupon .coupon-box .block .text .tag{font-size:12px;position:absolute;top:0;right:0;display:block;width:50px;height:50px}.coupon .coupon-box .block .text .tag span{-webkit-transform:rotate(45deg);transform:rotate(45deg);position:absolute;top:8px;right:-3px;z-index:2;color:#fff;overflow:hidden;display:block;width:40px;text-align:center}.coupon .coupon-box .block .text .tag i{position:absolute;top:0;right:0;z-index:1;display:block;border-top:50px solid red;border-left:50px solid transparent}.coupon .coupon-box .block .text h4{padding-right:50px;font-size:12px;color:#666;font-weight:400;line-height:20px;height:40px;overflow:hidden}.coupon .coupon-box .block .text h4 b{position:relative;color:#fff;display:inline-block;height:16px;font-weight:400;line-height:16px;padding:0 5px;margin:5px 6px}.coupon .coupon-box .block .text h4 i{float:left;position:absolute;top:0;left:-12px;content:\\\"\\\";height:0;width:0;pointer-events:none;border:solid transparent;border-width:8px 6px}.coupon .coupon-box .block .text p{font-size:12px;position:relative}.coupon .coupon-box .block .text p span{padding-top:12px;display:block;color:#999}.coupon .coupon-box .block .text .but-bg{height:30px;line-height:30px;font-size:14px;border-radius:30px;padding:0 12px;text-decoration:none;text-align:center;background:#fff}.coupon .coupon-box .block .text .but-bg:hover{color:#fff}.coupon .coupon-box .box-orange .text .but-bg{color:#ffa200;border:1px solid #ffa200}.coupon .coupon-box .box-blue .text .but-bg{color:#1080d0;border:1px solid #1080d0}.coupon .coupon-box .box-green .text .but-bg{color:#52bd61;border:1px solid #52bd61}.coupon .coupon-box .box-gray .text .but-bg{color:#999999;border:1px solid #999999}.coupon .coupon-box .block .number{height:33px;padding:8px;font-size:12px;color:#666;background:url(https://m.ichunt.com/v3/dist/res/m/images/coupon/coupon_bg.png) repeat-x;background-size:12px}.coupon .coupon-box .box-orange .text .tag i{border-top-color:#ffa200}.coupon .coupon-box .box-orange dt,.coupon .coupon-box .box-orange dt p{color:#ffa200}.coupon .coupon-box .box-orange .text h4 b,.coupon .coupon-box .box-orange .text .but-bg:hover{background:#ffa200}.coupon .coupon-box .box-orange .text h4 i{border-right-color:#ffa200}.coupon .coupon-box .box-blue .text .tag i{border-top-color:#1080d0}.coupon .coupon-box .box-blue dt,.coupon .coupon-box .box-blue dt p{color:#1080d0}.coupon .coupon-box .box-blue .text h4 b,.coupon .coupon-box .box-blue .text .but-bg:hover{background:#1080d0}.coupon .coupon-box .box-blue .text h4 i{border-right-color:#1080d0}.coupon .coupon-box .box-green .text .tag i{border-top-color:#52bd61}.coupon .coupon-box .box-green dt,.coupon .coupon-box .box-green dt p{color:#52bd61}.coupon .coupon-box .box-green .text h4 b,.coupon .coupon-box .box-green .text .but-bg:hover{background:#52bd61}.coupon .coupon-box .box-green .text h4 i{border-right-color:#52bd61}.coupon .coupon-box .box-gray .text .tag i{border-top-color:#999999}.coupon .coupon-box .box-gray dt,.coupon .coupon-box .box-gray dt p{color:#999999}.coupon .coupon-box .box-gray .text h4 b,.coupon .coupon-box .box-gray .text .but-bg:hover{background:#999999}.coupon .coupon-box .box-gray .text h4 i{border-right-color:#999999}.coupon .coupon-box .box-orange .text h4 span{color:#ffa200}.coupon .coupon-box .box-blue .text h4 span{color:#1080d0}.coupon .coupon-box .box-green .text h4 span{color:#52bd61}.coupon .coupon-box i.icon-get{font-size:72px;position:absolute;right:10px;top:-50px;text-align:right;color:#999}.coupon .coupon-box .dangxuan{height:30px}.coupon .coupon-box .dangxuan span{font-size:12px;float:left;padding-top:13px}.coupon .coupon-box .dangxuan .mui-radio{float:right;width:28px;margin-top:13px}.coupon .coupon-box .dangxuan .mui-radio input[type='radio']{right:0;top:0;width:18px}.coupon .coupon-box .nonuse{overflow:hidden;margin-top:15px;height:30px;line-height:30px;font-size:14px;border-radius:5px;background:#fff;-webkit-box-shadow:0 2px 3px #eeeeee;box-shadow:0 2px 3px #eeeeee}.coupon .coupon-box .nonuse span{font-size:14px;float:left;padding-top:0;padding-left:5px;color:#666}.coupon .coupon-box .nonuse .dangxuan .mui-radio{margin:8px 5px 0 0}.coupon .coupon_no{text-align:center;padding:25px 20px}.coupon .coupon_no dd{font-size:12px}.coupon .coupon_no span{width:162px;height:182px;padding-bottom:20px;display:inline-block;background:url(https://m.ichunt.com/v3/dist/res/m/images/coupon/coupon_no.png);background-size:contain;background-repeat:no-repeat}\", \"\"]);\n\n// exports\n\n\n//# sourceURL=webpack:///./src/assets/css/user/coupon.min.css?./node_modules/_css-loader@1.0.1@css-loader??ref--6-oneOf-1-1!./node_modules/_vue-loader@15.7.1@vue-loader/lib/loaders/stylePostLoader.js!./node_modules/_postcss-loader@3.0.0@postcss-loader/src??ref--6-oneOf-1-2"
);
eval
(
"exports = module.exports = __webpack_require__(/*! ../../../../node_modules/_css-loader@1.0.1@css-loader/lib/css-base.js */ \"./node_modules/_css-loader@1.0.1@css-loader/lib/css-base.js\")(false);\n// imports\n\n\n// module\nexports.push([module.i, \".coupon{background:#f8f8f8}.coupon .van-tab--active span{color:red!important}.coupon .van-tabs .van-tabs__wrap{position:fixed;top:44px;left:0px;right:0px
; background:#fff;z-index:99;}.coupon .coupon-box{padding: 44px 5px 0 ;
}.coupon .coupon-box .block{overflow:hidden;margin-top:15px;border-radius:5px;background:#fff;-webkit-box-shadow:0 2px 5px #ddd;box-shadow:0 2px 5px #ddd}.coupon .coupon-box .block dt{width:125px;padding:10px 8px;float:left}.coupon .coupon-box .block dt h4{font-size:36px;font-family:Impact;height:40px;line-height:40px;text-align:center}.coupon .coupon-box .block dt h4 span{font-size:18px;position:relative;top:-15px;font-weight:400;line-height:20px}.coupon .coupon-box .block dt h4 b{font-size:16px;font-weight:400;line-height:20px}.coupon .coupon-box .block dt p{text-align:center;font-size:14px;padding-top:2.5px;line-height:16px;overflow:hidden}.coupon .coupon-box .block .text{padding:10px 8px 8px 125px;position:relative}.coupon .coupon-box .block .text .tag{font-size:12px;position:absolute;top:0;right:0;display:block;width:50px;height:50px}.coupon .coupon-box .block .text .tag span{-webkit-transform:rotate(45deg);transform:rotate(45deg);position:absolute;top:8px;right:-3px;z-index:2;color:#fff;overflow:hidden;display:block;width:40px;text-align:center}.coupon .coupon-box .block .text .tag i{position:absolute;top:0;right:0;z-index:1;display:block;border-top:50px solid red;border-left:50px solid transparent}.coupon .coupon-box .block .text h4{padding-right:50px;font-size:12px;color:#666;font-weight:400;line-height:20px;height:40px;overflow:hidden}.coupon .coupon-box .block .text h4 b{position:relative;color:#fff;display:inline-block;height:16px;font-weight:400;line-height:16px;padding:0 5px;margin:5px 6px}.coupon .coupon-box .block .text h4 i{float:left;position:absolute;top:0;left:-12px;content:\\\"\\\";height:0;width:0;pointer-events:none;border:solid transparent;border-width:8px 6px}.coupon .coupon-box .block .text p{font-size:12px;position:relative}.coupon .coupon-box .block .text p span{padding-top:12px;display:block;color:#999}.coupon .coupon-box .block .text .but-bg{height:30px;line-height:30px;font-size:14px;border-radius:30px;padding:0 12px;text-decoration:none;text-align:center;background:#fff}.coupon .coupon-box .block .text .but-bg:hover{color:#fff}.coupon .coupon-box .box-orange .text .but-bg{color:#ffa200;border:1px solid #ffa200}.coupon .coupon-box .box-blue .text .but-bg{color:#1080d0;border:1px solid #1080d0}.coupon .coupon-box .box-green .text .but-bg{color:#52bd61;border:1px solid #52bd61}.coupon .coupon-box .box-gray .text .but-bg{color:#999999;border:1px solid #999999}.coupon .coupon-box .block .number{height:33px;padding:8px;font-size:12px;color:#666;background:url(https://m.ichunt.com/v3/dist/res/m/images/coupon/coupon_bg.png) repeat-x;background-size:12px}.coupon .coupon-box .box-orange .text .tag i{border-top-color:#ffa200}.coupon .coupon-box .box-orange dt,.coupon .coupon-box .box-orange dt p{color:#ffa200}.coupon .coupon-box .box-orange .text h4 b,.coupon .coupon-box .box-orange .text .but-bg:hover{background:#ffa200}.coupon .coupon-box .box-orange .text h4 i{border-right-color:#ffa200}.coupon .coupon-box .box-blue .text .tag i{border-top-color:#1080d0}.coupon .coupon-box .box-blue dt,.coupon .coupon-box .box-blue dt p{color:#1080d0}.coupon .coupon-box .box-blue .text h4 b,.coupon .coupon-box .box-blue .text .but-bg:hover{background:#1080d0}.coupon .coupon-box .box-blue .text h4 i{border-right-color:#1080d0}.coupon .coupon-box .box-green .text .tag i{border-top-color:#52bd61}.coupon .coupon-box .box-green dt,.coupon .coupon-box .box-green dt p{color:#52bd61}.coupon .coupon-box .box-green .text h4 b,.coupon .coupon-box .box-green .text .but-bg:hover{background:#52bd61}.coupon .coupon-box .box-green .text h4 i{border-right-color:#52bd61}.coupon .coupon-box .box-gray .text .tag i{border-top-color:#999999}.coupon .coupon-box .box-gray dt,.coupon .coupon-box .box-gray dt p{color:#999999}.coupon .coupon-box .box-gray .text h4 b,.coupon .coupon-box .box-gray .text .but-bg:hover{background:#999999}.coupon .coupon-box .box-gray .text h4 i{border-right-color:#999999}.coupon .coupon-box .box-orange .text h4 span{color:#ffa200}.coupon .coupon-box .box-blue .text h4 span{color:#1080d0}.coupon .coupon-box .box-green .text h4 span{color:#52bd61}.coupon .coupon-box i.icon-get{font-size:72px;position:absolute;right:10px;top:-50px;text-align:right;color:#999}.coupon .coupon-box .dangxuan{height:30px}.coupon .coupon-box .dangxuan span{font-size:12px;float:left;padding-top:13px}.coupon .coupon-box .dangxuan .mui-radio{float:right;width:28px;margin-top:13px}.coupon .coupon-box .dangxuan .mui-radio input[type='radio']{right:0;top:0;width:18px}.coupon .coupon-box .nonuse{overflow:hidden;margin-top:15px;height:30px;line-height:30px;font-size:14px;border-radius:5px;background:#fff;-webkit-box-shadow:0 2px 3px #eeeeee;box-shadow:0 2px 3px #eeeeee}.coupon .coupon-box .nonuse span{font-size:14px;float:left;padding-top:0;padding-left:5px;color:#666}.coupon .coupon-box .nonuse .dangxuan .mui-radio{margin:8px 5px 0 0}.coupon .coupon_no{text-align:center;padding:25px 20px}.coupon .coupon_no dd{font-size:12px}.coupon .coupon_no span{width:162px;height:182px;padding-bottom:20px;display:inline-block;background:url(https://m.ichunt.com/v3/dist/res/m/images/coupon/coupon_no.png);background-size:contain;background-repeat:no-repeat}\", \"\"]);\n\n// exports\n\n\n//# sourceURL=webpack:///./src/assets/css/user/coupon.min.css?./node_modules/_css-loader@1.0.1@css-loader??ref--6-oneOf-1-1!./node_modules/_vue-loader@15.7.1@vue-loader/lib/loaders/stylePostLoader.js!./node_modules/_postcss-loader@3.0.0@postcss-loader/src??ref--6-oneOf-1-2"
);
/***/
}),
...
...
view/app.js
View file @
48687601
...
...
@@ -4266,7 +4266,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var core
/***/
(
function
(
module
,
__webpack_exports__
,
__webpack_require__
)
{
"use strict"
;
eval
(
"__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ \"./node_modules/_vue@2.6.10@vue/dist/vue.runtime.esm.js\");\n/* harmony import */ var vant__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vant */ \"./node_modules/_vant@2.2.5@vant/es/index.js\");\n/* harmony import */ var _api_index__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../api/index */ \"./src/api/index.js\");\n/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../util */ \"./src/util/index.js\");\n\n\n\n\n\nvar qs = __webpack_require__(/*! qs */ \"./node_modules/_qs@6.9.0@qs/lib/index.js\");\n\nvue__WEBPACK_IMPORTED_MODULE_0__[\"default\"].use(vant__WEBPACK_IMPORTED_MODULE_1__[\"Toast\"]);\nvar state = {\n loading: false,\n addressInfo: \"\",\n submitState: false,\n ypGoodDetail: {},\n ordernum: ''\n};\nvar mutations = {\n recvlistSample: function recvlistSample(state, payload) {\n state.addressInfo = payload.data.filter(function (item) {\n return item['is_default'] == 1;\n });\n state.addressInfo = state.addressInfo[0];\n }\n};\nvar actions = {\n recvlistSample: function recvlistSample(_ref, payload) {\n var commit = _ref.commit;\n _api_index__WEBPACK_IMPORTED_MODULE_2__[\"services\"].recvlist().then(function (res) {\n var data = res.data; // state.loading = false;\n\n if (data.err_code == 0) {\n commit({\n type: 'recvlistSample',\n data: data.data\n });\n }\n }).catch(function (err) {});\n },\n selfSampleCreate: function selfSampleCreate(_ref2, payload) {\n var commit = _ref2.commit;\n state.loading = true;\n var params = {\n goods_id: payload.goods_id,\n apply_num: payload.apply_num,\n com_name: payload.com_name,\n sample_demand_desc: payload.sample_demand_desc,\n address_id: payload.address_id\n };\n _api_index__WEBPACK_IMPORTED_MODULE_2__[\"services\"].selfSampleCreate(qs.stringify(params)).then(function (res) {\n var data = res.data;\n state.loading = false;\n\n if (data.err_code == 0) {\n state.submitState = true;\n state.ordernum = data.data || '';\n } else {\n Object(vant__WEBPACK_IMPORTED_MODULE_1__[\"Toast\"])(data.err_msg);\n }\n }).catch(function (err) {\n state.loading = false;\n });\n },\n getDetailYp: function getDetailYp(_ref3, payload) {\n var commit = _ref3.commit;\n state.loading = true;\n var Params_ = {\n id: payload.data.id\n };\n var params = _util__WEBPACK_IMPORTED_MODULE_3__[\"default\"].getParams(Params_);\n _api_index__WEBPACK_IMPORTED_MODULE_2__[\"services\"].getSampleInfo(params).then(function (res) {\n var data = res.data;\n state.loading = false;\n\n if (data.err_code == 0) {\n state.ypGoodDetail = data.data;\n } else {\n Object(vant__WEBPACK_IMPORTED_MODULE_1__[\"Toast\"])(data.err_msg);\n }\n }).catch(function (err) {\n state.loading = false;\n });\n }\n};\nvar getters = {};\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n state: state,\n mutations: mutations,\n actions: actions,\n getters: getters\n});\n\n//# sourceURL=webpack:///./src/store/modules/sample/sampleapply.js?"
);
eval
(
"__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vue */ \"./node_modules/_vue@2.6.10@vue/dist/vue.runtime.esm.js\");\n/* harmony import */ var vant__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! vant */ \"./node_modules/_vant@2.2.5@vant/es/index.js\");\n/* harmony import */ var _api_index__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../api/index */ \"./src/api/index.js\");\n/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../util */ \"./src/util/index.js\");\n\n\n\n\n\nvar qs = __webpack_require__(/*! qs */ \"./node_modules/_qs@6.9.0@qs/lib/index.js\");\n\nvue__WEBPACK_IMPORTED_MODULE_0__[\"default\"].use(vant__WEBPACK_IMPORTED_MODULE_1__[\"Toast\"]);\nvar state = {\n loading: false,\n addressInfo: \"\",\n submitState: false,\n ypGoodDetail: {},\n ordernum: ''\n};\nvar mutations = {\n recvlistSample: function recvlistSample(state, payload) {\n state.addressInfo = payload.data.filter(function (item) {\n return item['is_default'] == 1;\n });\n state.addressInfo = state.addressInfo[0];\n }\n};\nvar actions = {\n recvlistSample: function recvlistSample(_ref, payload) {\n var commit = _ref.commit;\n _api_index__WEBPACK_IMPORTED_MODULE_2__[\"services\"].recvlist().then(function (res) {\n var data = res.data; // state.loading = false;\n\n if (data.err_code == 0) {\n commit({\n type: 'recvlistSample',\n data: data.data\n });\n }\n }).catch(function (err) {});\n },\n selfSampleCreate: function selfSampleCreate(_ref2, payload) {\n var commit = _ref2.commit;\n state.loading = true;\n var params = {\n goods_id: payload.goods_id,\n apply_num: payload.apply_num,\n com_name: payload.com_name,\n sample_demand_desc: payload.sample_demand_desc,\n address_id: payload.address_id\n };\n _api_index__WEBPACK_IMPORTED_MODULE_2__[\"services\"].selfSampleCreate(qs.stringify(params)).then(function (res) {\n var data = res.data;\n state.loading = false;\n\n if (data.err_code == 0) {\n state.submitState = true;\n state.ordernum = data.data || '';\n } else
if (data.err_code == '40014') {\n Object(vant__WEBPACK_IMPORTED_MODULE_1__[\"Toast\"])('样品库存不足');\n } else
{\n Object(vant__WEBPACK_IMPORTED_MODULE_1__[\"Toast\"])(data.err_msg);\n }\n }).catch(function (err) {\n state.loading = false;\n });\n },\n getDetailYp: function getDetailYp(_ref3, payload) {\n var commit = _ref3.commit;\n state.loading = true;\n var Params_ = {\n id: payload.data.id\n };\n var params = _util__WEBPACK_IMPORTED_MODULE_3__[\"default\"].getParams(Params_);\n _api_index__WEBPACK_IMPORTED_MODULE_2__[\"services\"].getSampleInfo(params).then(function (res) {\n var data = res.data;\n state.loading = false;\n\n if (data.err_code == 0) {\n state.ypGoodDetail = data.data;\n } else {\n Object(vant__WEBPACK_IMPORTED_MODULE_1__[\"Toast\"])(data.err_msg);\n }\n }).catch(function (err) {\n state.loading = false;\n });\n }\n};\nvar getters = {};\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n state: state,\n mutations: mutations,\n actions: actions,\n getters: getters\n});\n\n//# sourceURL=webpack:///./src/store/modules/sample/sampleapply.js?"
);
/***/
}),
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment