Commit 7e4ee39caadf3cf9e8d15ab9c6a3d2bdc33c3342
1 parent
f23e97dd
OA单优化赠品名称的显示
Showing
1 changed file
with
7 additions
and
1 deletions
pages/goods/goodsList/goodsList.js
@@ -302,12 +302,18 @@ Page({ | @@ -302,12 +302,18 @@ Page({ | ||
302 | }) | 302 | }) |
303 | } | 303 | } |
304 | //--送赠品-- | 304 | //--送赠品-- |
305 | - if(parseInt(content.is_gift)) { | 305 | + if(parseInt(content.is_gift) && content.zp_mode==0) { |
306 | //-- 获取 -- | 306 | //-- 获取 -- |
307 | await getApp().request.promiseGet("/api/weshop/prom/gift/page?id="+content.gift+"&store_id="+oo.stoid, { | 307 | await getApp().request.promiseGet("/api/weshop/prom/gift/page?id="+content.gift+"&store_id="+oo.stoid, { |
308 | }).then(res => { | 308 | }).then(res => { |
309 | if(ut.ajax_ok(res)) | 309 | if(ut.ajax_ok(res)) |
310 | + | ||
310 | arr[i].content.gift_name=res.data.data.pageData[0].goods_name; | 311 | arr[i].content.gift_name=res.data.data.pageData[0].goods_name; |
312 | + if(!content.zpname_type) content.zpname_type=''; | ||
313 | + | ||
314 | + if(parseInt(content.zpname_type)>0){ | ||
315 | + arr[i].content.gift_name=res.data.data.pageData[0].title; | ||
316 | + } | ||
311 | }) | 317 | }) |
312 | } | 318 | } |
313 | 319 |