Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wxapp
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
亲子游项目
wxapp
Commits
a10c142b
Commit
a10c142b
authored
Sep 27, 2018
by
汪睦雄
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of 123.56.28.111:qz-tour/wxapp
parents
620c3116
d19e1013
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
124 additions
and
13 deletions
+124
-13
pages/me/index.js
+6
-0
pages/me/index.wxml
+5
-5
pages/me/profile/index.js
+1
-1
pages/me/profile/index.json
+12
-2
pages/me/profile/index.wxml
+48
-1
pages/me/profile/index.wxss
+43
-2
project.config.json
+9
-2
No files found.
pages/me/index.js
View file @
a10c142b
...
...
@@ -32,6 +32,12 @@ Page({
this
.
getUserInfo
()
},
toUrl
:
function
(
event
)
{
wx
.
navigateTo
({
url
:
event
.
currentTarget
.
dataset
.
url
,
})
},
getUserInfo
:
function
()
{
api
.
me
.
info
().
then
(
res
=>
{
if
(
!
res
.
code
)
{
...
...
pages/me/index.wxml
View file @
a10c142b
...
...
@@ -4,10 +4,10 @@
<view class='head-map'>
<image src='/images/personal_center/info_background.png'></image>
<view class='avatar_box'>
<image src='/images/personal_center/avatar.jpg'></image>
<image src='/images/personal_center/avatar.jpg'
bindtap="toUrl" data-url='/pages/me/profile/index'
></image>
</view>
<view class='user-info-box'>
<image src='/images/personal_center/vip.png'></image>
<view class='user-info-box'
>
<image src='/images/personal_center/vip.png'
></image>
<text>小熊</text>
</view>
</view>
...
...
@@ -15,7 +15,7 @@
<!-- 我的订单 -->
<i-cell-group>
<i-cell title="我的订单" is-link url="/pages/me/order/index">
<text slot="footer" class='text-gray'>全部</text>
<text slot="footer" class='text-gray'
url='/pages/order/index'
>全部</text>
</i-cell>
<i-row i-class="order-status-box">
<i-col span="8" i-class="col-class">
...
...
@@ -40,7 +40,7 @@
</i-cell-group>
<i-cell-group i-class='vip'>
<i-cell title="VIP会员" is-link url="/pages/
dashboard
/index">
<i-cell title="VIP会员" is-link url="/pages/
me/vip
/index">
<text slot="footer" class='text-gray'>全部</text>
</i-cell>
<i-cell title="我的收藏" is-link url="/pages/collection/index"></i-cell>
...
...
pages/me/profile/index.js
View file @
a10c142b
...
...
@@ -5,7 +5,7 @@ Page({
* 页面的初始数据
*/
data
:
{
array
:[
"男"
,
"女"
]
},
/**
...
...
pages/me/profile/index.json
View file @
a10c142b
{}
\ No newline at end of file
{
"navigationBarTitleText"
:
"个人中心"
,
"backgroundColor"
:
"#f5f5f5"
,
"usingComponents"
:
{
"i-input"
:
"/iview/input/index"
,
"i-row"
:
"/iview/row/index"
,
"i-col"
:
"/iview/col/index"
,
"i-avatar"
:
"/iview/avatar/index"
,
"i-button"
:
"/iview/button/index"
}
}
\ No newline at end of file
pages/me/profile/index.wxml
View file @
a10c142b
<!--pages/me/profile/index.wxml-->
<text>pages/me/profile/index.wxml</text>
<view class='plane'>
<i-row i-class='plane-item'>
<i-col span="8" i-class="col-class input ">头像</i-col>
<i-col span="16" i-class="col-class avatar-box">
<image class='avatar-image' src='https://i.loli.net/2017/08/21/599a521472424.jpg'></image>
</i-col>
</i-row>
<i-row i-class='plane-item'>
<i-col span="8" i-class="col-class input ">名字</i-col>
<i-col span="16" i-class="col-class">
<input class='input input-text ' placeholder="请输入您的昵称"></input>
</i-col>
</i-row>
<i-row i-class='plane-item'>
<i-col span="8" i-class="col-class input ">性别</i-col>
<i-col span="16" i-class="col-class">
<picker bindchange="bindPickerChange" value="0" range="{{array}}">
<view class="picker input input-text">
{{array[0]}} >
</view>
</picker>
</i-col>
</i-row>
</view>
<view class='plane'>
<i-row i-class='plane-item'>
<i-col span="8" i-class="col-class input ">手机号</i-col>
<i-col span="16" i-class="col-class">
<input class='input input-text ' placeholder="立即授权 >" disabled='false'></input>
</i-col>
</i-row>
<i-row i-class='plane-item'>
<i-col span="8" i-class="col-class input ">手机号</i-col>
<i-col span="16" i-class="col-class">
<input class='input input-text ' value='18685850590' disabled='false'></input>
</i-col>
</i-row>
</view>
<view class='saveBtn'>
<i-button type="primary" bind:click="handleClick" shape="circle">保存</i-button>
</view>
\ No newline at end of file
pages/me/profile/index.wxss
View file @
a10c142b
/* pages/me/profile/index.wxss */
\ No newline at end of file
page {
background-color: #f5f5f5;
height: 100%;
}
.plane {
background-color: #fff;
margin-top: 20rpx;
}
.plane-item {
width: 90%;
margin: auto;
border-bottom: 1px solid #f9f9f9;
}
.input {
height: 100rpx;
line-height: 100rpx;
font-size: 28rpx;
}
.input-text {
text-align: right;
color: #999;
}
.avatar-box {
padding: 5px 0;
height: 100rpx;
}
.avatar-image {
float: right;
width: 80rpx;
height: 80rpx;
border-radius: 50%;
}
.saveBtn{
width:80%;
margin: 40rpx auto;
}
project.config.json
View file @
a10c142b
...
...
@@ -37,7 +37,7 @@
"list"
:
[]
},
"miniprogram"
:
{
"current"
:
6
,
"current"
:
7
,
"list"
:
[
{
"id"
:
0
,
...
...
@@ -78,7 +78,14 @@
{
"id"
:
-1
,
"name"
:
"vip"
,
"pathName"
:
"pages/me/vip/index"
"pathName"
:
"pages/me/vip/index"
,
"query"
:
""
},
{
"id"
:
-1
,
"name"
:
"资料"
,
"pathName"
:
"pages/me/profile/index"
,
"query"
:
""
}
]
}
...
...
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