提交 2a0d2f60 编写于 作者: H hulinNeil

更新部分示例

上级 486452f2
<script>
export default {
onLaunch: function () {
console.log('App Launch');
//#ifdef APP-PLUS
/* 5+环境锁定屏幕方向 */
plus.screen.unlockOrientation(); //解除锁定
plus.screen.lockOrientation('portrait-primary'); //锁定
/* 5+环境升级提示 */
var server = "http://uni-app.dcloud.io/update"; //检查更新地址
var req = { //升级检测数据
"appid": plus.runtime.appid,
"version": plus.runtime.version,
"imei": plus.device.imei
};
uni.request({
url: server,
data: req,
success: (res) => {
console.log("success",res);
if (res.statusCode == 200 && res.data.isUpdate) {
let openUrl = plus.os.name === 'iOS' ? res.data.iOS : res.data.Android;
uni.showModal({ //提醒用户更新
title: '更新提示',
content: '是否选择更新',
success: (res) => {
if (res.confirm) {
plus.runtime.openURL(openUrl);
}
}
})
}
}
})
//#endif
},
onShow: function () {
......@@ -40,7 +66,6 @@
form {
width: 100%;
}
/* page */
.container {
......@@ -170,16 +195,18 @@
padding-left: 0;
padding-right: 0;
}
/* example */
.index-hd{
padding: 90rpx;
.index-hd {
padding: 90rpx;
text-align: center;
}
.index-logo{
.index-logo {
width: 140rpx;
height: 140rpx;
}
.btn-area {
margin-top: 60rpx;
box-sizing: border-box;
......
......@@ -350,14 +350,24 @@
}
.uni-list-cell-divider {
background: #fafafa;
position: relative;
display: flex;
color: #999;
background-color: #fafafa;
padding: 15rpx 20rpx;
background-color: #f7f7f7;
padding: 10rpx 20rpx;
}
.uni-list-cell-divider:before {
position: absolute;
right: 0;
top: 0;
left: 0rpx;
height: 1px;
content: '';
-webkit-transform: scaleY(.5);
transform: scaleY(.5);
background-color: #c8c7cc;
}
.uni-list-cell-divider:after {
position: absolute;
right: 0;
......@@ -372,6 +382,7 @@
.uni-list-cell-navigate {
padding: 22rpx 30rpx;
line-height: 48rpx;
position: relative;
display: flex;
box-sizing: border-box;
......
......@@ -34,7 +34,7 @@
downloadImage: function () {
var self = this
uni.downloadFile({
url: "https://img-cdn-qiniu.dcloud.net.cn/newpage/images/uni@2x.png",
url: "https://img-cdn-qiniu.dcloud.net.cn/uniapp/images/uni@2x.png",
success: function (res) {
console.log('downloadFile success, res is', res)
self.imageSrc = res.tempFilePath
......
......@@ -11,7 +11,7 @@
<view class="page-section page-section-gap">
<view class="page-section-title">Internet Image</view>
<view class="page-section-ctn">
<image class="image" src="http://img-cdn-qiniu.dcloud.net.cn/newpage/images/uni@2x.png" />
<image class="image" src="https://img-cdn-qiniu.dcloud.net.cn/uniapp/images/uni@2x.png" />
</view>
</view>
</view>
......
......@@ -4,35 +4,35 @@
<view class="uni-card">
<view class="uni-list">
<view class="uni-list-cell-divider">
侧带箭头
侧带箭头
</view>
<view class="uni-list-cell" hover-class="uni-list-cell-hover">
<view class="uni-list-cell-navigate uni-navigate-right">
Item1
</view>
</view>
<view class="uni-list-cell" hover-class="uni-list-cell-hover">
<view class="uni-list-cell uni-list-cell-last" hover-class="uni-list-cell-hover">
<view class="uni-list-cell-navigate uni-navigate-right">
Item2
</view>
</view>
<view class="uni-list-cell-divider">
侧带数字角标
侧带数字角标
</view>
<view class="uni-list-cell" hover-class="uni-list-cell-hover">
<view class="uni-list-cell-navigate">
Item2
<text class="uni-badge uni-badge-success">123</text>
<text class="uni-badge uni-badge-danger">23</text>
</view>
</view>
<view class="uni-list-cell" hover-class="uni-list-cell-hover">
<view class="uni-list-cell uni-list-cell-last" hover-class="uni-list-cell-hover">
<view class="uni-list-cell-navigate">
Item1
<text class="uni-badge uni-badge-success">123</text>
</view>
</view>
<view class="uni-list-cell-divider">
侧带数字角标+箭头
侧带数字角标+箭头
</view>
<view class="uni-list-cell" hover-class="uni-list-cell-hover">
<view class="uni-list-cell-navigate uni-navigate-right">
......
examples/hello-uniapp/static/uni@2x.png

989 字节 | W: | H:

examples/hello-uniapp/static/uni@2x.png

4.1 KB | W: | H:

examples/hello-uniapp/static/uni@2x.png
examples/hello-uniapp/static/uni@2x.png
examples/hello-uniapp/static/uni@2x.png
examples/hello-uniapp/static/uni@2x.png
  • 2-up
  • Swipe
  • Onion skin
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册