Commit e54faf39 by 杨明

fixed

1 parent 82b510b6
...@@ -158,9 +158,8 @@ export default { ...@@ -158,9 +158,8 @@ export default {
getDetail() { getDetail() {
this.$apis.journeyConfig.getInstIdDetail({ instId: this.query.instId }).then(res => { this.$apis.journeyConfig.getInstIdDetail({ instId: this.query.instId }).then(res => {
const instParam = JSON.parse(res.instParam) const instParam = JSON.parse(res.instParam)
const dataTypeCode = instParam.dataTypeCode this.dataTypeCode = instParam.dataTypeCode
console.log(dataTypeCode) if (this.dataTypeCode == 'xbpzj') {
if (dataTypeCode == 'xbpzj') {
this.statusList = this.activityType[1] this.statusList = this.activityType[1]
} else { } else {
this.statusList = this.activityType[2] this.statusList = this.activityType[2]
...@@ -181,7 +180,6 @@ export default { ...@@ -181,7 +180,6 @@ export default {
if (instStatus == -1) { if (instStatus == -1) {
this.journeyStatus = 4 this.journeyStatus = 4
} }
console.log(stages, 'this.journeyStatus')
const nodes = res.nodes const nodes = res.nodes
const configList = [] const configList = []
for (let k in stages) { for (let k in stages) {
...@@ -212,8 +210,10 @@ export default { ...@@ -212,8 +210,10 @@ export default {
}, },
async haneldOpenQY() { async haneldOpenQY() {
this.handleConfirm('开启提示', '确定开启', '旅程开启后将无法修改关联的活动链接', '', async () => { this.handleConfirm('开启提示', '确定开启', '旅程开启后将无法修改关联的活动链接', '', async () => {
await this.$apis.journeyConfig.authorizeMerchant({ merchantId: this.$globalState.session.merchantId }) if (this.dataTypeCode == 'qiwei') {
await this.$apis.journeyConfig.concatActivity({ instId: this.query.instId, data: { supMerchantNo: this.$globalState.session.merchantId } }) await this.$apis.journeyConfig.authorizeMerchant({ merchantId: this.$globalState.session.merchantId })
await this.$apis.journeyConfig.concatActivity({ instId: this.query.instId, data: { supMerchantNo: this.$globalState.session.merchantId } })
}
this.setSopInsts(1) this.setSopInsts(1)
}) })
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!