Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
肖康
/
H5_2.0
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
e6289522
authored
May 29, 2023
by
肖康
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
购物车
parent
3db64095
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
34 additions
and
9 deletions
assets/css/car/car.scss
components/bottom_nav.vue
pages/car/car.vue
pages/confirm/confirm.vue
router/index.js
util/util.js
assets/css/car/car.scss
View file @
e6289522
...
...
@@ -8,7 +8,7 @@
.pagebot
{
height
:
62rpx
;
line-height
:
62rpx
;
background
:
#F5F5F7
;
//
background: #F5F5F7;
font-size
:
22rpx
;
text-align
:
center
;
color
:
#C6C7CC
;
...
...
@@ -143,7 +143,6 @@
.searchgo
{
font-size
:
24rpx
;
color
:
$uni-coloract
;
margin-right
:
24rpx
;
position
:
relative
;
top
:
8rpx
;
}
...
...
components/bottom_nav.vue
View file @
e6289522
...
...
@@ -54,6 +54,9 @@ export default {
}
}
});
},
updateCar
(){
this
.
getData
()
}
}
};
...
...
pages/car/car.vue
View file @
e6289522
This diff is collapsed.
Click to expand it.
pages/confirm/confirm.vue
View file @
e6289522
...
...
@@ -5,10 +5,10 @@
<view
class=
"titlesi"
>
订单确认
</view>
</view>
<view
class=
"tabs row bothSide"
>
<view
class=
"itemt
act row rowCenter verCenter
"
>
快递配送
</view>
<view
class=
"itemt row rowCenter verCenter"
>
客户自提
</view>
<view
class=
"itemt
row rowCenter verCenter"
@
click
.
stop=
"shippingtypetab(1)"
:class=
"
{'act':shipping_type==1}
">快递配送
</view>
<view
class=
"itemt row rowCenter verCenter"
@
click
.
stop=
"shippingtypetab(2)"
:class=
"
{'act':shipping_type==2}"
>客户自提
</view>
</view>
<view
class=
"kdbox"
style=
"display:none;
"
>
<view
class=
"kdbox"
v-show=
"shipping_type==1
"
>
<navigator
url=
""
class=
"kditem row verCenter bothSide"
>
<text
class=
"icon iconfont icon-dzz"
></text>
<view
class=
"iteminfo"
>
...
...
@@ -25,7 +25,7 @@
<text>
添加收货地址
</text>
</navigator>
</view>
<view
class=
"ztbox"
>
<view
class=
"ztbox"
v-show=
"shipping_type==2"
>
<view
class=
"zttips row"
><text
class=
"icon iconfont icon-dzz"
></text>
<text>
请在接到猎芯网系统短信通知后,再携带已盖章的合同打印件上门取货。
</text></view>
<view
class=
"ztitem row verCenter bothSide act"
>
<view
class=
"ztl"
>
...
...
@@ -315,13 +315,35 @@
</
template
>
<
script
>
import
{
Ichunt_Api
,
Api_Url
}
from
'@/util/api.js'
;
export
default
{
data
()
{
return
{
shipping_type
:
1
,
currency
:
1
,
ztaddress
:{},
//自提地址信息
}
},
onShow
()
{
this
.
getData
();
},
methods
:
{
//获取商品信息
getData
(){
},
//获取自提地址
getSelfaddress
(){
this
.
request
(
Api_Url
+
'/cart/selfaddress'
,
'POST'
,
{},
true
,
true
).
then
(
res
=>
{
});
},
shippingtypetab
(
type
){
this
.
shipping_type
=
type
},
openzt
()
{
this
.
$refs
.
popupztinfo
.
open
(
'bottom'
);
},
...
...
router/index.js
View file @
e6289522
...
...
@@ -76,7 +76,8 @@ const router = new Router({
path
:
'/pages/confirm/confirm'
,
aliasPath
:
'/order/confirm'
,
meta
:
{
title
:
'确认订单'
title
:
'确认订单'
,
auth
:
true
}
},
{
...
...
util/util.js
View file @
e6289522
...
...
@@ -16,7 +16,7 @@ const request = (url = '', type = 'GET', param = {}, Loading, headertype) => {
pf
:
2
});
//请求es相关
if
(
url
.
indexOf
(
"so12.ichunt."
)
!=
-
1
||
url
.
indexOf
(
"/esapi/"
)
!=
-
1
||
url
.
indexOf
(
"/goods/detail"
)
!=
-
1
||
url
.
indexOf
(
"/optimum/goods"
)
!=
-
1
)
{
if
(
url
.
indexOf
(
"so12.ichunt."
)
!=
-
1
||
url
.
indexOf
(
"/esapi/"
)
!=
-
1
||
url
.
indexOf
(
"/goods/detail"
)
!=
-
1
||
url
.
indexOf
(
"/optimum/goods"
)
!=
-
1
||
url
.
indexOf
(
"/cart/lists"
)
!=
-
1
)
{
params
=
Object
.
assign
(
param
,
{
hkyefgyd
:
1
});
}
...
...
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