diff --git a/api/order/task.js b/api/order/task.js index 313a0e7..7108696 100644 --- a/api/order/task.js +++ b/api/order/task.js @@ -1,10 +1,10 @@ import upload from '@/utils/upload' import request from '@/utils/request' -// 查询任务列表 +// 查询待领取任务列表 export function getTaskList(params) { return request({ - url: '/applet/mall/task/list', + url: '/h5/mall/task/list', headers: { "isToken": true }, @@ -13,10 +13,33 @@ export function getTaskList(params) { }) } -// 查询任务详情 +// 查询已领取任务列表 +export function getTaskListByUser(params) { + return request({ + url: '/h5/mall/task/listByUser', + headers: { + "isToken": true + }, + method: 'get', + params + }) +} + +// 查询待领取任务详情 export function getTaskDetail(params) { return request({ - url: '/applet/mall/task/taskDetail/' + params, + url: '/h5/mall/task/taskDetail/' + params, + headers: { + "isToken": true + }, + method: 'get', + }) +} + +// 查询待领取任务详情 +export function getTaskDetailUser(params) { + return request({ + url: '/h5/mall/task/taskUserDetail/' + params, headers: { "isToken": true }, @@ -27,7 +50,7 @@ export function getTaskDetail(params) { // 接受任务 export function acceptTask(params) { return request({ - url: '/applet/mall/task/acceptTask', + url: '/h5/mall/task/acceptTask', headers: { "isToken": true }, @@ -39,11 +62,23 @@ export function acceptTask(params) { // 提交任务 export function submitTask(data) { return request({ - url: '/applet/mall/task/submitTask', + url: '/h5/mall/task/submitTask', headers: { "isToken": true }, method: 'post', data }) -} \ No newline at end of file +} + + +// 任务统计 +export function getTaskStat() { + return request({ + url: '/h5/mall/task/taskStat', + headers: { + "isToken": true + }, + method: 'get', + }) +} diff --git a/doc/Group 1000001612.png b/doc/Group 1000001612.png new file mode 100644 index 0000000..19fd784 Binary files /dev/null and b/doc/Group 1000001612.png differ diff --git a/doc/Group 1000001612@2x.png b/doc/Group 1000001612@2x.png new file mode 100644 index 0000000..9f17b75 Binary files /dev/null and b/doc/Group 1000001612@2x.png differ diff --git a/doc/Group 1000001612@3x.png b/doc/Group 1000001612@3x.png new file mode 100644 index 0000000..3fd2f1c Binary files /dev/null and b/doc/Group 1000001612@3x.png differ diff --git a/doc/Group 1000001821.png b/doc/Group 1000001821.png new file mode 100644 index 0000000..6c15cc5 Binary files /dev/null and b/doc/Group 1000001821.png differ diff --git a/doc/Group 1000001821@2x.png b/doc/Group 1000001821@2x.png new file mode 100644 index 0000000..3dd63a3 Binary files /dev/null and b/doc/Group 1000001821@2x.png differ diff --git a/doc/Group 1000001821@3x.png b/doc/Group 1000001821@3x.png new file mode 100644 index 0000000..1024c90 Binary files /dev/null and b/doc/Group 1000001821@3x.png differ diff --git a/doc/Group 1000001821_slices.zip b/doc/Group 1000001821_slices.zip new file mode 100644 index 0000000..9fefc8f Binary files /dev/null and b/doc/Group 1000001821_slices.zip differ diff --git a/doc/wechat_2025-08-07_194518_960.png b/doc/wechat_2025-08-07_194518_960.png new file mode 100644 index 0000000..1e56d36 Binary files /dev/null and b/doc/wechat_2025-08-07_194518_960.png differ diff --git a/main.js b/main.js index 6cb6945..0f91aab 100644 --- a/main.js +++ b/main.js @@ -23,6 +23,28 @@ Vue.mixin(share) // 创建一个空的Vue实例作为事件中心 Vue.prototype.$eventHub = new Vue() +Vue.prototype.uploadFilePromise = function(url) { + return new Promise((resolve, reject) => { + let a = uni.uploadFile({ + url: 'https://store-test.catmdogd.com/test-api/h5/oss/upload', + filePath: url, + name: 'file', + formData: { + user: 'test' + }, + success: (res) => { + setTimeout(() => { + if (res && res.data) { + let resData = JSON.parse(res.data); + resolve(resData.url); + } + reject("上传失败"); + }, 1000) + } + }); + }) +} + Vue.prototype.initGlobalData = function() { Vue.prototype.$globalData = { diff --git a/mixins/configList.js b/mixins/configList.js index edc8205..8a38537 100644 --- a/mixins/configList.js +++ b/mixins/configList.js @@ -13,7 +13,7 @@ export default { } }, computed: { - ...mapState(['configList', 'userInfo', 'buyInfo', 'price_config']), + ...mapState(['configList', 'userInfo', 'buyInfo', 'price_config', 'configMap']), // currentPagePath() { // const pages = getCurrentPages(); // const currentPage = pages[pages.length - 1]; diff --git a/pages.json b/pages.json index 5fe2fe7..58be278 100644 --- a/pages.json +++ b/pages.json @@ -454,6 +454,15 @@ "enablePullDownRefresh": false, "navigationBarTextStyle": "white" } + }, + { + "path": "newUser/index", + "style": { + "navigationBarTitleText": "新用户专享", + "navigationBarBackgroundColor": "#FFBF60", + "enablePullDownRefresh": false, + "navigationBarTextStyle": "white" + } } ] } diff --git a/pages/components/NewUserCoupon.vue b/pages/components/NewUserCoupon.vue index f2fdc1a..241cd0f 100644 --- a/pages/components/NewUserCoupon.vue +++ b/pages/components/NewUserCoupon.vue @@ -1,120 +1,151 @@ \ No newline at end of file diff --git a/pages/index.vue b/pages/index.vue index c7207c0..c4ffb26 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -1,7 +1,7 @@