index.vue 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268
  1. <template>
  2. <view class="psd-content">
  3. <view class="psd-content-info">
  4. <view class="psd-bgm" :style="{backgroundImage: 'url('+perform.showImg+')'}">
  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">{{ perform && perform.name }}</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. <text>佣金</text>
  28. </view>
  29. <view
  30. v-if="perform && perform.brokerageList && perform.brokerageList.length>0"
  31. v-for="(item,index) in perform.brokerageList"
  32. :key="index">
  33. <text>{{item.goodsName}}</text>
  34. <text>{{item.seatTypeName}}</text>
  35. <text>{{item.originalSalePrice}}</text>
  36. <text>{{item.salePrice}}</text>
  37. <text>{{item.brokeragePrice}}</text>
  38. </view>
  39. </view>
  40. </view>
  41. </view>
  42. </view>
  43. </view>
  44. </view>
  45. </template>
  46. <script>
  47. export default {
  48. data() {
  49. return {
  50. title: '剧场票务管理系统',
  51. logoUrl: this.$commonConfig.staticUrl + process.env.H_NODE_ENV == 'development' ? "login/logo_dev.png" : "login/logo.png",
  52. loading: false,
  53. performId: null,
  54. perform: {}
  55. }
  56. },
  57. onLoad(e) {
  58. console.log(e)
  59. this.performId = e.performId
  60. },
  61. onShow() {
  62. this.getRetailInfo()
  63. },
  64. methods: {
  65. async getRetailInfo(){
  66. try{
  67. this.perform = {}
  68. let res = await this.$u.api.getRetailInfo({
  69. noSign: 1,
  70. userid: this.distribution_user_info.userId,
  71. performId: this.performId,
  72. })
  73. if(res && res.code ===200) {
  74. this.perform = res.data
  75. } else {
  76. }
  77. }catch(e){
  78. }
  79. }
  80. }
  81. }
  82. </script>
  83. <style lang="scss" scoped>
  84. .psd-content {
  85. width: 100%;
  86. height: 100%;
  87. position: relative;
  88. box-sizing: border-box;
  89. --bgm-height: 476rpx;
  90. }
  91. /** 背景 */
  92. .psd-content-box {
  93. width: 100%;
  94. height: 100%;
  95. box-sizing: border-box;
  96. }
  97. .psd-bgm {
  98. width: 100%;
  99. height: var(--bgm-height);
  100. background-size: 100% 100%;
  101. background-repeat: no-repeat;
  102. box-sizing: border-box;
  103. .psd-logo {
  104. width: 240rpx;
  105. height: 172rpx;
  106. padding: 50rpx 0;
  107. }
  108. >text {
  109. font-size: 32rpx;
  110. font-family: SourceHanSansCN, SourceHanSansCN;
  111. font-weight: bold;
  112. color: #FFFFFF;
  113. }
  114. }
  115. .psd-info {
  116. width: 100%;
  117. height: calc(100% - var(--bgm-height) + 40rpx);
  118. background-color: #fff;
  119. border-radius: 28rpx 28rpx 0rpx 0rpx;
  120. position: absolute;
  121. bottom: 0;
  122. left: 0;
  123. z-index: 22;
  124. box-sizing: border-box;
  125. .psd-info-box {
  126. width: 100%;
  127. height: 100%;
  128. display: flex;
  129. flex-direction: column;
  130. box-sizing: border-box;
  131. .psd-info-title {
  132. display: flex;
  133. font-size: 40rpx;
  134. font-family: SourceHanSansCN, SourceHanSansCN;
  135. font-weight: 800;
  136. color: #2D2D2D;
  137. padding: 54rpx 0 38rpx 40rpx;
  138. border-bottom: 6rpx solid rgba(245, 245, 245, 1);
  139. box-sizing: border-box;
  140. }
  141. .psd-info-main {
  142. padding: 54rpx 24rpx 0;
  143. box-sizing: border-box;
  144. >text {
  145. font-size: 28rpx;
  146. font-family: SourceHanSansCN, SourceHanSansCN;
  147. font-weight: 550;
  148. color: #2D2D2D;
  149. position: relative;
  150. padding-bottom: 10rpx;
  151. margin-left: 20rpx;
  152. }
  153. >text::after {
  154. content: " ";
  155. position: absolute;
  156. bottom: 0;
  157. left: 15rpx;
  158. display: flex;
  159. width: 82rpx;
  160. height: 6rpx;
  161. background: var(--gd-but-color);
  162. border-radius: 4rpx;
  163. }
  164. >view {
  165. width: 100%;
  166. box-shadow: 0rpx 4rpx 8rpx 0rpx rgba(201,201,201,0.5);
  167. border-radius: 16rpx;
  168. box-sizing: border-box;
  169. margin-top: 40rpx;
  170. overflow: hidden;
  171. view {
  172. width: 100%;
  173. display: flex;
  174. box-sizing: border-box;
  175. height: 76rpx;
  176. font-family: SourceHanSansCN, SourceHanSansCN;
  177. >text {
  178. flex: 1;
  179. display: flex;
  180. justify-content: center;
  181. align-items: center;
  182. }
  183. >text:nth-child(1) {
  184. flex: 1.5;
  185. }
  186. >text:nth-child(2) {
  187. flex: 1.5;
  188. }
  189. }
  190. view:nth-child(2n+1) {
  191. background: rgba(255, 255, 255, 1);
  192. font-size: 24rpx;
  193. color: #606060;
  194. >text:last-child {
  195. color: rgba(237, 0, 0, 1);
  196. }
  197. }
  198. view:nth-child(2n) {
  199. background: rgba(245, 245, 245, 1);
  200. font-size: 24rpx;
  201. color: #606060;
  202. >text:last-child {
  203. color: rgba(237, 0, 0, 1);
  204. }
  205. }
  206. view:first-child {
  207. background: #363636 !important;
  208. font-size: 24rpx;
  209. font-weight: 550;
  210. color: #FFFFFF;
  211. >text:last-child {
  212. color: #FFFFFF;
  213. }
  214. }
  215. }
  216. }
  217. }
  218. }
  219. /** tabar */
  220. .main-tabar {
  221. width: 80vw;
  222. height: 100rpx;
  223. position: fixed;
  224. bottom: 20rpx;
  225. left: 50%;
  226. transform: translateX(-50%);
  227. box-sizing: border-box;
  228. .main-tabar-info {
  229. width: 100%;
  230. height: 100%;
  231. display: flex;
  232. justify-content: space-between;
  233. box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 6px 0px;
  234. border-radius: 40rpx;
  235. .main-tabar-item {
  236. flex: 1;
  237. display: flex;
  238. align-items: center;
  239. flex-direction: column;
  240. justify-content: center;
  241. image {
  242. width: 50rpx;
  243. height: 50rpx;
  244. }
  245. text {
  246. font-size: 24rpx;
  247. }
  248. }
  249. }
  250. }
  251. </style>