diff --git a/components/newArchives/banquetBirthday.vue b/components/newArchives/banquetBirthday.vue index 6f40702..ce594bf 100644 --- a/components/newArchives/banquetBirthday.vue +++ b/components/newArchives/banquetBirthday.vue @@ -1,163 +1,176 @@ - - - - - - \ No newline at end of file diff --git a/components/newArchives/banquetFullMoon.vue b/components/newArchives/banquetFullMoon.vue index 23caefe..0a5ecba 100644 --- a/components/newArchives/banquetFullMoon.vue +++ b/components/newArchives/banquetFullMoon.vue @@ -1,163 +1,176 @@ - - - - - - \ No newline at end of file diff --git a/components/newArchives/banquetFuneral.vue b/components/newArchives/banquetFuneral.vue index 384474f..202d78b 100644 --- a/components/newArchives/banquetFuneral.vue +++ b/components/newArchives/banquetFuneral.vue @@ -1,176 +1,189 @@ - - - - - - \ No newline at end of file diff --git a/components/newArchives/banquetMarry.vue b/components/newArchives/banquetMarry.vue index 784f562..93724fb 100644 --- a/components/newArchives/banquetMarry.vue +++ b/components/newArchives/banquetMarry.vue @@ -1,171 +1,184 @@ - - - - - - \ No newline at end of file diff --git a/components/newArchives/banquetOther.vue b/components/newArchives/banquetOther.vue index e7caddc..5344698 100644 --- a/components/newArchives/banquetOther.vue +++ b/components/newArchives/banquetOther.vue @@ -117,11 +117,24 @@ \ No newline at end of file diff --git a/components/newArchives/deepProcessing.vue b/components/newArchives/deepProcessing.vue index aabf1e7..4502ce8 100644 --- a/components/newArchives/deepProcessing.vue +++ b/components/newArchives/deepProcessing.vue @@ -1,285 +1,298 @@ - - - - - - \ No newline at end of file diff --git a/components/newArchives/houseDecoration.vue b/components/newArchives/houseDecoration.vue index 7dd9a89..67ee412 100644 --- a/components/newArchives/houseDecoration.vue +++ b/components/newArchives/houseDecoration.vue @@ -1,143 +1,177 @@ - - - - - \ No newline at end of file diff --git a/components/newArchives/houseRenovate.vue b/components/newArchives/houseRenovate.vue index 4d74f45..2609004 100644 --- a/components/newArchives/houseRenovate.vue +++ b/components/newArchives/houseRenovate.vue @@ -1,133 +1,164 @@ - - - - - \ No newline at end of file diff --git a/components/newArchives/houseRepair.vue b/components/newArchives/houseRepair.vue index 7ed750e..b7178f1 100644 --- a/components/newArchives/houseRepair.vue +++ b/components/newArchives/houseRepair.vue @@ -1,66 +1,103 @@ \ No newline at end of file diff --git a/components/newArchives/houseTransaction.vue b/components/newArchives/houseTransaction.vue index 789f666..003c79e 100644 --- a/components/newArchives/houseTransaction.vue +++ b/components/newArchives/houseTransaction.vue @@ -1,57 +1,84 @@ \ No newline at end of file diff --git a/components/newArchives/thickProcessing.vue b/components/newArchives/thickProcessing.vue index 874880a..d947dae 100644 --- a/components/newArchives/thickProcessing.vue +++ b/components/newArchives/thickProcessing.vue @@ -1,269 +1,282 @@ - - - - - - \ No newline at end of file diff --git a/subpkg/archivesDetail/archivesDetail.vue b/subpkg/archivesDetail/archivesDetail.vue index a4d982f..b07ff3e 100644 --- a/subpkg/archivesDetail/archivesDetail.vue +++ b/subpkg/archivesDetail/archivesDetail.vue @@ -1,18 +1,18 @@ \ No newline at end of file diff --git a/subpkg/topUp/topUp.vue b/subpkg/topUp/topUp.vue index a8b9d59..2c028ae 100644 --- a/subpkg/topUp/topUp.vue +++ b/subpkg/topUp/topUp.vue @@ -42,8 +42,6 @@ payMoney: { money: '' }, - // 微信支付信息 - payData: null, payTimer: null, timeCount: 5, task_id: -1, //任务id,当为任务时,不可自选充值金额 @@ -64,28 +62,6 @@ this.loadTask(); } }, - onShow() { - if(this.payData){ - payStatus({ - order_id: payData.order_id, - from: payData.from, - }).then((status)=>{ - uni.showToast({ - icon: status.data.pay_status?'success':'none', - title: status.data.pay_status?'支付成功':'支付失败' - }) - if(this.task_id>0){ - uni.$emit('upBuyShare'); - uni.navigateBack(); - } - else{ - userInfo().then(user=>{ - this.$store.commit('setUserInfo', user.data); - }) - } - }) - } - }, methods: { changePrice(index){ if(this.changeMoney == index)this.changeMoney = -1; @@ -110,7 +86,7 @@ pay(){ if(!this.payMoney.money)return Toast('请先填写充值金额!') if(this.payMoney.money<=0)return Toast('充值金额不能小于0!') - if(!this.payTimer){ + if(this.payTimer==null){ this.goRecharge(); this.payTimer = setInterval(()=>{ this.timeCount--; @@ -135,7 +111,6 @@ queryData.task_id = this.task_id; } let { data } = await recharge(queryData); - this.payData = data; let res = await payWay({ order_id: data.order_id, from: data.from, @@ -171,6 +146,24 @@ success: (e) => { // console.log('成功', e); uni.hideLoading(); + payStatus({ + order_id: data.order_id, + from: data.from, + }).then((status)=>{ + uni.showToast({ + icon: status.data.pay_status?'success':'none', + title: status.data.pay_status?'支付成功':'支付失败' + }) + if(this.task_id>0){ + uni.$emit('upBuyShare'); + uni.navigateBack(); + } + else{ + userInfo().then(user=>{ + this.$store.commit('setUserInfo', user.data); + }) + } + }) }, fail: (e) => { console.log(e); diff --git a/subpkg/updateArchives/updateArchives.vue b/subpkg/updateArchives/updateArchives.vue index 8ae0506..dcfdf37 100644 --- a/subpkg/updateArchives/updateArchives.vue +++ b/subpkg/updateArchives/updateArchives.vue @@ -55,7 +55,7 @@ keyName="name" @change="changeHandler" @cancel="demandShow = false" @confirm="changeDemand"> - + @@ -105,7 +105,6 @@ }, data() { return { - listMap: new Map(), demandShow: false, demandLoading: false, demandList: [], //更多需求 @@ -135,15 +134,9 @@ this.task_id = +options.task_id || 0; this.initInformationDetails({ id: options.id }); this.initCategoryBusinessList(); - this.initMap(); }, onShow() {}, methods: { - initMap() { - comonentList.forEach(item => { - this.listMap.set(item.id, item.name); - }) - }, async initInformationDetails(id) { let res = await informationDetails(id); this.formData = res.data; @@ -153,6 +146,7 @@ if (this.showDemandList.length == 0) return Toast('请先添加需求!'); let refsDatas = await this.loadRefsDatas(); if (!this.updateFlag) return; + // return ; uni.showLoading({ title: '正在更新...', mask: true @@ -201,10 +195,13 @@ // 初始化商机分类 async initCategoryBusinessList() { let res = await categoryBusinessList(); - // this.demandList = res.data; - this.demandList = res.data.filter(item => item.id == 6); - this.demandList[0].children = this.demandList[0].children.filter(item => item.id == 7 || item.id == 8 || item - .id == 32); + res.data = res.data.filter((item)=>{ + return item.status!=0; + }) + this.demandList = res.data; + // this.demandList = res.data.filter(item => item.id == 6); + // this.demandList[0].children = this.demandList[0].children.filter(item => item.id == 7 || item.id == 8 || item + // .id == 32); this.demandListChild = this.demandList[0].children; }, // 选择更多需求