index.vue 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237
  1. <template>
  2. <view class="psd-content">
  3. <view class="psd-content-info">
  4. <view class="psd-bgm" :style="{backgroundImage: 'url('+logoUrl+')'}">
  5. <!-- 头部主要内容 开始 -->
  6. <view class="index-content-header">
  7. <customNavbar
  8. title="详情"
  9. bgColor="rgba(0,0,0,0)"
  10. :customNavbarInfo='{}'
  11. :leftStyle="{ color: '#fff' }"
  12. ></customNavbar>
  13. </view>
  14. <!-- 头部主要内容 结束 -->
  15. </view>
  16. <view class="psd-info">
  17. <view class="psd-info-box">
  18. <text class="psd-info-title">《伟大转折》剧目</text>
  19. <view class="psd-info-main">
  20. <text>票务信息</text>
  21. <view>
  22. <view>
  23. <text>票务类型</text>
  24. <text>销售价</text>
  25. <text>分销价</text>
  26. <text>佣金</text>
  27. </view>
  28. <view v-for="(item,index) in 4" :key="index">
  29. <text>普通票</text>
  30. <text>5555</text>
  31. <text>5555</text>
  32. <text>5555</text>
  33. </view>
  34. </view>
  35. </view>
  36. </view>
  37. </view>
  38. </view>
  39. </view>
  40. </template>
  41. <script>
  42. export default {
  43. data() {
  44. return {
  45. title: '《伟大转折》剧目全民分享系统',
  46. logoUrl: this.$commonConfig.staticUrl + "login/bgm.png",
  47. loading: false,
  48. }
  49. },
  50. onLoad() {
  51. },
  52. onShow() {
  53. },
  54. methods: {
  55. }
  56. }
  57. </script>
  58. <style lang="scss" scoped>
  59. .psd-content {
  60. width: 100%;
  61. height: 100%;
  62. position: relative;
  63. box-sizing: border-box;
  64. --bgm-height: 476rpx;
  65. }
  66. /** 背景 */
  67. .psd-content-box {
  68. width: 100%;
  69. height: 100%;
  70. box-sizing: border-box;
  71. }
  72. .psd-bgm {
  73. width: 100%;
  74. height: var(--bgm-height);
  75. background-size: 100% auto;
  76. background-repeat: no-repeat;
  77. box-sizing: border-box;
  78. .psd-logo {
  79. width: 240rpx;
  80. height: 172rpx;
  81. padding: 50rpx 0;
  82. }
  83. >text {
  84. font-size: 32rpx;
  85. font-family: SourceHanSansCN, SourceHanSansCN;
  86. font-weight: bold;
  87. color: #FFFFFF;
  88. }
  89. }
  90. .psd-info {
  91. width: 100%;
  92. height: calc(100% - var(--bgm-height) + 40rpx);
  93. background-color: #fff;
  94. border-radius: 28rpx 28rpx 0rpx 0rpx;
  95. position: absolute;
  96. bottom: 0;
  97. left: 0;
  98. z-index: 22;
  99. box-sizing: border-box;
  100. .psd-info-box {
  101. width: 100%;
  102. height: 100%;
  103. display: flex;
  104. flex-direction: column;
  105. box-sizing: border-box;
  106. .psd-info-title {
  107. display: flex;
  108. font-size: 40rpx;
  109. font-family: SourceHanSansCN, SourceHanSansCN;
  110. font-weight: 800;
  111. color: #2D2D2D;
  112. padding: 54rpx 0 38rpx 40rpx;
  113. border-bottom: 6rpx solid rgba(245, 245, 245, 1);
  114. box-sizing: border-box;
  115. }
  116. .psd-info-main {
  117. padding: 54rpx 24rpx 0;
  118. box-sizing: border-box;
  119. >text {
  120. font-size: 28rpx;
  121. font-family: SourceHanSansCN, SourceHanSansCN;
  122. font-weight: 550;
  123. color: #2D2D2D;
  124. position: relative;
  125. padding-bottom: 10rpx;
  126. margin-left: 20rpx;
  127. }
  128. >text::after {
  129. content: " ";
  130. position: absolute;
  131. bottom: 0;
  132. left: 15rpx;
  133. display: flex;
  134. width: 82rpx;
  135. height: 6rpx;
  136. background: var(--gd-but-color);
  137. border-radius: 4rpx;
  138. }
  139. >view {
  140. width: 100%;
  141. box-shadow: 0rpx 4rpx 8rpx 0rpx rgba(201,201,201,0.5);
  142. border-radius: 16rpx;
  143. box-sizing: border-box;
  144. margin-top: 40rpx;
  145. overflow: hidden;
  146. view {
  147. width: 100%;
  148. display: flex;
  149. box-sizing: border-box;
  150. height: 76rpx;
  151. font-family: SourceHanSansCN, SourceHanSansCN;
  152. >text {
  153. flex: 1;
  154. display: flex;
  155. justify-content: center;
  156. align-items: center;
  157. }
  158. }
  159. view:nth-child(2n+1) {
  160. background: rgba(255, 255, 255, 1);
  161. font-size: 24rpx;
  162. color: #606060;
  163. >text:last-child {
  164. color: rgba(237, 0, 0, 1);
  165. }
  166. }
  167. view:nth-child(2n) {
  168. background: rgba(245, 245, 245, 1);
  169. font-size: 24rpx;
  170. color: #606060;
  171. >text:last-child {
  172. color: rgba(237, 0, 0, 1);
  173. }
  174. }
  175. view:first-child {
  176. background: #363636 !important;
  177. font-size: 24rpx;
  178. font-weight: 550;
  179. color: #FFFFFF;
  180. >text:last-child {
  181. color: #FFFFFF;
  182. }
  183. }
  184. }
  185. }
  186. }
  187. }
  188. /** tabar */
  189. .main-tabar {
  190. width: 80vw;
  191. height: 100rpx;
  192. position: fixed;
  193. bottom: 20rpx;
  194. left: 50%;
  195. transform: translateX(-50%);
  196. box-sizing: border-box;
  197. .main-tabar-info {
  198. width: 100%;
  199. height: 100%;
  200. display: flex;
  201. justify-content: space-between;
  202. box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 6px 0px;
  203. border-radius: 40rpx;
  204. .main-tabar-item {
  205. flex: 1;
  206. display: flex;
  207. align-items: center;
  208. flex-direction: column;
  209. justify-content: center;
  210. image {
  211. width: 50rpx;
  212. height: 50rpx;
  213. }
  214. text {
  215. font-size: 24rpx;
  216. }
  217. }
  218. }
  219. }
  220. </style>