小程序端工程代码
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.

127 lines
2.7 KiB

  1. <template>
  2. <view v-show="iShidden === false">
  3. <view class="WriteOff">
  4. <view class="num acea-row row-center-wrapper">
  5. {{ orderInfo.orderId }}
  6. </view>
  7. <view class="tip">确定要核销此订单吗</view>
  8. <view class="sure" @click="confirm">确定核销</view>
  9. <view class="sure cancel" @click="cancel">取消</view>
  10. </view>
  11. <view class="mask" @touchmove.prevent></view>
  12. </view>
  13. </template>
  14. <style scoped lang="less">
  15. .WriteOff {
  16. width: 5.6*100rpx;
  17. height: 5*100rpx;
  18. background-color: #fff;
  19. border-radius: 0.2*100rpx;
  20. position: fixed;
  21. top: 50%;
  22. left: 50%;
  23. margin-top: -4*100rpx;
  24. margin-left: -2.8*100rpx;
  25. padding-top: 0.55*100rpx;
  26. z-index: 99999;
  27. }
  28. .WriteOff .pictrue {
  29. width: 3.4*100rpx;
  30. height: 3.4*100rpx;
  31. margin: 0 auto;
  32. }
  33. .WriteOff .pictrue image{
  34. width: 100%;
  35. height: 100%;
  36. display: block;
  37. border-radius: 0.1*100rpx;
  38. }
  39. .WriteOff .num {
  40. font-size: 0.3*100rpx;
  41. color: #666;
  42. margin: 0.28*100rpx 0 0.3*100rpx 0;
  43. }
  44. .WriteOff .num .see {
  45. font-size: 0.16*100rpx;
  46. color: #fff;
  47. border-radius: 0.04*100rpx;
  48. background-color: #c68937;
  49. padding-left: 0.05*100rpx;
  50. margin-left: 0.12*100rpx;
  51. }
  52. .WriteOff .num .see .iconfont {
  53. font-size: 0.15*100rpx;
  54. }
  55. .WriteOff .tip {
  56. font-size: 0.36*100rpx;
  57. color: #282828;
  58. text-align: center;
  59. border-top: 1px dashed #ccc;
  60. padding-top: 0.4*100rpx;
  61. position: relative;
  62. }
  63. .WriteOff .tip:after {
  64. content: "";
  65. position: absolute;
  66. width: 0.25*100rpx;
  67. height: 0.25*100rpx;
  68. border-radius: 50%;
  69. background-color: #7f7f7f;
  70. right: -0.125*100rpx;
  71. top: -0.125*100rpx;
  72. }
  73. .WriteOff .tip:before {
  74. content: "";
  75. position: absolute;
  76. width: 0.25*100rpx;
  77. height: 0.25*100rpx;
  78. border-radius: 50%;
  79. background-color: #7f7f7f;
  80. left: -0.125*100rpx;
  81. top: -0.125*100rpx;
  82. }
  83. .WriteOff .sure {
  84. font-size: 0.32*100rpx;
  85. color: #fff;
  86. text-align: center;
  87. line-height: 0.82*100rpx;
  88. height: 0.82*100rpx;
  89. width: 4.6*100rpx;
  90. border-radius: 0.41*100rpx;
  91. margin: 0.4*100rpx auto 0 auto;
  92. background-image: linear-gradient(to right, #f67a38 0%, #f11b09 100%);
  93. background-image: -webkit-linear-gradient(to right, #f67a38 0%, #f11b09 100%);
  94. background-image: -moz-linear-gradient(to right, #f67a38 0%, #f11b09 100%);
  95. }
  96. .WriteOff .sure.cancel {
  97. background-image: none;
  98. color: #999;
  99. margin-top: 0.1*100rpx;
  100. }
  101. </style>
  102. <script>
  103. export default {
  104. name: "WriteOff",
  105. props: {
  106. iShidden: {
  107. type: Boolean,
  108. default: true
  109. },
  110. orderInfo: {
  111. type: Object
  112. }
  113. },
  114. data: function() {
  115. return {};
  116. },
  117. mounted: function() {},
  118. methods: {
  119. cancel: function() {
  120. this.$emit("cancel", true);
  121. },
  122. confirm: function() {
  123. this.$emit("confirm", true);
  124. }
  125. }
  126. };
  127. </script>