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

118 lines
1.9 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
  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"
  28. @click="$emit('addCart')">
  29. 加入购物车
  30. </view>
  31. <view class="r"
  32. @click="$emit('submit')">
  33. {{ submiitTitle }}
  34. </view>
  35. </view>
  36. </view>
  37. </template>
  38. <script>
  39. export default {
  40. name:"submit",
  41. props : {
  42. submiitTitle : {
  43. default : '立即购买',
  44. type : String,
  45. }
  46. },
  47. data() {
  48. return {
  49. }
  50. },
  51. methods: {
  52. }
  53. }
  54. </script>
  55. <style lang="scss" scoped>
  56. .submit{
  57. position: fixed;
  58. bottom: 0;
  59. left: 0;
  60. width: 100vw;
  61. background-color: #fff;
  62. height: 100rpx;
  63. display: flex;
  64. justify-content: center;
  65. align-items: center;
  66. font-size: 24rpx;
  67. // .btn{
  68. // background: $uni-color;
  69. // width: 600rpx;
  70. // height: 80rpx;
  71. // color: #fff;
  72. // border-radius: 40rpx;
  73. // font-size: 28rpx;
  74. // }
  75. // view{
  76. // width: 100rpx;
  77. // margin: 0 10rpx;
  78. // display: flex;
  79. // justify-content: center;
  80. // align-items: center;
  81. // flex-direction: column;
  82. // }
  83. .submit-btn{
  84. width: 600rpx;
  85. height: 80rpx;
  86. color: #fff;
  87. border-radius: 40rpx;
  88. font-size: 28rpx;
  89. margin: 20rpx auto;
  90. display: flex;
  91. justify-content: center;
  92. align-items: center;
  93. border: 1rpx solid $uni-color;
  94. overflow: hidden;
  95. .l{
  96. flex: 1;
  97. display: flex;
  98. justify-content: center;
  99. align-items: center;
  100. color: $uni-color;
  101. }
  102. .r{
  103. background: $uni-color;
  104. flex: 1;
  105. height: 100%;
  106. display: flex;
  107. justify-content: center;
  108. align-items: center;
  109. }
  110. }
  111. }
  112. </style>