uptada BaiDuYun
This commit is contained in:
parent
3703b3b75b
commit
2aeaeb23b5
@ -11,8 +11,8 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { baiducloudAPI, cancelCallbackAPI } from '@/api/BaiDuTokenapi'
|
import { baiducloudAPI } from '@/api/BaiDuTokenapi'
|
||||||
|
import {reqBaiduJudgePrice} from '@/api/baidu'
|
||||||
export default {
|
export default {
|
||||||
name: 'baiduProductShow',
|
name: 'baiduProductShow',
|
||||||
data() {
|
data() {
|
||||||
@ -20,6 +20,7 @@ export default {
|
|||||||
userToken: '',
|
userToken: '',
|
||||||
url: '',
|
url: '',
|
||||||
loading: true,
|
loading: true,
|
||||||
|
userid: ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
async created() {
|
async created() {
|
||||||
@ -68,9 +69,23 @@ export default {
|
|||||||
order_id: orderId,
|
order_id: orderId,
|
||||||
userid: this.userid
|
userid: this.userid
|
||||||
}
|
}
|
||||||
cancelCallbackAPI(ploay).then((res) => {
|
reqBaiduJudgePrice(ploay).then((res) => {
|
||||||
console.log(res);
|
console.log("二级接口是", res)
|
||||||
})
|
if (res.status) {
|
||||||
|
this.$router.push({
|
||||||
|
name: 'userResource',
|
||||||
|
params: {
|
||||||
|
listUrl: this.$route.params.listUrl,
|
||||||
|
url: this.$route.params.url
|
||||||
|
}
|
||||||
|
})
|
||||||
|
this.$message.success('退订成功')
|
||||||
|
|
||||||
|
} else {
|
||||||
|
this.loading = false
|
||||||
|
this.$message.error(res.msg)
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user