Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
H
h5-base
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
new-sing
h5-base
Commits
a40fec50
Commit
a40fec50
authored
Jun 12, 2019
by
chenyishuai@singsingenglish.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ss
parent
1ea1345d
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
47 additions
and
23 deletions
+47
-23
index.vue
src/components/map/index.vue
+22
-14
address.vue
src/components/mine/address.vue
+5
-2
addressEdit.vue
src/components/mine/addressEdit.vue
+9
-6
index.vue
src/components/subAccount/index.vue
+2
-1
index.js
src/router/index.js
+9
-0
No files found.
src/components/map/index.vue
View file @
a40fec50
...
...
@@ -602,23 +602,31 @@
if
(
x
!==
this
.
hpLessonList
.
length
){
this
.
swiperLesson
.
slideTo
(
x
-
1
)
}
else
if
(
this
.
$route
.
query
.
category_id
){
}
if
(
this
.
$route
.
query
.
category_id
){
let
dom
=
document
.
getElementsByClassName
(
'cid'
+
this
.
$route
.
query
.
category_id
);
if
(
dom
.
length
>
0
&&
dom
[
0
].
style
.
display
!==
'none'
){
this
.
scroll_to
(
dom
[
0
].
offsetTop
);
let
data
=
null
;
let
index
=
0
;
this
.
lessonList
.
forEach
(
i
=>
{
i
.
forEach
((
x
,
i
)
=>
{
if
(
x
.
id
==
this
.
$route
.
query
.
category_id
){
data
=
x
;
index
=
i
+
1
}
})
// 从公众号推送消息点击进入
if
(
this
.
$route
.
query
.
hasOwnProperty
(
'course_type'
)){
let
dom
=
document
.
getElementsByClassName
(
'cid'
+
this
.
$route
.
query
.
category_id
);
if
(
dom
.
length
>
0
&&
dom
[
0
].
style
.
display
!==
'none'
){
this
.
scroll_to
(
dom
[
0
].
offsetTop
);
let
data
=
null
;
let
index
=
0
;
this
.
lessonList
.
forEach
(
i
=>
{
i
.
forEach
((
x
,
i
)
=>
{
if
(
x
.
id
==
this
.
$route
.
query
.
category_id
){
data
=
x
;
index
=
i
+
1
}
})
});
this
.
showDia
(
data
,
index
)
}
}
else
{
this
.
$router
.
replace
({
name
:
"secMap"
,
query
:
{
}
});
this
.
showDia
(
data
,
index
)
}
}
else
if
(
this
.
$route
.
query
.
back_id
){
let
dom
=
document
.
getElementsByClassName
(
'cid'
+
this
.
$route
.
query
.
back_id
);
...
...
src/components/mine/address.vue
View file @
a40fec50
...
...
@@ -28,7 +28,7 @@
<div
class=
"head next"
>
<i></i>
下期收货地址
<span
class=
"fl-r"
><span
class=
"iconfont icon-bianji"
></span>
修改
</span>
<span
class=
"fl-r"
@
click=
"goEdit"
><span
class=
"iconfont icon-bianji"
></span>
修改
</span>
</div>
<div
class=
"content"
>
<div
class=
"top"
>
...
...
@@ -71,7 +71,10 @@ export default {
getUserAdressApi
().
then
(
res
=>
{
// this.starNum = res.last_value
this
.
addressInfo
=
res
;
});
})
},
goEdit
(){
this
.
$router
.
push
({
name
:
'addressEdit'
})
}
}
};
...
...
src/components/mine/addressEdit.vue
View file @
a40fec50
<
template
>
<div
class=
"address2"
>
<div
style=
"padding: 10px"
>
<div
>
<!--
<van-cell
title=
"单元格"
value=
"内容"
/>
-->
<mt-field
label=
"收货人"
v-model=
"receiveName"
></mt-field>
<mt-field
label=
"手机号"
v-model=
"receiveMobile"
></mt-field>
<mt-cell
title=
"所在地区"
:value=
"addressArea"
@
click
.
native=
"showPicker"
is-link
></mt-cell>
...
...
@@ -15,11 +16,12 @@
<
script
>
import
MyAddress
from
'@/components/address-picker/Address.vue'
import
{
saveAddressApi
,
getUserAdressApi
}
from
"../../service/api"
;
import
{
Toast
}
from
'vant'
;
import
{
Cell
,
Toast
}
from
'vant'
;
export
default
{
name
:
"address"
,
components
:
{
MyAddress
MyAddress
,
[
Cell
.
name
]:
Cell
},
data
()
{
return
{
...
...
@@ -106,14 +108,16 @@ export default {
})
}
}
}
};
}
</
script
>
<
style
scoped
lang=
"less"
>
@import "../../util/public";
.address2 {
background: #f5f5f9;
.mint-cell{color: #333333;}
.mint-cell-value{color: #333333;}
.head{
i{display: inline-block;border-radius: 50%; width: 11 * @toVw;height: 11 * @toVw; }
padding: 13 * @toVw;
...
...
@@ -177,7 +181,6 @@ export default {
font-size: 12 * @toVw;
line-height: 23 * @toVw;
}
}
@media screen and (orientation: landscape) {
}
...
...
src/components/subAccount/index.vue
View file @
a40fec50
...
...
@@ -213,7 +213,7 @@ export default {
}
.warntip{
.title{
font-weight:
600
;
font-weight:
bold
;
font-size: 14* @toVw;
}
margin-top: 20* @toVw;
...
...
@@ -225,6 +225,7 @@ export default {
.btnBox{
text-align: center;
margin-top: 58* @toVw;
font-weight: 700;
.van-button--info{width: 132* @toVw;}
}
.info{
...
...
src/router/index.js
View file @
a40fec50
...
...
@@ -39,6 +39,15 @@ const router =new Router({
title
:
'唱唱启蒙'
}
},
{
path
:
'/addressEdit'
,
name
:
'addressEdit'
,
component
:
e
=>
require
([
'@/components/mine/addressEdit'
],
e
),
//
meta
:{
deep
:
0
,
noNew
:
true
,
}
},
{
path
:
'/subAccept'
,
name
:
'subAccept'
,
...
...
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