Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mallapp
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
viitto
mallapp
Commits
4d1ce9dc
Commit
4d1ce9dc
authored
Oct 13, 2022
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
订单页修改
parent
414d25dc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
55 additions
and
51 deletions
+55
-51
order-submit2.vue
pages/order-submit/order-submit2.vue
+55
-51
No files found.
pages/order-submit/order-submit2.vue
View file @
4d1ce9dc
<
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
:
80
rpx
;
height
:
80
rpx
;
font-size
:
28
rpx
;
font-size
:
28
rpx
;
display
:
flex
;
display
:
flex
;
justify-content
:
center
;
justify-content
:
center
;
align-items
:
center
;
align-items
:
center
;
margin-top
:
50
rpx
;
margin-top
:
50
rpx
;
}
}
.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
:
80
rpx
;
height
:
80
rpx
;
}
}
.mask-lit22
{
.mask-lit22
{
width
:
50
rpx
;
width
:
50
rpx
;
height
:
50
rpx
;
height
:
50
rpx
;
display
:
flex
;
display
:
flex
;
justify-content
:
center
;
justify-content
:
center
;
align-items
:
center
;
align-items
:
center
;
font-size
:
30
rpx
;
font-size
:
30
rpx
;
border-radius
:
50%
;
border-radius
:
50%
;
text-align
:
center
;
text-align
:
center
;
line-height
:
40
rpx
;
line-height
:
40
rpx
;
color
:
#FFF
;
color
:
#FFF
;
margin-right
:
20
rpx
;
margin-right
:
20
rpx
;
}
}
.switch-box2
{
.switch-box2
{
font-size
:
25
rpx
;
font-size
:
25
rpx
;
}
}
.switch-box3
{
.switch-box3
{
font-size
:
18
rpx
;
font-size
:
18
rpx
;
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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment