msgDetail.vue
5.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
<template>
<view style="padding: 30rpx;">
<view class="msgDetail">
<view class="msgTitle">
第一季度税收报表
</view>
<view class="msgContent">
请以上各企业报一下税务主管部门,感谢配合。 有我微信的私信给我,或者发在群里。 还有哪些企业没有报的抓紧报谢谢配合
</view>
<view class="msgTime">
2020-8-10
</view>
<!-- 条件判断是否显示信息填写模块 -->
<view class="infoTitle">
信息填写
</view>
<view class="infoForm">
<view class="infoItem">
<view class="infoLeft">
报表字段名称
</view>
<view class="infoRight">
填报
</view>
</view>
<view class="infoItem">
<view class="infoLeft">
第一季度税务报表
</view>
<view class="infoRight">
300000(元)
</view>
</view>
<view class="infoItem">
<view class="infoLeft">
第一季度总水量报表
</view>
<view class="infoRight">
300000(元)
</view>
</view>
</view>
<view class="infoTitle">
文件上传
</view>
<view class="cu-form-group" style="padding-top: 32rpx;">
<view class="grid col-4 grid-square flex-sub">
<view class="bg-img" v-for="(item,index) in imgList" :key="index" @tap="ViewImage" :data-url="imgList[index]">
<image :src="imgList[index]" mode="aspectFill"></image>
<view class="cu-tag bg-red" @tap.stop="DelImg" :data-index="index">
<text class='cuIcon-close'></text>
</view>
</view>
<view class="solids" style="width: 182rpx;height: 182rpx;" @tap="ChooseImage" v-if="imgList.length<9">
<image src="../../static/image/no_upload@2x.png" style="width: 182rpx;height: 182rpx;" mode=""></image>
</view>
</view>
</view>
<!-- 底部按钮区域 -->
<view class="loginBtnWrap">
<view class="loginBtn">
提交
</view>
</view>
</view>
<simple-confirm :alertTxt="'是否确认提交您的填报信息'" v-if="showConfirmAlert" @close="showConfirmAlert = false"></simple-confirm>
</view>
</template>
<script>
import simpleConfirm from '@/components/simpleConfirm.vue'
export default {
data() {
return {
showConfirmAlert:true,
index: -1,
picker: ['科室1', '科室2', '科室3'],
multiIndex: [0, 0, 0],
imgList: [],
modalName: null,
textareaAValue: '',
textareaBValue: ''
};
},
components:{
simpleConfirm
},
methods: {
PickerChange(e) {
this.index = e.detail.value
},
ChooseImage() {
uni.chooseImage({
count: 4, //默认9
sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图,默认二者都有
sourceType: ['album'], //从相册选择
success: (res) => {
if (this.imgList.length != 0) {
this.imgList = this.imgList.concat(res.tempFilePaths)
} else {
this.imgList = res.tempFilePaths
}
}
});
},
ViewImage(e) {
uni.previewImage({
urls: this.imgList,
current: e.currentTarget.dataset.url
});
},
DelImg(e) {
uni.showModal({
title: '提示',
content: '确定要删除此照片吗?',
cancelText: '再看看',
confirmText: '确认',
success: res => {
if (res.confirm) {
this.imgList.splice(e.currentTarget.dataset.index, 1)
}
}
})
},
textareaAInput(e) {
this.textareaAValue = e.detail.value
},
textareaBInput(e) {
this.textareaBValue = e.detail.value
}
}
}
</script>
<style lang="scss">
page{
background-color: $uni-bg-color-hui;
.msgDetail{
background: $uni-bg-bai-color;
padding: 32rpx;
border-radius: 20rpx;
.msgTitle{
font-size: $uni-font-size-32;
font-weight: 600;
}
.msgContent{
padding-top: 32rpx;
font-size: $uni-font-size-28;
color: $uni-text-color-hui;
line-height: $uni-font-lh-40;
}
.msgTime{
padding-top: 32rpx;
font-size: $uni-font-size-28;
color: $uni-text-color-hui;
line-height: $uni-font-lh-40;
text-align: right;
}
.infoTitle{
padding-top: 40rpx;
font-size: $uni-font-size-28;
font-weight: 600;
}
.infoForm{
background: $uni-bg-color-hui;
padding: 20rpx;
margin-top: 32rpx;
border-radius: 20rpx;
.infoItem{
margin-top: 20rpx;
display: flex;
justify-content: space-between;
height: 84rpx;
.infoLeft{
width: 375rpx;
background: $uni-bg-bai-color;
line-height: 84rpx;
text-align: center;
border-radius: 20rpx;
font-size: $uni-font-size-28;
}
.infoRight{
width: 189rpx;
background: $uni-bg-bai-color;
line-height: 84rpx;
text-align: center;
border-radius: 20rpx;
font-size: $uni-font-size-28;
}
}
.infoItem:nth-of-type(1){margin-top: 0;}
}
/* 底部按钮区域 */
.loginBtnWrap{
padding-top: 32rpx;
display: flex;
justify-content: center;
.loginBtn{
width: 686rpx;
height: 88rpx;
background: $uni-bg-main-color;
border-radius: 96rpx;
text-align: center;
color: $uni-bg-bai-color;
line-height: 88rpx;
font-size: $uni-font-size-32;
}
}
}
}
</style>