Commit 4d1ce9dc authored by 黄奎's avatar 黄奎

订单页修改

parent 414d25dc
<template> <template>
<view class="ordersubmit"> <view class="ordersubmit">
<!-- @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" > <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"> <view v-if="namelist&&namelist.length>0" class="area">
<view class="name-top"> <view class="name-top">
<view class="mask-lit22" <view class="mask-lit22" :style="{ 'background-color': mc }">{{Thename.substr(0,1)}}
:style="{ 'background-color': mc }">{{Thename.substr(0,1)}}
</view> </view>
<view class="switch-box1" @click="mask()"> <view class="switch-box1" @click="mask()">
<view class="switch-box2">{{Thename}}</view> <view class="switch-box2">{{Thename}}</view>
<view class="switch-box3" >点击切换学员</view> <view class="switch-box3">点击切换学员</view>
</view> </view>
</view> </view>
</view> </view>
<view v-if="namelist.length<0" class="area"@click="chosenAddress()">请添加学员</view>
<view class="address"> <view class="address">
<!-- 切换学员 --> <!-- 切换学员 -->
<!-- <text style="margin-right: 10px;">{{ address.name }}</text> <!-- <text style="margin-right: 10px;">{{ address.name }}</text>
<text>{{ address.mobile }}</text --> <text>{{ address.mobile }}</text -->
</view> </view>
</view> </view>
<!-- <view v-else class="add-info"> <view v-else class="add-info">
<span style="position: relative;top: 16rpx;">请选择</span> <view @click="chosenAddress()">请添加学员</view>
</view> --> </view>
<view class="arrow" @click="chosenAddress()"> <view class="arrow" @click="chosenAddress()">
<u-icon name="arrow" size="32" color="#444"></u-icon> <u-icon name="arrow" size="32" color="#444"></u-icon>
</view> </view>
...@@ -334,13 +333,12 @@ ...@@ -334,13 +333,12 @@
data() { data() {
return { return {
isAlipay: 2, isAlipay: 2,
JJSWStuId:"", JJSWStuId: "",
Thename2:'', Thename2: '',
u:{}, u: {},
Thename: '姓名', Thename: '姓名',
actuve: 0, actuve: 0,
namelist: [ namelist: [],
],
show: false, show: false,
address_enable: '', address_enable: '',
payExit: false, payExit: false,
...@@ -446,13 +444,13 @@ ...@@ -446,13 +444,13 @@
methods: { methods: {
// 学员列表 // 学员列表
studentslist() { studentslist() {
let testCmd='/api/WeChatPublic/GetStuList' let testCmd = '/api/WeChatPublic/GetStuList'
let postMsg = { let postMsg = {
UnionId: this.u.Unoinid UnionId: this.u.Unoinid
} }
this.requestJJSWAdmin(testCmd, postMsg, this.requestJJSWAdmin(testCmd, postMsg,
(res) => { (res) => {
if(res.data.Data.length>0) { if (res.data.Data.length > 0) {
this.namelist = res.data.Data this.namelist = res.data.Data
this.Thename = res.data.Data[0].StuName this.Thename = res.data.Data[0].StuName
this.JJSWStuId = res.data.Data[0].StuId this.JJSWStuId = res.data.Data[0].StuId
...@@ -515,7 +513,7 @@ ...@@ -515,7 +513,7 @@
}); });
return; return;
} }
if(that.JJSWStuId==''||that.Thename=='') { if (that.JJSWStuId == '' || that.Thename == '') {
this.$refs.uToast.show({ this.$refs.uToast.show({
title: '请添加学员!', title: '请添加学员!',
type: 'warning' type: 'warning'
...@@ -836,7 +834,7 @@ ...@@ -836,7 +834,7 @@
</script> </script>
<style> <style>
.determine-box{ .determine-box {
margin: auto; margin: auto;
height: 80rpx; height: 80rpx;
font-size: 28rpx; font-size: 28rpx;
...@@ -845,6 +843,7 @@ ...@@ -845,6 +843,7 @@
align-items: center; align-items: center;
margin-top: 50rpx; margin-top: 50rpx;
} }
.determine-box2 { .determine-box2 {
display: flex; display: flex;
justify-content: center; justify-content: center;
...@@ -854,7 +853,8 @@ ...@@ -854,7 +853,8 @@
color: #fff; color: #fff;
height: 80rpx; height: 80rpx;
} }
.mask-lit22{
.mask-lit22 {
width: 50rpx; width: 50rpx;
height: 50rpx; height: 50rpx;
display: flex; display: flex;
...@@ -867,16 +867,20 @@ ...@@ -867,16 +867,20 @@
color: #FFF; color: #FFF;
margin-right: 20rpx; margin-right: 20rpx;
} }
.switch-box2{
.switch-box2 {
font-size: 25rpx; font-size: 25rpx;
} }
.switch-box3{
.switch-box3 {
font-size: 18rpx; font-size: 18rpx;
color: #999; color: #999;
} }
.name-top{
.name-top {
display: flex; 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