Commit 8fcc29ec authored by 华国豪's avatar 华国豪 🙄

no message

parent d9c24ce0
...@@ -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
......
...@@ -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: '同业预留占位确认'
}) })
} }
}) })
...@@ -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'>
......
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