bill-detail.vue 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262
  1. <template>
  2. <view>
  3. <block v-if="type=='point'">
  4. <view class="top">
  5. <image style="border-radius: 50%;" :src="item.channelLogo" mode=""></image>
  6. <text class="title">{{item.channelName}}</text>
  7. <view class="data text-center center">
  8. <view style="padding: 0;" v-if="price(item)">
  9. <text class="price plus" style="margin-left: -10rpx;">{{item.price}}</text>
  10. </view>
  11. <view v-else style="padding: 0;">
  12. <text class="price reduce"
  13. style="padding: 0;color: #F39248;margin-left: -10rpx;">{{item.totalPrice}}</text>
  14. </view>
  15. </view>
  16. </view>
  17. <view class="card">
  18. <block v-if="item.type!=4">
  19. <view class="item">
  20. <text>交易状态</text>
  21. <text>{{item.payStatus}}</text>
  22. </view>
  23. <view class="item">
  24. <text>交易金额</text>
  25. <text>{{item.price || 0.00}}</text>
  26. </view>
  27. <view class="item">
  28. <text>交易手续费</text>
  29. <text>{{item.fee || 0.00}}</text>
  30. </view>
  31. <view class="item">
  32. <text>交易描述</text>
  33. <text>{{item.title}}</text>
  34. </view>
  35. <view class="item">
  36. <text>交易时间</text>
  37. <text>{{item.createTime}}</text>
  38. </view>
  39. </block>
  40. <view class="item">
  41. <text>交易单号</text>
  42. <text>{{item.id}}</text>
  43. </view>
  44. </view>
  45. </block>
  46. <block v-if="type=='balance'">
  47. <view class="top">
  48. <image style="border-radius: 50%;" :src="item.logo" mode=""></image>
  49. <text class="title">{{item.name}}</text>
  50. <view class="data text-center center">
  51. <view style="padding: 0;" v-if="price(item)">
  52. <text class="price plus" style="margin-left: -10rpx;">{{item.price}}</text>
  53. </view>
  54. <view v-else>
  55. <text class="price reduce"
  56. style="padding: 0;color: #F39248;margin-left: -10rpx;">{{item.totalPrice}}</text>
  57. </view>
  58. </view>
  59. </view>
  60. <view class="card">
  61. <view class="item">
  62. <text>交易标题</text>
  63. <text>{{item.title}}</text>
  64. </view>
  65. <view class="item">
  66. <text>交易状态</text>
  67. <text>{{item.payStatus}}</text>
  68. </view>
  69. <view class="item">
  70. <text>交易金额</text>
  71. <text class="price">{{item.price || 0.00}}</text>
  72. </view>
  73. <view class="item" v-if="item.type=='PAY_CONSUMER'">
  74. <text>积分手续费</text>
  75. <text class="price">{{item.fee || 0.00}}</text>
  76. </view>
  77. <view class="item">
  78. <text>交易类型</text>
  79. <text v-if="item.type=='PAY_CONSUMER'">用户消费</text>
  80. <text v-else>赠送积分</text>
  81. </view>
  82. <view class="item">
  83. <text>交易时间</text>
  84. <text>{{item.createTime}}</text>
  85. </view>
  86. <view class="item">
  87. <text>交易单号</text>
  88. <text>{{item.id}}</text>
  89. </view>
  90. </view>
  91. </block>
  92. <block v-if="type=='all'">
  93. <view class="top">
  94. <block v-if="item.type=='AGENT_CHARGE'">
  95. <image style="border-radius: 50%;" src="../../../static/logo.png" mode=""></image>
  96. <text class="title">联兑通</text>
  97. </block>
  98. <block v-else>
  99. <image style="border-radius: 50%;" :src="item.receiverLogo" mode=""></image>
  100. <text class="title">{{item.receiverName}}</text>
  101. </block>
  102. <view class="data text-center center">
  103. <view style="padding: 0;" v-if="price(item)">
  104. <text class="price plus"
  105. style="padding: 0;color: #F39248;margin-left: -10rpx;">{{item.totalPrice}}</text>
  106. </view>
  107. <view style="padding: 0;" v-else>
  108. <text class="price reduce"
  109. style="padding: 0;color: #F39248;margin-left: -10rpx;">{{item.totalPrice}}</text>
  110. </view>
  111. </view>
  112. </view>
  113. <view class="card">
  114. <view class="item">
  115. <text>交易标题</text>
  116. <text>{{item.title}}</text>
  117. </view>
  118. <view class="item">
  119. <text>交易状态</text>
  120. <text>{{item.payStatus}}</text>
  121. </view>
  122. <view class="item" v-if="$isNotEmpty(item.pointNum) && item.pointNum != -1">
  123. <text>积分支付</text>
  124. <text class="price">{{item.pointNum || 0.00}}</text>
  125. </view>
  126. <view class="item">
  127. <text>余额支付</text>
  128. <text class="price">{{item.balanceNum || 0.00}}</text>
  129. </view>
  130. <view class="item">
  131. <text>现金支付</text>
  132. <text class="price">{{item.price || 0.00}}</text>
  133. </view>
  134. <!-- <view class="item" v-if="$isNotEmpty(item.pointFee) && item.pointFee != -1">
  135. <text>积分手续费</text>
  136. <text class="price">{{item.pointFee || 0.00}}</text>
  137. </view>
  138. <view class="item" v-if="$isNotEmpty(item.fee) && item.fee != -1">
  139. <text>交易手续费</text>
  140. <text class="price">{{item.fee || 0.00}}</text>
  141. </view> -->
  142. <view class="item">
  143. <text>交易时间</text>
  144. <text>{{item.createTime}}</text>
  145. </view>
  146. <view class="item">
  147. <text>交易单号</text>
  148. <text>{{item.id}}</text>
  149. </view>
  150. </view>
  151. </block>
  152. <button open-type="contact" class="question" style="height: 86rpx;font-size: 28rpx;">
  153. <text class="center">对订单有疑问</text>
  154. <text class="cuIcon-right center" style="margin-top: 5rpx;"></text>
  155. </button>
  156. </view>
  157. </template>
  158. <script>
  159. export default {
  160. data() {
  161. return {
  162. item: null,
  163. type: ''
  164. }
  165. },
  166. computed: {
  167. price() {
  168. return item => {
  169. if (item.type=='MALL_SEND'||item.type=='SHOP_SEND'||item.type=='MALL_RECHARGE') {
  170. return true
  171. }
  172. return false
  173. }
  174. },
  175. },
  176. onLoad(options) {
  177. if (options.billDetail) {
  178. this.item = JSON.parse(options.billDetail)
  179. }
  180. if (options.type) {
  181. this.type = options.type
  182. }
  183. },
  184. methods: {
  185. }
  186. }
  187. </script>
  188. <style lang="scss" scoped>
  189. .top {
  190. padding: 50rpx 0 0;
  191. display: flex;
  192. justify-content: center;
  193. align-items: center;
  194. flex-direction: column;
  195. image {
  196. width: 140rpx;
  197. height: 140rpx;
  198. }
  199. .title {
  200. color: #000;
  201. padding-top: 15rpx;
  202. font-size: 32rpx;
  203. }
  204. .data {
  205. padding-top: 30rpx;
  206. display: flex;
  207. image {
  208. width: 40rpx;
  209. height: 40rpx;
  210. }
  211. view {
  212. padding-left: 20rpx;
  213. text:first-child {
  214. color: #000;
  215. font-size: 38rpx;
  216. }
  217. text:last-child {
  218. font-size: 32rpx;
  219. padding-left: 20rpx;
  220. }
  221. }
  222. }
  223. }
  224. .card {
  225. margin-top: 50rpx;
  226. padding: 20rpx 30rpx;
  227. background-color: #FFFFFF;
  228. .item {
  229. padding: 20rpx 0;
  230. font-size: 28rpx;
  231. color: #888888;
  232. margin: 0 20rpx;
  233. display: flex;
  234. justify-content: space-between;
  235. }
  236. }
  237. .question {
  238. color: #888888;
  239. background-color: #FFFFFF;
  240. margin-top: 20rpx;
  241. padding: 20rpx 50rpx;
  242. display: flex;
  243. justify-content: space-between;
  244. }
  245. </style>