1.报事报修接口联调
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
</view>
|
||||
<view class="cv-room-select" @click="chooseRoom">
|
||||
<text>{{ form.room || '请选择访问楼栋及房间号' }}</text>
|
||||
<text class="cv-arrow">></text>
|
||||
<image class="cv-arrow" src="/static/ic_right_arrow_g.png" />
|
||||
</view>
|
||||
</view>
|
||||
<!-- 来访时间 -->
|
||||
@@ -55,7 +55,7 @@
|
||||
</view>
|
||||
<view class="cv-room-select" @click="chooseCarNumber">
|
||||
<text>{{ form.licensePlate || '请选择车牌号' }}</text>
|
||||
<text class="cv-arrow">></text>
|
||||
<image class="cv-arrow" src="/static/ic_right_arrow_g.png" />
|
||||
</view>
|
||||
</view>
|
||||
<!-- 提交按钮 -->
|
||||
@@ -73,8 +73,8 @@
|
||||
} from '@/common/upload.js';
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
header:'',
|
||||
return {
|
||||
header: '',
|
||||
form: {
|
||||
visitorName: '',
|
||||
visitorPhone: '',
|
||||
@@ -89,11 +89,11 @@
|
||||
purposes: ['商务合作', '园区参观', '面试签到', '装修放行', '家政服务', '送货上门'],
|
||||
times: ['今天(2025-07-04)', '明天(2025-07-04)']
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
uni.$once('selectPlate', plate => {
|
||||
this.form.licensePlate = plate;
|
||||
});
|
||||
},
|
||||
onShow() {
|
||||
uni.$once('selectPlate', plate => {
|
||||
this.form.licensePlate = plate;
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
// 新增:处理图片上传
|
||||
@@ -105,41 +105,41 @@
|
||||
count: 1 // 根据剩余数量选择
|
||||
});
|
||||
// 将选择的图片添加到selectedImages数组
|
||||
this.header = images[0].path
|
||||
|
||||
this.header = images[0].path
|
||||
|
||||
} catch (error) {
|
||||
|
||||
}
|
||||
},
|
||||
async submit(){
|
||||
let images = [''];
|
||||
let filePath = this.header.replace('file://', '');
|
||||
images[0] = filePath;
|
||||
console.log("t1",images)
|
||||
const result = await uploadFiles({
|
||||
files: images,
|
||||
url: this.vuex_config.baseUrl + '/resource/oss/upload',
|
||||
name: 'file',
|
||||
vm: this // 关键:用于注入 token 等
|
||||
});
|
||||
|
||||
if (result.code == '200') {
|
||||
data = result.data.url
|
||||
console.log("t1",result.data.url)
|
||||
}
|
||||
|
||||
this.form.facePictures = result.url
|
||||
},
|
||||
async submit() {
|
||||
let images = [''];
|
||||
let filePath = this.header.replace('file://', '');
|
||||
images[0] = filePath;
|
||||
console.log("t1", images)
|
||||
const result = await uploadFiles({
|
||||
files: images,
|
||||
url: this.vuex_config.baseUrl + '/resource/oss/upload',
|
||||
name: 'file',
|
||||
vm: this // 关键:用于注入 token 等
|
||||
});
|
||||
|
||||
if (result.code == '200') {
|
||||
data = result.data.url
|
||||
console.log("t1", result.data.url)
|
||||
}
|
||||
|
||||
this.form.facePictures = result.url
|
||||
},
|
||||
chooseRoom() {
|
||||
// 这里可弹出选择房间号
|
||||
uni.navigateTo({
|
||||
url: '/pages/sys/user/myVisitor/selectRoom'
|
||||
// 这里可弹出选择房间号
|
||||
uni.navigateTo({
|
||||
url: '/pages/sys/user/myVisitor/selectRoom'
|
||||
});
|
||||
},
|
||||
chooseCarNumber() {
|
||||
// 这里可弹出选择车牌号
|
||||
uni.navigateTo({
|
||||
url: '/pages/sys/user/myPayment/myCarCode'
|
||||
// 这里可弹出选择车牌号
|
||||
uni.navigateTo({
|
||||
url: '/pages/sys/user/myPayment/myCarCode'
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -305,8 +305,8 @@
|
||||
}
|
||||
|
||||
.cv-arrow {
|
||||
font-size: 32rpx;
|
||||
color: #bbb;
|
||||
width: 11rpx;
|
||||
height: 21rpx;
|
||||
}
|
||||
|
||||
.cv-time-list {
|
||||
|
Reference in New Issue
Block a user