pageFloor.vue 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255
  1. <template>
  2. <view>
  3. <view class="page-content clearfix" v-for="(page, index) in pageFloorList" :key="index">
  4. <view class="tui-group-name" v-if="page.floorContent">
  5. <view class="tui-group-title">
  6. <view class="tui-group-l">{{ page.title }}</view>
  7. <view
  8. class="tui-group-r"
  9. v-if="isSwiperTemp.indexOf(page.floorContent.templateType) === -1"
  10. @click="NavToDetailPage(page)"
  11. >
  12. <text>更多</text> <text class="iconfont icon-xiayibu"></text>
  13. </view>
  14. </view>
  15. <view class="tui-sub__desc">{{ page.detail }}</view>
  16. </view>
  17. <!-- 图文模板 -->
  18. <template v-if="page.floorContent.templateType == '3'">
  19. <articleA :pageData="page" :userIdentity="userIdentity"></articleA>
  20. </template>
  21. <template v-if="page.floorContent.templateType == '4'">
  22. <articleB :pageData="page" :userIdentity="userIdentity"></articleB>
  23. </template>
  24. <template v-if="page.floorContent.templateType == '5'">
  25. <articleC :pageData="page" :userIdentity="userIdentity"></articleC>
  26. </template>
  27. <template v-if="page.floorContent.templateType == '6'">
  28. <articleD :pageData="page" :userIdentity="userIdentity"></articleD>
  29. </template>
  30. <!-- 图片模板 -->
  31. <template v-if="page.floorContent.templateType == '1'">
  32. <pictureA :pageData="page" :userIdentity="userIdentity"></pictureA>
  33. </template>
  34. <template v-if="page.floorContent.templateType == '2'">
  35. <pictureB :pageData="page" :userIdentity="userIdentity"></pictureB>
  36. </template>
  37. <template v-if="page.floorContent.templateType == '7'">
  38. <pictureC :pageData="page" :userIdentity="userIdentity"></pictureC>
  39. </template>
  40. <template v-if="page.floorContent.templateType == '8'">
  41. <pictureD :pageData="page" :userIdentity="userIdentity"></pictureD>
  42. </template>
  43. <template v-if="page.floorContent.templateType == '9'">
  44. <pictureE :pageData="page" :userIdentity="userIdentity"></pictureE>
  45. </template>
  46. <template v-if="page.floorContent.templateType == '10'">
  47. <pictureF :pageData="page" :userIdentity="userIdentity"></pictureF>
  48. </template>
  49. <!-- 产品模板 -->
  50. <template v-if="page.floorContent.templateType == '11'">
  51. <productI :pageData="page" :userIdentity="userIdentity"></productI>
  52. </template>
  53. <template v-if="page.floorContent.templateType == '12'">
  54. <productJ :pageData="page" :userIdentity="userIdentity"></productJ>
  55. </template>
  56. <template v-if="page.floorContent.templateType == '13'">
  57. <productK :pageData="page" :userIdentity="userIdentity"></productK>
  58. </template>
  59. <template v-if="page.floorContent.templateType == '14'">
  60. <productG :pageData="page" :userIdentity="userIdentity"></productG>
  61. </template>
  62. <template v-if="page.floorContent.templateType == '15'">
  63. <productD :pageData="page" :userIdentity="userIdentity"></productD>
  64. </template>
  65. <template v-if="page.floorContent.templateType == '16'">
  66. <productC :pageData="page" :userIdentity="userIdentity"></productC>
  67. </template>
  68. <template v-if="page.floorContent.templateType == '17'">
  69. <productB :pageData="page" :userIdentity="userIdentity"></productB>
  70. </template>
  71. <template v-if="page.floorContent.templateType == '18'">
  72. <productA :pageData="page" :userIdentity="userIdentity"></productA>
  73. </template>
  74. <template v-if="page.floorContent.templateType == '19'">
  75. <productE :pageData="page" :userIdentity="userIdentity"></productE>
  76. </template>
  77. <template v-if="page.floorContent.templateType == '20'">
  78. <productF :pageData="page" :userIdentity="userIdentity"></productF>
  79. </template>
  80. <template v-if="page.floorContent.templateType == '21'">
  81. <productH :pageData="page" :userIdentity="userIdentity"></productH>
  82. </template>
  83. <!-- 直播模板 -->
  84. <template v-if="page.floorContent.templateType == '22'">
  85. <liveA :pageData="page" :userIdentity="userIdentity"></liveA>
  86. </template>
  87. <template v-if="page.floorContent.templateType == '23'">
  88. <liveC :pageData="page" :userIdentity="userIdentity"></liveC>
  89. </template>
  90. <template v-if="page.floorContent.templateType == '24'">
  91. <liveA :pageData="page" :userIdentity="userIdentity"></liveA>
  92. </template>
  93. <template v-if="page.floorContent.templateType == '25'">
  94. <liveB :pageData="page" :userIdentity="userIdentity"></liveB>
  95. </template>
  96. <!-- 视频模板 -->
  97. <template v-if="page.floorContent.templateType == '26'">
  98. <pictureH :pageData="page" :userIdentity="userIdentity"></pictureH>
  99. </template>
  100. <template v-if="page.floorContent.templateType == '27'">
  101. <pictureC :pageData="page" :userIdentity="userIdentity"></pictureC>
  102. </template>
  103. <template v-if="page.floorContent.templateType == '28'">
  104. <pictureG :pageData="page" :userIdentity="userIdentity"></pictureG>
  105. </template>
  106. <template v-if="page.floorContent.templateType == '29'">
  107. <pictureD :pageData="page" :userIdentity="userIdentity"></pictureD>
  108. </template>
  109. </view>
  110. </view>
  111. </template>
  112. <script>
  113. //引入产品模板
  114. import productA from '@/components/cm-module/pageTemplate/templateA.vue'
  115. import productB from '@/components/cm-module/pageTemplate/templateB.vue'
  116. import productC from '@/components/cm-module/pageTemplate/templateC.vue'
  117. import productD from '@/components/cm-module/pageTemplate/templateD.vue'
  118. import productE from '@/components/cm-module/pageTemplate/templateE.vue'
  119. import productF from '@/components/cm-module/pageTemplate/templateF.vue'
  120. import productG from '@/components/cm-module/pageTemplate/templateG.vue'
  121. import productH from '@/components/cm-module/pageTemplate/templateH.vue'
  122. import productI from '@/components/cm-module/pageTemplate/templateI.vue'
  123. import productJ from '@/components/cm-module/pageTemplate/templateJ.vue'
  124. import productK from '@/components/cm-module/pageTemplate/templateK.vue'
  125. //引入图片模板
  126. import pictureA from '@/components/cm-module/pcitureTemplate/templateA.vue'
  127. import pictureB from '@/components/cm-module/pcitureTemplate/templateB.vue'
  128. import pictureC from '@/components/cm-module/pcitureTemplate/templateC.vue'
  129. import pictureD from '@/components/cm-module/pcitureTemplate/templateD.vue'
  130. import pictureE from '@/components/cm-module/pcitureTemplate/templateE.vue'
  131. import pictureF from '@/components/cm-module/pcitureTemplate/templateF.vue'
  132. import pictureG from '@/components/cm-module/pcitureTemplate/templateG.vue'
  133. import pictureH from '@/components/cm-module/pcitureTemplate/templateH.vue'
  134. //引入图文模板
  135. import articleA from '@/components/cm-module/articleTemplate/templateA.vue'
  136. import articleB from '@/components/cm-module/articleTemplate/templateB.vue'
  137. import articleC from '@/components/cm-module/articleTemplate/templateC.vue'
  138. import articleD from '@/components/cm-module/articleTemplate/templateD.vue'
  139. // 直播楼层模板
  140. import liveA from '@/components/cm-module/liveTemplate/templateA.vue'
  141. import liveB from '@/components/cm-module/liveTemplate/templateB.vue'
  142. import liveC from '@/components/cm-module/liveTemplate/templateC.vue'
  143. export default {
  144. name: 'pageFloor',
  145. components: {
  146. productA,
  147. productB,
  148. productC,
  149. productD,
  150. productE,
  151. productF,
  152. productG,
  153. productH,
  154. productI,
  155. productJ,
  156. productK,
  157. pictureA,
  158. pictureB,
  159. pictureC,
  160. pictureD,
  161. pictureE,
  162. pictureF,
  163. pictureG,
  164. pictureH,
  165. articleA,
  166. articleB,
  167. articleC,
  168. articleD,
  169. liveA,
  170. liveC,
  171. liveB
  172. },
  173. props: {
  174. list: {
  175. type: Array
  176. },
  177. pageType: {
  178. type: Number
  179. },
  180. userIdentity: {
  181. type: Number
  182. }
  183. },
  184. data() {
  185. return {
  186. pageFloorList: [],
  187. isSwiperTemp:['1','2','9','21','5','7','22','23','24','25','27']
  188. }
  189. },
  190. created() {
  191. this.initData(this.list)
  192. },
  193. computed: {},
  194. methods: {
  195. initData(data) {
  196. this.pageFloorList = data
  197. },
  198. NavToDetailPage(page) {
  199. //跳转
  200. this.$api.navigateTo(
  201. `/pages/h5/activity/activity-floorMore?pageType=${this.pageType}&floorId=${page.id}&title=${
  202. page.title
  203. }`
  204. )
  205. }
  206. }
  207. }
  208. </script>
  209. <style lang="scss">
  210. .page-content {
  211. background-color: #f7f7f7;
  212. width: 100%;
  213. height: auto;
  214. box-sizing: border-box;
  215. padding: 0 24rpx;
  216. float: left;
  217. }
  218. .tui-group-name {
  219. width: 100%;
  220. height: 92rpx;
  221. padding: 20rpx 0;
  222. }
  223. .tui-group-title {
  224. width: 100%;
  225. float: left;
  226. .tui-group-l {
  227. float: left;
  228. font-size: 34rpx;
  229. font-weight: bold;
  230. text-align: left;
  231. line-height: 49rpx;
  232. color: #333;
  233. }
  234. .tui-group-r {
  235. float: right;
  236. font-size: $font-size-26;
  237. text-align: right;
  238. line-height: 49rpx;
  239. color: #999999;
  240. .icon-xiayibu {
  241. font-size: $font-size-30;
  242. color: #999999;
  243. }
  244. }
  245. }
  246. .tui-sub__desc {
  247. width: 100%;
  248. float: left;
  249. color: rgba(153, 153, 153, 0.9);
  250. font-size: $font-size-26;
  251. }
  252. </style>