Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
FlashMan
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
华国豪
FlashMan
Commits
8fcc29ec
Commit
8fcc29ec
authored
Oct 10, 2019
by
华国豪
🙄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
d9c24ce0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
18 deletions
+10
-18
VoucherDetails.js
pages/Voucher/VoucherDetails/VoucherDetails.js
+1
-1
SametradeZW.js
pages/product/SametradeZW/SametradeZW.js
+9
-8
SametradeZW.wxml
pages/product/SametradeZW/SametradeZW.wxml
+0
-9
No files found.
pages/Voucher/VoucherDetails/VoucherDetails.js
View file @
8fcc29ec
...
@@ -185,7 +185,7 @@ Page({
...
@@ -185,7 +185,7 @@ Page({
res
.
map
(
item
=>
{
res
.
map
(
item
=>
{
if
(
item
.
SurveyType
===
2
)
{
if
(
item
.
SurveyType
===
2
)
{
item
.
SurveyOptionsList
.
map
((
cItem
,
cIndex
)
=>
{
item
.
SurveyOptionsList
.
map
((
cItem
,
cIndex
)
=>
{
// if (cIndex === 0) {
// if (cIndex === 0) {
// cItem.IsCheckS = true
// cItem.IsCheckS = true
// } else {
// } else {
cItem
.
IsCheckS
=
false
cItem
.
IsCheckS
=
false
...
...
pages/product/SametradeZW/SametradeZW.js
View file @
8fcc29ec
...
@@ -61,9 +61,11 @@ Page({
...
@@ -61,9 +61,11 @@ Page({
//预计提成
//预计提成
bindKeyInput
:
function
(
e
){
bindKeyInput
:
function
(
e
){
let
name
=
e
.
currentTarget
.
dataset
.
name
let
name
=
e
.
currentTarget
.
dataset
.
name
this
.
setData
({
this
.
setData
({
[
name
]:
e
.
detail
.
value
[
name
]:
e
.
detail
.
value
})
})
console
.
log
(
name
,
e
.
detail
.
value
,
typeof
(
e
.
detail
.
value
))
},
},
selectionimg
:
function
(){
selectionimg
:
function
(){
...
@@ -108,12 +110,11 @@ Page({
...
@@ -108,12 +110,11 @@ Page({
TC_Price
:
this
.
data
.
Detaildata
.
B2BPrice
TC_Price
:
this
.
data
.
Detaildata
.
B2BPrice
})
})
}
}
let
ManNum
=
this
.
data
.
ManNum
,
let
ManNum
=
Number
(
this
.
data
.
ManNum
),
ChirdNum
=
this
.
data
.
ChirdNeedBedNum
+
this
.
data
.
ChirdNoNeedBedNum
,
ChirdNum
=
Number
(
this
.
data
.
ChirdNeedBedNum
+
this
.
data
.
ChirdNoNeedBedNum
),
ChirdNeedBedNum
=
this
.
data
.
ChirdNeedBedNum
,
ChirdNeedBedNum
=
Number
(
this
.
data
.
ChirdNeedBedNum
),
ChirdNoNeedBedNum
=
this
.
data
.
ChirdNoNeedBedNum
,
ChirdNoNeedBedNum
=
Number
(
this
.
data
.
ChirdNoNeedBedNum
),
BabyNum
=
this
.
data
.
BabyNum
;
BabyNum
=
Number
(
this
.
data
.
BabyNum
);
if
(
ManNum
>
0
){
if
(
ManNum
>
0
){
let
allPrice
=
(
ManNum
+
ChirdNum
)
*
this
.
data
.
Price
+
(
ChirdNeedBedNum
*
this
.
data
.
Detaildata
.
ChildNeedPrice
)
-
(
ChirdNoNeedBedNum
*
this
.
data
.
Detaildata
.
ChildNoNeedPrice
)
+
(
BabyNum
*
this
.
data
.
Detaildata
.
BabyPrice
)
+
(
BabyNum
*
this
.
data
.
Detaildata
.
BabyChargePrice
)
+
((
ManNum
+
ChirdNum
)
*
this
.
data
.
Detaildata
.
VisaPrice
)
+
((
ManNum
+
ChirdNum
)
*
this
.
data
.
Detaildata
.
OtherPrice
)
let
allPrice
=
(
ManNum
+
ChirdNum
)
*
this
.
data
.
Price
+
(
ChirdNeedBedNum
*
this
.
data
.
Detaildata
.
ChildNeedPrice
)
-
(
ChirdNoNeedBedNum
*
this
.
data
.
Detaildata
.
ChildNoNeedPrice
)
+
(
BabyNum
*
this
.
data
.
Detaildata
.
BabyPrice
)
+
(
BabyNum
*
this
.
data
.
Detaildata
.
BabyChargePrice
)
+
((
ManNum
+
ChirdNum
)
*
this
.
data
.
Detaildata
.
VisaPrice
)
+
((
ManNum
+
ChirdNum
)
*
this
.
data
.
Detaildata
.
OtherPrice
)
let
msg
=
{
let
msg
=
{
...
@@ -170,6 +171,8 @@ Page({
...
@@ -170,6 +171,8 @@ Page({
OrderForm
:
4
,
OrderForm
:
4
,
CustomerCreateBy
:
this
.
data
.
createBy
,
CustomerCreateBy
:
this
.
data
.
createBy
,
}
}
console
.
log
(
msg
)
return
//提交数据
//提交数据
let
that
=
this
;
let
that
=
this
;
let
data
=
that
.
data
.
Phonedata
.
contactNumber
;
let
data
=
that
.
data
.
Phonedata
.
contactNumber
;
...
@@ -231,7 +234,6 @@ Page({
...
@@ -231,7 +234,6 @@ Page({
let
scene
=
JSON
.
stringify
(
options
);
let
scene
=
JSON
.
stringify
(
options
);
let
obj
=
JSON
.
parse
(
scene
)
let
obj
=
JSON
.
parse
(
scene
)
if
(
obj
!==
'undefined'
)
{
if
(
obj
!==
'undefined'
)
{
let
createBy
=
obj
.
createBy
let
createBy
=
obj
.
createBy
let
tcId
=
obj
.
tcId
let
tcId
=
obj
.
tcId
let
configId
=
obj
.
configId
let
configId
=
obj
.
configId
...
@@ -262,5 +264,4 @@ Page({
...
@@ -262,5 +264,4 @@ Page({
title
:
'同业预留占位确认'
title
:
'同业预留占位确认'
})
})
}
}
})
})
pages/product/SametradeZW/SametradeZW.wxml
View file @
8fcc29ec
...
@@ -40,15 +40,6 @@
...
@@ -40,15 +40,6 @@
<text class='title_text'>填写信息</text>
<text class='title_text'>填写信息</text>
</view>
</view>
</view>
</view>
<!-- <view class='inform'>
<text class='inform_l'>报名人数</text>
<view class='form_item_right'>
<text class="form_item_right_btn" data-name='peopleNum' style='{{peopleNum===0?"color: #CCCCCC;":""}}' bindtap='numLeft'>-</text>
<input class="form_item_right_in" data-name='peopleNum' value='{{peopleNum}}' type="number" bindinput="bindKeyInput"/>
<text class="form_item_right_btn" data-name='peopleNum' bindtap='numRight'>+</text>
</view>
</view> -->
<view class='inform'>
<view class='inform'>
<text class='inform_l'>成人</text>
<text class='inform_l'>成人</text>
<view class='form_item_right'>
<view class='form_item_right'>
...
...
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