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

This commit is contained in:
wangsongsole 2022-06-13 16:41:38 +08:00
parent f223f98f09
commit f47ee8fe58
4 changed files with 6 additions and 5 deletions

View File

@ -450,7 +450,7 @@ export default class acclist extends React.Component {
newObj.only = item.channel_activity_id //批次号
newObj.type = 2 //类型
newObj.checked = item?.checked
newObj.upstream = item.channel === '1' ? '支付宝' : '微信' //上游
newObj.upstream = String(item.channel) === '1' ? '支付宝' : '微信' //上游
newObj.edit = 'edit'
newObj.effectDate = item.effectDate
? item.effectDate

View File

@ -710,7 +710,7 @@ export default class exchangedit extends React.Component {
newObj.only = item.channel_activity_id //批次号
newObj.type = 2 //类型
newObj.checked = item?.checked
newObj.upstream = item.channel === '1' ? '支付宝' : '微信' //上游
newObj.upstream = String(item.channel) === '1' ? '支付宝' : '微信' //上游
newObj.edit = 'edit'
newObj.effectDate = item.effectDate
? item.effectDate

View File

@ -345,7 +345,7 @@ export default class acclist extends React.Component {
newObj.only = item.channel_activity_id //批次号
newObj.type = 2 //类型
newObj.checked = item?.checked
newObj.upstream = item.channel === '1' ? '支付宝' : '微信' //上游
newObj.upstream = String(item.channel) === '1' ? '支付宝' : '微信' //上游
newObj.edit = 'edit'
newObj.effectDate = item.effectDate
? item.effectDate

View File

@ -186,7 +186,8 @@ export default class acclist extends React.Component {
item.product.reduce.map((item1) => {
item1.type = 2
item1.only = item1.channel_activity_id
item1.upstream = item.channel === '1' ? '支付宝' : '微信' //上游
item1.upstream =
String(item.channel) === '1' ? '支付宝' : '微信' //上游
item1.origin = item1
})
item.product = [
@ -459,7 +460,7 @@ export default class acclist extends React.Component {
newObj.only = item.channel_activity_id //批次号
newObj.type = 2 //类型
newObj.checked = item?.checked
newObj.upstream = item.channel === '1' ? '支付宝' : '微信' //上游
newObj.upstream = String(item.channel) === '1' ? '支付宝' : '微信' //上游
newObj.edit = 'edit'
newObj.effectDate = item.effectDate
? item.effectDate