1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <template>
- <div class="loading">加载中...</div>
- </template>
- <script>
- import common from './mixins/common.js';
- export default {
- name: 'claimCloudPhone',
- auth: false,
- head: {
- title: '0元购机,尽情享受',
- },
- mixins: [common],
- data() {
- return {};
- },
- mounted() {
- setTimeout(() => {
- this.bargainingStatus();
- });
- },
- methods: {
- bargainingStatus() {
- this.$axios
- .$get('activity/v5/assist/bargaining/current/bargainingStatus')
- .then((res) => {
- if (res.success) {
- // bargainingStatus 0 :选择云机界面 1:砍一刀界面 2;邀请好友页面 3:成功,领取下一台云机界面 4:失败,领取下一台云机界面
- switch (res.data.bargainingStatus) {
- case 0:
- this.$router.replace('/claimCloudPhone/chooseCloudPhone');
- break;
- default:
- this.$router.replace(
- '/claimCloudPhone/' + res.data.bargainingStatus,
- );
- break;
- }
- }
- });
- },
- },
- };
- </script>
- <style lang="scss" scoped></style>
|