billDetail.vue 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. <template>
  2. <view>
  3. <block v-if="current==1">
  4. <view class="top">
  5. <image :src="billDetail.channelLogo?billDetail.channelLogo:'/static/icon/avatar.png'" mode="aspectFit"></image>
  6. <text class="title">{{billDetail.channelName}}</text>
  7. <view class="data">
  8. <image src="@/static/icon/points-value.png" mode="aspectFit"></image>
  9. <view>
  10. <text>-{{billDetail.point}}</text>
  11. <text>(价值 ¥ {{billDetail.pointValue}})</text>
  12. </view>
  13. </view>
  14. </view>
  15. <view class="card">
  16. <view class="item">
  17. <text>交易状态</text>
  18. <text>交易成功</text>
  19. </view>
  20. <view class="item" v-if="billDetail.jsStatus">
  21. <text>结算时间</text>
  22. <text>{{billDetail.jsStatus}}</text>
  23. </view>
  24. <view class="item">
  25. <text>账期</text>
  26. <text>{{billDetail.paymentDays}}</text>
  27. </view>
  28. <view class="item">
  29. <text>产生时间</text>
  30. <text>{{billDetail.updateTime}}</text>
  31. </view>
  32. <view class="item">
  33. <text>交易时间</text>
  34. <text>{{billDetail.jsTime}}</text>
  35. </view>
  36. <view class="item">
  37. <text>交易单号</text>
  38. <text>{{billDetail.billRecordId}}</text>
  39. </view>
  40. <view class="item">
  41. <text>商户单号</text>
  42. <text>{{billDetail.billRecordId}}</text>
  43. </view>
  44. </view>
  45. </block>
  46. <block v-if="current==0">
  47. <view class="top">
  48. <image style="border-radius: 50%;" :src="billDetail.userAvator?billDetail.userAvator:'/static/icon/avatar.png'" mode="aspectFit"></image>
  49. <text class="title">{{billDetail.userName?billDetail.userName:'微信用户'}}</text>
  50. <view class="data">
  51. <view class="mainColor" style="padding: 0;">
  52. +{{billDetail.realPayAmount}}
  53. </view>
  54. </view>
  55. </view>
  56. <view class="card">
  57. <view class="item">
  58. <text>总价</text>
  59. <text class="strong">{{billDetail.price}}</text>
  60. </view>
  61. <view class="item">
  62. <text>积分成本</text>
  63. <view class="u-flex">
  64. <image style="width: 26rpx;height: 26rpx;" src="@/static/icon/points-value.png" mode="aspectFit"></image>
  65. <text class="mainColor margin-left-10">{{billDetail.point?billDetail.point:0}}</text>
  66. <text class="strong" style="margin-left: 50rpx;">¥ {{billDetail.pointValue?billDetail.pointValue:0}}</text>
  67. </view>
  68. </view>
  69. <view class="item">
  70. <text>联营折扣</text>
  71. <text style="color: #000;">{{billDetail.subsidy==1?'无折扣': $digital.floatMul(billDetail.subsidy , 10) +'折'}}</text>
  72. </view>
  73. <view class="item">
  74. <text>通兑应收</text>
  75. <text class="strong">¥{{billDetail.tongduiAccount?billDetail.tongduiAccount:0}}</text>
  76. </view>
  77. <view class="item">
  78. <text>交易状态</text>
  79. <text>{{billDetail.payStatus==0?'待付款':billDetail.payStatus==1?'已付款':'已取消'}}</text>
  80. </view>
  81. <view class="item">
  82. <text>交易时间</text>
  83. <text>{{billDetail.updateTime}}</text>
  84. </view>
  85. <view class="item">
  86. <text>支付方式</text>
  87. <text>{{billDetail.payWay}}</text>
  88. </view>
  89. <view class="item">
  90. <text>交易单号</text>
  91. <text>{{billDetail.id}}</text>
  92. </view>
  93. </view>
  94. </block>
  95. <view class="question">
  96. <text>对订单有疑问</text>
  97. <text class="cuIcon-right" style="margin-top: 5rpx;"></text>
  98. </view>
  99. </view>
  100. </template>
  101. <script>
  102. export default{
  103. data(){
  104. return{
  105. billDetail:{},
  106. current:0
  107. }
  108. },
  109. onLoad(option) {
  110. if(option.billDetail){
  111. this.billDetail = JSON.parse(option.billDetail)
  112. }
  113. if(option.current){
  114. this.current = option.current
  115. }
  116. }
  117. }
  118. </script>
  119. <style scoped lang="scss">
  120. .top {
  121. padding: 50rpx 0 0;
  122. display: flex;
  123. justify-content: center;
  124. align-items: center;
  125. flex-direction: column;
  126. image {
  127. width: 140rpx;
  128. height: 140rpx;
  129. }
  130. .title {
  131. color: #000;
  132. padding-top: 15rpx;
  133. font-size: 32rpx;
  134. }
  135. .data {
  136. padding-top: 30rpx;
  137. display: flex;
  138. image {
  139. width: 40rpx;
  140. height: 40rpx;
  141. }
  142. view {
  143. padding-left: 20rpx;
  144. text:first-child {
  145. color: #000;
  146. font-size: 38rpx;
  147. }
  148. text:last-child {
  149. font-size: 32rpx;
  150. padding-left: 20rpx;
  151. }
  152. }
  153. }
  154. }
  155. .card {
  156. margin-top: 50rpx;
  157. padding: 20rpx 30rpx;
  158. background-color: #FFFFFF;
  159. .item{
  160. padding: 20rpx 0;
  161. font-size: 28rpx;
  162. color: #888888;
  163. margin: 0 20rpx;
  164. display: flex;
  165. justify-content: space-between;
  166. }
  167. }
  168. .question{
  169. color: #888888;
  170. background-color: #FFFFFF;
  171. margin-top: 20rpx;
  172. padding: 20rpx 50rpx;
  173. display: flex;
  174. justify-content: space-between;
  175. }
  176. .mainColor{
  177. font-weight: bold;
  178. color: $color;
  179. }
  180. .strong{
  181. font-weight: bold;
  182. color: #000;
  183. }
  184. </style>