珠宝小程序前端代码
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.

109 lines
1.8 KiB

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
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
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
  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. color: #666666;
  69. }
  70. }
  71. .submit-btn {
  72. width: calc(100% - 140rpx);
  73. height: 80rpx;
  74. color: #fff;
  75. border-radius: 40rpx;
  76. font-size: 28rpx;
  77. margin-left: 40rpx;
  78. display: flex;
  79. justify-content: center;
  80. align-items: center;
  81. overflow: hidden;
  82. .l {
  83. flex: 1;
  84. display: flex;
  85. justify-content: center;
  86. align-items: center;
  87. color: $uni-color;
  88. }
  89. .r {
  90. background: $uni-color;
  91. flex: 1;
  92. height: 100%;
  93. display: flex;
  94. justify-content: center;
  95. align-items: center;
  96. }
  97. }
  98. }
  99. </style>