起步软件技术论坛
搜索
 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2374|回复: 7

[处理中3] 启动app第一次从列表页进入商品页在点返回上一页就会报错

[复制链接]

18

主题

96

帖子

270

积分

中级会员

Rank: 3Rank: 3

积分
270
QQ
发表于 2017-10-16 15:44:20 | 显示全部楼层 |阅读模式
启动app第一次从列表页进入商品页在点返回上一页就会报错错误提示是下面的图片
微信图片_20171016153551.jpg


然后再第3次或者是第4次进入商品页再返回上一页也就是列表页有提示一个新的错误请看下图  然后在app里面浏览就在返回就不提示
微信图片_20171016153558.jpg

就启动app的第一次进去返回提示错误和第3次或者第4次就提示这两次以后就不提示了
列表页打开的方式是
  justep.Shell.showPage("detail", {
            goodsID : data.getValue("goods_id"),
        });


商品页关闭的方式是:{operation:'window.close'}  创建页面自带的关闭方式

请问这个是怎么回事?


发表于 2017-10-16 17:09:04 | 显示全部楼层
浏览器打开 F12  
看下控制台的完整报错信息是什么??
哪行代码报错的??

看上去是调用某个对象是 空 导致的!
qq:1912779713
WeX5教程--WeX5下载
回复 支持 反对

使用道具 举报

18

主题

96

帖子

270

积分

中级会员

Rank: 3Rank: 3

积分
270
QQ
 楼主| 发表于 2017-10-16 22:19:14 | 显示全部楼层
liangyongfei 发表于 2017-10-16 17:09
浏览器打开 F12  
看下控制台的完整报错信息是什么??
哪行代码报错的??

2017-10-16 22:13:56 Error in expression; ':' found after identifier "data".
2017-10-16 22:13:56 Error in declaration. (Invalid token "=". Was expecting one of: <S>, ":".)
2017-10-16 22:13:56 Error in expression; ':' found after identifier "data".
2017-10-16 22:13:56 Error in declaration. (Invalid token "=". Was expecting one of: <S>, ":".)
2017-10-16 22:13:56 Error in expression; ':' found after identifier "data".
2017-10-16 22:13:56 Error in declaration. (Invalid token "=". Was expecting one of: <S>, ":".)
2017-10-16 22:13:56 Error in expression; ':' found after identifier "data".
2017-10-16 22:13:56 Error in declaration. (Invalid token "=". Was expecting one of: <S>, ":".)
2017-10-16 22:13:56 Error in expression; ':' found after identifier "data".
2017-10-16 22:13:56 Error in declaration. (Invalid token "=". Was expecting one of: <S>, ":".)
2017-10-16 22:13:56 Error in expression; ':' found after identifier "data".
2017-10-16 22:13:56 Error in declaration. (Invalid token "=". Was expecting one of: <S>, ":".)
2017-10-16 22:13:56 Error in declaration. (Invalid token "=". Was expecting one of: <S>, ":".)
2017-10-16 22:13:56 Error in style rule. (Invalid token "/". Was expecting one of: <EOF>, <S>, <IDENT>, "}", ";", "*".)
2017-10-16 22:13:56 Ignoring the following declarations in this rule.
2017-10-16 22:13:56 Error in style rule. (Invalid token "/". Was expecting one of: <EOF>, <S>, <IDENT>, "}", ";", "*".)
2017-10-16 22:13:56 Ignoring the following declarations in this rule.
2017-10-16 22:13:56 开始-WINDOW生成中间文件: /UI2/xkl/home.w
2017-10-16 22:13:56 加载模块:/UI2/system/components/justep/list/server ...
2017-10-16 22:13:56 加载模块:/UI2/system/components/justep/list/server
2017-10-16 22:13:56 加载模块:/UI2/system/components/justep/windowDialog/server ...
2017-10-16 22:13:56 加载模块:/UI2/system/components/justep/windowDialog/server
2017-10-16 22:13:56 Error in expression; ':' found after identifier "data".
2017-10-16 22:13:56 Error in declaration. (Invalid token "=". Was expecting one of: <S>, ":".)
2017-10-16 22:13:56 Error in expression; ':' found after identifier "data".
2017-10-16 22:13:56 Error in declaration. (Invalid token "=". Was expecting one of: <S>, ":".)
2017-10-16 22:13:56 Error in expression; ':' found after identifier "data".
2017-10-16 22:13:56 Error in declaration. (Invalid token "=". Was expecting one of: <S>, ":".)
2017-10-16 22:13:56 Error in expression; ':' found after identifier "data".
2017-10-16 22:13:56 Error in declaration. (Invalid token "=". Was expecting one of: <S>, ":".)
2017-10-16 22:13:56 Error in expression; ':' found after identifier "data".
2017-10-16 22:13:56 Error in declaration. (Invalid token "=". Was expecting one of: <S>, ":".)
2017-10-16 22:13:56 Error in expression; ':' found after identifier "data".
2017-10-16 22:13:56 Error in declaration. (Invalid token "=". Was expecting one of: <S>, ":".)
2017-10-16 22:13:56 Error in declaration. (Invalid token "=". Was expecting one of: <S>, ":".)
2017-10-16 22:13:56 结束-WINDOW生成中间文件: /UI2/xkl/home.w
2017-10-16 22:13:56 开始-中间文件生成缓存文件: /UI2/xkl/home.w
2017-10-16 22:13:57 结束-中间文件生成缓存文件: /UI2/xkl/home.w
2017-10-16 22:13:57 结束-WINDOW生成中间文件: /UI2/xkl/main.w
2017-10-16 22:13:57 开始-中间文件生成缓存文件: /UI2/xkl/main.w
2017-10-16 22:13:57 结束-中间文件生成缓存文件: /UI2/xkl/main.w
2017-10-16 22:13:57 结束-WINDOW生成中间文件: /UI2/xkl/index.w
2017-10-16 22:13:57 开始-中间文件生成缓存文件: /UI2/xkl/index.w
2017-10-16 22:13:57 结束-中间文件生成缓存文件: /UI2/xkl/index.w
2017-10-16 22:14:07 开始-WINDOW生成中间文件: /UI2/xkl/index.w
2017-10-16 22:14:07 开始-WINDOW生成中间文件: /UI2/xkl/main.w
2017-10-16 22:14:07 Error in expression; ':' found after identifier "data".
2017-10-16 22:14:07 Error in declaration. (Invalid token "=". Was expecting one of: <S>, ":".)
2017-10-16 22:14:07 Error in expression; ':' found after identifier "data".
2017-10-16 22:14:07 Error in declaration. (Invalid token "=". Was expecting one of: <S>, ":".)
2017-10-16 22:14:07 Error in expression; ':' found after identifier "data".
2017-10-16 22:14:07 Error in declaration. (Invalid token "=". Was expecting one of: <S>, ":".)
2017-10-16 22:14:07 Error in expression; ':' found after identifier "data".
2017-10-16 22:14:07 Error in declaration. (Invalid token "=". Was expecting one of: <S>, ":".)
2017-10-16 22:14:07 Error in expression; ':' found after identifier "data".
2017-10-16 22:14:07 Error in declaration. (Invalid token "=". Was expecting one of: <S>, ":".)
2017-10-16 22:14:07 Error in expression; ':' found after identifier "data".
2017-10-16 22:14:07 Error in declaration. (Invalid token "=". Was expecting one of: <S>, ":".)
2017-10-16 22:14:07 Error in declaration. (Invalid token "=". Was expecting one of: <S>, ":".)
2017-10-16 22:14:07 Error in style rule. (Invalid token "/". Was expecting one of: <EOF>, <S>, <IDENT>, "}", ";", "*".)
2017-10-16 22:14:07 Ignoring the following declarations in this rule.
2017-10-16 22:14:07 Error in style rule. (Invalid token "/". Was expecting one of: <EOF>, <S>, <IDENT>, "}", ";", "*".)
2017-10-16 22:14:07 Ignoring the following declarations in this rule.
2017-10-16 22:14:07 开始-WINDOW生成中间文件: /UI2/xkl/home.w
2017-10-16 22:14:07 Error in expression; ':' found after identifier "data".
2017-10-16 22:14:07 Error in declaration. (Invalid token "=". Was expecting one of: <S>, ":".)
2017-10-16 22:14:07 Error in expression; ':' found after identifier "data".
2017-10-16 22:14:07 Error in declaration. (Invalid token "=". Was expecting one of: <S>, ":".)
2017-10-16 22:14:07 Error in expression; ':' found after identifier "data".
2017-10-16 22:14:07 Error in declaration. (Invalid token "=". Was expecting one of: <S>, ":".)
2017-10-16 22:14:07 Error in expression; ':' found after identifier "data".
2017-10-16 22:14:07 Error in declaration. (Invalid token "=". Was expecting one of: <S>, ":".)
2017-10-16 22:14:07 Error in expression; ':' found after identifier "data".
2017-10-16 22:14:07 Error in declaration. (Invalid token "=". Was expecting one of: <S>, ":".)
2017-10-16 22:14:07 Error in expression; ':' found after identifier "data".
2017-10-16 22:14:07 Error in declaration. (Invalid token "=". Was expecting one of: <S>, ":".)
2017-10-16 22:14:07 Error in declaration. (Invalid token "=". Was expecting one of: <S>, ":".)
2017-10-16 22:14:07 结束-WINDOW生成中间文件: /UI2/xkl/home.w
2017-10-16 22:14:07 开始-中间文件生成缓存文件: /UI2/xkl/home.w
2017-10-16 22:14:08 结束-中间文件生成缓存文件: /UI2/xkl/home.w
2017-10-16 22:14:08 结束-WINDOW生成中间文件: /UI2/xkl/main.w
2017-10-16 22:14:08 开始-中间文件生成缓存文件: /UI2/xkl/main.w
2017-10-16 22:14:08 结束-中间文件生成缓存文件: /UI2/xkl/main.w
2017-10-16 22:14:08 结束-WINDOW生成中间文件: /UI2/xkl/index.w
2017-10-16 22:14:08 开始-中间文件生成缓存文件: /UI2/xkl/index.w
2017-10-16 22:14:08 结束-中间文件生成缓存文件: /UI2/xkl/index.w
2017-10-16 22:14:16 开始-WINDOW生成中间文件: /UI2/xkl/detail.w
2017-10-16 22:14:16 Error in style rule. (Invalid token "/". Was expecting one of: <EOF>, <S>, <IDENT>, "}", ";", "*".)
2017-10-16 22:14:16 Ignoring the following declarations in this rule.
2017-10-16 22:14:17 结束-WINDOW生成中间文件: /UI2/xkl/detail.w
2017-10-16 22:14:17 开始-中间文件生成缓存文件: /UI2/xkl/detail.w
2017-10-16 22:14:17 结束-中间文件生成缓存文件: /UI2/xkl/detail.w

帮看一下 什么错误  谢谢
回复 支持 反对

使用道具 举报

发表于 2017-10-17 09:43:52 | 显示全部楼层
后翼 发表于 2017-10-16 22:19
2017-10-16 22:13:56 Error in expression; ':' found after identifier "data".
2017-10-16 22:13:56 Er ...

w页面先模型编译一下! 有没有报错信息呢?
看上去是页面编译有问题!需要页面调整正确,不要报错
qq:1912779713
WeX5教程--WeX5下载
回复 支持 反对

使用道具 举报

18

主题

96

帖子

270

积分

中级会员

Rank: 3Rank: 3

积分
270
QQ
 楼主| 发表于 2017-10-17 11:56:50 | 显示全部楼层
liangyongfei 发表于 2017-10-17 09:43
w页面先模型编译一下! 有没有报错信息呢?
看上去是页面编译有问题!需要页面调整正确,不要报错 ...

现在编译的错误取消了 但是app里面打开第一次有的还是弹出那个错误提示  在本地测试没有弹出错误只有在打包好的app里面弹出那个错误
回复 支持 反对

使用道具 举报

发表于 2017-10-17 14:22:25 | 显示全部楼层
后翼 发表于 2017-10-17 11:56
现在编译的错误取消了 但是app里面打开第一次有的还是弹出那个错误提示  在本地测试没有弹出错误只有在打 ...

是模式几打包的?? 保证app中资源和服务器是同步的!

可以先使用appLoader 打包测试下是否正常??
手机系统自带浏览器访问是否正常?
qq:1912779713
WeX5教程--WeX5下载
回复 支持 反对

使用道具 举报

18

主题

96

帖子

270

积分

中级会员

Rank: 3Rank: 3

积分
270
QQ
 楼主| 发表于 2017-10-17 20:25:40 | 显示全部楼层
liangyongfei 发表于 2017-10-17 14:22
是模式几打包的?? 保证app中资源和服务器是同步的!

可以先使用appLoader 打包测试下是否正常??

appLoader 测试没问题  模式1打包的
回复 支持 反对

使用道具 举报

发表于 2017-10-18 09:52:18 | 显示全部楼层
后翼 发表于 2017-10-17 20:25
appLoader 测试没问题  模式1打包的

模式1打包 是异步更新资源的!可能客户端和服务器资源不同步导致的!(app中资源是旧的)
1.APP 多运行 重启 几次试试

2.试试模式3打包正常吗?这个是调试开发用的!可以实时更新studio 修改的资源!
qq:1912779713
WeX5教程--WeX5下载
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|X3技术论坛|Justep Inc.    

GMT+8, 2024-5-22 19:48 , Processed in 0.079520 second(s), 26 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表