这种报错是什么原因呢?

来源:5-5 uview样式工具类介绍

慕侠3297407

2022-10-19 09:13:54

09:11:43.680 正在差量编译...

09:11:44.312 文件查找失败:'uview-ui/components/u-view/u-view.vue' at pages\home\index.vue:15

<template>
  <view class="home">
    <search @click="handle()"></search>
    <u-tabs :list="list" @click="click" :activeStyle="{ color: '#02D199' }" :current="current" :is-scroll="false"></u-tabs>
    <view class="list-item">
      <view class="list-head">
        <text>
          <text class="type">首页</text>
          大前端欢迎大家
        </text>
        <view class="author">
          <view>
            <u-view class="head" width="40" hidden="40" shape="circle" error-icon="/static/logo.png" />
            <text class="name">tomic用户</text>
          </view>
        </view>
      </view>
      <view class="list-body">
        <view class="info">我是brian,这是大前端课程i项目小程序。</view>
        <image class="fmt" sc="" mode="" />
      </view>
      <view class="list-footer">
        <view class="left">
          <text class="reply-num">0回复</text>
          <text class="timer">2021-01-01</text>
        </view>
      </view>
    </view>
   
    <view class="bottom-line"></view>
  </view>
</template>

<script>
export default {
  components: {},
  data:()=>({
    list: 
          [{
              key: '',
              name:'首页'
          }, {
              key: 'ask',
              name:'提问'
          }, {
              key: 'share',
              name:'分享'
          },{
              key: 'discuss',
              name:'讨论'
          },{
              key: 'advise',
              name:'建议'
          },{
              key: 'notice',
              name:'公告'
          },{
              key: 'logs',
              name:'动态'
          }],
    current:0
  }),
  methods:{
    handle(){
      uni.navigateTo({
        url:"/subcom-pkg/search/search"
      })
    },
    click(e) {
      this.current=e.index
    }
  },
  props: {},
  computed: {},
  watch: {},

  // 页面周期函数--监听页面加载
  onLoad() {},
  // 页面周期函数--监听页面初次渲染完成
  onReady() {},
  // 页面周期函数--监听页面显示(not-nvue)
  onShow() {},
  // 页面周期函数--监听页面隐藏
  onHide() {},
  // 页面周期函数--监听页面卸载
  onUnload() {},
  // 页面处理函数--监听用户下拉动作
  // onPullDownRefresh() { uni.stopPullDownRefresh(); },
  // 页面处理函数--监听用户上拉触底
  // onReachBottom() {},
  // 页面处理函数--监听页面滚动(not-nvue)
  // onPageScroll(event) {},
  // 页面处理函数--用户点击右上角分享
  // onShareAppMessage(options) {},
   }
</script>

<style scoped lang="scss">
.search{
  width: 70%;
}
.list-head{
  margin-bottom: 18rpx;
  .type{
    display: inline-block;
    height: 36rpx;
    width: 72rpx;
    text-align:center;
    white-space:nowrap;
    margin-right:10rpx;
    font-size:24rpx;
    border-radius:18rpx;
    border-bottom-left-radius:0;
    color: #fff;
    background-color: red;
  }
}
</style>


写回答

大前端2022版

1个业务场景打通全端、全栈、全流程,实现全局思维与综合技术能力全面突破;对标阿里P6,8个月成为前端高级人才

2840 学习 · 691 问题

查看课程