uptada BaiDuYun
This commit is contained in:
parent
3703b3b75b
commit
2aeaeb23b5
@ -11,8 +11,8 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { baiducloudAPI, cancelCallbackAPI } from '@/api/BaiDuTokenapi'
|
||||
|
||||
import { baiducloudAPI } from '@/api/BaiDuTokenapi'
|
||||
import {reqBaiduJudgePrice} from '@/api/baidu'
|
||||
export default {
|
||||
name: 'baiduProductShow',
|
||||
data() {
|
||||
@ -20,6 +20,7 @@ export default {
|
||||
userToken: '',
|
||||
url: '',
|
||||
loading: true,
|
||||
userid: ''
|
||||
}
|
||||
},
|
||||
async created() {
|
||||
@ -68,9 +69,23 @@ export default {
|
||||
order_id: orderId,
|
||||
userid: this.userid
|
||||
}
|
||||
cancelCallbackAPI(ploay).then((res) => {
|
||||
console.log(res);
|
||||
})
|
||||
reqBaiduJudgePrice(ploay).then((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