陈冉 před 6 roky
rodič
revize
4cc11ee5d8

+ 4
- 3
src/pages/building/buildingdetail.vue Zobrazit soubor

@@ -157,7 +157,6 @@ export default {
157 157
     }),
158 158
 
159 159
     pages () {
160
-     window.console.log(1)
161 160
       const pages = []
162 161
       this.detail.buildingDatas.forEach((item, index) =>{
163 162
         const page =Math.floor(index / 7)
@@ -210,12 +209,14 @@ export default {
210 209
         //未收藏,添加收藏
211 210
         this.getAddCollect({
212 211
         buildingid: this.$route.query.id,
213
-        collect :this.$route.query.collect})
212
+        collect :this.$route.query.collect},
213
+        this.$toast("收藏成功"))
214 214
       }else{
215 215
         //已收藏,删除收藏
216 216
         this.getDeleteCollect({
217 217
         buildingid: this.$route.query.id,
218
-        collect :this.$route.query.collect})
218
+        collect :this.$route.query.collect},
219
+        this.$toast("取消收藏成功"))
219 220
       }
220 221
       window.console.log(buildingid)
221 222
       },

+ 0
- 1
src/store/buildingimage.js Zobrazit soubor

@@ -4,7 +4,6 @@ import getAPI from '../config/apis'
4 4
 export default {
5 5
     state: {
6 6
       detail: {}
7
-
8 7
     },
9 8
     mutations: {
10 9
         updateBuildingImage(state, detail) {

+ 0
- 1
src/store/collect.js Zobrazit soubor

@@ -15,7 +15,6 @@ export default {
15 15
     },
16 16
     actions: {
17 17
       getAddCollect({ commit }, params) {
18
-        window.console.log(222)
19 18
         return new Promise((resolve, reject) => {
20 19
           request({ ...getAPI('collect.addcollect', {buildingid: params.buildingid ,data: params }) }).then((data) => {
21 20
             commit('updateAddCollect', data)

+ 0
- 1
src/store/delete.js Zobrazit soubor

@@ -15,7 +15,6 @@ export default {
15 15
     },
16 16
     actions: {
17 17
         getDeleteCollect({ commit }, params) {
18
-        window.console.log(222)
19 18
         return new Promise((resolve, reject) => {
20 19
           request({ ...getAPI('deletecollect.delete', {buildingid: params.buildingid ,data: params }) }).then((data) => {
21 20
             commit('updateDeleteCollect', data)

+ 0
- 1
src/store/housenamelist.js Zobrazit soubor

@@ -13,7 +13,6 @@ export default {
13 13
     },
14 14
     actions: {
15 15
       getHouseNameList({ commit }, params) {
16
-        window.console.log(444)
17 16
         return new Promise((resolve, reject) => {
18 17
           request({ ...getAPI('housenamelist.getnamelist', { project_id: params.project_id }) }).then((data) => {
19 18
             commit('updateHouseNameList', data)

+ 0
- 1
src/store/lookhouse.js Zobrazit soubor

@@ -18,7 +18,6 @@ export default {
18 18
     },
19 19
     actions: {
20 20
       getLookHouse({ commit }, params) {
21
-          window.console.log(111)
22 21
         return new Promise((resolve, reject) => {
23 22
           request({ ...getAPI('lookhouse.subscribeinformation', { project_id: params.project_id}) }).then((data) => {
24 23
             commit('updateLookHouse', data)

+ 0
- 1
src/store/order.js Zobrazit soubor

@@ -14,7 +14,6 @@ export default {
14 14
     },
15 15
     actions: {
16 16
       postOrder({ commit }, data) {
17
-        window.console.log(555)
18 17
         return new Promise((resolve, reject) => {
19 18
           request({ ...getAPI('order.save', { data: data }) }).then((data) => {
20 19
             commit('updateOrder', data)

+ 0
- 1
src/store/typelist.js Zobrazit soubor

@@ -13,7 +13,6 @@ export default {
13 13
     },
14 14
     actions: {
15 15
       getTypeList({ commit,dispatch}, params) {
16
-        window.console.log(777)
17 16
         return new Promise((resolve, reject) => {
18 17
           request({ ...getAPI('typelist.gettypelist', { buildingid: params.buildingid,data: params  }) }).then((data) => {
19 18
            

+ 0
- 1
src/store/visitors.js Zobrazit soubor

@@ -13,7 +13,6 @@ export default {
13 13
     },
14 14
     actions: {
15 15
       postVisitors({ commit }, params) {
16
-        window.console.log(0)
17 16
         return new Promise((resolve, reject) => {
18 17
           request({ ...getAPI('visitors.add', { id:params.id, data:params}) }).then((data) => {
19 18
             commit('updateVisitors', data)