diff --git a/androidPrivacy.json b/androidPrivacy.json
new file mode 100644
index 0000000000000000000000000000000000000000..0d726ca9ef1cb1a126e746a6c4d2aedfcbce12ca
--- /dev/null
+++ b/androidPrivacy.json
@@ -0,0 +1,3 @@
+{
+ "prompt" : "template"
+}
diff --git a/changelog.md b/changelog.md
index e87aa746bf63f83e270bdeac65ff5b99a43bac0e..69f778c49a126dc16a76acda2eb23179c33de049 100644
--- a/changelog.md
+++ b/changelog.md
@@ -1,3 +1,6 @@
+## 1.1.23(2021-11-20)
+- 使用`uni.getUniverifyManager`优化一键登陆中,点击第三方登陆的逻辑:未勾选隐私政策时,toast提醒并阻止了一键登陆界面的close
+- 新增支持看激励视频广告签到
## 1.1.22(2021-11-10)
删除`common/openApp.js`中可选链操作符,解决vue3版本在hbuilderX内置浏览器不兼容的问题
## 1.1.21(2021-11-10)
diff --git a/common/appInit.js b/common/appInit.js
index 9af4be22e51b70b1b9c9a164f9c60c7c1f52f850..4dd648bf540c0d08281acaf0201e4d1b01ce8dab 100644
--- a/common/appInit.js
+++ b/common/appInit.js
@@ -179,7 +179,7 @@ export default async function() {
oaid,
idfa
}
- console.log("重新登录/注册,获取设备id", deviceInfo);
+ //console.log("重新登录/注册,获取设备id", deviceInfo);
option.data.deviceInfo = deviceInfo
// #ifndef H5
diff --git a/components/cloud-image/cloud-image.vue b/components/cloud-image/cloud-image.vue
index b211f1a2ed02122472da80664c1d77e4c4a72214..2279eb81f6d3880be8c68e5942e1750d9b6ed312 100644
--- a/components/cloud-image/cloud-image.vue
+++ b/components/cloud-image/cloud-image.vue
@@ -39,7 +39,7 @@
handler(src) {
// console.log(src);
// console.log(src.substring(0, 8));
- if (src.substring(0, 8) == "cloud://") {
+ if (src&&src.substring(0, 8) == "cloud://") {
uniCloud.getTempFileURL({
fileList: [src]
}).then(res=>{
diff --git a/components/uni-agreements/uni-agreements.vue b/components/uni-agreements/uni-agreements.vue
index 2c0af79c1e4b5593604e670f1c244a461c09c91d..d94a5b76d88a0422f894cd84871e0b4c2ad60752 100644
--- a/components/uni-agreements/uni-agreements.vue
+++ b/components/uni-agreements/uni-agreements.vue
@@ -1,7 +1,7 @@
-
+
{{$t('common.agree')}}
@@ -38,6 +38,8 @@
},
created() {
uni.$on('setAgreementsAgree',state=>{
+ console.log('setAgreementsAgree',state);
+ this.isAgree = state
this.$emit('setAgree',state)
})
},
diff --git a/components/uni-bindMobileByMpWeixin/uni-bindMobileByMpWeixin.vue b/components/uni-bindMobileByMpWeixin/uni-bindMobileByMpWeixin.vue
index bb0c173f4de9434a78bf5eacb53947efcfd8f28c..bc07a6d6bd579e86db54f5a97f20ad2a1825b35a 100644
--- a/components/uni-bindMobileByMpWeixin/uni-bindMobileByMpWeixin.vue
+++ b/components/uni-bindMobileByMpWeixin/uni-bindMobileByMpWeixin.vue
@@ -82,7 +82,7 @@
},
success: (e) => {
uni.showToast({
- title: e.result.msg,
+ title: e.result.msg||'绑定成功',
icon: 'none'
});
if(e.result.code === 0){
diff --git a/components/uni-quick-login/i18n/en.json b/components/uni-quick-login/i18n/en.json
new file mode 100644
index 0000000000000000000000000000000000000000..f4f3dfa984c54d88eb82ffc504eaf892a37faa73
--- /dev/null
+++ b/components/uni-quick-login/i18n/en.json
@@ -0,0 +1,15 @@
+{
+ "accountLogin": "Account",
+ "SMSLogin": "SMS",
+ "wechatLogin": "wechat",
+ "appleLogin": "Apple",
+ "oneClickLogin": "One click login",
+ "QQLogin": "QQ",
+ "xiaomiLogin": "Xiaomi",
+ "getProviderFail": "Failed to get service provider",
+ "loginErr": "Login service initialization error",
+ "chooseOtherLogin": "Click the third-party login",
+ "weibo":"weibo",
+ "noAgree": "You have not agreed to the privacy policy agreement",
+ "gotIt": "got it"
+}
diff --git a/components/uni-quick-login/i18n/index.js b/components/uni-quick-login/i18n/index.js
new file mode 100644
index 0000000000000000000000000000000000000000..5d5703a2c6113fd63367695a6a4c1d4c9cc005be
--- /dev/null
+++ b/components/uni-quick-login/i18n/index.js
@@ -0,0 +1,6 @@
+import en from './en.json'
+import zhHans from './zh-Hans.json'
+export default {
+ en,
+ 'zh-Hans': zhHans
+}
diff --git a/components/uni-quick-login/i18n/zh-Hans.json b/components/uni-quick-login/i18n/zh-Hans.json
new file mode 100644
index 0000000000000000000000000000000000000000..91dacb419c2493510e0a83c6ed6d6aa797daefef
--- /dev/null
+++ b/components/uni-quick-login/i18n/zh-Hans.json
@@ -0,0 +1,15 @@
+{
+ "accountLogin": "账号登录",
+ "SMSLogin": "短信验证码",
+ "wechatLogin": "微信登录",
+ "appleLogin": "苹果登录",
+ "oneClickLogin": "一键登录",
+ "QQLogin": "QQ登录",
+ "xiaomiLogin": "小米登录",
+ "getProviderFail": "获取服务供应商失败",
+ "loginErr": "登录服务初始化错误",
+ "chooseOtherLogin": "点击了第三方登录",
+ "weibo": "微博",
+ "noAgree": "你未同意隐私政策协议",
+ "gotIt": "知道了"
+}
diff --git a/components/uni-quick-login/uni-quick-login.vue b/components/uni-quick-login/uni-quick-login.vue
index bfc75b2b0ca91b90f39a196d0b064b7daa04a398..a169cff782ce52467f06e51686298951c3aa2e05 100644
--- a/components/uni-quick-login/uni-quick-login.vue
+++ b/components/uni-quick-login/uni-quick-login.vue
@@ -1,396 +1,434 @@
-
-
-
-
-
- {{item.text}}
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
+ }
+ uni.login({
+ "provider": type,
+ "onlyAuthorize": true, //请勿直接使用前端获取的unionid或openid直接用于登录,前端的数据都是不可靠的
+ "univerifyStyle": this.univerifyStyle,
+ complete: (e) => {
+ console.log(e);
+ uni.hideLoading()
+ },
+ success: async e => {
+ console.log(e);
+ if (type == 'apple') {
+ let res = await this.getUserInfo({
+ provider: "apple"
+ })
+ Object.assign(e.authResult, res.userInfo)
+ }
+ this.login(type == 'weixin' ? e.code : e.authResult, type)
+ },
+ fail: async (err) => {
+ console.log(err);
+ // 以下代码为兼容旧版(HBuilderX3.2.13之前)HBuilderX3.2.13以上版本可直接删除
+ if (type == 'univerify'&& !uni.getUniverifyManager) {
+ if (err.metadata && err.metadata.error_data) {
+ uni.showToast({
+ title: t('oneClickLogin') + ":" + err.metadata.error_data,
+ icon: 'none'
+ });
+ }
+ if (err.errMsg) {
+ uni.showToast({
+ title: t('oneClickLogin') + ":" + err.errMsg,
+ icon: 'none'
+ });
+ }
+ switch (err.errCode) {
+ case 30002:
+ console.log('在一键登录界面,点击其他登录方式');
+ break;
+ case 30003:
+ console.log('关闭了登录');
+ if (navigateBack) {
+ uni.navigateBack()
+ }
+ break;
+ case 30006:
+ uni.showModal({
+ title: t('loginErr'),
+ content: err.metadata.error_data,
+ showCancel: false,
+ confirmText: t('gotIt'),
+ });
+ break;
+ case "30008":
+ console.log('点击了第三方登录,provider:', err.provider);
+ //同步一键登录弹出层隐私协议框是否打勾
+ let agree = (await uni.getCheckBoxState())[1].state
+ console.log('agree', agree);
+ uni.$emit('setAgreementsAgree', agree)
+ let {
+ path
+ } = this.univerifyStyle.buttons.list[res.index]
+ console.log('path', path);
+ if (path) {
+ this.to(path)
+ } else {
+ setTimeout(() => {
+ console.log('agree', this.agree);
+ this.login_before(err.provider)
+ }, 500)
+ }
+ break;
+ default:
+ console.log(err);
+ break;
+ }
+ }
+ // 以上代码为兼容旧版(HBuilderX3.2.13之前)HBuilderX3.2.13以上版本可直接删除
+ }
+ })
+ },
+ login(params, type) { //联网验证登录
+ console.log({
+ params,
+ type
+ });
+ let action = 'loginBy' + type.trim().toLowerCase().replace(type[0], type[0].toUpperCase())
+ uniCloud.callFunction({
+ name: 'uni-id-cf',
+ data: {
+ action,
+ params
+ },
+ success: async ({
+ result
+ }) => {
+ console.log("login-result", result);
+ if (result.code === 0) {
+ delete result.userInfo.token
+ // #ifdef MP-WEIXIN
+ if (type == 'weixin' && !result.userInfo.nickname) {
+ return this.$refs.userProfile.open(result.uid)
+ }
+ // #endif
+
+ this.setUserInfo(result.userInfo)
+ loginSuccess(result)
+ } else {
+ uni.showModal({
+ content: result.msg,
+ showCancel: false
+ });
+ }
+ },
+ complete: (e) => {
+ console.log(e);
+ if (type == 'univerify') {
+ uni.closeAuthView()
+ }
+ uni.hideLoading()
+ }
+ })
+ },
+ doUserProfileNext() {
+ loginSuccess()
+ },
+ async getUserInfo(e) {
+ return new Promise((resolve, reject) => {
+ uni.getUserInfo({
+ ...e,
+ success: (res) => {
+ resolve(res);
+ },
+ fail: (err) => {
+ uni.showModal({
+ content: JSON.stringify(err),
+ showCancel: false
+ });
+ reject(err);
+ }
+ })
+ })
+ }
+ }
+ }
+
+
+
diff --git a/lang/en.js b/lang/en.js
index a5d1f52f1358d7ec742fc54da97114735399f7cd..ee111cf90d84bd821c98a15fc708cdfe2df8dfa6 100644
--- a/lang/en.js
+++ b/lang/en.js
@@ -52,7 +52,8 @@ export default {
},
mine: {
showText: "Text",
- signIn: "Check In Reward",
+ signIn: "Check In Reward",
+ signInByAd:"Check In Reward By AD",
toEvaluate: "To Evaluate",
readArticles: "Read Articles",
myScore: "My Score",
diff --git a/lang/zh-Hans.js b/lang/zh-Hans.js
index 7cbcb56a1cd76d0ea354f6f19f5b133b925b9c3c..968c67b1b57f68c4023d7f879aecbc826c621b62 100644
--- a/lang/zh-Hans.js
+++ b/lang/zh-Hans.js
@@ -53,7 +53,8 @@ export default {
},
mine:{
showText: "文字",
- signIn: "签到有奖",
+ signIn: "普通签到",
+ signInByAd:"看广告签到",
toEvaluate: "去评分",
readArticles: "阅读过的文章",
myScore: "我的积分",
diff --git a/manifest.json b/manifest.json
index 97c29f7272ae7a42b3caee5d5705770efa52f11d..bf455fec45d9ac9bbfae426b704d7c209e568dd8 100644
--- a/manifest.json
+++ b/manifest.json
@@ -1,5 +1,5 @@
{
- "name": "uuuu",
+ "name": "uni-starter",
"appid": "请点击重新获取",
"description": "云端一体应用快速开发模版",
"versionName": "1.0.0",
@@ -112,6 +112,10 @@
}
},
"ad": {
+ "gdt": {
+ },
+ "csj": {
+ }
},
"share": {
"weixin": {
@@ -170,7 +174,8 @@
},
"splashscreen": {
"iosStyle": "common",
- "androidStyle": "common"
+ "androidStyle": "common",
+ "useOriginalMsgbox": true
}
},
"nvueLaunchMode": ""
diff --git a/pages/list/detail.vue b/pages/list/detail.vue
index 7dead5474a273feee81976aa6a632db9f20abd31..0f93c7a7edff3dbf66e7e0a451c9d2af440123e0 100644
--- a/pages/list/detail.vue
+++ b/pages/list/detail.vue
@@ -32,7 +32,7 @@
-
+
@@ -41,7 +41,7 @@
{{data.excerpt}}
-
+
@@ -50,22 +50,29 @@
diff --git a/pages/list/list.nvue b/pages/list/list.nvue
index dbc993a8af27cbc70df13a4977e9ad5d972d8417..305528ec341e4ecbb486be8b162e3cada3840f8f 100644
--- a/pages/list/list.nvue
+++ b/pages/list/list.nvue
@@ -41,15 +41,18 @@
-
-
-
-
+
+
+
+
+
-
-
-
+
+
+
+
+
diff --git a/pages/list/search/search.nvue b/pages/list/search/search.nvue
index 12ab77042bec049036e79227fbab7a68bf283d51..89ec8ab3d00a7f47eb23a852ef8875d8dbea5358 100644
--- a/pages/list/search/search.nvue
+++ b/pages/list/search/search.nvue
@@ -63,10 +63,9 @@
-
-
-
+
+
diff --git a/pages/ucenter/login-page/index/index.vue b/pages/ucenter/login-page/index/index.vue
index 16aa161ea06d88a1253d3ae66a6d6cb786dc2323..8d1a855dc67725bb0e93fbfa5a70d8419519eee7 100644
--- a/pages/ucenter/login-page/index/index.vue
+++ b/pages/ucenter/login-page/index/index.vue
@@ -54,7 +54,13 @@
"top": "2000px" //隐藏当前页面窗体
})
}
- //#endif
+ //#endif
+ uni.$on('setLoginType',type=>{
+ this.type = type
+ })
+ },
+ onUnload() {
+ uni.$off('setLoginType')
},
onReady() {
//#ifdef APP-PLUS
diff --git a/pages/ucenter/login-page/pwd-login/pwd-login.vue b/pages/ucenter/login-page/pwd-login/pwd-login.vue
index 7413577b669ca4f12bc159bd2c1007f8f1bb60e0..2ae197982cd29c9ff3ffd4c0c7225f45261cdd71 100644
--- a/pages/ucenter/login-page/pwd-login/pwd-login.vue
+++ b/pages/ucenter/login-page/pwd-login/pwd-login.vue
@@ -80,7 +80,7 @@
} else {
if (result.needCaptcha) {
uni.showToast({
- title: result.msg,
+ title: result.msg||'完成',
icon: 'none'
});
this.createCaptcha()
diff --git a/pages/ucenter/login-page/pwd-retrieve/pwd-retrieve.vue b/pages/ucenter/login-page/pwd-retrieve/pwd-retrieve.vue
index 730f35a8eed97cfe57857fdbaf0783356048324a..80913275347ebb2a99536dd5cec3fc2fa9af9b99 100644
--- a/pages/ucenter/login-page/pwd-retrieve/pwd-retrieve.vue
+++ b/pages/ucenter/login-page/pwd-retrieve/pwd-retrieve.vue
@@ -25,7 +25,7 @@
:placeholder="$t('common.confirmNewPasswordPlaceholder')">
+ @click="submit">{{$t('common.complete')}}
@@ -38,7 +38,8 @@
return {
lock:false,
formData: {
- "phone": "",
+ "phone": "",
+ "code":"",
'pwd': '',
'pwd2': ''
},
@@ -100,7 +101,7 @@
}
},
computed: {
- canSubmit() {
+ canSubmit() {
return this.isPhone && this.isPwd && this.isCode;
},
isPhone() {
@@ -115,7 +116,7 @@
},
isCode() {
let reg_code = /^\d{6}$/;
- let isCode = reg_code.test(this.formData.code);
+ let isCode = reg_code.test(this.formData.code);
return isCode;
}
},
@@ -137,7 +138,9 @@
/**
* 完成并提交
*/
- submit() {
+ submit() {
+ console.log("formData",this.formData);
+ console.log('rules',this.rules);
this.$refs.form.validate()
.then(res => {
uniCloud.callFunction({
@@ -153,7 +156,7 @@
success: ({result}) => {
console.log(result);
uni.showToast({
- title: result.msg,
+ title: result.msg||'更新成功',
icon: 'none'
});
if (result.code === 0) {
@@ -169,7 +172,6 @@
+ .item-text-overflow {
+ width: 280px;
+ /* fix nvue */
+ overflow: hidden;
+ /* #ifndef APP-NVUE */
+ width: 20em;
+ white-space: nowrap;
+ text-overflow: ellipsis;
+ -o-text-overflow: ellipsis;
+ /* #endif */
+ }
+
+ .check {
+ margin-right: 5px;
+ border: 2px solid #007aff;
+ border-left: 0;
+ border-top: 0;
+ height: 12px;
+ width: 6px;
+ transform-origin: center;
+ /* #ifndef APP-NVUE */
+ transition: all 0.3s;
+ /* #endif */
+ transform: rotate(45deg);
+ }
+
diff --git a/uni_modules/uni-data-picker/package.json b/uni_modules/uni-data-picker/package.json
index 676f68baf92bc3dd61e77c9e4bd1cc674b9cf06f..0647354f763695637a2be5949772fdb225ade9c0 100644
--- a/uni_modules/uni-data-picker/package.json
+++ b/uni_modules/uni-data-picker/package.json
@@ -1,8 +1,8 @@
{
"id": "uni-data-picker",
"displayName": "uni-data-picker 数据驱动的picker选择器",
- "version": "0.4.0",
- "description": "Picker选择器",
+ "version": "0.4.9",
+ "description": "单列、多列级联选择器,常用于省市区城市选择、公司部门选择、多级分类等场景",
"keywords": [
"uni-ui",
"uniui",
@@ -43,7 +43,8 @@
},
"uni_modules": {
"dependencies": [
- "uni-load-more"
+ "uni-load-more",
+ "uni-icons"
],
"encrypt": [],
"platforms": {
@@ -79,6 +80,10 @@
"快应用": {
"华为": "u",
"联盟": "u"
+ },
+ "Vue": {
+ "vue2": "y",
+ "vue3": "y"
}
}
}
diff --git a/uni_modules/uni-data-picker/readme.md b/uni_modules/uni-data-picker/readme.md
index 70eed230caef370d15a0511884374d5b4b7ae988..d466274845937e7252a71fbba177b8aff548e736 100644
--- a/uni_modules/uni-data-picker/readme.md
+++ b/uni_modules/uni-data-picker/readme.md
@@ -23,14 +23,9 @@
> 为了避免错误使用,给大家带来不好的开发体验,请在使用组件前仔细阅读下面的注意事项,可以帮你避免一些错误。
> - 组件需要依赖 `sass` 插件 ,请自行手动安装
> - 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839
-> - `` 内部包含了弹出层组件 `` 外层的布局可能会影响弹出层,[详情](https://developer.mozilla.org/zh-Hans/docs/Web/CSS/Common_CSS_Questions)
+> - `` 内部包含了弹出层组件 `` 外层的布局可能会影响弹出层,[详情](https://developer.mozilla.org/zh-CN/docs/Web/CSS/Common_CSS_Questions)
-
-### 平台差异说明
-
-暂不支持在nvue页面中使用
-
### 安装方式
本组件符合[easycom](https://uniapp.dcloud.io/collocation/pages?id=easycom)规范,`HBuilderX 2.5.5`起,只需将本组件导入项目,在页面`template`中即可直接使用,无需在页面中`import`和注册`componets`。
@@ -44,9 +39,12 @@
|属性名 | 类型 | 可选值 | 默认值 | 说明|
|:-: | :-: |:-: | :-: | :-: |
|v-model |String/ Number | - | - |绑定数据|
+|spaceInfo |Object | | |服务空间配置,[详情](https://uniapp.dcloud.net.cn/uniCloud/init)|
|localdata |Array | | |数据,[详情](https://gitee.com/dcloud/datacom)|
|preload |Boolean | true/false | false |预加载数据|
|readonly |Boolean | true/false | false |是否禁用|
+|clear-icon |Boolean | true/false | true |是否显示清除按钮|
+|ellipsis |Boolean | true/false | true |是否隐藏 tab 标签过长的文本|
|step-searh |Boolean | true/false | true |分步查询时,点击节点请求数据|
|step-search-url |String | | |分步查询时,动态加载云端数据url格式,`https://xxx.com/{parentValue}`(当前版本暂不支持,下版支持)|
|self-field |String | | |分步查询时当前字段名称|
@@ -56,7 +54,7 @@
|where |String | | |查询条件,内容较多,另见jql文档:[详情](https://uniapp.dcloud.net.cn/uniCloud/uni-clientDB?id=jsquery)|
|orderby |String | | |排序字段及正序倒叙设置|
|popup-title |String | | |弹出层标题|
-
+|map |Object | |{text:'text',value:'value'}|字段映射,将text/value映射到数据中的其他字段|
> ****
> `collection/where/orderby` 和 `` 的用法一致,[详情](https://uniapp.dcloud.net.cn/uniCloud/unicloud-db)
@@ -73,6 +71,24 @@
|@popupopened |EventHandle | 弹出层弹出时触发 |
|@popupclosed |EventHandle | 弹出层关闭时触发 |
+### DataPicker Methods
+
+|方法称名 |说明|参数|
+|:-:|:-:|:-:|
+|show|打开弹出层|-|
+|hide|关闭弹出层|-|
+|clear|清除已选项|-|
+
+**使用方法:**
+```js
+this.$refs.picker.show() // `picker` 为组件的 ref 名称
+```
+
+### DataPicker Slots
+
+|名称|说明|
+|:-:|:-:|
+|default|覆盖显示框内容|
### 基本用法
diff --git a/uni_modules/uni-datetime-picker/changelog.md b/uni_modules/uni-datetime-picker/changelog.md
index 1011ada56a1c5b1cbfe3d1ac0e47f4539a185c90..4182e0c2148f2f6a623c69fddb1d06a778170689 100644
--- a/uni_modules/uni-datetime-picker/changelog.md
+++ b/uni_modules/uni-datetime-picker/changelog.md
@@ -1,3 +1,14 @@
+## 2.1.4(2021-09-10)
+- 修复 hide-second 在移动端的 bug
+- 修复 单选赋默认值时,赋值日期未高亮的 bug
+- 修复 赋默认值时,移动端未正确显示时间的 bug
+## 2.1.3(2021-09-09)
+- 新增 hide-second 属性,支持只使用时分,隐藏秒
+## 2.1.2(2021-09-03)
+- 优化 取消选中时(范围选)直接开始下一次选择, 避免多点一次
+- 优化 移动端支持清除按钮,同时支持通过 ref 调用组件的 clear 方法
+- 优化 调整字号大小,美化日历界面
+- 修复 因国际化导致的 placeholder 失效的 bug
## 2.1.1(2021-08-24)
- 新增 支持国际化
- 优化 范围选择器在 pc 端过宽的问题
diff --git a/uni_modules/uni-datetime-picker/components/uni-datetime-picker/calendar-item.vue b/uni_modules/uni-datetime-picker/components/uni-datetime-picker/calendar-item.vue
index e3bf17d827ed194847a7e01a28596cf1030f0988..7c9a093c898e3b039f65c3f67e1449d529b80685 100644
--- a/uni_modules/uni-datetime-picker/components/uni-datetime-picker/calendar-item.vue
+++ b/uni_modules/uni-datetime-picker/components/uni-datetime-picker/calendar-item.vue
@@ -7,7 +7,7 @@
}" @click="choiceDate(weeks)" @mouseenter="handleMousemove(weeks)">
{{weeks.date}}
-
-
@@ -47,18 +44,18 @@
lunar: {
type: Boolean,
default: false
- },
- checkHover: {
- type: Boolean,
- default: false
+ },
+ checkHover: {
+ type: Boolean,
+ default: false
}
},
methods: {
choiceDate(weeks) {
this.$emit('change', weeks)
- },
- handleMousemove(weeks) {
- this.$emit('handleMouse', weeks)
+ },
+ handleMousemove(weeks) {
+ this.$emit('handleMouse', weeks)
}
}
}
@@ -72,12 +69,13 @@
/* #endif */
flex-direction: column;
justify-content: center;
- align-items: center;
+ align-items: center;
margin: 3px 0;
}
.uni-calendar-item__weeks-box-text {
- font-size: $uni-font-size-base;
+ font-size: 12px;
+ // font-size: $uni-font-size-base;
// color: $uni-text-color;
}
@@ -94,13 +92,13 @@
flex-direction: column;
justify-content: center;
align-items: center;
- width: 43px;
- height: 43px;
+ width: 40px;
+ height: 40px;
/* #ifdef H5 */
cursor: pointer;
/* #endif */
- }
-
+ }
+
.uni-calendar-item__weeks-box-circle {
position: absolute;
@@ -115,12 +113,12 @@
.uni-calendar-item__weeks-box .uni-calendar-item--disable {
// background-color: rgba(249, 249, 249, $uni-opacity-disabled);
- color: $uni-text-color-disable;
+ color: $uni-text-color-disable;
cursor: default;
}
- .uni-calendar-item--isDay-text {
- color: $uni-color-primary !important;
+ .uni-calendar-item__weeks-box .uni-calendar-item--isDay-text {
+ color: $uni-color-primary;
}
.uni-calendar-item--isDay {
@@ -134,17 +132,17 @@
opacity: 0.8;
}
- .uni-calendar-item--checked {
- background-color: $uni-color-primary;
- // border-radius: 50%;
- box-sizing: border-box;
+ .uni-calendar-item__weeks-box .uni-calendar-item--checked {
+ background-color: $uni-color-primary;
+ // border-radius: 50%;
+ box-sizing: border-box;
border: 6px solid #f2f6fc;
color: #fff;
opacity: 0.8;
- }
-
- .uni-calendar-item--multiple .uni-calendar-item--checked-range-text {
- color: #333;
+ }
+
+ .uni-calendar-item--multiple .uni-calendar-item--checked-range-text {
+ color: #333;
}
.uni-calendar-item--multiple {
@@ -155,29 +153,29 @@
.uni-calendar-item--multiple .uni-calendar-item--before-checked {
background-color: #409eff;
- color: #fff !important;
- // border-radius: 50%;
- box-sizing: border-box;
+ color: #fff !important;
+ // border-radius: 50%;
+ box-sizing: border-box;
border: 6px solid #f2f6fc;
}
.uni-calendar-item--multiple .uni-calendar-item--after-checked {
background-color: #409eff;;
- color: #fff !important;
- // border-radius: 50%;
- box-sizing: border-box;
+ color: #fff !important;
+ // border-radius: 50%;
+ box-sizing: border-box;
border: 6px solid #f2f6fc;
- }
-
- .uni-calendar-item--before-checked-x {
- // border-top-left-radius: 25px;
- // border-bottom-left-radius: 25px;
- background-color: #f2f6fc;
- }
-
- .uni-calendar-item--after-checked-x {
- // border-top-right-radius: 25px;
- // border-bottom-right-radius: 25px;
- background-color: #f2f6fc;
- }
-
+ }
+
+ .uni-calendar-item--before-checked-x {
+ // border-top-left-radius: 25px;
+ // border-bottom-left-radius: 25px;
+ background-color: #f2f6fc;
+ }
+
+ .uni-calendar-item--after-checked-x {
+ // border-top-right-radius: 25px;
+ // border-bottom-right-radius: 25px;
+ background-color: #f2f6fc;
+ }
+
diff --git a/uni_modules/uni-datetime-picker/components/uni-datetime-picker/calendar.vue b/uni_modules/uni-datetime-picker/components/uni-datetime-picker/calendar.vue
index 6b7a20b42488bcce25d5d6db6815cba5abd94453..d04b9cf23ba1d2aec7082721506bdd3ac6d4f835 100644
--- a/uni_modules/uni-datetime-picker/components/uni-datetime-picker/calendar.vue
+++ b/uni_modules/uni-datetime-picker/components/uni-datetime-picker/calendar.vue
@@ -10,8 +10,7 @@
-
+
- {{tempSingleDate ? tempSingleDate : selectDateText}}
+ style="padding: 0 80px;">
+ {{tempSingleDate ? tempSingleDate : selectDateText}}
+ :disabled="!tempSingleDate" :border="false" :hide-second="hideSecond" class="time-picker-style">
- {{tempRange.before ? tempRange.before : startDateText}}
- {{tempRange.before ? tempRange.before : startDateText}}
+
+
- {{tempRange.after ? tempRange.after : endDateText}}
- {{tempRange.after ? tempRange.after : endDateText}}
+
-