修复 【兑换码批次】在编辑和商品列表页面,后端返回的channel为1,应该是支付宝
This commit is contained in:
parent
f223f98f09
commit
f47ee8fe58
|
@ -450,7 +450,7 @@ export default class acclist extends React.Component {
|
||||||
newObj.only = item.channel_activity_id //批次号
|
newObj.only = item.channel_activity_id //批次号
|
||||||
newObj.type = 2 //类型
|
newObj.type = 2 //类型
|
||||||
newObj.checked = item?.checked
|
newObj.checked = item?.checked
|
||||||
newObj.upstream = item.channel === '1' ? '支付宝' : '微信' //上游
|
newObj.upstream = String(item.channel) === '1' ? '支付宝' : '微信' //上游
|
||||||
newObj.edit = 'edit'
|
newObj.edit = 'edit'
|
||||||
newObj.effectDate = item.effectDate
|
newObj.effectDate = item.effectDate
|
||||||
? item.effectDate
|
? item.effectDate
|
||||||
|
|
|
@ -710,7 +710,7 @@ export default class exchangedit extends React.Component {
|
||||||
newObj.only = item.channel_activity_id //批次号
|
newObj.only = item.channel_activity_id //批次号
|
||||||
newObj.type = 2 //类型
|
newObj.type = 2 //类型
|
||||||
newObj.checked = item?.checked
|
newObj.checked = item?.checked
|
||||||
newObj.upstream = item.channel === '1' ? '支付宝' : '微信' //上游
|
newObj.upstream = String(item.channel) === '1' ? '支付宝' : '微信' //上游
|
||||||
newObj.edit = 'edit'
|
newObj.edit = 'edit'
|
||||||
newObj.effectDate = item.effectDate
|
newObj.effectDate = item.effectDate
|
||||||
? item.effectDate
|
? item.effectDate
|
||||||
|
|
|
@ -345,7 +345,7 @@ export default class acclist extends React.Component {
|
||||||
newObj.only = item.channel_activity_id //批次号
|
newObj.only = item.channel_activity_id //批次号
|
||||||
newObj.type = 2 //类型
|
newObj.type = 2 //类型
|
||||||
newObj.checked = item?.checked
|
newObj.checked = item?.checked
|
||||||
newObj.upstream = item.channel === '1' ? '支付宝' : '微信' //上游
|
newObj.upstream = String(item.channel) === '1' ? '支付宝' : '微信' //上游
|
||||||
newObj.edit = 'edit'
|
newObj.edit = 'edit'
|
||||||
newObj.effectDate = item.effectDate
|
newObj.effectDate = item.effectDate
|
||||||
? item.effectDate
|
? item.effectDate
|
||||||
|
|
|
@ -186,7 +186,8 @@ export default class acclist extends React.Component {
|
||||||
item.product.reduce.map((item1) => {
|
item.product.reduce.map((item1) => {
|
||||||
item1.type = 2
|
item1.type = 2
|
||||||
item1.only = item1.channel_activity_id
|
item1.only = item1.channel_activity_id
|
||||||
item1.upstream = item.channel === '1' ? '支付宝' : '微信' //上游
|
item1.upstream =
|
||||||
|
String(item.channel) === '1' ? '支付宝' : '微信' //上游
|
||||||
item1.origin = item1
|
item1.origin = item1
|
||||||
})
|
})
|
||||||
item.product = [
|
item.product = [
|
||||||
|
@ -459,7 +460,7 @@ export default class acclist extends React.Component {
|
||||||
newObj.only = item.channel_activity_id //批次号
|
newObj.only = item.channel_activity_id //批次号
|
||||||
newObj.type = 2 //类型
|
newObj.type = 2 //类型
|
||||||
newObj.checked = item?.checked
|
newObj.checked = item?.checked
|
||||||
newObj.upstream = item.channel === '1' ? '支付宝' : '微信' //上游
|
newObj.upstream = String(item.channel) === '1' ? '支付宝' : '微信' //上游
|
||||||
newObj.edit = 'edit'
|
newObj.edit = 'edit'
|
||||||
newObj.effectDate = item.effectDate
|
newObj.effectDate = item.effectDate
|
||||||
? item.effectDate
|
? item.effectDate
|
||||||
|
|
Loading…
Reference in New Issue