Commit 7e4ee39caadf3cf9e8d15ab9c6a3d2bdc33c3342

Authored by yvan.ni
1 parent f23e97dd

OA单优化赠品名称的显示

pages/goods/goodsList/goodsList.js
... ... @@ -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 307 await getApp().request.promiseGet("/api/weshop/prom/gift/page?id="+content.gift+"&store_id="+oo.stoid, {
308 308 }).then(res => {
309 309 if(ut.ajax_ok(res))
  310 +
310 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  
... ...