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

116 lines
1.9 KiB

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