使用Hogan渲染html模板加载图片出错

在从服务器加载数据并渲染商品列表的时候出现Cannot find module "./{{imageHost}}{{mainImage}}"错误,查看返回的json字段信息如下: { "status": 0, "data": { "pageNum": 1, "pageSize": 10, "size": 1, "orderBy": "price asc", "startRow": 1, "endRow": 1, "total": 1, "pages": 1, "list": [ { "id": 26, "categoryId": 100002, "name": "Apple iPhone 7 Plus (A1661) 128G 玫瑰金色 移动联通电信4G手机", "subtitle": "iPhone 7,现更以红色呈现。", "mainImage": "241997c4-9e62-4824-b7f0-7425c3c28917.jpeg", "price": 6999, "status": 1, "imageHost": "//img.shashamall.com/" } ], "firstPage": 1, "prePage": 0, "nextPage": 0, "lastPage": 1, "isFirstPage": true, "isLastPage": true, "hasPreviousPage": false, "hasNextPage": false, "navigatePages": 8, "navigatepageNums": [1] } } HTML模板的string文件如下:...

2019-01-08 · 1 min · 146 words · Linkzz