Browse Source

提交第二个版本

v2
前端-胡立永 2 months ago
parent
commit
119bbb3d9a
11 changed files with 73 additions and 31 deletions
  1. +13
    -10
      service-uniapp-client/pages/index/index.vue
  2. +2
    -2
      service-uniapp-client/pages/index/order.vue
  3. +10
    -1
      service-uniapp-client/pages/index/technician.vue
  4. +5
    -3
      service-uniapp-client/pages/order/orderDetail.vue
  5. +1
    -1
      service-uniapp-client/pages/order/payOrder.vue
  6. +24
    -5
      service-uniapp-client/pages/technician/selectTechnician.vue
  7. +9
    -2
      service-uniapp-client/pages/technician/subscribeService.vue
  8. +4
    -2
      service-uniapp-client/store/store.js
  9. +1
    -1
      service-uniapp-technician/pages/index/index.vue
  10. +3
    -3
      service-uniapp-technician/pages/index/order.vue
  11. +1
    -1
      service-uniapp-technician/pages/order/orderDetail.vue

+ 13
- 10
service-uniapp-client/pages/index/index.vue View File

@ -172,18 +172,21 @@
}) })
}, },
//
//
selectTechnician(id) { selectTechnician(id) {
this.$api('getProjectDetail', {
id
}, res => {
if (res.code == 200) {
uni.navigateTo({
url: `/pages/technician/selectTechnician?serviceId=${id}`
})
sessionStorage.setItem('technicianList', JSON.stringify(res.result.tenPageList))
}
uni.navigateTo({
url: `/pages/technician/selectTechnician?serviceId=${id}`
}) })
// this.$api('getProjectDetail', {
// id
// }, res => {
// if (res.code == 200) {
// uni.navigateTo({
// url: `/pages/technician/selectTechnician?serviceId=${id}`
// })
// sessionStorage.setItem('technicianList', JSON.stringify(res.result.tenPageList))
// }
// })
}, },
// //


+ 2
- 2
service-uniapp-client/pages/index/order.vue View File

@ -41,10 +41,10 @@
下单时间{{item.createTime}} 下单时间{{item.createTime}}
</view> </view>
<view class="text-hidden-1"> <view class="text-hidden-1">
下单地址{{item.addressId_dictText}}
下单地址{{item.address}}{{item.addressDetails || ''}}
</view> </view>
<view class="text-hidden-1"> <view class="text-hidden-1">
总计时间{{item.useTime}}分钟
服务时间{{item.serviceDate}} {{item.serviceTime}}服务{{item.useTime}}分钟
</view> </view>
<view class="price"> <view class="price">
总价格<text class="num">{{item.money}}</text> 总价格<text class="num">{{item.money}}</text>


+ 10
- 1
service-uniapp-client/pages/index/technician.vue View File

@ -81,7 +81,16 @@
// //
getTechnicianList() { getTechnicianList() {
this.$api('getTechnicianList', this.queryParams, res => {
let queryParams = {
...this.queryParams,
}
if(this.$store.state.selectArea.id){
queryParams.county = this.$store.state.selectArea.id
}
this.$api('getTechnicianList', queryParams, res => {
if (res.code == 200) { if (res.code == 200) {
this.technicianList = res.result.records this.technicianList = res.result.records
if (this.queryParams.pageSize > res.result.total) { if (this.queryParams.pageSize > res.result.total) {


+ 5
- 3
service-uniapp-client/pages/order/orderDetail.vue View File

@ -98,7 +98,7 @@
</view> </view>
<view class="sales-volume" style="margin-top: 5px;"> <view class="sales-volume" style="margin-top: 5px;">
<view class="desc">服务时间{{msgOrder.startServiceTime}}</view>
<view class="desc">服务时间{{msgOrder.serviceDate}} {{msgOrder.serviceTime}}</view>
</view> </view>
</view> </view>
@ -139,12 +139,14 @@
服务地址 服务地址
</view> </view>
<view class="copy"> <view class="copy">
<image @click="copy(msgOrder.name + ' ' + msgOrder.phone + ' ' + msgOrder.address)" src="/static/order/copy.png"></image>
<image @click="copy(msgOrder.name + ' ' +
msgOrder.phone + ' ' + msgOrder.address
+ ' ' + (msgOrder.addressDetails || ''))" src="/static/order/copy.png"></image>
</view> </view>
</view> </view>
<view class="addressDetail"> <view class="addressDetail">
<view class="">{{msgOrder.name}} {{msgOrder.phone}}</view> <view class="">{{msgOrder.name}} {{msgOrder.phone}}</view>
<view class="">{{msgOrder.address}}</view>
<view class="">{{msgOrder.address}}{{msgOrder.addressDetails || ''}}</view>
</view> </view>
</view> </view>


+ 1
- 1
service-uniapp-client/pages/order/payOrder.vue View File

@ -375,7 +375,7 @@
orderId: this.order.id, //id orderId: this.order.id, //id
payType: this.payMethod, // payType: this.payMethod, //
remark: this.remark, // remark: this.remark, //
serviceTime: this.time.id, //
serviceTime: this.time.timeName, //
travelType: 1, // travelType: 1, //
travelDistance: this.distance, // travelDistance: this.distance, //
serviceDate : this.selectDay.format('YYYY-MM-DD')// serviceDate : this.selectDay.format('YYYY-MM-DD')//


+ 24
- 5
service-uniapp-client/pages/technician/selectTechnician.vue View File

@ -2,7 +2,9 @@
<view class="technician-select-list"> <view class="technician-select-list">
<mNavbar title="选择技师" :leftClick="leftClick"></mNavbar> <mNavbar title="选择技师" :leftClick="leftClick"></mNavbar>
<view class="technician-list"> <view class="technician-list">
<selectTechnicianCompoents :technicianList="technicianList" :select="toPayOrder" />
<selectTechnicianCompoents
v-if="loading"
:technicianList="technicianList" :select="toPayOrder" />
</view> </view>
</view> </view>
</template> </template>
@ -22,15 +24,32 @@
pageSize: 10, pageSize: 10,
title: '' title: ''
}, },
technicianList: sessionStorage.getItem('technicianList') ? JSON.parse(sessionStorage.getItem(
'technicianList')) : [],
technicianList: [],
loading: false, loading: false,
finished: false finished: false
} }
}, },
onLoad() {
this.getProjectDetail()
},
methods: { methods: {
onLoad() {
//
getProjectDetail() {
let queryParams = {
id: this.$route.query.serviceId
}
if(this.$store.state.selectArea.id){
queryParams.county = this.$store.state.selectArea.id
}
this.$api('getProjectDetail', queryParams, res => {
this.loading = true
if (res.code == 200) {
this.technicianList = res.result.tenPageList;
}
})
}, },
leftClick() { leftClick() {
let { current , active } = this.$route.query let { current , active } = this.$route.query


+ 9
- 2
service-uniapp-client/pages/technician/subscribeService.vue View File

@ -118,9 +118,16 @@
// //
getProjectDetail() { getProjectDetail() {
this.$api('getProjectDetail', {
let queryParams = {
id: this.$route.query.id id: this.$route.query.id
}, res => {
}
if(this.$store.state.selectArea.id){
queryParams.county = this.$store.state.selectArea.id
}
this.$api('getProjectDetail', queryParams, res => {
if (res.code == 200) { if (res.code == 200) {
this.projectDetail = res.result.details; this.projectDetail = res.result.details;
this.technicianList = res.result.tenPageList; this.technicianList = res.result.tenPageList;


+ 4
- 2
service-uniapp-client/store/store.js View File

@ -10,7 +10,9 @@ const store = new Vuex.createStore({
configList: {}, //配置列表 configList: {}, //配置列表
userInfo : {}, //用户信息 userInfo : {}, //用户信息
areaList : [],//地区列表信息 areaList : [],//地区列表信息
selectArea : {},//当前选择的地区
selectArea : {
name : '全部'
},//当前选择的地区
}, },
getters: { getters: {
}, },
@ -60,7 +62,7 @@ const store = new Vuex.createStore({
state.areaList = handleTree(res.result, 'id', 'pid') state.areaList = handleTree(res.result, 'id', 'pid')
fn && fn(res.result) fn && fn(res.result)
state.selectArea = state.areaList[0].children[0].children[0]
// state.selectArea = state.areaList[0].children[0].children[0]
} }
}) })
}, },


+ 1
- 1
service-uniapp-technician/pages/index/index.vue View File

@ -95,7 +95,7 @@
<view>¥ {{ item.money }}</view> <view>¥ {{ item.money }}</view>
</view> </view>
<view class="flex-sb item-font2"> <view class="flex-sb item-font2">
<view>总计时间{{ item.useTime }}</view>
<view>服务时间{{item.serviceDate}} {{item.serviceTime}}服务{{item.useTime}}分钟</view>
<view>{{ item.createTime }}</view> <view>{{ item.createTime }}</view>
</view> </view>
</view> </view>


+ 3
- 3
service-uniapp-technician/pages/index/order.vue View File

@ -85,10 +85,10 @@
下单时间{{item.createTime}} 下单时间{{item.createTime}}
</view> </view>
<view class="text-hidden-1"> <view class="text-hidden-1">
下单地址{{item.addressId_dictText}}
下单地址{{item.address}}{{item.addressDetails || ''}}
</view> </view>
<view class="text-hidden-1"> <view class="text-hidden-1">
总计时间{{item.useTime}}分钟
服务时间{{item.serviceDate}} {{item.serviceTime}}服务{{item.useTime}}分钟
</view> </view>
<view class="price"> <view class="price">
总价格<text class="num">{{item.money}}</text> 总价格<text class="num">{{item.money}}</text>
@ -178,7 +178,7 @@
this.dateList = [] this.dateList = []
let today = this.dayjs() let today = this.dayjs()
this.selectDate = today;
// this.selectDate = today;
this.dateList.push(today) this.dateList.push(today)


+ 1
- 1
service-uniapp-technician/pages/order/orderDetail.vue View File

@ -108,7 +108,7 @@
</view> </view>
</view> </view>
<view class="sales-volume" style="margin-top: 5px;"> <view class="sales-volume" style="margin-top: 5px;">
<view class="desc">服务时间{{msgOrder.startServiceTime}}</view>
<view class="desc">服务时间{{msgOrder.serviceDate}} {{msgOrder.serviceTime}}</view>
</view> </view>
</view> </view>
</view> </view>


Loading…
Cancel
Save