diff --git a/api/model/login.js b/api/model/login.js
index 3413dd6..3072319 100644
--- a/api/model/login.js
+++ b/api/model/login.js
@@ -7,7 +7,7 @@ const api = {
method: 'GET',
limit: 500,
},
- // 获取绑定手机号码
+ // 绑定手机号码
bindPhone: {
url: '/teambuy/login/bindPhone',
method: 'GET',
diff --git a/api/model/my.js b/api/model/my.js
index ea47dfa..eae248b 100644
--- a/api/model/my.js
+++ b/api/model/my.js
@@ -22,12 +22,6 @@ const api = {
limit: 500
},
- // 我的-修改个人信息
- // updateUser: {
- // url: '/teambuy/userInfo/updateUser',
- // method: 'POST'
- // },
-
// 我的-团长申请
addLeader: {
url: '/teambuy/leader/addLeader',
@@ -35,19 +29,13 @@ const api = {
limit: 500
},
- // 我的- 解绑团长
+ // 我的-解绑团长
deleteLeader: {
url: '/teambuy/leader/deleteLeader',
method: 'POST',
limit: 500
},
- // 我的-查询团长列表
- queryLeaderList: {
- url: '/teambuy/leader/queryLeaderList',
- method: 'POST',
- limit: 500
- },
// 我的-更换团长
updateLeader: {
@@ -56,19 +44,33 @@ const api = {
limit: '500'
},
- // 我的-查询团长列表
- queryLeaderList : {
- url: '/teambuy/leader/queryLeaderList',
- method: 'POST',
- limit: 500
- },
-
// 我的-查询团长列表(下单选择地址)
queryLeaderList: {
url: '/teambuy/leader/queryLeaderList',
method: 'GET',
limit: 500
},
+
+ // 我的-查询团长信息
+ queryLeaderInfo: {
+ url: '/teambuy/leader/queryLeaderInfo',
+ method: 'GET',
+ limit: 500
+ },
+
+ // 我的-我的团员
+ queryMemberList: {
+ url: '/teambuy/leader/queryMemberList',
+ method: 'GET',
+ limit: 500
+ },
+
+ // 我的-修改团长信息
+ updateLeaderInfo: {
+ url: '/teambuy/leader/updateLeaderInfo',
+ method: 'POST',
+ limit: 500
+ },
// 钱包-充值回调
CashNotify: {
@@ -89,7 +91,8 @@ const api = {
url: '/teambuy/amount/queryAmountLog',
method: 'POST',
limit: 500
- }
+ },
+
}
diff --git a/api/model/order.js b/api/model/order.js
index 7c40f78..946e2bd 100644
--- a/api/model/order.js
+++ b/api/model/order.js
@@ -110,6 +110,13 @@ const api = {
url: '/teambuy/order/informOrderOne',
method: 'POST',
limit: 500
+ },
+
+ // 订单-订单售后
+ addAfterService: {
+ url: '/teambuy/afterservice/addAfterService',
+ method: 'POST',
+ limit: 500
}
}
diff --git a/components/order/OrderItem.vue b/components/order/OrderItem.vue
index be8d38f..fff761b 100644
--- a/components/order/OrderItem.vue
+++ b/components/order/OrderItem.vue
@@ -91,7 +91,7 @@ export default {
},
gotoSale() {
this.$utils.navigateTo({
- url: '/pages_order/order/afterSale?id=' + this.order.id
+ url: '/pages_order/order/afterSale?id=' + this.order.id + '&userId=' + this.order.userId + '&orderId=' + this.order.orderLeaderId
})
},
// 取餐完成
diff --git a/config.js b/config.js
index e15a57d..6299105 100644
--- a/config.js
+++ b/config.js
@@ -28,19 +28,19 @@ const config = {
// 默认配置
const defaultConfig = {
- mapKey: 'XMBBZ-BCPCV-SXPPQ-5Y7MY-PHZXK-YFFVU',
+ mapKey: 'N4JBZ-JAXCL-PR7P5-EZQGJ-N7EVH-BDF3M',
aliOss: {
- url: 'https://image.hhlm1688.com/',
+ url: 'https://img.gwrx666.com/',
config: {
//桶的地址
region: 'oss-cn-guangzhou',
//id
- accessKeyId: 'LTAI5tQSs47izVy8DLVdwUU9',
+ accessKeyId: 'LTAI5tH9gsQGSmDE3TtLzCqe',
//密钥
- accessKeySecret: 'qHI7C3PaXYZySr84HTToviC71AYlFq',
+ accessKeySecret: 'iPBIWop0GOYKew65TJvEcKFOISlPUs',
//桶的名字
- bucket: 'hanhaiimage',
- endpoint: 'oss-cn-shenzhen.aliyuncs.com',
+ bucket: 'gwrx666',
+ endpoint: 'oss-cn-guangzhou.aliyuncs.com',
}
},
}
diff --git a/pages/index/category.vue b/pages/index/category.vue
index 78b5171..049ce26 100644
--- a/pages/index/category.vue
+++ b/pages/index/category.vue
@@ -121,6 +121,11 @@ export default {
})
}
},
+ onShow() {
+ this.mixinsListApi = 'queryGoodsList'
+ this.queryParams.categoryId = this.category[this.currentChildren].id
+ this.getData()
+ },
methods: {
change(e) {
this.currentChildren = e
diff --git a/pages_order/mine/myTeam.vue b/pages_order/mine/myTeam.vue
index 6afb62f..0324259 100644
--- a/pages_order/mine/myTeam.vue
+++ b/pages_order/mine/myTeam.vue
@@ -35,7 +35,7 @@
diff --git a/pages_order/order/afterSale.vue b/pages_order/order/afterSale.vue
index 8ba6787..83b0cde 100644
--- a/pages_order/order/afterSale.vue
+++ b/pages_order/order/afterSale.vue
@@ -8,7 +8,7 @@
-
+
请描述具体问题
@@ -20,20 +20,20 @@
-
+
请提供相关问题的截图或图片
-
+
-
+
-
+
添加图片
@@ -43,11 +43,11 @@
-
+
联系方式
-
+
@@ -71,8 +71,9 @@
orderId: '',
problemDescription: '',
uploadedImages: [],
- contactInfo: '15070023168', // 默认联系方式,实际应该从用户信息中获取
- orderDetail: null
+ contactInfo: '', // 默认联系方式,实际应该从用户信息中获取
+ orderDetail: null,
+ idObject:{}
}
},
onLoad(options) {
@@ -88,32 +89,48 @@
uni.navigateBack()
},
- // 获取订单详情
- getOrderDetail(id) {
- // 从上一页获取订单信息
- const pages = getCurrentPages()
- const prevPage = pages[pages.length - 2]
+ // // 获取订单详情
+ // getOrderDetail(id) {
+ // // 从上一页获取订单信息
+ // const pages = getCurrentPages()
+ // const prevPage = pages[pages.length - 2]
- if (prevPage && prevPage.route.includes('order')) {
- // 查找匹配ID的订单
- const foundOrder = prevPage.$vm.orderList.find(order => order.id === id)
- if (foundOrder) {
- this.orderDetail = foundOrder
- }
- }
- },
+ // if (prevPage && prevPage.route.includes('order')) {
+ // // 查找匹配ID的订单
+ // const foundOrder = prevPage.$vm.orderList.find(order => order.id === id)
+ // if (foundOrder) {
+ // this.orderDetail = foundOrder
+ // }
+ // }
+ // },
// 选择图片
chooseImage() {
- uni.chooseImage({
- count: 9 - this.uploadedImages.length,
- sizeType: ['compressed'],
- sourceType: ['album', 'camera'],
- success: (res) => {
+ // uni.chooseImage({
+ // count: 9 - this.uploadedImages.length,
+ // sizeType: ['compressed'], // 压缩图
+ // sourceType: ['album', 'camera'], // 相册和相机
+ // success: (res) => {
+ // console.log('图片上传',res);
+
// 预览图片
- this.uploadedImages = [...this.uploadedImages, ...res.tempFilePaths]
+ // this.uploadedImages = [...this.uploadedImages, ...res.tempFilePaths]
+ this.$Oss.ossUploadImage({
+ key: '', // 不传则自动生成
+ folder: '', // 不传则使用日期作为文件夹
+ compressed: true,
+ success: (url) => {
+ this.uploadedImages.push(url)
+ },
+ fail: (err) => {
+ uni.showToast({
+ title: `上传失败${err}`,
+ icon: 'error'
+ })
}
})
+ // }
+ // })
},
// 删除图片
@@ -127,7 +144,7 @@
if (!this.problemDescription.trim()) {
uni.showToast({
title: '请描述您的问题',
- icon: 'none'
+ icon: 'error'
})
return
}
@@ -136,25 +153,45 @@
uni.showLoading({
title: '正在提交...'
})
-
- // 模拟上传图片
- setTimeout(() => {
- // 模拟表单提交
- setTimeout(() => {
- uni.hideLoading()
-
- uni.showToast({
+
+ this.$api('addAfterService', {
+ ...this.idObject,
+ phone: this.contactInfo,
+ content: this.problemDescription,
+ images: this.uploadedImages
+ }, res => {
+ uni.hideLoading()
+ if (res.code == 200) {
+ uni.showModal({
title: '提交成功',
- icon: 'success',
- duration: 2000
+ content: '您的售后申请已提交,请等待审核',
+ confirmColor: '#019245',
+ showCancel: false,
+ success: () => {
+ uni.navigateBack()
+ }
})
-
- // 延迟后返回
- setTimeout(() => {
- this.navigateBack()
- }, 1500)
- }, 1000)
- }, 1000)
+ } else {
+ uni.showToast({
+ title: res.msg,
+ icon: 'error'
+ })
+ }
+ })
+ },
+
+ },
+ onLoad(arg) {
+ if (arg.orderId && arg.userId && arg.id){
+ this.idObject = {
+ ...arg
+ }
+ }else {
+ uni.showToast({
+ title: '数据不足',
+ icon: 'error'
+ })
+ this.$util.navigateBack()
}
}
}
@@ -268,9 +305,14 @@
.contact-tip {
font-size: 26rpx;
color: #999;
- // margin-bottom: 10rpx;
+ color: black ;
+ // margin-bottom: 10rpx;
display: block;
}
+
+ .contact-placeholder {
+ color: #999;
+ }
.contact-value {
font-size: 28rpx;