酒店桌布为微信小程序
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.

68 lines
1.1 KiB

7 months ago
  1. <template>
  2. <view class="menu">
  3. <!-- <view class="menu-item">
  4. 我要租赁
  5. </view>
  6. <view class="menu-item">
  7. 我要购买
  8. </view>
  9. <view class="menu-item">
  10. 我要水洗
  11. </view> -->
  12. <uv-tabs :list="tabs"
  13. :activeStyle="{color : '#FD5100', fontWeight : 600}"
  14. lineColor="#FD5100"
  15. lineHeight="8rpx"
  16. lineWidth="50rpx"
  17. :current="current"
  18. :scrollable="false"
  19. @click="clickTabs"></uv-tabs>
  20. </view>
  21. </template>
  22. <script>
  23. export default {
  24. data() {
  25. return {
  26. tabs: [
  27. {
  28. name: '我要租赁'
  29. },
  30. {
  31. name: '我要购买'
  32. },
  33. {
  34. name: '我要水洗'
  35. },
  36. ],
  37. current : 0,
  38. }
  39. },
  40. methods: {
  41. clickTabs({index}){
  42. this.current = index
  43. if(index == 2){
  44. this.$nextTick(() => this.current = 0)
  45. uni.navigateTo({
  46. url: '/pages_order/order/createWash'
  47. })
  48. }
  49. },
  50. }
  51. }
  52. </script>
  53. <style scoped lang="scss">
  54. .menu{
  55. margin: 0 20rpx;
  56. // &-item{
  57. // padding: 20rpx;
  58. // background-color: #fff;
  59. // text-align: center;
  60. // border-radius: 20rpx;
  61. // margin: 20rpx;
  62. // }
  63. }
  64. </style>