| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273 |
- <template>
- <view>
- <!-- 基本信息 -->
- <template>
- <view class="content">
- <u-cell :value="user" isLink @click="show=true">
- <view
- slot="title"
- class="u-slot-title"
- >
- <text class="u-cell-text">
- 班级
- <image class="box" src="../../static/im@2x.png"></image>
- </text>
- </view>
- </u-cell>
- <u-picker :show="show" :columns="columns" keyName="name" @cancel="show=false" @confirm="choiceUser"></u-picker>
- </view>
-
- <view class="content">
- <u-cell :value="user" isLink @click="show=true">
- <view
- slot="title"
- class="u-slot-title"
- >
- <text class="u-cell-text">
- 姓名
- <image class="box" src="../../static/im@2x.png"></image>
- </text>
- </view>
- </u-cell>
- <u-picker :show="show" :columns="columns" keyName="name" @cancel="show=false" @confirm="choiceUser"></u-picker>
- </view>
-
- <view class="content">
- <u-cell :value="user" isLink @click="show=true">
- <view
- slot="title"
- class="u-slot-title"
- >
- <text class="u-cell-text">
- 性别
- </text>
- </view>
- </u-cell>
- <u-picker :show="show" :columns="columns" keyName="name" @cancel="show=false" @confirm="choiceUser"></u-picker>
- </view>
- </template>
-
- <!-- 症状及体征 -->
- <view class="symptom">
- <text class="u-cell-text">
- 症状及体征
- <image class="box" src="../../static/im@2x.png"></image>
- </text>
-
- <u--textarea border="none" style="margin: 32rpx 0 72rpx 0; padding: 0;" v-model="symptom" placeholder="请输入" autoHeight ></u--textarea>
-
- <text class="u-cell-text">
- 症状体征照片
- </text>
-
- <u-upload
- :fileList="fileList3"
- @afterRead="afterRead"
- @delete="deletePic"
- name="3"
- multiple
- :maxCount="10"
- :previewFullImage="true"
- style="margin-top: 30rpx"
- >
- <template>
- <view class="upImage">
- <u-icon name="plus" color="#8C8C8C" size="49rpx"></u-icon>
- </view>
- </template>
- </u-upload>
- </view>
-
- <!-- 处理措施 -->
- <view class="symptom">
- <text class="u-cell-text">
- 处理措施
- <image class="box" src="../../static/im@2x.png"></image>
- </text>
-
- <u--textarea border="none" style="margin: 32rpx 0 72rpx 0; padding: 0;" v-model="symptom" placeholder="请输入" autoHeight ></u--textarea>
-
- <text class="u-cell-text">
- 应急处置后照片
- </text>
-
- <u-upload
- :fileList="fileList3"
- @afterRead="afterRead"
- @delete="deletePic"
- :name="3"
- multiple
- :maxCount="10"
- :previewFullImage="true"
- style="margin-top: 30rpx"
- >
- <template>
- <view class="upImage">
- <u-icon name="plus" color="#8C8C8C" size="49rpx"></u-icon>
- </view>
- </template>
- </u-upload>
- </view>
-
- <!-- 备注 -->
- <view class="remarks">
- 备注
- <u-icon name="edit-pen" color="#8C8C8C" size="49rpx"></u-icon>
- <!-- 功能不明确 -->
- </view>
-
- <!-- 结论多选 -->
- <view class="choice">
- <template>
- <u-radio-group
- v-model="radiovalue1"
- placement="row"
- @change="groupChange"
- class="radio"
- >
- <u-radio
- :customStyle="{marginBottom: '8px'}"
- v-for="(item, index) in radiolist1"
- :key="index"
- shape="square"
- activeColor="#6241D5"
- :label="item.name"
- :name="item.name"
- @change="radioChange"
- >
- </u-radio>
- </u-radio-group>
- </template>
- </view>
-
- <!-- 提交按钮 -->
- <view class="submit">
- <u-button
- shape="circle"
- type="primary"
- text="提交"
- color="#7B5DF0"
- style="width: 550rpx;"
- ></u-button>
- </view>
-
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- user:"请选择",
- show:false,
- symptom: "", // 症状文本
- fileList3: [{
- url: 'https://cdn.uviewui.com/uview/swiper/1.jpg',
- }],
- columns:[
- [
- {
- name:"王晶",
- id:1,
- },
- {
- name:"李明",
- id:2
- }
- ]
- ],
-
- radiolist1: [{
- name: '需要观察',
- disabled: false
- },
- {
- name: '通知家长',
- disabled: false
- }
- ],
- // u-radio-group的v-model绑定的值如果设置为某个radio的name,就会被默认选中
- radiovalue1: '需要观察',
- }
- },
- methods: {
- choiceUser(e){
- console.log("e==>",e)
- this.show=false;
- this.user=e.value[0].name;
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- page{
- /* background-color: #D9D9D9; */
- background-color: #F5F5F5 !important;
- }
-
- .u-cell{
- background-color: #fff;
- height: 112rpx;
- line-height: 73rpx;
- }
-
- .u-cell-text {
- font-size: 32rpx;
- }
-
- .u-cell-text image{
- width: 10rpx;
- height: 28rpx;
- margin-left: 15rpx ;
- }
-
- .symptom{
- margin-top: 20rpx;
- padding: 32rpx 32rpx;
- box-sizing: border-box;
- background-color: #fff;
- }
-
- .upImage{
- width: 160rpx;
- height: 160rpx;
- border-radius: 16rpx;
- border: 2rpx solid #d9d9d9;
- display: flex;
- justify-content: center;
- }
-
- .remarks{
- height: 80rpx;
- margin-top: 20rpx;
- font-size: 32rpx;
- color: rgba(0,0,0,0.60);
- background-color: #fff;
- display: flex;
- align-items: center;
- justify-content: center;
- }
-
- .choice{
- height: 178rpx;
- background-color: #fff;
- margin-top: 20rpx;
- padding-top: 36rpx;
- box-sizing: border-box;
- }
-
- .radio{
- display: flex;
- justify-content: space-evenly;
- }
-
- .submit{
- height: 240rpx;
- padding-top: 49rpx;
- box-sizing: border-box;
- }
-
- </style>
|