Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
恪愚
yunUI
提交
19c852e7
Y
yunUI
项目概览
恪愚
/
yunUI
2022-11-02 05:11:01同步失败
通知
22
Star
9
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Y
yunUI
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
19c852e7
编写于
10月 13, 2020
作者:
恪愚
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
优化calendar组件返回数据,优化alphabet组件返回数据
上级
f1af29a2
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
11 addition
and
10 deletion
+11
-10
components/alphabet/alphabet.js
components/alphabet/alphabet.js
+5
-0
components/alphabet/alphabet.wxml
components/alphabet/alphabet.wxml
+1
-1
pages/alphabet/alphabet.js
pages/alphabet/alphabet.js
+4
-8
pages/alphabet/alphabet.wxml
pages/alphabet/alphabet.wxml
+1
-1
未找到文件。
components/alphabet/alphabet.js
浏览文件 @
19c852e7
...
...
@@ -56,5 +56,10 @@ Component({
}
}
},
selector
(
e
){
this
.
triggerEvent
(
'
selector
'
,{
city_data
:
e
.
currentTarget
.
dataset
.
city
})
}
}
})
components/alphabet/alphabet.wxml
浏览文件 @
19c852e7
...
...
@@ -6,7 +6,7 @@
<view class="section-item-header">
{{item.alphabet}}
</view>
<view wx:for="{{item.datas}}" wx:key="unique" wx:for-item="cell" wx:for-index="cellIndex" class="section-item-cells">
<view wx:for="{{item.datas}}" wx:key="unique" wx:for-item="cell" wx:for-index="cellIndex" class="section-item-cells"
data-city="{{cell}}" bindtap="selector"
>
<view class="section-item-cell {{cellIndex!=(item.datas.length-1)?'border-bottom':''}}">
<text>{{cell}}</text>
</view>
...
...
pages/alphabet/alphabet.js
浏览文件 @
19c852e7
...
...
@@ -41,14 +41,10 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad
:
function
(
options
)
{
// try{
// var res=wx.getSystemInfoSync()
// this.apHeight=16
// this.offsetTop=80
// this.setData({
// windowHeight:res.windowHeight+'px'
// })
// }catch(e){}
},
selector
(
e
){
console
.
log
(
e
.
detail
.
city_data
)
},
...
...
pages/alphabet/alphabet.wxml
浏览文件 @
19c852e7
<y-alphabet list="{{list}}"></y-alphabet>
\ No newline at end of file
<y-alphabet list="{{list}}" bind:selector="selector"></y-alphabet>
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录