view_appraise.vue 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. <template>
  2. <view>
  3. <!--标题栏-->
  4. <bar-title bgColor="bg-white" isBack>
  5. <block slot="content">评价详情</block>
  6. </bar-title>
  7. <!--商品信息-->
  8. <view class="bg-white zaiui-goods-details-box">
  9. <view class="cu-avatar radius" :style="[{backgroundImage:'url('+ bg_img +')'}]"/>
  10. <view class="goods-info-view">
  11. <view class="text-cut text-black">商品名称 99新 苹果 iPhoneX 256G 银色</view>
  12. <view class="text-gray text-sm">交易时间: 2020-04-02 15:22</view>
  13. </view>
  14. <view class="text-gray text-sm text-cut zaiui-goods-tip-view">您购买的商品信息仅对您本人可见,不会对他人展示。</view>
  15. </view>
  16. <!--间距-->
  17. <view class="zaiui-hight-view"/>
  18. <!--评价内容-->
  19. <view class="zaiui-appraise-view">
  20. <view class="title-view">
  21. <view class="name">我的评价:</view>
  22. <view class="content">很棒,66666</view>
  23. </view>
  24. <view class="text-sm text-gray time-view">
  25. <view class="time">买家 2020-04-02</view>
  26. <view class="status">非常满意</view>
  27. </view>
  28. </view>
  29. <!--到底了-->
  30. <view class="zaiui-foot-tip-view">
  31. <view class="img-view">
  32. <view class="cu-avatar round" style="background-image:url('/static/zaiui/img/acn.png')"/>
  33. </view>
  34. <view class="text-gray">hi,到底啦~</view>
  35. </view>
  36. <!--按钮-->
  37. <view class="zaiui-btn-view">
  38. <view class="flex flex-direction">
  39. <button class="cu-btn bg-red" @tap="addTap">追加评价</button>
  40. </view>
  41. </view>
  42. </view>
  43. </template>
  44. <script>
  45. import barTitle from '@/components/zaiui-common/basics/bar-title';
  46. import _tool from '@/static/zaiui/util/tools.js'; //工具函数
  47. export default {
  48. components: {
  49. barTitle
  50. },
  51. data() {
  52. return {
  53. bg_img: '/static/images/home/goods/1.png',
  54. }
  55. },
  56. onLoad() {
  57. },
  58. onReady() {
  59. _tool.setBarColor(true);
  60. uni.pageScrollTo({
  61. scrollTop: 0,
  62. duration: 0
  63. });
  64. },
  65. methods: {
  66. addTap() {
  67. uni.navigateTo({
  68. url: "/pages/order/add_appraise"
  69. })
  70. }
  71. }
  72. }
  73. </script>
  74. <style lang="scss">
  75. /* #ifdef APP-PLUS */
  76. @import "../../static/colorui/main.css";
  77. @import "../../static/colorui/icon.css";
  78. @import "../../static/zaiui/style/app.scss";
  79. /* #endif */
  80. page {
  81. background: #FFFFFF;
  82. }
  83. .zaiui-goods-details-box {
  84. position: relative;
  85. padding: 27.27upx;
  86. .cu-avatar {
  87. position: absolute;
  88. width: 81.81upx;
  89. height: 81.81upx;
  90. }
  91. .goods-info-view {
  92. position: relative;
  93. padding-left: 109.09upx;
  94. height: 81.81upx;
  95. line-height: 1.7;
  96. }
  97. .zaiui-goods-tip-view {
  98. position: relative;
  99. margin-top: 27.27upx;
  100. }
  101. }
  102. .zaiui-hight-view {
  103. width: 100%;
  104. height: 36.36upx;
  105. background: #FAFAFA;
  106. }
  107. .zaiui-appraise-view {
  108. position: relative;
  109. background-color: #F8F8F8;
  110. margin: 27.27upx 27.27upx 27.27upx 136.36upx;
  111. border-radius: 9.09upx;
  112. padding: 21.81upx;
  113. .title-view {
  114. position: relative;
  115. .name {
  116. position: absolute;
  117. }
  118. .content {
  119. position: relative;
  120. padding-left: 136.36upx;
  121. }
  122. }
  123. .time-view {
  124. position: relative;
  125. margin-top: 14.54upx;
  126. .time {
  127. position: relative;
  128. padding-right: 145.45upx;
  129. }
  130. .status {
  131. position: absolute;
  132. right: 0;
  133. top: 0;
  134. }
  135. }
  136. }
  137. .zaiui-foot-tip-view {
  138. position: relative;
  139. text-align: center;
  140. margin-top: 72.72upx;
  141. margin: 27.27upx 0;
  142. .img-view {
  143. position: relative;
  144. margin-bottom: 9.09upx;
  145. .cu-avatar {
  146. background: #FFFFFF;
  147. background-size: cover;
  148. background-position: center;
  149. }
  150. }
  151. }
  152. .zaiui-btn-view {
  153. position: fixed;
  154. width: 100%;
  155. bottom: calc(env(safe-area-inset-bottom) / 2);
  156. .flex {
  157. padding: 18.18upx;
  158. }
  159. }
  160. </style>