| xqd
@@ -91,6 +91,7 @@
|
|
|
data_single = data_single.replace(/</g,'\<');
|
|
|
data_single = data_single.replace(/>/g,'\>');
|
|
|
var chose = JSON.parse(data_single);
|
|
|
+ console.log(chose)
|
|
|
|
|
|
|
|
|
var data_combo = "{{$data_combo}}";
|
| xqd
@@ -98,6 +99,7 @@
|
|
|
data_combo = data_combo.replace(/</g,'\<');
|
|
|
data_combo = data_combo.replace(/>/g,'\>');
|
|
|
var taocan = JSON.parse(data_combo);
|
|
|
+ console.log(taocan)
|
|
|
var zonger = 0;
|
|
|
|
|
|
var cl = chose.length
|
| xqd
@@ -108,19 +110,19 @@
|
|
|
for (var i = 0; i < cl; i++) {
|
|
|
choses += '<div class="col-lg-12 quest">'
|
|
|
choses += '<label class="col-xs-12 col-lg-4">'
|
|
|
- choses += '<span class="price" style="color:red">'+chose[i].price+'</span><input type="text" class="cprice" value="'+chose[i].name+'" name="xiangmu[]" disabled/>';
|
|
|
+ choses += '<span class="price" style="color:red">'+chose[i].realPrice+'</span><input type="text" class="cprice" value="'+chose[i].name+'" name="xiangmu[]" disabled/>';
|
|
|
choses += '</label>';
|
|
|
- zonger += Number(chose[i].price);
|
|
|
+ zonger += Number(chose[i].realPrice);
|
|
|
choses += '</div>'
|
|
|
}
|
|
|
for (var t = 0; t < tl; t++) {
|
|
|
taocans += '<div class="col-lg-12 quest">'
|
|
|
taocans += '<label class="col-xs-12 col-lg-4">'
|
|
|
- taocans += '<span class="price" style="color:red">'+taocan[t].youhui+'</span><input type="text" class="tprice" value="'+taocan[t].name+'" name="taocan[]" disabled/>';
|
|
|
+ taocans += '<span class="price" style="color:red">'+taocan[t].realPrice+'</span><input type="text" class="tprice" value="'+taocan[t].name+'" name="taocan[]" disabled/>';
|
|
|
taocans += '</label>';
|
|
|
- taocans += '<div class="neirong">'+taocan[t].neirong+'</div>';
|
|
|
+ taocans += '<div class="neirong">'+taocan[t].content+'</div>';
|
|
|
taocans += '</div>'
|
|
|
- zonger += Number(taocan[t].youhui);
|
|
|
+ zonger += Number(taocan[t].realPrice);
|
|
|
}
|
|
|
// for (var i = 0; i < cl; i++) {
|
|
|
// taocans += '<div class="col-lg-12 quest">'
|