Commit 7263f7cb authored by beisir's avatar beisir

feat:修改支付成功页面样式

parent fd1e0d8e
<template> <template>
<div> <div class="pay-result">
<div v-if="isSuccess" class="card"> <div v-if="isSuccess" class="card">
<div class="info"> <div class="info">
<cr-image <cr-image
...@@ -18,11 +18,21 @@ ...@@ -18,11 +18,21 @@
拼团成功即可退款0元拿,拼团失败立即退款 拼团成功即可退款0元拿,拼团失败立即退款
</p> </p>
<div class="actions"> <div class="actions">
<cr-button shape="circle" type="default" @click="goPage(1)">我的拼团</cr-button> <cr-button shape="circle" class="actions__share" type="primary" @click="share"
<cr-button shape="circle" class="actions__back" :plain="true" type="primary" @click="share"
>邀请好友</cr-button >邀请好友</cr-button
> >
</div> </div>
<div class="actions">
<cr-button shape="circle" type="default" @click="goGroupList">返回活动列表</cr-button>
<cr-button
shape="circle"
class="actions__back"
:plain="true"
type="primary"
@click="goPage(1)"
>查看我的拼团</cr-button
>
</div>
</div> </div>
<div v-else class="card"> <div v-else class="card">
<div class="info"> <div class="info">
...@@ -135,6 +145,10 @@ export default { ...@@ -135,6 +145,10 @@ export default {
this.shareInfo = res; this.shareInfo = res;
firstGroupShare(res, 3); firstGroupShare(res, 3);
}, },
goGroupList() {
const { activityId } = this.shareInfo;
this.$router.push(`/groupBuy/list?activityId=${activityId}`);
},
goPage(type) { goPage(type) {
if (type == 1) { if (type == 1) {
this.$router.replace({ path: '/orderList/0' }); this.$router.replace({ path: '/orderList/0' });
...@@ -170,25 +184,31 @@ export default { ...@@ -170,25 +184,31 @@ export default {
}; };
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.pay-result {
height: 100%;
}
.card { .card {
margin: @padding-sm; // margin: @padding-sm;
height: 100%;
background-color: @white; background-color: @white;
border-radius: @border-radius-sm; // border-radius: @border-radius-sm;
padding: 28px @padding-sm @padding-sm @padding-sm; padding: 28px @padding-sm @padding-sm @padding-sm;
box-sizing: border-box;
.info { .info {
display: flex; display: flex;
flex-direction: column;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
&__image { &__image {
width: 100px; width: 100px;
height: 100px; height: 100px;
margin: @padding-xl 0;
} }
&__text { &__text {
.text-16; .text-16;
margin-left: @padding-md; // margin-left: @padding-md;
} }
&__desc { &__desc {
...@@ -200,6 +220,7 @@ export default { ...@@ -200,6 +220,7 @@ export default {
margin-top: @padding-xs; margin-top: @padding-xs;
} }
&__free { &__free {
text-align: center;
.text-13; .text-13;
margin-top: @padding-xs; margin-top: @padding-xs;
color: @font-color-light; color: @font-color-light;
...@@ -209,7 +230,7 @@ export default { ...@@ -209,7 +230,7 @@ export default {
.tips { .tips {
.text-12; .text-12;
text-align: center; text-align: center;
margin-top: @padding-lg; margin-top: @padding-xs;
color: @font-color-light; color: @font-color-light;
} }
...@@ -231,7 +252,10 @@ export default { ...@@ -231,7 +252,10 @@ export default {
button { button {
// flex: 1; // flex: 1;
.text-16; .text-16;
width: 161px; width: 170px;
}
&__share {
width: 100% !important;
} }
} }
.info_button { .info_button {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment