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>
</view> </view>
<view class="pay"> <view class="pay">
<view>支付方式</view> <view>支付方式</view>
<view style="text-align: right;">在线支付</view> <view style="text-align: right;">在线支付</view>
...@@ -292,7 +291,7 @@ ...@@ -292,7 +291,7 @@
<view class="mask-down"> <view class="mask-down">
<view class="mask-down2">切换学员</view> <view class="mask-down2">切换学员</view>
<view @click="cloGood()"></view> <view @click="cloGood()"></view>
<u-icon name="cross" color="#9F9F9F" @click="cloGood()" size="40"> </u-icon> <u-icon name="cross" color="#9F9F9F" @click="cloGood()" size="40"> </u-icon>
</view> </view>
<scroll-view scroll-y="true" style="height: 500rpx;"> <scroll-view scroll-y="true" style="height: 500rpx;">
<view> <view>
...@@ -300,7 +299,7 @@ ...@@ -300,7 +299,7 @@
<view> <view>
<text class="mask-lit2" <text class="mask-lit2"
:style="{ 'background-color': mc }">{{item.StuName.substr(0,1)}}</text> :style="{ 'background-color': mc }">{{item.StuName.substr(0,1)}}</text>
<text :class="[actuve==i?'mask-lit3':'mask-lit33']">{{item.StuName}}</text> <text :class="[actuve==i?'mask-lit3':'mask-lit33']">{{item.StuName}}</text>
</view> </view>
<view v-if="actuve==i"> <view v-if="actuve==i">
...@@ -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,
...@@ -413,7 +411,7 @@ ...@@ -413,7 +411,7 @@
}; };
}, },
onLoad(option) { onLoad(option) {
this.u = uni.getStorageSync('mall_UserInfo') this.u = uni.getStorageSync('mall_UserInfo')
if (option.goods) { if (option.goods) {
this.formData.list[0].goods_list = JSON.parse(decodeURIComponent(option.goods)); this.formData.list[0].goods_list = JSON.parse(decodeURIComponent(option.goods));
} }
...@@ -446,18 +444,18 @@ ...@@ -446,18 +444,18 @@
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,15 +834,16 @@ ...@@ -836,15 +834,16 @@
</script> </script>
<style> <style>
.determine-box{ .determine-box {
margin: auto; margin: auto;
height: 80rpx; height: 80rpx;
font-size: 28rpx; font-size: 28rpx;
display: flex; display: flex;
justify-content: center; justify-content: center;
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,29 +853,34 @@ ...@@ -854,29 +853,34 @@
color: #fff; color: #fff;
height: 80rpx; height: 80rpx;
} }
.mask-lit22{
.mask-lit22 {
width: 50rpx; width: 50rpx;
height: 50rpx; height: 50rpx;
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
font-size: 30rpx; font-size: 30rpx;
border-radius: 50%; border-radius: 50%;
text-align: center; text-align: center;
line-height: 40rpx; line-height: 40rpx;
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