From a3341893552b93af911df324972b968c4103aa64 Mon Sep 17 00:00:00 2001 From: hulinNeil <1289739946@qq.com> Date: Wed, 29 Aug 2018 18:43:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=86detail=E7=9A=84=E6=8C=89=E9=92=AE?= =?UTF-8?q?=E8=AE=BE=E4=B8=BA=E5=8D=8A=E9=80=8F=E6=98=8E=EF=BC=8C=E4=BF=AE?= =?UTF-8?q?=E6=94=B9readme=E8=AF=B4=E6=98=8E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/image-template/README.md | 15 +++++++++++++++ examples/image-template/common/common.css | 1 + examples/image-template/pages.json | 2 +- examples/image-template/pages/detail/detail.vue | 2 +- 4 files changed, 18 insertions(+), 2 deletions(-) diff --git a/examples/image-template/README.md b/examples/image-template/README.md index e632f6c12..aa0cd9c25 100644 --- a/examples/image-template/README.md +++ b/examples/image-template/README.md @@ -1,4 +1,19 @@ # UNI-APP 图片模板 +![](https://img-cdn-qiniu.dcloud.net.cn/uniapp/template/new.jpg?imageView2/0/w/375) +![](https://img-cdn-qiniu.dcloud.net.cn/uniapp/template/hot.jpg?imageView2/0/w/375) + ## 运行方式 + 将项目拖入[HBuilderX](http://www.dcloud.io/hbuilderx.html),直接运行即可 + +## 使用须知 + +1. 页面样式主要在common/common.css +2. 数据在页面的methods->getData里获取,替换里面的链接及参数即可 +3. 接口返回的字段根据已固定,若替换接口也要替换相应的字段名,页面才能正常渲染 +3. 页面的分享需配置自己的appid等信息 + + + + diff --git a/examples/image-template/common/common.css b/examples/image-template/common/common.css index 4e6d2fdb4..fde05371a 100644 --- a/examples/image-template/common/common.css +++ b/examples/image-template/common/common.css @@ -373,6 +373,7 @@ button.register { } .detail-btn-view view { + opacity: 0.75; height: 80px; border-radius: 80px; width: 80px; diff --git a/examples/image-template/pages.json b/examples/image-template/pages.json index ca7be5e9e..9af715d89 100644 --- a/examples/image-template/pages.json +++ b/examples/image-template/pages.json @@ -1,5 +1,5 @@ { - "pages": [{ + "pages": [{//pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages "path": "pages/new/new", "style": { "navigationBarTitleText": "最新", diff --git a/examples/image-template/pages/detail/detail.vue b/examples/image-template/pages/detail/detail.vue index d53c5475f..90cb673d7 100644 --- a/examples/image-template/pages/detail/detail.vue +++ b/examples/image-template/pages/detail/detail.vue @@ -217,7 +217,7 @@ success: (res) => { if (res.data.code !== 0) { uni.showModal({ - content: "请求失败,请重试!", + content: "请求失败,失败原因:" + res.data.msg, showCancel: false }) return; -- GitLab