李志伟 3 年之前
父節點
當前提交
7c4c645991
共有 1 個文件被更改,包括 8 次插入2 次删除
  1. 8
    2
      src/hotel/pages/components/Extend/index.jsx

+ 8
- 2
src/hotel/pages/components/Extend/index.jsx 查看文件

1
 import { useState } from 'react';
1
 import { useState } from 'react';
2
 import Taro from '@tarojs/taro';
2
 import Taro from '@tarojs/taro';
3
 import Popup from '@/components/Popup'
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
 import { update, deleteExtend } from '@/services/landlord'
5
 import { update, deleteExtend } from '@/services/landlord'
6
 import SlideView from '@/components/SlideView';
6
 import SlideView from '@/components/SlideView';
7
 import './style.less'
7
 import './style.less'
106
                 <View className='storezn' onClick={showText}>{content}</View>
106
                 <View className='storezn' onClick={showText}>{content}</View>
107
               </SlideView>
107
               </SlideView>
108
             </View>
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
     </View>
117
     </View>
112
   )
118
   )