|
|
@@ -79,7 +79,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="box-footer-right">
|
|
|
- <van-button type="warning" @click="address">立即购买</van-button>
|
|
|
+ <van-button type="warning" @click="purchase">立即购买</van-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -97,6 +97,9 @@
|
|
|
import CardCase from '../components/CardCase';
|
|
|
import dayjs from 'dayjs';
|
|
|
export default {
|
|
|
+ components: {
|
|
|
+ CardCase
|
|
|
+ },
|
|
|
data() {
|
|
|
return {
|
|
|
show: false,
|
|
|
@@ -118,9 +121,16 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ details() {
|
|
|
+ this.$http.get('/cardCase/showInfoMA?id=' + this.$mp.query.id).then(res => {
|
|
|
+ console.log(res);
|
|
|
+ this.detailsList = res.groupBoxMap;
|
|
|
+ this.cardCaseInfo = res.cardCaseInfo || {};
|
|
|
+ });
|
|
|
+ },
|
|
|
// 确认订单
|
|
|
- address() {
|
|
|
- if (!this.chooseIds) {
|
|
|
+ purchase() {
|
|
|
+ if (this.chooseIds == '') {
|
|
|
wx.showToast({
|
|
|
icon: 'none',
|
|
|
title: '请选择卡包'
|
|
|
@@ -128,20 +138,10 @@ export default {
|
|
|
return;
|
|
|
}
|
|
|
this.navigateTo('/pages/address?caseId=' + this.cardCaseInfo.cardCaseId + '&boxIds=' + this.chooseIds);
|
|
|
- },
|
|
|
- details() {
|
|
|
- this.$http.get('/cardCase/showInfoMA?id=' + this.$mp.query.id).then(res => {
|
|
|
- console.log(res);
|
|
|
- this.detailsList = res.groupBoxMap;
|
|
|
- this.cardCaseInfo = res.cardCaseInfo || {};
|
|
|
- });
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
this.details();
|
|
|
- },
|
|
|
- components: {
|
|
|
- CardCase
|
|
|
}
|
|
|
};
|
|
|
</script>
|