Skip to content

Commit

Permalink
将detail的按钮设为半透明,修改readme说明
Browse files Browse the repository at this point in the history
  • Loading branch information
hulinNeil committed Aug 29, 2018
1 parent 75885d1 commit a334189
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 2 deletions.
15 changes: 15 additions & 0 deletions examples/image-template/README.md
Original file line number Diff line number Diff line change
@@ -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等信息




1 change: 1 addition & 0 deletions examples/image-template/common/common.css
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,7 @@ button.register {
}

.detail-btn-view view {
opacity: 0.75;
height: 80px;
border-radius: 80px;
width: 80px;
Expand Down
2 changes: 1 addition & 1 deletion examples/image-template/pages.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"pages": [{
"pages": [{//pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
"path": "pages/new/new",
"style": {
"navigationBarTitleText": "最新",
Expand Down
2 changes: 1 addition & 1 deletion examples/image-template/pages/detail/detail.vue
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@
success: (res) => {
if (res.data.code !== 0) {
uni.showModal({
content: "请求失败,请重试!",
content: "请求失败,失败原因:" + res.data.msg,
showCancel: false
})
return;
Expand Down

0 comments on commit a334189

Please sign in to comment.