Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
Compass
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zong
Compass
Commits
69cbf090
Commit
69cbf090
authored
5 years ago
by
biao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1111
parent
4f711408
master
No related merge requests found
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
44 additions
and
27 deletions
+44
-27
ajax_get_my_top_dat.php
src/user/if/ajax_get_my_top_dat.php
+1
-0
ajax_update_user_age.php
src/user/if/ajax_update_user_age.php
+2
-8
age.png
src/wx/img/age.png
+0
-0
ageChange.js
src/wx/pages/ageChange/ageChange.js
+8
-1
ageChange.wxml
src/wx/pages/ageChange/ageChange.wxml
+1
-0
my.js
src/wx/pages/my/my.js
+25
-18
my.wxml
src/wx/pages/my/my.wxml
+7
-0
No files found.
src/user/if/ajax_get_my_top_dat.php
View file @
69cbf090
...
@@ -33,6 +33,7 @@ $userMst = $userList[0];
...
@@ -33,6 +33,7 @@ $userMst = $userList[0];
$result
[
"name"
]
=
$userMst
->
name
;
$result
[
"name"
]
=
$userMst
->
name
;
$result
[
"headerImg"
]
=
$userMst
->
header_img
;
$result
[
"headerImg"
]
=
$userMst
->
header_img
;
$result
[
"abilityPoint"
]
=
$userMst
->
ability_point
;
$result
[
"abilityPoint"
]
=
$userMst
->
ability_point
;
$result
[
"age"
]
=
$userMst
->
child_age
;
$result
[
"servicePoint"
]
=
$userMst
->
service_point
;
$result
[
"servicePoint"
]
=
$userMst
->
service_point
;
ErrorLogger
::
doOutput
(
"Compass...ajax_get_my_top_dat.php....End."
,
0
);
ErrorLogger
::
doOutput
(
"Compass...ajax_get_my_top_dat.php....End."
,
0
);
...
...
This diff is collapsed.
Click to expand it.
src/user/if/ajax_update_user_age.php
View file @
69cbf090
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
require_once
(
"../user_include.inc"
);
require_once
(
"../user_include.inc"
);
$unionId
=
ParamUtil
::
getRequestString
(
"unionId"
,
0
);
$unionId
=
ParamUtil
::
getRequestString
(
"unionId"
,
0
);
$age
=
ParamUtil
::
getRequestNumber
(
"age"
,
1
);
$age
=
ParamUtil
::
getRequestNumber
(
"age"
,
0
);
ErrorLogger
::
doOutput
(
"Compass...ajax_update_user_age.php....Start."
,
0
);
ErrorLogger
::
doOutput
(
"Compass...ajax_update_user_age.php....Start."
,
0
);
ErrorLogger
::
doOutput
(
"Compass...ajax_update_user_age.php....unionId="
.
$unionId
,
0
);
ErrorLogger
::
doOutput
(
"Compass...ajax_update_user_age.php....unionId="
.
$unionId
,
0
);
...
@@ -17,12 +17,6 @@ if(empty($unionId)) {
...
@@ -17,12 +17,6 @@ if(empty($unionId)) {
responseNG
(
$result
);
responseNG
(
$result
);
}
}
//年龄段参数
$tmpObj
=
ChildAgeRange
::
getById
(
$age
);
if
(
empty
(
$tmpObj
))
{
responseNG
(
"参数错误!"
);
}
//检索用户是否存在
//检索用户是否存在
$param
[
'unionid'
]
=
$unionId
;
$param
[
'unionid'
]
=
$unionId
;
$param
[
'delete_flg'
]
=
false
;
$param
[
'delete_flg'
]
=
false
;
...
@@ -39,7 +33,7 @@ ErrorLogger::doOutput("Compass...ajax_update_user_age.php....End.", 0);
...
@@ -39,7 +33,7 @@ ErrorLogger::doOutput("Compass...ajax_update_user_age.php....End.", 0);
$result
[
"recommend"
]
=
false
;
$result
[
"recommend"
]
=
false
;
//已经是会员不用购买
//已经是会员不用购买
if
(
$user
Mst
.
is_member
==
false
&&
(
$userMst
.
role
==
1
||
$userMst
.
role
==
2
||
$userMst
.
role
==
3
||
$userMst
.
role
==
5
||
$userMst
.
role
==
6
))
{
if
(
$user
->
is_member
==
false
&&
(
$user
->
role
==
1
||
$user
->
role
==
2
||
$user
->
role
==
3
||
$user
->
role
==
5
||
$user
->
role
==
6
))
{
$result
[
"recommend"
]
=
true
;
$result
[
"recommend"
]
=
true
;
}
}
$result
[
"message"
]
=
"更新成功!"
;
$result
[
"message"
]
=
"更新成功!"
;
...
...
This diff is collapsed.
Click to expand it.
src/wx/img/age.png
0 → 100644
View file @
69cbf090
11.8 KB
This diff is collapsed.
Click to expand it.
src/wx/pages/ageChange/ageChange.js
View file @
69cbf090
...
@@ -6,13 +6,20 @@ Page({
...
@@ -6,13 +6,20 @@ Page({
* 页面的初始数据
* 页面的初始数据
*/
*/
data
:
{
data
:
{
age
:
1
age
:
1
,
frommy
:
0
},
},
/**
/**
* 生命周期函数--监听页面加载
* 生命周期函数--监听页面加载
*/
*/
onLoad
:
function
(
options
)
{
onLoad
:
function
(
options
)
{
if
(
options
&&
options
.
frommy
)
{
this
.
setData
({
frommy
:
options
.
frommy
,
age
:
options
.
age
,
})
}
},
},
/**
/**
...
...
This diff is collapsed.
Click to expand it.
src/wx/pages/ageChange/ageChange.wxml
View file @
69cbf090
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
<text>请选择您的孩子的年龄段</text>
<text>请选择您的孩子的年龄段</text>
<view style="background:{{age==1?'#3AAB69':'#fff'}}" bindtap='selectAge' data-index="1">3~6岁</view>
<view style="background:{{age==1?'#3AAB69':'#fff'}}" bindtap='selectAge' data-index="1">3~6岁</view>
<view style="background:{{age==2?'#3AAB69':'#fff'}}" bindtap='selectAge' data-index="2">7岁以上</view>
<view style="background:{{age==2?'#3AAB69':'#fff'}}" bindtap='selectAge' data-index="2">7岁以上</view>
<view style="background:{{age==0?'#3AAB69':'#fff'}}" bindtap='selectAge' data-index="0">暂不选择</view>
<view class='button' style='border:none'>
<view class='button' style='border:none'>
<view style="width:100%;height:100%;background:#0D76ED;color:#fff" bindtap="updateAge">提交</view>
<view style="width:100%;height:100%;background:#0D76ED;color:#fff" bindtap="updateAge">提交</view>
</view>
</view>
...
...
This diff is collapsed.
Click to expand it.
src/wx/pages/my/my.js
View file @
69cbf090
...
@@ -8,13 +8,28 @@ Page({
...
@@ -8,13 +8,28 @@ Page({
data
:
{
data
:
{
active
:
2
,
active
:
2
,
name
:
''
,
name
:
''
,
headerImg
:
''
headerImg
:
''
,
age
:
0
},
},
/**
/**
* 生命周期函数--监听页面加载
* 生命周期函数--监听页面加载
*/
*/
onLoad
:
function
(
options
)
{
onLoad
:
function
()
{
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady
:
function
()
{
},
/**
* 生命周期函数--监听页面显示
*/
onShow
:
function
()
{
var
that
=
this
;
var
that
=
this
;
var
config
=
wx
.
getStorageSync
(
'config'
);
var
config
=
wx
.
getStorageSync
(
'config'
);
wx
.
request
({
wx
.
request
({
...
@@ -29,8 +44,9 @@ Page({
...
@@ -29,8 +44,9 @@ Page({
console
.
log
(
res
)
console
.
log
(
res
)
if
(
res
.
statusCode
==
200
)
{
if
(
res
.
statusCode
==
200
)
{
that
.
setData
({
that
.
setData
({
name
:
res
.
data
.
result
.
name
,
name
:
res
.
data
.
result
.
name
,
headerImg
:
res
.
data
.
result
.
headerImg
headerImg
:
res
.
data
.
result
.
headerImg
,
age
:
res
.
data
.
result
.
age
,
})
})
}
}
},
},
...
@@ -40,20 +56,6 @@ Page({
...
@@ -40,20 +56,6 @@ Page({
},
},
/**
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady
:
function
()
{
},
/**
* 生命周期函数--监听页面显示
*/
onShow
:
function
()
{
},
/**
* 用户点击右上角分享
* 用户点击右上角分享
*/
*/
onShareAppMessage
:
function
()
{
onShareAppMessage
:
function
()
{
...
@@ -92,6 +94,11 @@ Page({
...
@@ -92,6 +94,11 @@ Page({
title
:
'我的证书'
title
:
'我的证书'
})
})
},
},
ageChange
()
{
wx
:
wx
.
navigateTo
({
url
:
'../ageChange/ageChange?frommy=1&age='
+
this
.
data
.
age
})
},
quanzi
(){
quanzi
(){
wx
.
reLaunch
({
wx
.
reLaunch
({
url
:
'../circle/circle'
,
url
:
'../circle/circle'
,
...
...
This diff is collapsed.
Click to expand it.
src/wx/pages/my/my.wxml
View file @
69cbf090
...
@@ -31,6 +31,13 @@
...
@@ -31,6 +31,13 @@
</view>
</view>
<text></text>
<text></text>
</view>
</view>
<view class='con_mineList' bindtap='ageChange'>
<image src='../../img/huodong.png'></image>
<view>
服务年龄<image src='../../img/left.png'></image>
</view>
<text></text>
</view>
<view class='con_mineList' bindtap='xiaoxi'>
<view class='con_mineList' bindtap='xiaoxi'>
<image src='../../img/xiaoxi.png'></image>
<image src='../../img/xiaoxi.png'></image>
<view>
<view>
...
...
This diff is collapsed.
Click to expand it.
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