opened
myfengstyle
username_0
原来是：
<driver_index bind:switch="switch" class="main full" info="{{info}}" wx:if="{{PageCur=='driver_index'}}"></driver_index>

转换后是：
<driver_index @switch="switch" class="main full" :info="info" v-if="PageCur=='driver_index'"></driver_index>

提示：
 Errors compiling template:
13:18:17.886   avoid using JavaScript keyword as property name: "switch"
13:18:17.892   Raw expression: @switch="switch"
 Raw expression: @switch="switch"
issue
created
zhangdaren
username_1
switch有在methods里定义吗？如果有定义，那应该会直接替换的。如果没有定义的话，不是太好替换。
comment
created
myfengstyle
username_0
定义了
methods: {
    getPosition: function () {
      addressModule.getCurrentCityMessage().then(function (e) {
        driverModule.updatePosition({
          lat: e.location.lat,
          lng: e.location.lng,
          name: e.title,
          address: e.address
        }).then(function (e) {}, function (e) {});
      }, function (e) {});
    },
    getInfo: function () {
      var t = this;
      driverModule.driverInfo().then(function (e) {
        e.is_driver || t.setData({
          PageCur: "my_center"
        }), t.setData({
          info: e
        });
      }, function (e) {});
    },
    switch: function (e) {
      var t = this.info;
      t.info.statef = e.detail.status, this.setData({
        info: t
      });
    },
    NavChange: function (e) {
comment
created
myfengstyle
username_0
{
    "navigationBarTitleText": "首页",
    "usingComponents": {
        "driver_index": "/freight/driver/driver_index/driver_index",
        "my_center": "/freight/driver/my_center/my_center",
        "cu-custom": "/component/top-nav/top-nav"
    }
}
没有放在component目录哦
comment
created
zhangdaren
username_1
刚刚更新了v1.0.27，升级试试？ 
 switch那个是解决了（工具会将methods里的函数提取出来与系统关键字对比，如果有使用，那么就把模板里的函数进行替换）

后面那个usingComponents测试也没问题，，是app.json里的吧？
comment