时空网前端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

212 lines
6.4 KiB

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
  1. <template>
  2. <view>
  3. <mescroll-body ref="mescrollRef" @down="downCallback" :down="downOpt">
  4. <!-- 商品信息 -->
  5. <self-line/>
  6. <view class="bg-white padding-tb-sm">
  7. <skeleton :loading="skeletonLoading" :row="2" :showAvatar="false" :showTitle="true">
  8. <view class="flex justify-between align-start padding-top-sm padding-lr">
  9. <image src="@/static/tu.png" mode="aspectFill" style="width: 150rpx; height: 150rpx;"></image>
  10. <view class="flex-sub padding-left-sm">
  11. <view class="bref-box margin-top-xs">
  12. 网红辣椒棒 魔鬼辣椒挑战全网第一辣 网红优惠季
  13. </view>
  14. <text class="block margin-top-sm text-gray text-sm">数量 <text class="margin-left text-gray">x1</text></text>
  15. <view class="flex justify-between margin-top-sm">
  16. <view class="text-red text-price text-lg">
  17. <amount :value="Number(19.90 || 0)" :is-round-up="false" :precision="2" :duration="800" transition></amount>
  18. </view>
  19. <view>
  20. <button class="cu-btn border-blue bg-white text-blue round margin-left-sm text-sm">等待审核</button>
  21. </view>
  22. </view>
  23. </view>
  24. </view>
  25. </skeleton>
  26. </view>
  27. <self-line/>
  28. <skeleton :loading="skeletonLoading" :row="3" :showAvatar="false" :showTitle="true">
  29. <view class="bg-white">
  30. <view class="cu-bar padding-lr solid-bottom flex justify-between align-center text-center">
  31. <text class="text-gray">订单金额</text>
  32. <view class="text-price">
  33. <amount :value="Number(19.90 || 0)" :is-round-up="false" :precision="2" :duration="800" transition></amount>
  34. </view>
  35. </view>
  36. <view class="cu-bar padding-lr solid-bottom flex justify-between align-center text-center">
  37. <text class="text-gray">扣费率</text>
  38. <view>
  39. <text>30%</text>
  40. </view>
  41. </view>
  42. <view class="cu-bar padding-lr solid-bottom flex justify-between align-center text-center">
  43. <text class="text-gray">扣费金额</text>
  44. <view class="text-price">
  45. <amount :value="Number(3.90 || 0)" :is-round-up="false" :precision="2" :duration="800" transition></amount>
  46. </view>
  47. </view>
  48. </view>
  49. </skeleton>
  50. <self-line/>
  51. <!-- 表单 -->
  52. <skeleton :loading="skeletonLoading" :row="2" :showAvatar="false" :showTitle="true">
  53. <view class="bg-white">
  54. <view class="cu-bar padding-lr solid-bottom flex justify-between align-center text-center">
  55. <text class="text-gray">可退金额</text>
  56. <view class="text-price">
  57. <amount :value="Number(16.00 || 0)" :is-round-up="false" :precision="2" :duration="800" transition></amount>
  58. </view>
  59. </view>
  60. <view class="cu-bar padding-lr solid-bottom flex justify-between align-center text-center">
  61. <text class="text-gray">订单编号</text>
  62. <view>
  63. <text class="margin-right">67432428794847982374</text>
  64. <text class="text-orange text-sm" @tap="copy('67432428794847982374')">复制</text>
  65. </view>
  66. </view>
  67. </view>
  68. </skeleton>
  69. <self-line/>
  70. <skeleton :loading="skeletonLoading" :row="6" :showAvatar="false" :showTitle="true">
  71. <view class="padding-top padding-lr bg-white">
  72. <view class="cu-self menu">
  73. <view class="text-gray">
  74. 由于产品的特殊性在申请的过程中供应商会向您收取部分费用如有疑问可参与产品的售后说明或咨询客服
  75. </view>
  76. </view>
  77. </view>
  78. <view class="padding bg-white">
  79. <view class="cu-self menu">
  80. <view class="text-df text-bold">退款说明</view>
  81. </view>
  82. <view class="cu-self menu margin-top">
  83. <view class="text-gray">看着不是很新鲜了然后还有一些都烂了看着不是很新鲜了然后还有一些都烂了看着不是很新鲜了然后还有一些都烂了看着不是很新鲜了然后还有一些都烂了看着不是很新鲜了然后还有一些都烂了</view>
  84. </view>
  85. </view>
  86. <view class="cu-form-group solid-bottom">
  87. <view class="grid col-4 grid-square flex-sub">
  88. <view class="bg-img">
  89. <image src="../../static/tu.png" @tap="showImg" mode="aspectFill"></image>
  90. </view>
  91. <view class="bg-img">
  92. <image src="../../static/tu.png" @tap="showImg" mode="aspectFill"></image>
  93. </view>
  94. <view class="bg-img">
  95. <image src="../../static/tu.png" @tap="showImg" mode="aspectFill"></image>
  96. </view>
  97. </view>
  98. </view>
  99. </skeleton>
  100. </mescroll-body>
  101. </view>
  102. </template>
  103. <script>
  104. import MescrollMixin from "@/components/mescroll-uni/mescroll-mixins.js";
  105. export default {
  106. mixins: [MescrollMixin], // 使用mixin
  107. data() {
  108. return {
  109. skeletonLoading: true,
  110. loading: false,
  111. // 选择的本地图片路径
  112. hostImg: '',
  113. // 已上传服务器的图片名称
  114. serverImg:'',
  115. }
  116. },
  117. computed: {
  118. },
  119. onLoad(e) {
  120. setTimeout(()=>{
  121. this.skeletonLoading = false
  122. this.mescroll.endSuccess(); // 请求成功,隐藏加载状态
  123. },1000)
  124. },
  125. methods: {
  126. // 选择图片
  127. ChooseImage(e) {
  128. uni.chooseImage({
  129. count: 1,
  130. success: e => {
  131. this.hostImg = e.tempFilePaths[0];
  132. }
  133. });
  134. },
  135. // 预览图片
  136. showImg() {
  137. uni.previewImage({
  138. urls: ['../../static/tu.png']
  139. });
  140. },
  141. // 删除图片
  142. DelImg() {
  143. uni.showModal({
  144. title: '提示',
  145. content: '即将取消上传这张图片,请确认?',
  146. success: e => {
  147. if (!e.confirm) return;
  148. this.hostImg = '';
  149. this.serverImg = '';
  150. }
  151. });
  152. },
  153. // 点击复制
  154. copy(text) {
  155. uni.setClipboardData({
  156. data: text
  157. });
  158. },
  159. //下拉刷新
  160. downCallback() {
  161. setTimeout(()=>{
  162. this.mescroll.endSuccess(); // 请求成功,隐藏加载状态
  163. this.mescroll.endErr(); // 请求失败,隐藏加载状态
  164. },1000)
  165. },
  166. }
  167. }
  168. </script>
  169. <style lang="scss" scoped>
  170. .address-box {
  171. // background-image: url(../../static/images/shop/envelope.png);
  172. background-repeat: repeat-x;
  173. background-position: left bottom;
  174. background-size: auto 8rpx;
  175. }
  176. .self-img-sm {
  177. width: 40rpx;
  178. height: 40rpx;
  179. }
  180. .bref-box {
  181. text-overflow: -o-ellipsis-lastline;
  182. overflow: hidden;
  183. text-overflow: ellipsis;
  184. display: -webkit-box;
  185. -webkit-line-clamp: 2;
  186. -webkit-box-orient: vertical;
  187. }
  188. .order-bottom {
  189. position: relative;
  190. .cuIcon-fold {
  191. position: absolute;
  192. right: 50rpx;
  193. top: -19rpx;
  194. color: rgba(0, 0, 0, 0.1)
  195. }
  196. }
  197. </style>