Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mayi-mp-shop
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
程默
mayi-mp-shop
Commits
382fe51e
Commit
382fe51e
authored
Aug 01, 2022
by
李嘉林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
12cf0abb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
8 deletions
+19
-8
src/pages/address/index.vue
+16
-6
static/nativeComponents/GoodsList/index.js
+2
-1
static/nativeComponents/GoodsList/index.wxss
+1
-1
No files found.
src/pages/address/index.vue
View file @
382fe51e
...
@@ -207,7 +207,7 @@ export default {
...
@@ -207,7 +207,7 @@ export default {
.
getUserAddressList
()
.
getUserAddressList
()
.
then
(
res
=>
{
.
then
(
res
=>
{
if
(
res
.
data
.
code
==
200
)
{
if
(
res
.
data
.
code
==
200
)
{
let
list
=
res
.
data
.
data
.
list
;
let
list
=
res
.
data
.
data
.
list
||
[]
;
if
(
!
list
.
length
>
0
)
{
if
(
!
list
.
length
>
0
)
{
this
.
userAddressReq
.
isDefaultShipping
=
1
;
this
.
userAddressReq
.
isDefaultShipping
=
1
;
}
else
{
}
else
{
...
@@ -216,27 +216,37 @@ export default {
...
@@ -216,27 +216,37 @@ export default {
addres
addres
.
addOrEditAddress
(
this
.
userAddressReq
)
.
addOrEditAddress
(
this
.
userAddressReq
)
.
then
(
res
=>
{
.
then
(
res
=>
{
let
TimeOut
=
0
;
if
(
res
.
data
.
code
==
200
)
{
if
(
res
.
data
.
code
==
200
)
{
console
.
log
(
"!!!!!!!!!!!!!"
,
this
.
options
.
back
);
console
.
log
(
"!!!!!!!!!!!!!"
,
this
.
options
.
back
);
console
.
log
(
"微信地址"
,
this
.
userAddressReq
);
console
.
log
(
"微信地址"
,
this
.
userAddressReq
);
}
else
{
}
else
{
TimeOut
=
1500
;
}
}
console
.
log
(
res
.
data
.
msg
,
'-------------------224'
)
wx
.
showToast
({
title
:
res
.
data
.
msg
,
icon
:
"none"
});
wx
.
showToast
({
title
:
res
.
data
.
msg
,
icon
:
"none"
});
wx
.
navigateBack
();
setTimeout
(()
=>
{
wx
.
navigateBack
();
},
TimeOut
);
})
})
.
catch
(
err
=>
{
.
catch
(
err
=>
{
wx
.
showToast
({
title
:
err
,
icon
:
"none"
});
wx
.
showToast
({
title
:
err
,
icon
:
"none"
});
wx
.
navigateBack
();
setTimeout
(()
=>
{
wx
.
navigateBack
();
},
1500
);
});
});
}
else
{
}
else
{
wx
.
showToast
({
title
:
res
.
data
.
msg
,
icon
:
"none"
});
wx
.
showToast
({
title
:
res
.
data
.
msg
,
icon
:
"none"
});
wx
.
navigateBack
();
setTimeout
(()
=>
{
wx
.
navigateBack
();
},
1500
);
}
}
})
})
.
catch
(
err
=>
{
.
catch
(
err
=>
{
wx
.
showToast
({
title
:
err
,
icon
:
"none"
});
wx
.
showToast
({
title
:
err
,
icon
:
"none"
});
wx
.
navigateBack
();
setTimeout
(()
=>
{
wx
.
navigateBack
();
},
1500
);
});
});
}
}
}
}
...
...
static/nativeComponents/GoodsList/index.js
View file @
382fe51e
...
@@ -90,8 +90,9 @@ const componentOptions = {
...
@@ -90,8 +90,9 @@ const componentOptions = {
console
.
log
(
_this
.
data
.
submitFliterVal
,
'----------submitFliterVal'
)
console
.
log
(
_this
.
data
.
submitFliterVal
,
'----------submitFliterVal'
)
_this
.
init
();
_this
.
init
();
}
}
console
.
log
(
this
.
data
.
datas
.
componentData
.
filterBrand
,
'---this.data.datas.componentData.filterBrand'
)
this
.
setData
({
this
.
setData
({
"submitFliterVal.brandIdList"
:
JSON
.
parse
(
JSON
.
stringify
(
this
.
data
.
datas
.
componentData
.
filterBrand
))
,
"submitFliterVal.brandIdList"
:
this
.
data
.
datas
.
componentData
.
filterBrand
&&
this
.
data
.
datas
.
componentData
.
filterBrand
.
length
>
0
?
JSON
.
parse
(
JSON
.
stringify
(
this
.
data
.
datas
.
componentData
.
filterBrand
))
:
[]
,
})
})
this
.
init
();
this
.
init
();
},
},
...
...
static/nativeComponents/GoodsList/index.wxss
View file @
382fe51e
...
@@ -77,7 +77,7 @@ image{
...
@@ -77,7 +77,7 @@ image{
border-radius: 6px;
border-radius: 6px;
position: sticky;
position: sticky;
top: 0;
top: 0;
z-index:
999
;
z-index:
887
;
box-shadow: 0px 5px 10px 0px #0000001c;
box-shadow: 0px 5px 10px 0px #0000001c;
}
}
.filterComponents input{
.filterComponents input{
...
...
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