123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212 |
- <template>
- <div class="confirmation">
- <div class="confirmation-bg">
- <div class="confirmation-tips">
- <template v-if="status === 1">
- <van-icon name="passed" />下单成功
- </template>
- <template v-else> <van-icon name="close" /> 下单失败 </template>
- </div>
- <div class="confirmation-obtain" v-if="status === 1">
- 3大权益已开通 云机已到账
- </div>
- </div>
- <div class="confirmation-container">
- <div class="jump">
- <div @click="download">打开APP,使用完整功能</div>
- <div @click="toH5">暂不下载,使用网页版</div>
- </div>
- <div class="confirmation-guide">
- <div class="confirmation-guide-title">
- 您可在云应用/浏览器直接下载安装应用
- </div>
- <img
- src="@/assets/image/claimCloudPhone/confirmation-guide.png"
- alt=""
- />
- <div class="confirmation-guide-step">
- <div>
- <div>1</div>
- 进入云手机
- </div>
- <div>
- <div>2</div>
- 点开云应用,浏览/搜索内容
- </div>
- <div>
- <div>3</div>
- 下载,打开游戏
- </div>
- </div>
- </div>
- </div>
- </div>
- </template>
- <script>
- export default {
- auth: false,
- name: 'confirmation',
- head: {
- title: '0元购机,尽情享受',
- },
- components: {},
- data() {
- return {
- status: '',
- bargainingStatusInfo: {},
- };
- },
- mounted() {
- this.getPayStatus();
- this.bargainingStatusInfo = JSON.parse(
- localStorage.getItem('bargainingStatusInfo'),
- );
- console.log(this.bargainingStatusInfo.downloadAndroidUrl);
- },
- methods: {
- getPayStatus() {
- console.log(456789);
- this.$axios
- .$get('pay/v1/alipay/h5/spend/getPayStatus', {
- params: {
- myOrderNum: localStorage.getItem('myOrderNum'),
- },
- })
- .then((res) => {
- if (res.success) {
- this.status = res.data;
- }
- });
- },
- download() {
- location.href = this.$userAgent.isAndroid
- ? this.bargainingStatusInfo.downloadAndroidUrl
- : 'https://www.androidscloud.com';
- },
- toH5(){
- location.href = 'http://gntest.phone.androidscloud.com:1280/cloud/phone/web/#/'
- }
- },
- };
- </script>
- <style lang="less" scoped>
- .confirmation {
- height: 100%;
- background: #f4f6f8;
- .confirmation-bg {
- height: 215px;
- background: #1676fe;
- padding-top: 38px;
- border-radius: 0px 0px 46px 46px;
- .confirmation-tips {
- font-family: PingFangSC, PingFang SC;
- font-weight: 400;
- font-size: 22px;
- color: #ffffff;
- line-height: 30px;
- text-align: center;
- font-style: normal;
- .van-icon-passed {
- margin-right: 5px;
- }
- }
- .confirmation-obtain {
- font-family: PingFangSC, PingFang SC;
- font-weight: 400;
- font-size: 14px;
- color: #9ccffb;
- text-align: center;
- font-style: normal;
- margin-top: 12px;
- }
- }
- .confirmation-container {
- padding: 0 26px;
- .jump {
- height: 146px;
- padding: 0 45px;
- box-sizing: border-box;
- background: #ffffff;
- border-radius: 8px;
- margin-top: -100px;
- margin-bottom: 16px;
- overflow: hidden;
- & > div:first-of-type {
- margin-top: 41px;
- height: 46px;
- line-height: 46px;
- background: #3974f2;
- border-radius: 23px;
- font-family: PingFangSC, PingFang SC;
- font-weight: 600;
- font-size: 14px;
- color: #ffffff;
- text-align: center;
- font-style: normal;
- }
- & > div:last-of-type {
- margin-top: 12px;
- font-family: PingFangSC, PingFang SC;
- font-weight: 400;
- font-size: 12px;
- color: #bbbbbb;
- line-height: 17px;
- text-align: center;
- font-style: normal;
- }
- }
- .confirmation-guide {
- background: #ffffff;
- border-radius: 8px;
- padding: 16px 10px;
- .confirmation-guide-title {
- font-family: PingFangSC, PingFang SC;
- font-weight: bold;
- font-size: 16px;
- color: #0a132b;
- text-align: center;
- font-style: normal;
- }
- & > img {
- width: 100%;
- height: 156px;
- margin: 22px 0;
- }
- .confirmation-guide-step {
- font-family: PingFangSC, PingFang SC;
- font-weight: 400;
- font-size: 14px;
- color: #333333;
- line-height: 18px;
- text-align: left;
- font-style: normal;
- & > div {
- display: flex;
- align-items: center;
- }
- div > div {
- display: inline-block;
- width: 16px;
- height: 16px;
- border-radius: 50%;
- line-height: 20px;
- color: #fff;
- background: #3b7fff;
- display: flex;
- justify-content: center;
- align-items: center;
- margin-right: 8px;
- }
- }
- }
- }
- }
- </style>
|