| | |
| | | class="uni-input flex1" maxlength="11" placeholder="请输入群众联系电话" /> |
| | | |
| | | </view> |
| | | <view class="card flex a-center h-108 j-between" @click="goTopagelocation()"> |
| | | <view class="card flex min-108 a-center j-between" @click="goTopagelocation()"> |
| | | <text class="w-108 fs-27 font-bold mr-85">发生地点</text> |
| | | <view class=" flex a-center j-between flex1"> |
| | | |
| | | <view class="flex1" v-if="location"> |
| | | <view class="flex1 address line2" v-if="location"> |
| | | {{location}} |
| | | </view> |
| | | <view class="flex1" v-else style="color: rgba(0,0,0,0.3);font-size:27rpx;"> |
| | |
| | | getproblem |
| | | } from './service.js' |
| | | import config from '@/config/index.js' |
| | | |
| | | |
| | | export default { |
| | | data() { |
| | | return { |
| | |
| | | }, |
| | | getproblem() { |
| | | getproblem().then((resp => { |
| | | |
| | | |
| | | this.columns = [resp.data.map(item => { |
| | | return item.name |
| | | })] |
| | |
| | | videos: this.videos.join(','), |
| | | } |
| | | save(data).then(resp => { |
| | | |
| | | |
| | | if (resp.code == 200) { |
| | | uni.showToast({ |
| | | title: '保存成功', |
| | |
| | | }) |
| | | }, |
| | | confirmone(e) { |
| | | |
| | | |
| | | this.time = dayjs(e.value).format('YYYY-MM-DD') |
| | | this.showDate = false |
| | | }, |
| | | confirmtwo(e) { |
| | | |
| | | |
| | | this.problemType = e.value[0] |
| | | this.showList = false |
| | | }, |
| | |
| | | this.showList = false |
| | | }, |
| | | goTopagelocation() { |
| | | |
| | | |
| | | uni.navigateTo({ |
| | | url: '/pages/location/location' |
| | | }) |
| | |
| | | sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图,默认二者都有 |
| | | sourceType: ['album'], //从相册选择 |
| | | success: (res) => { |
| | | |
| | | |
| | | uni.showLoading() |
| | | uni.uploadFile({ |
| | | url: config.imageUrl, |
| | |
| | | 'Authorization': uni.getStorageSync('token') |
| | | }, |
| | | success: (uploadFileRes) => { |
| | | |
| | | |
| | | this.images = [...this.images, JSON.parse(uploadFileRes.data).data] |
| | | uni.hideLoading() |
| | | }, |
| | |
| | | 'Authorization': uni.getStorageSync('token') |
| | | }, |
| | | success: (uploadFileRes) => { |
| | | |
| | | |
| | | this.videos = [...this.videos, JSON.parse(uploadFileRes.data).data] |
| | | uni.hideLoading() |
| | | }, |
| | |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | .min-108 { |
| | | min-height: 108rpx; |
| | | } |
| | | |
| | | .card { |
| | | border-bottom: 2rpx solid rgba(0, 10, 26, 0.07); |
| | | } |
| | |
| | | margin-top: 38rpx; |
| | | position: fixed; |
| | | bottom: 30rpx; |
| | | ; |
| | | ; |
| | | } |
| | | |
| | | /deep/.u-popup__content { |