提交 ef39f808 编写于 作者: 杜庆泉's avatar 杜庆泉

統一按鈕樣式,移除quitapp

上级 223f14e3
...@@ -72,6 +72,12 @@ ...@@ -72,6 +72,12 @@
"navigationBarTitleText": "switch" "navigationBarTitleText": "switch"
} }
}, },
{
"path": "pages/component/swiper/swiper",
"style": {
"navigationBarTitleText": "swiper"
}
},
{ {
"path": "pages/component/image/image", "path": "pages/component/image/image",
"style": { "style": {
...@@ -138,12 +144,6 @@ ...@@ -138,12 +144,6 @@
"navigationBarTitleText": "获取定位" "navigationBarTitleText": "获取定位"
} }
}, },
{
"path": "pages/API/quitApp/quitApp",
"style": {
"navigationBarTitleText": "退出应用"
}
},
{ {
"path": "pages/tabBar/CSS/CSS", "path": "pages/tabBar/CSS/CSS",
"style": { "style": {
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
</view> </view>
<view class="uni-padding-wrap"> <view class="uni-padding-wrap">
<view class="uni-btn-v"> <view class="uni-btn-v">
<button class="target" type="default" @tap="actionSheetTap">弹出action sheet</button> <button class="uni-btn-v" type="default" @tap="actionSheetTap">弹出action sheet</button>
</view> </view>
</view> </view>
</view> </view>
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
</view> </view>
<view class="uni-padding-wrap uni-common-mt"> <view class="uni-padding-wrap uni-common-mt">
<view class="uni-btn-v"> <view class="uni-btn-v">
<button class="uni-btn" type="default" @tap="modalTap">modal测试</button> <button class="uni-btn-v" type="default" @tap="modalTap">modal测试</button>
</view> </view>
<text>{{exeRet}}</text> <text>{{exeRet}}</text>
</view> </view>
......
<template>
<view>
<page-head :title="title"></page-head>
<view class="uni-padding-wrap uni-common-mt">
<view class="uni-btn-v">
<button class="uni-btn" type="default" @tap="quitTap">退出当前应用</button>
</view>
</view>
</view>
</template>
<script lang="ts">
export default {
data() {
return {
title: 'quitApp'
}
},
methods: {
quitTap: function () {
UTSAndroid.quitApp()
}
}
}
</script>
\ No newline at end of file
...@@ -13,9 +13,9 @@ ...@@ -13,9 +13,9 @@
</view> </view>
<view class="uni-padding-wrap"> <view class="uni-padding-wrap">
<view class="uni-btn-v"> <view class="uni-btn-v">
<button class="uni-btn" type="primary" @click="showLoading">显示 loading 提示框</button> <button class="uni-btn-v" type="primary" @click="showLoading">显示 loading 提示框</button>
<!-- #ifndef MP-ALIPAY --> <!-- #ifndef MP-ALIPAY -->
<button class="uni-btn" @click="hideLoading">隐藏 loading 提示框</button> <button class="uni-btn-v" @click="hideLoading">隐藏 loading 提示框</button>
<!-- #endif --> <!-- #endif -->
</view> </view>
</view> </view>
......
...@@ -3,17 +3,17 @@ ...@@ -3,17 +3,17 @@
<page-head :title="title"></page-head> <page-head :title="title"></page-head>
<view class="uni-padding-wrap"> <view class="uni-padding-wrap">
<view class="uni-btn-v"> <view class="uni-btn-v">
<button class="uni-btn" type="default" @tap="toast1Tap">点击弹出默认toast</button> <button class="uni-btn-v" type="default" @tap="toast1Tap">点击弹出默认toast</button>
<button class="uni-btn" type="default" @tap="toastTapIconError">点击弹出设置icon的toast</button> <button class="uni-btn-v" type="default" @tap="toastTapIconError">点击弹出设置icon的toast</button>
<button class="uni-btn" type="default" @tap="toast2Tap">点击弹出设置duration的toast</button> <button class="uni-btn-v" type="default" @tap="toast2Tap">点击弹出设置duration的toast</button>
<button class="uni-btn" type="default" @tap="toast3Tap">点击弹出显示loading的toast</button> <button class="uni-btn-v" type="default" @tap="toast3Tap">点击弹出显示loading的toast</button>
<!-- #ifndef MP-ALIPAY --> <!-- #ifndef MP-ALIPAY -->
<button class="uni-btn" type="default" @tap="toast4Tap">点击弹出显示自定义图片的toast</button> <button class="uni-btn-v" type="default" @tap="toast4Tap">点击弹出显示自定义图片的toast</button>
<!-- #endif --> <!-- #endif -->
<!-- #ifdef APP-PLUS --> <!-- #ifdef APP-PLUS -->
<button class="uni-btn" type="default" @tap="toast5Tap">点击显示无图标的居底toast</button> <button class="uni-btn-v" type="default" @tap="toast5Tap">点击显示无图标的居底toast</button>
<!-- #endif --> <!-- #endif -->
<button class="uni-btn" type="default" @tap="hideToast">点击隐藏toast</button> <button class="uni-btn-v" type="default" @tap="hideToast">点击隐藏toast</button>
</view> </view>
<text>{{exeRet}}</text> <text>{{exeRet}}</text>
</view> </view>
......
<template>
<view>
<page-head title="swiper,可滑动视图"></page-head>
<view class="uni-margin-wrap">
<swiper class="swiper" circular :indicator-dots="indicatorDots" :autoplay="autoplay" :interval="interval" :duration="duration">
<swiper-item>
<view class="swiper-item uni-bg-red">A</view>
</swiper-item>
<swiper-item>
<view class="swiper-item uni-bg-green">B</view>
</swiper-item>
<swiper-item>
<view class="swiper-item uni-bg-blue">C</view>
</swiper-item>
</swiper>
</view>
</view>
</template>
<script>
export default {
data() {
return {
background: ['color1', 'color2', 'color3'],
indicatorDots: true,
autoplay: true,
interval: 2000,
duration: 500
}
},
methods: {
}
}
</script>
<style>
.uni-margin-wrap {
width:690rpx;
width: 100%;;
}
.swiper {
height: 300rpx;
}
.swiper-item {
height: 300rpx;
line-height: 300rpx;
text-align: center;
}
</style>
...@@ -218,14 +218,6 @@ ...@@ -218,14 +218,6 @@
url: "/platforms/app-plus/orientation/orientation", url: "/platforms/app-plus/orientation/orientation",
}, },
//#endif //#endif
//#ifdef APP-ANDROID
{
name: "退出应用",
url: "quitApp",
enable: true
}
//#endif
] as Page[], ] as Page[],
}, },
{ {
......
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
}, },
{ {
name: 'swiper', name: 'swiper',
enable: false enable: true
}, },
// #ifndef MP-TOUTIAO || MP-LARK // #ifndef MP-TOUTIAO || MP-LARK
{ {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册