check.vue 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  1. <template>
  2. <view class="check">
  3. <view class="top"></view>
  4. <view class="head">
  5. <span class="cuIcon-back" @click="back"></span>
  6. <view class="case">
  7. 核销详情
  8. </view>
  9. </view>
  10. <view class="content">
  11. <view class="status">
  12. 已核销<br />
  13. <span>已完成</span>
  14. </view>
  15. <view class="product">
  16. <view class="title">
  17. 商品信息
  18. </view>
  19. <view class="center">
  20. <view class="img">
  21. <image :src="form.productImage" mode=""></image>
  22. </view>
  23. <view class="name">
  24. {{form.productName}}
  25. <view class="price">
  26. ¥{{form.costPrice}}/份
  27. <span>实付款:¥ {{form.orderPrice}}</span>
  28. </view>
  29. </view>
  30. </view>
  31. </view>
  32. <view class="product">
  33. <view class="title">
  34. 订单信息
  35. </view>
  36. <view class="data">
  37. <span>订单号</span>
  38. {{form.orderId}}
  39. </view>
  40. <view class="data">
  41. <span>券码</span>
  42. {{form.voucherCode}}
  43. </view>
  44. <view class="data">
  45. <span>支付流水号</span>
  46. {{form.tradeId}}
  47. </view>
  48. <view class="data">
  49. <span>提交人</span>
  50. {{form.linkName}}
  51. </view>
  52. <view class="data">
  53. <span>联系电话</span>
  54. {{form.phone}}
  55. </view>
  56. <view class="data">
  57. <span>下单时间</span>
  58. {{form.buyTime}}
  59. </view>
  60. <view class="data">
  61. <span>付款时间</span>
  62. {{form.payTime}}
  63. </view>
  64. <view class="data">
  65. <span>使用时间</span>
  66. {{form.writeOffTime}}
  67. </view>
  68. </view>
  69. </view>
  70. </view>
  71. </template>
  72. <script>
  73. export default{
  74. data(){
  75. return{
  76. form:{}
  77. }
  78. },
  79. methods:{
  80. //返回
  81. back() {
  82. uni.navigateBack({
  83. delta: 1
  84. });
  85. },
  86. getDeatil(){
  87. this.$http.get("app/writeOff/writeDetails?id="+this.writeOffId , ).then(res => {
  88. if (res.data.code == 200) {
  89. this.form = res.data.result
  90. console.log(res)
  91. }else{
  92. }
  93. })
  94. .catch(()=>{
  95. this.mescroll.endErr()
  96. })
  97. }
  98. },
  99. onLoad(options) {
  100. this.writeOffId = options.writeOffId
  101. console.log(this.writeOffId )
  102. },
  103. onShow() {
  104. this.getDeatil()
  105. }
  106. }
  107. </script>
  108. <style lang="scss" scoped>
  109. .check {
  110. width: 100vw;
  111. height: 100vh;
  112. background: #F7F8FC;
  113. /*#ifdef APP-PLUS*/
  114. .top {
  115. width: 100%;
  116. background: linear-gradient( 87deg, #E2F4F8 0%, #A3CDFF 100%), linear-gradient( 360deg, #FFFFFF 0%, rgba(255,255,255,0) 100%);
  117. height: var(--status-bar-height);
  118. }
  119. /*#endif*/
  120. .head {
  121. width: 100%;
  122. height: 112rpx;
  123. padding: 20rpx;
  124. display: flex;
  125. align-items: center;
  126. background: linear-gradient( 87deg, #E2F4F8 0%, #A3CDFF 100%), linear-gradient( 360deg, #FFFFFF 0%, rgba(255,255,255,0) 100%);
  127. position: relative;
  128. .cuIcon-back {
  129. font-size: 40rpx;
  130. margin-right: 40rpx;
  131. }
  132. .case {
  133. position: absolute;
  134. left: 50%;
  135. transform: translateX(-50%);
  136. font-size: 36rpx;
  137. font-weight: 600;
  138. }
  139. }
  140. .content {
  141. padding: 24rpx;
  142. .status {
  143. font-size: 44rpx;
  144. padding: 0px 20rpx;
  145. color: #333333;
  146. span {
  147. font-size: 28rpx;
  148. color: #666666;
  149. line-height: 33rpx;
  150. }
  151. }
  152. .product {
  153. width: 100%;
  154. margin-top: 24rpx;
  155. background: #FFFFFF;
  156. box-shadow: 0px 2px 8px 0px rgba(214, 225, 237, 0.1);
  157. border-radius: 16px;
  158. padding: 20rpx;
  159. .title {
  160. font-size: 32rpx;
  161. color: #333333;
  162. }
  163. .center {
  164. display: flex;
  165. border-radius: 16rpx;
  166. margin-top: 16rpx;
  167. .img {
  168. width: 132rpx;
  169. height: 132rpx;
  170. border-radius: 12rpx;
  171. overflow: hidden;
  172. margin-right: 16rpx;
  173. image {
  174. width: 132rpx;
  175. height: 132rpx;
  176. }
  177. }
  178. .name {
  179. flex: 1;
  180. display: flex;
  181. flex-direction: column;
  182. justify-content: space-between;
  183. font-size: 30rpx;
  184. color: #000000;
  185. line-height: 35rpx;
  186. font-weight: 600;
  187. .price {
  188. font-size: 24rpx;
  189. display: flex;
  190. align-items: center;
  191. justify-content: space-between;
  192. color: #FF6A42;
  193. span {
  194. color: #666666;
  195. }
  196. }
  197. }
  198. }
  199. .data{
  200. width: 100%;
  201. height: 38rpx;
  202. display: flex;
  203. align-items: center;
  204. justify-content: space-between;
  205. margin-top:20rpx ;
  206. font-size: 28rpx;
  207. color: #333333;
  208. span{
  209. font-size: 26rpx;
  210. color: #8A91A8;
  211. }
  212. }
  213. }
  214. }
  215. }
  216. </style>