news.vue 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <template>
  2. <view class="content">
  3. <view class="border-customl">
  4. <view class="border-boke" @click="Waereroter">
  5. <view class="sawda">
  6. <uni-icons type="cart-filled" color="#ff0505" size="40"></uni-icons>
  7. <text style="margin-top: 5px">库位移动</text>
  8. </view>
  9. </view>
  10. <view class="border-boke" @click="Water">
  11. <view class="sawda">
  12. <uni-icons type="tune" color="#ff0505" size="40"></uni-icons>
  13. <text style="margin-top: 5px">库位越库</text>
  14. </view>
  15. </view>
  16. </view>
  17. </view>
  18. </template>
  19. <script>
  20. import utils from "@/utils/title.js";
  21. export default {
  22. components: {},
  23. data() {
  24. return {
  25. dynamicTitle: "仓内管理",
  26. };
  27. },
  28. onLoad(option) {},
  29. created() {
  30. console.log("进");
  31. uni.setNavigationBarTitle({
  32. title: this.dynamicTitle,
  33. success: () => {
  34. console.log("修改标题成功");
  35. },
  36. fail: () => {
  37. console.log("修改标题失败");
  38. },
  39. complete: () => {
  40. console.log("修改标题结束");
  41. },
  42. });
  43. },
  44. mounted() {},
  45. methods: {
  46. Waereroter(url) {
  47. uni.navigateTo({
  48. url: "/pages/index/news/movement/movement",
  49. });
  50. },
  51. Water() {
  52. uni.navigateTo({
  53. url: "/pages/index/news/docking/docking",
  54. });
  55. },
  56. },
  57. };
  58. </script>
  59. <style scoped>
  60. /deep/.u-icon--right {
  61. flex-direction: row;
  62. align-items: center;
  63. justify-content: center;
  64. }
  65. </style>
  66. <style scoped lang="scss">
  67. .content {
  68. // padding: 15px;
  69. .border-customl {
  70. display: flex;
  71. flex-wrap: wrap;
  72. .border-boke {
  73. border: 1px solid #e5e5e5;
  74. width: 30%;
  75. height: 6rem;
  76. background: white;
  77. justify-content: center;
  78. display: flex;
  79. align-items: center;
  80. .sawda {
  81. position: absolute;
  82. display: grid;
  83. text-align: center;
  84. }
  85. }
  86. }
  87. }
  88. </style>