shish 3 سال پیش
والد
کامیت
9142fbcee5
2فایلهای تغییر یافته به همراه3 افزوده شده و 49 حذف شده
  1. 0 12
      ghsPad/src/api/group/index.js
  2. 3 37
      ghsPad/src/pages/home/components/leftGroup.vue

+ 0 - 12
ghsPad/src/api/group/index.js

@@ -1,13 +1 @@
 import https from '@/plugins/luch-request_0.0.7/request'
-
-export const getGroupList = data => {
-	return https.get('/group/list', data)
-}
-
-export const detail = data => {
-	return https.get('/group/detail', data)
-}
-
-export const del = data => {
-	return https.post('/group/del', data)
-}

+ 3 - 37
ghsPad/src/pages/home/components/leftGroup.vue

@@ -30,7 +30,6 @@
 <script>
 import settlePop from './settlePop'
 import toPayWay from './toPay'
-import {getGroupList,detail,del} from "@/api/group"
 import { list } from "@/mixins"
 import { createOrder} from '@/api/order'
 import productMins from "@/mixins/product"
@@ -66,7 +65,7 @@ export default {
         }
     },
     created(){
-        this.getGroupList()
+        
     },
     methods:{
 		payFinish(){
@@ -78,16 +77,7 @@ export default {
 			this.$util.hitVoice()
 		},
         getDetail(item){
-            this.$util.hitVoice()
-            uni.showLoading({mask:true})
-            detail({id:item.id}).then(res=>{
-                uni.hideLoading()
-                if(res.code == 1){
-                    this.groupInfo = res.data.info || []
-                    this.settleOpenStatus = 1
-                    this.$refs.settlePopRef.open('center')
-                }
-            })
+
         },
 		settleCommit(params){
 			uni.showLoading({mask:true})
@@ -110,20 +100,7 @@ export default {
 			this.listenScanItem()
 		},
         reachBottom() {
-            if (!this.list.finished) {
-                this.getGroupList().then((res) => {
-                    uni.stopPullDownRefresh();
-                });
-            } else {
-                uni.stopPullDownRefresh();
-            }
-        },
-        getGroupList(){
-            return getGroupList({page: this.list.page}).then(res=>{
-                if(res.code == 1){
-                    this.completes(res);
-                }
-            })
+
         },
 		cancelSettle(){
 			this.$util.hitVoice()
@@ -131,18 +108,7 @@ export default {
 			this.$refs.settlePopRef.close()
 		},
         delCombination(itemId){
-            let that = this
-            del({id:itemId}).then(res=>{
-				if(res.code == 1){
-				    that.$msg(res.msg)
-				}
 
-                getGroupList({page: this.list.page}).then(res=>{
-                    if(res.code == 1){
-                        this.completes(res);
-                    }
-                })
-			})
         }
     }
 }