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

155 lines
2.5 KiB

1 year ago
11 months ago
1 year ago
11 months ago
1 year ago
11 months ago
1 year ago
11 months ago
11 months ago
1 year ago
11 months ago
10 months ago
11 months ago
11 months ago
11 months ago
11 months ago
1 year ago
11 months ago
1 year ago
11 months ago
1 year ago
11 months ago
1 year ago
11 months ago
1 year ago
11 months ago
11 months ago
1 year ago
7 months ago
10 months ago
7 months ago
10 months ago
1 year ago
11 months ago
1 year ago
11 months ago
1 year ago
11 months ago
1 year ago
11 months ago
1 year ago
11 months ago
1 year 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. v-if="pay == 'Y'"
  30. @click="submit">
  31. <view class="r"
  32. v-if="isProductPoint(detail)">
  33. 立即兑换
  34. </view>
  35. <view class="r"
  36. v-if="isProductPrice(detail)">
  37. 立即购买
  38. </view>
  39. </view>
  40. </view>
  41. </template>
  42. <script>
  43. import productMixins from '@/mixins/product.js'
  44. export default {
  45. name:"submit",
  46. mixins : [productMixins],
  47. props : {
  48. submiitTitle : {
  49. default : '立即兑换',
  50. type : String,
  51. },
  52. pay : {
  53. default : 'N',
  54. type : String,
  55. },
  56. detail : {
  57. default : {}
  58. },
  59. },
  60. data() {
  61. return {
  62. }
  63. },
  64. methods: {
  65. //
  66. submit(){
  67. if(this.isShopBuy(this.detail)){
  68. uni.navigateTo({
  69. url: '/pages_order/gourmet/gourmetDetail?id=' + this.detail.shopId
  70. })
  71. return
  72. }
  73. this.$emit('submit')
  74. },
  75. }
  76. }
  77. </script>
  78. <style lang="scss" scoped>
  79. .submit-btn{
  80. width: 600rpx;
  81. height: 80rpx;
  82. color: #fff;
  83. border-radius: 40rpx;
  84. font-size: 28rpx;
  85. margin: 20rpx auto;
  86. display: flex;
  87. justify-content: center;
  88. align-items: center;
  89. border: 1rpx solid $uni-price-color;
  90. overflow: hidden;
  91. .l{
  92. flex: 1;
  93. display: flex;
  94. justify-content: center;
  95. align-items: center;
  96. color: $uni-price-color;
  97. }
  98. .r{
  99. background: $uni-price-color;
  100. flex: 1;
  101. height: 100%;
  102. display: flex;
  103. justify-content: center;
  104. align-items: center;
  105. }
  106. }
  107. .submit{
  108. position: fixed;
  109. bottom: 0;
  110. left: 0;
  111. width: 100vw;
  112. background-color: #fff;
  113. height: 120rpx;
  114. display: flex;
  115. justify-content: center;
  116. align-items: center;
  117. font-size: 24rpx;
  118. .btn{
  119. background: $uni-price-color;
  120. width: 600rpx;
  121. height: 80rpx;
  122. color: #fff;
  123. border-radius: 40rpx;
  124. font-size: 28rpx;
  125. }
  126. .icon{
  127. width: 100rpx;
  128. margin: 0 10rpx;
  129. display: flex;
  130. justify-content: center;
  131. align-items: center;
  132. flex-direction: column;
  133. }
  134. .share{
  135. display: flex;
  136. justify-content: center;
  137. align-items: center;
  138. flex-direction: column;
  139. font-size: 24rpx;
  140. margin: 0;
  141. padding: 0;
  142. background-color: #fff;
  143. &::after{
  144. border: none;
  145. }
  146. }
  147. }
  148. </style>