记得上下班打卡 | git大法好,push需谨慎

Commit 39ecdad6 authored by liuran's avatar liuran

修改积分商品列表

parent 3506a483
...@@ -432,7 +432,7 @@ ...@@ -432,7 +432,7 @@
if (res.rows.length>0) { if (res.rows.length>0) {
searchData = res.rows; searchData = res.rows;
searchData.forEach((item,index)=>{ searchData.forEach((item,index)=>{
str+= `<li class="selectData" onclick="selectOne('${item.couponId}', 'couponId')">${item.title}</li>` str+= `<li class="selectData" onclick="selectOne('${item.couponId}', 'couponId')">${item.busiName}</li>`
}) })
$('#dataList').html(str); $('#dataList').html(str);
} else { } else {
...@@ -443,7 +443,7 @@ ...@@ -443,7 +443,7 @@
function selectOne(id, name) { function selectOne(id, name) {
searchData.some( item => { searchData.some( item => {
if (item[name] == id) { if (item[name] == id) {
return $("#searchIpt").val(item.title); return $("#searchIpt").val(item.busiName);
} }
} ) } )
// $("#searchIpt").val(name); // $("#searchIpt").val(name);
......
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