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

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