sz-mx-cabin-yjb
Advanced tools
Comparing version 0.0.29 to 0.0.30
@@ -158,2 +158,5 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
for (var key in values) { | ||
console.log('let key in values)', values); | ||
console.log('let key in values)', values[key].type, values[key].type === 'singleSelect'); | ||
if (isMobile() && values[key] && values[key].type === 'singleSelect') { | ||
@@ -163,2 +166,4 @@ values[key] = values[key][0]; | ||
console.log('let key in values)', values[key].type, values[key].type === 'inputNumber'); | ||
if (isMobile() && values[key] && values[key].type === 'inputNumber') { | ||
@@ -199,2 +204,3 @@ values[key] = Number(values[key]); | ||
console.log('结束循环', values); | ||
var newarr = JSON.parse(sessionStorage.getItem('data')); | ||
@@ -217,2 +223,5 @@ var newData = {}; | ||
for (var formkey in newData[_key]) { | ||
console.log('let formkey in newData[key] newarr', newarr, '--', newData[_key]); | ||
console.log('let formkey in newData[key] newarr', attrs[_key][formkey].type === 'singleSelect', '-', attrs[_key][formkey].type === 'inputNumber'); | ||
if (isMobile() && attrs[_key][formkey] && attrs[_key][formkey].type === 'singleSelect') { | ||
@@ -265,2 +274,3 @@ formdata[formkey] = newData[_key][formkey][0]; | ||
newdata[_key] = formdata; | ||
console.log('结束循环22222', formdata); | ||
} | ||
@@ -267,0 +277,0 @@ } |
@@ -179,2 +179,5 @@ "use strict"; | ||
for (var key in values) { | ||
console.log('let key in values)', values); | ||
console.log('let key in values)', values[key].type, values[key].type === 'singleSelect'); | ||
if ((0, _NumberUtil.isMobile)() && values[key] && values[key].type === 'singleSelect') { | ||
@@ -184,2 +187,4 @@ values[key] = values[key][0]; | ||
console.log('let key in values)', values[key].type, values[key].type === 'inputNumber'); | ||
if ((0, _NumberUtil.isMobile)() && values[key] && values[key].type === 'inputNumber') { | ||
@@ -220,2 +225,3 @@ values[key] = Number(values[key]); | ||
console.log('结束循环', values); | ||
var newarr = JSON.parse(sessionStorage.getItem('data')); | ||
@@ -238,2 +244,5 @@ var newData = {}; | ||
for (var formkey in newData[_key]) { | ||
console.log('let formkey in newData[key] newarr', newarr, '--', newData[_key]); | ||
console.log('let formkey in newData[key] newarr', attrs[_key][formkey].type === 'singleSelect', '-', attrs[_key][formkey].type === 'inputNumber'); | ||
if ((0, _NumberUtil.isMobile)() && attrs[_key][formkey] && attrs[_key][formkey].type === 'singleSelect') { | ||
@@ -286,2 +295,3 @@ formdata[formkey] = newData[_key][formkey][0]; | ||
newdata[_key] = formdata; | ||
console.log('结束循环22222', formdata); | ||
} | ||
@@ -288,0 +298,0 @@ } |
{ | ||
"name": "sz-mx-cabin-yjb", | ||
"version": "0.0.29", | ||
"version": "0.0.30", | ||
"description": "reactCabin", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
1216937
26237