Commit 2f5ae5cf by 高淑倩

modify: 性别选择器

parent 63367d26
...@@ -113,7 +113,7 @@ App({ ...@@ -113,7 +113,7 @@ App({
loginFirst: false, loginFirst: false,
imageUrl:"", //图片地址 imageUrl:"", //图片地址
isFullSucreen: false, // 当前设备是否为 FullSucreen isFullSucreen: false, // 当前设备是否为 FullSucreen
brandId: 2005, // brandId: 2005,
// brandId: 1001, brandId: 1001,
} }
}) })
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
"navigateToMiniProgramAppIdList": [ "navigateToMiniProgramAppIdList": [
"wxeb490c6f9b154ef9", "wxeb490c6f9b154ef9",
"wxcf6d299fecd830cf", "wxcf6d299fecd830cf",
"wx5717ceb7cfa09f2e" "wx5717ceb7cfa09f2e",
"wx358b56af62edbde1"
] ]
} }
\ No newline at end of file
const PROJECT_ENV = 'pre' // 生产 prod, 测试 dev, 预生产 pre const PROJECT_ENV = 'dev' // 生产 prod, 测试 dev, 预生产 pre
const needMock = '' // const needMock = '' //
// appid_dev_wx wxc3b64b09b1d3dfc2 // appid_dev_wx wxc3b64b09b1d3dfc2
......
...@@ -79,17 +79,17 @@ wxService.page({ ...@@ -79,17 +79,17 @@ wxService.page({
cardNoOnline: this.data.memberCardNo cardNoOnline: this.data.memberCardNo
} }
wxService.post(`/member/find`,params).then(res => { wxService.post(`/member/find`,params).then(res => {
const { result, data } = res.data const { result, data } = res.data
if (result == 0) { if (result == 0) {
wx.hideLoading() wx.hideLoading()
data.member.birthday = data.member.birthday.substring(0,10) data.member.birthday = data.member.birthday && data.member.birthday.substring(0,10)
data.member.sex = data.member.sex == '男'? 0 : 1 data.member.sex = data.member.sex == '男'? 0 : 1
this.setData({ this.setData({
memberInfo: data.member, memberInfo: data.member,
index: data.member.sex index: data.member.sex
}) })
} }
}) })
}, },
// 更新 // 更新
handelMemberUplate(params){ handelMemberUplate(params){
......
...@@ -20,7 +20,18 @@ ...@@ -20,7 +20,18 @@
<canvas canvas-id="barcode" /> <canvas canvas-id="barcode" />
</view> </view>
</view> </view>
<view class='form-info'>
<!-- <view class="section">
<view class="section__title">普通选择器</view>
<picker bindchange="bindPickerChange" value="{{index}}" range="{{array}}">
<view class="picker">
当前选择:{{array[index]}}
</view>
</picker>
</view>-->
<view class='form-info'>
<form bindsubmit="formSubmit"> <form bindsubmit="formSubmit">
<view class='form-section'> <view class='form-section'>
<label class='form-label'>姓名</label> <label class='form-label'>姓名</label>
......
/* pages/userCenter.wxss */ /* pages/userCenter.wxss */
@import './../../base/base.wxss'; @import './../../base/base.wxss';
/* .own-content{
padding: 30rpx 50rpx 0;
}
.user-info{
position: relative;
width: 650rpx;
height: 298rpx;
box-shadow: 0 0 40rpx 1rpx #ccc;
border-radius: 7rpx;
padding-top: 30rpx;
box-sizing:border-box;
}
.own-bg{
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
z-index: -1;
}
.user-avatar{
width: 90rpx;
height: 90rpx;
overflow:hidden;
border-radius: 50%;
display: inline-block;
margin-right: 18rpx;
margin-left: 30rpx;
}
.user-name-content{
display: inline-block;
}
.user-name{
margin-bottom: 10rpx;
}
.user-id{
color: #FFF;
font-size: 24rpx;
}
.qr-code image{
width: 50rpx;
height: 50rpx;
margin-right: 31rpx;
margin-top:15rpx;
}
.user-qr-code{
background-color: #ffffff;
border-radius: 7rpx;
width:650rpx;
height: 100rpx;
line-height: 100rpx;
text-align: center;
}
canvas{
top: 20rpx;
left: 70rpx;
} */
.textarea-wrp { .textarea-wrp {
padding-left: 46rpx; padding-left: 46rpx;
} }
...@@ -39,7 +97,6 @@ ...@@ -39,7 +97,6 @@
display: inline-block; display: inline-block;
margin-right: 18rpx; margin-right: 18rpx;
margin-left: 30rpx; margin-left: 30rpx;
/* margin-top:-6rpx; */
} }
.userinfo-nickname { .userinfo-nickname {
font-size: 28rpx; font-size: 28rpx;
...@@ -74,7 +131,6 @@ ...@@ -74,7 +131,6 @@
height: 100rpx; height: 100rpx;
line-height: 100rpx; line-height: 100rpx;
text-align: center; text-align: center;
/* box-shadow: 0 0 10rpx 1rpx #666666; */
} }
.user-qr-code image{ .user-qr-code image{
...@@ -84,7 +140,6 @@ ...@@ -84,7 +140,6 @@
margin-top: 25rpx; margin-top: 25rpx;
} }
/* form表单 */
.form-info{ .form-info{
background-color: #ffffff; background-color: #ffffff;
margin-top: 60rpx; margin-top: 60rpx;
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
}, },
"compileType": "miniprogram", "compileType": "miniprogram",
"libVersion": "2.6.6", "libVersion": "2.6.6",
"appid": "wx358b56af62edbde1", "appid": "wxc3b64b09b1d3dfc2",
"projectname": "7-Eleven", "projectname": "7-Eleven",
"debugOptions": { "debugOptions": {
"hidedInDevtools": [] "hidedInDevtools": []
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment