Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
肖康
/
iedgeMini
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
13fca3da
authored
Mar 20, 2025
by
LJM
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
「爱智小程序」—业务验收问题合集fix
parent
3613d455
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
656 additions
and
642 deletions
assets/css/car/confirmQuote.scss
assets/css/class/nav.scss
pages/auth/rule.vue
pages/car/confirmQuote.vue
pages/class/nav.vue
pages/goods/detail.vue
pages/user/address.vue
pages/user/addressAdd.vue
pages/user/companyInfo.vue
util/api.js
util/share.js
assets/css/car/confirmQuote.scss
View file @
13fca3da
.confirmQuotePage
{
.confirmQuotePage
{
background
:
#f8f8f8
;
background
:
#f8f8f8
;
padding-top
:
75rpx
;
padding-top
:
75rpx
;
padding-bottom
:
175rpx
;
padding-bottom
:
175rpx
;
.cons
{
.cons
{
width
:
700rpx
;
width
:
700rpx
;
margin
:
0
auto
;
margin
:
0
auto
;
.top-box
{
.top-box
{
background
:
#fff
;
background
:
#fff
;
padding
:
30rpx
22rpx
;
padding
:
30rpx
22rpx
;
border-radius
:
20rpx
;
border-radius
:
20rpx
;
padding-top
:
15rpx
;
padding-top
:
15rpx
;
.tit
{
.tit
{
font-size
:
26rpx
;
font-size
:
26rpx
;
color
:
#000000
;
color
:
#000000
;
height
:
92rpx
;
height
:
92rpx
;
line-height
:
92rpx
;
line-height
:
92rpx
;
border-bottom
:
1rpx
solid
#E7E7E7
;
border-bottom
:
1rpx
solid
#e7e7e7
;
&
:last-child
{
border-bottom
:
none
;
}
}
.address-box
{
}
.address-box
{
display
:
block
;
display
:
block
;
padding-top
:
10rpx
;
padding-top
:
10rpx
;
.addbx
{
.addbx
{
.iconfont
{
.iconfont
{
font-size
:
16rpx
;
font-size
:
16rpx
;
color
:
#898989
;
color
:
#898989
;
}
.ad
{
height
:
62rpx
;
}
}
.ad
{
height
:
62rpx
;}
.csq
{
.csq
{
font-size
:
26rpx
;
font-size
:
26rpx
;
color
:
#000000
;
color
:
#000000
;
}
}
.ad1
{
.ad1
{
font-size
:
30rpx
;
font-size
:
30rpx
;
color
:
#000000
;
color
:
#000000
;
height
:
35rpx
;
height
:
35rpx
;
line-height
:
35rpx
;
line-height
:
35rpx
;
font-weight
:
bold
;
font-weight
:
bold
;
margin-top
:
4rpx
;
margin-top
:
4rpx
;
}
}
.cnnk
{
.cnnk
{
font-size
:
24rpx
;
font-size
:
24rpx
;
color
:
#666666
;
color
:
#666666
;
line-height
:
40rpx
;
line-height
:
40rpx
;
height
:
40rpx
;
height
:
40rpx
;
margin-top
:
8rpx
;
margin-top
:
8rpx
;
text
{
margin-right
:
20rpx
;}
text
{
margin-right
:
20rpx
;
}
}
.mr
{
}
.mr
{
width
:
70rpx
;
width
:
70rpx
;
height
:
35rpx
;
height
:
35rpx
;
background
:
#FFF5F
5
;
background
:
#fff5f
5
;
border-radius
:
5rpx
;
border-radius
:
5rpx
;
border
:
1rpx
solid
#D0121B
;
border
:
1rpx
solid
#d0121b
;
text-align
:
center
;
text-align
:
center
;
line-height
:
35rpx
;
line-height
:
35rpx
;
font-size
:
24rpx
;
font-size
:
24rpx
;
color
:
#D0121B
;
color
:
#d0121b
;
margin-left
:
20rpx
;
margin-left
:
20rpx
;
}
}
}
}
}
}
}
}
.goods-box
{
.goods-box
{
margin-top
:
25rpx
;
margin-top
:
25rpx
;
background
:
#fff
;
background
:
#fff
;
padding
:
30rpx
23rpx
;
padding
:
30rpx
23rpx
;
padding-top
:
0rpx
;
padding-top
:
0rpx
;
border-radius
:
20rpx
;
border-radius
:
20rpx
;
image
{
width
:
190rpx
;
height
:
190rpx
;
margin-right
:
29rpx
;
border
:
2rpx
solid
#F6F6F6
;
border-radius
:
5rpx
;}
image
{
width
:
190rpx
;
height
:
190rpx
;
margin-right
:
29rpx
;
border
:
2rpx
solid
#f6f6f6
;
border-radius
:
5rpx
;
}
.group
{
.group
{
padding-bottom
:
38rpx
;
padding-bottom
:
38rpx
;
padding-top
:
30rpx
;
padding-top
:
30rpx
;
border-bottom
:
1rpx
solid
#E7E7E
7
;
border-bottom
:
1rpx
solid
#e7e7e
7
;
.ganme
{
.ganme
{
font-size
:
26rpx
;
font-size
:
26rpx
;
color
:
#000000
;
color
:
#000000
;
line-height
:
45rpx
;
line-height
:
45rpx
;
height
:
90rpx
;
height
:
90rpx
;
width
:
440rpx
;
width
:
440rpx
;
}
}
.hqs
{
.hqs
{
font-size
:
26rpx
;
font-size
:
26rpx
;
color
:
#666666
;
color
:
#666666
;
height
:
40rpx
;
height
:
40rpx
;
line-height
:
40rpx
;
line-height
:
40rpx
;
margin-top
:
20rpx
;
margin-top
:
20rpx
;
}
}
.price
{
.price
{
font-size
:
30rpx
;
font-size
:
30rpx
;
color
:
#000000
;
color
:
#000000
;
line-height
:
40rpx
;
line-height
:
40rpx
;
height
:
40rpx
;
height
:
40rpx
;
line-height
:
40rpx
;
line-height
:
40rpx
;
margin-top
:
10rpx
;
margin-top
:
10rpx
;
}
}
}
}
}
}
.coupo-box
{
.coupo-box
{
border-radius
:
20rpx
;
border-radius
:
20rpx
;
margin-top
:
25rpx
;
margin-top
:
25rpx
;
height
:
62rpx
;
height
:
62rpx
;
font-size
:
26rpx
;
font-size
:
26rpx
;
color
:
#000000
;
color
:
#000000
;
line-height
:
62rpx
;
line-height
:
62rpx
;
.r
{
.r
{
font-size
:
26rpx
;
font-size
:
26rpx
;
color
:
#D0121B
;
color
:
#d0121b
;
height
:
62rpx
;
height
:
62rpx
;
.icon
{
.icon
{
font-size
:
16rpx
;
font-size
:
16rpx
;
color
:
#D0121B
;
color
:
#d0121b
;
margin-left
:
25rpx
;
margin-left
:
25rpx
;
position
:
relative
;
position
:
relative
;
top
:
-3rpx
;
top
:
-3rpx
;
}
}
.not
{
.not
{
color
:
#999999
;
color
:
#999999
;
.icon
{
.icon
{
color
:
#898989
;
color
:
#898989
;
}
}
}
}
}
}
}
}
.pur-sn-box
{
.pur-sn-box
{
background
:
#fff
;
background
:
#fff
;
margin-top
:
25rpx
;
margin-top
:
25rpx
;
padding
:
20rpx
;
padding
:
20rpx
;
padding-bottom
:
32rpx
;
padding-bottom
:
32rpx
;
border-radius
:
20rpx
;
border-radius
:
20rpx
;
.tit
{
.tit
{
font-size
:
26rpx
;
font-size
:
26rpx
;
color
:
#000000
;
color
:
#000000
;
line-height
:
62rpx
;
line-height
:
62rpx
;
height
:
62rpx
;
height
:
62rpx
;
}
}
.pur-sn-val
{
.pur-sn-val
{
height
:
80rpx
;
height
:
80rpx
;
background
:
#F8F8F
8
;
background
:
#f8f8f
8
;
line-height
:
80rpx
;
line-height
:
80rpx
;
border-radius
:
5rpx
;
border-radius
:
5rpx
;
border
:
1rpx
solid
#E7E7E
7
;
border
:
1rpx
solid
#e7e7e
7
;
font-size
:
26rpx
;
font-size
:
26rpx
;
color
:
#000000
;
color
:
#000000
;
padding
:
0
20rpx
;
padding
:
0
20rpx
;
&
:hover
{
&
:hover
{
border
:
1rpx
solid
#D0121B
;
border
:
1rpx
solid
#d0121b
;
}
}
&
.placeholder-class
{
&
.placeholder-class
{
color
:
#808080
;
color
:
#808080
;
font-size
:
26rpx
;
font-size
:
26rpx
;
}
}
}
}
}
}
.price-infos
{
.price-infos
{
padding
:
30rpx
20rpx
;
padding
:
30rpx
20rpx
;
background
:
#fff
;
background
:
#fff
;
margin-top
:
25rpx
;
margin-top
:
25rpx
;
border-radius
:
20rpx
;
border-radius
:
20rpx
;
.item
{
.item
{
font-size
:
26rpx
;
font-size
:
26rpx
;
color
:
#000000
;
color
:
#000000
;
line-height
:
62rpx
;
line-height
:
62rpx
;
height
:
62rpx
;
height
:
62rpx
;
}
}
.top
{
border-bottom
:
1rpx
solid
#E7E7E7
;
padding-bottom
:
20rpx
;}
.top
{
.bottom
{
border-bottom
:
1rpx
solid
#e7e7e7
;
padding-top
:
25rpx
;
padding-bottom
:
20rpx
;
.price-pay
{
color
:
#D0121B
;
}
}
.bottom
{
padding-top
:
25rpx
;
.price-pay
{
color
:
#d0121b
;
}
}
}
}
.rules
{
}
height
:
86rpx
;
.rules
{
.icon
{
height
:
86rpx
;
.icon
{
font-size
:
30rpx
;
font-size
:
30rpx
;
color
:
#e5e5e5
;
color
:
#e5e5e5
;
}
}
.icon-checked
{
.icon-checked
{
color
:
#D0121B
;
color
:
#d0121b
;
}
}
.tklink
{
.tklink
{
font-size
:
24rpx
;
font-size
:
24rpx
;
color
:
#000000
;
color
:
#000000
;
margin-left
:
16rpx
;
margin-left
:
16rpx
;
}
}
}
}
}
}
.foot
{
.foot
{
height
:
175rpx
;
height
:
175rpx
;
width
:
100%
;
width
:
100%
;
position
:
fixed
;
position
:
fixed
;
left
:
0rpx
;
left
:
0rpx
;
right
:
0rpx
;
right
:
0rpx
;
bottom
:
0rpx
;
bottom
:
0rpx
;
z-index
:
2
;
z-index
:
2
;
background
:
#fff
;
background
:
#fff
;
padding-left
:
40rpx
;
padding-left
:
40rpx
;
padding-right
:
25rpx
;
padding-right
:
25rpx
;
border-top
:
1rpx
solid
#E7E7E
7
;
border-top
:
1rpx
solid
#e7e7e
7
;
.l
{
.l
{
font-size
:
24rpx
;
font-size
:
24rpx
;
color
:
#000000
;
color
:
#000000
;
text
{
text
{
font-size
:
32rpx
;
font-size
:
32rpx
;
color
:
#D
91800
;
color
:
#d
91800
;
}
}
}
}
.submit-btn
{
.submit-btn
{
width
:
288rpx
;
width
:
288rpx
;
height
:
70rpx
;
height
:
70rpx
;
background
:
linear-gradient
(
90deg
,
#F66F15
0%
,
#FE
3014
100%
);
background
:
linear-gradient
(
90deg
,
#f66f15
0%
,
#fe
3014
100%
);
border-radius
:
100rpx
;
border-radius
:
100rpx
;
font-size
:
26rpx
;
font-size
:
26rpx
;
color
:
#FFFFFF
;
color
:
#ffffff
;
text-align
:
center
;
text-align
:
center
;
line-height
:
70rpx
;
line-height
:
70rpx
;
}
}
}
}
}
}
/**温馨提示输入邮箱**/
/**温馨提示输入邮箱**/
.pop-tips
{
.pop-tips
{
width
:
100%
;
width
:
100%
;
background
:
#FFFFFF
;
background
:
#ffffff
;
border-radius
:
10rpx
10rpx
0rpx
0rpx
;
border-radius
:
10rpx
10rpx
0rpx
0rpx
;
padding
:
24rpx
30rpx
;
padding
:
24rpx
30rpx
;
position
:
relative
;
position
:
relative
;
padding-bottom
:
150rpx
;
padding-bottom
:
150rpx
;
.trt
{
.trt
{
text-align
:
right
;
text-align
:
right
;
.icon
{
color
:
#898989
;
font-size
:
25rpx
;}
.icon
{
color
:
#898989
;
font-size
:
25rpx
;
}
}
}
.ttit
{
.ttit
{
width
:
520rpx
;
width
:
520rpx
;
height
:
53rpx
;
height
:
53rpx
;
font-size
:
26rpx
;
font-size
:
26rpx
;
color
:
#000000
;
color
:
#000000
;
line-height
:
53rpx
;
line-height
:
53rpx
;
text-align
:
center
;
text-align
:
center
;
margin
:
0
auto
;
margin
:
0
auto
;
}
}
.tipjk
{
.tipjk
{
font-size
:
22rpx
;
font-size
:
22rpx
;
color
:
#666666
;
color
:
#666666
;
text-align
:
center
;
text-align
:
center
;
}
}
.cons
{
.cons
{
padding-bottom
:
80rpx
;
padding-bottom
:
80rpx
;
padding-top
:
60rpx
;
padding-top
:
60rpx
;
.label
{
.label
{
font-size
:
24rpx
;
font-size
:
24rpx
;
color
:
#000000
;
color
:
#000000
;
width
:
620rpx
;
width
:
620rpx
;
margin
:
0
auto
;
margin
:
0
auto
;
text
{
text
{
font-size
:
24rpx
;
font-size
:
24rpx
;
color
:
#D0121B
;
color
:
#d0121b
;
}
}
}
}
.inputv
{
.inputv
{
display
:
block
;
display
:
block
;
width
:
620rpx
;
width
:
620rpx
;
padding-left
:
20rpx
;
padding-left
:
20rpx
;
margin
:
0
auto
;
margin
:
0
auto
;
margin-top
:
15rpx
;
margin-top
:
15rpx
;
height
:
80rpx
;
height
:
80rpx
;
background
:
#FFFFFF
;
background
:
#ffffff
;
border-radius
:
5rpx
;
border-radius
:
5rpx
;
border
:
1rpx
solid
#CACACA
;
border
:
1rpx
solid
#cacaca
;
font-size
:
24rpx
;
font-size
:
24rpx
;
color
:
#000000
;
color
:
#000000
;
}
}
}
}
.sure
{
.sure
{
width
:
100%
;
width
:
100%
;
height
:
110rpx
;
height
:
110rpx
;
background
:
#D0121B
;
background
:
#d0121b
;
line-height
:
110rpx
;
line-height
:
110rpx
;
text-align
:
center
;
text-align
:
center
;
font-size
:
30rpx
;
font-size
:
30rpx
;
color
:
#FFFFFF
;
color
:
#ffffff
;
position
:
absolute
;
position
:
absolute
;
bottom
:
0rpx
;
bottom
:
0rpx
;
left
:
0rpx
;
left
:
0rpx
;
}
}
}
}
/**优惠券弹窗**/
/**优惠券弹窗**/
.pop-yhq
{
.pop-yhq
{
width
:
100%
;
width
:
100%
;
background
:
#FFFFFF
;
background
:
#ffffff
;
border-radius
:
10rpx
10rpx
0rpx
0rpx
;
border-radius
:
10rpx
10rpx
0rpx
0rpx
;
padding
:
24rpx
30rpx
;
padding
:
24rpx
30rpx
;
position
:
relative
;
position
:
relative
;
padding-bottom
:
150rpx
;
padding-bottom
:
150rpx
;
.trt
{
.trt
{
text-align
:
right
;
text-align
:
right
;
.icon
{
color
:
#898989
;
font-size
:
25rpx
;}
.icon
{
color
:
#898989
;
font-size
:
25rpx
;
}
}
}
.tit
{
.tit
{
font-size
:
24rpx
;
font-size
:
24rpx
;
color
:
#000000
;
color
:
#000000
;
margin-bottom
:
25rpx
;
margin-bottom
:
25rpx
;
text-align
:
center
;
text-align
:
center
;
}
}
.cons
{
.cons
{
margin-top
:
68rpx
;
margin-top
:
68rpx
;
max-height
:
800rpx
;
max-height
:
800rpx
;
overflow-y
:
auto
;
overflow-y
:
auto
;
.group
{
.group
{
height
:
180rpx
;
height
:
180rpx
;
margin-bottom
:
25rpx
;
margin-bottom
:
25rpx
;
background
:
url('https://img.ichunt.com/images/ichunt/202502/24/435bcc261a434392135ee0846ac99d60.png')
no-repeat
;
background
:
url('https://img.ichunt.com/images/ichunt/202502/24/435bcc261a434392135ee0846ac99d60.png')
no-repeat
;
background-size
:
100%
100%
;
background-size
:
100%
100%
;
padding-left
:
27rpx
;
padding-left
:
27rpx
;
padding-right
:
30rpx
;
padding-right
:
30rpx
;
border-radius
:
20rpx
;
border-radius
:
20rpx
;
border
:
1rpx
solid
#fff
;
border
:
1rpx
solid
#fff
;
&
.act
{
&
.act
{
border
:
1rpx
solid
#D0121B
;
border
:
1rpx
solid
#d0121b
;
}
}
.l
{
.l
{
.price
{
.price
{
font-weight
:
600
;
font-weight
:
600
;
font-size
:
30rpx
;
font-size
:
30rpx
;
color
:
#FF
3000
;
color
:
#ff
3000
;
.textp
{
.textp
{
font-size
:
60rpx
;
font-size
:
60rpx
;
color
:
#FF
3000
;
color
:
#ff
3000
;
}
}
margin-right
:
68rpx
;
margin-right
:
68rpx
;
.tips
{
.tips
{
font-size
:
22rpx
;
font-size
:
22rpx
;
color
:
#FF
6300
;
color
:
#ff
6300
;
font-weight
:
normal
;
font-weight
:
normal
;
}
}
}
}
.yhld
{
.yhld
{
font-size
:
22rpx
;
font-size
:
22rpx
;
color
:
#FF
6300
;
color
:
#ff
6300
;
view
{
view
{
font-size
:
35rpx
;
font-size
:
35rpx
;
color
:
#3B2C1B
;
color
:
#3b2c1b
;
height
:
72rpx
;
height
:
72rpx
;
line-height
:
65rpx
;
line-height
:
65rpx
;
}
}
}
}
}
}
.rbtn
{
.rbtn
{
width
:
146rpx
;
width
:
146rpx
;
height
:
58rpx
;
height
:
58rpx
;
background
:
linear-gradient
(
180deg
,
#F6491D
0%
,
#F52A1B
100%
);
background
:
linear-gradient
(
180deg
,
#f6491d
0%
,
#f52a1b
100%
);
border-radius
:
5rpx
;
border-radius
:
5rpx
;
font-size
:
26rpx
;
font-size
:
26rpx
;
color
:
#FFFFFF
;
color
:
#ffffff
;
text
{
text
{
background
:
url('https://img.ichunt.com/images/ichunt/202502/24/4ab2a242f3e45c0bafe3fb3207263ed2.png')
no-repeat
;
background
:
url('https://img.ichunt.com/images/ichunt/202502/24/4ab2a242f3e45c0bafe3fb3207263ed2.png')
no-repeat
;
background-size
:
100%
100%
;
background-size
:
100%
100%
;
height
:
25rpx
;
height
:
25rpx
;
width
:
25rpx
;
width
:
25rpx
;
margin-left
:
10rpx
;
margin-left
:
10rpx
;
}
}
}
}
}
}
}
}
.add-btn
{
.add-btn
{
width
:
100%
;
width
:
100%
;
height
:
110rpx
;
height
:
110rpx
;
background
:
#D0121B
;
background
:
#d0121b
;
line-height
:
110rpx
;
line-height
:
110rpx
;
text-align
:
center
;
text-align
:
center
;
font-size
:
30rpx
;
font-size
:
30rpx
;
color
:
#FFFFFF
;
color
:
#ffffff
;
position
:
absolute
;
position
:
absolute
;
bottom
:
0rpx
;
bottom
:
0rpx
;
left
:
0rpx
;
left
:
0rpx
;
}
}
}
}
assets/css/class/nav.scss
View file @
13fca3da
.classNavPage
{
.classNavPage
{
.bugc-ceng
{
.bugc-ceng
{
position
:
relative
;
position
:
relative
;
z-index
:
1
;
z-index
:
1
;
background
:
#fff
;
background
:
#fff
;
}
}
.cons
{
.cons
{
padding-top
:
23rpx
;
padding-top
:
23rpx
;
.one-c-box
{
.one-c-box
{
padding-left
:
18rpx
;
padding-left
:
18rpx
;
position
:
relative
;
position
:
relative
;
padding-right
:
90rpx
;
padding-right
:
90rpx
;
height
:
63rpx
;
height
:
63rpx
;
.lb
{
.lb
{
height
:
100%
;
height
:
100%
;
width
:
100%
;
width
:
100%
;
overflow-x
:
auto
;
overflow-x
:
auto
;
.itemo
{
.itemo
{
height
:
45rpx
;
height
:
45rpx
;
line-height
:
45rpx
;
line-height
:
45rpx
;
padding
:
0
17rpx
;
padding
:
0
17rpx
;
border-radius
:
5rpx
;
border-radius
:
5rpx
;
border
:
1rpx
solid
#fff
;
border
:
1rpx
solid
#fff
;
margin-right
:
25rpx
;
margin-right
:
25rpx
;
font-size
:
24rpx
;
font-size
:
24rpx
;
color
:
#000000
;
color
:
#000000
;
flex-shrink
:
0
;
flex-shrink
:
0
;
&
.act
{
&
.act
{
border
:
1rpx
solid
#D0121B
;
border
:
1rpx
solid
#d0121b
;
background
:
#FFF5F
5
;
background
:
#fff5f
5
;
color
:
#D0121B
;
color
:
#d0121b
;
}
}
}
}
}
}
.rb
{
.rb
{
width
:
90rpx
;
width
:
90rpx
;
height
:
45rpx
;
height
:
45rpx
;
position
:
absolute
;
position
:
absolute
;
top
:
0rpx
;
top
:
0rpx
;
right
:
0rpx
;
right
:
0rpx
;
text-align
:
center
;
text-align
:
center
;
.icon
{
.icon
{
font-size
:
16rpx
;
font-size
:
16rpx
;
color
:
#000
;
color
:
#000
;
}
}
}
}
.one-c-hide-cons
{
.one-c-hide-cons
{
position
:
absolute
;
position
:
absolute
;
z-index
:
1
;
z-index
:
1
;
width
:
100%
;
width
:
100%
;
background
:
#FFFFFF
;
background
:
#ffffff
;
border-radius
:
0rpx
0rpx
20rpx
20rpx
;
border-radius
:
0rpx
0rpx
20rpx
20rpx
;
top
:
-24rpx
;
top
:
-24rpx
;
left
:
0rpx
;
left
:
0rpx
;
transition
:
max-height
0
.5s
;
transition
:
max-height
0
.5s
;
max-height
:
0
;
max-height
:
0
;
overflow
:
hidden
;
overflow
:
hidden
;
.tit
{
.tit
{
padding
:
11rpx
30rpx
;
padding
:
11rpx
30rpx
;
font-size
:
24rpx
;
font-size
:
24rpx
;
color
:
#000000
;
color
:
#000000
;
margin-bottom
:
35rpx
;
margin-bottom
:
35rpx
;
}
}
.hide-sec
{
.hide-sec
{
flex-wrap
:
wrap
;
flex-wrap
:
wrap
;
padding-left
:
60rpx
;
padding-left
:
60rpx
;
padding-bottom
:
40rpx
;
padding-bottom
:
40rpx
;
.itemh
{
.itemh
{
margin-bottom
:
40rpx
;
margin-bottom
:
40rpx
;
margin-right
:
33rpx
;
margin-right
:
33rpx
;
&
:nth-child
(
4n
)
{
&
:nth-child
(
4n
)
{
margin-right
:
0rpx
;
margin-right
:
0rpx
;
}
}
image
{
image
{
display
:
block
;
display
:
block
;
width
:
106rpx
;
width
:
106rpx
;
height
:
106rpx
;
height
:
106rpx
;
margin
:
0
auto
;
margin
:
0
auto
;
}
}
text
{
text
{
margin-top
:
8rpx
;
margin-top
:
8rpx
;
display
:
block
;
display
:
block
;
width
:
135rpx
;
width
:
135rpx
;
text-align
:
center
;
text-align
:
center
;
font-size
:
24rpx
;
font-size
:
24rpx
;
color
:
#666666
;
color
:
#666666
;
height
:
30rpx
;
height
:
30rpx
;
line-height
:
30rpx
;
line-height
:
30rpx
;
}
}
&
.act
{
&
.act
{
text
{
color
:
#D0121B
;}
text
{
color
:
#d0121b
;
}
}
}
}
}
}
}
.foot
{
.foot
{
height
:
87rpx
;
height
:
87rpx
;
font-size
:
24rpx
;
font-size
:
24rpx
;
color
:
#000000
;
color
:
#000000
;
border-top
:
1rpx
solid
#D1D1D
1
;
border-top
:
1rpx
solid
#d1d1d
1
;
border-radius
:
0rpx
0rpx
20rpx
20rpx
;
border-radius
:
0rpx
0rpx
20rpx
20rpx
;
.icon
{
.icon
{
font-size
:
16rpx
;
font-size
:
16rpx
;
margin-left
:
20rpx
;
margin-left
:
20rpx
;
}
}
}
}
}
}
&
.show
{
&
.show
{
.one-c-hide-cons
{
max-height
:
700rpx
;}
.one-c-hide-cons
{
&
:
:
after
{
max-height
:
800rpx
;
content
:
""
;
overflow-y
:
auto
;
}
&
:
:
after
{
content
:
''
;
position
:
fixed
;
position
:
fixed
;
left
:
0
;
left
:
0
;
top
:
0
;
top
:
0
;
right
:
0
;
right
:
0
;
bottom
:
0
;
bottom
:
0
;
background
:
rgba
(
0
,
0
,
0
,
0
.3
);
background
:
rgba
(
0
,
0
,
0
,
0
.3
);
}
}
}
}
}
}
.two-c-box
{
.two-c-box
{
margin-top
:
20rpx
;
margin-top
:
20rpx
;
height
:
calc
(
100vh
-
175rpx
-
130rpx
)
;
height
:
calc
(
100vh
-
175rpx
-
130rpx
);
.lc
{
.lc
{
width
:
225rpx
;
width
:
225rpx
;
height
:
100%
;
height
:
100%
;
padding-top
:
40rpx
;
padding-top
:
40rpx
;
font-size
:
24rpx
;
font-size
:
24rpx
;
color
:
#666666
;
color
:
#666666
;
overflow-y
:
auto
;
overflow-y
:
auto
;
background
:
#f8f8f8
;
background
:
#f8f8f8
;
.item
{
.item
{
padding
:
15rpx
0
;
padding
:
15rpx
0
;
padding-left
:
35rpx
;
padding-left
:
35rpx
;
padding-right
:
50rpx
;
padding-right
:
50rpx
;
margin-bottom
:
10rpx
;
margin-bottom
:
10rpx
;
height
:
92rpx
;
height
:
92rpx
;
&
.act
{
&
.act
{
color
:
#000000
;
color
:
#000000
;
background
:
#fff
;
background
:
#fff
;
border-radius
:
100rpx
0
0
100rpx
;
border-radius
:
100rpx
0
0
100rpx
;
}
}
}
}
}
}
.rc
{
.rc
{
width
:
525rpx
;
width
:
525rpx
;
height
:
100%
;
height
:
100%
;
overflow-y
:
auto
;
overflow-y
:
auto
;
padding-left
:
35rpx
;
padding-left
:
35rpx
;
.item
{
.item
{
margin-right
:
35rpx
;
margin-right
:
35rpx
;
width
:
130rpx
;
width
:
130rpx
;
padding-bottom
:
20rpx
;
padding-bottom
:
20rpx
;
//margin-bottom:10rpx;
//margin-bottom:10rpx;
display
:
inline-block
;
display
:
inline-block
;
height
:
227rpx
;
height
:
227rpx
;
&
:nth-child
(
3n
)
{
&
:nth-child
(
3n
)
{
margin-right
:
0rpx
;
margin-right
:
0rpx
;
}
}
image
{
image
{
width
:
130rpx
;
width
:
130rpx
;
height
:
130rpx
;
height
:
130rpx
;
margin-bottom
:
12rpx
;
margin-bottom
:
12rpx
;
display
:
block
;
display
:
block
;
}
}
text
{
text
{
color
:
#000000
;
color
:
#000000
;
width
:
130rpx
;
width
:
130rpx
;
display
:
block
;
display
:
block
;
line-height
:
30rpx
;
line-height
:
30rpx
;
height
:
30rpx
;
height
:
30rpx
;
text-align
:
center
;
text-align
:
center
;
font-size
:
24rpx
;
font-size
:
24rpx
;
color
:
#000000
;
color
:
#000000
;
}
}
}
}
}
}
}
}
}
}
}
}
/* #ifdef H5 */
/* #ifdef H5 */
.classNavPage
{
.classNavPage
{
.two-c-box
{
.two-c-box
{
height
:
calc
(
100vh
-
90rpx
-
130rpx
)
;
height
:
calc
(
100vh
-
90rpx
-
130rpx
);
}
}
}
}
/* #endif */
/* #endif */
pages/auth/rule.vue
View file @
13fca3da
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<barX
/>
<barX
/>
<view
class=
"header row verCenter"
>
<view
class=
"header row verCenter"
>
<text
class=
"icon iconfont icon-arrowleft"
@
click=
"$goBack"
></text>
<text
class=
"icon iconfont icon-arrowleft"
@
click=
"$goBack"
></text>
<view>
{{
id
==
1
?
'爱智网站服务协议'
:
'爱智网
隐私政策'
}}
</view>
<view>
{{
id
==
1
?
'爱智网站服务协议'
:
'爱智
隐私政策'
}}
</view>
</view>
</view>
<view
class=
"content"
v-html=
"content"
></view>
<view
class=
"content"
v-html=
"content"
></view>
</view>
</view>
...
@@ -18,20 +18,20 @@
...
@@ -18,20 +18,20 @@
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
id
:
1
,
id
:
1
,
content
:
""
content
:
""
}
}
},
},
onLoad
:
function
(
option
)
{
onLoad
:
function
(
option
)
{
this
.
id
=
option
.
id
this
.
id
=
option
.
id
this
.
getData
()
this
.
getData
()
},
},
methods
:
{
methods
:
{
getData
()
{
getData
()
{
this
.
request
(
Api_Url
+
'/api/xcx/newsPage'
,
'GET'
,
{
type
:
this
.
id
},
true
).
then
(
res
=>
{
this
.
request
(
Api_Url
+
'/api/xcx/newsPage'
,
'GET'
,
{
type
:
this
.
id
},
true
).
then
(
res
=>
{
if
(
res
.
code
==
0
)
{
if
(
res
.
code
==
0
)
{
this
.
content
=
res
.
data
.
content
this
.
content
=
res
.
data
.
content
}
else
{
}
else
{
uni
.
showToast
({
uni
.
showToast
({
title
:
res
.
msg
,
title
:
res
.
msg
,
icon
:
'error'
icon
:
'error'
...
@@ -49,32 +49,35 @@
...
@@ -49,32 +49,35 @@
</
script
>
</
script
>
<
style
scoped
lang=
"scss"
>
<
style
scoped
lang=
"scss"
>
.rulePage
{
.rulePage
{
.header{
.header
{
height
:
110
rpx
;
height
:
110
rpx
;
padding-left
:
33
rpx
;
padding-left
:
33
rpx
;
.icon{
.icon
{
font-size
:
35
rpx
;
font-size
:
35
rpx
;
color
:
#898989
;
color
:
#898989
;
margin-right
:
160
rpx
;
margin-right
:
160
rpx
;
}
}
view
{
view
{
font-weight
:
600
;
font-weight
:
600
;
font-size
:
32
rpx
;
font-size
:
32
rpx
;
color
:
#000000
;
color
:
#000000
;
}
}
}
}
.content
{
padding
:
33
rpx
;
.content
{
padding-top
:
0
rpx
;
padding
:
33
rpx
;
padding-top
:
0
rpx
;
font-size
:
26
rpx
;
font-size
:
26
rpx
;
color
:
#000000
;
color
:
#000000
;
line-height
:
50
rpx
;
line-height
:
50
rpx
;
letter-spacing
:
1px
;
letter-spacing
:
1px
;
overflow-y
:
auto
;
overflow-y
:
auto
;
height
:
calc
(
100vh
-
285
rpx
);
height
:
calc
(
100vh
-
285
rpx
);
/* #ifdef H5 */
/* #ifdef H5 */
height
:
calc
(
100vh
-
200
rpx
);
height
:
calc
(
100vh
-
200
rpx
);
/* #endif */
/* #endif */
}
}
}
}
...
...
pages/car/confirmQuote.vue
View file @
13fca3da
<
template
>
<
template
>
<view
class=
"confirmQuotePage"
>
<view
class=
"confirmQuotePage"
>
<barX
/>
<barX
/>
<titleNav
:title=
"'确认报价单'"
/>
<titleNav
:title=
"'确认报价单'"
/>
<view
class=
"cons"
>
<view
class=
"cons"
>
<view
class=
"top-box"
>
<view
class=
"top-box"
>
<view
class=
"tit"
>
询价人:
{{
create_name
}}
</view>
<view
class=
"tit"
>
询价人:
{{
create_name
}}
</view>
<navigator
:url=
"'/pages/user/address?form=confirmQuote&address_id='+address_id+'&coupon_id='+coupon_id"
class=
"address-box"
>
<view
class=
"tit"
>
公司名称:
{{
priceInfo
.
company_name
}}
</view>
<!--
<navigator
:url=
"'/pages/user/address?form=confirmQuote&address_id='+address_id+'&coupon_id='+coupon_id"
class=
"address-box"
>
<view
class=
"addbx row bothSide verCenter"
>
<view
class=
"addbx row bothSide verCenter"
>
<view
class=
"l"
>
<view
class=
"l"
>
<view
class=
"ad row verCenter"
>
<view
class=
"ad row verCenter"
>
...
@@ -17,7 +18,7 @@
...
@@ -17,7 +18,7 @@
</view>
</view>
<text
class=
"icon iconfont icon-arrowright"
></text>
<text
class=
"icon iconfont icon-arrowright"
></text>
</view>
</view>
</navigator>
</navigator>
-->
</view>
</view>
<view
class=
"goods-box"
v-if=
"carList.length>0"
>
<view
class=
"goods-box"
v-if=
"carList.length>0"
>
<view
class=
"group row"
v-for=
"(item,index) in carList"
:key=
"index"
>
<view
class=
"group row"
v-for=
"(item,index) in carList"
:key=
"index"
>
...
@@ -43,10 +44,10 @@
...
@@ -43,10 +44,10 @@
</view>
</view>
</view>
</view>
</view>
</view>
<view
class=
"pur-sn-box"
>
<!--
<view
class=
"pur-sn-box"
>
<view
class=
"tit"
>
客户采购单号
</view>
<view
class=
"tit"
>
客户采购单号
</view>
<input
type=
"text"
class=
"pur-sn-val"
v-model=
"purchase_sn"
placeholder-class=
"placeholder-class"
placeholder=
"请输入采购单号"
/>
<input
type=
"text"
class=
"pur-sn-val"
v-model=
"purchase_sn"
placeholder-class=
"placeholder-class"
placeholder=
"请输入采购单号"
/>
</view
>
</view>
--
>
<view
class=
"price-infos"
v-if=
"priceInfo"
>
<view
class=
"price-infos"
v-if=
"priceInfo"
>
<view
class=
"top "
>
<view
class=
"top "
>
<view
class=
"item row bothSide"
><text>
商品含税总额
</text><text>
{{
priceInfo
.
currency_sign
}}{{
priceInfo
.
all_amount
}}
</text></view>
<view
class=
"item row bothSide"
><text>
商品含税总额
</text><text>
{{
priceInfo
.
currency_sign
}}{{
priceInfo
.
all_amount
}}
</text></view>
...
@@ -59,12 +60,11 @@
...
@@ -59,12 +60,11 @@
</view>
</view>
</view>
</view>
<view
class=
"rules row verCenter"
>
<view
class=
"rules row verCenter"
>
<text
class=
"icon iconfont icon-checked1"
:class=
"
{'icon-checked':isTest}"
<text
class=
"icon iconfont icon-checked1"
:class=
"
{'icon-checked':isTest}" @click="isTest=!isTest">
</text>
@click="isTest=!isTest">
</text>
<navigator
url=
"/pages/car/confirmRule"
class=
"tklink"
>
查看交易条款
</navigator>
<navigator
url=
"/pages/car/confirmRule"
class=
"tklink"
>
查看交易条款
</navigator>
</view>
</view>
</view>
</view>
<view
class=
"foot row verCenter bothSide "
>
<view
class=
"foot row verCenter bothSide "
>
<view
class=
"l row verCenter"
>
含税总额:
<text
v-if=
"priceInfo"
>
{{
priceInfo
.
currency_sign
}}{{
priceInfo
.
pay_amount
}}
</text>
</view>
<view
class=
"l row verCenter"
>
含税总额:
<text
v-if=
"priceInfo"
>
{{
priceInfo
.
currency_sign
}}{{
priceInfo
.
pay_amount
}}
</text>
</view>
<view
class=
"submit-btn"
@
click=
"openTipsx"
>
完成报价
</view>
<view
class=
"submit-btn"
@
click=
"openTipsx"
>
完成报价
</view>
</view>
</view>
...
@@ -118,128 +118,129 @@
...
@@ -118,128 +118,129 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
Api_Url
}
from
'@/util/api.js'
import
{
Api_Url
}
from
'@/util/api.js'
import
barX
from
'@/components/barx.vue'
;
import
barX
from
'@/components/barx.vue'
;
import
titleNav
from
'@/components/title_nav.vue'
;
import
titleNav
from
'@/components/title_nav.vue'
;
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
isTest
:
true
,
isTest
:
true
,
pdf_email
:
""
,
pdf_email
:
""
,
purchase_sn
:
""
,
purchase_sn
:
""
,
userInfo
:
""
,
userInfo
:
""
,
create_name
:
""
,
create_name
:
""
,
address_id
:
""
,
address_id
:
""
,
addressInfo
:
""
,
addressInfo
:
""
,
carList
:
[],
carList
:
[],
coupon_list
:
[],
coupon_list
:
[],
coupon_id
:
""
,
coupon_id
:
""
,
priceInfo
:
""
,
priceInfo
:
""
,
isCompany
:(
uni
.
getStorageSync
(
'user_info'
)
&&
JSON
.
parse
(
uni
.
getStorageSync
(
'user_info'
)).
company_name
)?
true
:
false
isCompany
:
(
uni
.
getStorageSync
(
'user_info'
)
&&
JSON
.
parse
(
uni
.
getStorageSync
(
'user_info'
)).
company_name
)
?
true
:
false
}
}
},
},
onLoad
:
function
(
options
)
{
onLoad
:
function
(
options
)
{
this
.
address_id
=
options
.
address_id
||
""
this
.
address_id
=
options
.
address_id
||
""
this
.
coupon_id
=
options
.
coupon_id
||
""
this
.
coupon_id
=
options
.
coupon_id
||
""
this
.
userInfo
=
JSON
.
parse
(
uni
.
getStorageSync
(
'user_info'
))
this
.
userInfo
=
JSON
.
parse
(
uni
.
getStorageSync
(
'user_info'
))
this
.
create_name
=
this
.
userInfo
.
wx_nickname
||
this
.
userInfo
.
phone
||
this
.
userInfo
.
email
this
.
create_name
=
this
.
userInfo
.
wx_nickname
||
this
.
userInfo
.
phone
||
this
.
userInfo
.
email
},
},
onShow
()
{
onShow
()
{
this
.
getCarList
()
this
.
getCarList
()
this
.
getAddress
()
//
this.getAddress()
},
},
methods
:
{
methods
:
{
chooseYhq
(
coupon_id
)
{
chooseYhq
(
coupon_id
)
{
this
.
coupon_id
=
coupon_id
this
.
coupon_id
=
coupon_id
},
},
chooseUp
()
{
chooseUp
()
{
if
(
this
.
coupon_list
==
0
){
return
}
if
(
this
.
coupon_list
==
0
)
{
return
}
this
.
openPop
()
this
.
openPop
()
},
},
confirmYhq
()
{
confirmYhq
()
{
this
.
calPrice
()
this
.
calPrice
()
this
.
closePop
()
this
.
closePop
()
},
},
calPrice
()
{
calPrice
()
{
let
sku_
=
[]
let
sku_
=
[]
this
.
carList
.
forEach
(
item
=>
{
this
.
carList
.
forEach
(
item
=>
{
sku_
.
push
({
sku_
.
push
({
sku_id
:
item
.
goods_id
,
sku_id
:
item
.
goods_id
,
num
:
item
.
goods_num
num
:
item
.
goods_num
})
})
})
})
this
.
request
(
Api_Url
+
'/api/order/calQuotePrice'
,
'post'
,
{
sku_json
:
JSON
.
stringify
(
sku_
),
user_coupon_id
:(
this
.
coupon_id
||
""
)},
true
,
true
).
then
(
res
=>
{
this
.
request
(
Api_Url
+
'/api/order/calQuotePrice'
,
'post'
,
{
sku_json
:
JSON
.
stringify
(
sku_
),
user_coupon_id
:
(
this
.
coupon_id
||
""
)
},
true
,
true
).
then
(
res
=>
{
if
(
res
.
code
==
0
){
if
(
res
.
code
==
0
)
{
this
.
priceInfo
=
res
.
data
this
.
priceInfo
=
res
.
data
;
this
.
pdf_email
=
res
.
data
.
recent_quote_email
;
}
}
})
})
},
},
getCarList
()
{
getCarList
()
{
this
.
carList
=
[]
this
.
carList
=
[]
this
.
request
(
Api_Url
+
'/api/cart/getCartGoodsInfo'
,
'GET'
,
{
sku_ids
:
uni
.
getStorageSync
(
'car_ids'
)},
true
,
true
).
then
(
res
=>
{
this
.
request
(
Api_Url
+
'/api/cart/getCartGoodsInfo'
,
'GET'
,
{
sku_ids
:
uni
.
getStorageSync
(
'car_ids'
)
},
true
,
true
).
then
(
res
=>
{
if
(
res
.
code
==
0
)
{
if
(
res
.
code
==
0
)
{
let
arr_
=
res
.
data
.
goods_list
let
arr_
=
res
.
data
.
goods_list
arr_
.
forEach
(
item
=>
{
arr_
.
forEach
(
item
=>
{
item
.
delivery_list
.
forEach
(
item1
=>
{
item
.
delivery_list
.
forEach
(
item1
=>
{
this
.
carList
.
push
(
item1
)
this
.
carList
.
push
(
item1
)
})
})
})
})
this
.
coupon_list
=
res
.
data
.
coupon_list
||
[]
this
.
coupon_list
=
res
.
data
.
coupon_list
||
[]
this
.
calPrice
()
this
.
calPrice
()
}
}
})
})
},
},
getAddress
()
{
getAddress
()
{
this
.
request
(
Api_Url
+
'/api/address/getList'
,
'GET'
,
{},
true
).
then
(
res
=>
{
this
.
request
(
Api_Url
+
'/api/address/getList'
,
'GET'
,
{},
true
).
then
(
res
=>
{
if
(
res
.
code
==
0
)
{
if
(
res
.
code
==
0
)
{
let
arr_
=
res
.
data
.
list
||
[]
let
arr_
=
res
.
data
.
list
||
[]
arr_
.
forEach
(
item
=>
{
arr_
.
forEach
(
item
=>
{
if
(
this
.
address_id
)
{
if
(
this
.
address_id
)
{
if
(
item
.
address_id
==
this
.
address_id
)
{
if
(
item
.
address_id
==
this
.
address_id
)
{
this
.
addressInfo
=
item
this
.
addressInfo
=
item
}
}
}
else
{
}
else
{
if
(
item
.
is_default
==
1
)
{
if
(
item
.
is_default
==
1
)
{
this
.
addressInfo
=
item
this
.
addressInfo
=
item
}
}
}
}
})
})
if
(
arr_
.
length
>
0
&&
(
!
this
.
addressInfo
))
{
if
(
arr_
.
length
>
0
&&
(
!
this
.
addressInfo
))
{
this
.
addressInfo
=
arr_
[
0
]
this
.
addressInfo
=
arr_
[
0
]
}
}
if
(
this
.
addressInfo
)
{
if
(
this
.
addressInfo
)
{
this
.
address_id
=
this
.
addressInfo
.
address_id
this
.
address_id
=
this
.
addressInfo
.
address_id
}
}
}
}
})
})
},
},
createQuote
()
{
createQuote
()
{
let
goods_json_arr
=
[]
let
goods_json_arr
=
[]
this
.
carList
.
forEach
(
item
=>
{
this
.
carList
.
forEach
(
item
=>
{
goods_json_arr
.
push
({
goods_json_arr
.
push
({
sku_id
:
item
.
goods_id
,
sku_id
:
item
.
goods_id
,
num
:
item
.
goods_num
num
:
item
.
goods_num
})
})
})
})
let
obj_
=
{
let
obj_
=
{
create_name
:
this
.
create_name
,
create_name
:
this
.
create_name
,
pdf_email
:
this
.
pdf_email
,
pdf_email
:
this
.
pdf_email
,
sku_json
:
JSON
.
stringify
(
goods_json_arr
),
sku_json
:
JSON
.
stringify
(
goods_json_arr
),
user_coupon_id
:
this
.
coupon_id
,
user_coupon_id
:
this
.
coupon_id
,
address_id
:
this
.
address_id
,
address_id
:
this
.
address_id
,
purchase_sn
:
this
.
purchase_sn
purchase_sn
:
this
.
purchase_sn
}
}
this
.
request
(
Api_Url
+
'/api/xcx/confirmQuote'
,
'post'
,
obj_
,
true
).
then
(
res
=>
{
this
.
request
(
Api_Url
+
'/api/xcx/confirmQuote'
,
'post'
,
obj_
,
true
).
then
(
res
=>
{
if
(
res
.
code
==
0
)
{
if
(
res
.
code
==
0
)
{
uni
.
setStorageSync
(
'quoteInfo'
,
JSON
.
stringify
(
res
.
data
))
uni
.
setStorageSync
(
'quoteInfo'
,
JSON
.
stringify
(
res
.
data
))
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
'/pages/car/confirmQuoteSuccess'
url
:
'/pages/car/confirmQuoteSuccess'
});
});
}
else
{
}
else
{
uni
.
showToast
({
uni
.
showToast
({
title
:
res
.
msg
,
title
:
res
.
msg
,
icon
:
'nonde'
icon
:
'nonde'
...
@@ -249,21 +250,7 @@
...
@@ -249,21 +250,7 @@
})
})
},
},
openTipsx
()
{
openTipsx
()
{
if
(
!
this
.
address_id
){
if
(
!
this
.
isTest
)
{
uni
.
showToast
({
title
:
'请选择地址'
,
icon
:
'none'
});
return
}
if
(
!
this
.
purchase_sn
){
uni
.
showToast
({
title
:
'请输入客户采购单号'
,
icon
:
'none'
});
return
}
if
(
!
this
.
isTest
){
uni
.
showToast
({
uni
.
showToast
({
title
:
'请勾选并确认交易条款'
,
title
:
'请勾选并确认交易条款'
,
icon
:
'none'
icon
:
'none'
...
...
pages/class/nav.vue
View file @
13fca3da
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<view
class=
"classNavPage"
>
<view
class=
"classNavPage"
>
<barX
/>
<barX
/>
<view
class=
"bugc-ceng"
>
<view
class=
"bugc-ceng"
>
<searchHead
@
confirm=
"onConfirm"
@
goUrl=
"goUrl"
/>
<searchHead
@
confirm=
"onConfirm"
@
goUrl=
"goUrl"
/>
</view>
</view>
<view
class=
"cons"
>
<view
class=
"cons"
>
...
@@ -11,19 +11,17 @@
...
@@ -11,19 +11,17 @@
<view
class=
"itemo"
:class=
"
{'act':item.checkedx}" v-for="(item,index) in pageData" :key="index" @click="tab(1,item.base_id)">
{{
item
.
title
}}
</view>
<view
class=
"itemo"
:class=
"
{'act':item.checkedx}" v-for="(item,index) in pageData" :key="index" @click="tab(1,item.base_id)">
{{
item
.
title
}}
</view>
</view>
</view>
<view
class=
"rb row verCenter rowCenter"
@
click=
"isShowClassOne=!isShowClassOne"
>
<view
class=
"rb row verCenter rowCenter"
@
click=
"isShowClassOne=!isShowClassOne"
>
<text
:class=
"['icon','iconfont','icon-arrowxia']"
></text>
<text
:class=
"['icon','iconfont','icon-arrowxia']"
></text>
</view>
</view>
<view
class=
"one-c-hide-cons"
>
<view
class=
"one-c-hide-cons"
>
<view
class=
"tit"
>
全部分类
</view>
<view
class=
"tit"
>
全部分类
</view>
<view
class=
"hide-sec row"
>
<view
class=
"hide-sec row"
>
<view
class=
"itemh"
:class=
"
{'act':item.checkedx}" v-for="(item,index) in pageData" :key="index" @click="tab(1,item.base_id)">
<view
class=
"itemh"
:class=
"
{'act':item.checkedx}" v-for="(item,index) in pageData" :key="index" @click="tab(1,item.base_id)">
<image
:src=
"item.images||'https://www.iedge.net/assets/images/common/defaultnew.png'"
mode=
"aspectFit"
></image>
<image
:src=
"item.images||'https://www.iedge.net/assets/images/common/defaultnew.png'"
mode=
"aspectFit"
></image>
<text
class=
"elep"
>
{{
item
.
title
}}
</text>
<text
class=
"elep"
>
{{
item
.
title
}}
</text>
</view>
</view>
</view>
</view>
<view
class=
"foot row verCenter rowCenter"
@
click=
"isShowClassOne=!isShowClassOne"
>
收起
<text
<view
class=
"foot row verCenter rowCenter"
@
click=
"isShowClassOne=!isShowClassOne"
>
收起
<text
class=
"icon iconfont icon-arrowshang"
></text></view>
class=
"icon iconfont icon-arrowshang"
></text></view>
</view>
</view>
</view>
</view>
<view
class=
"two-c-box row bothSide"
>
<view
class=
"two-c-box row bothSide"
>
...
@@ -32,7 +30,7 @@
...
@@ -32,7 +30,7 @@
</view>
</view>
<view
class=
"rc "
>
<view
class=
"rc "
>
<navigator
:url=
"'/pages/class/list?class_id2='+item.class_id"
class=
"item"
v-for=
"(item,index) in sanJlist"
:key=
"index"
>
<navigator
:url=
"'/pages/class/list?class_id2='+item.class_id"
class=
"item"
v-for=
"(item,index) in sanJlist"
:key=
"index"
>
<image
:src=
"item.class_icon||'https://www.iedge.net/assets/images/common/defaultnew.png'"
mode=
"aspectFit"
></image>
<image
:src=
"item.class_icon||'https://www.iedge.net/assets/images/common/defaultnew.png'"
mode=
"aspectFit"
></image>
<text
class=
"elep"
>
{{
item
.
class_name
}}
</text>
<text
class=
"elep"
>
{{
item
.
class_name
}}
</text>
</navigator>
</navigator>
...
@@ -57,42 +55,42 @@
...
@@ -57,42 +55,42 @@
return
{
return
{
isShowClassOne
:
false
,
//是否展示一级分类浮层
isShowClassOne
:
false
,
//是否展示一级分类浮层
pageData
:
[],
pageData
:
[],
erJList
:
[],
erJList
:
[],
sanJlist
:
[],
sanJlist
:
[],
class_id1
:
""
,
class_id1
:
""
,
class_id2
:
""
class_id2
:
""
}
}
},
},
onLoad
:
function
(
option
)
{
onLoad
:
function
(
option
)
{
this
.
class_id1
=
option
.
class_id1
?
option
.
class_id1
:
''
this
.
class_id1
=
option
.
class_id1
?
option
.
class_id1
:
''
this
.
class_id2
=
option
.
class_id2
?
option
.
class_id2
:
''
this
.
class_id2
=
option
.
class_id2
?
option
.
class_id2
:
''
this
.
getData
()
this
.
getData
()
},
},
methods
:
{
methods
:
{
tab
(
type
,
id
)
{
tab
(
type
,
id
)
{
if
(
type
==
1
)
{
if
(
type
==
1
)
{
this
.
pageData
.
forEach
(
item
=>
{
this
.
pageData
.
forEach
(
item
=>
{
if
(
item
.
base_id
==
id
)
{
if
(
item
.
base_id
==
id
)
{
item
.
checkedx
=
true
item
.
checkedx
=
true
this
.
erJList
=
item
.
right_cate_list
||
[]
this
.
erJList
=
item
.
right_cate_list
||
[]
}
else
{
}
else
{
item
.
checkedx
=
false
item
.
checkedx
=
false
}
}
(
this
.
erJList
||
[]).
forEach
((
item1
,
index1
)
=>
{
(
this
.
erJList
||
[]).
forEach
((
item1
,
index1
)
=>
{
if
(
index1
==
0
)
{
if
(
index1
==
0
)
{
item1
.
checkedx
=
true
item1
.
checkedx
=
true
this
.
sanJlist
=
item1
.
children
this
.
sanJlist
=
item1
.
children
}
else
{
}
else
{
item1
.
checkedx
=
false
item1
.
checkedx
=
false
}
}
})
})
})
})
}
else
{
}
else
{
this
.
erJList
.
forEach
((
item1
,
index1
)
=>
{
this
.
erJList
.
forEach
((
item1
,
index1
)
=>
{
if
(
item1
.
class_id
==
id
)
{
if
(
item1
.
class_id
==
id
)
{
item1
.
checkedx
=
true
item1
.
checkedx
=
true
this
.
sanJlist
=
item1
.
children
this
.
sanJlist
=
item1
.
children
}
else
{
}
else
{
item1
.
checkedx
=
false
item1
.
checkedx
=
false
}
}
...
@@ -101,36 +99,36 @@
...
@@ -101,36 +99,36 @@
},
},
getData
()
{
getData
()
{
this
.
request
(
Api_Url
+
'/api/xcx/category'
,
'GET'
,
{},
true
).
then
(
res
=>
{
this
.
request
(
Api_Url
+
'/api/xcx/category'
,
'GET'
,
{},
true
).
then
(
res
=>
{
if
(
res
.
code
==
0
)
{
if
(
res
.
code
==
0
)
{
this
.
pageData
=
res
.
data
.
category_list
||
[]
this
.
pageData
=
res
.
data
.
category_list
||
[]
this
.
pageData
.
forEach
((
item
,
index
)
=>
{
this
.
pageData
.
forEach
((
item
,
index
)
=>
{
if
(
this
.
class_id1
)
{
if
(
this
.
class_id1
)
{
if
(
this
.
class_id1
==
item
.
base_id
)
{
if
(
this
.
class_id1
==
item
.
base_id
)
{
item
.
checkedx
=
true
item
.
checkedx
=
true
this
.
erJList
=
item
.
right_cate_list
||
[]
this
.
erJList
=
item
.
right_cate_list
||
[]
}
else
{
}
else
{
item
.
checkedx
=
false
item
.
checkedx
=
false
}
}
}
else
{
}
else
{
if
(
index
==
0
)
{
if
(
index
==
0
)
{
item
.
checkedx
=
true
item
.
checkedx
=
true
this
.
erJList
=
item
.
right_cate_list
||
[]
this
.
erJList
=
item
.
right_cate_list
||
[]
}
else
{
}
else
{
item
.
checkedx
=
false
item
.
checkedx
=
false
}
}
}
}
(
this
.
erJList
||
[]).
forEach
((
item1
,
index1
)
=>
{
(
this
.
erJList
||
[]).
forEach
((
item1
,
index1
)
=>
{
if
(
this
.
class_id2
)
{
if
(
this
.
class_id2
)
{
if
(
this
.
class_id2
==
item1
.
class_id
)
{
if
(
this
.
class_id2
==
item1
.
class_id
)
{
item1
.
checkedx
=
true
item1
.
checkedx
=
true
this
.
sanJlist
=
item1
.
children
this
.
sanJlist
=
item1
.
children
}
else
{
}
else
{
item1
.
checkedx
=
false
item1
.
checkedx
=
false
}
}
}
else
{
}
else
{
if
(
index1
==
0
)
{
if
(
index1
==
0
)
{
item1
.
checkedx
=
true
item1
.
checkedx
=
true
this
.
sanJlist
=
item1
.
children
this
.
sanJlist
=
item1
.
children
}
else
{
}
else
{
item1
.
checkedx
=
false
item1
.
checkedx
=
false
}
}
...
@@ -139,7 +137,7 @@
...
@@ -139,7 +137,7 @@
})
})
})
})
}
else
{
}
else
{
uni
.
showToast
({
uni
.
showToast
({
title
:
res
.
msg
,
title
:
res
.
msg
,
icon
:
'error'
icon
:
'error'
...
@@ -163,7 +161,7 @@
...
@@ -163,7 +161,7 @@
url
:
'/pages/search/list?k='
+
key_
url
:
'/pages/search/list?k='
+
key_
});
});
},
},
goUrl
()
{
goUrl
()
{
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
'/pages/search/nav'
url
:
'/pages/search/nav'
});
});
...
...
pages/goods/detail.vue
View file @
13fca3da
<
template
>
<
template
>
<view
class=
"goodsDetailPage"
v-if=
"goods_info"
>
<view
class=
"goodsDetailPage"
v-if=
"goods_info"
>
<barX
/>
<barX
/>
<view
class=
"header row verCenter"
>
<view
class=
"header row verCenter"
>
<text
class=
"icon iconfont icon-arrowleft"
@
click=
"$goBack"
></text>
<text
class=
"icon iconfont icon-arrowleft"
@
click=
"$goBack"
></text>
<text
class=
"tab-item"
:class=
"
{'act':pageTab==1}" @click="tab(1)">商品
</text>
<text
class=
"tab-item"
:class=
"
{'act':pageTab==1}" @click="tab(1)">商品
</text>
<text
class=
"tab-item "
:class=
"
{'act':pageTab==2}" @click="tab(2)">详情
</text>
<text
class=
"tab-item "
:class=
"
{'act':pageTab==2}" @click="tab(2)">详情
</text>
</view>
</view>
<view
class=
"goods_info"
>
<view
class=
"goods_info"
>
<view
class=
"swiper-box"
v-if=
"images.length>0"
>
<view
class=
"swiper-box"
v-if=
"images.length>0"
>
<swiper
class=
"swiper"
@
change=
"handleSwiperChange"
:indicator-dots=
"false"
:autoplay=
"false"
<swiper
class=
"swiper"
@
change=
"handleSwiperChange"
:indicator-dots=
"false"
:autoplay=
"false"
:interval=
"3000"
:duration=
"500"
>
:interval=
"3000"
:duration=
"500"
>
<swiper-item
class=
"swiper-item"
v-for=
"(item, index) in images"
:key=
"index"
>
<swiper-item
class=
"swiper-item"
v-for=
"(item, index) in images"
:key=
"index"
>
<image
class=
"swiper-image"
:src=
"item.thumbnail||'https://www.iedge.net/assets/images/common/defaultnew.png'"
mode=
"aspectFit"
/>
<image
class=
"swiper-image"
:src=
"item.thumbnail||'https://www.iedge.net/assets/images/common/defaultnew.png'"
mode=
"aspectFit"
/>
</swiper-item>
</swiper-item>
...
@@ -39,10 +38,8 @@
...
@@ -39,10 +38,8 @@
</view>
</view>
<view
class=
"tag-box row"
<view
class=
"tag-box row"
v-if=
"goods_info.goods_tag&&goods_info.goods_tag.goods_tag_names&&goods_info.goods_tag.goods_tag_names.length>0"
>
v-if=
"goods_info.goods_tag&&goods_info.goods_tag.goods_tag_names&&goods_info.goods_tag.goods_tag_names.length>0"
>
<view
class=
"tag"
:class=
"
{'tag1': index % 2 != 0, 'tag2': index % 2 == 0}" v-for="(item,index) in goods_info.goods_tag.goods_tag_names" :key="index">
{{
item
}}
</view>
<view
class=
"tag"
:class=
"
{'tag1': index % 2 != 0, 'tag2': index % 2 == 0}"
v-for="(item,index) in goods_info.goods_tag.goods_tag_names" :key="index">
{{
item
}}
</view>
</view>
</view>
<view
class=
"goods-name elep2"
>
{{
goods_info
.
sku_name
}}
</view>
<view
class=
"goods-name elep2"
>
{{
goods_info
.
sku_name
}}
</view>
<view
class=
"attr-box"
>
<view
class=
"attr-box"
>
...
@@ -88,12 +85,12 @@
...
@@ -88,12 +85,12 @@
</view>
</view>
<view
class=
"foot row verCenter bothSide"
>
<view
class=
"foot row verCenter bothSide"
>
<navigator
class=
"item"
:url=
'$globalData.KFQQ'
>
<navigator
class=
"item"
:url=
'$globalData.KFQQ'
>
<text
class=
"icon iconfont icon-kfd"
></text>
<text
class=
"icon iconfont icon-kfd"
></text>
<view>
客服
</view>
<view>
客服
</view>
</navigator>
</navigator>
<navigator
class=
"item"
url=
"/pages/car/list"
>
<navigator
class=
"item"
url=
"/pages/car/list"
>
<text
class=
"icon iconfont icon-card"
></text>
<text
class=
"icon iconfont icon-card"
></text>
<view>
购物车
</view>
<view>
购物车
</view>
</navigator>
</navigator>
...
@@ -120,14 +117,14 @@
...
@@ -120,14 +117,14 @@
<view
class=
"price1"
>
¥
{{
buyPrice
}}
</view>
<view
class=
"price1"
>
¥
{{
buyPrice
}}
</view>
<view
class=
"hbha row verCenter bothSide"
>
<view
class=
"hbha row verCenter bothSide"
>
<text
class=
"icon iconfont icon-jian"
@
click=
"addjNum(goods_info.sku_id,1)"
></text>
<text
class=
"icon iconfont icon-jian"
@
click=
"addjNum(goods_info.sku_id,1)"
></text>
<input
type=
"number"
v-model=
"goods_numberx"
@
input=
"changeNum(goods_info.sku_id)"
/>
<input
type=
"number"
v-model=
"goods_numberx"
@
input=
"changeNum(goods_info.sku_id)"
/>
<text
class=
"icon iconfont icon-jia"
@
click=
"addjNum(goods_info.sku_id,2)"
></text>
<text
class=
"icon iconfont icon-jia"
@
click=
"addjNum(goods_info.sku_id,2)"
></text>
</view>
</view>
</view>
</view>
</view>
</view>
<view
class=
"goods-box"
>
<view
class=
"goods-box"
>
<view
class=
"tit"
>
型号
</view>
<view
class=
"tit"
>
型号
</view>
<view
class=
"item"
:class=
"
{'act':goods_id==item.goods_id}" v-for="(item,index) in goods_series" :key="index"
>
<view
class=
"item"
:class=
"
{'act':goods_id==item.goods_id}" v-for="(item,index) in goods_series" :key="index"
>
<text
@
click=
"changeSku(item.goods_id)"
>
{{
item
.
goods_name
}}
</text>
<text
@
click=
"changeSku(item.goods_id)"
>
{{
item
.
goods_name
}}
</text>
</view>
</view>
...
@@ -142,14 +139,13 @@
...
@@ -142,14 +139,13 @@
<view
class=
"trt"
><text
class=
"icon iconfont icon-caca"
@
click=
"closeAddList"
></text></view>
<view
class=
"trt"
><text
class=
"icon iconfont icon-caca"
@
click=
"closeAddList"
></text></view>
<view
class=
"ttit elep"
>
{{
goods_info
.
goods_name
}}
</view>
<view
class=
"ttit elep"
>
{{
goods_info
.
goods_name
}}
</view>
<view
class=
"new-box row"
>
<view
class=
"new-box row"
>
<text
class=
"new-btn row verCenter"
@
click=
"openNewList"
>
新建清单
<text
<text
class=
"new-btn row verCenter"
@
click=
"openNewList"
>
新建清单
<text
class=
"icon iconfont icon-jia"
></text></text>
class=
"icon iconfont icon-jia"
></text></text>
</view>
</view>
<view
class=
"list-box"
v-if=
"qDList.length>0"
>
<view
class=
"list-box"
v-if=
"qDList.length>0"
>
<view
class=
"item row verCenter bothSide"
v-for=
"(item,index) in qDList"
:key=
"index"
>
<view
class=
"item row verCenter bothSide"
v-for=
"(item,index) in qDList"
:key=
"index"
>
<view
class=
"row verCenter"
@
click
.
stop=
"chooseQd(item.list_id)"
>
<view
class=
"row verCenter"
@
click
.
stop=
"chooseQd(item.list_id)"
>
<view
class=
"l"
>
<view
class=
"l"
>
<text
class=
"icon iconfont icon-checked1"
:class=
"
{'icon-checked':item.checked}"
>
</text>
<text
class=
"icon iconfont icon-checked1"
:class=
"
{'icon-checked':item.checked}"
>
</text>
</view>
</view>
<view
class=
"c"
>
<view
class=
"c"
>
<view
class=
"elep"
>
{{
item
.
list_name
}}
</view>
<view
class=
"elep"
>
{{
item
.
list_name
}}
</view>
...
@@ -179,7 +175,7 @@
...
@@ -179,7 +175,7 @@
<view
class=
"trt"
><text
class=
"icon iconfont icon-caca"
@
click=
"closeNewList"
></text></view>
<view
class=
"trt"
><text
class=
"icon iconfont icon-caca"
@
click=
"closeNewList"
></text></view>
<view
class=
"ttit elep"
>
新建清单
</view>
<view
class=
"ttit elep"
>
新建清单
</view>
<view
class=
"cons"
>
<view
class=
"cons"
>
<input
type=
"text"
class=
"inputv"
v-model=
"list_name"
placeholder=
"请输入清单名称,若未输入则显示商品编码
;"
/>
<input
type=
"text"
class=
"inputv"
v-model=
"list_name"
placeholder=
"请输入清单名称,若未输入则显示商品分类
;"
/>
</view>
</view>
<view
class=
"add-list"
@
click=
"createList()"
>
确认
</view>
<view
class=
"add-list"
@
click=
"createList()"
>
确认
</view>
</view>
</view>
...
@@ -197,10 +193,10 @@
...
@@ -197,10 +193,10 @@
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
isLogin
:
uni
.
getStorageSync
(
'token'
)?
true
:
false
,
isLogin
:
uni
.
getStorageSync
(
'token'
)
?
true
:
false
,
goods_id_page
:
""
,
goods_id_page
:
""
,
buyPrice
:
""
,
buyPrice
:
""
,
isCompany
:(
uni
.
getStorageSync
(
'user_info'
)
&&
JSON
.
parse
(
uni
.
getStorageSync
(
'user_info'
)).
company_name
)?
true
:
false
,
isCompany
:
(
uni
.
getStorageSync
(
'user_info'
)
&&
JSON
.
parse
(
uni
.
getStorageSync
(
'user_info'
)).
company_name
)
?
true
:
false
,
productType
:
1
,
productType
:
1
,
pageTab
:
1
,
pageTab
:
1
,
productTop
:
0
,
productTop
:
0
,
...
@@ -211,10 +207,10 @@
...
@@ -211,10 +207,10 @@
goods_numberx
:
1
,
//购买数量
goods_numberx
:
1
,
//购买数量
goods_id
:
""
,
goods_id
:
""
,
goods_info
:
""
,
goods_info
:
""
,
goods_series
:
[],
goods_series
:
[],
addType
:
1
,
addType
:
1
,
list_name
:
""
,
//清单名字
list_name
:
""
,
//清单名字
qDList
:
[],
qDList
:
[],
miniShareOptions
:
{
miniShareOptions
:
{
title
:
'爱智工业平台'
,
title
:
'爱智工业平台'
,
path
:
'/pages/goods/detail?goods_id='
,
path
:
'/pages/goods/detail?goods_id='
,
...
@@ -258,48 +254,48 @@
...
@@ -258,48 +254,48 @@
};
};
},
},
onLoad
(
option
)
{
onLoad
(
option
)
{
this
.
goods_id_page
=
option
.
goods_id
this
.
goods_id_page
=
option
.
goods_id
this
.
goods_id
=
option
.
goods_id
this
.
goods_id
=
option
.
goods_id
this
.
getData
()
this
.
getData
()
this
.
getQdList
()
this
.
getQdList
()
this
.
miniShareOptions
.
path
=
'/pages/goods/detail?goods_id='
+
option
.
goods_id
this
.
miniShareOptions
.
path
=
'/pages/goods/detail?goods_id='
+
option
.
goods_id
},
},
onPageScroll
(
e
)
{
onPageScroll
(
e
)
{
this
.
pageTab
=
1
this
.
pageTab
=
1
if
(
e
.
scrollTop
>=
300
)
{
if
(
e
.
scrollTop
>=
300
)
{
this
.
pageTab
=
2
this
.
pageTab
=
2
}
}
},
},
methods
:
{
methods
:
{
gocar
()
{
gocar
()
{
if
(
!
uni
.
getStorageSync
(
'token'
))
{
if
(
!
uni
.
getStorageSync
(
'token'
))
{
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
"/pages/auth/login?referer="
+
encodeURIComponent
(
`/pages/goods/detail?goods_id=
${
this
.
goods_id_page
}
`
)
url
:
"/pages/auth/login?referer="
+
encodeURIComponent
(
`/pages/goods/detail?goods_id=
${
this
.
goods_id_page
}
`
)
})
})
return
return
}
}
let
obj_
=
{
let
obj_
=
{
sku_id
:
this
.
goods_id
,
sku_id
:
this
.
goods_id
,
goods_num
:
this
.
goods_numberx
,
goods_num
:
this
.
goods_numberx
,
price
:
this
.
buyPrice
,
price
:
this
.
buyPrice
,
guid_
:
this
.
addType
,
guid_
:
this
.
addType
,
}
}
if
(
this
.
addType
==
2
)
{
if
(
this
.
addType
==
2
)
{
obj_
.
is_cover_goods_num
=
1
obj_
.
is_cover_goods_num
=
1
}
}
this
.
request
(
Api_Url
+
'/api/cart/addCart'
,
'GET'
,
obj_
,
true
).
then
(
res
=>
{
this
.
request
(
Api_Url
+
'/api/cart/addCart'
,
'GET'
,
obj_
,
true
).
then
(
res
=>
{
if
(
res
.
code
==
0
)
{
if
(
res
.
code
==
0
)
{
if
(
this
.
addType
==
1
)
{
if
(
this
.
addType
==
1
)
{
uni
.
showToast
({
uni
.
showToast
({
title
:
"添加购物车成功"
,
title
:
"添加购物车成功"
,
icon
:
'success'
icon
:
'success'
});
});
this
.
close
()
this
.
close
()
}
else
{
}
else
{
uni
.
setStorageSync
(
'car_ids'
,
this
.
goods_id
);
uni
.
setStorageSync
(
'car_ids'
,
this
.
goods_id
);
uni
.
setStorageSync
(
'confirmOrderBackUrl'
,
`/pages/goods/detail?goods_id=
${
this
.
goods_id_page
}
`
)
uni
.
setStorageSync
(
'confirmOrderBackUrl'
,
`/pages/goods/detail?goods_id=
${
this
.
goods_id_page
}
`
)
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
'/pages/car/confirmOrder'
url
:
'/pages/car/confirmOrder'
});
});
}
}
}
else
{
}
else
{
...
@@ -311,17 +307,17 @@
...
@@ -311,17 +307,17 @@
});
});
},
},
changeNum
(
sku_id
,
type
)
{
changeNum
(
sku_id
,
type
)
{
clearTimeout
(
this
.
timeout
);
clearTimeout
(
this
.
timeout
);
this
.
timeout
=
setTimeout
(()
=>
{
this
.
timeout
=
setTimeout
(()
=>
{
let
result
=
this
.
goods_info
let
result
=
this
.
goods_info
let
mpl
=
Number
(
result
.
multiple
||
result
.
mpl
);
//倍数 加减的数量基数
let
mpl
=
Number
(
result
.
multiple
||
result
.
mpl
);
//倍数 加减的数量基数
let
stock
=
Number
(
result
.
stock
);
//库存
let
stock
=
Number
(
result
.
stock
);
//库存
let
moq
=
Number
(
result
.
moq
);
//起订量
let
moq
=
Number
(
result
.
moq
);
//起订量
let
value_
=
Number
(
this
.
goods_numberx
);
//当前的数量
let
value_
=
Number
(
this
.
goods_numberx
);
//当前的数量
value_
=
Math
.
ceil
(
value_
/
mpl
)
*
mpl
;
//失去焦点数量
value_
=
Math
.
ceil
(
value_
/
mpl
)
*
mpl
;
//失去焦点数量
this
.
goods_numberx
=
value_
;
//最终的数量
this
.
goods_numberx
=
value_
;
//最终的数量
if
(
value_
<
moq
)
{
if
(
value_
<
moq
)
{
this
.
goods_numberx
=
moq
this
.
goods_numberx
=
moq
}
}
...
@@ -330,34 +326,34 @@
...
@@ -330,34 +326,34 @@
}
}
},
800
);
},
800
);
},
},
addjNum
(
sku_id
,
type
)
{
addjNum
(
sku_id
,
type
)
{
let
result
=
this
.
goods_info
let
result
=
this
.
goods_info
let
mpl
=
Number
(
result
.
multiple
||
result
.
mpl
);
//倍数 加减的数量基数
let
mpl
=
Number
(
result
.
multiple
||
result
.
mpl
);
//倍数 加减的数量基数
let
stock
=
Number
(
result
.
stock
);
//库存
let
stock
=
Number
(
result
.
stock
);
//库存
let
moq
=
Number
(
result
.
moq
);
//起订量
let
moq
=
Number
(
result
.
moq
);
//起订量
let
value_
=
Number
(
this
.
goods_numberx
);
//当前的数量
let
value_
=
Number
(
this
.
goods_numberx
);
//当前的数量
if
(
type
==
1
)
{
if
(
type
==
1
)
{
//减法
//减法
var
down_value
=
value_
-
mpl
;
//减过后的值
var
down_value
=
value_
-
mpl
;
//减过后的值
if
(
down_value
<
moq
)
{
if
(
down_value
<
moq
)
{
this
.
goods_numberx
=
moq
;
this
.
goods_numberx
=
moq
;
uni
.
showToast
({
uni
.
showToast
({
title
:
'数量不能小于起订量'
,
title
:
'数量不能小于起订量'
,
duration
:
2000
,
duration
:
2000
,
icon
:
"none"
icon
:
"none"
})
})
}
else
{
}
else
{
this
.
goods_numberx
=
down_value
this
.
goods_numberx
=
down_value
}
}
}
else
{
}
else
{
//加法
//加法
var
up_value
=
value_
+
mpl
;
//加过后的值
var
up_value
=
value_
+
mpl
;
//加过后的值
if
(
up_value
>
stock
)
{
if
(
up_value
>
stock
)
{
uni
.
showToast
({
uni
.
showToast
({
title
:
'数量不能大于库存'
,
title
:
'数量不能大于库存'
,
duration
:
2000
,
duration
:
2000
,
icon
:
"none"
icon
:
"none"
})
})
this
.
goods_numberx
=
Math
.
floor
(
stock
/
mpl
)
*
mpl
;
this
.
goods_numberx
=
Math
.
floor
(
stock
/
mpl
)
*
mpl
;
}
else
{
}
else
{
...
@@ -366,18 +362,18 @@
...
@@ -366,18 +362,18 @@
}
}
},
},
changeSku
(
sku_id
)
{
changeSku
(
sku_id
)
{
this
.
goods_id
=
sku_id
this
.
goods_id
=
sku_id
this
.
getData
(
1
)
this
.
getData
(
1
)
},
},
pdfPre
()
{
pdfPre
()
{
uni
.
downloadFile
({
uni
.
downloadFile
({
url
:
this
.
goods_info
.
pdf
,
url
:
this
.
goods_info
.
pdf
,
success
:
function
(
res
)
{
success
:
function
(
res
)
{
uni
.
openDocument
({
uni
.
openDocument
({
filePath
:
res
.
tempFilePath
,
filePath
:
res
.
tempFilePath
,
showMenu
:
true
,
showMenu
:
true
,
success
:
function
(
res
)
{
success
:
function
(
res
)
{
console
.
log
(
'打开文档成功'
);
console
.
log
(
'打开文档成功'
);
}
}
});
});
...
@@ -390,29 +386,29 @@
...
@@ -390,29 +386,29 @@
},
true
).
then
(
res
=>
{
},
true
).
then
(
res
=>
{
if
(
res
.
code
==
0
)
{
if
(
res
.
code
==
0
)
{
this
.
goods_info
=
res
.
data
.
goods_info
this
.
goods_info
=
res
.
data
.
goods_info
this
.
miniShareOptions
.
title
=
this
.
goods_info
.
goods_name
+
" "
+
this
.
goods_info
.
class_name
this
.
miniShareOptions
.
title
=
this
.
goods_info
.
goods_name
+
" "
+
this
.
goods_info
.
class_name
if
(
this
.
goods_info
.
sku_detail
)
{
if
(
this
.
goods_info
.
sku_detail
)
{
this
.
goods_info
.
sku_detail
=
this
.
goods_info
.
sku_detail
.
replace
(
/<img/gi
,
'
<
img
class
=
"img-style"
')
this
.
goods_info
.
sku_detail
=
this
.
goods_info
.
sku_detail
.
replace
(
/<img/gi
,
'
<
img
class
=
"img-style"
')
}
}
this.goods_numberx=
Number(this.goods_info.moq)
this.goods_numberx =
Number(this.goods_info.moq)
this.buyPrice=
0;
this.buyPrice =
0;
if(this.goods_info.ladder_price&&this.goods_info.ladder_price.length>0)
{
if (this.goods_info.ladder_price && this.goods_info.ladder_price.length > 0)
{
this.buyPrice=this.isCompany?(this.goods_info['
ladder_price
'][1]['
price_cn
']||0):(this.goods_info['
ladder_price
'][0]['
price_cn
']||
0)
this.buyPrice = this.isCompany ? (this.goods_info['
ladder_price
'][1]['
price_cn
'] || 0) : (this.goods_info['
ladder_price
'][0]['
price_cn
'] ||
0)
}
}
if(!type)
{
if (!type)
{
this.goods_series=res.data.goods_series||
[]
this.goods_series = res.data.goods_series ||
[]
this.goods_series.sort((a, b) => {
this.goods_series.sort((a, b) => {
if (a.goods_id == this.goods_id) return -1;
if (a.goods_id == this.goods_id) return -1;
if (b.goods_id == this.goods_id) return 1;
if (b.goods_id == this.goods_id) return 1;
return 0;
return 0;
});
});
}
}
this.images =[{name:"default.png",thumbnail:res.data.goods_info.goods_images||""},...(res.data.goods_info.spu_extra.image_list || [])]
this.images = [{ name: "default.png", thumbnail: res.data.goods_info.goods_images || "" }, ...(res.data.goods_info.spu_extra.image_list || [])]
setTimeout(()=>
{
setTimeout(() =>
{
this.calculatePositions();
this.calculatePositions();
},
100)
},
100)
} else {
} else {
uni.showToast({
uni.showToast({
title: res.msg,
title: res.msg,
...
@@ -439,41 +435,41 @@
...
@@ -439,41 +435,41 @@
},
},
handleSwiperChange(e) {
handleSwiperChange(e) {
this.currentPage = e.detail.current;
this.currentPage = e.detail.current;
setTimeout(()=>
{
setTimeout(() =>
{
this.calculatePositions();
this.calculatePositions();
},
100)
},
100)
},
},
getQdList()
{
getQdList()
{
if(!uni.getStorageSync('
token
')){return
}
if (!uni.getStorageSync('
token
')) { return
}
this.request(Api_Url + '
/
api
/
xcx
/
getGoodsList
', '
get
', {page:1,limit:100
}, false).then(res => {
this.request(Api_Url + '
/
api
/
xcx
/
getGoodsList
', '
get
', { page: 1, limit: 100
}, false).then(res => {
this.qDList=
[]
this.qDList =
[]
if(res.code==0)
{
if (res.code == 0)
{
let arr_=res.data.list||
[]
let arr_ = res.data.list ||
[]
arr_.forEach(item=>
{
arr_.forEach(item =>
{
item.checked=
false
item.checked =
false
})
})
this.qDList=
arr_
this.qDList =
arr_
}
}
})
})
},
},
chooseQd(list_id)
{
chooseQd(list_id)
{
this.qDList.forEach(item=>
{
this.qDList.forEach(item =>
{
if(item.list_id==list_id)
{
if (item.list_id == list_id)
{
item.checked=
!item.checked
item.checked =
!item.checked
}
}
})
})
},
},
createList()
{
createList()
{
this.request(Api_Url + '
/
api
/
xcx
/
createGoodsList
', '
post
', {list_name:(this.list_name||this.goods_info.class_name)
}, true).then(res => {
this.request(Api_Url + '
/
api
/
xcx
/
createGoodsList
', '
post
', { list_name: (this.list_name || this.goods_info.class_name)
}, true).then(res => {
if(res.code==0)
{
if (res.code == 0)
{
uni.showToast({
uni.showToast({
title: "创建清单成功",
title: "创建清单成功",
icon: '
success
'
icon: '
success
'
});
});
this.closeNewList()
this.closeNewList()
this.getQdList()
this.getQdList()
}else
{
} else
{
uni.showToast({
uni.showToast({
title: res.msg,
title: res.msg,
icon: '
nonde
'
icon: '
nonde
'
...
@@ -482,35 +478,33 @@
...
@@ -482,35 +478,33 @@
})
})
},
},
addQdList()
{
addQdList()
{
let checkList=this.qDList.filter(item=>
item.checked)
let checkList = this.qDList.filter(item =>
item.checked)
let ids_=checkList.map(item=>
item.list_id)
let ids_ = checkList.map(item =>
item.list_id)
if(checkList.length==0)
{
if (checkList.length == 0)
{
uni.showToast({
uni.showToast({
title: "请选择一条清单",
title: "请选择一条清单",
icon: '
none
'
icon: '
none
'
});
});
return
return
}
}
let sku_json=[
let sku_json = [{
{
sku_id: this.goods_id,
sku_id:this.goods_id,
qty: this.goods_numberx
qty:this.goods_numberx
}]
}
]
this.request(Api_Url + '
/
api
/
xcx
/
addGoodsList
', '
post
', {
this.request(Api_Url + '
/
api
/
xcx
/
addGoodsList
', '
post
', {
list_id:
ids_.join(","),
list_id:
ids_.join(","),
sku_json:
JSON.stringify(sku_json)
sku_json:
JSON.stringify(sku_json)
}, true).then(res => {
}, true).then(res => {
if(res.code==0)
{
if (res.code == 0)
{
uni.showToast({
uni.showToast({
title: "加入清单成功",
title: "加入清单成功",
icon: '
success
'
icon: '
success
'
});
});
this.closeAddList()
this.closeAddList()
this.getQdList()
this.getQdList()
}else
{
} else
{
uni.showToast({
uni.showToast({
title: res.msg,
title: res.msg,
icon: '
nonde
'
icon: '
nonde
'
...
@@ -528,9 +522,9 @@
...
@@ -528,9 +522,9 @@
this.$refs.popupcar.close('
bottom
');
this.$refs.popupcar.close('
bottom
');
},
},
openAddList() {
openAddList() {
if(!uni.getStorageSync('
token
'))
{
if (!uni.getStorageSync('
token
'))
{
uni.navigateTo({
uni.navigateTo({
url:"/pages/auth/login?referer="+
encodeURIComponent(`/pages/goods/detail?goods_id=${this.goods_id_page}`)
url: "/pages/auth/login?referer=" +
encodeURIComponent(`/pages/goods/detail?goods_id=${this.goods_id_page}`)
})
})
return
return
}
}
...
...
pages/user/address.vue
View file @
13fca3da
...
@@ -14,8 +14,7 @@
...
@@ -14,8 +14,7 @@
<view
class=
"c"
>
{{
item
.
detail_address
}}
</view>
<view
class=
"c"
>
{{
item
.
detail_address
}}
</view>
<view
class=
"b row bothSide"
>
<view
class=
"b row bothSide"
>
<view
class=
"l row verCenter"
@
click=
"setdefault(item.address_id)"
v-if=
"!form"
>
<view
class=
"l row verCenter"
@
click=
"setdefault(item.address_id)"
v-if=
"!form"
>
<text
class=
"icon iconfont icon-checked1"
<text
class=
"icon iconfont icon-checked1"
:class=
"
{'icon-checked':item.is_default==1}">
</text>
:class=
"
{'icon-checked':item.is_default==1}">
</text>
<text>
{{
item
.
is_default
==
1
?
"已默认"
:
"设为默认"
}}
</text>
<text>
{{
item
.
is_default
==
1
?
"已默认"
:
"设为默认"
}}
</text>
</view>
</view>
<view
v-else
></view>
<view
v-else
></view>
...
@@ -27,7 +26,7 @@
...
@@ -27,7 +26,7 @@
<view
class=
"r row verCenter"
>
<view
class=
"r row verCenter"
>
<text
@
click
.
stop=
"deleteAdress(item.address_id)"
>
删除
</text>
<text
@
click
.
stop=
"deleteAdress(item.address_id)"
>
删除
</text>
<text
@
click
.
stop=
"copy(item)"
>
复制
</text
>
<!--
<text
@
click
.
stop=
"copy(item)"
>
复制
</text>
--
>
<view
@
click
.
stop=
"goUpdate(item.address_id)"
>
修改
</view>
<view
@
click
.
stop=
"goUpdate(item.address_id)"
>
修改
</view>
</view>
</view>
</view>
</view>
...
@@ -55,57 +54,57 @@
...
@@ -55,57 +54,57 @@
data
()
{
data
()
{
return
{
return
{
isInit
:
false
,
//记录是否加载了数据
isInit
:
false
,
//记录是否加载了数据
form
:
""
,
form
:
""
,
address_id
:
""
,
address_id
:
""
,
invoice_id
:
""
,
invoice_id
:
""
,
coupon_id
:
""
,
coupon_id
:
""
,
list
:
[],
list
:
[],
}
}
},
},
onLoad
:
function
(
options
)
{
onLoad
:
function
(
options
)
{
this
.
form
=
options
.
form
||
""
this
.
form
=
options
.
form
||
""
this
.
address_id
=
options
.
address_id
||
""
this
.
address_id
=
options
.
address_id
||
""
this
.
invoice_id
=
options
.
invoice_id
||
""
this
.
invoice_id
=
options
.
invoice_id
||
""
this
.
coupon_id
=
options
.
coupon_id
||
""
this
.
coupon_id
=
options
.
coupon_id
||
""
},
},
onShow
()
{
onShow
()
{
this
.
getData
();
this
.
getData
();
},
},
methods
:
{
methods
:
{
goUpdate
(
address_id
)
{
goUpdate
(
address_id
)
{
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
'/pages/user/addressEdit?address_id='
+
address_id
url
:
'/pages/user/addressEdit?address_id='
+
address_id
})
})
},
},
setChoose
(
address_id
)
{
setChoose
(
address_id
)
{
if
(
!
this
.
form
){
return
}
if
(
!
this
.
form
)
{
return
}
let
address_id_go
=
""
let
address_id_go
=
""
this
.
list
.
forEach
(
item
=>
{
this
.
list
.
forEach
(
item
=>
{
item
.
checkedx
=
false
item
.
checkedx
=
false
if
(
address_id
==
item
.
address_id
)
{
if
(
address_id
==
item
.
address_id
)
{
item
.
checkedx
=
true
item
.
checkedx
=
true
address_id_go
=
item
.
address_id
address_id_go
=
item
.
address_id
}
}
})
})
setTimeout
(()
=>
{
setTimeout
(()
=>
{
if
(
this
.
form
==
"confirmQuote"
)
{
if
(
this
.
form
==
"confirmQuote"
)
{
//报价过来
//报价过来
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
'/pages/car/confirmQuote?address_id='
+
address_id_go
+
'&coupon_id='
+
this
.
coupon_id
url
:
'/pages/car/confirmQuote?address_id='
+
address_id_go
+
'&coupon_id='
+
this
.
coupon_id
});
});
return
return
}
}
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
'/pages/car/confirmOrder?address_id='
+
address_id_go
+
'&coupon_id='
+
this
.
coupon_id
+
'&invoice_id='
+
this
.
invoice_id
url
:
'/pages/car/confirmOrder?address_id='
+
address_id_go
+
'&coupon_id='
+
this
.
coupon_id
+
'&invoice_id='
+
this
.
invoice_id
});
});
},
200
);
},
200
);
},
},
copy
(
item
)
{
copy
(
item
)
{
uni
.
setClipboardData
({
uni
.
setClipboardData
({
data
:
(
item
.
nation_cn
!=
"中国"
?
item
.
nation_cn
:
''
)
+
item
.
province_val
+
' '
+
item
.
city_val
+
' '
+
item
.
district_val
+
' '
+
item
.
detail_address
,
data
:
(
item
.
nation_cn
!=
"中国"
?
item
.
nation_cn
:
''
)
+
item
.
province_val
+
' '
+
item
.
city_val
+
' '
+
item
.
district_val
+
' '
+
item
.
detail_address
,
success
:
function
()
{
success
:
function
()
{
uni
.
showToast
({
uni
.
showToast
({
title
:
'复制成功'
,
title
:
'复制成功'
,
icon
:
'success'
icon
:
'success'
...
@@ -164,14 +163,14 @@
...
@@ -164,14 +163,14 @@
p
:
1
p
:
1
}
}
this
.
request
(
Api_Url
+
'/api/address/getList'
,
'GET'
,
obj_
,
(
loading
?
false
:
true
)).
then
(
res
=>
{
this
.
request
(
Api_Url
+
'/api/address/getList'
,
'GET'
,
obj_
,
(
loading
?
false
:
true
)).
then
(
res
=>
{
if
(
res
.
code
==
0
)
{
if
(
res
.
code
==
0
)
{
this
.
isInit
=
1
;
this
.
isInit
=
1
;
let
arr_
=
res
.
data
.
list
||
[]
let
arr_
=
res
.
data
.
list
||
[]
arr_
.
forEach
(
item
=>
{
arr_
.
forEach
(
item
=>
{
item
.
checkedx
=
false
item
.
checkedx
=
false
if
(
item
.
address_id
==
this
.
address_id
)
{
if
(
item
.
address_id
==
this
.
address_id
)
{
item
.
checkedx
=
true
item
.
checkedx
=
true
}
}
})
})
this
.
list
=
arr_
this
.
list
=
arr_
...
...
pages/user/addressAdd.vue
View file @
13fca3da
...
@@ -11,12 +11,12 @@
...
@@ -11,12 +11,12 @@
</view>
</view>
<view
class=
"input-group row verCenter"
>
<view
class=
"input-group row verCenter"
>
<text
class=
"label"
>
手机号
</text>
<text
class=
"label"
>
手机号
</text>
<picker
@
change=
"bindPickerChange($event)"
:value=
"areaIndex"
:range=
"areaArray"
<picker
@
change=
"bindPickerChange($event)"
:value=
"areaIndex"
:range=
"areaArray"
:range-key=
"'name'"
>
:range-key=
"'name'"
>
<view
class=
"areabox-but "
>
<text
class=
"areabox-but "
><text
class=
"but-val"
>
{{
areaArray
[
areaIndex
].
value
}}
</text><text
<text
class=
"but-val"
>
{{
areaArray
[
areaIndex
].
value
}}
</text>
class=
"icon iconfont icon-arrowxia"
></text></text>
<text
class=
"icon iconfont icon-arrowxia"
></text>
</view>
</picker>
</picker>
<input
type=
"number"
v-model=
"formParams.mobile"
placeholder=
"请输入手机号"
placeholder-class=
"placeholder-class"
/>
<input
type=
"number"
v-model=
"formParams.mobile"
placeholder=
"请输入手机号"
placeholder-class=
"placeholder-class"
/>
</view>
</view>
<view
class=
"input-group row verCenter"
>
<view
class=
"input-group row verCenter"
>
...
@@ -78,27 +78,27 @@
...
@@ -78,27 +78,27 @@
areaArray
:
[{
areaArray
:
[{
name
:
"0086(中国大陆)"
,
name
:
"0086(中国大陆)"
,
value
:
'0086'
value
:
'0086'
},
{
name
:
"00852(中国香港)"
,
value
:
'00852'
},
{
name
:
"00853(中国澳门)"
,
value
:
'00853'
},
{
name
:
"00886(中国台湾)"
,
value
:
'00886'
},
{
name
:
"0066(泰国)"
,
value
:
'0066'
},
{
name
:
"0084(越南)"
,
value
:
'0084'
}
}
// {
// name: "00852(中国香港)",
// value: '00852'
// },
// {
// name: "00853(中国澳门)",
// value: '00853'
// },
// {
// name: "00886(中国台湾)",
// value: '00886'
// },
// {
// name: "0066(泰国)",
// value: '0066'
// },
// {
// name: "0084(越南)",
// value: '0084'
// }
],
],
}
}
},
},
...
@@ -237,7 +237,7 @@
...
@@ -237,7 +237,7 @@
return
false
;
return
false
;
}
}
let
reg
=
/^1
(
3
[
0-9
]
|4
[
01456879
]
|5
[
0-35-9
]
|6
[
2567
]
|7
[
0-8
]
|8
[
0-9
]
|9
[
0-35-9
])\d{8}
$/
;
let
reg
=
/^1
(
3
[
0-9
]
|4
[
01456879
]
|5
[
0-35-9
]
|6
[
2567
]
|7
[
0-8
]
|8
[
0-9
]
|9
[
0-35-9
])\d{8}
$/
;
if
((
!
this
.
formParams
.
mobile
)
||
((
this
.
formParams
.
intl_code
==
"0086"
)
&&
!
reg
.
test
(
this
.
formParams
.
mobile
)))
{
if
((
!
this
.
formParams
.
mobile
)
||
((
this
.
formParams
.
intl_code
==
"0086"
)
&&
!
reg
.
test
(
this
.
formParams
.
mobile
)))
{
uni
.
showToast
({
uni
.
showToast
({
title
:
'请输入正确的手机号'
,
title
:
'请输入正确的手机号'
,
icon
:
'none'
icon
:
'none'
...
...
pages/user/companyInfo.vue
View file @
13fca3da
...
@@ -5,38 +5,34 @@
...
@@ -5,38 +5,34 @@
<view
class=
"cons"
>
<view
class=
"cons"
>
<view
class=
"input-box"
>
<view
class=
"input-box"
>
<view
class=
"input-group row verCenter"
>
<view
class=
"input-group row verCenter"
>
<text
class=
"label required"
>
公司名称
</text>
<text
class=
"label required"
>
公司名称
</text>
<input
type=
"text"
v-model=
"formParams.com_name"
placeholder=
"请输入公司名称"
placeholder-class=
"placeholder-class
"
/>
<input
type=
"text"
v-model=
"formParams.com_name"
placeholder=
"请输入公司名称"
placeholder-class=
"placeholder-class"
@
blur=
"tianyancha()
"
/>
</view>
</view>
<view
class=
"input-group row verCenter"
>
<view
class=
"input-group row verCenter"
>
<text
class=
"label required "
>
公司税号
</text>
<text
class=
"label required "
>
公司税号
</text>
<input
type=
"text"
v-model=
"formParams.tax_no"
placeholder=
"系统自动查询后补充"
placeholder-class=
"placeholder-class"
/>
<input
type=
"text"
v-model=
"formParams.tax_no"
placeholder=
"系统自动查询后补充"
placeholder-class=
"placeholder-class"
/>
</view>
</view>
<view
class=
"input-group row verCenter"
>
<view
class=
"input-group row verCenter"
>
<text
class=
"label required"
>
公司电话
</text>
<text
class=
"label required"
>
公司电话
</text>
<input
type=
"text"
v-model=
"formParams.com_tel"
placeholder=
"系统自动查询后补充"
placeholder-class=
"placeholder-class"
/>
<input
type=
"text"
v-model=
"formParams.com_tel"
placeholder=
"系统自动查询后补充"
placeholder-class=
"placeholder-class"
/>
</view>
</view>
<view
class=
"input-group row verCenter"
>
<view
class=
"input-group row verCenter"
>
<text
class=
"label required"
>
注册地址
</text>
<text
class=
"label required"
>
注册地址
</text>
<input
type=
"text"
v-model=
"formParams.com_addr"
placeholder=
"系统自动查询后补充"
placeholder-class=
"placeholder-class"
/>
<input
type=
"text"
v-model=
"formParams.com_addr"
placeholder=
"系统自动查询后补充"
placeholder-class=
"placeholder-class"
/>
</view>
</view>
<view
class=
"input-group row verCenter"
>
<view
class=
"input-group row verCenter"
>
<text
class=
"label required"
>
联系人
</text>
<text
class=
"label required"
>
联系人
</text>
<input
type=
"text"
v-model=
"formParams.contact_person"
placeholder=
"请输入联系人"
placeholder-class=
"placeholder-class"
/>
<input
type=
"text"
v-model=
"formParams.contact_person"
placeholder=
"请输入联系人"
placeholder-class=
"placeholder-class"
/>
</view>
</view>
<view
class=
"input-group row verCenter"
>
<view
class=
"input-group row verCenter"
>
<text
class=
"label required"
>
联系电话
</text>
<text
class=
"label required"
>
联系电话
</text>
<input
type=
"text"
v-model=
"formParams.contact_phone"
placeholder=
"请输入联系电话"
placeholder-class=
"placeholder-class"
/>
<input
type=
"text"
v-model=
"formParams.contact_phone"
placeholder=
"请输入联系电话"
placeholder-class=
"placeholder-class"
/>
</view>
</view>
<view
class=
"input-group row verCenter"
>
<view
class=
"input-group row verCenter"
>
<text
class=
"label required"
>
邮箱
</text>
<text
class=
"label required"
>
邮箱
</text>
<input
type=
"text"
v-model=
"formParams.email"
placeholder=
"请输入邮箱"
placeholder-class=
"placeholder-class"
/>
<input
type=
"text"
v-model=
"formParams.email"
placeholder=
"请输入邮箱"
placeholder-class=
"placeholder-class"
/>
</view>
</view>
</view>
</view>
</view>
</view>
...
@@ -56,22 +52,22 @@
...
@@ -56,22 +52,22 @@
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
id
:
""
,
id
:
""
,
formParams
:
{
formParams
:
{
com_name
:
""
,
com_name
:
""
,
tax_no
:
""
,
tax_no
:
""
,
com_tel
:
""
,
com_tel
:
""
,
com_addr
:
""
,
com_addr
:
""
,
contact_person
:
""
,
contact_person
:
""
,
contact_phone
:
""
,
contact_phone
:
""
,
email
:
""
email
:
""
},
},
certification
:
[]
certification
:
[]
}
}
},
},
onLoad
:
function
(
options
)
{
onLoad
:
function
(
options
)
{
this
.
id
=
options
.
id
||
""
this
.
id
=
options
.
id
||
""
if
(
this
.
id
)
{
if
(
this
.
id
)
{
this
.
getData
()
this
.
getData
()
}
}
...
@@ -80,86 +76,111 @@
...
@@ -80,86 +76,111 @@
},
},
methods
:
{
methods
:
{
getData
()
{
getData
()
{
//获取用户信息
//获取用户信息
this
.
request
(
Api_Url
+
'/api/user/info'
,
'GET'
,
{},
true
).
then
(
res
=>
{
this
.
request
(
Api_Url
+
'/api/user/info'
,
'GET'
,
{},
true
).
then
(
res
=>
{
if
(
res
.
code
==
0
)
{
if
(
res
.
code
==
0
)
{
let
arr_
=
res
.
data
.
certification
||
[]
let
arr_
=
res
.
data
.
certification
||
[]
this
.
certification
=
arr_
.
filter
(
item
=>
item
.
id
==
this
.
id
)
this
.
certification
=
arr_
.
filter
(
item
=>
item
.
id
==
this
.
id
)
this
.
formParams
=
{
this
.
formParams
=
{
...
this
.
certification
[
0
]
...
this
.
certification
[
0
]
}
}
}
}
});
});
},
},
changeTab
(
inv_type
){
/**
this
.
formParams
.
inv_type
=
inv_type
* 天眼查
*/
tianyancha
()
{
if
(
!
this
.
formParams
.
com_name
)
{
return
}
this
.
request
(
Api_Url
+
'/api/user/tianyancha'
,
'GET'
,
{
company_name
:
this
.
formParams
.
com_name
},
false
).
then
(
res
=>
{
if
(
res
.
code
==
0
)
{
if
(
!
res
.
data
.
com_name
)
{
uni
.
showToast
({
title
:
'天眼查没有查到该公司信息'
,
icon
:
'none'
});
}
this
.
formParams
.
com_name
=
res
.
data
.
com_name
;
this
.
formParams
.
tax_no
=
res
.
data
.
tax_number
;
this
.
formParams
.
com_tel
=
res
.
data
.
phone_number
;
this
.
formParams
.
com_addr
=
res
.
data
.
com_address
;
}
else
{
uni
.
showToast
({
title
:
res
.
msg
,
icon
:
'none'
});
}
});
},
changeTab
(
inv_type
)
{
this
.
formParams
.
inv_type
=
inv_type
console
.
log
(
this
.
formParams
.
inv_type
)
console
.
log
(
this
.
formParams
.
inv_type
)
},
},
onSwitchChange
(
e
)
{
onSwitchChange
(
e
)
{
this
.
formParams
.
is_default
=
e
.
detail
.
value
?
1
:
0
;
this
.
formParams
.
is_default
=
e
.
detail
.
value
?
1
:
0
;
},
},
submitI
()
{
submitI
()
{
if
(
!
this
.
formParams
.
com_name
)
{
if
(
!
this
.
formParams
.
com_name
)
{
uni
.
showToast
({
uni
.
showToast
({
title
:
'公司名称不能为空'
,
title
:
'公司名称不能为空'
,
icon
:
'none'
icon
:
'none'
});
});
return
;
return
;
}
}
if
(
!
this
.
formParams
.
tax_no
)
{
if
(
!
this
.
formParams
.
tax_no
)
{
uni
.
showToast
({
uni
.
showToast
({
title
:
'公司税号不能为空'
,
title
:
'公司税号不能为空'
,
icon
:
'none'
icon
:
'none'
});
});
return
;
return
;
}
}
if
(
!
this
.
formParams
.
com_tel
)
{
if
(
!
this
.
formParams
.
com_tel
)
{
uni
.
showToast
({
uni
.
showToast
({
title
:
'公司电话不能为空'
,
title
:
'公司电话不能为空'
,
icon
:
'none'
icon
:
'none'
});
});
return
;
return
;
}
}
if
(
!
this
.
formParams
.
com_addr
)
{
if
(
!
this
.
formParams
.
com_addr
)
{
uni
.
showToast
({
uni
.
showToast
({
title
:
'注册地址不能为空'
,
title
:
'注册地址不能为空'
,
icon
:
'none'
icon
:
'none'
});
});
return
;
return
;
}
}
if
(
!
this
.
formParams
.
contact_person
)
{
if
(
!
this
.
formParams
.
contact_person
)
{
uni
.
showToast
({
uni
.
showToast
({
title
:
'联系人不能为空'
,
title
:
'联系人不能为空'
,
icon
:
'none'
icon
:
'none'
});
});
return
;
return
;
}
}
if
(
!
this
.
formParams
.
contact_phone
)
{
if
(
!
this
.
formParams
.
contact_phone
)
{
uni
.
showToast
({
uni
.
showToast
({
title
:
'联系电话不能为空'
,
title
:
'联系电话不能为空'
,
icon
:
'none'
icon
:
'none'
});
});
return
;
return
;
}
}
if
(
!
this
.
formParams
.
email
)
{
if
(
!
this
.
formParams
.
email
)
{
uni
.
showToast
({
uni
.
showToast
({
title
:
'邮箱不能为空'
,
title
:
'邮箱不能为空'
,
icon
:
'none'
icon
:
'none'
});
});
return
;
return
;
}
}
let
url
=
'/api/com/add'
let
url
=
'/api/com/add'
if
(
this
.
id
)
{
if
(
this
.
id
)
{
this
.
formParams
.
id
=
this
.
id
this
.
formParams
.
id
=
this
.
id
url
=
'/api/com/edit'
url
=
'/api/com/edit'
}
}
this
.
request
(
Api_Url
+
url
,
'POST'
,
this
.
formParams
,
true
).
then
(
res
=>
{
this
.
request
(
Api_Url
+
url
,
'POST'
,
this
.
formParams
,
true
).
then
(
res
=>
{
if
(
res
.
code
==
0
)
{
if
(
res
.
code
==
0
)
{
uni
.
showToast
({
uni
.
showToast
({
title
:
this
.
id
?
'编辑成功'
:
'新增成功'
,
title
:
this
.
id
?
'编辑成功'
:
'新增成功'
,
icon
:
'success'
icon
:
'success'
});
});
setTimeout
(()
=>
{
setTimeout
(()
=>
{
...
...
util/api.js
View file @
13fca3da
let
_env
=
""
let
_env
=
""
let
api_url
=
""
let
api_url
=
""
if
(
process
.
env
.
UNI_PLATFORM
===
'h5'
)
{
// 判断是否为 H5 平台
if
(
process
.
env
.
UNI_PLATFORM
===
'h5'
)
{
// 判断是否为 H5 平台
if
(
process
.
env
.
NODE_ENV
===
'production'
)
{
// H5 生产环境
if
(
process
.
env
.
NODE_ENV
===
'production'
)
{
// H5 生产环境
_env
=
'release'
_env
=
'release'
...
@@ -8,7 +8,7 @@ if (process.env.UNI_PLATFORM === 'h5') { // 判断是否为 H5 平台
...
@@ -8,7 +8,7 @@ if (process.env.UNI_PLATFORM === 'h5') { // 判断是否为 H5 平台
}
}
api_url
=
_env
==
'release'
?
'https://www.iedge.net'
:
''
api_url
=
_env
==
'release'
?
'https://www.iedge.net'
:
''
console
.
log
(
api_url
,
_env
)
console
.
log
(
api_url
,
_env
)
}
else
if
(
process
.
env
.
UNI_PLATFORM
===
'mp-weixin'
)
{
// 判断是否为微信小程序平台
}
else
if
(
process
.
env
.
UNI_PLATFORM
===
'mp-weixin'
)
{
// 判断是否为微信小程序平台
_env
=
uni
.
getAccountInfoSync
().
miniProgram
.
envVersion
//develop: trial: release:
_env
=
uni
.
getAccountInfoSync
().
miniProgram
.
envVersion
//develop: trial: release:
// if (_env != 'develop') {
// if (_env != 'develop') {
...
@@ -18,12 +18,11 @@ if (process.env.UNI_PLATFORM === 'h5') { // 判断是否为 H5 平台
...
@@ -18,12 +18,11 @@ if (process.env.UNI_PLATFORM === 'h5') { // 判断是否为 H5 平台
api_url
=
_env
==
'release'
?
'https://www.iedge.net'
:
'http://iedge.liexindev.net'
api_url
=
_env
==
'release'
?
'https://www.iedge.net'
:
'http://iedge.liexindev.net'
//api_url =
'https://www.iedge.net'
//api_url =
'https://www.iedge.net'
console
.
log
(
api_url
,
_env
)
console
.
log
(
api_url
,
_env
)
}
else
{
// 其他平台(如 App 等)
}
else
{
// 其他平台(如 App 等)
}
}
export
const
Api_Url
=
api_url
export
const
Api_Url
=
api_url
\ No newline at end of file
util/share.js
View file @
13fca3da
...
@@ -4,7 +4,7 @@ export default {
...
@@ -4,7 +4,7 @@ export default {
miniShareOptions
:
{
miniShareOptions
:
{
title
:
'爱智工业平台'
,
title
:
'爱智工业平台'
,
path
:
'/pages/index/index'
,
path
:
'/pages/index/index'
,
imageUrl
:
'https://img.ichunt.com/images/ichunt/202503/11/8bd43dcc1b28a3fd8c417ac0c6410406
.png'
,
imageUrl
:
'https://img.ichunt.com/images/ichunt/202503/19/cdaebc710d636541b8d9916210b46a49
.png'
,
desc
:
''
desc
:
''
}
}
};
};
...
@@ -24,7 +24,7 @@ export default {
...
@@ -24,7 +24,7 @@ export default {
return
{
return
{
title
:
'爱智工业平台'
,
title
:
'爱智工业平台'
,
path
:
'/pages/index/index'
,
path
:
'/pages/index/index'
,
imageUrl
:
'https://img.ichunt.com/images/ichunt/202503/11/8bd43dcc1b28a3fd8c417ac0c6410406
.png'
,
imageUrl
:
'https://img.ichunt.com/images/ichunt/202503/19/cdaebc710d636541b8d9916210b46a49
.png'
,
success
:
()
=>
{
success
:
()
=>
{
uni
.
showToast
({
title
:
'分享成功'
,
icon
:
'success'
});
uni
.
showToast
({
title
:
'分享成功'
,
icon
:
'success'
});
},
},
...
...
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