diff --git a/pages.config.js b/pages.config.js index aa9f9be..126d7c5 100755 --- a/pages.config.js +++ b/pages.config.js @@ -88,6 +88,13 @@ export default defineUniPages({ navigationBarTitleText: '订单完成', }, }, + { + path: 'search', + aliasPath: '/search', + style: { + navigationBarTitleText: '', + }, + }, ], }, { @@ -211,8 +218,8 @@ export default defineUniPages({ // "van-checkbox": "/wxcomponents/vant-weapp/checkbox", // "van-cell-group": "/wxcomponents/vant-weapp/cell-group", // "van-checkbox-group": "/wxcomponents/vant-weapp/checkbox-group", - "van-rate": "/wxcomponents/vant-weapp/rate", - "van-icon": "/wxcomponents/vant-weapp/icon" + // "van-rate": "/wxcomponents/vant-weapp/rate", + // "van-icon": "/wxcomponents/vant-weapp/icon" // "van-tabbar": "/wxcomponents/@vant/weapp/tabbar/index", // "van-tabbar-item": "/wxcomponents/@vant/weapp/tabbar-item/index" } diff --git a/src/App.vue b/src/App.vue index 698a577..db4b865 100755 --- a/src/App.vue +++ b/src/App.vue @@ -18,6 +18,6 @@ export default { @import 'uview-plus/index.scss'; /* #ifdef MP-WEIXIN */ -@import '@/wxcomponents/vant-weapp/common/index.wxss'; +// @import '@/wxcomponents/vant-weapp/common/index.wxss'; /* #endif */ diff --git a/src/api/base/index.js b/src/api/base/index.js index 7e58fc9..aabfe17 100755 --- a/src/api/base/index.js +++ b/src/api/base/index.js @@ -84,4 +84,9 @@ export const fetchServerTypeList = params => * @desc 报告列表 */ export const fetchReportTypelList = params => - request.get('/reporttype/listAll', params) \ No newline at end of file + request.get('/reporttype/listAll', params) +/** + * @desc 轮播图 +*/ +export const fetchSwiperList = params => + request.get('/swiper/listAll', params) \ No newline at end of file diff --git a/src/api/order/index.js b/src/api/order/index.js index 2e7cfc6..46488bb 100755 --- a/src/api/order/index.js +++ b/src/api/order/index.js @@ -17,6 +17,11 @@ export const orderPay = data => */ export const orderInfo = params => request.get('/order/infomation', params) +/** + * @description 开始服务 +*/ +export const startOrder = params => + request.get('/order/start', params) /** * @description 获取取消原因列表 @@ -39,4 +44,29 @@ export const cancelOrder = data => * @description 申请退款 */ export const orderRefund = data => - request.post('/refound', data) \ No newline at end of file + request.post('/refound', data) +/** + * @description 订单完成 & 打分 +*/ +export const orderComentSubmit = data => + request.post('/comment/submit', data) +/** + * @description 订单完成 & 打分 详情 +*/ +export const orderComentInfo = params => + request.get('/comment/infomation', params) +/** + * @description 今日收入 +*/ +export const orderTodayIncome = data => + request.post('/order/todayIncome', data) +/** + * @description 提现 +*/ +export const cashSubmit = data => + request.post('/cash/submit', data) +/** + * @description 提现记录 +*/ +export const cashSubmitRecord = data => + request.post('/cash/record', data) \ No newline at end of file diff --git a/src/components/upload-img/upload-img.vue b/src/components/upload-img/upload-img.vue index f4707d2..8e18b6b 100755 --- a/src/components/upload-img/upload-img.vue +++ b/src/components/upload-img/upload-img.vue @@ -4,11 +4,12 @@ @delete="deletePic" accept="image" uploadIconColor="#999" - v-bind="omit($attrs, ['disabled', 'maxCount', 'maxSize'])" + v-bind="omit($attrs, ['maxCount', 'maxSize'])" :fileList="fileList" :deletable="!$attrs.disabled" :maxSize="10 * 1024 * 1024" :maxCount="$attrs.disabled ? fileList.length : $attrs.maxCount" + @clickPreview="clickPreview" /> @@ -23,7 +24,10 @@ const props = defineProps({ default: () => [] } }) -const fileList = ref(props.modelValue) +const fileList = ref([]) +watchEffect(() => { + fileList.value = props.modelValue +}) // 删除图片 const deletePic = (event) => { fileList.value.splice(event.index, 1) @@ -74,6 +78,10 @@ const afterRead = async (event) => { })) ) } + +const clickPreview = (item) => { + console.log('🚀 ~ file: upload-img.vue:83 ~ item:', item) +} diff --git a/src/pages/form/index.vue b/src/pages/form/index.vue index fb1e3de..515da98 100755 --- a/src/pages/form/index.vue +++ b/src/pages/form/index.vue @@ -1,7 +1,12 @@