diff --git a/api/system/user.js b/api/system/user.js
index c094c85..b8040ac 100644
--- a/api/system/user.js
+++ b/api/system/user.js
@@ -3,152 +3,154 @@ import request from '@/utils/request'
// 用户密码重置
export function updateUserPwd(oldPassword, newPassword) {
- const data = {
- oldPassword,
- newPassword
- }
- return request({
- url: '/system/user/profile/updatePwd',
- method: 'put',
- params: data
- })
+ const data = {
+ oldPassword,
+ newPassword
+ }
+ return request({
+ url: '/system/user/profile/updatePwd',
+ method: 'put',
+ params: data
+ })
}
// 查询用户个人信息
export function getUserProfile() {
- return request({
- url: '/system/user/profile',
- method: 'get'
- })
+ return request({
+ url: '/system/user/profile',
+ method: 'get'
+ })
}
// 修改用户个人信息
export function updateUserProfile(data) {
- return request({
- url: '/system/user/profile',
- method: 'put',
- data: data
- })
+ return request({
+ url: '/system/user/profile',
+ method: 'put',
+ data: data
+ })
}
// 用户头像上传
export function uploadAvatar(data) {
- return upload({
- url: '/system/user/profile/avatar',
- name: data.name,
- filePath: data.filePath
- })
+ return upload({
+ url: '/system/user/profile/avatar',
+ name: data.name,
+ filePath: data.filePath
+ })
}
// 人员列表
-export function getStaffList(){
+export function getStaffList() {
return request({
- url: '/h5/staff/list',
- method: 'get'
+ url: '/h5/staff/list',
+ method: 'get'
})
}
// 产品列表
-export function getProductList(data){
+export function getProductList(data) {
return request({
- url: '/no-auth/product/list',
- method: 'post',
- data:data
+ url: '/no-auth/product/list',
+ method: 'post',
+ data: data
})
}
// 产品详情
-export function getProductDetails(data){
+export function getProductDetails(data) {
return request({
- url: `/no-auth/product/detail/${data}`,
- method: 'get',
+ url: `/no-auth/product/detail/${data}`,
+ method: 'get',
})
}
// 字典
-export function getDictList(type){
+export function getDictList(type) {
return request({
- url: `/h5/system/dict/data/type/${type}`,
- method: 'get'
+ url: `/h5/system/dict/data/type/${type}`,
+ method: 'get'
})
}
//获取openId
-export function getOpenId(code){
+export function getOpenId(code) {
return request({
- url: `/no-auth/wechat/getOpenId?code=${code}`,
- method: 'get'
+ url: `/no-auth/wechat/getOpenId?code=${code}`,
+ method: 'get'
})
}
// 创建订单
-export function createOrder(data){
+export function createOrder(data) {
return request({
- url: `/no-auth/appointment/add`,
- method: 'post',
- data:data
+ url: `/no-auth/appointment/add`,
+ method: 'post',
+ data: data
})
}
// 创建订单新
-export function createOrderNew(data){
+export function createOrderNew(data) {
return request({
- url: `/h5/appointment/add`,
- method: 'post',
- headers:{ "isToken":true},
- data:data
+ url: `/h5/appointment/add`,
+ method: 'post',
+ headers: {
+ "isToken": true
+ },
+ data: data
})
}
-export function getOrderList(data){
+export function getOrderList(params) {
return request({
- url: `/h5/order/listByOpenid?status=${data.status}&openid=${data.openId}&page=${data.page}&size=${data.size}`,
- method: 'get'
+ url: `/h5/order/listByOpenid`,
+ method: 'get',
+ params,
})
}
-export function getBannerList(){
+export function getBannerList() {
return request({
- url: `/h5/system/dict/data/type/sys_banner`,
- method: 'get'
+ url: `/h5/system/dict/data/type/sys_banner`,
+ method: 'get'
})
}
-export function getCity(){
+export function getCity() {
return request({
- url: `/h5/system/config/order.city.list`,
- method: 'get'
+ url: `/h5/system/config/order.city.list`,
+ method: 'get'
})
}
-export function getCouponList(){
+export function getCouponList() {
return request({
- url: `/h5/coupon/list`,
- headers:{ "isToken":true},
- method: 'get'
+ url: `/h5/coupon/list`,
+ headers: {
+ "isToken": true
+ },
+ method: 'get'
})
}
-export function receiveCoupon(data){
+export function receiveCoupon(data) {
return request({
- url: `/h5/coupon/get`,
- headers:{ "isToken":true},
- method: 'post',
- data
+ url: `/h5/coupon/get`,
+ headers: {
+ "isToken": true
+ },
+ method: 'post',
+ data
})
}
-export function getCouponListNoAuth(){
+export function getCouponListNoAuth() {
return request({
- url: `/no-auth/h5/coupon/list`,
- method: 'get'
+ url: `/no-auth/h5/coupon/list`,
+ method: 'get'
})
}
//获取手机号
-export function getPhoneNumber(data){
+export function getPhoneNumber(data) {
return request({
- url: `/no-auth/wechat/getPhoneNumber`,
- method: 'post',
- data
+ url: `/no-auth/wechat/getPhoneNumber`,
+ method: 'post',
+ data
})
-}
-
-
-
-
-
+}
\ No newline at end of file
diff --git a/pages/details/feed.vue b/pages/details/feed.vue
index 59c4a45..e859d39 100644
--- a/pages/details/feed.vue
+++ b/pages/details/feed.vue
@@ -123,6 +123,8 @@
"skuId": this.skus[0].id,
"quantity": 1
}
+ this.$store.commit('setPosition', {})
+ this.buyInfo.teacher = null
this.$globalData.newOrderData={
currentAddress:{},
currentPets:[],
diff --git a/pages/details/walk.vue b/pages/details/walk.vue
index 13f4f71..2879429 100644
--- a/pages/details/walk.vue
+++ b/pages/details/walk.vue
@@ -122,6 +122,8 @@
"skuId": this.skus[0].id,
"quantity": 1
}
+ this.$store.commit('setPosition', {})
+ this.buyInfo.teacher = null
this.$globalData.newOrderData={
currentAddress:{},
currentPets:[],
diff --git a/pages/newOrder/confirmOrder.vue b/pages/newOrder/confirmOrder.vue
index 076a970..5aca76c 100644
--- a/pages/newOrder/confirmOrder.vue
+++ b/pages/newOrder/confirmOrder.vue
@@ -1,16 +1,16 @@
-
-
+
+
-
+
服务地址
-
+
{{currentAddress.province}} {{currentAddress.city}} {{currentAddress.detailAddress}}
@@ -19,7 +19,7 @@
{{currentAddress.name}}
-
+
{{currentAddress.phone}}
@@ -42,32 +42,34 @@
-
+
-
+
-
+
{{item.name}}
-
-
+
+
-
+
{{ item.pets.map(e=>e.serviceDate).join(';') }}
-
+
- 共 {{item.pets.length}} 天
+ 共 {{item.pets.length}} 天
@@ -89,51 +91,63 @@
-
-
+
+
-
+
{{ item.date }}
-
- {{baseProduct}}
- {{item.customServicesTotalCnt? ' + 定制服务' + item.customServicesTotalCnt + '项' : '' }}
+
+
+ {{baseProduct}}
+ {{item.customServicesTotalCnt? ' + 定制服务' + item.customServicesTotalCnt + '项' : '' }}
+
¥{{ item.totalCost }}.00
-
+
-
+
基础服务
-
+
- - {{ item2.itemName }}
- ¥{{ item2.price }} × {{ item2.quantity }} {{ item2.unit }}
+ - {{ item2.itemName }}
+
+ ¥{{ item2.price }} ×
+ {{ item2.quantity }} {{ item2.unit }}
定制服务
-
+
-
+
{{ pet.name}}
-
+
- {{ customItem.name }}
¥{{ customItem.price }} × {{ customItem.quantity }} 次
-
+
@@ -149,7 +163,7 @@
平台优惠
- -¥{{ discount }}
+ -¥{{ discount }}
@@ -157,7 +171,7 @@
会员折扣
{{ currentMember.itemType }}
-
+
-¥{{ memberDiscount }}
@@ -166,13 +180,13 @@
¥{{ finalPrice }}
-
+
-
+
@@ -186,11 +200,8 @@
-
+
@@ -212,11 +223,12 @@
-
+
-
+
《猫妈狗爸用户服务协议和隐私协议》
@@ -224,27 +236,33 @@
订单总价:
- ¥{{ finalPrice }}
+ ¥{{ finalPrice }}
-
-
+
+
-
+
+
+
+
\ No newline at end of file
diff --git a/pages/newOrder/serviceNew.vue b/pages/newOrder/serviceNew.vue
index e1f647d..0c47ce8 100644
--- a/pages/newOrder/serviceNew.vue
+++ b/pages/newOrder/serviceNew.vue
@@ -217,6 +217,7 @@
needPreFamiliarize:[],
defaultPhoto:'https://catmdogf.oss-cn-shanghai.aliyuncs.com/CMDF/front/personal/pet/catdog.png',
companionLevel: 'junior', // 默认选择初级伴宠师
+ companionLevelList: ['', 'junior', 'senior'], // 默认选择初级伴宠师
popupTitle: '',
popupLevel: '',
}
diff --git a/pages_order/order/orderList.vue b/pages_order/order/orderList.vue
index 4d93073..94cbd38 100644
--- a/pages_order/order/orderList.vue
+++ b/pages_order/order/orderList.vue
@@ -2,43 +2,34 @@
-
+
{{tab.name}}
-
+
-
+
-
+
-
+
-
+
{{pet.tag}}
@@ -46,27 +37,30 @@
{{pet.name}}
-
-
+
+
{{pet.serviceTime}}
-
+
- 下单时间: {{order.orderTime}}
+ 下单时间: {{order.createTime}}
伴宠师: {{order.companionName}}
({{order.companionNote}})
-
+
-
+
取消订单
@@ -80,17 +74,17 @@
-
+
加载中...
-
+
没有更多订单了
-
+
@@ -100,27 +94,27 @@
-
-
+
+
-
+