调整并优化兑换码代码
This commit is contained in:
parent
1d351102da
commit
d597a7d93b
|
@ -324,6 +324,22 @@ export default class exchangeAdd extends React.Component {
|
|||
}
|
||||
}
|
||||
|
||||
/* 获取直连天下商品数据 */
|
||||
getProductInfoSelectData(reseller_id) {
|
||||
return new Promise((resolve, reject) => {
|
||||
let param = {
|
||||
reseller_id: reseller_id
|
||||
}
|
||||
getProductInfoSelect(param).then((res) => {
|
||||
if (res.code === 200) {
|
||||
resolve(res.data.data)
|
||||
} else {
|
||||
reject([])
|
||||
}
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
// 立减金 加款后 商品范围列表数据进行变动
|
||||
getTableList() {
|
||||
if (sessionStorage.getItem("addMoneyData")) {
|
||||
|
@ -929,7 +945,8 @@ export default class exchangeAdd extends React.Component {
|
|||
}
|
||||
|
||||
onDisabledTime = (date) => {
|
||||
const min = new Date()
|
||||
let step1 = JSON.parse(sessionStorage.getItem("knockGold_effectDate"))
|
||||
const min = new Date(step1.begin_time)
|
||||
const hour = min.getHours()
|
||||
const minute = min.getMinutes()
|
||||
const second = min.getSeconds()
|
||||
|
@ -1004,22 +1021,6 @@ export default class exchangeAdd extends React.Component {
|
|||
})
|
||||
}
|
||||
|
||||
// 获取直连天下商品数据
|
||||
getProductInfoSelectData(reseller_id) {
|
||||
return new Promise((resolve, reject) => {
|
||||
let param = {
|
||||
reseller_id: reseller_id
|
||||
}
|
||||
getProductInfoSelect(param).then((res) => {
|
||||
if (res.code === 200) {
|
||||
resolve(res.data.data)
|
||||
} else {
|
||||
reject([])
|
||||
}
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
/* 商品范围列表编辑 */
|
||||
productEditShow(rowData) {
|
||||
if (this.state.direct_reseller_id > 0) {
|
||||
|
|
Loading…
Reference in New Issue