Commit dabb884a by tangjinlin

Merge branch 'znz_dev' into 'master'

Znz dev

See merge request !5
parents 00ae2888 bd55f2e8
...@@ -43,6 +43,12 @@ Page({ ...@@ -43,6 +43,12 @@ Page({
}, },
back: function () {
wx.navigateBack({
delta: 1
})
},
//选择年龄段 //选择年龄段
selectAge(e) { selectAge(e) {
let age = e.currentTarget.dataset['index'] let age = e.currentTarget.dataset['index']
......
<!--pages/ageChange/ageChange.wxml--> <!--pages/ageChange/ageChange.wxml-->
<custom-navi text="年龄选择" back="{{true}}" home="{{false}}"></custom-navi> <!-- <custom-navi text="年龄选择" back="{{true}}" home="{{false}}"></custom-navi> -->
<image class='background-image' src='/img/registerBg.jpg' mode="aspectFill"></image>
<view class="title" bindtap='back'>
<image src="/img/left1.png" style="width:40px;height:40px;margin-right:5px"></image>年龄选择
</view>
<view class='ageChange'> <view class='ageChange'>
<image src='../../img/2.jpg'></image> <image src='/img/logo1.png' mode="widthFix"></image>
<text>请选择您的孩子的年龄段</text> <text>请选择您的孩子的年龄段</text>
<view style="background:{{age==1?'#3AAB69':'#fff'}}" bindtap='selectAge' data-index="1">3~6岁</view> <view style="background:{{age==1?'#d8477f':'transparent'}};color:{{age==1?'#fff':'#d8477f'}}" 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?'#d8477f':'transparent'}};color:{{age==2?'#fff':'#d8477f'}}" bindtap='selectAge' data-index="2">7 岁以上</view>
<view style="background:{{age==0?'#3AAB69':'#fff'}}" bindtap='selectAge' data-index="0">暂不选择</view> <view style="background:{{age==0?'#d8477f':'transparent'}};color:{{age==0?'#fff':'#d8477f'}}" bindtap='selectAge' data-index="0">暂不选择</view>
<view class='button' style='border:none'> <view class='button' style='border:none;margin-top:10%;color:#fff;'>
<view style="width:100%;height:100%;background:#0D76ED;color:#fff" bindtap="updateAge">提交</view> <view style="width:100%;height:100%;background:linear-gradient(to right, #e85c6d, #fb689b);border-radius: 20px;font-size: 18px;" bindtap="updateAge">提交</view>
</view> </view>
</view> </view>
\ No newline at end of file
/* pages/ageChange/ageChange.wxss */ /* pages/ageChange/ageChange.wxss */
.ageChange>image{ .background-image {
height: 100%;
position: fixed;
width: 100%;
left: 0px;
top: 0px;
}
.title {
position: fixed;
top: 4%;
left: 5%;
display: flex;
align-items: center;
font-size: 18px;
color: #fff;
}
.ageChange {
width: 100%;
height: 100%;
position: absolute;
left: 0px;
}
.ageChange>image {
display: block; display: block;
width: 100px; width: 30%;
height: 100px; margin: 30% auto 0;
border-radius: 50%;
margin: 0 auto;
} }
.ageChange>text{
.ageChange>text {
display: block; display: block;
color: #fff;
width: 100%; width: 100%;
text-align: center; text-align: center;
font-size: 18px; font-size: 18px;
margin: 30px 0 40px; margin: 30px 0 40px;
} }
.ageChange>view{
width: 200px; .ageChange>view {
width: 50%;
height: 40px; height: 40px;
line-height: 40px; line-height: 40px;
text-align: center; text-align: center;
font-size: 16px; font-size: 18px;
margin: 15px auto; margin: 20px auto;
border: 1px solid #ccc; border: 1rpx solid #d8477f;
border-radius: 20px;
} }
\ No newline at end of file
...@@ -6,7 +6,8 @@ Page({ ...@@ -6,7 +6,8 @@ Page({
* 页面的初始数据 * 页面的初始数据
*/ */
data: { data: {
faqList:[] keyword: '',
faqList: []
}, },
/** /**
...@@ -19,8 +20,7 @@ Page({ ...@@ -19,8 +20,7 @@ Page({
/** /**
* 生命周期函数--监听页面初次渲染完成 * 生命周期函数--监听页面初次渲染完成
*/ */
onReady: function () { onReady: function () {},
},
/** /**
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
...@@ -32,8 +32,7 @@ Page({ ...@@ -32,8 +32,7 @@ Page({
/** /**
* 用户点击右上角分享 * 用户点击右上角分享
*/ */
onShareAppMessage: function () { onShareAppMessage: function () {},
},
//获取在线答疑列表 //获取在线答疑列表
getFaqList() { getFaqList() {
...@@ -42,7 +41,9 @@ Page({ ...@@ -42,7 +41,9 @@ Page({
//获取用户消息列表 //获取用户消息列表
wx.request({ wx.request({
url: app.url + 'ajax_get_faq_top_dat.php', url: app.url + 'ajax_get_faq_top_dat.php',
header: { 'content-type': 'application/json' }, header: {
'content-type': 'application/json'
},
data: { data: {
unionId: config.unionId, unionId: config.unionId,
}, },
...@@ -56,13 +57,30 @@ Page({ ...@@ -56,13 +57,30 @@ Page({
}) })
} }
}, },
fail: function (res) { }, fail: function (res) {},
complete: function (res) { }, complete: function (res) {},
}) })
}, },
keywordInput(e) {
this.setData({
keyword: e.detail.value
})
},
searchFaq() {
if (this.data.keyword == null || this.data.keyword == '') {
wx.showToast({
title: '请输入关键词',
icon: 'success',
duration: 1500
});
return;
}
},
//咨询详细页面 //咨询详细页面
faqDetail(e){ faqDetail(e) {
let faqId = e.currentTarget.dataset['index'] let faqId = e.currentTarget.dataset['index']
wx.navigateTo({ wx.navigateTo({
url: '../faqDetail/faqDetail?faqId=' + faqId, url: '../faqDetail/faqDetail?faqId=' + faqId,
...@@ -81,5 +99,11 @@ Page({ ...@@ -81,5 +99,11 @@ Page({
wx.navigateTo({ wx.navigateTo({
url: '../newFaq/newFaq', url: '../newFaq/newFaq',
}) })
} },
back: function () {
wx.navigateBack({
delta: 1
})
},
}) })
\ No newline at end of file
<!--pages/myNews/myNews.wxml--> <!--pages/myNews/myNews.wxml-->
<custom-navi text="在线答疑" back="{{true}}" home="{{true}}" ></custom-navi> <view class="topBg">
<image class='background-image' src='/img/faqTop.png' mode="widthFix"></image>
</view>
<view class="title" bindtap='back'>
<image src="/img/left1.png" style="width:40px;height:40px;margin-right:5px"></image>在线答疑
</view>
<view class="titleArea"> <view class="titleArea">
<text>亲爱的志愿者\n欢迎来到志愿者服务大厅</text> <text>亲爱的志愿者\n欢迎来到志愿者服务大厅</text>
</view> </view>
<view class="searchArea">
<text>关键词索引</text>
<input class="input" name="keyword" placeholder="搜索从这里开始" bindinput="keywordInput" placeholder-class="input_center" />
<view bindtap="searchFaq">搜索</view>
</view>
<view class='topTitle'> <view class='topTitle'>
<view class='leftLine' style="border-left: 5px solid #eb5e76;"></view> <view class='leftTitle'>
<text class="title">热门资讯</text> <view class='leftLine'></view>
<text class="hot_title">热门资讯</text>
</view>
<view class='rightTitle' bindtap='myFaq'> <view class='rightTitle' bindtap='myFaq'>
<image src="/img/rpoint.png"></image>
<text>我的咨询</text> <text>我的咨询</text>
<view></view>
</view> </view>
</view> </view>
<view class="hotFaqs"> <view class="content">
<view class="hotFaqs">
<view bindtap='faqDetail' wx:for="{{faqList}}" class="faqItem" data-index="{{item.id}}" wx:key="{{index}}"> <view bindtap='faqDetail' wx:for="{{faqList}}" class="faqItem" data-index="{{item.id}}" wx:key="{{index}}">
<view class="faqContent">
<view class="faqRow1"> <view class="faqRow1">
<view class="faqCotent">{{item.content}}</view> <view class="faqCotent">{{item.content}}</view>
<view class="faqReplycount">回复:{{item.reply_count}}</view> <view class="faqReplycount">回复:{{item.reply_count}}</view>
</view> </view>
<view class="faqRow2">最佳答案:{{item.best_detail_content}}</view> <view class="faqRow2">最佳答案:{{item.best_detail_content}}</view>
</view>
</view> </view>
</view> </view>
<view bindtap='newFaq' class="newFaqButton">立即咨询</view> <view bindtap='newFaq' class="newFaqButton">
\ No newline at end of file <view>立即咨询</view>
</view>
</view>
\ No newline at end of file
/* pages/myNews/faq.wxss */ /* pages/myNews/faq.wxss */
.background-image {
position: fixed;
width: 100%;
left: 0;
top: 0;
background: #fff;
z-index: 200;
}
.title {
position: fixed;
top: 4%;
left: 2%;
display: flex;
align-items: center;
font-size: 18px;
color: #fff;
z-index: 201;
}
.titleArea { .titleArea {
margin-top: 20px; position: fixed;
top: 12%;
width: 100%;
display: flex;
align-items: center;
justify-content: center;
z-index: 200;
}
.titleArea text {
text-align: center;
font-size: 20px; font-size: 20px;
font-weight: 500;
color: #fff; color: #fff;
background: pink; }
.searchArea {
position: fixed;
top: 30%;
width: 100%;
height: 60px;
background-color: #fff;
z-index: 190;
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
}
.searchArea text {
font-size: 16px;
font-weight: 400;
margin: 0 10px;
}
.searchArea>input {
flex: 1;
margin-right:10px;
height: 40px;
line-height: 40px;
font-size: 14px;
background: #f6f6f6;
border-radius: 30px;
text-align: center; text-align: center;
} }
.searchArea{
margin: 1%; .searchArea view {
width:98%; font-size: 16px;
white-space:nowrap; color: #fb689b;
padding: 10px; font-weight: 400;
margin: 0 10px;
}
.input_center {
text-align: center;
color: #bcbcbc;
} }
.topTitle { .topTitle {
position: static; position: fixed;
top: 38%;
width: 100%; width: 100%;
height: 30px; height: 35px;
display: flex; display: flex;
flex-direction: row; flex-direction: row;
align-items: center; align-items: center;
justify-content: space-between;
background-color: #fff;
z-index: 200;
} }
.topTitle .title { .topTitle .leftTitle {
margin-left: 10px; width: 100%;
font-size: 20px; display: flex;
font-weight: bolder; flex-direction: row;
color: #000; align-items: center;
} }
.topTitle .leftLine { .topTitle .leftTitle .leftLine {
height: 20px; height: 20px;
border-left: 5px solid #efc04c; width: 6px;
border-radius: 3px;
background-color: #ed5f77;
margin-left: 5%; margin-left: 5%;
} }
.topTitle .leftTitle .hot_title {
margin-left: 10px;
font-size: 20px;
font-weight: bolder;
color: #000;
}
.topTitle .rightTitle { .topTitle .rightTitle {
position: absolute; width: 100%;
right: 5%;
display: flex; display: flex;
flex-direction: row; flex-direction: row-reverse;
align-items: center;
margin-right: 5%;
} }
.topTitle .rightTitle text { .topTitle .rightTitle view {
margin-right: 5px; background-color: #e70012;
width: 10px;
height: 10px;
border-radius: 50%;
} }
.topTitle .rightTitle image { .topTitle .rightTitle text {
margin-top: 3px; margin-left: 10px;
margin-right: 5px; font-size: 16px;
width: 12px; font-weight: 400;
height: 12px; border-bottom: 1px solid #333333;
} }
.hotFaqs{ .content {
width:100%; width: 100%;
white-space:nowrap; height: 100%;
position: absolute;
top: 45%;
} }
.faqItem{ .hotFaqs {
width:90%; width: 100%;
margin-top: 10px;
margin-left: 0;
margin-right: 0;
padding:10px;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: space-around;
align-items: center; align-items: center;
border-radius: 5px;
border: 1rpx solid gray;
} }
.faqRow1{ .faqItem {
width:100%; width: 100%;
display: flex; margin-top: 20px;
flex-direction: row;
justify-content: space-between;
align-items: center;
}
.faqCotent{
font-size: 18px;
} }
.faqReplycount{ .faqContent {
font-size: 16px; margin: 0 3%;
padding: 3% 5%;
display: flex;
flex-direction: column;
border-radius: 10px;
box-shadow: 0 0 15px -3px rgb(0, 0, 0, 0.3);
} }
.faqRow2{ .faqRow1 {
width:100%;
display: flex; display: flex;
flex-direction: row; flex-direction: row;
justify-content: space-between; justify-content: space-between;
margin-bottom: 10px;
}
.newFaqButton {
position: fixed;
bottom: 0;
width: 100%;
display: flex;
align-items: center; align-items: center;
font-size: 16px; /* background: #fff; */
} }
.newFaqButton{ .newFaqButton view {
position: fixed; text-align: center;
bottom: 10px; margin: 0 auto;
height: 30px; width: 80%;
line-height: 30px; height: 50px;
border-radius: 15px; line-height: 50px;
background: linear-gradient(to right, #e85c6d, #fb689b); border-radius: 25px;
color: #fff; margin-bottom: 10px;
font-size: 14px; background: linear-gradient(to right, #e85c6d, #fb689b);
color: #fff;
font-size: 18px;
} }
\ No newline at end of file
<!--pages/leaderRegistered/leaderRegistered.wxml--> <!--pages/leaderRegistered/leaderRegistered.wxml-->
<custom-navi text="注册" back="{{false}}" home="{{false}}"></custom-navi> <image class='background-image' src='/img/registerBg.jpg' mode="aspectFill"></image>
<view class="title">注册</view>
<view class='leaderRegistered'> <view class='leaderRegistered'>
<image src='../../img/2.jpg'></image> <image src='/img/logo1.png' mode="widthFix"></image>
<view class='title_leaderRegistered'><text>{{leaderTitle}}领导:</text>欢迎来到志愿者平台!</view> <view class='title_leaderRegistered'>
<view class='con_leaderRegistered'> <text>{{leaderTitle}}领导</text>
<view>欢迎来到志愿者平台</view>
</view>
<view style='display:flex;justify-content: center;margin-top:80px;' class='button'>
<van-button type="default" open-type="getUserInfo" bind:getuserinfo="regist">注册</van-button>
</view> </view>
<view style='display:flex;justify-content: center;margin-top:100px;' class='button'>
<van-button type="default" open-type="getUserInfo" bind:getuserinfo="regist">注册</van-button></view>
</view> </view>
\ No newline at end of file
/* pages/leaderRegistered/leaderRegistered.wxss */ /* pages/leaderRegistered/leaderRegistered.wxss */
.leaderRegistered>image{ .background-image {
width: 100px; height: 100%;
height: 100px; position: absolute;
display: block; width: 100%;
border-radius: 50%; left: 0px;
margin: 0 auto; top: 0px;
} }
.title_leaderRegistered{
width: 75%; .title {
font-size: 18px; position: absolute;
margin: 30px auto 10px; top: 5%;
left: 5%;
font-size: 16px;
color: #fff;
} }
.title_leaderRegistered>text{
color: red; .leaderRegistered {
width: 100%;
height: 100%;
position: absolute;
left: 0px;
} }
.con_leaderRegistered{
width: 80%; .leaderRegistered>image {
margin: 0 auto; display: block;
width: 40%;
margin: 40% auto 0;
} }
.con_leaderRegistered>view{
.title_leaderRegistered {
color: #fff;
width: 75%;
font-size: 18px;
margin: 60px auto 10px;
display: flex; display: flex;
flex-direction: column;
align-items: center; align-items: center;
justify-content: center;
}
.title_leaderRegistered>text {
font-size: 14px;
font-weight: 300;
padding-bottom: 15px;
} }
.con_leaderRegistered>view input{ .title_leaderRegistered>view {
border: 1px solid #ccc; font-size: 18px;
height: 40px;
padding-left: 10px;
} }
.leaderRegistered button{
padding: 0 80px; .leaderRegistered button {
padding: 20px 130px;
width: 100%;
height: 60px;
line-height: 60px;
border-radius: 30px;
border: 0px;
background: linear-gradient(to right, #e85c6d, #fb689b);
color: #fff;
}
button>view {
font-size: 18px;
} }
<!--pages/memberChange/memberChange.wxml--> <!--pages/memberChange/memberChange.wxml-->
<custom-navi text="会员" back="{{true}}" home="{{true}}"></custom-navi> <custom-navi text="返回" back="{{true}}" home="{{true}}" bg1="#fff" bg2="#fff" bg3="#fff"></custom-navi>
<view class='memberChange'> <view class='memberChange'>
<view class='con_memberChange'> <view class='con_memberChange'>
<view class='top_memberChange'> <view class='top_memberChange'>
{{entity.title}} {{entity.title}}
</view> </view>
<view class='money_memberChange'> <view class='money_memberChange'>
金额:<text>{{entity.money}}元</text> 金额<text>{{entity.money}}元</text>
</view> </view>
<view class='huiyuan'>{{entity.comment}}</view> <view class='huiyuan'>{{entity.comment}}</view>
<view class='btn'> <view class='btn'>
<view bindtap="buy">购买</view> <view class="buy" bindtap="buy">购买</view>
<view bindtap="cancel">放弃</view> <view class="cancel" bindtap="cancel">放弃</view>
</view> </view>
</view> </view>
</view> </view>
......
/* pages/memberChange/memberChange.wxss */ /* pages/memberChange/memberChange.wxss */
.con_memberChange{ .con_memberChange {
position: fixed; position: fixed;
top: 0; top: 0;
left: 0; left: 0;
...@@ -8,38 +8,72 @@ ...@@ -8,38 +8,72 @@
margin: auto; margin: auto;
width: 260px; width: 260px;
height: 280px; height: 280px;
display: flex;
flex-direction: column;
align-items: center;
} }
.top_memberChange{
.top_memberChange {
width: 100%; width: 100%;
text-align: left; text-align: center;
font-size: 14px; font-size: 14px;
color: #333333;
font-weight: 500;
} }
.money_memberChange{
.money_memberChange {
width: 100%; width: 100%;
font-size: 14px; font-size: 18px;
margin: 20px 0;
color: #eb5e76;
font-weight: bold;
display: flex;
align-items: center;
justify-content: center;
} }
.money_memberChange>text{
margin-left: 20px; .money_memberChange text {
font-size: 18px;
margin: 20px 0;
} }
.huiyuan{
font-size: 12px; .huiyuan {
color: #a8a8a8;
font-size: 14px;
margin-bottom: 10px;
} }
.btn{
.btn {
width: 100%; width: 100%;
display: flex; display: flex;
justify-content: space-between; flex-direction: column;
margin-top: 20px!important; align-items: center;
justify-content: center;
} }
.btn>view{
width: 120px; .btn>view {
margin: 10px 0;
}
.btn>.buy {
width: 80%;
height: 30px; height: 30px;
text-align: center; text-align: center;
line-height: 30px; line-height: 30px;
border-radius: 5px; border-radius: 15px;
background: rgb(91,155,213); background: linear-gradient(to right, #e85c6d, #fb689b);
color: #fff; color: #fff;
font-size: 14px; font-size: 14px;
} }
.con_memberChange>view{
margin-top: 15px; .btn>.cancel {
width: 80%;
height: 30px;
text-align: center;
line-height: 30px;
border-radius: 15px;
background: transparent;
border: 1rpx solid #fd66a1;
color: #e85b93;
font-size: 14px;
} }
\ No newline at end of file
<!--pages/myNews/myNews.wxml--> <!--pages/myNews/myNews.wxml-->
<custom-navi text="我的咨询" back="{{true}}" home="{{true}}" ></custom-navi> <custom-navi text="我的咨询" back="{{true}}" home="{{true}}" bg1="#fff" bg2="#fff" bg3="#fff"></custom-navi>
<view class="hotFaqs"> <view class="hotFaqs">
<view bindtap='faqDetail' wx:for="{{faqList}}" class="faqItem" data-index="{{item.id}}" wx:key="{{index}}"> <view bindtap='faqDetail' wx:for="{{faqList}}" class="faqItem" data-index="{{item.id}}" wx:key="{{index}}">
......
<!--pages/familyUser/familyUser.wxml--> <!--pages/familyUser/familyUser.wxml-->
<custom-navi text="用户注册" back="{{false}}" home="{{false}}"></custom-navi> <image class='background-image' src='/img/registerBg.jpg' mode="aspectFill"></image>
<view class="title">注册</view>
<view class='familyUser'> <view class='familyUser'>
<image src='../../img/2.jpg'></image> <image src='/img/logo1.png' mode="widthFix"></image>
<text>欢迎来到志愿者平台!</text> <text>欢迎来到志愿者平台!</text>
<view style='display:flex;justify-content: center;margin-top:100px;' class='button'> <view style='display:flex;justify-content: center;margin-top:100px;' class='button'>
<van-button type="default" open-type="getUserInfo" bind:getuserinfo="regist">进入首页</van-button> <van-button type="default" open-type="getUserInfo" bind:getuserinfo="regist">进入首页</van-button>
......
/* pages/familyUser/familyUser.wxss */ /* pages/familyUser/familyUser.wxss */
.familyUser>image{ .background-image {
height: 100%;
position: absolute;
width: 100%;
left: 0px;
top: 0px;
}
.title {
position: absolute;
top: 5%;
left: 5%;
font-size: 16px;
color: #fff;
}
.familyUser {
width: 100%;
height: 100%;
position: absolute;
left: 0px;
}
.familyUser>image {
display: block; display: block;
margin-top: 20px; width: 40%;
width: 100px; margin: 40% auto 0;
height: 100px;
border-radius: 50%;
margin: 0 auto;
} }
.familyUser>text{
.familyUser>text {
display: block; display: block;
width: 100%; width: 100%;
text-align: center; text-align: center;
font-size: 18px; font-size: 18px;
margin-top: 30px; margin-top: 30px;
color: #fff;
}
.button button {
padding: 20px 110px;
width: 100%;
height: 60px;
line-height: 60px;
border-radius: 30px;
border: 0px;
background: linear-gradient(to right, #e85c6d, #fb689b);
color: #fff;
} }
\ No newline at end of file
<!--pages/socialUserRegister/socialUserRegister.wxml--> <!--pages/socialUserRegister/socialUserRegister.wxml-->
<view class='jigouRegistered'> <image class='background-image' src='/img/registerBg.jpg' mode="aspectFill"></image>
<image src='../../img/2.jpg'></image> <view class="title">注册</view>
<scroll-view class="scroll" scroll-y>
<view class='jigouRegistered'>
<view wx:if="{{upload!=1}}">
<image src='/img/logo1.png' mode="widthFix"></image>
<view class='formtable'> <view class='formtable'>
<view> <view>
<text>用户姓名:</text> <text>用户姓名:</text>
<van-cell-group> <van-cell-group>
<van-field <van-field value="{{ name }}" placeholder="请输入用户姓名" bind:change="onChangeName" border="{{false}}" />
value="{{ name }}"
placeholder="请输入用户姓名"
bind:change="onChangeName"
border="{{false}}"
/>
</van-cell-group> </van-cell-group>
</view> </view>
<view> <view>
<text>手机号码:</text> <text>手机号码:</text>
<van-cell-group> <van-cell-group>
<van-field <van-field value="{{ mobile }}" placeholder="请输入手机号码" bind:change="onChangeMobile" border="{{false}}" />
value="{{ mobile }}"
placeholder="请输入手机号码"
bind:change="onChangeMobile"
border="{{false}}"
/>
</van-cell-group> </van-cell-group>
</view> </view>
<view style='justify-content: flex-end;font-size:12px;width:280px;padding-right:30px'> <view style='justify-content: flex-end;font-size:12px;width:280px;padding-right:30px'>
<van-checkbox value="{{ isOrganization }}" shape="square" bind:change="onChangeIsOrganization" icon-size="16px"> <van-checkbox value="{{ isOrganization }}" shape="square" bind:change="onChangeIsOrganization" icon-size="16px">
</van-checkbox> </van-checkbox>
<text style='width:60px;color:#0D76ED;font-size:12px'>认证机构</text> <text style='width:60px;color:#fff;font-size:12px'>认证机构</text>
</view> </view>
<view wx:if="{{isOrganization==true}}"> <view wx:if="{{isOrganization==true}}">
<text>机构名称:</text> <text>机构名称:</text>
<van-cell-group> <van-cell-group>
<van-field <van-field value="{{ organizationTitle }}" placeholder="请输入机构名称" bind:change="onChangeOrganizationTitle" border="{{false}}" />
value="{{ organizationTitle }}"
placeholder="请输入机构名称"
bind:change="onChangeOrganizationTitle"
border="{{false}}"
/>
</van-cell-group> </van-cell-group>
</view> </view>
<view style='margin-bottom:5px' wx:if="{{isOrganization==true}}"> <view style='margin-bottom:5px' wx:if="{{isOrganization==true}}">
<text>法人姓名:</text> <text>法人姓名:</text>
<van-cell-group> <van-cell-group>
<van-field <van-field value="{{ legalPerson }}" placeholder="请输入法人姓名" bind:change="onChangeLegalPerson" border="{{false}}" />
value="{{ legalPerson }}"
placeholder="请输入法人姓名"
bind:change="onChangeLegalPerson"
border="{{false}}"
/>
</van-cell-group> </van-cell-group>
</view> </view>
<view style='margin-bottom:5px' wx:if="{{isOrganization==true}}"> <view style='margin-bottom:5px' wx:if="{{isOrganization==true}}">
<text>法人手机:</text> <text>法人手机:</text>
<van-cell-group> <van-cell-group>
<van-field <van-field value="{{ organizationContact }}" placeholder="请输入法人手机" bind:change="onChangeOrganizationContact" border="{{false}}" />
value="{{ organizationContact }}"
placeholder="请输入法人手机"
bind:change="onChangeOrganizationContact"
border="{{false}}"
/>
</van-cell-group> </van-cell-group>
</view> </view>
<view class='uploadPic' wx:if="{{uploadPic==true}}">
<view>
<text>身份证:</text><image src='{{legalPersonImgage1}}'></image><image src='{{legalPersonImgage2}}'></image>
</view>
<view>
<text>营业执照:</text><image src='{{licensenImgage}}'></image>
</view>
<view>
<text>其他资料:</text><image src='{{otherImgage}}'></image>
</view>
</view>
<view class='button'> <view class='button' wx:if="{{showRule!=true}}">
<van-button type="default" style="margin:0 auto;" open-type="getUserInfo" bind:getuserinfo="regist">注册</van-button> <van-button type="default" style="margin:0 auto;" open-type="getUserInfo" bind:getuserinfo="regist">注册</van-button>
</view> </view>
</view> </view>
</view>
<view class='surejigou' wx:if="{{showRule==true}}"> <view class='surejigou' wx:if="{{showRule==true}}">
<view class='conSurejigou'> <view class='conSurejigou'>
<text>认证机构</text> <text>认证机构</text>
<view class='content'> <view class='content'>
{{content}} {{content}}
</view> </view>
<view class='btnagreen button'><van-button type="default" style="margin:0 auto" bind:click="agree">同意</van-button></view> <view class='btnagreen button'>
<van-button type="default" style="margin:0 auto" bind:click="agree">同意</van-button>
</view>
</view> </view>
</view> </view>
<view class='upload' wx:if="{{upload==1}}"> <view class='upload' wx:if="{{upload==1}}">
<text>机构认证</text>
<view class='mainUpload'>
<view> <view>
<text>机构认证</text>
</view>
<scroll-view class="mainUpload" scroll-y>
<view class="upload_info">
<text>法人身份证:</text> <text>法人身份证:</text>
<view> <view>
<van-uploader file-list="{{ fileList }}" <view class="a_b">
max-count="1" <van-uploader file-list="{{ fileList }}" max-count="1" multiple bind:after-read="afterRead" bind:before-read="beforeRead" use-before-read="{{ true }}" bind:delete="delete" image-fit="widthFix" preview-size="150px">
multiple <van-button icon="/img/jia1.png" type="default" />
bind:after-read="afterRead" </van-uploader>
bind:before-read="beforeRead" <text style='font-weight: 500;margin-bottom:10px'>身份证反面</text>
use-before-read="{{ true }}"
bind:delete="delete"/>
<view style='font-size:12px;color:#666'>只支持.jpg格式</view> <view style='font-size:12px;color:#666'>只支持.jpg格式</view>
<van-uploader file-list="{{ fileList1 }}" </view>
max-count="1" <view class="a_b">
multiple <van-uploader file-list="{{ fileList1 }}" max-count="1" multiple bind:after-read="afterRead1" bind:before-read="beforeRead" use-before-read="{{ true }}" bind:delete="delete1" image-fit="widthFix" preview-size="150px">
bind:after-read="afterRead1" <van-button icon="/img/jia1.png" type="default" />
bind:before-read="beforeRead" </van-uploader>
use-before-read="{{ true }}" <text style='font-weight: 500;margin-bottom:10px'>身份证反面</text>
bind:delete="delete1"/>
<view style='font-size:12px;color:#666'>只支持.jpg格式</view> <view style='font-size:12px;color:#666'>只支持.jpg格式</view>
</view> </view>
<view>
<text>(身份证正面)</text>
<text>(身份证反面)</text>
</view> </view>
</view> </view>
<view class="upload_info">
<text>营业执照</text>
<view> <view>
<text>营业执照:</text> <view class="a_b">
<view> <van-uploader file-list="{{ fileList2 }}" max-count="1" multiple bind:after-read="afterRead2" bind:before-read="beforeRead" use-before-read="{{ true }}" bind:delete="delete2" image-fit="widthFix" preview-size="150px">
<van-uploader file-list="{{ fileList2 }}" <van-button icon="/img/jia1.png" type="default" />
max-count="1" </van-uploader>
multiple
bind:after-read="afterRead2"
bind:before-read="beforeRead"
use-before-read="{{ true }}"
bind:delete="delete2"/>
<view style='font-size:12px;color:#666'>只支持.jpg格式</view> <view style='font-size:12px;color:#666'>只支持.jpg格式</view>
</view> </view>
</view> </view>
<view> </view>
<view class="upload_info">
<text>其他资料:</text> <text>其他资料:</text>
<view> <view>
<van-uploader file-list="{{ fileList3 }}" <view class="a_b">
max-count="1" <van-uploader file-list="{{ fileList3 }}" max-count="1" multiple bind:after-read="afterRead3" bind:before-read="beforeRead" use-before-read="{{ true }}" bind:delete="delete3" image-fit="widthFix" preview-size="150px">
multiple <van-button icon="/img/jia1.png" type="default" />
bind:after-read="afterRead3" </van-uploader>
bind:before-read="beforeRead"
use-before-read="{{ true }}"
bind:delete="delete3"/>
<view style='font-size:12px;color:#666'>只支持.jpg格式</view> <view style='font-size:12px;color:#666'>只支持.jpg格式</view>
</view> </view>
</view> </view>
</view>
<view class='button'> <view class='button'>
<van-button type="default" style="margin:30px auto" bind:click="upload">上传</van-button> <van-button type="default" style="margin:30px auto" bind:click="upload">上传</van-button>
</view> </view>
</view> </scroll-view>
</view> </view>
<van-notify id="van-notify" /> <van-notify id="van-notify" />
</view> </view>
</scroll-view>
\ No newline at end of file
/* pages/socialUserRegister/socialUserRegister.wxss */ /* pages/socialUserRegister/socialUserRegister.wxss */
.jigouRegistered{ .background-image {
height: 100%;
position: absolute;
width: 100%; width: 100%;
left: 0px;
top: 0px;
}
.title {
position: absolute;
top: 5%;
left: 5%;
font-size: 16px;
color: #fff;
}
.jigouRegistered {
width: 100%;
height: 100%;
position: relative; position: relative;
} }
.jigouRegistered>image{
.jigouRegistered>view>image {
display: block; display: block;
width: 100px; width: 40%;
height: 100px; margin: 20% auto 70px;
border-radius: 50%;
margin: 20px auto 70px;
} }
.formtable>view{
.formtable>view {
width: 280px; width: 280px;
margin: 40px auto; margin: 40px auto;
} }
.surejigou{
.surejigou {
position: absolute; position: absolute;
top: 0; top: 0;
left: 0; left: 0;
...@@ -22,7 +40,8 @@ ...@@ -22,7 +40,8 @@
height: 100%; height: 100%;
z-index: 200; z-index: 200;
} }
.conSurejigou{
.conSurejigou {
position: absolute; position: absolute;
top: 100px; top: 100px;
left: 0; left: 0;
...@@ -35,14 +54,16 @@ ...@@ -35,14 +54,16 @@
border-radius: 10px; border-radius: 10px;
border: 1px solid #ccc; border: 1px solid #ccc;
} }
.conSurejigou>text{
.conSurejigou>text {
display: block; display: block;
width: 100%; width: 100%;
text-align: center; text-align: center;
font-size: 16px; font-size: 16px;
margin-top: 30px margin-top: 30px
} }
.btnagreen{
.btnagreen {
position: absolute; position: absolute;
bottom: 20px; bottom: 20px;
left: 0; left: 0;
...@@ -50,69 +71,115 @@ ...@@ -50,69 +71,115 @@
display: flex; display: flex;
justify-content: center; justify-content: center;
} }
.van-button{
height: 30px!important; .van-button {
height: 30px !important;
} }
.content{
.content {
width: 90%; width: 90%;
margin: 40px auto; margin: 40px auto;
} }
.upload{
position: absolute; .upload {
position: relative;
top: 0; top: 0;
left: 0; left: 0;
width: 100%; width: 100%;
height: 100%; height: 100%;
background: #fff; background: #fff;
z-index: 200;
} }
.upload>text{
.upload>view {
position: fixed;
display: block; display: block;
top: 0;
left: 0;
width: 100%; width: 100%;
height: 30px; height: 8%;
line-height: 30px; background: #fff;
text-align: center; z-index: 200;
}
.upload>view>text {
position: fixed;
display: block;
top: 5%;
left: 5%;
font-size: 16px; font-size: 16px;
border: 1px solid #ccc;
} }
.mainUpload{
width: 90%; .mainUpload {
margin: 20px auto 0; position: absolute;
top: 0;
width: 100%;
height: 100%;
background: #fff;
margin: 20% auto 0;
} }
.mainUpload>view{
.mainUpload .upload_info {
display: flex; display: flex;
flex-direction: column;
margin-bottom: 40px;
} }
.mainUpload>view>text{
display: block; .mainUpload .upload_info text {
width: 100px; font-weight: 600;
text-align: right; padding-left: 5%;
font-size: 14px;
}
.mainUpload>view>view{
width: 90px;
} }
.mainUpload>view>view>text{
display: block; .mainUpload .upload_info view {
font-size: 14px; display: flex;
color: #4F4F4F; flex-direction: row;
height: 120px; justify-content: space-between;
} }
.uploadPic>view{
width: 100%; .upload_info view .a_b {
display: flex; display: flex;
width: 50%;
flex-direction: column;
align-items: center; align-items: center;
height: 40px; justify-content: center;
flex-wrap: wrap;
margin-bottom: 10px;
} }
.uploadPic>view>text{
width: 100px; .upload_info view .a_b button {
text-align: right; padding: 50px 60px;
font-size: 16px; font-size: 35px;
margin-right: 5px box-shadow: 0 0 15px 0px rgba(0, 0, 0, 0.1);
margin: 15px;
} }
.uploadPic>view>image{
width: 60px; .upload_info view .a_b .van-uploader__preview {
height: 34px; width: 100%;
margin-left: 20px; margin: 0;
}
.button button {
padding: 20px 110px;
width: 100%;
height: 60px;
line-height: 60px;
border-radius: 30px;
border: 0px;
background: linear-gradient(to right, #e85c6d, #fb689b);
color: #fff;
}
.scroll {
position: absolute;
top: 0;
width: 100%;
height: 100%;
}
.scroll .button {
width: 80%;
padding-left: 10%;
}
.formtable view text {
color: #fff;
font-weight: 300;
font-size: 16px;
} }
\ 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