diff --git a/src/pages/exchangecode/commodity/commodity.js b/src/pages/exchangecode/commodity/commodity.js index 1fc6b9d7..594b3834 100644 --- a/src/pages/exchangecode/commodity/commodity.js +++ b/src/pages/exchangecode/commodity/commodity.js @@ -162,7 +162,8 @@ export default class commoditylist extends React.Component { product_type_text: '立减金', only: item.entity.channel_activity_id, id: item.id, - upstream: item.entity.channel === '1' ? '支付宝' : '微信', + upstream: + String(item.entity.channel) === '1' ? '支付宝' : '微信', code_batch_id: item.code_batch_id, contract_price: item.entity.price, create_time: item.create_time, diff --git a/src/pages/exchangecode/edit/edit.js b/src/pages/exchangecode/edit/edit.js index d10d30f2..29b0a927 100644 --- a/src/pages/exchangecode/edit/edit.js +++ b/src/pages/exchangecode/edit/edit.js @@ -128,7 +128,8 @@ export default class exchangedit extends React.Component { req.update_product.reduce.map((item1) => { item1.type = 2 item1.only = item1.channel_activity_id - item1.upstream = item1.channel === '1' ? '支付宝' : '微信' //上游 + item1.upstream = + String(item1.channel) === '1' ? '支付宝' : '微信' //上游 item1.origin = item1 }) req.update_product = [ @@ -328,7 +329,7 @@ export default class exchangedit extends React.Component { product_type_text: '立减金', only: item.entity.channel_activity_id, id: item.entity.goods_id, - upstream: item.entity.channel === '1' ? '支付宝' : '微信', + upstream: String(item.entity.channel) === '1' ? '支付宝' : '微信', code_batch_id: item.code_batch_id, contract_price: item.entity.price, create_time: item.create_time, diff --git a/src/pages/plan/add/edit.js b/src/pages/plan/add/edit.js index 57e03fad..fd56ff5c 100644 --- a/src/pages/plan/add/edit.js +++ b/src/pages/plan/add/edit.js @@ -224,7 +224,7 @@ export default class add extends React.Component { obj.channel_activity_id = item3.channel_activity_id //批次号 obj.only = item3.channel_activity_id obj.type = 2 //类型 - obj.upstream = item3.channel === '1' ? '支付宝' : '微信' //上游 + obj.upstream = String(item3.channel) === '1' ? '支付宝' : '微信' //上游 obj.effectDate = item3.time_limit.effect_time.start_time + ' 至 ' +