|
|
@@ -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);
|
|
|
- }
|
|
|
- })
|
|
|
- })
|
|
|
}
|
|
|
}
|
|
|
}
|