陈冉 6 years ago
parent
commit
4cc11ee5d8

+ 4
- 3
src/pages/building/buildingdetail.vue View File

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

+ 0
- 1
src/store/buildingimage.js View File

4
 export default {
4
 export default {
5
     state: {
5
     state: {
6
       detail: {}
6
       detail: {}
7
-
8
     },
7
     },
9
     mutations: {
8
     mutations: {
10
         updateBuildingImage(state, detail) {
9
         updateBuildingImage(state, detail) {

+ 0
- 1
src/store/collect.js View File

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

+ 0
- 1
src/store/delete.js View File

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

+ 0
- 1
src/store/housenamelist.js View File

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

+ 0
- 1
src/store/lookhouse.js View File

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

+ 0
- 1
src/store/order.js View File

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

+ 0
- 1
src/store/typelist.js View File

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

+ 0
- 1
src/store/visitors.js View File

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