Commit 6b24d0b0 by 梁建民

css

parent 9136b592
Showing with 20 additions and 8 deletions
...@@ -26,25 +26,37 @@ ...@@ -26,25 +26,37 @@
IcController.getData(apis.goodsInfo, 'GET', {token: opt.token, 'goods_id/eq': id}, function (res) { IcController.getData(apis.goodsInfo, 'GET', {token: opt.token, 'goods_id/eq': id}, function (res) {
if(res.errcode === 0){ if (res.errcode === 0) {
layui.form.val("goodsave", { layui.form.val("goodsave", {
"goods_name": res['goods_list'][id].goods_name, "goods_name": res['goods_list'][id].goods_name,
"brand_name": res['goods_list'][id].brand_name, "brand_name": res['goods_list'][id].brand_name,
"encap": res['goods_list'][id].encap, "encap": res['goods_list'][id].encap,
"stock": res['goods_list'][id].stock, "stock": res['goods_list'][id].stock,
"price": res['goods_list'][id].price, "price": res['goods_list'][id].price,
"day": res['goods_list'][id].delivery_time,
"currency": res['goods_list'][id].currency, "currency": res['goods_list'][id].currency,
"delivery_time": res['goods_list'][id].delivery_time "delivery_time": res['goods_list'][id].delivery_time
}); });
setTimeout(function () { setTimeout(function () {
$('.hq').find('.layui-form-radioed').trigger('click'); $('.hq').find('.layui-form-radioed').trigger('click');
},500) }, 500);
setTimeout(function () {
layui.form.val("goodsave", {
"day": res['goods_list'][id].delivery_time
});
}, 1000);
layui.form.render();
} }
......
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 sign in to comment