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

150 lines
2.5 KiB

4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
3 months ago
4 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
3 months ago
3 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 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="submit">
  30. <view class="r"
  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. submit(){
  62. if([0, 3].includes(this.detail.className)){
  63. uni.navigateTo({
  64. url: '/pages_order/gourmet/gourmetDetail?id=' + this.detail.shopId
  65. })
  66. return
  67. }
  68. this.$emit('submit')
  69. },
  70. }
  71. }
  72. </script>
  73. <style lang="scss" scoped>
  74. .submit-btn{
  75. width: 600rpx;
  76. height: 80rpx;
  77. color: #fff;
  78. border-radius: 40rpx;
  79. font-size: 28rpx;
  80. margin: 20rpx auto;
  81. display: flex;
  82. justify-content: center;
  83. align-items: center;
  84. border: 1rpx solid $uni-price-color;
  85. overflow: hidden;
  86. .l{
  87. flex: 1;
  88. display: flex;
  89. justify-content: center;
  90. align-items: center;
  91. color: $uni-price-color;
  92. }
  93. .r{
  94. background: $uni-price-color;
  95. flex: 1;
  96. height: 100%;
  97. display: flex;
  98. justify-content: center;
  99. align-items: center;
  100. }
  101. }
  102. .submit{
  103. position: fixed;
  104. bottom: 0;
  105. left: 0;
  106. width: 100vw;
  107. background-color: #fff;
  108. height: 120rpx;
  109. display: flex;
  110. justify-content: center;
  111. align-items: center;
  112. font-size: 24rpx;
  113. .btn{
  114. background: $uni-price-color;
  115. width: 600rpx;
  116. height: 80rpx;
  117. color: #fff;
  118. border-radius: 40rpx;
  119. font-size: 28rpx;
  120. }
  121. .icon{
  122. width: 100rpx;
  123. margin: 0 10rpx;
  124. display: flex;
  125. justify-content: center;
  126. align-items: center;
  127. flex-direction: column;
  128. }
  129. .share{
  130. display: flex;
  131. justify-content: center;
  132. align-items: center;
  133. flex-direction: column;
  134. font-size: 24rpx;
  135. margin: 0;
  136. padding: 0;
  137. background-color: #fff;
  138. &::after{
  139. border: none;
  140. }
  141. }
  142. }
  143. </style>