低价位小菜
低价位小菜
  • 发布:2020-01-06 11:49
  • 更新:2020-01-06 11:49
  • 阅读:878

uni-app项目可以编译为网页版 和 app版,但是编译成小程序版就疯狂报错是为什么

分类:uni-app

11:48:51.976 Module Error (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):
11:48:51.976 (Emitted value instead of an instance of Error)
11:48:51.976 Errors compiling template:
11:48:51.976 Component template should contain exactly one root element. If you are using v-if on multiple elements, use v-else-if to chain them instead.
11:48:51.986 28 | </view>
11:48:51.986 29 | </view>
11:48:51.986 30 | <view class="gpv-15 " style="background-color:white;display: flex;justify-content: space-around; position: fixed;
11:48:51.996 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
11:48:51.996 31 | top: 73px;
11:48:51.996 | ^^^^^^^^^^^^^^
11:48:51.996 32 | left: 0px;
11:48:51.996 | ^^^^^^^^^^^^^^
11:48:51.996 33 | width: 72%;
11:48:52.006 | ^^^^^^^^^^^^^^^
11:48:52.006 34 | margin-left: 26%;
11:48:52.006 | ^^^^^^^^^^^^^^^^^^
11:48:52.006 35 | z-index: 99;
11:48:52.006 | ^^^^^^^^^^^^^^^^
11:48:52.006 36 | border-radius: 6px;">
11:48:52.006 | ^^^^^^^^^^^^^^^^^^^^^^
11:48:52.006 37 | <view v-for="(item,i) in tsouList" :key="i" v-bind:class="[tindex==i ? 'active_c2':'',{'sxjian':i==2}]" v-on:click="tbtn(i)">{{item.name}}</view>
11:48:52.016 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
11:48:52.016 38 | <!-- <view>综合</view>
11:48:52.026 | ^^^^^^^^^^^^^^^^^^^^^^^
11:48:52.026 39 | <view>最新</view>
11:48:52.026 | ^^^^^^^^^^^^^^^^^^
11:48:52.026 40 | <view>报名人数</view> -->
11:48:52.036 | ^^^^^^^^^^^^^^^^^^^^^^^^
11:48:52.036 41 | </view>
11:48:52.036 | ^^^^^^^^^
11:48:52.036 42 | <view style="background-color:#f1f1f1;padding-left:25%;padding-top: 244upx;">
11:48:52.036 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
11:48:52.036 43 | <view class="gph-6 gpv-10">
11:48:52.046 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
11:48:52.046 44 | <scroll-view scroll-y :style="{height:windowHeight}" @scrolltolower="scrolltolower" :scroll-top="scrollTop">
11:48:52.046 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
11:48:52.046 45 | <view class="picture_list">
11:48:52.056 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
11:48:52.056 46 | <li class="gbd gbr-5 gmr-3" v-for="(item,id) in courseList" :key="id">
11:48:52.056 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
11:48:52.056 47 |
11:48:52.056 | ^^^^^^^
11:48:52.066 48 | <navigator :url="'/pages/index/NewsDetail?id='+item.id" hover-class="other-navigator-hover">
11:48:52.066 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
11:48:52.066 49 | <view class="" style="display: flex;align-items: center;justify-content: space-between;">
11:48:52.066 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
11:48:52.076 50 | <image :src="img_url+item.thumbnail" class="gw-100 gbrt-6 gh-90p" />
11:48:52.076 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
11:48:52.076 51 |
11:48:52.076 | ^^^^^^^^
11:48:52.076 52 | </view>
11:48:52.086 | ^^^^^^^^^^^^^^
11:48:52.086 53 | <view class="gdf-1 gh-90p gb-fff gbrb-6" style="">
11:48:52.086 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
11:48:52.086 54 | <view class="gt-hide-2 gfs-13 gpt-6 gpl-6" style="height:72upx">{{item.name}}</view>
11:48:52.086 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
11:48:52.086 55 | <view class="gpl-6">
11:48:52.086 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
11:48:52.096 56 | <view class="gmt-5 mfc-r gfs-16 gfw-b"><span v-if="item.price_sell!='0.00'" class="gfs-12">¥</span>{{item.price_sell=="0.00"?"免费":item.price_sell}}</view>
11:48:52.096 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
11:48:52.096 57 | <view class="gc-888 gfs-13">{{item.numCollet}}人报名</view>
11:48:52.106 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
11:48:52.106 58 | </view>
11:48:52.106 | ^^^^^^^^^^^^^^^
11:48:52.106 59 | </view>
11:48:52.106 | ^^^^^^^^^^^^^^
11:48:52.106 60 | </navigator>
11:48:52.116 | ^^^^^^^^^^^^^^^^^^^
11:48:52.116 61 | </li>
11:48:52.116 | ^^^^^^^^^^^^
11:48:52.116 62 |
11:48:52.116 | ^^^^^^^
11:48:52.116 63 | </view>
11:48:52.116 | ^^^^^^^^^^^^
11:48:52.116 64 | <view class="">
11:48:52.126 | ^^^^^^^^^^^^^^^^^^^
11:48:52.126 65 | <!-- <view class="gmb-10 gpb-5 gc-333 gbd" v-for="(item,i) in courseList" :key="i">
11:48:52.126 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
11:48:52.126 66 | <navigator :url="'/pages/index/NewsDetail?id='+item.id" hover-class="other-navigator-hover">
11:48:52.126 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
11:48:52.136 67 | <img :src="img_url+item.thumbnail" class="gw-100 gh-150p" />
11:48:52.136 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
11:48:52.136 68 |
11:48:52.136 |
11:48:52.136 69 | <view class=" gt-hide-1 gpl-10 gmt-5">{{item.name}}</view>
11:48:52.136 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
11:48:52.146 70 | <view class=" gt-hide-1 gpl-10 gmt-3 gc-666 gfs-13">{{item.descrip}}</view>
11:48:52.146 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
11:48:52.146 71 | <view class="gc-aaa gtr gmt-10 gmr-5" style="display: flex;justify-content: flex-end;">
11:48:52.146 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
11:48:52.146 72 | <view class="gc-888 gfs-12 gdf" style="text-decoration:line-through">
11:48:52.156 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
11:48:52.156 73 | <view class="gfs-8">¥</view>
11:48:52.156 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
11:48:52.156 74 | <view>{{item.price_market}}</view>
11:48:52.156 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
11:48:52.166 75 | </view>
11:48:52.166 | ^^^^^^^^^^^^^^
11:48:52.166 76 | <view class="gc-333 gdf">
11:48:52.166 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
11:48:52.166 77 | <view class="gfs-13">¥</view>
11:48:52.176 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
11:48:52.176 78 | <view>{{item.price_sell}}</view>
11:48:52.176 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
11:48:52.176 79 | </view>
11:48:52.176 | ^^^^^^^^^^^^^^
11:48:52.176 80 | </view>
11:48:52.186 | ^^^^^^^^^^^^^
11:48:52.186 81 | </navigator>
11:48:52.186 | ^^^^^^^^^^^^^^^^
11:48:52.186 82 | </view> -->
11:48:52.186 | ^^^^^^^^^^^^^^^^
11:48:52.186 83 | </view>
11:48:52.186 | ^^^^^^^^^^^
11:48:52.186 84 | <view class="gtc gc-888 gmv-20 gfs-12" v-if="is_emp">-没有更多了-</view>
11:48:52.196 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
11:48:52.196 85 | </scroll-view>
11:48:52.196 | ^^^^^^^^^^^^^^^^
11:48:52.196 86 |
11:48:52.196 |
11:48:52.196 87 | </view>
11:48:52.206 | ^^^^^^^^^^
11:48:52.206 88 | </view>
11:48:52.206 | ^^^^^^^^^
11:48:52.206 89 | <adTabbar>
11:48:52.206 | ^^^^^^^^^^^^
11:48:52.206 90 | <adTabbarItem style="margin-left: 15px;" text="搜索" dataCur="page1" class="maxWidth" @click="navClick('/pages/Classification/Searchcourse')" :textColor="'#9B9B9B'" :icon="'../../static/images/icon/zh-icons_05.png'"></adTabbarItem>
11:48:52.206 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
11:48:52.216 91 | <adTabbarItem style="margin-left: 30px;" text="分类" dataCur="page2" class="maxWidth" @click="navClick('/pages/Classification/Index')" :textColor="'#02cb02'" :icon="'../../static/images/icon/zh-icons_02.png'"></adTabbarItem>
11:48:52.226 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
11:48:52.226 92 |
11:48:52.226 | ^^^^
11:48:52.236 93 | <view class="middleItem" @click="navClick('/pages/index/index')" style="margin-top: -20px;">
11:48:52.236 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
11:48:52.236 94 | <image src="../../static/img/tabbar/guanzhu.png" mode="" style="width: 75px;height: 57px;"></image>
11:48:52.236 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
11:48:52.236 95 | </view>
11:48:52.246 | ^^^^^^^^^^^^^
11:48:52.246 96 | <adTabbarItem style="margin-right: 30px;" text="已购" dataCur="page3" class="maxWidth" @click="navClick('/pages/Purchased/Index')" :textColor="'#9B9B9B'" :icon="'../../static/images/icon/zh-icons_07.png'"></adTabbarItem>
11:48:52.246 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
11:48:52.256 97 | <adTabbarItem style="margin-right: 15px;" text="我的" dataCur="page4" class="maxWidth" @click="navClick('/pages/User/Index')" :textColor="'#9B9B9B'" :icon="'../../static/images/icon/zh-icons_08.png'"></adTabbarItem>
11:48:52.256 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
11:48:52.266 98 | </adTabbar>
11:48:52.276 | ^^^^^^^^^^^^^
11:48:52.276 99 | </view>
11:48:52.276 | ^^^^^^^^
11:48:52.276 at D:\svn-ProgramData\云壳教育\程序设计\移动端\yunkejiaoyu.xcx\pages\Classification\Index.vue:0
11:48:52.286 ERROR Build failed with errors.

2020-01-06 11:49 负责人:无 分享
已邀请:

该问题目前已经被锁定, 无法添加新回复