敢为人鲜小程序前端代码仓库
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.

141 lines
2.5 KiB

5 months ago
5 months ago
4 months ago
5 months ago
5 months ago
4 months ago
3 months ago
3 months ago
4 months ago
5 months ago
3 months ago
3 months ago
3 months ago
3 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
3 months ago
5 months ago
5 months ago
5 months ago
5 months ago
4 months ago
5 months ago
5 months ago
5 months ago
3 months ago
4 months ago
5 months ago
3 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
4 months ago
5 months ago
5 months ago
5 months ago
  1. <template>
  2. <view class="submit">
  3. <!-- 联系客服 -->
  4. <!-- <view @click="$emit('service')" class="service-icon">
  5. <image src="@/pages_order/static/productDetail/service.png" mode="widthFix" class="service-icon-img">
  6. </image>
  7. <view class="title">
  8. 客服
  9. </view>
  10. </view> -->
  11. <button open-type="share" class="service-icon">
  12. <uv-icon name="share-square" size="65rpx" color="black"></uv-icon>
  13. <view class="title">
  14. 分享
  15. </view>
  16. </button>
  17. <button class="service-icon " @click="$emit('addCart')">
  18. <uv-icon name="shopping-cart" size="75rpx" color="black"></uv-icon>
  19. <view class="title">
  20. 购物车
  21. </view>
  22. </button>
  23. <view class="submit-btn" @click="$emit('submit')">
  24. <!-- <view class="l"
  25. @click="$emit('addCart')">
  26. 加入购物车
  27. </view> -->
  28. <view class="r">
  29. <!-- {{ submiitTitle }} -->立即下单
  30. </view>
  31. </view>
  32. </view>
  33. </template>
  34. <script>
  35. export default {
  36. name: "submit",
  37. props: {
  38. submiitTitle: {
  39. default: '立即购买',
  40. type: String,
  41. },
  42. detail: {
  43. default: {}
  44. },
  45. },
  46. data() {
  47. return {
  48. }
  49. },
  50. methods: {
  51. }
  52. }
  53. </script>
  54. <style lang="scss" scoped>
  55. .submit {
  56. position: fixed;
  57. bottom: 0;
  58. left: 0;
  59. width: 100vw;
  60. background-color: #fff;
  61. height: 120rpx;
  62. display: flex;
  63. justify-content: space-between;
  64. align-items: center;
  65. font-size: 24rpx;
  66. padding: 0rpx 0rpx 0rpx 20rpx;
  67. box-sizing: border-box;
  68. // 联系客服
  69. .service-icon {
  70. padding: 0;
  71. margin: 0;
  72. display: flex;
  73. flex-direction: column;
  74. justify-content: center;
  75. margin: 0 0 0 40rpx;
  76. flex-shrink: 0;
  77. align-items: center;
  78. &::after{
  79. border: 0;
  80. }
  81. .service-icon-img {
  82. width: 45rpx;
  83. height: 45rpx;
  84. }
  85. .title {
  86. font-size: 26rpx;
  87. color: black;
  88. line-height: 40rpx;
  89. }
  90. }
  91. .give{
  92. background: rgba($uni-color, 0.1);
  93. padding: 6rpx 20rpx;
  94. border-radius: 15rpx;
  95. .title{
  96. color: $uni-color;
  97. }
  98. }
  99. .submit-btn {
  100. width: calc(100% - 400rpx);
  101. // height: 80rpx;
  102. height: 100%;
  103. color: #fff;
  104. // border-radius: 40rpx;
  105. font-size: 32rpx;
  106. margin-left: 40rpx;
  107. display: flex;
  108. justify-content: center;
  109. align-items: center;
  110. overflow: hidden;
  111. border: 1rpx solid $uni-color;
  112. .l {
  113. flex: 1;
  114. display: flex;
  115. justify-content: center;
  116. align-items: center;
  117. color: $uni-color;
  118. }
  119. .r {
  120. background: $uni-color;
  121. flex: 1;
  122. height: 100%;
  123. display: flex;
  124. justify-content: center;
  125. align-items: center;
  126. }
  127. }
  128. }
  129. </style>