Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
ijianbo
winxin-app-watch-life.net
提交
a81b136c
W
winxin-app-watch-life.net
项目概览
ijianbo
/
winxin-app-watch-life.net
通知
60
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
W
winxin-app-watch-life.net
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
a81b136c
编写于
1月 10, 2018
作者:
ijianbo
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
更换订阅的图标
上级
86bfffc1
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
18 addition
and
10 deletion
+18
-10
images/subscription-on.png
images/subscription-on.png
+0
-0
images/subscription.png
images/subscription.png
+0
-0
pages/topic/topic.js
pages/topic/topic.js
+12
-6
pages/topic/topic.wxml
pages/topic/topic.wxml
+1
-1
pages/topic/topic.wxss
pages/topic/topic.wxss
+5
-3
未找到文件。
images/subscription-on.png
查看替换文件 @
86bfffc1
浏览文件 @
a81b136c
16.5 KB
|
W:
|
H:
17.8 KB
|
W:
|
H:
2-up
Swipe
Onion skin
images/subscription.png
查看替换文件 @
86bfffc1
浏览文件 @
a81b136c
1.9 KB
|
W:
|
H:
18.6 KB
|
W:
|
H:
2-up
Swipe
Onion skin
pages/topic/topic.js
浏览文件 @
a81b136c
...
@@ -51,8 +51,7 @@ Page({
...
@@ -51,8 +51,7 @@ Page({
categoriesList
:
self
.
data
.
categoriesList
.
concat
(
response
.
data
.
map
(
function
(
item
)
{
categoriesList
:
self
.
data
.
categoriesList
.
concat
(
response
.
data
.
map
(
function
(
item
)
{
if
(
typeof
(
item
.
category_thumbnail_image
)
==
"
undefined
"
||
item
.
category_thumbnail_image
==
""
)
{
if
(
typeof
(
item
.
category_thumbnail_image
)
==
"
undefined
"
||
item
.
category_thumbnail_image
==
""
)
{
item
.
category_thumbnail_image
=
"
../../images/website.png
"
;
item
.
category_thumbnail_image
=
"
../../images/website.png
"
;
}
}
item
.
subimg
=
"
subscription.png
"
;
item
.
subimg
=
"
subscription.png
"
;
return
item
;
return
item
;
...
@@ -70,7 +69,11 @@ Page({
...
@@ -70,7 +69,11 @@ Page({
}
}
else
else
{
{
self
.
getSubscription
();
setTimeout
(
function
()
{
self
.
getSubscription
();
},
500
);
}
}
})
})
...
@@ -78,7 +81,6 @@ Page({
...
@@ -78,7 +81,6 @@ Page({
console
.
log
(
response
);
console
.
log
(
response
);
}).
finally
(
function
()
{
}).
finally
(
function
()
{
})
})
},
},
...
@@ -124,7 +126,11 @@ Page({
...
@@ -124,7 +126,11 @@ Page({
console
.
log
(
"
openid 获取成功
"
);
console
.
log
(
"
openid 获取成功
"
);
app
.
globalData
.
openid
=
response
.
data
.
openid
;
app
.
globalData
.
openid
=
response
.
data
.
openid
;
app
.
globalData
.
isGetOpenid
=
true
;
app
.
globalData
.
isGetOpenid
=
true
;
self
.
getSubscription
();
setTimeout
(
function
()
{
self
.
getSubscription
();
},
500
);
}
}
else
{
else
{
...
@@ -185,7 +191,7 @@ Page({
...
@@ -185,7 +191,7 @@ Page({
}).
finally
(
function
()
{
}).
finally
(
function
()
{
setTimeout
(
function
()
{
setTimeout
(
function
()
{
wx
.
hideLoading
();
wx
.
hideLoading
();
},
9
00
)
},
5
00
)
wx
.
hideNavigationBarLoading
();
wx
.
hideNavigationBarLoading
();
})
})
...
...
pages/topic/topic.wxml
浏览文件 @
a81b136c
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
<image src="../../images/{{item.subimg}}" data-subflag="{{item.subflag}}" data-id="{{item.id}}" catchtap="postsub" class="img-menu"></image>
<image src="../../images/{{item.subimg}}" data-subflag="{{item.subflag}}" data-id="{{item.id}}" catchtap="postsub" class="img-menu"></image>
</view>
</view>
</view>
</view>
<view class="content-brief" data-item="{{item.name}}" data-id="{{item.id}}"
bindtap="redictIndex"
>
<view class="content-brief" data-item="{{item.name}}" data-id="{{item.id}}">
<text>{{item.description}}</text>
<text>{{item.description}}</text>
</view>
</view>
...
...
pages/topic/topic.wxss
浏览文件 @
a81b136c
...
@@ -65,18 +65,20 @@
...
@@ -65,18 +65,20 @@
}
}
.topic-name {
.topic-name {
float: left;
float: left;
width:
70
%;
width:
55
%;
}
}
.topic-img {
.topic-img {
float: right;
float: right;
text-align: right;
text-align: right;
width: 30%;
width: 40%;
margin-right: 10rpx;
}
}
.img-menu {
.img-menu {
width:
4
0rpx;
width:
8
0rpx;
height: 40rpx;
height: 40rpx;
display: inline-block;
display: inline-block;
text-align: center;
text-align: center;
border-radius: 12rpx;
}
}
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录