|
|
@@ -65,11 +65,12 @@
|
|
|
<script>
|
|
|
const path = require('path');
|
|
|
import product from '../mixins/product';
|
|
|
+import coupon from '../mixins/coupon';
|
|
|
import { mapState } from 'vuex';
|
|
|
let inWeixin = /micromessenger/i.test(navigator.userAgent);
|
|
|
export default {
|
|
|
name: 'Submit',
|
|
|
- mixins: [product],
|
|
|
+ mixins: [product, coupon],
|
|
|
data() {
|
|
|
return {
|
|
|
info: {},
|
|
|
@@ -96,7 +97,8 @@ export default {
|
|
|
orderId: 0,
|
|
|
gas: 1,
|
|
|
inWeixin,
|
|
|
- couponList: []
|
|
|
+ couponList: [],
|
|
|
+ collectionId: 0
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
|
@@ -129,6 +131,7 @@ export default {
|
|
|
forbidClick: true
|
|
|
});
|
|
|
if (this.$route.query.id) {
|
|
|
+ this.collectionId = Number(this.$route.query.id);
|
|
|
this.$http.get('/collection/get/' + this.$route.query.id).then(res => {
|
|
|
this.info = res;
|
|
|
setTimeout(() => {
|
|
|
@@ -137,6 +140,7 @@ export default {
|
|
|
|
|
|
// this.$http('/sysConfig/get/gas_fee')
|
|
|
});
|
|
|
+ this.getCouponList();
|
|
|
} else {
|
|
|
this.$http.get('/order/get/' + this.$route.query.orderId).then(res => {
|
|
|
this.info = res;
|