Commit 9b28ccb8 authored by ljd's avatar ljd

pageInit-data.json

parent 11545047
...@@ -53,7 +53,7 @@ export default { ...@@ -53,7 +53,7 @@ export default {
}) })
}, },
post(uri, data, headers) { post(uri, data, headers) {
headers = headers || { 'Content-Type': 'application/json; charset=UTF-8', 'Accept': 'application/json' } headers = headers || { 'Content-Type': 'application/json; charset=UTF-8', Accept: 'application/json' }
const formatData = function(data) { const formatData = function(data) {
let ret = '' let ret = ''
for (const it in data) { for (const it in data) {
......
...@@ -70,14 +70,14 @@ export default { ...@@ -70,14 +70,14 @@ export default {
}, },
data() { data() {
return { return {
goods:goods, goods: goods,
listHeight: [], listHeight: [],
scrollY: 0, scrollY: 0,
selectedFood: {} selectedFood: {}
} }
}, },
created(){ created() {
console.log('goods',goods) console.log('goods', goods)
}, },
computed: { computed: {
currentIndex() { currentIndex() {
...@@ -176,7 +176,7 @@ export default { ...@@ -176,7 +176,7 @@ export default {
this.$refs.shopcart.drop(event) this.$refs.shopcart.drop(event)
}) })
} }
}, }
// components: { // components: {
// shopcart, // shopcart,
// cartcontrol, // cartcontrol,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment