Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wandouchengzhang_coach
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
石盼盼
wandouchengzhang_coach
Commits
3d27eabf
Commit
3d27eabf
authored
Dec 04, 2020
by
石盼盼
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
意向区域bug跟联系客服修改
parent
0b436f5f
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
68 additions
and
45 deletions
+68
-45
teachingArea.js
pages/my/teachingArea/teachingArea.js
+34
-20
teachingArea.wxml
pages/my/teachingArea/teachingArea.wxml
+1
-1
personal.js
pages/tabbar/personal/personal.js
+15
-15
personal.wxml
pages/tabbar/personal/personal.wxml
+9
-8
personal.wxss
pages/tabbar/personal/personal.wxss
+9
-1
No files found.
pages/my/teachingArea/teachingArea.js
View file @
3d27eabf
...
...
@@ -40,15 +40,19 @@ Page({
},
callback
:
(
data
)
=>
{
var
arr
=
[]
for
(
var
i
in
data
.
area
)
{
for
(
var
i
in
data
.
area
)
{
let
option
=
{
id
:
data
.
area
[
i
]
!=
null
&&
data
.
area
[
i
].
id
?
data
.
area
[
i
].
id
:
''
,
name
:
data
.
area
[
i
]
!=
null
&&
data
.
area
[
i
].
name
?
data
.
area
[
i
].
name
:
''
,
id
:
data
.
area
[
i
]
!=
null
&&
data
.
area
[
i
].
id
?
data
.
area
[
i
].
id
:
''
,
name
:
data
.
area
[
i
]
!=
null
&&
data
.
area
[
i
].
name
?
data
.
area
[
i
].
name
:
''
,
}
arr
.
push
(
option
)
}
this
.
setData
({
currentArea
:
arr
currentArea
:
arr
,
cityChecked
:
data
.
city
!=
null
&&
data
.
city
.
city_name
!=
''
?
data
.
city
.
city_name
:
''
,
city
:
data
.
city
!=
null
&&
data
.
city
.
city_name
!=
''
?
data
.
city
.
city_name
:
''
,
region_id
:
data
.
city
!=
null
&&
data
.
city
.
region_id
!=
''
?
data
.
city
.
region_id
:
''
,
city_id
:
data
.
city
!=
null
&&
data
.
city
.
city_id
!=
''
?
data
.
city
.
id
:
''
,
})
console
.
log
(
this
.
data
.
currentArea
)
}
...
...
@@ -62,6 +66,7 @@ Page({
this
.
setData
({
cityList
:
data
})
if
(
this
.
data
.
city
==
''
)
{
for
(
let
i
=
0
;
i
<
data
.
length
;
i
++
)
{
if
(
data
[
i
].
is_default
==
1
)
{
this
.
setData
({
...
...
@@ -72,7 +77,9 @@ Page({
})
}
}
}
this
.
getArealist
(
this
.
data
.
region_id
)
}
}
base
.
newRequest
(
params
)
...
...
@@ -139,10 +146,17 @@ Page({
cityChecked_id
,
region_id
}
=
this
.
data
;
for
(
let
i
=
0
;
i
<
this
.
data
.
currentArea
.
length
;
i
++
){
this
.
data
.
currentArea
[
i
].
id
=
''
this
.
data
.
currentArea
[
i
].
name
=
''
}
this
.
setData
({
city
:
cityChecked
,
city_id
:
cityChecked_id
,
cityShow
:
false
cityShow
:
false
,
currentArea
:
this
.
data
.
currentArea
})
this
.
getArealist
(
region_id
)
},
...
...
@@ -150,8 +164,8 @@ Page({
onConfirm
(
event
)
{
let
index
=
event
.
detail
.
index
let
list
=
this
.
data
.
currentArea
list
[
this
.
data
.
showIndex
-
1
].
name
=
this
.
data
.
areaList
[
index
].
name
list
[
this
.
data
.
showIndex
-
1
].
id
=
this
.
data
.
areaList
[
index
].
id
list
[
this
.
data
.
showIndex
-
1
].
name
=
this
.
data
.
areaList
[
index
].
name
list
[
this
.
data
.
showIndex
-
1
].
id
=
this
.
data
.
areaList
[
index
].
id
this
.
setData
({
currentArea
:
list
,
show
:
!
this
.
data
.
show
...
...
@@ -167,7 +181,7 @@ Page({
let
params
=
{
url
:
'
coach/save_area
'
,
data
:
{
coach_id
:
this
.
data
.
coach_id
,
coach_id
:
this
.
data
.
coach_id
,
city_id
:
this
.
data
.
city_id
,
first_area
:
this
.
data
.
currentArea
[
0
].
id
,
second_area
:
this
.
data
.
currentArea
[
1
].
id
,
...
...
pages/my/teachingArea/teachingArea.wxml
View file @
3d27eabf
...
...
@@ -7,7 +7,7 @@
<view class="every flex-h flex-vc">
<view class="one">意向区域{{index+1}}</view>
<view class="two" bindtap="showCitypop" data-index="{{index+1}}">
<text>{{item.name}}</text>
<text>{{item.name
? item.name : '请选择意向区域'
}}</text>
<text class="iconfont icongengduo"></text>
</view>
</view>
...
...
pages/tabbar/personal/personal.js
View file @
3d27eabf
...
...
@@ -39,13 +39,13 @@ Page({
})
}
},
getInfo
()
{
getInfo
()
{
let
params
=
{
url
:
'
coach/info
'
,
data
:
{
coach_id
:
this
.
data
.
coach_id
},
callback
:
(
data
)
=>
{
callback
:
(
data
)
=>
{
this
.
setData
({
userInfo
:
data
,
userTel
:
data
.
wx_user
.
tel
.
substr
(
0
,
3
)
+
'
****
'
+
data
.
wx_user
.
tel
.
substring
(
7
,
11
)
...
...
@@ -77,7 +77,7 @@ Page({
getSubjectlist
:
function
()
{
let
params
=
{
url
:
'
coach/course
'
,
data
:{
data
:
{
coach_id
:
app
.
globalData
.
coach_id
,
},
callback
:
(
data
)
=>
{
...
...
@@ -136,16 +136,16 @@ Page({
base
.
newRequest
(
params
)
}
},
goCall
:
function
(
e
)
{
wx
.
showModal
({
content
:
'
确定要拨打电话吗?
'
,
success
(
res
)
{
if
(
res
.
confirm
)
{
wx
.
makePhoneCall
({
phoneNumber
:
'
15630107218
'
})
}
}
})
}
//
goCall: function (e) {
//
wx.showModal({
//
content: '确定要拨打电话吗?',
//
success(res) {
//
if (res.confirm) {
//
wx.makePhoneCall({
//
phoneNumber: '15630107218'
//
})
//
}
//
}
//
})
//
}
})
\ No newline at end of file
pages/tabbar/personal/personal.wxml
View file @
3d27eabf
...
...
@@ -46,13 +46,15 @@
</view>
<view class="centerNav">
<view class="every flex-h flex-vc flex-hb" catchtap="goCall">
<button class="kf-btn" open-type="contact">
<view class="every flex-h flex-vc flex-hb">
<view class="row title">
<image src="/images/my/per_icon_04.png"></image>
<view>联系客服</view>
</view>
<text class="iconfont icongengduo"></text>
</view>
</button>
</view>
<van-popup show="{{ subjectShow }}" closeable round bind:close="tcHold">
...
...
@@ -63,8 +65,7 @@
</view>
<view class="subject flex-h flex-hw flex-ha">
<block wx:for='{{subjectList}}' wx:key='index'>
<view class="{{item.isChecked ? 'active' : ''}}" catchtap="chooseOne" data-index='{{index}}'
data-item='{{item}}'>{{item.name}}</view>
<view class="{{item.isChecked ? 'active' : ''}}" catchtap="chooseOne" data-index='{{index}}' data-item='{{item}}'>{{item.name}}</view>
</block>
</view>
<view class="confirm" catchtap="confirm">确定</view>
...
...
pages/tabbar/personal/personal.wxss
View file @
3d27eabf
...
...
@@ -156,4 +156,12 @@ page {
margin: 30rpx auto 0;
}
.kf-btn{
background:#FFFFFF;
width:750rpx !important;
height:109rpx !important;
font-weight: normal !important;
color: #B3B3B3;
font-size: 30rpx;
padding: 0 58rpx 0 0 !important;
}
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