init project

This commit is contained in:
limqhz
2020-06-21 16:27:58 +08:00
commit e8fe10b5fb
178 changed files with 9964 additions and 0 deletions

View File

@@ -0,0 +1,72 @@
// component/confirmDialog/confirmDialog.js
Component({
/**
* 组件的属性列表
*/
properties: {
title: {
type: String,
value: ''
},
message: {
type: String,
value: ''
},
confirmBtnTitle: {
type: String,
value: '确认'
},
cancelBtnTitle: {
type: String,
value: '取消'
},
showCancel: {
type: Boolean,
value: true
},
isAuth: {
type: Boolean,
value: false
},
isUserInfo: {
type: Boolean,
value: false
}
},
/**
* 组件的初始数据
*/
data: {
},
/**
* 组件的方法列表
*/
methods: {
unMove() {
return;
},
// 点击取消
cancel() {
this.triggerEvent('cancelselect', {}, {})
},
// 点击确认
confirm() {
this.triggerEvent('confirmselect', {}, {})
},
// 点击编辑授权
openSetting(e) {
this.triggerEvent('opensetting', e.detail, {});
},
// 点击获取个人信息
openUserInfo(e) {
this.triggerEvent('getuserinfo', e.detail, {});
}
}
})

View File

@@ -0,0 +1,4 @@
{
"component": true,
"usingComponents": {}
}

View File

@@ -0,0 +1,14 @@
<!--component/confirmDialog/confirmDialog.wxml-->
<view class='box' catchtouchmove='unMove'>
<view class='body'>
<view class='title'>{{title}}</view>
<view class='message'>{{message}}</view>
<view class='btn-box'>
<button wx:if="{{showCancel}}" bindtap='cancel'>{{cancelBtnTitle}}</button>
<view class='line' wx:if="{{showCancel}}"></view>
<button open-type='openSetting' wx:if="{{isAuth}}" bindopensetting="openSetting">{{confirmBtnTitle}}</button>
<button open-type='getUserInfo' wx:elif="{{isUserInfo}}" bindgetuserinfo="openUserInfo">{{confirmBtnTitle}}</button>
<button wx:else bindtap='confirm'>{{confirmBtnTitle}}</button>
</view>
</view>
</view>

View File

@@ -0,0 +1,67 @@
/* component/confirmDialog/confirmDialog.wxss */
.box {
position: fixed;
top: 0;
left: 0;
bottom: 0;
right: 0;
display: flex;
justify-content: center;
align-items: center;
background: rgba(0, 0, 0, 0.6);
z-index: 1001;
}
.box .body {
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: center;
width: 72%;
min-height: 300rpx;
border-radius: 20rpx;
text-align: center;
background: #252330;
}
.box .body .title {
margin: 40rpx 0;
font-size: 32rpx;
line-height: 32rpx;
font-weight: bold;
color: #fff;
}
.box .body .message {
flex: 1;
margin: 0 20rpx 60rpx 20rpx;
font-size: 26rpx;
color: rgba(255, 255, 255, 0.6);
}
.box .body .btn-box {
display: flex;
width: 100%;
border-top: 2rpx solid #3d3b45;
}
.box .body .btn-box .line {
width: 2rpx;
height: 90rpx;
background: #3d3b45;
}
.box .body .btn-box>button {
flex: 1;
height: 90rpx;
background: none;
font-size: 32rpx;
color: #ffda2e;
line-height: 90rpx;
text-align: center;
}
.box .body .btn-box>button::after {
border: none;
}