mallOrderForm.vue 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. <template>
  2. <!-- 商城订单 -->
  3. <view class="mall">
  4. <view class="mall-top">
  5. <text class="mall-title">{{ i18n.mallOrders }}</text>
  6. <view class="all" @click="toOrderFrom('')">
  7. <text>{{ i18n.whole }}</text>
  8. <image
  9. class="right"
  10. src="../../../static/mine/right.png"
  11. mode=""
  12. ></image>
  13. </view>
  14. </view>
  15. <view class="order-form">
  16. <view class="icon-center" @click="toOrderFrom('unpaid')">
  17. <image
  18. class="form-icon"
  19. src="../../../static/mine/310.png"
  20. mode=""
  21. ></image>
  22. <view class="characters">{{ i18n.pendingPayment }}</view>
  23. </view>
  24. <view class="icon-center" @click="toOrderFrom('unreview')">
  25. <image
  26. class="form-icon"
  27. src="../../../static/mine/311.png"
  28. mode=""
  29. ></image>
  30. <view class="characters">{{ i18n.joiningGroups }}</view>
  31. </view>
  32. <view class="icon-center" @click="toOrderFrom('undelivered')">
  33. <image
  34. class="form-icon"
  35. src="../../../static/mine/312.png"
  36. mode=""
  37. ></image>
  38. <view class="characters">{{ i18n.toBeShipped }}</view>
  39. </view>
  40. <view class="icon-center" @click="toOrderFrom('delivered')">
  41. <image
  42. class="form-icon"
  43. src="../../../static/mine/313.png"
  44. mode=""
  45. ></image>
  46. <view class="characters">{{ i18n.toBeReceived }}</view>
  47. </view>
  48. <view class="icon-center" @click="toOrderFrom('refund')">
  49. <image
  50. class="form-icon"
  51. src="../../../static/mine/314.png"
  52. mode=""
  53. ></image>
  54. <view class="characters">{{ i18n.refund }}</view>
  55. </view>
  56. </view>
  57. </view>
  58. </template>
  59. <script>
  60. export default {
  61. data() {
  62. return {};
  63. },
  64. computed: {
  65. i18n() {
  66. return this.$t("index");
  67. },
  68. },
  69. methods: {
  70. toOrderFrom(num) {
  71. uni.navigateTo({
  72. url: `/pageC/orderForm/orderForm?followId=${num}`,
  73. });
  74. },
  75. },
  76. };
  77. </script>
  78. <style lang="scss">
  79. .mall {
  80. // height: 100px;
  81. width: 100%;
  82. background-color: #fff;
  83. border-radius: 10px;
  84. padding: 14px 0 ;
  85. margin-top: 10px;
  86. box-sizing: border-box;
  87. .mall-top {
  88. display: flex;
  89. justify-content: space-between;
  90. margin: 0 10px;
  91. .mall-title {
  92. font-size: 14px;
  93. color: #222;
  94. font-weight: 600;
  95. }
  96. .all {
  97. color: #333;
  98. font-size: 12px;
  99. display: flex;
  100. align-items: center;
  101. .right {
  102. width: 10px;
  103. height: 10px;
  104. }
  105. }
  106. }
  107. .order-form {
  108. display: flex;
  109. justify-content: space-between;
  110. margin-top: 18px;
  111. padding: 0 30rpx;
  112. box-sizing: border-box;
  113. .icon-center {
  114. // width: 15%;
  115. display: flex;
  116. flex-wrap: wrap;
  117. justify-content: center;
  118. flex-direction: column;
  119. align-items: center;
  120. flex: 1;
  121. }
  122. .form-icon {
  123. width: 24px;
  124. height: 22px;
  125. }
  126. .characters {
  127. color: #202020;
  128. font-size: 12px;
  129. margin-top: 10px;
  130. text-align: center;
  131. }
  132. }
  133. }
  134. </style>