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

153 lines
2.5 KiB

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