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

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