|
|
@@ -276,6 +276,17 @@
|
|
|
<van-button style="font-size: 12px" class="no-btn" v-else-if="!info.openQuota" block round>
|
|
|
活动名额已被抢光
|
|
|
</van-button>
|
|
|
+ <van-button
|
|
|
+ style="font-size: 12px"
|
|
|
+ @click="showReason"
|
|
|
+ class="no-btn"
|
|
|
+ v-else-if="noPay"
|
|
|
+ block
|
|
|
+ round
|
|
|
+ >
|
|
|
+ 存在未支付无效订单
|
|
|
+ </van-button>
|
|
|
+
|
|
|
<van-button @click="share" v-else type="primary" block round>邀请获取白名单 </van-button>
|
|
|
</template>
|
|
|
|
|
|
@@ -354,7 +365,8 @@ export default {
|
|
|
inWeixin,
|
|
|
limit: {},
|
|
|
couponList: [],
|
|
|
- assignments: []
|
|
|
+ assignments: [],
|
|
|
+ noPay: false
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
|
@@ -383,6 +395,25 @@ export default {
|
|
|
this.$http.get('/order/checkLimit', { collectionId: this.$route.query.id }).then(res => {
|
|
|
this.limit = res;
|
|
|
});
|
|
|
+ if (this.isLogin) {
|
|
|
+ this.$http
|
|
|
+ .post(
|
|
|
+ '/order/all',
|
|
|
+ {
|
|
|
+ query: {
|
|
|
+ userId: this.$store.state.userInfo.id,
|
|
|
+ collectionId: this.$route.query.id,
|
|
|
+ status: 'NOT_PAID'
|
|
|
+ }
|
|
|
+ },
|
|
|
+ { body: 'json' }
|
|
|
+ )
|
|
|
+ .then(res => {
|
|
|
+ if (!res.empty) {
|
|
|
+ this.noPay = true;
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
},
|
|
|
methods: {
|
|
|
preview(index = 0, list = []) {
|
|
|
@@ -500,6 +531,12 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
+ showReason() {
|
|
|
+ this.$dialog.alert({
|
|
|
+ title: '提示',
|
|
|
+ message: '存在未支付无效订单,等待订单自动5分钟内取消,退回白名单资格。'
|
|
|
+ });
|
|
|
+ },
|
|
|
getCouponList() {
|
|
|
if (!this.isLogin) {
|
|
|
return;
|