DCloud_heavensoft
DCloud_heavensoft
  • 发布:2019-04-10 04:53
  • 更新:2024-02-26 15:25
  • 阅读:232229

微信小程序转换uni-app详细指南、小程序转uni-app转换器、wepy转uni-app

分类:uni-app

号外:推荐使用HBuilderX插件https://ext.dcloud.net.cn/plugin?id=2656,直接转换小程序到uni-app

本文首先分享转换步骤和原理,文末会分享三方开发者制作的 小程序转uni-app的转换器wepy转uni-app转换器

小程序转换uni-app的步骤

微信小程序的语法,其实是vue.js语法的裁剪定制版,在数据绑定、自定义组件等很多方面都有相似之处。
以下是一个小程序源码转换步骤指南:

客户端代码转换

  1. 新建一个uni-app项目,把之前的app.js、app.wxss的代码,挪到app.vue里,分别放到script和style节点下面
    如果其中有globalData等全局变量或方法,也直接放到app.vue的script下
export default {    
        globalData: {    
            text: 'text'    
        },    
        onLaunch: function() {    
            console.log('App Launch')    
        }  
    }  

读取globalData或赋值的方法是getApp().globalData.text = 'test'
2. 转换app.json为pages.json,把每个小程序page目录下的index.json(或页面名称对应的json)里的配置取出来,放到pages.json的style下
3. pages下每个页面目录放一个vue空文件模板
4. 把之前页面的wxss内容复制到vue文件的style中,无需改动
5. 把之前页面的js内容复制到vue文件的script中,然后执行如下改动
- 5.1 之前js里面的data,放到新的data return下
之前

Page({  
  data: {  
    show1: false  
  }  
})

现在

<script>  
	export default {  
		data() {  
			return {  
				show1: false  
			}  
		}  
	}  
</script>
- 5.2 之前js里面的自定义方法,放到新的method下  

之前

Page({  
	toggleActionSheet1() {  
		this.setData({show1: true});  
	}  
})

现在

<script>  
	export default {  
		methods: {  
			toggleActionSheet1() {  
				this.show1 = true  
			}  
		}  
	}  
</script>
- 5.3 之前js里面的生命周期函数onLoad、onShow等,直接放到export default下  

之前

Page({  
	onLoad() {  
		console.log("page load");  
	}  
})

现在

<script>  
	export default {  
		onLoad() {  
			console.log("page load");  
		}  
	}  
</script>
- 5.4 setdata的处理方式  
* 方式一:从 `this.setData({loading: false,areaList: response.data.data})` 改为 `this.loading = false;this.areaList = response.data.data`。  
* 方式二:重写setdata方法,如下
setData:function(obj){    
    let that = this;    
    let keys = [];    
    let val,data;    
    Object.keys(obj).forEach(function(key){    
         keys = key.split('.');    
         val = obj[key];    
         data = that.$data;    
         keys.forEach(function(key2,index){    
             if(index+1 == keys.length){    
                 that.$set(data,key2,val);    
             }else{    
                 if(!data[key2]){    
                    that.$set(data,key2,{});    
                 }    
             }    
             data = data[key2];    
         })    
    });    
}  

以上代码出处:https://ask.dcloud.net.cn/article/35020
6. 把之前页面的wxml内容复制到vue文件的template下的view下,然后执行如下改动
- 属性绑定从
attr="{{ a }}",改为 :attr="a"
title="复选框{{ item }}" 改为 :title="'复选框' + item"
- 事件绑定从 bind:click="toggleActionSheet1" 改为 @click="toggleActionSheet1"
- 阻止事件冒泡 从 catch:tap="xx" 改为 @tap.native.stop="xx"
- wx:if 改为 v-if
- wx:for="{{ list }}" wx:key="{{ index }}" 改为`v-for="(item,index) in list"
7. 微信小程序自定义组件处理
之前引入的自定义组件,需要放到wxcomponents下,并在pages.json里注册。如果这里有js,并且被其他代码引入,要注意修改引用代码的路径指向。如下:

{  
	"pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages  
		{"path": "pages/dashboard/dashboard"},  
		{  
			"path": "pages/action-sheet/action-sheet",  
			"style":{  
				"navigationBarTitleText":"ActionSheet 上拉菜单",  
				"usingComponents":{ //这里单页面引入action-sheet组件  
					"van-action-sheet": "/wxcomponents/vant/action-sheet/index"  
				}  
			}  
		}  
	],  
	"globalStyle": {  
		"navigationBarTitleText": "Vant For Uni-app",  
		"usingComponents": { //这里给所有页面全局引入了如下组件  
			"demo-block": "/wxcomponents/vant/demo-block/index",  
			"van-button": "/wxcomponents/vant/button/index",  
			"van-cell": "/wxcomponents/vant/cell/index",  
			"van-cell-group": "/wxcomponents/vant/cell-group/index",  
			"van-icon": "/wxcomponents/vant/icon/index",  
			"van-loading": "/wxcomponents/vant/loading/index",  
			"van-toast": "/wxcomponents/vant/toast/index"  
		}  
	}  
}

微信自定义组件虽然可以这样转换。但转换后只能用于微信和App。如果想用于支付宝百度头条,则需要新建swancomponents等目录,将微信自定义组件复制到这些目录,改造测试。虽然各小程序平台均支持自定义组件,但细节有差异,仍需自己测试。无论如何,H5端不支持这些自定义组件。
比较妥善的跨端做法,是在uni-app插件市场寻找类似功能的vue组件,废弃之前的小程序自定义组件。比如把wx-charts换成ucharts、把wx-parser换成uparser。

辅助工具

贡献几个替换用的正则

str = str.replace(/bindtap/g, '@onclick');  
str = str.replace(/wx:if/g, 'v-show');  
str = str.replace(/src=\'\{\{/g, ":src='");  
str = str.replace(/wx\:key=\"\*this\"/g, ' ');  
str = str.replace(/wx\:key\=\"index\"/g, ' ');  
str = str.replace(/wx:for="{{/g, v-for= "(item,index) in ');  
str = str.replace(/bindinput/g, '@input'); 

wx.是否要替换为uni.

关于js api中的wx.,不要全局替换为uni.。因为有的wx的api是微信独有的,替换为uni后,反而在微信下没法用了。

同时uni-app编译器提供了把wx.编译为不同平台的机制,所以直接使用wx.的api完全可以正常在各端运行。

所以对于老代码,替不替换不重要,不影响运行,只影响语法提示和转到定义。

但是新写的代码,还是要用uni.的api,在代码提示、转到定义方面更强大。

App端迁移,还需处理服务端相关代码

如果把微信小程序转换为uni-app,仍然用于发布微信小程序,那服务器端代码不变。

但如果要发布到App、其他小程序等平台,服务器也需要调整部分代码。比如登陆、支付、推送、定位、地图等联网服务。

uni-app在客户端侧提供了统一的代码,比如uni.login、uni.requestPayment,在不同端均可以实现登陆、支付。

但服务器端的接口不一样,比如微信的App支付和小程序支付的申请开通、服务器接口都不一样,所以配置和服务器接口仍需单独处理。

比如把小程序转换uni-app后,需要打包发布为app,则需要向微信申请app支付的资质,拿到appkey等信息,填写到uni-app工程的 manifest-app -> sdk配置 -> 微信支付 下面,然后打包才能成效(如果是离线打包,参考离线打包的文件)。同时服务器需要按照微信的App支付的接口再开发对接。

同样微信小程序里内置的定位、地图,在app上,需要单独向高德等三方服务商申请,否则无法在app里使用这些服务。

这些sdk申请方式在 manifest -> app sdk配置 下有教程链接。

其他注意

参考:这里有一个转换示例,把vant weapp的小程序演示demo,转换为uni-app工程,里面的pages下同时保留了wxml和vue,可用于对比参考。http://ext.dcloud.net.cn/plugin?id=302

如果是mpvue的小程序,转换uni-app很方面,参考文档:https://ask.dcloud.net.cn/article/34945

感谢zhangdaren开源了小程序到uni-app的转换器

48 关注 分享
萌龙 Trust 圆号 斌疯 3***@qq.com 逐鹿实验室 DCloud_UNI_HT w***@163.com 不能为null c***@qq.com skysowe g***@126.com h***@gmail.com joelewis bzliukai 爹 m***@foxmail.com 1***@qq.com 水目 9***@qq.com 1***@qq.com S***@163.com 2***@qq.com 3***@qq.com 2***@qq.com 6***@qq.com 1***@163.com 世博 灯下等雪 风之影0539 3***@qq.com 1***@qq.com 九涯 sxw 初生牛犊 9***@qq.com 1***@qq.com 3***@qq.com 1***@qq.com q***@qq.com h***@gmail.com w***@163.com i***@qq.com 4***@qq.com 1***@qq.com 梦寂 2***@qq.com DCloud_UNI_HRK

要回复文章请先登录注册

1***@qq.com

1***@qq.com

微信云开发的能转成uni-app吗
2022-10-18 16:10
dlsm

dlsm

回复 dlsm :
data[]里面的内容是模板字符串形式。。。
2022-10-13 22:12
dlsm

dlsm

想请教一下,在uni-app上如何把微信小程序的:“data[`devices[${foundDevicesNAME.length}]`] = device; this.setdata(data)” 这个写法的效果还原出来。
2022-10-13 22:09
DCloud_heavensoft

DCloud_heavensoft (作者)

回复 1***@qq.com :
建议在文档顶部的插件页面联系插件作者
2022-06-06 15:03
1***@qq.com

1***@qq.com

麻烦 看下 转换后的报错
2022-06-06 00:22
1***@qq.com

1***@qq.com

请注意运行模式下,因日志输出、sourcemap以及未压缩源码等原因,性能和包体积,均不及发行模式。
00:05:49.469 正在编译中...
00:05:50.152 INFO Starting development server...
00:06:07.248 Module Error (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):
00:06:07.249 (Emitted value instead of an instance of Error)
00:06:07.257 Errors compiling template:
00:06:07.261 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.
00:06:07.262 165| </view>
00:06:07.269 166| <!-- 订单列表结束 -->
00:06:07.276 167| <view class="s_page_box_end" :style="'padding-bottom:'+(isIphoneX ? 68 : 0)+'rpx;'"></view>
00:06:07.277 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:06:07.286 168| <!-- 底部导航 开始 -->
00:06:07.293 | ^^^^^^^^^^^^^^^^^^
00:06:07.297 169| <view class="nav_category_bottom" :style="'padding-bottom:'+(isIphoneX ? 68 : 0)+'rpx;'">
00:06:07.303 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:06:07.307 170| <view class="n_home" @tap="toIndex">
00:06:07.313 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:06:07.318 171| <image src="https://youkejingpin.oss-cn-beijing.aliyuncs.com/static/programs/h_nav_icon_1.png"></image>
00:06:07.318 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:06:07.323 172| <text>首页</text>
00:06:07.330 | ^^^^^^^^^^^^^^^^^^^
00:06:07.335 173| </view>
00:06:07.341 | ^^^^^^^^^^
00:06:07.345 174| <view class="n_jielong" @tap="toHome">
00:06:07.351 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:06:07.356 175| <image src="https://youkejingpin.oss-cn-beijing.aliyuncs.com/static/programs/h_nav_icon_2.png"></image>
00:06:07.363 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:06:07.363 176| <text>优客</text>
00:06:07.371 | ^^^^^^^^^^^^^^^^^^^
00:06:07.378 177| </view>
00:06:07.379 | ^^^^^^^^^^
00:06:07.385 178| <view class="n_jielong" @tap="toGift">
00:06:07.386 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:06:07.392 179| <image src="https://youkejingpin.oss-cn-beijing.aliyuncs.com/static/programs/bigGift.png"></image>
00:06:07.397 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:06:07.403 180| <text>送礼</text>
00:06:07.411 | ^^^^^^^^^^^^^^^^^^^
00:06:07.411 181| </view>
00:06:07.416 | ^^^^^^^^^^
00:06:07.423 182| <view class="n_car" @tap="toCart">
00:06:07.423 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:06:07.428 183| <view class="count" v-if="count > 0" :style="count > 9 ? 'padding:0 6rpx;' : ''">{{count}}</view>
00:06:07.429 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:06:07.435 184| <image src="https://youkejingpin.oss-cn-beijing.aliyuncs.com/static/programs/h_nav_icon_4.png"></image>
00:06:07.440 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:06:07.445 185| <text>购物车</text>
00:06:07.452 | ^^^^^^^^^^^^^^^^^^^^
00:06:07.457 186| </view>
00:06:07.458 | ^^^^^^^^^^
00:06:07.463 187| <view class="n_my" @tap="toMe">
00:06:07.463 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:06:07.470 188| <image src="https://youkejingpin.oss-cn-beijing.aliyuncs.com/static/programs/h_nav_icon_5.png"></image>
00:06:07.470 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:06:07.475 189| <text>我的</text>
00:06:07.482 | ^^^^^^^^^^^^^^^^^^^
00:06:07.487 190| </view>
00:06:07.492 | ^^^^^^^^^^
00:06:07.498 191| </view>
00:06:07.502 | ^^^^^^^^^
00:06:07.507 192| <!-- 底部导航 结束 -->
00:06:07.514 | ^^^^^^^^^^^^^^^^^^
00:06:07.519 193| </view>
00:06:07.523 | ^^^^^^^^
00:06:07.528 at D:\PM-2\5.We-UNI-H5\wechatapp_uni\pages\me\myOrder\gift\index.vue:0
00:06:07.535 Module Error (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):
00:06:07.540 (Emitted value instead of an instance of Error)
00:06:07.545 Errors compiling template:
00:06:07.546 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.
00:06:07.550 168| </view>
00:06:07.555 169| </view>
00:06:07.562 170| <view :class="'s_page_box_end '+(isIphoneX ? 's_page_box_end_iphonex' : '')"></view>
00:06:07.566 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:06:07.567 171| <!-- 删除订单弹出层 -->
00:06:07.575 | ^^^^^^^^^^^^^^^^^^
00:06:07.579 172| <!-- <view class="modal-box" hidden="{{flag}}">
00:06:07.584 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:06:07.591 173| <view class="modal-body">
00:06:07.591 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:06:07.595 174| <view class="modal-content modal-content-delorderlist">
00:06:07.600 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:06:07.607 175| <view class='title'>{{htitle}}</view>
00:06:07.612 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:06:07.617 176| <view class='content'>
00:06:07.621 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:06:07.626 177| <text>{{hcontent}}</text>
00:06:07.630 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:06:07.630 178| </view>
00:06:07.634 | ^^^^^^^^^^^^^
00:06:07.635 179| <view class='button'>
00:06:07.640 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:06:07.644 180| <text class='cannel' bindtap="ordermsgHide">取消</text>
00:06:07.650 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:06:07.654 181| <text class='ok' data-order_sn="{{morder_sn}}" data-id="{{id}}" data-ordertype="{{mordertype}}" data-gid="{{item.gid}}" bindtap="confirmchange">确定</text>
00:06:07.661 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:06:07.665 182| </view>
00:06:07.670 | ^^^^^^^^^^^^^
00:06:07.676 183| </view>
00:06:07.681 | ^^^^^^^^^^^
00:06:07.687 184| </view>
00:06:07.691 | ^^^^^^^^^
00:06:07.695 185| </view> -->
00:06:07.704 | ^^^^^^^^^^^
00:06:07.708 186| <!-- 删除订单弹出层结束 -->
00:06:07.712 | ^^^^^^^^^^^^^^^^^^^^
00:06:07.716 187| <!-- 底部导航 开始 -->
00:06:07.721 | ^^^^^^^^^^^^^^^^^^
00:06:07.725 188| <view :class="'nav_category_bottom '+(isIphoneX ? 'iphone_tabbar_height' : '')">
00:06:07.729 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:06:07.734 189| <view class="n_home" @tap="toIndex">
00:06:07.738 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:06:07.742 190| <image src="https://youkejingpin.oss-cn-beijing.aliyuncs.com/static/programs/h_nav_icon_1.png"></image>
00:06:07.749 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:06:07.755 191| <text>首页</text>
00:06:07.759 | ^^^^^^^^^^^^^^^^^^^
00:06:07.763 192| </view>
00:06:07.767 | ^^^^^^^^^^
00:06:07.772 193| <view class="n_jielong" @tap="toHome">
00:06:07.776 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:06:07.781 194| <image src="https://youkejingpin.oss-cn-beijing.aliyuncs.com/static/programs/h_nav_icon_2.png"></image>
00:06:07.785 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:06:07.790 195| <text>优客</text>
00:06:07.796 | ^^^^^^^^^^^^^^^^^^^
00:06:07.800 196| </view>
00:06:07.805 | ^^^^^^^^^^
00:06:07.810 197| <view class="n_jielong" @tap="toGift">
00:06:07.814 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:06:07.818 198| <image src="https://youkejingpin.oss-cn-beijing.aliyuncs.com/static/programs/h_nav_icon_6.png"></image>
00:06:07.823 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:06:07.829 199| <text>送礼</text>
00:06:07.833 | ^^^^^^^^^^^^^^^^^^^
00:06:07.838 200| </view>
00:06:07.843 | ^^^^^^^^^^
00:06:07.848 201| <view class="n_car" @tap="toCart">
00:06:07.853 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:06:07.857 202| <view class="count" v-if="count > 0" :style="count > 9 ? 'padding:0 6rpx;' : ''">{{count}}</view>
00:06:07.862 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:06:07.866 203| <image src="https://youkejingpin.oss-cn-beijing.aliyuncs.com/static/programs/h_nav_icon_4.png"></image>
00:06:07.873 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:06:07.878 204| <text>购物车</text>
00:06:07.882 | ^^^^^^^^^^^^^^^^^^^^
00:06:07.890 205| </view>
00:06:07.894 | ^^^^^^^^^^
00:06:07.899 206| <view class="n_my" @tap="toMe">
00:06:07.904 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:06:07.911 207| <image src="https://youkejingpin.oss-cn-beijing.aliyuncs.com/static/programs/h_nav_icon_5.png"></image>
00:06:07.919 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:06:07.919 208| <text>我的</text>
00:06:07.925 | ^^^^^^^^^^^^^^^^^^^
00:06:07.925 209| </view>
00:06:07.931 | ^^^^^^^^^^
00:06:07.936 210| </view>
00:06:07.941 | ^^^^^^^^^
00:06:07.945 211| <!-- 底部导航 结束 -->
00:06:07.951 | ^^^^^^^^^^^^^^^^^^
00:06:07.956 212| </view>
00:06:07.960 | ^^^^^^^^
00:06:07.966 at D:\PM-2\5.We-UNI-H5\wechatapp_uni\pages\me\myOrder\todayOrder\todayOrder.vue:0
00:06:07.970 Module Error (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):
00:06:07.975 (Emitted value instead of an instance of Error)
00:06:07.979 Errors compiling template:
00:06:07.986 invalid expression: Unexpected token '+' in
00:06:07.991 initBall($event, { index,'ball'+(index):'ball'+(index) })
00:06:07.999 Raw expression: @transitionend="initBall($event, { index,'ball'+(index):'ball'+(index) })"
00:06:08.004 100| <view class="ball-out" v-if="(item.show)"
00:06:08.009 101| :style="'transform: translate3d('+(item.left)+'px, '+(item.top)+'px, 0px);left: '+(item.pLeft)+'px; top: '+(item.pTop)+'px;'"
00:06:08.014 102| :id="'ball'+(index)" @transitionend="initBall($event, { index,'ball'+(index):'ball'+(index) })"
00:06:08.014 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:06:08.019 103| :data-index="index" v-for="(item,index1) in (balls)" :key="index1">
00:06:08.019 104|
00:06:08.024 at D:\PM-2\5.We-UNI-H5\wechatapp_uni\pages\reseller\index\index.vue:0
00:06:08.031 Module Error (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):
00:06:08.036 (Emitted value instead of an instance of Error)
00:06:08.041 Errors compiling template:
00:06:08.046 invalid expression: Unexpected token '+' in
00:06:08.050 initBall($event, { index,'ball'+(index):'ball'+(index) })
00:06:08.056 Raw expression: @transitionend="initBall($event, { index,'ball'+(index):'ball'+(index) })"
00:06:08.061 121| <view class="ball-out" v-if="(item.show)"
00:06:08.065 122| :style="'transform: translate3d('+(item.left)+'px, '+(item.top)+'px, 0px);left: '+(item.pLeft)+'px; top: '+(item.pTop)+'px;'"
00:06:08.071 123| :id="'ball'+(index)" @transitionend="initBall($event, { index,'ball'+(index):'ball'+(index) })" :data-index="index"
00:06:08.076 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:06:08.081 124| v-for="(item,index) in (balls)" :key="index">
00:06:08.088 125|
00:06:08.095 at D:\PM-2\5.We-UNI-H5\wechatapp_uni\pages\myCar\paysucceed\paysucceed.vue:0
00:06:08.096 Module Error (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):
00:06:08.101 (Emitted value instead of an instance of Error)
00:06:08.108 Errors compiling template:
00:06:08.113 invalid expression: Unexpected token '+' in
00:06:08.117 initBall($event, { index,'ball'+(index):'ball'+(index) })
00:06:08.125 Raw expression: @transitionend="initBall($event, { index,'ball'+(index):'ball'+(index) })"
00:06:08.132 148| <view class="ball-out" v-if="(item.show)"
00:06:08.132 149| :style="'transform: translate3d('+(item.left)+'px, '+(item.top)+'px, 0px);left: '+(item.pLeft)+'px; top: '+(item.pTop)+'px;'"
00:06:08.139 150| :id="'ball'+(index)" @transitionend="initBall($event, { index,'ball'+(index):'ball'+(index) })" :data-index="index"
00:06:08.143 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:06:08.148 151| v-for="(item,index) in (balls)" :key="index">
00:06:08.154 152|
00:06:08.159 at D:\PM-2\5.We-UNI-H5\wechatapp_uni\pages\search\search\search.vue:0
00:06:08.165 Module Error (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):
00:06:08.172 (Emitted value instead of an instance of Error)
00:06:08.180 Errors compiling template:
00:06:08.186 invalid expression: Unexpected token '+' in
00:06:08.191 initBall($event, { index,'ball'+(index):'ball'+(index) })
00:06:08.196 Raw expression: @transitionend="initBall($event, { index,'ball'+(index):'ball'+(index) })"
00:06:08.203 154| <view class="ball-out" v-if="(item.show)"
00:06:08.208 155| :style="'transform: translate3d('+(item.left)+'px, '+(item.top)+'px, 0px);left: '+(item.pLeft)+'px; top: '+(item.pTop)+'px;'"
00:06:08.214 156| :id="'ball'+(index)" @transitionend="initBall($event, { index,'ball'+(index):'ball'+(index) })" :data-index="index"
00:06:08.224 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:06:08.224 157| v-for="(item,index) in (balls)" :key="index">
00:06:08.229 158|
00:06:08.234 at D:\PM-2\5.We-UNI-H5\wechatapp_uni\pages\index\index.vue:0
00:06:08.240 Module Error (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):
00:06:08.246 (Emitted value instead of an instance of Error)
00:06:08.251 Errors compiling template:
00:06:08.257 invalid expression: Unexpected token '+' in
00:06:08.261 initBall($event, { index,'ball'+(index):'ball'+(index) })
00:06:08.268 Raw expression: @transitionend="initBall($event, { index,'ball'+(index):'ball'+(index) })"
00:06:08.273 169| <view class="ball-out" v-if="(item.show)"
00:06:08.277 170| :style="'transform: translate3d('+(item.left)+'px, '+(item.top)+'px, 0px);left: '+(item.pLeft)+'px; top: '+(item.pTop)+'px;'"
00:06:08.282 171| :id="'ball'+(index)" @transitionend="initBall($event, { index,'ball'+(index):'ball'+(index) })" :data-index="index"
00:06:08.287 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:06:08.291 172| v-for="(item,index) in (balls)" :key="index">
00:06:08.297 173|
00:06:08.301 at D:\PM-2\5.We-UNI-H5\wechatapp_uni\pages\ptIndex\onePinTuan\index.vue:0
00:06:08.302 Module Error (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):
00:06:08.307 (Emitted value instead of an instance of Error)
00:06:08.313 Errors compiling template:
00:06:08.317 invalid expression: Unexpected token '+' in
00:06:08.322 initBall($event, { index,'ball'+(index):'ball'+(index) })
00:06:08.328 Raw expression: @transitionend="initBall($event, { index,'ball'+(index):'ball'+(index) })"
00:06:08.332 204| <view class="ball-out" v-if="(item.show)"
00:06:08.337 205| :style="'transform: translate3d('+(item.left)+'px, '+(item.top)+'px, 0px);left: '+(item.pLeft)+'px; top: '+(item.pTop)+'px;'"
00:06:08.342 206| :id="'ball'+(index)" @transitionend="initBall($event, { index,'ball'+(index):'ball'+(index) })"
00:06:08.342 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:06:08.346 207| :data-index="index" v-for="(item,indexNaN) in (balls)" :key="indexNaN">
00:06:08.351 208|
00:06:08.359 at D:\PM-2\5.We-UNI-H5\wechatapp_uni\pages\activity\activity1\activity1.vue:0
00:06:08.364 Module Error (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):
00:06:08.368 (Emitted value instead of an instance of Error)
00:06:08.374 Errors compiling template:
00:06:08.378 invalid expression: Unexpected token '+' in
00:06:08.383 initBall($event, { index,'ball'+(index):'ball'+(index) })
00:06:08.389 Raw expression: @transitionend="initBall($event, { index,'ball'+(index):'ball'+(index) })"
00:06:08.393 205| <view class="ball-out" v-if="(item.show)"
00:06:08.397 206| :style="'transform: translate3d('+(item.left)+'px, '+(item.top)+'px, 0px);left: '+(item.pLeft)+'px; top: '+(item.pTop)+'px;'"
00:06:08.406 207| :id="'ball'+(index)" @transitionend="initBall($event, { index,'ball'+(index):'ball'+(index) })" :data-index="index"
00:06:08.406 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:06:08.410 208| v-for="(item,index) in (balls)" :key="index">
00:06:08.415 209|
00:06:08.420 at D:\PM-2\5.We-UNI-H5\wechatapp_uni\pages\myCar\myCar.vue:0
00:06:08.424 Module Error (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):
00:06:08.428 (Emitted value instead of an instance of Error)
00:06:08.434 Errors compiling template:
00:06:08.439 invalid expression: Unexpected token '+' in
00:06:08.443 initBall($event, { index,'ball'+(index):'ball'+(index) })
00:06:08.447 Raw expression: @transitionend="initBall($event, { index,'ball'+(index):'ball'+(index) })"
00:06:08.451 69 | <view class="ball-out" v-if="(item.show)"
00:06:08.457 70 | :style="'transform: translate3d('+(item.left)+'px, '+(item.top)+'px, 0px);left: '+(item.pLeft)+'px; top: '+(item.pTop)+'px;'"
00:06:08.461 71 | :id="'ball'+(index)" @transitionend="initBall($event, { index,'ball'+(index):'ball'+(index) })" :data-index="index"
00:06:08.467 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:06:08.467 72 | v-for="(item,index) in (balls)" :key="index">
00:06:08.472 73 |
00:06:08.477 at D:\PM-2\5.We-UNI-H5\wechatapp_uni\pages\ptIndex\tuanFull\index.vue:0
00:06:08.481 Module Error (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):
00:06:08.486 (Emitted value instead of an instance of Error)
00:06:08.491 Errors compiling template:
00:06:08.498 invalid expression: Unexpected token '+' in
00:06:08.503 initBall($event, { index,'ball'+(index):'ball'+(index) })
00:06:08.507 Raw expression: @transitionend="initBall($event, { index,'ball'+(index):'ball'+(index) })"
00:06:08.512 82 | <view class="ball-out" v-if="(item.show)"
00:06:08.517 83 | :style="'transform: translate3d('+(item.left)+'px, '+(item.top)+'px, 0px);left: '+(item.pLeft)+'px; top: '+(item.pTop)+'px;'"
00:06:08.522 84 | :id="'ball'+(index)" @transitionend="initBall($event, { index,'ball'+(index):'ball'+(index) })" :data-index="index"
00:06:08.528 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:06:08.533 85 | v-for="(item,index) in (balls)" :key="index">
00:06:08.537 86 |
00:06:08.545 at D:\PM-2\5.We-UNI-H5\wechatapp_uni\pages\topic\topic.vue:0
00:06:08.550 Module Error (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):
00:06:08.554 (Emitted value instead of an instance of Error)
00:06:08.558 Errors compiling template:
00:06:08.563 invalid expression: Unexpected token '+' in
00:06:08.567 toCategory($event, { id:item.id,name:item.name,curmeal:item.id,index,'into'+(index):'into'+(index) })
00:06:08.574 Raw expression: @tap="toCategory($event, { id:item.id,name:item.name,curmeal:item.id,index,'into'+(index):'into'+(index) })"
00:06:08.578 56 | :enable-back-to-top="true" :style="'height:'+(scrollviewH)+';'" :scroll-into-view="'into'+(curMeal)">
00:06:08.582 57 | <view :data-id="item.id" :data-name="item.name" :data-curmeal="item.id" :data-index="index"
00:06:08.587 58 | :class="index == curMeal ? 'cur' : ''" :id="'into'+(index)"
00:06:08.596 |
00:06:08.600 59 | @tap="toCategory($event, { id:item.id,name:item.name,curmeal:item.id,index,'into'+(index):'into'+(index) })"
00:06:08.607 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:06:08.611 60 | v-for="(item,index) in (leftGoodList)" :key="index">{{item.name}}</view>
00:06:08.615 invalid expression: Unexpected token '+' in
00:06:08.622 initBall($event, { index,'ball'+(index):'ball'+(index) })
00:06:08.626 Raw expression: @transitionend="initBall($event, { index,'ball'+(index):'ball'+(index) })"
00:06:08.630 218| <view class="ball-out" v-if="(item.show)"
00:06:08.639 219| :style="'transform: translate3d('+(item.left)+'px, '+(item.top)+'px, 0px);left: '+(item.pLeft)+'px; top: '+(item.pTop)+'px;'"
00:06:08.643 220| :id="'ball'+(index)" @transitionend="initBall($event, { index,'ball'+(index):'ball'+(index) })"
00:06:08.648 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:06:08.653 221| :data-index="index" v-for="(item,index1) in (balls)" :key="index1">
00:06:08.658 222|
00:06:08.662 at D:\PM-2\5.We-UNI-H5\wechatapp_uni\pages\home\home.vue:0
00:06:08.668 Module build failed (from ./node_modules/babel-loader/lib/index.js):
00:06:08.673 语法错误: D:\PM-2\5.We-UNI-H5\wechatapp_uni\App.vue: Unexpected token (2:15)
00:06:08.680 1 |
00:06:08.687 > 2 | const undefined;
00:06:08.692 | ^
00:06:08.696 3 |
00:06:08.703 4 | import requestUtil from "./utils/requestUtil.js";
00:06:08.709 5 | import _Api from "./utils/data.js";
00:06:08.714 at parser.next (<anonymous>)
00:06:08.718 at App.vue:2
00:06:08.723 Module build failed (from ./node_modules/babel-loader/lib/index.js):
00:06:08.727 语法错误: D:\PM-2\5.We-UNI-H5\wechatapp_uni\component\wxParse\index.vue: Unexpected token (12:15)
00:06:08.732 10 |
00:06:08.739 11 | // component/wxParse/index.js
00:06:08.743 > 12 | const undefined;
00:06:08.748 | ^
00:06:08.748 13 |
00:06:08.752 14 | export default {
00:06:08.757 15 | data() {
00:06:08.761 at parser.next (<anonymous>)
00:06:08.765 at component\wxParse\index.vue:12
00:06:08.769 Module build failed (from ./node_modules/babel-loader/lib/index.js):
00:06:08.774 语法错误: D:\PM-2\5.We-UNI-H5\wechatapp_uni\miniprogram_npm\@vant\weapp\common\component.js: 'import' and 'export' may only appear at the top level (130:4)
00:06:08.782 128 | addGlobalClass: true
00:06:08.782 129 | };
00:06:08.786 > 130 | export default {
00:06:08.793 | ^
00:06:08.797 131 | data() {
00:06:08.801 132 | return {};
00:06:08.805 133 | }
00:06:08.810 at miniprogram_npm\@vant\weapp\common\component.js:130
00:06:08.814 文件查找失败:'./desaturate.svg' at App.vue:4
00:06:08.824 文件查找失败:'F:\wxs\common.wxs?vue&type=custom&index=0&blockType=script&issuerPath=D%3A%5CPM-2%5C5.We-UNI-H5%5Cwechatapp_uni%5Cpages%5Cactivity%5Cactivity1%5Cactivity1.vue&module=substring&lang=wxs' at pages\activity\activity1\activity1.vue:24
00:06:08.831 文件查找失败:'F:\wxs\common.wxs?vue&type=custom&index=0&blockType=script&issuerPath=D%3A%5CPM-2%5C5.We-UNI-H5%5Cwechatapp_uni%5Cpages%5Cindex%5Cindex.vue&module=substring&lang=wxs' at pages\index\index.vue:24
00:06:08.836 文件查找失败:'F:\wxs\common.wxs?vue&type=custom&index=0&blockType=script&issuerPath=D%3A%5CPM-2%5C5.We-UNI-H5%5Cwechatapp_uni%5Cpages%5CmyCar%5CmyCar.vue&module=substring&lang=wxs' at pages\myCar\myCar.vue:24
00:06:08.838 文件查找失败:'F:\wxs\common.wxs?vue&type=custom&index=0&blockType=script&issuerPath=D%3A%5CPM-2%5C5.We-UNI-H5%5Cwechatapp_uni%5Cpages%5Csearch%5Csearch%5Csearch.vue&module=substring&lang=wxs' at pages\search\search\search.vue:24
00:16:33.153 正在差量编译...
00:16:34.336 Module Error (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):
00:16:34.336 (Emitted value instead of an instance of Error)
00:16:34.342 Errors compiling template:
00:16:34.344 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.
00:16:34.345 168| </view>
00:16:34.345 169| </view>
00:16:34.373 170| <view :class="'s_page_box_end '+(isIphoneX ? 's_page_box_end_iphonex' : '')"></view>
00:16:34.374 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:16:34.377 171| <!-- 删除订单弹出层 -->
00:16:34.380 | ^^^^^^^^^^^^^^^^^^
00:16:34.382 172| <!-- <view class="modal-box" hidden="{{flag}}">
00:16:34.382 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:16:34.384 173| <view class="modal-body">
00:16:34.384 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:16:34.385 174| <view class="modal-content modal-content-delorderlist">
00:16:34.385 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:16:34.386 175| <view class='title'>{{htitle}}</view>
00:16:34.386 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:16:34.387 176| <view class='content'>
00:16:34.387 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:16:34.388 177| <text>{{hcontent}}</text>
00:16:34.388 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:16:34.389 178| </view>
00:16:34.389 | ^^^^^^^^^^^^^
00:16:34.390 179| <view class='button'>
00:16:34.391 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:16:34.392 180| <text class='cannel' bindtap="ordermsgHide">取消</text>
00:16:34.396 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:16:34.397 181| <text class='ok' data-order_sn="{{morder_sn}}" data-id="{{id}}" data-ordertype="{{mordertype}}" data-gid="{{item.gid}}" bindtap="confirmchange">确定</text>
00:16:34.399 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:16:34.399 182| </view>
00:16:34.400 | ^^^^^^^^^^^^^
00:16:34.400 183| </view>
00:16:34.401 | ^^^^^^^^^^^
00:16:34.401 184| </view>
00:16:34.402 | ^^^^^^^^^
00:16:34.402 185| </view> -->
00:16:34.403 | ^^^^^^^^^^^
00:16:34.403 186| <!-- 删除订单弹出层结束 -->
00:16:34.404 | ^^^^^^^^^^^^^^^^^^^^
00:16:34.404 187| <!-- 底部导航 开始 -->
00:16:34.406 | ^^^^^^^^^^^^^^^^^^
00:16:34.406 188| <view :class="'nav_category_bottom '+(isIphoneX ? 'iphone_tabbar_height' : '')">
00:16:34.407 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:16:34.407 189| <view class="n_home" @tap="toIndex">
00:16:34.408 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:16:34.409 190| <image src="https://youkejingpin.oss-cn-beijing.aliyuncs.com/static/programs/h_nav_icon_1.png"></image>
00:16:34.410 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:16:34.411 191| <text>首页</text>
00:16:34.412 | ^^^^^^^^^^^^^^^^^^^
00:16:34.413 192| </view>
00:16:34.413 | ^^^^^^^^^^
00:16:34.414 193| <view class="n_jielong" @tap="toHome">
00:16:34.414 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:16:34.415 194| <image src="https://youkejingpin.oss-cn-beijing.aliyuncs.com/static/programs/h_nav_icon_2.png"></image>
00:16:34.415 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:16:34.416 195| <text>优客</text>
00:16:34.416 | ^^^^^^^^^^^^^^^^^^^
00:16:34.417 196| </view>
00:16:34.417 | ^^^^^^^^^^
00:16:34.418 197| <view class="n_jielong" @tap="toGift">
00:16:34.418 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:16:34.419 198| <image src="https://youkejingpin.oss-cn-beijing.aliyuncs.com/static/programs/h_nav_icon_6.png"></image>
00:16:34.419 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:16:34.420 199| <text>送礼</text>
00:16:34.420 | ^^^^^^^^^^^^^^^^^^^
00:16:34.421 200| </view>
00:16:34.421 | ^^^^^^^^^^
00:16:34.422 201| <view class="n_car" @tap="toCart">
00:16:34.422 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:16:34.423 202| <view class="count" v-if="count > 0" :style="count > 9 ? 'padding:0 6rpx;' : ''">{{count}}</view>
00:16:34.423 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:16:34.426 203| <image src="https://youkejingpin.oss-cn-beijing.aliyuncs.com/static/programs/h_nav_icon_4.png"></image>
00:16:34.428 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:16:34.428 204| <text>购物车</text>
00:16:34.430 | ^^^^^^^^^^^^^^^^^^^^
00:16:34.432 205| </view>
00:16:34.433 | ^^^^^^^^^^
00:16:34.433 206| <view class="n_my" @tap="toMe">
00:16:34.434 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:16:34.434 207| <image src="https://youkejingpin.oss-cn-beijing.aliyuncs.com/static/programs/h_nav_icon_5.png"></image>
00:16:34.435 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:16:34.435 208| <text>我的</text>
00:16:34.436 | ^^^^^^^^^^^^^^^^^^^
00:16:34.436 209| </view>
00:16:34.437 | ^^^^^^^^^^
00:16:34.437 210| </view>
00:16:34.438 | ^^^^^^^^^
00:16:34.438 211| <!-- 底部导航 结束 -->
00:16:34.438 | ^^^^^^^^^^^^^^^^^^
00:16:34.438 212| </view>
00:16:34.439 | ^^^^^^^^
00:16:34.439 at D:\PM-2\5.We-UNI-H5\wechatapp_uni\pages\me\myOrder\todayOrder\todayOrder.vue:0
00:16:34.444 Module Error (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):
00:16:34.445 (Emitted value instead of an instance of Error)
00:16:34.445 Errors compiling template:
00:16:34.446 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.
00:16:34.446 168| <!-- <view class="s_page_box_end" :style="'padding-bottom:'+(isIphoneX ? 68 : 0)+'rpx;'"></view> -->
00:16:34.447 169| <!-- 底部导航 开始 -->
00:16:34.447 170| <view class="nav_category_bottom" :style="'padding-bottom:'+(isIphoneX ? 68 : 0)+'rpx;'">
00:16:34.448 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:16:34.448 171| <view class="n_home" @tap="toIndex">
00:16:34.449 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:16:34.450 172| <image src="https://youkejingpin.oss-cn-beijing.aliyuncs.com/static/programs/h_nav_icon_1.png"></image>
00:16:34.451 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:16:34.451 173| <text>首页</text>
00:16:34.452 | ^^^^^^^^^^^^^^^^^^^
00:16:34.452 174| </view>
00:16:34.452 | ^^^^^^^^^^
00:16:34.452 175| <view class="n_jielong" @tap="toHome">
00:16:34.453 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:16:34.453 176| <image src="https://youkejingpin.oss-cn-beijing.aliyuncs.com/static/programs/h_nav_icon_2.png"></image>
00:16:34.454 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:16:34.454 177| <text>优客</text>
00:16:34.455 | ^^^^^^^^^^^^^^^^^^^
00:16:34.455 178| </view>
00:16:34.458 | ^^^^^^^^^^
00:16:34.459 179| <view class="n_jielong" @tap="toGift">
00:16:34.460 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:16:34.460 180| <image src="https://youkejingpin.oss-cn-beijing.aliyuncs.com/static/programs/bigGift.png"></image>
00:16:34.461 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:16:34.462 181| <text>送礼</text>
00:16:34.463 | ^^^^^^^^^^^^^^^^^^^
00:16:34.464 182| </view>
00:16:34.465 | ^^^^^^^^^^
00:16:34.465 183| <view class="n_car" @tap="toCart">
00:16:34.466 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:16:34.467 184| <view class="count" v-if="count > 0" :style="count > 9 ? 'padding:0 6rpx;' : ''">{{count}}</view>
00:16:34.468 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:16:34.469 185| <image src="https://youkejingpin.oss-cn-beijing.aliyuncs.com/static/programs/h_nav_icon_4.png"></image>
00:16:34.470 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:16:34.470 186| <text>购物车</text>
00:16:34.471 | ^^^^^^^^^^^^^^^^^^^^
00:16:34.473 187| </view>
00:16:34.474 | ^^^^^^^^^^
00:16:34.474 188| <view class="n_my" @tap="toMe">
00:16:34.476 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:16:34.476 189| <image src="https://youkejingpin.oss-cn-beijing.aliyuncs.com/static/programs/h_nav_icon_5.png"></image>
00:16:34.477 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:16:34.478 190| <text>我的</text>
00:16:34.479 | ^^^^^^^^^^^^^^^^^^^
00:16:34.480 191| </view>
00:16:34.481 | ^^^^^^^^^^
00:16:34.481 192| </view>
00:16:34.482 | ^^^^^^^^^
00:16:34.483 193| <!-- 底部导航 结束 -->
00:16:34.483 | ^^^^^^^^^^^^^^^^^^
00:16:34.484 194| </view>
00:16:34.485 | ^^^^^^^^
00:16:34.486 at D:\PM-2\5.We-UNI-H5\wechatapp_uni\pages\me\myOrder\gift\index.vue:0
00:16:34.486 Module Error (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):
00:16:34.487 (Emitted value instead of an instance of Error)
00:16:34.490 Errors compiling template:
00:16:34.491 invalid expression: Unexpected token '+' in
00:16:34.493 initBall($event, { index,'ball'+(index):'ball'+(index) })
00:16:34.494 Raw expression: @transitionend="initBall($event, { index,'ball'+(index):'ball'+(index) })"
00:16:34.495 100| <view class="ball-out" v-if="(item.show)"
00:16:34.495 101| :style="'transform: translate3d('+(item.left)+'px, '+(item.top)+'px, 0px);left: '+(item.pLeft)+'px; top: '+(item.pTop)+'px;'"
00:16:34.496 102| :id="'ball'+(index)" @transitionend="initBall($event, { index,'ball'+(index):'ball'+(index) })"
00:16:34.496 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:16:34.497 103| :data-index="index" v-for="(item,index1) in (balls)" :key="index1">
00:16:34.497 104|
00:16:34.498 at D:\PM-2\5.We-UNI-H5\wechatapp_uni\pages\reseller\index\index.vue:0
00:16:34.498 Module Error (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):
00:16:34.499 (Emitted value instead of an instance of Error)
00:16:34.499 Errors compiling template:
00:16:34.500 invalid expression: Unexpected token '+' in
00:16:34.500 initBall($event, { index,'ball'+(index):'ball'+(index) })
00:16:34.500 Raw expression: @transitionend="initBall($event, { index,'ball'+(index):'ball'+(index) })"
00:16:34.500 121| <view class="ball-out" v-if="(item.show)"
00:16:34.501 122| :style="'transform: translate3d('+(item.left)+'px, '+(item.top)+'px, 0px);left: '+(item.pLeft)+'px; top: '+(item.pTop)+'px;'"
00:16:34.501 123| :id="'ball'+(index)" @transitionend="initBall($event, { index,'ball'+(index):'ball'+(index) })" :data-index="index"
00:16:34.504 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:16:34.505 124| v-for="(item,index) in (balls)" :key="index">
00:16:34.506 125|
00:16:34.506 at D:\PM-2\5.We-UNI-H5\wechatapp_uni\pages\myCar\paysucceed\paysucceed.vue:0
00:16:34.507 Module Error (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):
00:16:34.509 (Emitted value instead of an instance of Error)
00:16:34.510 Errors compiling template:
00:16:34.511 invalid expression: Unexpected token '+' in
00:16:34.511 initBall($event, { index,'ball'+(index):'ball'+(index) })
00:16:34.512 Raw expression: @transitionend="initBall($event, { index,'ball'+(index):'ball'+(index) })"
00:16:34.513 148| <view class="ball-out" v-if="(item.show)"
00:16:34.514 149| :style="'transform: translate3d('+(item.left)+'px, '+(item.top)+'px, 0px);left: '+(item.pLeft)+'px; top: '+(item.pTop)+'px;'"
00:16:34.515 150| :id="'ball'+(index)" @transitionend="initBall($event, { index,'ball'+(index):'ball'+(index) })" :data-index="index"
00:16:34.515 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:16:34.516 151| v-for="(item,index) in (balls)" :key="index">
00:16:34.517 152|
00:16:34.520 at D:\PM-2\5.We-UNI-H5\wechatapp_uni\pages\search\search\search.vue:0
00:16:34.521 Module Error (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):
00:16:34.522 (Emitted value instead of an instance of Error)
00:16:34.523 Errors compiling template:
00:16:34.524 invalid expression: Unexpected token '+' in
00:16:34.525 initBall($event, { index,'ball'+(index):'ball'+(index) })
00:16:34.527 Raw expression: @transitionend="initBall($event, { index,'ball'+(index):'ball'+(index) })"
00:16:34.528 154| <view class="ball-out" v-if="(item.show)"
00:16:34.529 155| :style="'transform: translate3d('+(item.left)+'px, '+(item.top)+'px, 0px);left: '+(item.pLeft)+'px; top: '+(item.pTop)+'px;'"
00:16:34.529 156| :id="'ball'+(index)" @transitionend="initBall($event, { index,'ball'+(index):'ball'+(index) })" :data-index="index"
00:16:34.530 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:16:34.531 157| v-for="(item,index) in (balls)" :key="index">
00:16:34.532 158|
00:16:34.533 at D:\PM-2\5.We-UNI-H5\wechatapp_uni\pages\index\index.vue:0
00:16:34.533 Module Error (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):
00:16:34.537 (Emitted value instead of an instance of Error)
00:16:34.538 Errors compiling template:
00:16:34.538 invalid expression: Unexpected token '+' in
00:16:34.539 initBall($event, { index,'ball'+(index):'ball'+(index) })
00:16:34.539 Raw expression: @transitionend="initBall($event, { index,'ball'+(index):'ball'+(index) })"
00:16:34.540 169| <view class="ball-out" v-if="(item.show)"
00:16:34.540 170| :style="'transform: translate3d('+(item.left)+'px, '+(item.top)+'px, 0px);left: '+(item.pLeft)+'px; top: '+(item.pTop)+'px;'"
00:16:34.542 171| :id="'ball'+(index)" @transitionend="initBall($event, { index,'ball'+(index):'ball'+(index) })" :data-index="index"
00:16:34.543 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:16:34.544 172| v-for="(item,index) in (balls)" :key="index">
00:16:34.545 173|
00:16:34.545 at D:\PM-2\5.We-UNI-H5\wechatapp_uni\pages\ptIndex\onePinTuan\index.vue:0
00:16:34.546 Module Error (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):
00:16:34.547 (Emitted value instead of an instance of Error)
00:16:34.548 Errors compiling template:
00:16:34.550 invalid expression: Unexpected token '+' in
00:16:34.552 initBall($event, { index,'ball'+(index):'ball'+(index) })
00:16:34.553 Raw expression: @transitionend="initBall($event, { index,'ball'+(index):'ball'+(index) })"
00:16:34.554 204| <view class="ball-out" v-if="(item.show)"
00:16:34.554 205| :style="'transform: translate3d('+(item.left)+'px, '+(item.top)+'px, 0px);left: '+(item.pLeft)+'px; top: '+(item.pTop)+'px;'"
00:16:34.555 206| :id="'ball'+(index)" @transitionend="initBall($event, { index,'ball'+(index):'ball'+(index) })"
00:16:34.556 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:16:34.557 207| :data-index="index" v-for="(item,indexNaN) in (balls)" :key="indexNaN">
00:16:34.558 208|
00:16:34.559 at D:\PM-2\5.We-UNI-H5\wechatapp_uni\pages\activity\activity1\activity1.vue:0
00:16:34.560 Module Error (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):
00:16:34.562 (Emitted value instead of an instance of Error)
00:16:34.563 Errors compiling template:
00:16:34.564 invalid expression: Unexpected token '+' in
00:16:34.565 initBall($event, { index,'ball'+(index):'ball'+(index) })
00:16:34.565 Raw expression: @transitionend="initBall($event, { index,'ball'+(index):'ball'+(index) })"
00:16:34.566 205| <view class="ball-out" v-if="(item.show)"
00:16:34.567 206| :style="'transform: translate3d('+(item.left)+'px, '+(item.top)+'px, 0px);left: '+(item.pLeft)+'px; top: '+(item.pTop)+'px;'"
00:16:34.568 207| :id="'ball'+(index)" @transitionend="initBall($event, { index,'ball'+(index):'ball'+(index) })" :data-index="index"
00:16:34.569 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:16:34.570 208| v-for="(item,index) in (balls)" :key="index">
00:16:34.570 209|
00:16:34.571 at D:\PM-2\5.We-UNI-H5\wechatapp_uni\pages\myCar\myCar.vue:0
00:16:34.571 Module Error (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):
00:16:34.572 (Emitted value instead of an instance of Error)
00:16:34.573 Errors compiling template:
00:16:34.574 invalid expression: Unexpected token '+' in
00:16:34.575 initBall($event, { index,'ball'+(index):'ball'+(index) })
00:16:34.576 Raw expression: @transitionend="initBall($event, { index,'ball'+(index):'ball'+(index) })"
00:16:34.577 69 | <view class="ball-out" v-if="(item.show)"
00:16:34.577 70 | :style="'transform: translate3d('+(item.left)+'px, '+(item.top)+'px, 0px);left: '+(item.pLeft)+'px; top: '+(item.pTop)+'px;'"
00:16:34.578 71 | :id="'ball'+(index)" @transitionend="initBall($event, { index,'ball'+(index):'ball'+(index) })" :data-index="index"
00:16:34.578 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:16:34.579 72 | v-for="(item,index) in (balls)" :key="index">
00:16:34.580 73 |
00:16:34.584 at D:\PM-2\5.We-UNI-H5\wechatapp_uni\pages\ptIndex\tuanFull\index.vue:0
00:16:34.585 Module Error (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):
00:16:34.585 (Emitted value instead of an instance of Error)
00:16:34.586 Errors compiling template:
00:16:34.586 invalid expression: Unexpected token '+' in
00:16:34.587 initBall($event, { index,'ball'+(index):'ball'+(index) })
00:16:34.588 Raw expression: @transitionend="initBall($event, { index,'ball'+(index):'ball'+(index) })"
00:16:34.588 82 | <view class="ball-out" v-if="(item.show)"
00:16:34.589 83 | :style="'transform: translate3d('+(item.left)+'px, '+(item.top)+'px, 0px);left: '+(item.pLeft)+'px; top: '+(item.pTop)+'px;'"
00:16:34.590 84 | :id="'ball'+(index)" @transitionend="initBall($event, { index,'ball'+(index):'ball'+(index) })" :data-index="index"
00:16:34.591 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:16:34.592 85 | v-for="(item,index) in (balls)" :key="index">
00:16:34.593 86 |
00:16:34.594 at D:\PM-2\5.We-UNI-H5\wechatapp_uni\pages\topic\topic.vue:0
00:16:34.595 Module Error (from ./node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js):
00:16:34.596 (Emitted value instead of an instance of Error)
00:16:34.596 Errors compiling template:
00:16:34.598 invalid expression: Unexpected token '+' in
00:16:34.599 toCategory($event, { id:item.id,name:item.name,curmeal:item.id,index,'into'+(index):'into'+(index) })
00:16:34.600 Raw expression: @tap="toCategory($event, { id:item.id,name:item.name,curmeal:item.id,index,'into'+(index):'into'+(index) })"
00:16:34.601 56 | :enable-back-to-top="true" :style="'height:'+(scrollviewH)+';'" :scroll-into-view="'into'+(curMeal)">
00:16:34.601 57 | <view :data-id="item.id" :data-name="item.name" :data-curmeal="item.id" :data-index="index"
00:16:34.602 58 | :class="index == curMeal ? 'cur' : ''" :id="'into'+(index)"
00:16:34.603 |
00:16:34.604 59 | @tap="toCategory($event, { id:item.id,name:item.name,curmeal:item.id,index,'into'+(index):'into'+(index) })"
00:16:34.605 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:16:34.606 60 | v-for="(item,index) in (leftGoodList)" :key="index">{{item.name}}</view>
00:16:34.607 invalid expression: Unexpected token '+' in
00:16:34.608 initBall($event, { index,'ball'+(index):'ball'+(index) })
00:16:34.609 Raw expression: @transitionend="initBall($event, { index,'ball'+(index):'ball'+(index) })"
00:16:34.610 218| <view class="ball-out" v-if="(item.show)"
00:16:34.611 219| :style="'transform: translate3d('+(item.left)+'px, '+(item.top)+'px, 0px);left: '+(item.pLeft)+'px; top: '+(item.pTop)+'px;'"
00:16:34.615 220| :id="'ball'+(index)" @transitionend="initBall($event, { index,'ball'+(index):'ball'+(index) })"
00:16:34.616 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
00:16:34.616 221| :data-index="index" v-for="(item,index1) in (balls)" :key="index1">
00:16:34.617 222|
00:16:34.618 at D:\PM-2\5.We-UNI-H5\wechatapp_uni\pages\home\home.vue:0
00:16:34.619 Module build failed (from ./node_modules/babel-loader/lib/index.js):
00:16:34.620 语法错误: D:\PM-2\5.We-UNI-H5\wechatapp_uni\App.vue: Unexpected token (2:15)
00:16:34.622 1 |
00:16:34.623 > 2 | const undefined;
00:16:34.624 | ^
00:16:34.624 3 |
00:16:34.625 4 | import requestUtil from "./utils/requestUtil.js";
00:16:34.626 5 | import _Api from "./utils/data.js";
00:16:34.631 at parser.next (<anonymous>)
00:16:34.632 at App.vue:2
00:16:34.632 Module build failed (from ./node_modules/babel-loader/lib/index.js):
00:16:34.633 语法错误: D:\PM-2\5.We-UNI-H5\wechatapp_uni\component\wxParse\index.vue: Unexpected token (12:15)
00:16:34.633 10 |
00:16:34.634 11 | // component/wxParse/index.js
00:16:34.634 > 12 | const undefined;
00:16:34.635 | ^
00:16:34.635 13 |
00:16:34.635 14 | export default {
00:16:34.636 15 | data() {
00:16:34.636 at parser.next (<anonymous>)
00:16:34.636 at component\wxParse\index.vue:12
00:16:34.637 Module build failed (from ./node_modules/babel-loader/lib/index.js):
00:16:34.637 语法错误: D:\PM-2\5.We-UNI-H5\wechatapp_uni\miniprogram_npm\@vant\weapp\common\component.js: 'import' and 'export' may only appear at the top level (130:4)
00:16:34.638 128 | addGlobalClass: true
00:16:34.638 129 | };
00:16:34.639 > 130 | export default {
00:16:34.639 | ^
00:16:34.640 131 | data() {
00:16:34.640 132 | return {};
00:16:34.641 133 | }
00:16:34.641 at miniprogram_npm\@vant\weapp\common\component.js:130
00:16:34.642 文件查找失败:'./desaturate.svg' at App.vue:4
00:16:34.646 文件查找失败:'F:\wxs\common.wxs?vue&type=custom&index=0&blockType=script&issuerPath=D%3A%5CPM-2%5C5.We-UNI-H5%5Cwechatapp_uni%5Cpages%5Cactivity%5Cactivity1%5Cactivity1.vue&module=substring&lang=wxs' at pages\activity\activity1\activity1.vue:24
00:16:34.647 文件查找失败:'F:\wxs\common.wxs?vue&type=custom&index=0&blockType=script&issuerPath=D%3A%5CPM-2%5C5.We-UNI-H5%5Cwechatapp_uni%5Cpages%5Cindex%5Cindex.vue&module=substring&lang=wxs' at pages\index\index.vue:24
00:16:34.647 文件查找失败:'F:\wxs\common.wxs?vue&type=custom&index=0&blockType=script&issuerPath=D%3A%5CPM-2%5C5.We-UNI-H5%5Cwechatapp_uni%5Cpages%5CmyCar%5CmyCar.vue&module=substring&lang=wxs' at pages\myCar\myCar.vue:24
00:16:34.648 文件查找失败:'F:\wxs\common.wxs?vue&type=custom&index=0&blockType=script&issuerPath=D%3A%5CPM-2%5C5.We-UNI-H5%5Cwechatapp_uni%5Cpages%5Csearch%5Csearch%5Csearch.vue&module=substring&lang=wxs' at pages\search\search\search.vue:24
00:16:42.553 已停止运行...
2022-06-06 00:21
s***@suxuantech.cn

s***@suxuantech.cn

这个工具有以下几个问题,不知道作者能否修复一下
wxapp=> uniapp 自动转换工具面临的问题
1、微信里面template 如果有循环,在模板代码里可以直接使用循环里的属性,比如有变量:
```
orderlist = [
{“id”=>1,”order_sn”=>”2022050100001”},
{“id”=>2,”order_sn”=>”2022050100002”},
],
```
在循环里,可以直接使用order_sn作为变量,但是转到uniapp后,order_sn就不能这么做,只能手动改成item.order_sn 这种方式

2、转换脚 本会把所有带.的字符串 前面加上路径,比如我有一个变量:var a = ‘.jpg’ 转成uniapp后,会变成:var a=‘/static/.jpg’
3、微信小程序里面:
```
<view hidden=“{{ishidden}}”>
```
转换没问题会被转成:
```
<view v-if=“!ishidden”>
```
但是,如果是:
```
<view hidden=“pic.ishidden”>
```
这时,会被转成:
```
<view v-if=“pic.ishidden”>
```
就正好返了,同样,如果hidden后面是个表达试,也有问题,比如:
```
<view hidden=“id>0”>
```
会被转成:
```
<view v-if=“id>0”>
```
4、wxss文件里有@import '../xkz/xkz.wxss'; 这种引用时,肯定也不行,因为CSS文件在uniapp里面已经合成.vue文件了,所以那个文件根本不存在,最好是能把这个内容直接拷过来。
2022-05-24 18:28
pushuo

pushuo

我去,有插件啊?我是直接手动弄的…
2022-05-08 23:35
s***@163.com

s***@163.com

wxs 文件转换到哪里去了呢?
2022-05-07 13:35
biluo

biluo

我用ts开发的小程序,转化后所有的ts代码都没了,vue文件里面都只有template和style,我看上面说支持ts小程序,是不是还有其他的配置或者是什么我不知道的情况,望指教
2022-04-19 19:36