This commit is contained in:
Vinjor 2024-11-06 13:58:26 +08:00
commit 11ea29fa2a
3 changed files with 23 additions and 13 deletions

View File

@ -1,8 +1,9 @@
// 应用全局配置
module.exports = {
// baseUrl: 'https://www.nuoyunr.com',
baseUrl: 'http://192.168.1.17:48080',
// baseUrl: 'http://192.168.1.17:48080',
// baseUrl: "http://192.168.1.4:48080",
baseUrl: "http://localhost:48080",
imagesUrl: 'http://shequ.0315e.com/static/images/pages/',
baseImageUrl: 'https://www.nuoyunr.com/minio/',
wsUrl: 'wss://www.nuoyunr.com',

View File

@ -14,8 +14,14 @@
<text>{{ ticketInfo.ticketsStatus == '02' ? '已完成' : ticketInfo.statusStr }}</text>
<text class="flagDesc">当前工单维修项目{{ ticketInfo.flag == '02' ? '已全部完成' : ticketInfo.statusStr }}</text>
</view>
</template>
</view>
<view class="carTitle">服务顾问</view>
<view class="carDetail" @click="callPhone(ticketInfo.linkPhone)">
{{ticketInfo.adviserName}} {{ticketInfo.linkPhone}}
</view>
<view class="carTitle">车辆信息</view>
<view class="carDetail">
<view class="carHeader">
@ -263,6 +269,13 @@
this.getProjItem()
},
methods: {
callPhone(phone){
uni.makePhoneCall({
phoneNumber: phone
});
},
/**
* 预览图片
*/

View File

@ -70,7 +70,7 @@
</picker> -->
<view class="formItem_content" @click="selectServer">
<view class="label">预约项目</view>
<input disabled class="formItemInput" placeholder="请选择预约项目" type="text" v-model="service.name" />
<input disabled class="formItemInput" placeholder="请选择预约项目" type="text" v-model="service.label" />
<image v-if="!service.name" class="formItemBtn" src="../../static/icons/homeInfoMore.png" mode="aspectFit">
</image>
</view>
@ -154,7 +154,7 @@
formData:{
userName: null,
userMobile: null,
projectId: null,
repairType: null,
carId: null,
carNo: null,
bookingTime: null,
@ -276,7 +276,6 @@
url: '/pages/myReservation/reservationSuccess?info=' + encodeURIComponent(JSON.stringify(this.info))
})
}).catch(() => {})
},
async initCarList() {
const res = await request({
@ -318,23 +317,20 @@
//
async getServer(corpId) {
const res = await request({
url: "/userClient/base/company/get",
method: 'get',
params: {
id: corpId
}
url: "/userClient/dict/type?type=repair_type",
method: 'get'
})
this.serviceList = res.data.servicePackages
this.serviceList = res.data
},
//
selectServer(){
const servers = this.serviceList.map(item => item.name)
const servers = this.serviceList.map(item => item.label)
uni.showActionSheet({
itemList: servers,
success: (res) => {
this.service = this.serviceList[res.tapIndex]
this.formData.projectId = this.service.id
this.info.serviceName = this.service.name
this.formData.repairType = this.service.value
this.info.serviceName = this.service.label
},
fail: (err) => {
console.error('选择框显示失败:', err);