|
@@ -27,33 +27,25 @@
|
|
name: 'product',
|
|
name: 'product',
|
|
data () {
|
|
data () {
|
|
return {
|
|
return {
|
|
- productBox: this.$route.query.productBox,
|
|
|
|
- extraB: this.$route.query.productBox.extra,
|
|
|
|
|
|
+ productBox: config.productInfo,
|
|
|
|
+ extraB: config.productInfo.extra,
|
|
isActive: -1
|
|
isActive: -1
|
|
}
|
|
}
|
|
},
|
|
},
|
|
-
|
|
|
|
- created () {
|
|
|
|
- if (typeof(this.$route.query.productBox) ) {
|
|
|
|
- config.productInfo = this.$route.query.productBox
|
|
|
|
- console.log(config.productInfo)
|
|
|
|
- }
|
|
|
|
|
|
+ beforeCreate () {},
|
|
|
|
+ computed: {
|
|
|
|
+ ...mapState({
|
|
|
|
+ order: state => state.order,
|
|
|
|
+ orderChange: state => state.orderChange
|
|
|
|
+ })
|
|
},
|
|
},
|
|
- computed: mapState({
|
|
|
|
- order: state => state.order,
|
|
|
|
- orderChange: state => state.orderChange
|
|
|
|
- }),
|
|
|
|
methods: {
|
|
methods: {
|
|
...mapActions([
|
|
...mapActions([
|
|
'PAYCHANGE'
|
|
'PAYCHANGE'
|
|
]),
|
|
]),
|
|
- getId: function () {
|
|
|
|
- console.log(this.$route.query.productBox)
|
|
|
|
- },
|
|
|
|
btnOrder: function (cb) {
|
|
btnOrder: function (cb) {
|
|
config.formData = new FormData()
|
|
config.formData = new FormData()
|
|
const balance = 0
|
|
const balance = 0
|
|
- console.log(balance)
|
|
|
|
let productParamJson = ''
|
|
let productParamJson = ''
|
|
productParamJson = JSON.stringify([{
|
|
productParamJson = JSON.stringify([{
|
|
product_id: '57e3a5a49f5160c9048b457c', // 产品ID
|
|
product_id: '57e3a5a49f5160c9048b457c', // 产品ID
|
|
@@ -61,15 +53,11 @@
|
|
}])
|
|
}])
|
|
// let coupons = qs.stringify({0: '5836a1979f5160a7048b5a51'})
|
|
// let coupons = qs.stringify({0: '5836a1979f5160a7048b5a51'})
|
|
// let coupons = JSON.stringify({0: ''})
|
|
// let coupons = JSON.stringify({0: ''})
|
|
- console.log(productParamJson)
|
|
|
|
let extraJson = ''
|
|
let extraJson = ''
|
|
extraJson = JSON.stringify([{type: '整间日常清洁', price: '388'}])
|
|
extraJson = JSON.stringify([{type: '整间日常清洁', price: '388'}])
|
|
- console.log(extraJson)
|
|
|
|
const channel = 'wx_pub'
|
|
const channel = 'wx_pub'
|
|
const addressId = this.$store.state.user.userInfo.shop_address[0].address_id
|
|
const addressId = this.$store.state.user.userInfo.shop_address[0].address_id
|
|
const time = '2017-06-21 11:00'
|
|
const time = '2017-06-21 11:00'
|
|
- console.log(channel)
|
|
|
|
- console.log(config)
|
|
|
|
config.orderInfo = ''
|
|
config.orderInfo = ''
|
|
// config.formData.append('balance', balance)
|
|
// config.formData.append('balance', balance)
|
|
// config.formData.append('products', productParamJson)
|
|
// config.formData.append('products', productParamJson)
|