李志伟 3 years ago
parent
commit
04f1cc073f

+ 1
- 0
src/app.config.js View File

10
     'pages/LicenseInfo/index',
10
     'pages/LicenseInfo/index',
11
     'pages/dogList/index',
11
     'pages/dogList/index',
12
     'pages/setDogInfo/index',
12
     'pages/setDogInfo/index',
13
+    'pages/dogCardDetail/index',
13
   ],
14
   ],
14
   window: {
15
   window: {
15
     backgroundTextStyle: 'light',
16
     backgroundTextStyle: 'light',

+ 10
- 0
src/pages/dogCardDetail/index.config.js View File

1
+export default {
2
+  navigationBarTitleText: '犬证详情',
3
+  disableScroll: true,
4
+  navigationBarBackgroundColor: "#FBD804",
5
+  navigationBarTextStyle: "black",
6
+  backgroundColor: "#FBD804",
7
+  usingComponents: {
8
+  }
9
+
10
+}

+ 63
- 0
src/pages/dogCardDetail/index.jsx View File

1
+import { View, Image, ScrollView } from '@tarojs/components'
2
+import './style.less'
3
+
4
+export default (props) => {
5
+  const status=2;
6
+  return (
7
+    <ScrollView scrollY style={{ height: '100vh' }}>
8
+      <View className='dogCardDetail'>
9
+        <View className='card'>
10
+          <View className='title'>电&nbsp;&nbsp;&nbsp;子&nbsp;&nbsp;&nbsp;版&nbsp;&nbsp;&nbsp;犬&nbsp;&nbsp;&nbsp;证</View>
11
+
12
+          <View className='body'>
13
+            <View className='cardLeft'>
14
+              <View className='cell'>
15
+                <View className='lable'>犬主</View>:
16
+                <View className='content'>六花</View>
17
+              </View>
18
+              <View className='cell'>
19
+                <View className='lable'>电话</View>:
20
+                <View className='content'>18544446868</View>
21
+              </View>
22
+              <View className='cell'>
23
+                <View className='lable'>犬名</View>:
24
+                <View className='content'>噬嗥</View>
25
+              </View>
26
+            </View>
27
+            <View className='cardRight'>
28
+              <Image
29
+                className='thumb'
30
+                src='https://gimg2.baidu.com/image_search/src=http%3A%2F%2F5b0988e595225.cdn.sohucs.com%2Fq_70%2Cc_zoom%2Cw_640%2Fimages%2F20181228%2Ff22539cd34044f5f821e9893f508765d.jpeg&refer=http%3A%2F%2F5b0988e595225.cdn.sohucs.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1656163682&t=bec14da4c530bf5f0ae04ff8488a9ebd'
31
+              ></Image>
32
+            </View>
33
+          </View>
34
+          <View className='cell' style={{marginTop:'-8px'}}>
35
+            <View className='lable'>状态</View>:
36
+            <View className={['state','color'+status]}>{status==1?'正常':status==2?'过期':'挂失'}</View>
37
+            {/* 挂失 续期 */}
38
+          </View>
39
+          <View className='cell'>
40
+            <View className='lable'>犬种</View>:
41
+            <View className='content'>银月狼神一族</View>
42
+          </View>
43
+          <View className='cell'>
44
+            <View className='lable'>毛色</View>:
45
+            <View className='content'>米白</View>
46
+          </View>
47
+          <View className='cell'>
48
+            <View className='lable'>证件号</View>:
49
+            <View className='content'>36559948485522</View>
50
+          </View>
51
+          <View className='cell'>
52
+            <View className='lable'>有效期</View>:
53
+            <View className='content'>2021-12-20~2022-12-20</View>
54
+          </View>
55
+          <View className='cell'>
56
+            <View className='lable'>住址</View>:
57
+            <View className='content'>江苏省南京市江宁区南京南站城际空间站旁边第一个小区的一期的219栋3304房最里面那间</View>
58
+          </View>
59
+        </View>
60
+      </View>
61
+    </ScrollView>
62
+  )
63
+}

+ 61
- 0
src/pages/dogCardDetail/style.less View File

1
+.dogCardDetail{
2
+  padding: 32px;
3
+  .card{
4
+    background-color: rgb(251, 216, 4);
5
+    border-radius: 16px;
6
+    padding: 32px 16px;
7
+    .title{
8
+      font-size: 48px;
9
+      font-weight: bold;
10
+      text-align: center;
11
+      margin-bottom: 32px;
12
+    }
13
+    .cell{
14
+      margin: 16px 0;
15
+      display: flex;
16
+      .lable{
17
+        width: 3em;
18
+        display: inline-block;
19
+        text-align: justify;
20
+        text-align-last: justify;
21
+        padding: 8px 0;
22
+      }
23
+      .content{
24
+        flex: 1;
25
+        padding: 8px 16px;
26
+        background-color: white;
27
+      }
28
+      .state{
29
+        flex: 1;
30
+        padding: 8px 16px;
31
+        text-align: center;
32
+        letter-spacing: 0.5em;
33
+      }
34
+      .color1{
35
+        background-color: yellowgreen;
36
+      }
37
+      .color2{
38
+        background-color:red;
39
+      }
40
+      .color3{
41
+        background-color:rgb(170, 168, 168);
42
+      }
43
+    }
44
+    .cardLeft{
45
+      width: 60%;
46
+      display: inline-block;
47
+    }
48
+    .cardRight{
49
+      width: 40%;
50
+      display: inline-block;
51
+      text-align: center;
52
+      vertical-align: top;
53
+      .thumb{
54
+        width: 30vw;
55
+        height: 30vw;
56
+        margin: 16px 0 16px 16px;
57
+      }
58
+      // 100vw-64px-32px*0.4
59
+    }
60
+  }
61
+}

+ 4
- 1
src/pages/index/index.jsx View File

46
     Taro.navigateTo({url:'/pages/noticeInfo/index'})
46
     Taro.navigateTo({url:'/pages/noticeInfo/index'})
47
   }
47
   }
48
   const goDogLicenseList = (e) => {
48
   const goDogLicenseList = (e) => {
49
+    // Taro.navigateTo({
50
+    //   url: '/pages/dogLicenseList/index'
51
+    // })
49
     Taro.navigateTo({
52
     Taro.navigateTo({
50
-      url: '/pages/dogLicenseList/index'
53
+      url: '/pages/dogCardDetail/index'
51
     })
54
     })
52
   }
55
   }
53
   return (
56
   return (