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

124 lines
2.1 KiB

5 months ago
5 months ago
4 months ago
5 months ago
5 months ago
4 months ago
5 months ago
4 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
5 months ago
4 months ago
5 months ago
5 months ago
5 months ago
4 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
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
  12. open-type="contact"
  13. class="service-icon">
  14. <image src="@/pages_order/static/productDetail/service.png" mode="widthFix" class="service-icon-img">
  15. </image>
  16. <view class="title">
  17. 客服
  18. </view>
  19. </button>
  20. <view class="submit-btn">
  21. <view class="l"
  22. @click="$emit('toSend')">
  23. 我要送礼
  24. </view>
  25. <view class="r" @click="$emit('submit')">
  26. {{ submiitTitle }}
  27. </view>
  28. </view>
  29. </view>
  30. </template>
  31. <script>
  32. export default {
  33. name: "submit",
  34. props: {
  35. submiitTitle: {
  36. default: '立即购买',
  37. type: String,
  38. },
  39. detail: {
  40. default: {}
  41. },
  42. },
  43. data() {
  44. return {
  45. }
  46. },
  47. methods: {
  48. }
  49. }
  50. </script>
  51. <style lang="scss" scoped>
  52. .submit {
  53. position: fixed;
  54. bottom: 0;
  55. left: 0;
  56. width: 100vw;
  57. background-color: #fff;
  58. height: 100rpx;
  59. display: flex;
  60. justify-content: center;
  61. align-items: center;
  62. font-size: 24rpx;
  63. padding: 0rpx 20rpx;
  64. box-sizing: border-box;
  65. // 联系客服
  66. .service-icon {
  67. padding: 0;
  68. margin: 0;
  69. background-color: transparent;
  70. display: flex;
  71. flex-direction: column;
  72. justify-content: center;
  73. &::after{
  74. border: 0;
  75. }
  76. .service-icon-img {
  77. width: 45rpx;
  78. height: 45rpx;
  79. }
  80. .title {
  81. font-size: 26rpx;
  82. color: #666666;
  83. }
  84. }
  85. .submit-btn {
  86. width: calc(100% - 140rpx);
  87. height: 80rpx;
  88. color: #fff;
  89. border-radius: 40rpx;
  90. font-size: 28rpx;
  91. margin-left: 40rpx;
  92. display: flex;
  93. justify-content: center;
  94. align-items: center;
  95. overflow: hidden;
  96. border: 1rpx solid $uni-color;
  97. .l {
  98. flex: 1;
  99. display: flex;
  100. justify-content: center;
  101. align-items: center;
  102. color: $uni-color;
  103. }
  104. .r {
  105. background: $uni-color;
  106. flex: 1;
  107. height: 100%;
  108. display: flex;
  109. justify-content: center;
  110. align-items: center;
  111. }
  112. }
  113. }
  114. </style>