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

99 lines
2.0 KiB

9 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
9 months ago
8 months ago
8 months ago
9 months ago
8 months ago
9 months ago
8 months ago
8 months ago
9 months ago
8 months ago
8 months ago
8 months ago
8 months ago
9 months ago
8 months ago
9 months ago
8 months ago
8 months ago
9 months ago
  1. <template>
  2. <view class="page">
  3. <navbar title="我的物品" leftClick @leftClick="$utils.navigateBack" />
  4. <!-- <view class="tabs">
  5. <uv-tabs :list="tabs" :activeStyle="{color : '#FD5100', fontWeight : 600}" lineColor="#FD5100" lineHeight="8rpx"
  6. lineWidth="50rpx" :scrollable="false" @click="clickTabs"></uv-tabs>
  7. </view> -->
  8. <commoditySelect ref="commoditySelect"/>
  9. <!-- <view class="btn fixed" @click="$refs.addLease.open()">
  10. <button class="a">添加物品</button>
  11. </view> -->
  12. <addLease ref="addLease" @submit="$refs.commoditySelect.getList()"/>
  13. </view>
  14. </template>
  15. <script>
  16. import commoditySelect from "../components/commodity/commoditySelect.vue"
  17. import addLease from '../components/product/addLease.vue'
  18. import { mapState } from 'vuex'
  19. export default {
  20. components : {
  21. commoditySelect,
  22. addLease,
  23. },
  24. data() {
  25. return {
  26. tabs: [{
  27. name: '选择租赁物品'
  28. },
  29. {
  30. name: '选择我的物品'
  31. },
  32. ],
  33. type : '',
  34. }
  35. },
  36. onLoad(args) {
  37. this.type = args.type
  38. if(this.type == 'add'){
  39. this.$refs.addLease.open()
  40. }
  41. },
  42. onShow() {
  43. this.$refs.commoditySelect.getList()
  44. },
  45. methods: {
  46. //点击tab栏
  47. clickTabs({
  48. index,
  49. name
  50. }) {
  51. // this.type = index;
  52. // this.queryParams.pageSize = 10
  53. // this.checkboxValue = []
  54. // this.mixinsListApi = ['orderPage', 'orderPage'][index]
  55. },
  56. }
  57. }
  58. </script>
  59. <style scoped lang="scss">
  60. .page{
  61. // padding-bottom: 200rpx;
  62. .tabs{
  63. position: sticky;
  64. top: calc(var(--status-bar-height) + 120rpx);
  65. background-color: #fff;
  66. // padding-top: 20rpx;
  67. }
  68. .fixed{
  69. position: fixed;
  70. bottom: 20rpx;
  71. }
  72. .btn {
  73. display: flex;
  74. justify-content: center;
  75. width: 100%;
  76. .a {
  77. display: flex;
  78. justify-content: center;
  79. align-items: center;
  80. width: 90%;
  81. height: 100rpx;
  82. color: #FFF;
  83. background-color: $uni-color;
  84. border: 1px solid red;
  85. border-radius: 100rpx;
  86. font-size: 30rpx;
  87. }
  88. }
  89. }
  90. </style>