|
@@ -338,6 +338,15 @@
|
|
|
</van-button>
|
|
</van-button>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
|
|
+ <van-button
|
|
|
|
|
+ v-else-if="assignment && info.totalQuota && userInfo.vipPoint > 0"
|
|
|
|
|
+ type="primary"
|
|
|
|
|
+ block
|
|
|
|
|
+ round
|
|
|
|
|
+ @click="checkBuy"
|
|
|
|
|
+ >立即购买
|
|
|
|
|
+ </van-button>
|
|
|
|
|
+
|
|
|
<van-button v-else type="primary" block round @click="buy">
|
|
<van-button v-else type="primary" block round @click="buy">
|
|
|
{{ info.couponPayment ? '立即兑换' : '立即购买' }}
|
|
{{ info.couponPayment ? '立即兑换' : '立即购买' }}
|
|
|
</van-button>
|
|
</van-button>
|
|
@@ -650,6 +659,25 @@ export default {
|
|
|
});
|
|
});
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
|
|
+ checkBuy() {
|
|
|
|
|
+ this.checkLogin()
|
|
|
|
|
+ .then(() => {
|
|
|
|
|
+ return this.checkAuth();
|
|
|
|
|
+ })
|
|
|
|
|
+ .then(() => {
|
|
|
|
|
+ return this.checkBank();
|
|
|
|
|
+ })
|
|
|
|
|
+ .then(() => {
|
|
|
|
|
+ console.log('checkLOgin');
|
|
|
|
|
+ this.$router.push({
|
|
|
|
|
+ path: '/submit',
|
|
|
|
|
+ query: {
|
|
|
|
|
+ id: this.collectionId,
|
|
|
|
|
+ invitor: this.$route.query.invitor || ''
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
buy() {
|
|
buy() {
|
|
|
this.checkLogin().then(() => {
|
|
this.checkLogin().then(() => {
|
|
|
if (this.info.couponPayment && this.couponList.length === 0) {
|
|
if (this.info.couponPayment && this.couponList.length === 0) {
|