11<template >
2- <view class =" wrap" >
3- <u-swiper :list =" list" ></u-swiper >
2+ <view >
3+ <u-select v-model =" show" @confirm =" confirm" :list =" list" ></u-select >
4+ <u-button @click =" show = true" >打开</u-button >
45 </view >
56</template >
67
78<script >
8- export default {
9- data () {
10- return {
11- list: [{
12- image: ' https://cdn.uviewui.com/uview/swiper/1.jpg' ,
13- title: ' 昨夜星辰昨夜风,画楼西畔桂堂东'
14- },
15- {
16- image: ' https://cdn.uviewui.com/uview/swiper/2.jpg' ,
17- title: ' 身无彩凤双飞翼,心有灵犀一点通'
18- },
19- {
20- image: ' https://cdn.uviewui.com/uview/swiper/3.jpg' ,
21- title: ' 谁念西风独自凉,萧萧黄叶闭疏窗,沉思往事立残阳'
9+ export default {
10+ data () {
11+ return {
12+ show: false ,
13+ list: [
14+ {
15+ label: ' 测试' ,
16+ value: ' b0da629fa36e32110ea86dbfc53db96a' ,
17+ extra: {
18+ ductId: ' b0da629fa36e32110ea86dbfc53db96a' ,
19+ name: ' 测试' ,
20+ type: 3 ,
21+ imgUrl: ' 1594173070713.jpg' ,
22+ effectiveDay: 4 ,
23+ dateType: ' day' ,
24+ isInlay: 1 ,
25+ createTime: ' 2020-07-08 09:51:13' ,
26+ printerNum: 3 ,
27+ createBy: ' 1' ,
28+ updateTime: ' 2020-07-08 09:51:13' ,
29+ updateBy: null ,
30+ ductAccessoryInfoList: []
2231 }
23- ],
24- }
25- },
26- methods: {
27-
32+ },
33+ {
34+ label: ' PICC - 2类' ,
35+ value: ' 1c0c70fafe74e840dc79f1bfe2833b2b' ,
36+ extra: {
37+ ductId: ' 1c0c70fafe74e840dc79f1bfe2833b2b' ,
38+ name: ' PICC - 2类' ,
39+ type: 3 ,
40+ imgUrl: ' 1592987125427.jpeg' ,
41+ effectiveDay: 7 ,
42+ dateType: ' day' ,
43+ isInlay: 1 ,
44+ createTime: ' 2020-06-24 16:25:25' ,
45+ printerNum: 1 ,
46+ createBy: ' 1' ,
47+ updateTime: ' 2020-07-09 12:01:02' ,
48+ updateBy: null ,
49+ ductAccessoryInfoList: [
50+ {
51+ ductAccessoryId: ' aecdc0e314dcb346a5ec1838929c02e6' ,
52+ name: ' 敷贴 - 2类' ,
53+ type: 1 ,
54+ imgUrl: ' ' ,
55+ effectiveDay: 3 ,
56+ createTime: ' 2020-06-24 16:26:01' ,
57+ createBy: ' 1' ,
58+ updateTime: ' 2020-07-09 12:02:25' ,
59+ dateType: ' day' ,
60+ updateBy: null ,
61+ ductId: ' 1c0c70fafe74e840dc79f1bfe2833b2b' ,
62+ printerNum: 2
63+ },
64+ {
65+ ductAccessoryId: ' cea78c669259529a6e66cd0d3b7ea357' ,
66+ name: ' 敷贴 - 1类' ,
67+ type: 1 ,
68+ imgUrl: ' 1592987145754.jpeg' ,
69+ effectiveDay: 7 ,
70+ createTime: ' 2020-06-24 16:25:46' ,
71+ createBy: ' 1' ,
72+ updateTime: ' 2020-07-09 12:04:29' ,
73+ dateType: ' day' ,
74+ updateBy: null ,
75+ ductId: ' 1c0c70fafe74e840dc79f1bfe2833b2b' ,
76+ printerNum: 2
77+ }
78+ ]
79+ }
80+ },
81+ {
82+ label: ' PICC - 1类' ,
83+ value: ' 903a262182003743bb3062fe7393ffbd' ,
84+ extra: {
85+ ductId: ' 903a262182003743bb3062fe7393ffbd' ,
86+ name: ' PICC - 1类' ,
87+ type: 3 ,
88+ imgUrl: ' 1592987111641.jpeg' ,
89+ effectiveDay: 56 ,
90+ dateType: ' hour' ,
91+ isInlay: 1 ,
92+ createTime: ' 2020-06-24 16:25:12' ,
93+ printerNum: 1 ,
94+ createBy: ' 1' ,
95+ updateTime: ' 2020-07-09 14:24:02' ,
96+ updateBy: null ,
97+ ductAccessoryInfoList: []
98+ }
99+ }
100+ ]
101+ };
102+ },
103+ methods: {
104+ confirm (e ) {
105+ console .log (e);
28106 }
29107 }
30- </script >
108+ };
109+ </script >
0 commit comments