青蛙卖大米小程序2024-11-24
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.

122 lines
2.0 KiB

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