李志伟 3 years ago
parent
commit
7c4c645991
1 changed files with 8 additions and 2 deletions
  1. 8
    2
      src/hotel/pages/components/Extend/index.jsx

+ 8
- 2
src/hotel/pages/components/Extend/index.jsx View File

@@ -1,7 +1,7 @@
1 1
 import { useState } from 'react';
2 2
 import Taro from '@tarojs/taro';
3 3
 import Popup from '@/components/Popup'
4
-import { View,  Image, Textarea, Label, Button } from '@tarojs/components';
4
+import { View, Image, Textarea, Label, Button, Video } from '@tarojs/components';
5 5
 import { update, deleteExtend } from '@/services/landlord'
6 6
 import SlideView from '@/components/SlideView';
7 7
 import './style.less'
@@ -106,7 +106,13 @@ export default (props) => {
106 106
                 <View className='storezn' onClick={showText}>{content}</View>
107 107
               </SlideView>
108 108
             </View>
109
-            : null
109
+            : item.contentType == 'video' ?
110
+              <View>
111
+                <SlideView del onDelete={handelDelete}>
112
+                  <Video className='storezn' style={{ width: '100%', display: 'block' }} src={eimg} />
113
+                </SlideView>
114
+              </View>
115
+              : null
110 116
       }
111 117
     </View>
112 118
   )