video-column.vue 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  1. <!-- 视频专栏 -->
  2. <template>
  3. <view class="wrap">
  4. <view class="tab-list">
  5. <view :class="{ 'active' : isActive === index }" class="child" v-for="(item,index) in navList" :key="index"
  6. @click="checked(index)">
  7. {{item.title}}
  8. <image src="../../../static/border.png" class="border-img" mode="widthFix"></image>
  9. </view>
  10. </view>
  11. <view class="content-box" v-if="isActive == 0">
  12. <view class="video-module" @click="informationDetails">
  13. <video id="myVideo"
  14. src="http://wxsnsdy.tc.qq.com/105/20210/snsdyvideodownload?filekey=30280201010421301f0201690402534804102ca905ce620b1241b726bc41dcff44e00204012882540400&bizid=1023&hy=SH&fileparam=302c020101042530230204136ffd93020457e3c4ff02024ef202031e8d7f02030f42400204045a320a0201000400"
  15. enable-danmu controls style="width: 100%;height: 262rpx;"></video>
  16. <view class="video-title">
  17. 时令养生到底怎么去养生?
  18. </view>
  19. </view>
  20. <view class="list">
  21. <view class="item" @click="informationDetails">
  22. <view class="item-top">
  23. <view class="item-top-sidebar">
  24. <view class="item-top-name">大暑已到易伤津耗气,可用药粥滋补身体</view>
  25. <view class="item-top-msg">
  26. 3.2万人浏览
  27. </view>
  28. </view>
  29. <view class="img-box">
  30. <image src="../../../static/img-4.png" class="item-top-img" mode="aspectFill"></image>
  31. <image src="../../../static/play.png" class="play-img"></image>
  32. </view>
  33. </view>
  34. </view>
  35. <view class="item" @click="informationDetails">
  36. <view class="item-top">
  37. <view class="item-top-sidebar">
  38. <view class="item-top-name">大暑已到易伤津耗气,可用药粥滋补身体</view>
  39. <view class="item-top-msg">
  40. 3.2万人浏览
  41. </view>
  42. </view>
  43. <view class="img-box">
  44. <image src="../../../static/img-4.png" class="item-top-img" mode="aspectFill"></image>
  45. <image src="../../../static/play.png" class="play-img"></image>
  46. </view>
  47. </view>
  48. </view>
  49. </view>
  50. </view>
  51. <view class="content-box" v-if="isActive == 1">
  52. <view class="video-module" @click="videoDetails">
  53. <video id="myVideo"
  54. src="http://wxsnsdy.tc.qq.com/105/20210/snsdyvideodownload?filekey=30280201010421301f0201690402534804102ca905ce620b1241b726bc41dcff44e00204012882540400&bizid=1023&hy=SH&fileparam=302c020101042530230204136ffd93020457e3c4ff02024ef202031e8d7f02030f42400204045a320a0201000400"
  55. enable-danmu controls style="width: 100%;height: 262rpx;"></video>
  56. <view class="video-title">
  57. 时令养生到底怎么去养生?
  58. </view>
  59. </view>
  60. <view class="list-2">
  61. <view class="item-2">
  62. <view class="img-box2">
  63. <image src="../../../static/img-4.png" class="item-img2" mode="aspectFill"></image>
  64. <image src="../../../static/play.png" class="play-img"></image>
  65. </view>
  66. <view class="item-bottom">
  67. <view class="item-top-name">大暑已到易伤津耗气,可用药粥滋补身体</view>
  68. <view class="item-bottom-msg">
  69. 3.2万人浏览
  70. </view>
  71. </view>
  72. </view>
  73. <view class="item-2">
  74. <view class="img-box2">
  75. <image src="../../../static/img-4.png" class="item-img2" mode="aspectFill"></image>
  76. <image src="../../../static/play.png" class="play-img"></image>
  77. </view>
  78. <view class="item-bottom">
  79. <view class="item-top-name">大暑已到易伤津耗气,可用药粥滋补身体</view>
  80. <view class="item-bottom-msg">
  81. 3.2万人浏览
  82. </view>
  83. </view>
  84. </view>
  85. <view class="item-2">
  86. <view class="img-box2">
  87. <image src="../../../static/img-4.png" class="item-img2" mode="aspectFill"></image>
  88. <image src="../../../static/play.png" class="play-img"></image>
  89. </view>
  90. <view class="item-bottom">
  91. <view class="item-top-name">大暑已到易伤津耗气,可用药粥滋补身体</view>
  92. <view class="item-bottom-msg">
  93. 3.2万人浏览
  94. </view>
  95. </view>
  96. </view>
  97. </view>
  98. </view>
  99. <view class="content-box" v-if="isActive == 2">
  100. <view class="product-list">
  101. <view class="product-item" @click="productDetails">
  102. <view class="product-item-column2">
  103. <image src="../../../static/img-4.png" class="product-item-column2-img" mode="aspectFill">
  104. </image>
  105. <view class="product-item-column2-bottom">
  106. <view class="product-item-column-name2">冻干柠檬片 蜂蜜柠檬茶 保留鲜度96% 美白神器</view>
  107. <view class="product-item-column2-row-between">
  108. <view class="product-item-column2-price">
  109. ¥394.00
  110. <text>¥34.00</text>
  111. </view>
  112. <button type="default" class="product-item-column2-btn">
  113. <image src="../../../static/add-icon.png" mode=""></image>
  114. </button>
  115. </view>
  116. </view>
  117. </view>
  118. </view>
  119. <view class="product-item" @click="productDetails">
  120. <view class="product-item-column2">
  121. <image src="../../../static/img-4.png" class="product-item-column2-img" mode="aspectFill">
  122. </image>
  123. <view class="product-item-column2-bottom">
  124. <view class="product-item-column-name2">冻干柠檬片 蜂蜜柠檬茶 保留鲜度96% 美白神器</view>
  125. <view class="product-item-column2-row-between">
  126. <view class="product-item-column2-price">
  127. ¥394.00
  128. <text>¥34.00</text>
  129. </view>
  130. <button type="default" class="product-item-column2-btn">
  131. <image src="../../../static/add-icon.png" mode=""></image>
  132. </button>
  133. </view>
  134. </view>
  135. </view>
  136. </view>
  137. <view class="product-item" @click="productDetails">
  138. <view class="product-item-column2">
  139. <image src="../../../static/img-4.png" class="product-item-column2-img" mode="aspectFill">
  140. </image>
  141. <view class="product-item-column2-bottom">
  142. <view class="product-item-column-name2">冻干柠檬片 蜂蜜柠檬茶 保留鲜度96% 美白神器</view>
  143. <view class="product-item-column2-row-between">
  144. <view class="product-item-column2-price">
  145. ¥394.00
  146. <text>¥34.00</text>
  147. </view>
  148. <button type="default" class="product-item-column2-btn">
  149. <image src="../../../static/add-icon.png" mode=""></image>
  150. </button>
  151. </view>
  152. </view>
  153. </view>
  154. </view>
  155. </view>
  156. </view>
  157. </view>
  158. </template>
  159. <script>
  160. ;
  161. export default {
  162. data() {
  163. return {
  164. //选项卡
  165. isActive: 1,
  166. navList: [{
  167. index: 0,
  168. title: '资讯',
  169. }, {
  170. index: 1,
  171. title: "养生",
  172. }, {
  173. index: 2,
  174. title: "产品"
  175. }]
  176. }
  177. },
  178. onLoad() {
  179. },
  180. methods: {
  181. checked(index) {
  182. this.isActive = index
  183. },
  184. //跳转咨询详情
  185. informationDetails() {
  186. uni.navigateTo({
  187. url: '../../health-encyclopedia/video-details/video-details'
  188. })
  189. },
  190. // 跳转视频详情
  191. videoDetails() {
  192. uni.navigateTo({
  193. url: '../../health-encyclopedia/video-details/video-details'
  194. })
  195. },
  196. // 跳转商品详情
  197. productDetails() {
  198. uni.navigateTo({
  199. url: '../product-details/product-details'
  200. })
  201. },
  202. }
  203. }
  204. </script>
  205. <style scoped lang="scss">
  206. @import "./video-column.css";
  207. </style>