修正 【兑换码批次】在编辑和商品列表页面,后端返回的channel为1,应该是支付宝
This commit is contained in:
parent
853706ba2f
commit
e81220f594
|
@ -162,7 +162,8 @@ export default class commoditylist extends React.Component {
|
||||||
product_type_text: '立减金',
|
product_type_text: '立减金',
|
||||||
only: item.entity.channel_activity_id,
|
only: item.entity.channel_activity_id,
|
||||||
id: item.id,
|
id: item.id,
|
||||||
upstream: item.entity.channel === '1' ? '支付宝' : '微信',
|
upstream:
|
||||||
|
String(item.entity.channel) === '1' ? '支付宝' : '微信',
|
||||||
code_batch_id: item.code_batch_id,
|
code_batch_id: item.code_batch_id,
|
||||||
contract_price: item.entity.price,
|
contract_price: item.entity.price,
|
||||||
create_time: item.create_time,
|
create_time: item.create_time,
|
||||||
|
|
|
@ -128,7 +128,8 @@ export default class exchangedit extends React.Component {
|
||||||
req.update_product.reduce.map((item1) => {
|
req.update_product.reduce.map((item1) => {
|
||||||
item1.type = 2
|
item1.type = 2
|
||||||
item1.only = item1.channel_activity_id
|
item1.only = item1.channel_activity_id
|
||||||
item1.upstream = item1.channel === '1' ? '支付宝' : '微信' //上游
|
item1.upstream =
|
||||||
|
String(item1.channel) === '1' ? '支付宝' : '微信' //上游
|
||||||
item1.origin = item1
|
item1.origin = item1
|
||||||
})
|
})
|
||||||
req.update_product = [
|
req.update_product = [
|
||||||
|
@ -328,7 +329,7 @@ export default class exchangedit extends React.Component {
|
||||||
product_type_text: '立减金',
|
product_type_text: '立减金',
|
||||||
only: item.entity.channel_activity_id,
|
only: item.entity.channel_activity_id,
|
||||||
id: item.entity.goods_id,
|
id: item.entity.goods_id,
|
||||||
upstream: item.entity.channel === '1' ? '支付宝' : '微信',
|
upstream: String(item.entity.channel) === '1' ? '支付宝' : '微信',
|
||||||
code_batch_id: item.code_batch_id,
|
code_batch_id: item.code_batch_id,
|
||||||
contract_price: item.entity.price,
|
contract_price: item.entity.price,
|
||||||
create_time: item.create_time,
|
create_time: item.create_time,
|
||||||
|
|
|
@ -224,7 +224,7 @@ export default class add extends React.Component {
|
||||||
obj.channel_activity_id = item3.channel_activity_id //批次号
|
obj.channel_activity_id = item3.channel_activity_id //批次号
|
||||||
obj.only = item3.channel_activity_id
|
obj.only = item3.channel_activity_id
|
||||||
obj.type = 2 //类型
|
obj.type = 2 //类型
|
||||||
obj.upstream = item3.channel === '1' ? '支付宝' : '微信' //上游
|
obj.upstream = String(item3.channel) === '1' ? '支付宝' : '微信' //上游
|
||||||
obj.effectDate =
|
obj.effectDate =
|
||||||
item3.time_limit.effect_time.start_time +
|
item3.time_limit.effect_time.start_time +
|
||||||
' 至 ' +
|
' 至 ' +
|
||||||
|
|
Loading…
Reference in New Issue