修正 【兑换码批次】在编辑和商品列表页面,后端返回的channel为1,应该是支付宝

This commit is contained in:
wangsongsole 2022-06-13 18:09:39 +08:00
parent 853706ba2f
commit e81220f594
3 changed files with 6 additions and 4 deletions

View File

@ -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,

View File

@ -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,

View File

@ -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 +
' 至 ' +