details.vue 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  1. <template>
  2. <view class="box">
  3. <u-navbar :autoBack="true" title="详情" bgColor="rgba(255,255,255,0)" :placeholder="true" titleStyle="font-weight:bold;color:#000000"></u-navbar>
  4. <view class="ban">
  5. <view class="order">
  6. <view class="attribute">
  7. <view class="label">
  8. <text>活动:</text>
  9. </view>
  10. <view class="value">
  11. <text>{{item.activity_title}}</text>
  12. </view>
  13. </view>
  14. <view class="attribute">
  15. <view class="label">
  16. <text>姓名:</text>
  17. </view>
  18. <view class="value">
  19. <text>{{item.name}}</text>
  20. </view>
  21. </view>
  22. <view class="attribute">
  23. <view class="label">
  24. <text>手机号:</text>
  25. </view>
  26. <view class="value">
  27. <text>{{item.mobile}}</text>
  28. </view>
  29. </view>
  30. <view class="attribute">
  31. <view class="label">
  32. <text>身份证号:</text>
  33. </view>
  34. <view class="value">
  35. <text>{{item.id_card}}</text>
  36. </view>
  37. </view>
  38. <view class="attribute">
  39. <view class="label">
  40. <text>日程安排:</text>
  41. </view>
  42. <view class="value">
  43. <text>{{item.start_time}}~{{item.end_time}}</text>
  44. </view>
  45. </view>
  46. <view class="attribute">
  47. <view class="label">
  48. <text>描述:</text>
  49. </view>
  50. <view class="value">
  51. <text>{{item.desc}}</text>
  52. </view>
  53. </view>
  54. <view class="attribute" v-for="(value,key) in item.params" :key="key">
  55. <view class="label">
  56. <text>{{ key }}:</text>
  57. </view>
  58. <view class="value">
  59. <text>{{value}}</text>
  60. </view>
  61. </view>
  62. <view class="attribute">
  63. <view class="label">
  64. <text>费用:</text>
  65. </view>
  66. <view class="value">
  67. <text>¥{{item.price}}</text>
  68. </view>
  69. </view>
  70. <view class="attribute">
  71. <view class="label">
  72. <text>积分:</text>
  73. </view>
  74. <view class="value">
  75. <text>{{item.price}}</text>
  76. </view>
  77. </view>
  78. </view>
  79. </view>
  80. </view>
  81. </template>
  82. <script>
  83. let that;
  84. export default {
  85. data() {
  86. return {
  87. scrollTop: 0,
  88. item: []
  89. };
  90. },
  91. onLoad(option) {
  92. that = this;
  93. that.getUserSignupActivityDetails(option.id);
  94. },
  95. methods: {
  96. getUserSignupActivityDetails(id) {
  97. this.$api.getUserSignupActivityDetails(
  98. {
  99. signup_id: id
  100. },
  101. data => {
  102. if (data.code == 0) {
  103. that.$common.errorToShow(data.msg);
  104. return;
  105. } else {
  106. that.item = data.data;
  107. if (that.item.params === 'undefined' || that.item.params === '' || that.item.params === [] || that.item.params === null) {
  108. }else {
  109. that.item.params = Object.assign({}, ...that.item.params);
  110. }
  111. console.log(that.item, 'item');
  112. }
  113. }
  114. );
  115. },
  116. }
  117. }
  118. </script>
  119. <style lang="scss" scoped>
  120. .box {
  121. width: 100%;
  122. padding-bottom: 50rpx;
  123. background-image: url('https://huli-app.wenlvti.net/app_static/WenWuGuanJia/image/xbg_2.png');
  124. background-size: 100% 100%;
  125. background-attachment: fixed;
  126. background-repeat: repeat-y;
  127. height: 100%;
  128. .ban {
  129. position: relative;
  130. width: 92%;
  131. margin: auto;
  132. }
  133. .order {
  134. .attribute {
  135. display: flex;
  136. margin-bottom: 10rpx;
  137. background: #f0f0f0;
  138. padding: 20rpx;
  139. .label {
  140. display: inline-block;
  141. width: 140rpx;
  142. .icon-daohang {
  143. color: #000000;
  144. font-size: 40rpx;
  145. margin-right: 20rpx;
  146. display: block;
  147. }
  148. }
  149. .value {}
  150. }
  151. }
  152. .bottom {
  153. padding: 20rpx;
  154. position: fixed;
  155. bottom: 0;
  156. left: 0;
  157. right: 0;
  158. width: 100%;
  159. .tips {
  160. text-align: center;
  161. color: $uni-color-primary;
  162. font-size: 24rpx;
  163. }
  164. }
  165. .friend {
  166. text-align: center;
  167. }
  168. .footer {
  169. position: fixed;
  170. z-index: 99;
  171. left: 0;
  172. bottom: 126rpx;
  173. width: 100%;
  174. .tips {
  175. text-align: center;
  176. color: #ff7950;
  177. font-size: 24rpx;
  178. }
  179. }
  180. .scroll-Y {
  181. height: 400rpx;
  182. }
  183. }
  184. </style>