Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Accustomed_
hello uni-app x
提交
4afc0506
H
hello uni-app x
项目概览
Accustomed_
/
hello uni-app x
与 Fork 源项目一致
Fork自
DCloud / hello uni-app x
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
H
hello uni-app x
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
4afc0506
编写于
7月 22, 2023
作者:
taohebin@dcloud.io
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
去掉编译警告
上级
868e35d6
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
34 addition
and
38 deletion
+34
-38
pages/API/get-network-type/get-network-type.uvue
pages/API/get-network-type/get-network-type.uvue
+2
-2
pages/API/get-system-info/get-system-info.uvue
pages/API/get-system-info/get-system-info.uvue
+3
-2
pages/API/nodes-info/nodes-info.uvue
pages/API/nodes-info/nodes-info.uvue
+1
-4
pages/API/preview-image/preview-image.uvue
pages/API/preview-image/preview-image.uvue
+3
-3
pages/API/storage/storage.uvue
pages/API/storage/storage.uvue
+2
-2
pages/component/long-list/long-list.uvue
pages/component/long-list/long-list.uvue
+19
-21
pages/component/scroll-view/scroll-view-refresher.uvue
pages/component/scroll-view/scroll-view-refresher.uvue
+3
-3
pages/component/video/video.uvue
pages/component/video/video.uvue
+1
-1
未找到文件。
pages/API/get-network-type/get-network-type.uvue
浏览文件 @
4afc0506
...
...
@@ -4,11 +4,11 @@
<view class="uni-padding-wrap uni-common-mt">
<view style="background:#FFFFFF; padding:40rpx;">
<view class="uni-hello-text uni-center">网络状态</view>
<view v-if="hasNetworkType ==
=
false">
<view v-if="hasNetworkType == false">
<view class="uni-h2 uni-center uni-common-mt">未获取</view>
<view class="uni-hello-text uni-center uni-common-mt">请点击下面按钮获取网络状态</view>
</view>
<view v-if="hasNetworkType ==
=
true">
<view v-if="hasNetworkType == true">
<view class="uni-h2 uni-center uni-common-mt">{{networkType}}</view>
</view>
</view>
...
...
pages/API/get-system-info/get-system-info.uvue
浏览文件 @
4afc0506
...
...
@@ -154,10 +154,11 @@
this.windowHeight = res.windowHeight + "";
this.windowTop = res.windowTop + "";
this.windowBottom = res.windowBottom + "";
if (res.statusBarHeight == null){
const statusBarHeight = res.statusBarHeight;
if (statusBarHeight == null){
this.statusBarHeight = "";
}else{
this.statusBarHeight =
res.statusBarHeight!!
+ "";
this.statusBarHeight =
statusBarHeight
+ "";
}
this.pixelRatio = res.pixelRatio + "";
this.SDKVersion = res.SDKVersion;
...
...
pages/API/nodes-info/nodes-info.uvue
浏览文件 @
4afc0506
...
...
@@ -48,10 +48,7 @@
methods: {
getNodeInfo() {
uni.createSelectorQuery().select('.rect').boundingClientRect().exec((ret) => {
const rect = ret[0] as NodeInfo
if (rect != null) {
this.nodeInfo = rect
}
this.nodeInfo = ret[0] as NodeInfo
})
}
}
...
...
pages/API/preview-image/preview-image.uvue
浏览文件 @
4afc0506
...
...
@@ -4,7 +4,7 @@
<text class="text-desc">图片指示器样式</text>
<radio-group class="cell-ct" style="background-color: white;" @change="onIndicatorChanged">
<view class="indicator-it" v-for="(item,index) in indicator" :key="item.value">
<radio :checked="index ==
=
0" :value="item.value">{{item.name}}</radio>
<radio :checked="index == 0" :value="item.value">{{item.name}}</radio>
</view>
</radio-group>
</view>
...
...
@@ -66,14 +66,14 @@
success: (e) => {
this.imageList = this.imageList.concat(e.tempFilePaths)
},
fail(
e
) {
fail(
_
) {
}
})
},
onIndicatorChanged(e: RadioGroupChangeEvent) {
this.currentIndicator = e.detail.value
},
onCheckboxChange(
e
: CheckboxGroupChangeEvent) {
onCheckboxChange(
_
: CheckboxGroupChangeEvent) {
this.isLoop = !this.isLoop
}
}
...
...
pages/API/storage/storage.uvue
浏览文件 @
4afc0506
...
...
@@ -240,13 +240,13 @@
this.key = ''
this.data = ''
uni.clearStorage({
success:function(
res
){
success:function(
_
){
uni.showModal({
title: '清除数据成功',
showCancel: false
})
},
fail:function(
res
){
fail:function(
_
){
uni.showModal({
title: '清除数据失败',
showCancel: false
...
...
pages/component/long-list/long-list.uvue
浏览文件 @
4afc0506
...
...
@@ -52,29 +52,27 @@
filePath:'static/list-mock/mock.json',
success:function(result){
const content = result.data;
if (content != null){
const items = [] as Item[];
const jsonArr = JSON.parse(content);
jsonArr?.forEach((res)=>{
const json = res as UTSJSONObject;
const title = json["title"] as string;
const subTitle = json["subTitle"] as string;
const img = json["img"] as string;
const detail = json["detail"] as string;
const item:Item = {
title,
subTitle,
img,
detail
}
items.push(item);
})
let temp = [] as Item[];
for(let i = 0; i < 100; i++){
temp = temp.concat(items);
const items = [] as Item[];
const jsonArr = JSON.parse(content);
jsonArr?.forEach((res)=>{
const json = res as UTSJSONObject;
const title = json["title"] as string;
const subTitle = json["subTitle"] as string;
const img = json["img"] as string;
const detail = json["detail"] as string;
const item:Item = {
title,
subTitle,
img,
detail
}
listData = temp;
items.push(item);
})
let temp = [] as Item[];
for(let i = 0; i < 100; i++){
temp = temp.concat(items);
}
listData = temp;
setTimeout(()=>{
this.refresherTriggered = false
},0);
...
...
pages/component/scroll-view/scroll-view-refresher.uvue
浏览文件 @
4afc0506
...
...
@@ -32,7 +32,7 @@
},
methods: {
onRefresherrefresh(
e
: RefresherEvent) {
onRefresherrefresh(
_
: RefresherEvent) {
console.log("onRefresherrefresh--------------下拉刷新触发")
this.refresherTriggered = true
setTimeout(function(){
...
...
@@ -40,10 +40,10 @@
}, 1500)
},
onRefresherabort(
e
: RefresherEvent) {
onRefresherabort(
_
: RefresherEvent) {
console.log("onRefresherabort------下拉刷新被中止")
},
onRefresherrestore(
e
: RefresherEvent) {
onRefresherrestore(
_
: RefresherEvent) {
console.log("onRefresherrestore------下拉刷新被复位")
},
onRefresherpulling(e: RefresherEvent) {
...
...
pages/component/video/video.uvue
浏览文件 @
4afc0506
...
...
@@ -381,7 +381,7 @@
onEnded: function (res : any) {
console.log(JSON.stringify(res));
},
onTimeUpdate: function (
res
: any) {
onTimeUpdate: function (
_
: any) {
// console.log(JSON.stringify(res));
},
onFullScreenChange: function (res : any) {
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录