球星卡微信小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

220 lines
4.8 KiB

  1. <template>
  2. <view class="flex-col page">
  3. <view class="flex-col group_4">
  4. <view class="flex-col">
  5. <view class="flex-col section_2">
  6. <view class="justify-between">
  7. <text class="text_2">费用合计</text>
  8. <text class="text_3">¥120</text>
  9. </view>
  10. <view class="justify-between group_7">
  11. <text class="text_4">订单折扣</text>
  12. <text class="text_5"></text>
  13. </view>
  14. </view>
  15. <view class="card">
  16. <!-- <u-collapse @change="change" @close="close" @open="open" ref="myCollapse" > -->
  17. <u-collapse :border="false" ref="myCollapse" :value="['Rating fee']">
  18. <u-collapse-item title="评级费用" value="¥120" name="Rating fee" >
  19. <view class="u-collapse-content lf-row-between collapse-item-content">
  20. <view>ANDRW WIGGINS</view>
  21. <view>¥40</view>
  22. </view>
  23. <view class="u-collapse-content lf-row-between collapse-item-content">
  24. <view>ANDRW WIGGINS</view>
  25. <view>¥40</view>
  26. </view>
  27. <view class="u-collapse-content lf-row-between collapse-item-content">
  28. <view>ANDRW WIGGINS</view>
  29. <view>¥40</view>
  30. </view>
  31. </u-collapse-item>
  32. </u-collapse>
  33. </view>
  34. <view class="card">
  35. <u-collapse :border="false" :value="['other expenses']">
  36. <u-collapse-item title="其他费用" value="¥0" name="other expenses" >
  37. <lf-table :Header="header" :Content="content" height="auto" width="100%" :showNumber="false" :border="false" headBgColor="transparent"></lf-table>
  38. </u-collapse-item>
  39. </u-collapse>
  40. </view>
  41. <view style="width: 100%; height: 30rpx;"></view>
  42. </view>
  43. </view>
  44. </view>
  45. </template>
  46. <script>
  47. import lfTable from '@/components/lf-table.vue'
  48. export default {
  49. components: {
  50. lfTable
  51. },
  52. data() {
  53. return {
  54. header: [{
  55. text: '费用名称',
  56. width: 171,
  57. key: 'name'
  58. },{
  59. text: '价格',
  60. width: 171,
  61. key: 'price'
  62. },{
  63. text: '数量',
  64. width: 171,
  65. key: 'number'
  66. },{
  67. text: '合计',
  68. width: 171,
  69. key: 'total'
  70. }],
  71. content: [{
  72. name: '牛奶',
  73. price: '¥10',
  74. number: 3,
  75. total: '¥10'
  76. },{
  77. name: '大咖',
  78. price: '¥10',
  79. number: 2,
  80. total: '¥10'
  81. }]
  82. };
  83. },
  84. onLoad(){
  85. // todo 折叠面板获取到数据后需要重新计算高度:this.$nextTick(() => this.$refs.myCollapse.init())
  86. }
  87. };
  88. </script>
  89. <style scoped lang="scss">
  90. .center-section {
  91. margin-top: 30rpx;
  92. padding: 40rpx 30rpx 40rpx 32rpx;
  93. background-color: rgb(255, 255, 255);
  94. }
  95. .image_6 {
  96. margin-left: 8rpx;
  97. align-self: center;
  98. width: 26rpx;
  99. height: 16rpx;
  100. }
  101. .text_6 {
  102. color: rgb(51, 51, 51);
  103. font-size: 32rpx;
  104. font-weight: 500;
  105. line-height: 44rpx;
  106. white-space: nowrap;
  107. }
  108. .right-group {
  109. color: rgb(231, 162, 63);
  110. font-size: 32rpx;
  111. font-weight: 600;
  112. line-height: 44rpx;
  113. white-space: nowrap;
  114. }
  115. .group_9 {
  116. margin-top: 40rpx;
  117. color: rgb(119, 119, 119);
  118. font-size: 28rpx;
  119. font-weight: 500;
  120. line-height: 40rpx;
  121. white-space: nowrap;
  122. }
  123. .page {
  124. background-color: #f6f6f6;
  125. width: 100%;
  126. overflow-y: auto;
  127. height: 100%;
  128. }
  129. .group_4 {
  130. padding: 2rpx 0 16rpx;
  131. flex: 1 1 auto;
  132. overflow-y: auto;
  133. }
  134. .section_2 {
  135. padding: 40rpx 32rpx;
  136. background-color: rgb(255, 255, 255);
  137. }
  138. .group_7 {
  139. margin-top: 50rpx;
  140. }
  141. .group_10 {
  142. margin-top: 30rpx;
  143. color: rgb(119, 119, 119);
  144. font-size: 28rpx;
  145. font-weight: 500;
  146. line-height: 40rpx;
  147. white-space: nowrap;
  148. }
  149. .group_11 {
  150. margin-top: 30rpx;
  151. color: rgb(119, 119, 119);
  152. font-size: 28rpx;
  153. font-weight: 500;
  154. line-height: 40rpx;
  155. white-space: nowrap;
  156. }
  157. .text_2 {
  158. color: rgb(51, 51, 51);
  159. font-size: 32rpx;
  160. font-weight: 500;
  161. line-height: 44rpx;
  162. white-space: nowrap;
  163. }
  164. .text_3 {
  165. color: rgb(231, 162, 63);
  166. font-size: 32rpx;
  167. font-weight: 600;
  168. line-height: 44rpx;
  169. white-space: nowrap;
  170. }
  171. .text_4 {
  172. color: rgb(51, 51, 51);
  173. font-size: 32rpx;
  174. font-weight: 500;
  175. line-height: 44rpx;
  176. white-space: nowrap;
  177. }
  178. .text_5 {
  179. color: rgb(51, 51, 51);
  180. font-size: 32rpx;
  181. font-weight: 600;
  182. line-height: 44rpx;
  183. white-space: nowrap;
  184. }
  185. .text_18 {
  186. margin-left: 116rpx;
  187. }
  188. .text_19 {
  189. margin-left: 118rpx;
  190. }
  191. .text_20 {
  192. margin-left: 116rpx;
  193. }
  194. .card{
  195. width: 750rpx;
  196. height: auto;
  197. background-color: #FFFFFF;
  198. margin-top: 30rpx;
  199. }
  200. .collapse-item-content{
  201. padding: 12rpx 0;
  202. &>view:nth-child(1){
  203. width: 80%;
  204. }
  205. &>view:nth-child(2){
  206. width: 20%;
  207. text-align: right;
  208. }
  209. }
  210. /deep/.u-cell__value{
  211. font-size: 32rpx !important;
  212. color: #E7A23F !important;
  213. }
  214. </style>