diff --git a/CHANGELOG.md b/CHANGELOG.md index 8cf2d2b..9435809 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -# 1.0.0 (2022-04-28) +# 1.0.0 (2022-05-23) ### 🌟 新功能 范围|描述|commitId @@ -36,6 +36,7 @@ - | 获取交付物信息 | [5ae68e2](https://101.201.226.163:50022/ccsens_tall/TALL-MUI-4/commits/5ae68e2) - | 获取手机唯一码 | [3f60cf8](https://101.201.226.163:50022/ccsens_tall/TALL-MUI-4/commits/3f60cf8) - | 将时间轴改成swiper滑动 | [12384f9](https://101.201.226.163:50022/ccsens_tall/TALL-MUI-4/commits/12384f9) + - | 交付物2 | [5f76e78](https://101.201.226.163:50022/ccsens_tall/TALL-MUI-4/commits/5f76e78) - | 交付物2 | [6b39979](https://101.201.226.163:50022/ccsens_tall/TALL-MUI-4/commits/6b39979) - | 交付物2 | [51db122](https://101.201.226.163:50022/ccsens_tall/TALL-MUI-4/commits/51db122) - | 交付物2 | [864b080](https://101.201.226.163:50022/ccsens_tall/TALL-MUI-4/commits/864b080) diff --git a/components/master-keyboard/master-keyboard.scss b/components/master-keyboard/master-keyboard.scss new file mode 100644 index 0000000..99c90a5 --- /dev/null +++ b/components/master-keyboard/master-keyboard.scss @@ -0,0 +1,316 @@ +.master_wrap{ + width: 100%; + background-color: #eee; + position: fixed; + bottom: 0; + left: 0; + padding-top: 10rpx; + padding-bottom: 20rpx; + .down_wrap{ + width: 100%; + height: 50rpx; + display: flex; + align-items: center; + justify-content: center; + image{ + width: 48rpx; + height: 48rpx; + } + } + .kerboard_number{ + width: 100%; + display: flex; + justify-content: space-evenly; + flex-flow: wrap; + .number_item{ + width: 30%; + height: 80rpx; + margin-top: 10rpx; + background-color: white; + border-radius: 10rpx; + text-align: center; + line-height: 80rpx; + box-sizing: border-box; + display: block; + } + .number_item_active{ + width: 30%; + height: 80rpx; + margin-top: 10rpx; + background-color: #888; + border-radius: 10rpx; + text-align: center; + line-height: 80rpx; + box-sizing: border-box; + display: block; + color: white; + } + .number_empty{ + width: 30%; + height: 80rpx; + margin-top: 10rpx; + background-color: white; + border-radius: 10rpx; + text-align: center; + line-height: 80rpx; + box-sizing: border-box; + display: block; + // background-color: #eeeeee; + // width: 30%; + // height: 80rpx; + // margin-top: 10rpx; + // border-radius: 10rpx; + } + .number_empty_active{ + background-color: #888; + // background-color: #eeeeee; + } + .number_delete{ + width: 30%; + height: 80rpx; + margin-top: 10rpx; + background-color: white; + display: flex; + justify-content: center; + align-items: center; + .delete_img{ + width: 65rpx; + height: 64rpx; + } + } + .number_delete_active{ + width: 30%; + height: 80rpx; + margin-top: 10rpx; + background-color: #888; + display: flex; + justify-content: center; + align-items: center; + border-radius: 10rpx; + .delete_img{ + width: 65rpx; + height: 64rpx; + } + } + } + + .keyboard_car{ + width: 100%; + display: flex; + flex-direction: column; + position: relative; + .car_down{ + position: absolute; + top: 10rpx; + left: 15rpx; + width: 48rpx; + height: 48rpx; + } + .tab_wrap{ + height: 65rpx; + margin: 0 auto; + background-color: white; + border-radius: 20rpx; + display: flex; + padding-left: 25rpx; + padding-right: 25rpx; + image{ + width: 48rpx; + height: 48rpx; + } + .tab_item{ + height: 100%; + text-align: center; + line-height: 65rpx; + font-size: 26rpx; + margin: 0 20rpx; + } + .tab_item_active{ + height: 100%; + text-align: center; + line-height: 65rpx; + font-size: 26rpx; + margin: 0 20rpx; + text-decoration: underline; + color: #e64d3a; + } + } + + .car_content{ + width: 100%; + position: relative; + .car_province{ + width: 100%; + display: flex; + justify-content: space-evenly; + flex-flow: wrap; + margin: 0; + .province_item{ + width: 9.5%; + height: 80rpx; + margin-top: 10rpx; + background-color: white; + border-radius: 10rpx; + text-align: center; + line-height: 80rpx; + box-sizing: border-box; + display: block; + font-size: 28rpx; + font-weight: 450; + } + .province_item_active{ + width: 9.5%; + height: 80rpx; + margin-top: 10rpx; + background-color: #888; + border-radius: 10rpx; + text-align: center; + line-height: 80rpx; + box-sizing: border-box; + display: block; + font-size: 28rpx; + font-weight: 450; + color: white; + } + .province_item_disable{ + width: 9.5%; + height: 80rpx; + margin-top: 10rpx; + background-color: #fff; + border-radius: 10rpx; + text-align: center; + line-height: 80rpx; + box-sizing: border-box; + display: block; + font-size: 28rpx; + font-weight: 450; + opacity: 0.5; + } + } + .car_province_1{ + width: 100%; + display: flex; + margin: 0; + .province_item1{ + margin: 0; + width: 9.5%; + height: 80rpx; + margin-top: 10rpx; + background-color: white; + border-radius: 10rpx; + text-align: center; + line-height: 80rpx; + box-sizing: border-box; + display: block; + font-size: 28rpx; + font-weight: 450; + } + .province_item_active{ + width: 9.5%; + height: 80rpx; + margin-top: 10rpx; + background-color: #888; + border-radius: 10rpx; + text-align: center; + line-height: 80rpx; + box-sizing: border-box; + display: block; + font-size: 28rpx; + font-weight: 450; + color: white; + } + .province_item_disable{ + width: 9.5%; + height: 80rpx; + margin-top: 10rpx; + background-color: #fff; + border-radius: 10rpx; + text-align: center; + line-height: 80rpx; + box-sizing: border-box; + display: block; + font-size: 28rpx; + font-weight: 450; + opacity: 0.5; + } + } + .car_latter{ + width: 100%; + display: flex; + justify-content: space-evenly; + flex-flow: wrap; + .latter_item{ + width: 9.5%; + height: 80rpx; + margin-top: 10rpx; + background-color: white; + border-radius: 10rpx; + text-align: center; + line-height: 80rpx; + box-sizing: border-box; + display: block; + font-size: 28rpx; + font-weight: 450; + } + .province_item_active{ + width: 9.5%; + height: 80rpx; + margin-top: 10rpx; + background-color: #888; + border-radius: 10rpx; + text-align: center; + line-height: 80rpx; + box-sizing: border-box; + display: block; + font-size: 28rpx; + font-weight: 450; + color: white; + } + .province_item_disable{ + width: 9.5%; + height: 80rpx; + margin-top: 10rpx; + background-color: #fff; + border-radius: 10rpx; + text-align: center; + line-height: 80rpx; + box-sizing: border-box; + display: block; + font-size: 28rpx; + font-weight: 450; + opacity: 0.5; + } + } + .car_delete{ + width: 15%; + height: 80rpx; + margin-top: 10rpx; + background-color: white; + border-radius: 10rpx; + display: flex; + justify-content: center; + align-items: center; + position: absolute; + .delete_img{ + width: 65rpx; + height: 64rpx; + } + } + .car_delete_active{ + width: 15%; + height: 80rpx; + margin-top: 10rpx; + background-color: #e64d3a; + border-radius: 10rpx; + display: flex; + justify-content: center; + align-items: center; + position: absolute; + .delete_img{ + width: 65rpx; + height: 64rpx; + } + } + } + } +} \ No newline at end of file diff --git a/components/master-keyboard/master-keyboard.vue b/components/master-keyboard/master-keyboard.vue new file mode 100644 index 0000000..ee5b3f9 --- /dev/null +++ b/components/master-keyboard/master-keyboard.vue @@ -0,0 +1,312 @@ + + + + + diff --git a/hooks/user/userMixin.js b/hooks/user/userMixin.js index 864da24..32e7f85 100644 --- a/hooks/user/userMixin.js +++ b/hooks/user/userMixin.js @@ -147,50 +147,50 @@ export default function userMixin() { } // 粘贴 - function setCode() { + function setCode(form) { // 获取粘贴板内容 // 小程序平台 //#ifdef MP-WEIXIN uni.getClipboardData({ - success (res) { - smsCode.value = res.data; - } + success(res) { + form.smsCode = res.data; + }, }); //#endif // 非小程序平台 //#ifndef MP-WEIXIN - getClipboardContents() + getClipboardContents(form) //#endif } // 非小程序平台粘贴 - async function getClipboardContents() { + async function getClipboardContents(form) { try { const text = await navigator.clipboard.readText(); - smsCode.value = text; + form.smsCode = text; } catch (err) { console.error('Failed to read clipboard contents: ', err); } } // 验证信息 - function checkRules() { - if (!verifyPhone(phone.value)) { - uni.$ui.showToast('请输入正确的手机号'); - return false; - } - if (!smsCode.value) { - uni.$ui.showToast('验证码无效'); - return false; - } + // function checkRules() { + // if (!verifyPhone(phone.value)) { + // uni.$ui.showToast('请输入正确的手机号'); + // return false; + // } + // if (!smsCode.value) { + // uni.$ui.showToast('验证码无效'); + // return false; + // } - if (phone.value === user.value.phone) { - uni.$ui.showToast('新手机号不能与旧手机号相同'); - return; - } - return true; - } + // if (phone.value === user.value.phone) { + // uni.$ui.showToast('新手机号不能与旧手机号相同'); + // return; + // } + // return true; + // } /** * 验证手机号格式 @@ -267,7 +267,7 @@ export default function userMixin() { // interval, dataObj, hasvalue, - checkRules, + // checkRules, setCode, verifyLoginname, handleWxLogin diff --git a/pages/submitLog/submitLog - 副本.vue b/pages/submitLog/submitLog - 副本.vue new file mode 100644 index 0000000..8f5096f --- /dev/null +++ b/pages/submitLog/submitLog - 副本.vue @@ -0,0 +1,66 @@ + + + diff --git a/pages/user/login.vue b/pages/user/login.vue index 559b041..96bcd35 100644 --- a/pages/user/login.vue +++ b/pages/user/login.vue @@ -8,17 +8,17 @@ - + - + - - + + 粘贴 {{ mixinInit.dataObj.interval }} @@ -44,6 +44,8 @@ --> + +