Commit 6c435f41 authored by wangxuelai's avatar wangxuelai

'最新代码'

parent d7f53228
<!-- 学员加入校区 校区层面 -->
<view class="container">
<view class="instro-box">
<view class="instro-item">
<view class="item-label">学校名称:</view>
<view class="item-content">{{schoolDetail.title}}</view>
</view>
</view>
<view class="form-box">
<view class="form-item">
<input type="text" class="form-input" maxlength="20" bindinput="nameInput" placeholder-class="placeholderclass" value="{{params.name}}" placeholder="输入姓名"/>
</view>
</view>
<view class="form-box">
<view class="form-item">
<view class="left">性别</view>
<view class="right">
<view class="radio-item {{params.gender == item.value? 'active':''}}" wx:for="{{genderArr}}" wx:key="" data-value="{{item.value}}" bindtap="selectGender">
<image class="icon-checkbox" src="{{imageRoot}}2c/common/radioactive2.png?{{imageVersion}}" wx:if="{{params.gender==item.value}}"></image>
<image class="icon-checkbox" src="{{imageRoot}}2b/common/radiono.png?{{imageVersion}}" wx:else></image>
<view class="radio-title">{{item.title}}</view>
</view>
</view>
</view>
</view>
<view class="form-box">
<view class="form-item">
<input type="number" class="form-input" bindinput="mobileInput" placeholder-class="placeholderclass" value="{{params.mobile}}" placeholder="输入手机号" maxlength="11"/>
<button class="btn-getcode" bindtap="sendVerify" disabled="{{hasSend || params.mobile.length<11}}">{{hasSend ? countdownTime + '秒后重新获取': '获取验证码'}}</button>
</view>
<view class="form-item">
<input type="number" class="form-input" maxlength="4" bindinput="codeInput" placeholder-class="placeholderclass" value="{{params.code}}" placeholder="输入验证码" />
</view>
</view>
<view class="form-box">
<picker class="form-item" mode="date" fields="day" value="" start="{{range_start}}" end="{{range_end}}" bindchange="bindDateChange">
<input type="text" class="form-input" bindinput="psdInput" placeholder-class="placeholderclass" value="{{params.birthday}}" placeholder="选择生日" disabled style="width: 700rpx;"/>
</picker>
</view>
<form bindsubmit="studentAddSumbit" report-submit="true">
<button class="form-btn" form-type="submit">完成报名</button>
</form>
<guidecollection/>
</view>
\ No newline at end of file
/* src/pages/signup/index.wxss */
.instro-box{
width: 100%;
position: relative;
border-bottom: 16rpx solid #F7F7F9;
padding: 10rpx 0 25rpx
}
.instro-box .instro-item{
display: flex;
align-items: flex-start;
line-height: 31rpx;
color: #575757;
font-size: 24rpx;
padding: 13rpx 24rpx;
font-weight: bold;
}
.instro-box .instro-item .item-label{
color: #575757;
white-space:nowrap;
}
.instro-box .instro-item .item-content{
color: #000;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.form-box{
width: 100%;
position: relative;
border-bottom: 16rpx solid #F7F7F9;
}
.form-item{
position: relative;
display: flex;
align-items: center;
justify-content: space-between;
height: 100rpx;
padding: 0 25rpx;
}
.form-item::after{
content: '';
width: 100%;
height: 1px;
background: rgba(0,0,0,.05);
position: absolute;
left: 0;
bottom: 0;
transform: scaleY(.5);
}
.form-item:last-of-type::after{
display: none;
}
.placeholderclass{
color: rgba(0,0,0,.6);
font-size: 24rpx;
}
.form-item .btn-getcode{
font-size: 24rpx;
border-radius: 10rpx;
height: 60rpx;
color: #000;
background: #FFD85C;
padding: 0;
margin: 0;
display: flex;
align-items: center;
justify-content: center;
padding: 0 15rpx;
}
.form-item .btn-getcode-default{
color: #000;
background: #FFD85C;
}
.form-item .form-input{
width: 500rpx;
}
.form-btn{
width: 414rpx;
height: 70rpx;
background:#FFD85C;
border-radius:35px;
font-size: 30rpx;
color: #000;
font-weight: 500;
margin-top: 237rpx;
display: flex;
align-items: center;
justify-content: center;
}
/* 性别单独设置 */
.left{
color: rgba(0,0,0,.6);
font-size: 24rpx;
}
.right{
display: flex;
}
.radio-item{
margin-left: 47rpx;
display: flex;
align-items: center;
}
.radio-item:first-of-type{
margin-left: 0;
}
.radio-item .icon-checkbox{
width: 36rpx;
height: 36rpx;
position: relative;
margin-right: 20rpx;
}
.radio-item .radio-title{
color: #8C8C8C;
font-size: 26rpx;
}
\ No newline at end of file
/* src/pages/signup/index.wxss */
.instro-box{
width: 100%;
position: relative;
border-bottom: 16rpx solid #F7F7F9;
padding: 10rpx 0 25rpx;
}
.instro-box .instro-item{
display: flex;
align-items: flex-start;
line-height: 31rpx;
color: #575757;
font-size: 24rpx;
padding: 13rpx 24rpx;
font-weight: bold;
}
.instro-box .instro-item .item-label{
color: #575757;
white-space:nowrap;
}
.instro-box .instro-item .item-content{
color: #000;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.form-box{
width: 100%;
position: relative;
border-bottom: 16rpx solid #F7F7F9;
}
.form-item{
position: relative;
display: flex;
align-items: center;
justify-content: space-between;
height: 100rpx;
padding: 0 25rpx;
}
.form-item::after{
content: '';
width: 100%;
height: 1px;
background: rgba(0,0,0,.05);
position: absolute;
left: 0;
bottom: 0;
transform: scaleY(.5);
}
.form-item:last-of-type::after{
display: none;
}
.placeholderclass{
color: rgba(0,0,0,.6);
font-size: 24rpx;
}
.form-item .btn-getcode{
font-size: 24rpx;
border-radius: 10rpx;
height: 60rpx;
color: #000;
background: #FFD85C;
padding: 0;
margin: 0;
display: flex;
align-items: center;
justify-content: center;
padding: 0 15rpx;
}
.form-item .btn-getcode-default{
color: #000;
background: #FFD85C;
}
.form-item .form-input{
width: 500rpx;
}
.form-btn{
width: 414rpx;
height: 70rpx;
background:#FFD85C;
border-radius:35px;
font-size: 30rpx;
color: #000;
font-weight: 500;
margin-top: 237rpx;
display: flex;
align-items: center;
justify-content: center;
}
/* 性别单独设置 */
.left{
color: rgba(0,0,0,.6);
font-size: 24rpx;
}
.right{
display: flex;
}
.radio-item{
margin-left: 47rpx;
display: flex;
align-items: center;
}
.radio-item:first-of-type{
margin-left: 0;
}
.radio-item .icon-checkbox{
width: 36rpx;
height: 36rpx;
position: relative;
margin-right: 20rpx;
}
.radio-item .radio-title{
color: #8C8C8C;
font-size: 26rpx;
}
\ No newline at end of file
<!-- 学员加入校区 校区层面 -->
<view class="container">
<view class="instro-box">
<view class="instro-item">
<view class="item-label">学校名称:</view>
<view class="item-content">{{schoolDetail.title}}</view>
</view>
</view>
<view class="form-box">
<view class="form-item">
<input type="text" class="form-input" maxlength="20" bindinput="nameInput" placeholder-class="placeholderclass" value="{{params.name}}" placeholder="输入姓名"/>
</view>
</view>
<view class="form-box">
<view class="form-item">
<view class="left">性别</view>
<view class="right">
<view class="radio-item {{params.gender == item.value? 'active':''}}" wx:for="{{genderArr}}" wx:key="" data-value="{{item.value}}" bindtap="selectGender">
<image class="icon-checkbox" src="{{imageRoot}}2c/common/radioactive2.png?{{imageVersion}}" wx:if="{{params.gender==item.value}}"></image>
<image class="icon-checkbox" src="{{imageRoot}}2b/common/radiono.png?{{imageVersion}}" wx:else></image>
<view class="radio-title">{{item.title}}</view>
</view>
</view>
</view>
</view>
<view class="form-box">
<view class="form-item">
<input type="number" class="form-input" bindinput="mobileInput" placeholder-class="placeholderclass" value="{{params.mobile}}" placeholder="输入手机号" maxlength="11"/>
<button class="btn-getcode" bindtap="sendVerify" disabled="{{hasSend || params.mobile.length<11}}">{{hasSend ? countdownTime + '秒后重新获取': '获取验证码'}}</button>
</view>
<view class="form-item">
<input type="number" class="form-input" maxlength="4" bindinput="codeInput" placeholder-class="placeholderclass" value="{{params.code}}" placeholder="输入验证码" />
</view>
</view>
<view class="form-box">
<picker class="form-item" mode="date" fields="day" value="" start="{{range_start}}" end="{{range_end}}" bindchange="bindDateChange">
<input type="text" class="form-input" bindinput="psdInput" placeholder-class="placeholderclass" value="{{params.birthday}}" placeholder="选择生日" disabled style="width: 700rpx;"/>
</picker>
</view>
<form bindsubmit="studentAddSumbit" report-submit="true">
<button class="form-btn" form-type="submit">完成报名</button>
</form>
</view>
\ No newline at end of file
export default {
imageRoot: 'https://cdn.img.shangjiadao.cn/qingxiao/daka/images/',
host: 'https://qxapi.qingxiao.online/daka',
host2: 'https://wx.m.shangjiadao.cn',
// host: 'https://qxapi.qingxiao.online/daka',
// host2: 'https://wx.m.shangjiadao.cn',
storageVersion: '4.0',
imageVersion: '20191017',
// host: 'https://clock.wp53.cn',
// host2: 'https://test.wp53.cn',
host: 'https://clock.wp53.cn',
host2: 'https://test.wp53.cn',
appId: 'wxc1246ea029394785',
miniProgram: {
......
......@@ -30,14 +30,14 @@ function memberIntegral (data){
errorresolve: 2,
})
}
function memberMark (data) {
return wxRequest({
role: '2b',
url: apis.business.circleMember.memberMark,
data,
method: 'POST',
errorresolve: 1,
})
function memberMark(data) {
return wxRequest({
role: '2b',
url: apis.business.circleMember.memberMark,
data,
method: 'POST',
errorresolve: 1,
})
}
// 修改学员昵称
function memberRemark (data) {
......@@ -77,15 +77,6 @@ function erpStudentAdjust(data) {
errorresolve: 1,
})
}
function memberMark(data) {
return wxRequest({
role: '2b',
url: apis.business.circleMember.memberMark,
data,
method: 'POST',
errorresolve: 1,
})
}
// 毕业
function studentgraduate(data) {
return wxRequest({
......
......@@ -47,9 +47,17 @@ function formIdCreate ({formId}) {
})
}
// function updateUserinfo(data) {
// return wxRequest({
// url: apis.customer.common.updateUserinfo,
// data,
// method: 'POST',
// errorresolve: 1,
// })
// }
function updateUserinfo(data) {
return wxRequest({
url: apis.customer.common.updateUserinfo,
url: apis.business.common.updateUserinfo,
data,
method: 'POST',
errorresolve: 1,
......@@ -129,14 +137,6 @@ function generateCustomerQrcode (data) {
errorresolve: 1,
})
}
function updateUserinfo(data) {
return wxRequest({
url: apis.business.common.updateUserinfo,
data,
method: 'POST',
errorresolve: 1,
})
}
function updateUserByOpenId(data) {
return wxRequest({
url: apis.business.common.updateUserByOpenId,
......
......@@ -13,6 +13,6 @@ function getTotalList (data) {
}
export {
getTotalList,
getWeekList,
getDailyList
// getWeekList,
// getDailyList
}
\ No newline at end of file
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