Commit 257793ba authored by 黄奎's avatar 黄奎

多少人

parent d7d33b0c
...@@ -66,9 +66,9 @@ ...@@ -66,9 +66,9 @@
<text class="school">选择就读学校</text> <text class="school">选择就读学校</text>
</text> </text>
</view> </view>
<view class="search"> <!-- <view class="search">
<u-search placeholder="请输入名称" v-model="keyword"></u-search> <u-search placeholder="请输入名称" v-model="keyword"></u-search>
</view> </view> -->
<scroll-view scroll-y="true" style="height:100%;"> <scroll-view scroll-y="true" style="height:100%;">
<view class="list" :class="[actuve==i?'list2':'']" v-for="(item, i) in schoollist" :key="i" <view class="list" :class="[actuve==i?'list2':'']" v-for="(item, i) in schoollist" :key="i"
@click="masklist(item.Content,i)"> @click="masklist(item.Content,i)">
...@@ -103,9 +103,9 @@ ...@@ -103,9 +103,9 @@
<text class="school">选择校区</text> <text class="school">选择校区</text>
</text> </text>
</view> </view>
<view class="search"> <!-- <view class="search">
<u-search placeholder="请输入名称" v-model="keyword"></u-search> <u-search placeholder="请输入名称" v-model="keyword"></u-search>
</view> </view> -->
<scroll-view scroll-y="true" style="height:100%;"> <scroll-view scroll-y="true" style="height:100%;">
<view class="list" :class="[actuve2==i?'list2':'']" v-for="(item, i) in campus" :key="i" <view class="list" :class="[actuve2==i?'list2':'']" v-for="(item, i) in campus" :key="i"
@click="masklist2(item,i)"> @click="masklist2(item,i)">
...@@ -192,14 +192,14 @@ ...@@ -192,14 +192,14 @@
that.requestJJSWAdmin(testCmd, postMsg, that.requestJJSWAdmin(testCmd, postMsg,
(res) => { (res) => {
if (res.data.Code == 1) { if (res.data.Code == 1) {
uni.showToast({ // uni.showToast({
title: '提交成功', // title: '提交成功',
icon: 'exception', // icon: 'exception',
duration: 2000 // duration: 2000
}); // });
uni.navigateTo({ uni.navigateBack({
url: 'bankcard' delta: 1
}) });
} else { } else {
uni.showToast({ uni.showToast({
title: res.data.Message, title: res.data.Message,
......
...@@ -1093,7 +1093,7 @@ ...@@ -1093,7 +1093,7 @@
.teacher { .teacher {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; /* align-items: center; */
margin-bottom: 50rpx; margin-bottom: 50rpx;
} }
...@@ -1115,13 +1115,13 @@ ...@@ -1115,13 +1115,13 @@
} }
.teacher5 { .teacher5 {
color: #999; /* color: #999;
font-size: 20rpx; font-size: 20rpx; */
overflow: hidden; /* overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
display: -webkit-box; display: -webkit-box;
-webkit-line-clamp: 1; -webkit-line-clamp: 1;
-webkit-box-orient: vertical -webkit-box-orient: vertical */
} }
.introduce-box { .introduce-box {
......
...@@ -3,9 +3,20 @@ ...@@ -3,9 +3,20 @@
<!-- @click="chosenAddress(ds.address.id)" --> <!-- @click="chosenAddress(ds.address.id)" -->
<view class="add-box" > <view class="add-box" >
<!-- <view v-if="address.province && address.province != ''" class="add-info"> --> <!-- <view v-if="address.province && address.province != ''" class="add-info"> -->
<view v-if="address.province && address.province != ''" class="add-info" style="margin-top: 39px;"> <view v-if="address.province && address.province != ''" class="add-info" >
<!-- <view class="address">{{ address.province + address.city + address.district }}</view> --> <!-- <view class="address">{{ address.province + address.city + address.district }}</view> -->
<view v-if="namelist&&namelist.length>0" class="area" @click="mask()">{{Thename}}</view> <view v-if="namelist&&namelist.length>0" class="area">
<view class="name-top">
<view class="mask-lit22"
:style="{ 'background-color': mc }">{{Thename.substr(0,1)}}
</view>
<view class="switch-box1" @click="mask()">
<view class="switch-box2">{{Thename}}</view>
<view class="switch-box3" >点击切换学员</view>
</view>
</view>
</view>
<view v-if="namelist.length<0" class="area"@click="chosenAddress()">请添加学员</view> <view v-if="namelist.length<0" class="area"@click="chosenAddress()">请添加学员</view>
<view class="address"> <view class="address">
<!-- 切换学员 --> <!-- 切换学员 -->
...@@ -436,9 +447,12 @@ ...@@ -436,9 +447,12 @@
} }
this.requestJJSWAdmin(testCmd, postMsg, this.requestJJSWAdmin(testCmd, postMsg,
(res) => { (res) => {
this.namelist = res.data.Data if(res.data.Data.length>0) {
this.Thename = res.data.Data[0].StuName this.namelist = res.data.Data
this.JJSWStuId = res.data.Data[0].StuId this.Thename = res.data.Data[0].StuName
this.JJSWStuId = res.data.Data[0].StuId
}
} }
); );
}, },
...@@ -492,7 +506,7 @@ ...@@ -492,7 +506,7 @@
}); });
return; return;
} }
if(that.JJSWStuId=='') { if(that.JJSWStuId==''||that.Thename=='') {
this.$refs.uToast.show({ this.$refs.uToast.show({
title: '请添加学员!', title: '请添加学员!',
type: 'warning' type: 'warning'
...@@ -506,7 +520,8 @@ ...@@ -506,7 +520,8 @@
complete(res) { complete(res) {
that.submitOrder = false; that.submitOrder = false;
let form = {}; let form = {};
form.Consignee = that.adressInfo.Consignee; // form.Consignee = that.adressInfo.Consignee;
form.Consignee = that.Thename;
form.Mobile = that.adressInfo.Mobile; form.Mobile = that.adressInfo.Mobile;
form.Province = that.adressInfo.Province; form.Province = that.adressInfo.Province;
form.City = that.adressInfo.City; form.City = that.adressInfo.City;
...@@ -812,6 +827,29 @@ ...@@ -812,6 +827,29 @@
</script> </script>
<style> <style>
.mask-lit22{
width: 50rpx;
height: 50rpx;
display: flex;
justify-content: center;
align-items: center;
font-size: 30rpx;
border-radius: 50%;
text-align: center;
line-height: 40rpx;
color: #FFF;
margin-right: 20rpx;
}
.switch-box2{
font-size: 25rpx;
}
.switch-box3{
font-size: 18rpx;
color: #999;
}
.name-top{
display: flex;
}
.mask-lit { .mask-lit {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
......
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