diff --git a/App.vue b/App.vue
index 0bb195b..839c098 100644
--- a/App.vue
+++ b/App.vue
@@ -61,8 +61,9 @@
this.getBannerList(),
this.getPricePreviewList(),
this.getConfigData(),
+ this.getQrCode()
]
- this.getQrCode()
+
await Promise.all(promises)
// 确保进度达到100%
diff --git a/api/model/index.js b/api/model/index.js
index 0513b09..9ebe757 100644
--- a/api/model/index.js
+++ b/api/model/index.js
@@ -212,6 +212,21 @@ const api = {
method: 'GET',
auth : true,
},
+ getcheckoutReasons: {
+ url: '/recycle-admin/applet/order/getcheckoutReasons',
+ method: 'GET',
+ auth: true,
+ },
+ submitQualityInfo: {
+ url: '/recycle-admin/applet/info_team_order/submitQualityInfo',
+ method: 'POST',
+ auth: true,
+ },
+ cancelOrder: {
+ url: '/recycle-admin/applet/order/cancelOrder',
+ method: 'POST',
+ auth: true,
+ },
}
export default api
\ No newline at end of file
diff --git a/config.js b/config.js
index eba31b4..081fdcd 100644
--- a/config.js
+++ b/config.js
@@ -2,9 +2,6 @@
const type = 'dev'
const config = {
- local: {
- baseUrl: 'http://127.0.0.1',
- },
dev: {
baseUrl: 'http://h5.xzaiyp.top',
},
diff --git a/pages.json b/pages.json
index b0a608a..f3fffc4 100644
--- a/pages.json
+++ b/pages.json
@@ -31,23 +31,6 @@
}
],
"subPackages": [
- {
- "root": "pages/mine",
- "pages": [
- {
- "path": "recyclingDestination",
- "style": {
- "navigationStyle": "custom"
- }
- },
- {
- "path": "questionDetail",
- "style": {
- "navigationStyle": "custom"
- }
- }
- ]
- },
{
"root": "pages/subcomponent",
"pages": [
diff --git a/pages/baoyou-city/baoyou-city.vue b/pages/baoyou-city/baoyou-city.vue
index a8aa39a..e883fff 100644
--- a/pages/baoyou-city/baoyou-city.vue
+++ b/pages/baoyou-city/baoyou-city.vue
@@ -9,9 +9,7 @@
-
+
@@ -67,12 +65,6 @@ export default {
}
});
},
- computed: {
- city_banner() {
- const item = getApp().globalData.configData.find(i => i.keyName === 'city_banner')
- return item ? item.keyContent : ''
- }
- },
methods: {
goBack() {
uni.navigateBack()
diff --git a/pages/component/home.vue b/pages/component/home.vue
index 8ff9bd7..5ab01c0 100644
--- a/pages/component/home.vue
+++ b/pages/component/home.vue
@@ -8,7 +8,7 @@
:interval="3000"
:duration="500"
circular
- style="width: 100%; height: 320rpx;"
+ style="width: 100%; height: 380rpx;"
>
-
+
{{item.title}}
- {{item.description}}
+ {{item.desc}}
@@ -200,22 +197,22 @@ export default {
{
icon: '/static/home/爱心援乡.png',
title: '爱心援乡',
- description: '精准帮扶贫困群体'
+ desc: '精准帮扶贫困群体'
},
{
icon: '/static/home/回塑新源.png',
title: '回塑新源',
- description: '塑料的第二次成型'
+ desc: '塑料的第二次成型'
},
{
icon: '/static/home/织物出海.png',
title: '织物出海',
- description: '分拣出最高价值'
+ desc: '分拣出最高价值'
},
{
icon: '/static/home/碳循再生.png',
title: '碳循再生',
- description: '减碳从出发生系统'
+ desc: '减碳从出发生系统'
}
],
bannerList: [],
@@ -339,12 +336,6 @@ export default {
}
})
},
- getRecyclingDestination() {
- this.$api('getRecyclingDestination')
- .then(res => {
- this.destinations = res.result
- })
- },
goToInspectionReport(item) {
uni.navigateTo({
url: `/pages/subcomponent/inspection-report?id=${item.id}`
@@ -424,7 +415,6 @@ export default {
// 监听全局数据更新
uni.$on('configDataUpdated', this.updateCionData);
this.getPricePreview();
- this.getRecyclingDestination()
},
}
@@ -445,7 +435,7 @@ export default {
.banner {
width: 100%;
- height: 330rpx;
+ height: 390rpx;
position: relative;
overflow: hidden;
border-radius: 0 0 30rpx 30rpx;
diff --git a/pages/component/my.vue b/pages/component/my.vue
index 0518940..c309849 100644
--- a/pages/component/my.vue
+++ b/pages/component/my.vue
@@ -393,8 +393,8 @@ export default {
return getApp().globalData.bannerList || []
},
myBannerImage() {
- const item = getApp().globalData.configData.find(i => i.keyName === 'user_banner')
- return item ? item.keyContent : ''
+ const banner = (getApp().globalData.bannerList || []).find(item => item.title === '我的-轮播图');
+ return banner ? banner.image : '';
},
userTypeText() {
// 0 普通用户, 1 推广达人, 2 推广大使
@@ -452,7 +452,7 @@ export default {
}
.banner {
- height: 320rpx;
+ height: 400rpx;
background: #ff6b35;
position: relative;
overflow: hidden;
diff --git a/pages/component/recycle copy.vue b/pages/component/recycle copy.vue
index b34939a..134e98e 100644
--- a/pages/component/recycle copy.vue
+++ b/pages/component/recycle copy.vue
@@ -249,7 +249,7 @@
- {{ item.desc }}
+
¥{{ item.unitPrice }}/件
x{{ item.quantity }}