瑶都万能墙
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.

141 lines
2.3 KiB

8 months ago
6 months ago
8 months ago
7 months ago
8 months ago
6 months ago
8 months ago
7 months ago
6 months ago
8 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
8 months ago
6 months ago
8 months ago
6 months ago
8 months ago
6 months ago
8 months ago
7 months ago
8 months ago
6 months ago
8 months ago
6 months ago
8 months ago
6 months ago
8 months ago
7 months ago
8 months ago
6 months ago
8 months ago
7 months ago
8 months ago
  1. <template>
  2. <view class="submit">
  3. <view class="icon"
  4. @click="$emit('share')">
  5. <button open-type="share"
  6. class="share">
  7. <uv-icon
  8. size="40rpx"
  9. name="share-square"></uv-icon>
  10. </button>
  11. </view>
  12. <!-- <view class="icon"
  13. @click="$utils.navigateTo('/index/cart')">
  14. <button
  15. class="share">
  16. <uv-icon
  17. size="40rpx"
  18. name="shopping-cart"></uv-icon>
  19. <view class="">
  20. 购物车
  21. </view>
  22. </button>
  23. </view> -->
  24. <!-- <view class="btn"
  25. @click="$emit('submit')">
  26. {{ submiitTitle }}
  27. </view> -->
  28. <view class="submit-btn"
  29. @click="$emit('submit')">
  30. <view class="l"
  31. v-if="isProductPoint(detail)">
  32. 立即兑换
  33. </view>
  34. <view class="r"
  35. v-if="isProductPrice(detail)">
  36. 立即购买
  37. </view>
  38. </view>
  39. </view>
  40. </template>
  41. <script>
  42. import productMixins from '@/mixins/product.js'
  43. export default {
  44. name:"submit",
  45. mixins : [productMixins],
  46. props : {
  47. submiitTitle : {
  48. default : '立即兑换',
  49. type : String,
  50. },
  51. detail : {
  52. default : {}
  53. },
  54. },
  55. data() {
  56. return {
  57. }
  58. },
  59. methods: {
  60. }
  61. }
  62. </script>
  63. <style lang="scss" scoped>
  64. .submit-btn{
  65. width: 600rpx;
  66. height: 80rpx;
  67. color: #fff;
  68. border-radius: 40rpx;
  69. font-size: 28rpx;
  70. margin: 20rpx auto;
  71. display: flex;
  72. justify-content: center;
  73. align-items: center;
  74. border: 1rpx solid $uni-price-color;
  75. overflow: hidden;
  76. .l{
  77. flex: 1;
  78. display: flex;
  79. justify-content: center;
  80. align-items: center;
  81. color: $uni-price-color;
  82. }
  83. .r{
  84. background: $uni-price-color;
  85. flex: 1;
  86. height: 100%;
  87. display: flex;
  88. justify-content: center;
  89. align-items: center;
  90. }
  91. }
  92. .submit{
  93. position: fixed;
  94. bottom: 0;
  95. left: 0;
  96. width: 100vw;
  97. background-color: #fff;
  98. height: 120rpx;
  99. display: flex;
  100. justify-content: center;
  101. align-items: center;
  102. font-size: 24rpx;
  103. .btn{
  104. background: $uni-price-color;
  105. width: 600rpx;
  106. height: 80rpx;
  107. color: #fff;
  108. border-radius: 40rpx;
  109. font-size: 28rpx;
  110. }
  111. .icon{
  112. width: 100rpx;
  113. margin: 0 10rpx;
  114. display: flex;
  115. justify-content: center;
  116. align-items: center;
  117. flex-direction: column;
  118. }
  119. .share{
  120. display: flex;
  121. justify-content: center;
  122. align-items: center;
  123. flex-direction: column;
  124. font-size: 24rpx;
  125. margin: 0;
  126. padding: 0;
  127. background-color: #fff;
  128. &::after{
  129. border: none;
  130. }
  131. }
  132. }
  133. </style>