...
|
...
|
@@ -6,10 +6,10 @@ |
|
|
</div>
|
|
|
<div class="title">支付成功</div>
|
|
|
|
|
|
<div class="desc">如卖家原因导致交易失败,您可获赔付200元保证金,建议您设置支付宝账号作为赔偿收款账户,如未绑定银行卡则视为放弃赔偿</div>
|
|
|
<div class="desc">如卖家原因导致交易失败,您可以获得相应赔偿金,具体金额参考《买家须知》。建议您设置支付宝账号作为赔偿收款账户,如未绑定支付宝账号视为放弃赔偿。</div>
|
|
|
|
|
|
<div class="btn-wrap">
|
|
|
<YohoButton :txt="txt" class="btn-class" @click="onClick"></YohoButton>
|
|
|
<YohoButton :txt="authorizeFlag ? txt : txt1" class="btn-class" @click="onClick"></YohoButton>
|
|
|
</div>
|
|
|
|
|
|
<div class="info">
|
...
|
...
|
@@ -28,8 +28,10 @@ |
|
|
|
|
|
import ProductList from '../list/components/productList';
|
|
|
import { createNamespacedHelpers } from 'vuex';
|
|
|
import { get } from 'lodash';
|
|
|
|
|
|
const { mapActions: mapProductAction } = createNamespacedHelpers('product');
|
|
|
const { mapActions: mapOrderConfirmAction } = createNamespacedHelpers('order/orderConfirm');
|
|
|
|
|
|
export default {
|
|
|
name: 'BuyPayOk',
|
...
|
...
|
@@ -40,25 +42,45 @@ export default { |
|
|
data() {
|
|
|
return {
|
|
|
txt: '返回首页',
|
|
|
txt1: '绑定支付宝',
|
|
|
authorizeFlag: false,
|
|
|
productList: []
|
|
|
};
|
|
|
},
|
|
|
mounted() {
|
|
|
activated() {
|
|
|
if (this.productId) {
|
|
|
this.fetchRecommendProduct({ productId: this.productId }).then(result => {
|
|
|
this.productList = result;
|
|
|
});
|
|
|
}
|
|
|
|
|
|
// this.fetchAlipayStatus().then(result => {
|
|
|
// this.authorizeFlag = get(result, 'data.authorizeFlag', false);
|
|
|
// });
|
|
|
},
|
|
|
computed: {},
|
|
|
methods: {
|
|
|
...mapProductAction(['fetchRecommendProduct']),
|
|
|
...mapOrderConfirmAction(['fetchAlipayStatus']),
|
|
|
onClick() {
|
|
|
this.goHome();
|
|
|
if (this.authorizeFlag) {
|
|
|
this.goHome();
|
|
|
} else {
|
|
|
this.goBindAccount();
|
|
|
}
|
|
|
},
|
|
|
goHome() {
|
|
|
this.$router.replace({
|
|
|
name: 'ChannelPage'
|
|
|
});
|
|
|
},
|
|
|
goBindAccount() {
|
|
|
this.$router.replace({
|
|
|
name: 'bindAccount',
|
|
|
query: {
|
|
|
back: 'ChannelPage'
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
}
|
|
|
};
|
...
|
...
|
@@ -87,7 +109,7 @@ export default { |
|
|
.btn-class {
|
|
|
height: 88px;
|
|
|
font-size: 32px;
|
|
|
line-height: 100px;
|
|
|
line-height: 88px;
|
|
|
}
|
|
|
|
|
|
.desc {
|
...
|
...
|
|