From aef6229affea82f1dc74bee36986e8c5d0b31581 Mon Sep 17 00:00:00 2001
From: whycq <you@example.com>
Date: 星期日, 30 七月 2023 14:14:12 +0800
Subject: [PATCH] #
---
/dev/null | 155 ---------------------------------------------------
1 files changed, 0 insertions(+), 155 deletions(-)
diff --git a/.hbuilderx/launch.json b/.hbuilderx/launch.json
deleted file mode 100644
index 4bbcf3c..0000000
--- a/.hbuilderx/launch.json
+++ /dev/null
@@ -1,24 +0,0 @@
-{ // launch.json 閰嶇疆浜嗗惎鍔ㄨ皟璇曟椂鐩稿叧璁剧疆锛宑onfigurations涓嬭妭鐐瑰悕绉板彲涓� app-plus/h5/mp-weixin/mp-baidu/mp-alipay/mp-qq/mp-toutiao/mp-360/
- // launchtype椤瑰彲閰嶇疆鍊间负local鎴杛emote, local浠h〃鍓嶇杩炴湰鍦颁簯鍑芥暟锛宺emote浠h〃鍓嶇杩炰簯绔簯鍑芥暟
- "version": "0.0",
- "configurations": [{
- "app-plus" :
- {
- "launchtype" : "local"
- },
- "default" :
- {
- "launchtype" : "local"
- },
- "h5" :
- {
- "launchtype" : "local"
- },
- "mp-weixin" :
- {
- "launchtype" : "local"
- },
- "type" : "uniCloud"
- }
- ]
-}
diff --git a/.idea/.gitignore b/.idea/.gitignore
deleted file mode 100644
index 73f69e0..0000000
--- a/.idea/.gitignore
+++ /dev/null
@@ -1,8 +0,0 @@
-# Default ignored files
-/shelf/
-/workspace.xml
-# Datasource local storage ignored files
-/dataSources/
-/dataSources.local.xml
-# Editor-based HTTP Client requests
-/httpRequests/
diff --git a/.idea/misc.xml b/.idea/misc.xml
deleted file mode 100644
index d4b854b..0000000
--- a/.idea/misc.xml
+++ /dev/null
@@ -1,9 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project version="4">
- <component name="JavaScriptSettings">
- <option name="languageLevel" value="ES6" />
- </component>
- <component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" project-jdk-name="1.8" project-jdk-type="JavaSDK">
- <output url="file://$PROJECT_DIR$/out" />
- </component>
-</project>
\ No newline at end of file
diff --git a/.idea/modules.xml b/.idea/modules.xml
deleted file mode 100644
index e2f80f0..0000000
--- a/.idea/modules.xml
+++ /dev/null
@@ -1,8 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project version="4">
- <component name="ProjectModuleManager">
- <modules>
- <module fileurl="file://$PROJECT_DIR$/.idea/wms-app.iml" filepath="$PROJECT_DIR$/.idea/wms-app.iml" />
- </modules>
- </component>
-</project>
\ No newline at end of file
diff --git a/.idea/vcs.xml b/.idea/vcs.xml
deleted file mode 100644
index 35eb1dd..0000000
--- a/.idea/vcs.xml
+++ /dev/null
@@ -1,6 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project version="4">
- <component name="VcsDirectoryMappings">
- <mapping directory="" vcs="Git" />
- </component>
-</project>
\ No newline at end of file
diff --git a/.idea/wms-app.iml b/.idea/wms-app.iml
deleted file mode 100644
index d6ebd48..0000000
--- a/.idea/wms-app.iml
+++ /dev/null
@@ -1,9 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<module type="JAVA_MODULE" version="4">
- <component name="NewModuleRootManager" inherit-compiler-output="true">
- <exclude-output />
- <content url="file://$MODULE_DIR$" />
- <orderEntry type="inheritedJdk" />
- <orderEntry type="sourceFolder" forTests="false" />
- </component>
-</module>
\ No newline at end of file
diff --git a/App.vue b/App.vue
deleted file mode 100644
index c206b2f..0000000
--- a/App.vue
+++ /dev/null
@@ -1,682 +0,0 @@
-<script>
- import Vue from 'vue'
- export default {
- globalData: {
- baseHttp: '',
- baseUrll: '',
- upVersion: 0,
- },
- onLaunch: function() {
- Vue.prototype.ColorList = [{
- title: '瀚g孩',
- name: 'red',
- color: '#e54d42'
- },
- {
- title: '妗旀',
- name: 'orange',
- color: '#f37b1d'
- },
- {
- title: '鏄庨粍',
- name: 'yellow',
- color: '#fbbd08'
- },
- {
- title: '姗勬',
- name: 'olive',
- color: '#8dc63f'
- },
- {
- title: '妫豢',
- name: 'green',
- color: '#39b54a'
- },
- {
- title: '澶╅潚',
- name: 'cyan',
- color: '#1cbbb4'
- },
- {
- title: '娴疯摑',
- name: 'blue',
- color: '#0081ff'
- },
- {
- title: '濮圭传',
- name: 'purple',
- color: '#6739b6'
- },
- {
- title: '鏈ㄦЭ',
- name: 'mauve',
- color: '#9c26b0'
- },
- {
- title: '妗冪矇',
- name: 'pink',
- color: '#e03997'
- },
- {
- title: '妫曡',
- name: 'brown',
- color: '#a5673f'
- },
- {
- title: '鐜勭伆',
- name: 'grey',
- color: '#8799a3'
- },
- {
- title: '鑽夌伆',
- name: 'gray',
- color: '#aaaaaa'
- },
- {
- title: '澧ㄩ粦',
- name: 'black',
- color: '#333333'
- },
- {
- title: '闆呯櫧',
- name: 'white',
- color: '#ffffff'
- },
- ]
- },
- onShow: function() {
- this.getVersion();
- this.baseUrll = uni.getStorageSync("baseUrl")
- console.log('App Show')
- },
- onHide: function() {
- console.log('App Hide')
- },
- methods: {
- //妫�娴嬪綋鍓嶅钩鍙帮紝濡傛灉鏄畨鍗撳垯鍚姩瀹夊崜鏇存柊
- getVersion() {
- let that = this;
- uni.getSystemInfo({
- success: (res) => {
- console.log(res.platform);
- if (res.platform == "android") {
- that.AndroidCheckUpdate();
- }
- }
- })
- },
- // 鑾峰彇褰撳墠鐗堟湰鍙�
- AndroidCheckUpdate() {
- let that = this;
- plus.runtime.getProperty(plus.runtime.appid, (wgtinfo) => {
- that.version = wgtinfo.version //瀹㈡埛绔増鏈彿
- console.log('褰撳墠app鐗堟湰淇℃伅锛�' + that.version);
- })
- that.getUpdateVersion()
- },
- getUpdateVersion() {
- let that = this;
- uni.request({
- url: that.baseUrll + "/mobile/appUpdate/queryUpdate",
- method:'GET',
- success(res) {
- // 鏂癮pp鐗堟湰
- that.upVersion = Number(res.data.data)
- // 褰撳墠app鐗堟湰
- let currentVersion = Number(that.version)
- if(that.upVersion > currentVersion) {
- that.downWgt(); //涓嬭浇鏂囦欢
- }
- }
- })
- return
- that.$req.get(that.baseUrll + "/appUpdate/queryUpdate", {}, {}).then(function(res) {
- console.log('res.data:' + JSON.stringify(res.data))
- console.log("鐜板湪鐨勭増鏈�" + that.version + "鏁版嵁搴撶増鏈�" + res.data.data.version + "杩涘叆鏌ユ壘app鐗堟湰");
- if (res.data.data.version > that.version) {
- // 杩欓噷涓嬭浇apkurl浠�/appUpdate/queryUpdate鎺ュ彛璇锋眰杩斿洖鏁版嵁涓幏鍙�
- that.downloadUrl = BaseUrl + '/' + res.data.data.androidUrl
- // 鏄惁寮哄埗鏇存柊锛�0 鍚︼紱1 鏄級
- that.isForceUpdate = res.data.data.isForceUpdate
- uni.showModal({
- // 鏇存柊鎻愰啋
- title: '鍙戠幇鏂扮増鏈紝鏄惁鏇存柊',
- content: '姝ょ増鏈彿锛�' + that.version + '\xa0\xa0\xa0' + '寰呮洿鏂扮増鏈彿锛�' + res.data.data
- .version,
- success: res => {
- if (res.confirm) {
- that.downWgt(); //涓嬭浇鏂囦欢
- // that.showdownLine = true;
- // plus.runtime.openURL(androidUrl)
- } else if (res.cancel) {
- console.log('that.isForceUpdate锛�' + that.isForceUpdate);
- // 涓嶆洿鏂板己鍒堕��鍑篴pp
- if (that.isForceUpdate == 1) {
- console.log('that.isForceUpdate1锛�' + that.isForceUpdate);
- uni.showModal({
- // 鏇存柊鎻愰啋
- title: '鍙戠幇鏂扮増鏈紝鏄惁鏇存柊',
- content: '姝ょ増鏈负寮哄埗鏇存柊鐗堟湰濡備笉鍗囩骇灏嗛��鍑篈PP',
- success: res => {
- if (res.confirm) {
- console.log('涓嶆洿鏂板己鍒堕��鍑篴pp');
- plus.runtime.quit();
- } else if (res.cancel) {
- that.AndroidCheckUpdate();
- }
- }
- });
- }
- }
- }
- });
- //dtask.start();
- }
- }).catch(error => {
- uni.showToast({
- title: '璋冪敤璇锋眰澶辫触',
- mask: false,
- duration: 5000,
- icon: "none"
- });
- });
- complete: () => {}
- },
- downWgt() {
- let that = this;
- const downloadUrl = that.baseUrll + "/static/appupload/" + that.upVersion + ".apk"
- uni.showLoading({
- title: '鏇存柊涓�︹��'
- })
- // return
- const downloadTask = uni.downloadFile({ //鎵ц涓嬭浇
- url: downloadUrl, //涓嬭浇鍦板潃
- timeout: 1000 * 30, //30绉掕秴鏃舵椂闂�
- success: downloadResult => { //涓嬭浇鎴愬姛
- console.log(downloadResult);
- that.showdownLine = false
- uni.hideLoading();
- console.log('downloadResult.statusCode' + downloadResult.statusCode)
- if (downloadResult.statusCode == 200) {
- console.log('鏇存柊涓�')
- uni.showModal({
- title: '',
- content: '鏇存柊鎴愬姛锛岀‘瀹氱幇鍦ㄩ噸鍚悧锛�',
- confirmText: '閲嶅惎',
- confirmColor: '#EE8F57',
- success: function(res) {
- if (res.confirm == true) {
- plus.runtime.install( //瀹夎
- downloadResult.tempFilePath, {
- force: true
- },
- function(res) {
- utils.showToast('鏇存柊鎴愬姛锛岄噸鍚腑');
- plus.runtime.restart();
- }
- );
- }
- }
- });
- }
- },
- fail: err => {
- uni.hideLoading();
- that.showdownLine = false
- that.$u.toast(err.errMsg)
- console.log(err)
- },
- complete: com => {
- console.log(com)
- }
- });
-
- // 涓嬭浇杩涘害
- downloadTask.onProgressUpdate(res => {
- that.downloadNum = res.progress
- console.log('涓嬭浇杩涘害' + that.downloadNum);
- });
- },
- }
- }
-</script>
-
-<style>
- /*姣忎釜椤甸潰鍏叡css */
- @import "colorui/main.css";
- @import "colorui/icon.css";
-
- .footer {
- width: 100%;
- height: 150rpx;
- line-height: 150rpx;
- background-color: #FFF;
- position: fixed;
- bottom: 0;
- border-top: 1px solid #d8d8d8;
- border-radius: 20rpx 20rpx 0 0;
- z-index: 1;
- }
-
- .nav-list {
- display: flex;
- flex-wrap: wrap;
- padding: 0px 40upx 0px;
- justify-content: space-between;
- }
-
- .nav-li {
- padding: 30upx;
- border-radius: 12upx;
- width: 95%;
- margin: 0 2.5% 40upx;
-
- background-size: cover;
- background-position: center;
- position: relative;
- z-index: 1;
- }
-
- .nav-li::after {
- content: "";
- position: absolute;
- z-index: -1;
- background-color: inherit;
- width: 100%;
- height: 100%;
- left: 0;
- bottom: -10%;
- border-radius: 10upx;
- opacity: 0.2;
- transform: scale(0.9, 0.9);
- }
-
- .nav-li.cur {
- color: #fff;
- background: rgb(94, 185, 94);
- box-shadow: 4upx 4upx 6upx rgba(94, 185, 94, 0.4);
- }
-
- .nav-title {
- font-size: 32upx;
- font-weight: 300;
- }
-
- .nav-title::first-letter {
- font-size: 40upx;
- margin-right: 4upx;
- }
-
- .nav-name {
- font-size: 28upx;
- text-transform: Capitalize;
- margin-top: 20upx;
- position: relative;
- }
-
- .nav-name::before {
- content: "";
- position: absolute;
- display: block;
- width: 40upx;
- height: 6upx;
- background: #fff;
- bottom: 0;
- right: 0;
- opacity: 0.5;
- }
-
- .nav-name::after {
- content: "";
- position: absolute;
- display: block;
- width: 100upx;
- height: 1px;
- background: #fff;
- bottom: 0;
- right: 40upx;
- opacity: 0.3;
- }
-
- .nav-name::first-letter {
- font-weight: bold;
- font-size: 36upx;
- margin-right: 1px;
- }
-
- .nav-li text {
- position: absolute;
- right: 30upx;
- top: 30upx;
- font-size: 52upx;
- width: 60upx;
- height: 60upx;
- text-align: center;
- line-height: 60upx;
- }
-
- .text-light {
- font-weight: 300;
- }
-
- @keyframes show {
- 0% {
- transform: translateY(-50px);
- }
-
- 60% {
- transform: translateY(40upx);
- }
-
- 100% {
- transform: translateY(0px);
- }
- }
-
- @-webkit-keyframes show {
- 0% {
- transform: translateY(-50px);
- }
-
- 60% {
- transform: translateY(40upx);
- }
-
- 100% {
- transform: translateY(0px);
- }
- }
-
- /* .pda-btn {
-
- margin-left:120rpx;
- margin-right: auto;
- margin-top: 150rpx;
- width: 200rpx;
- height: 80rpx;
- font-size: 30upx;
- font-weight: bold;
- } */
- .title-login {
- text-align: justify;
- padding-right: 30upx;
- font-size: 30upx;
- font-weight: 400;
- position: relative;
- height: 60upx;
- line-height: 60upx;
- }
-
- .main-btn {
- padding: 0 20px;
- font-size: 20px;
- height: 40px;
- }
-
- /* uni-checkbox .uni-checkbox-input{
- border-radius: 20% !important;
- border: 1px solid black;
- }
- uni-checkbox .uni-checkbox-input.uni-checkbox-input-checked {
- background: $primary-color;
- } */
- /* uni-checkbox-group{ width: 100% !important; }
- uni-checkbox-group uni-label{ width: 33% !important; display: inline-flex; margin-bottom: 20rpx; } */
-
- /*checkbox 閫夐」妗嗗ぇ灏� */
- uni-checkbox .uni-checkbox-input {
- width: 30rpx !important;
- height: 30rpx !important;
- }
-
- /*checkbox閫変腑鍚庢牱寮� */
- uni-checkbox .uni-checkbox-input.uni-checkbox-input-checked {
- background: #3D7EFF;
- border-color: #3D7EFF;
- }
-
- /*checkbox閫変腑鍚庡浘鏍囨牱寮� */
- uni-checkbox .uni-checkbox-input.uni-checkbox-input-checked::before {
- width: 30rpx;
- height: 30rpx;
- line-height: 30rpx;
- text-align: center;
- font-size: 30rpx;
- color: #fff;
- background: transparent;
- transform: translate(-50%, -50%) scale(1);
- -webkit-transform: translate(-50%, -50%) scale(1);
- }
-
- .square-2 {
- background-color: #ffffff;
- box-shadow: 0px 0px 5px #d9d9d9;
- width: 94%;
- height: 200rpx;
- border-radius: 20rpx;
- margin: 20rpx auto 20rpx auto;
- }
-
- .square-title {
- width: 100%;
- height: 100rpx;
- }
-
- .title-sign {
- display: inline-block;
- float: left;
- height: 100rpx;
- width: 2em;
- line-height: 100rpx;
- }
-
- .sign {
- background-color: #007AFF;
- width: 15rpx;
- height: 40rpx;
- border-radius: 50rpx;
- position: relative;
- top: 50%;
- left: 50%;
- transform: translate(-50%, -50%);
- }
-
- .square-content {
- width: 100%;
- height: 100rpx;
- }
-
- .square-content>text {
- height: 100%;
- /* background-color: #18BC37; */
- width: 22%;
- line-height: 100rpx;
- display: inline-block;
- float: left;
- text-align: right;
- margin-left: 3%;
- font-size: 30rpx;
- }
-
- .content-input {
- background-color: #f9f9f9;
- display: inline-block;
- float: left;
- height: 80rpx;
- line-height: 80rpx;
- width: 95%;
- margin: 10rpx 2.5%;
- border-radius: 15rpx;
- border: 1px solid #eeeeee;
- }
-
- .content-input input {
- display: inline-block;
- float: left;
- height: 80rpx;
- width: 90%;
- text-indent: 20rpx;
- font-size: 32rpx;
- letter-spacing: 3rpx;
- }
-
- .content-input-btn {
- background-color: #f9f9f9;
- display: inline-block;
- float: left;
- height: 80rpx;
- line-height: 80rpx;
- width: 70%;
- margin: 10rpx 2.5%;
- border-radius: 15rpx;
- border: 1px solid #eeeeee;
- }
-
- .content-input-btn input {
- display: inline-block;
- float: left;
- height: 100%;
- width: 85%;
- /* background-color: #007AFF; */
- text-indent: 20rpx;
- font-size: 32rpx;
- letter-spacing: 3rpx;
- }
-
- .content-input-combox {
- background-color: #f9f9f9;
- display: inline-block;
- float: right;
- height: 80rpx;
- line-height: 80rpx;
- width: 70%;
- margin: 10rpx 2.5%;
- border-radius: 10rpx;
- border: 1px solid #eeeeee;
- margin: 10rpx 3% 10rpx 0;
- }
-
- .content-input-combox input {
- display: inline-block;
- float: left;
- height: 100%;
- width: 85%;
- /* background-color: #007AFF; */
- text-indent: 20rpx;
- font-size: 32rpx;
- letter-spacing: 3rpx;
- }
-
- .content-combox {
- display: inline-block;
- float: right;
- height: 80rpx;
- width: 94%;
- margin: 10rpx 3% 10rpx 0;
- }
-
- .square-none {
- width: 100%;
- height: 100rpx;
- }
-
- .square-1 {
- position: relative;
- background-color: #ffffff;
- box-shadow: 0px 0px 5px #d9d9d9;
- width: 94%;
- height: 100rpx;
- border-radius: 20rpx;
- margin: 20rpx auto 20rpx auto;
- }
-
- .v-show {
- width: 100%;
- height: 100%;
- /* line-height: 100rpx; */
- text-align: center;
- color: #7a7a7a;
- }
-
- .title-text {
- /* background-color: #000000; */
- display: inline-block;
- height: 100rpx;
- width: 250rpx;
- line-height: 110rpx;
- font-size: 40rpx;
- font-weight: 700;
- letter-spacing: 7rpx;
- }
-
- .content-btn {
- /* background-color: #57a3ff; */
- display: inline-block;
- height: 100rpx;
- width: 25%;
- }
-
- .pda-btn {
- background-color: #1E9FFF;
- height: 80rpx;
- width: 90%;
- margin: 10rpx auto;
- text-align: center;
- line-height: 80rpx;
- font-size: 32rpx;
- color: #FFFFFF;
- }
-
- .square-3 {
- background-color: #ffffff;
- box-shadow: 0px 0px 5px #d9d9d9;
- width: 94%;
- height: 300rpx;
- border-radius: 20rpx;
- margin: 20rpx auto 20rpx auto;
- }
-
- .searchBox {
- position: absolute;
- width: 94%;
- height: 80%;
- top: 0;
- left: 0;
- bottom: 0;
- right: 0;
- margin: auto;
- background-color: #F9F9F9;
- border-radius: 20rpx;
- }
-
- .searchIcon {
- display: inline-block;
- float: left;
- width: 10%;
- height: 100%;
- text-align: center;
- line-height: 80rpx;
- }
-
- .searchArea {
- display: inline-block;
- float: left;
- width: 80%;
- height: 100%;
- }
-
- .searchArea input {
- height: 100%;
- font-size: 14px;
- color: #5f5f5f;
- }
-
- .closeIcon {
- display: inline-block;
- float: left;
- width: 10%;
- height: 100%;
- text-align: center;
- line-height: 80rpx;
- }
-</style>
diff --git a/colorui/animation.css b/colorui/animation.css
deleted file mode 100644
index 931bb51..0000000
--- a/colorui/animation.css
+++ /dev/null
@@ -1,184 +0,0 @@
-/*
- Animation 寰姩鐢�
- 鍩轰簬ColorUI缁勫缓搴撶殑鍔ㄧ敾妯″潡 by 鏂囨檽娓� 2019骞�3鏈�26鏃�19:52:28
- */
-
-/* css 婊ら暅 鎺у埗榛戠櫧搴曡壊gif鐨� */
-.gif-black{
- mix-blend-mode: screen;
-}
-.gif-white{
- mix-blend-mode: multiply;
-}
-
-
-/* Animation css */
-[class*=animation-] {
- animation-duration: .5s;
- animation-timing-function: ease-out;
- animation-fill-mode: both
-}
-
-.animation-fade {
- animation-name: fade;
- animation-duration: .8s;
- animation-timing-function: linear
-}
-
-.animation-scale-up {
- animation-name: scale-up
-}
-
-.animation-scale-down {
- animation-name: scale-down
-}
-
-.animation-slide-top {
- animation-name: slide-top
-}
-
-.animation-slide-bottom {
- animation-name: slide-bottom
-}
-
-.animation-slide-left {
- animation-name: slide-left
-}
-
-.animation-slide-right {
- animation-name: slide-right
-}
-
-.animation-shake {
- animation-name: shake
-}
-
-.animation-reverse {
- animation-direction: reverse
-}
-
-@keyframes fade {
- 0% {
- opacity: 0
- }
-
- 100% {
- opacity: 1
- }
-}
-
-@keyframes scale-up {
- 0% {
- opacity: 0;
- transform: scale(.2)
- }
-
- 100% {
- opacity: 1;
- transform: scale(1)
- }
-}
-
-@keyframes scale-down {
- 0% {
- opacity: 0;
- transform: scale(1.8)
- }
-
- 100% {
- opacity: 1;
- transform: scale(1)
- }
-}
-
-@keyframes slide-top {
- 0% {
- opacity: 0;
- transform: translateY(-100%)
- }
-
- 100% {
- opacity: 1;
- transform: translateY(0)
- }
-}
-
-@keyframes slide-bottom {
- 0% {
- opacity: 0;
- transform: translateY(100%)
- }
-
- 100% {
- opacity: 1;
- transform: translateY(0)
- }
-}
-
-@keyframes shake {
-
- 0%,
- 100% {
- transform: translateX(0)
- }
-
- 10% {
- transform: translateX(-9px)
- }
-
- 20% {
- transform: translateX(8px)
- }
-
- 30% {
- transform: translateX(-7px)
- }
-
- 40% {
- transform: translateX(6px)
- }
-
- 50% {
- transform: translateX(-5px)
- }
-
- 60% {
- transform: translateX(4px)
- }
-
- 70% {
- transform: translateX(-3px)
- }
-
- 80% {
- transform: translateX(2px)
- }
-
- 90% {
- transform: translateX(-1px)
- }
-}
-
-@keyframes slide-left {
- 0% {
- opacity: 0;
- transform: translateX(-100%)
- }
-
- 100% {
- opacity: 1;
- transform: translateX(0)
- }
-}
-
-@keyframes slide-right {
- 0% {
- opacity: 0;
- transform: translateX(100%)
- }
-
- 100% {
- opacity: 1;
- transform: translateX(0)
- }
-}
\ No newline at end of file
diff --git a/colorui/icon.css b/colorui/icon.css
deleted file mode 100644
index 93bc0ed..0000000
--- a/colorui/icon.css
+++ /dev/null
@@ -1,1226 +0,0 @@
-@keyframes cuIcon-spin {
- 0% {
- -webkit-transform: rotate(0);
- transform: rotate(0);
- }
-
- 100% {
- -webkit-transform: rotate(359deg);
- transform: rotate(359deg);
- }
-}
-
-.cuIconfont-spin {
- -webkit-animation: cuIcon-spin 2s infinite linear;
- animation: cuIcon-spin 2s infinite linear;
- display: inline-block;
-}
-
-.cuIconfont-pulse {
- -webkit-animation: cuIcon-spin 1s infinite steps(8);
- animation: cuIcon-spin 1s infinite steps(8);
- display: inline-block;
-}
-
-[class*="cuIcon-"] {
- font-family: "cuIcon";
- font-size: 36rpx;
- font-style: normal;
-}
-
-@font-face {
- font-family: "cuIcon";
- src: url('//at.alicdn.com/t/font_533566_yfq2d9wdij.eot?t=1545239985831');
- /* IE9*/
- src: url('//at.alicdn.com/t/font_533566_yfq2d9wdij.eot?t=1545239985831#iefix') format('embedded-opentype'),
- /* IE6-IE8 */
- url('data:application/x-font-woff;charset=utf-8;base64,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') format('woff'),
- url('//at.alicdn.com/t/font_533566_yfq2d9wdij.ttf?t=1545239985831') format('truetype'),
- /* chrome, firefox, opera, Safari, Android, iOS 4.2+*/
- url('//at.alicdn.com/t/font_533566_yfq2d9wdij.svg?t=1545239985831#cuIconfont') format('svg');
- /* iOS 4.1- */
-}
-
-.cuIcon-appreciate:before {
- content: "\e644";
-}
-
-.cuIcon-check:before {
- content: "\e645";
-}
-
-.cuIcon-close:before {
- content: "\e646";
-}
-
-.cuIcon-edit:before {
- content: "\e649";
-}
-
-.cuIcon-emoji:before {
- content: "\e64a";
-}
-
-.cuIcon-favorfill:before {
- content: "\e64b";
-}
-
-.cuIcon-favor:before {
- content: "\e64c";
-}
-
-.cuIcon-loading:before {
- content: "\e64f";
-}
-
-.cuIcon-locationfill:before {
- content: "\e650";
-}
-
-.cuIcon-location:before {
- content: "\e651";
-}
-
-.cuIcon-phone:before {
- content: "\e652";
-}
-
-.cuIcon-roundcheckfill:before {
- content: "\e656";
-}
-
-.cuIcon-roundcheck:before {
- content: "\e657";
-}
-
-.cuIcon-roundclosefill:before {
- content: "\e658";
-}
-
-.cuIcon-roundclose:before {
- content: "\e659";
-}
-
-.cuIcon-roundrightfill:before {
- content: "\e65a";
-}
-
-.cuIcon-roundright:before {
- content: "\e65b";
-}
-
-.cuIcon-search:before {
- content: "\e65c";
-}
-
-.cuIcon-taxi:before {
- content: "\e65d";
-}
-
-.cuIcon-timefill:before {
- content: "\e65e";
-}
-
-.cuIcon-time:before {
- content: "\e65f";
-}
-
-.cuIcon-unfold:before {
- content: "\e661";
-}
-
-.cuIcon-warnfill:before {
- content: "\e662";
-}
-
-.cuIcon-warn:before {
- content: "\e663";
-}
-
-.cuIcon-camerafill:before {
- content: "\e664";
-}
-
-.cuIcon-camera:before {
- content: "\e665";
-}
-
-.cuIcon-commentfill:before {
- content: "\e666";
-}
-
-.cuIcon-comment:before {
- content: "\e667";
-}
-
-.cuIcon-likefill:before {
- content: "\e668";
-}
-
-.cuIcon-like:before {
- content: "\e669";
-}
-
-.cuIcon-notificationfill:before {
- content: "\e66a";
-}
-
-.cuIcon-notification:before {
- content: "\e66b";
-}
-
-.cuIcon-order:before {
- content: "\e66c";
-}
-
-.cuIcon-samefill:before {
- content: "\e66d";
-}
-
-.cuIcon-same:before {
- content: "\e66e";
-}
-
-.cuIcon-deliver:before {
- content: "\e671";
-}
-
-.cuIcon-evaluate:before {
- content: "\e672";
-}
-
-.cuIcon-pay:before {
- content: "\e673";
-}
-
-.cuIcon-send:before {
- content: "\e675";
-}
-
-.cuIcon-shop:before {
- content: "\e676";
-}
-
-.cuIcon-ticket:before {
- content: "\e677";
-}
-
-.cuIcon-back:before {
- content: "\e679";
-}
-
-.cuIcon-cascades:before {
- content: "\e67c";
-}
-
-.cuIcon-discover:before {
- content: "\e67e";
-}
-
-.cuIcon-list:before {
- content: "\e682";
-}
-
-.cuIcon-more:before {
- content: "\e684";
-}
-
-.cuIcon-scan:before {
- content: "\e689";
-}
-
-.cuIcon-settings:before {
- content: "\e68a";
-}
-
-.cuIcon-questionfill:before {
- content: "\e690";
-}
-
-.cuIcon-question:before {
- content: "\e691";
-}
-
-.cuIcon-shopfill:before {
- content: "\e697";
-}
-
-.cuIcon-form:before {
- content: "\e699";
-}
-
-.cuIcon-pic:before {
- content: "\e69b";
-}
-
-.cuIcon-filter:before {
- content: "\e69c";
-}
-
-.cuIcon-footprint:before {
- content: "\e69d";
-}
-
-.cuIcon-top:before {
- content: "\e69e";
-}
-
-.cuIcon-pulldown:before {
- content: "\e69f";
-}
-
-.cuIcon-pullup:before {
- content: "\e6a0";
-}
-
-.cuIcon-right:before {
- content: "\e6a3";
-}
-
-.cuIcon-refresh:before {
- content: "\e6a4";
-}
-
-.cuIcon-moreandroid:before {
- content: "\e6a5";
-}
-
-.cuIcon-deletefill:before {
- content: "\e6a6";
-}
-
-.cuIcon-refund:before {
- content: "\e6ac";
-}
-
-.cuIcon-cart:before {
- content: "\e6af";
-}
-
-.cuIcon-qrcode:before {
- content: "\e6b0";
-}
-
-.cuIcon-remind:before {
- content: "\e6b2";
-}
-
-.cuIcon-delete:before {
- content: "\e6b4";
-}
-
-.cuIcon-profile:before {
- content: "\e6b7";
-}
-
-.cuIcon-home:before {
- content: "\e6b8";
-}
-
-.cuIcon-cartfill:before {
- content: "\e6b9";
-}
-
-.cuIcon-discoverfill:before {
- content: "\e6ba";
-}
-
-.cuIcon-homefill:before {
- content: "\e6bb";
-}
-
-.cuIcon-message:before {
- content: "\e6bc";
-}
-
-.cuIcon-addressbook:before {
- content: "\e6bd";
-}
-
-.cuIcon-link:before {
- content: "\e6bf";
-}
-
-.cuIcon-lock:before {
- content: "\e6c0";
-}
-
-.cuIcon-unlock:before {
- content: "\e6c2";
-}
-
-.cuIcon-vip:before {
- content: "\e6c3";
-}
-
-.cuIcon-weibo:before {
- content: "\e6c4";
-}
-
-.cuIcon-activity:before {
- content: "\e6c5";
-}
-
-.cuIcon-friendaddfill:before {
- content: "\e6c9";
-}
-
-.cuIcon-friendadd:before {
- content: "\e6ca";
-}
-
-.cuIcon-friendfamous:before {
- content: "\e6cb";
-}
-
-.cuIcon-friend:before {
- content: "\e6cc";
-}
-
-.cuIcon-goods:before {
- content: "\e6cd";
-}
-
-.cuIcon-selection:before {
- content: "\e6ce";
-}
-
-.cuIcon-explore:before {
- content: "\e6d2";
-}
-
-.cuIcon-present:before {
- content: "\e6d3";
-}
-
-.cuIcon-squarecheckfill:before {
- content: "\e6d4";
-}
-
-.cuIcon-square:before {
- content: "\e6d5";
-}
-
-.cuIcon-squarecheck:before {
- content: "\e6d6";
-}
-
-.cuIcon-round:before {
- content: "\e6d7";
-}
-
-.cuIcon-roundaddfill:before {
- content: "\e6d8";
-}
-
-.cuIcon-roundadd:before {
- content: "\e6d9";
-}
-
-.cuIcon-add:before {
- content: "\e6da";
-}
-
-.cuIcon-notificationforbidfill:before {
- content: "\e6db";
-}
-
-.cuIcon-explorefill:before {
- content: "\e6dd";
-}
-
-.cuIcon-fold:before {
- content: "\e6de";
-}
-
-.cuIcon-game:before {
- content: "\e6df";
-}
-
-.cuIcon-redpacket:before {
- content: "\e6e0";
-}
-
-.cuIcon-selectionfill:before {
- content: "\e6e1";
-}
-
-.cuIcon-similar:before {
- content: "\e6e2";
-}
-
-.cuIcon-appreciatefill:before {
- content: "\e6e3";
-}
-
-.cuIcon-infofill:before {
- content: "\e6e4";
-}
-
-.cuIcon-info:before {
- content: "\e6e5";
-}
-
-.cuIcon-forwardfill:before {
- content: "\e6ea";
-}
-
-.cuIcon-forward:before {
- content: "\e6eb";
-}
-
-.cuIcon-rechargefill:before {
- content: "\e6ec";
-}
-
-.cuIcon-recharge:before {
- content: "\e6ed";
-}
-
-.cuIcon-vipcard:before {
- content: "\e6ee";
-}
-
-.cuIcon-voice:before {
- content: "\e6ef";
-}
-
-.cuIcon-voicefill:before {
- content: "\e6f0";
-}
-
-.cuIcon-friendfavor:before {
- content: "\e6f1";
-}
-
-.cuIcon-wifi:before {
- content: "\e6f2";
-}
-
-.cuIcon-share:before {
- content: "\e6f3";
-}
-
-.cuIcon-wefill:before {
- content: "\e6f4";
-}
-
-.cuIcon-we:before {
- content: "\e6f5";
-}
-
-.cuIcon-lightauto:before {
- content: "\e6f6";
-}
-
-.cuIcon-lightforbid:before {
- content: "\e6f7";
-}
-
-.cuIcon-lightfill:before {
- content: "\e6f8";
-}
-
-.cuIcon-camerarotate:before {
- content: "\e6f9";
-}
-
-.cuIcon-light:before {
- content: "\e6fa";
-}
-
-.cuIcon-barcode:before {
- content: "\e6fb";
-}
-
-.cuIcon-flashlightclose:before {
- content: "\e6fc";
-}
-
-.cuIcon-flashlightopen:before {
- content: "\e6fd";
-}
-
-.cuIcon-searchlist:before {
- content: "\e6fe";
-}
-
-.cuIcon-service:before {
- content: "\e6ff";
-}
-
-.cuIcon-sort:before {
- content: "\e700";
-}
-
-.cuIcon-down:before {
- content: "\e703";
-}
-
-.cuIcon-mobile:before {
- content: "\e704";
-}
-
-.cuIcon-mobilefill:before {
- content: "\e705";
-}
-
-.cuIcon-copy:before {
- content: "\e706";
-}
-
-.cuIcon-countdownfill:before {
- content: "\e707";
-}
-
-.cuIcon-countdown:before {
- content: "\e708";
-}
-
-.cuIcon-noticefill:before {
- content: "\e709";
-}
-
-.cuIcon-notice:before {
- content: "\e70a";
-}
-
-.cuIcon-upstagefill:before {
- content: "\e70e";
-}
-
-.cuIcon-upstage:before {
- content: "\e70f";
-}
-
-.cuIcon-babyfill:before {
- content: "\e710";
-}
-
-.cuIcon-baby:before {
- content: "\e711";
-}
-
-.cuIcon-brandfill:before {
- content: "\e712";
-}
-
-.cuIcon-brand:before {
- content: "\e713";
-}
-
-.cuIcon-choicenessfill:before {
- content: "\e714";
-}
-
-.cuIcon-choiceness:before {
- content: "\e715";
-}
-
-.cuIcon-clothesfill:before {
- content: "\e716";
-}
-
-.cuIcon-clothes:before {
- content: "\e717";
-}
-
-.cuIcon-creativefill:before {
- content: "\e718";
-}
-
-.cuIcon-creative:before {
- content: "\e719";
-}
-
-.cuIcon-female:before {
- content: "\e71a";
-}
-
-.cuIcon-keyboard:before {
- content: "\e71b";
-}
-
-.cuIcon-male:before {
- content: "\e71c";
-}
-
-.cuIcon-newfill:before {
- content: "\e71d";
-}
-
-.cuIcon-new:before {
- content: "\e71e";
-}
-
-.cuIcon-pullleft:before {
- content: "\e71f";
-}
-
-.cuIcon-pullright:before {
- content: "\e720";
-}
-
-.cuIcon-rankfill:before {
- content: "\e721";
-}
-
-.cuIcon-rank:before {
- content: "\e722";
-}
-
-.cuIcon-bad:before {
- content: "\e723";
-}
-
-.cuIcon-cameraadd:before {
- content: "\e724";
-}
-
-.cuIcon-focus:before {
- content: "\e725";
-}
-
-.cuIcon-friendfill:before {
- content: "\e726";
-}
-
-.cuIcon-cameraaddfill:before {
- content: "\e727";
-}
-
-.cuIcon-apps:before {
- content: "\e729";
-}
-
-.cuIcon-paintfill:before {
- content: "\e72a";
-}
-
-.cuIcon-paint:before {
- content: "\e72b";
-}
-
-.cuIcon-picfill:before {
- content: "\e72c";
-}
-
-.cuIcon-refresharrow:before {
- content: "\e72d";
-}
-
-.cuIcon-colorlens:before {
- content: "\e6e6";
-}
-
-.cuIcon-markfill:before {
- content: "\e730";
-}
-
-.cuIcon-mark:before {
- content: "\e731";
-}
-
-.cuIcon-presentfill:before {
- content: "\e732";
-}
-
-.cuIcon-repeal:before {
- content: "\e733";
-}
-
-.cuIcon-album:before {
- content: "\e734";
-}
-
-.cuIcon-peoplefill:before {
- content: "\e735";
-}
-
-.cuIcon-people:before {
- content: "\e736";
-}
-
-.cuIcon-servicefill:before {
- content: "\e737";
-}
-
-.cuIcon-repair:before {
- content: "\e738";
-}
-
-.cuIcon-file:before {
- content: "\e739";
-}
-
-.cuIcon-repairfill:before {
- content: "\e73a";
-}
-
-.cuIcon-taoxiaopu:before {
- content: "\e73b";
-}
-
-.cuIcon-weixin:before {
- content: "\e612";
-}
-
-.cuIcon-attentionfill:before {
- content: "\e73c";
-}
-
-.cuIcon-attention:before {
- content: "\e73d";
-}
-
-.cuIcon-commandfill:before {
- content: "\e73e";
-}
-
-.cuIcon-command:before {
- content: "\e73f";
-}
-
-.cuIcon-communityfill:before {
- content: "\e740";
-}
-
-.cuIcon-community:before {
- content: "\e741";
-}
-
-.cuIcon-read:before {
- content: "\e742";
-}
-
-.cuIcon-calendar:before {
- content: "\e74a";
-}
-
-.cuIcon-cut:before {
- content: "\e74b";
-}
-
-.cuIcon-magic:before {
- content: "\e74c";
-}
-
-.cuIcon-backwardfill:before {
- content: "\e74d";
-}
-
-.cuIcon-playfill:before {
- content: "\e74f";
-}
-
-.cuIcon-stop:before {
- content: "\e750";
-}
-
-.cuIcon-tagfill:before {
- content: "\e751";
-}
-
-.cuIcon-tag:before {
- content: "\e752";
-}
-
-.cuIcon-group:before {
- content: "\e753";
-}
-
-.cuIcon-all:before {
- content: "\e755";
-}
-
-.cuIcon-backdelete:before {
- content: "\e756";
-}
-
-.cuIcon-hotfill:before {
- content: "\e757";
-}
-
-.cuIcon-hot:before {
- content: "\e758";
-}
-
-.cuIcon-post:before {
- content: "\e759";
-}
-
-.cuIcon-radiobox:before {
- content: "\e75b";
-}
-
-.cuIcon-rounddown:before {
- content: "\e75c";
-}
-
-.cuIcon-upload:before {
- content: "\e75d";
-}
-
-.cuIcon-writefill:before {
- content: "\e760";
-}
-
-.cuIcon-write:before {
- content: "\e761";
-}
-
-.cuIcon-radioboxfill:before {
- content: "\e763";
-}
-
-.cuIcon-punch:before {
- content: "\e764";
-}
-
-.cuIcon-shake:before {
- content: "\e765";
-}
-
-.cuIcon-move:before {
- content: "\e768";
-}
-
-.cuIcon-safe:before {
- content: "\e769";
-}
-
-.cuIcon-activityfill:before {
- content: "\e775";
-}
-
-.cuIcon-crownfill:before {
- content: "\e776";
-}
-
-.cuIcon-crown:before {
- content: "\e777";
-}
-
-.cuIcon-goodsfill:before {
- content: "\e778";
-}
-
-.cuIcon-messagefill:before {
- content: "\e779";
-}
-
-.cuIcon-profilefill:before {
- content: "\e77a";
-}
-
-.cuIcon-sound:before {
- content: "\e77b";
-}
-
-.cuIcon-sponsorfill:before {
- content: "\e77c";
-}
-
-.cuIcon-sponsor:before {
- content: "\e77d";
-}
-
-.cuIcon-upblock:before {
- content: "\e77e";
-}
-
-.cuIcon-weblock:before {
- content: "\e77f";
-}
-
-.cuIcon-weunblock:before {
- content: "\e780";
-}
-
-.cuIcon-my:before {
- content: "\e78b";
-}
-
-.cuIcon-myfill:before {
- content: "\e78c";
-}
-
-.cuIcon-emojifill:before {
- content: "\e78d";
-}
-
-.cuIcon-emojiflashfill:before {
- content: "\e78e";
-}
-
-.cuIcon-flashbuyfill:before {
- content: "\e78f";
-}
-
-.cuIcon-text:before {
- content: "\e791";
-}
-
-.cuIcon-goodsfavor:before {
- content: "\e794";
-}
-
-.cuIcon-musicfill:before {
- content: "\e795";
-}
-
-.cuIcon-musicforbidfill:before {
- content: "\e796";
-}
-
-.cuIcon-card:before {
- content: "\e624";
-}
-
-.cuIcon-triangledownfill:before {
- content: "\e79b";
-}
-
-.cuIcon-triangleupfill:before {
- content: "\e79c";
-}
-
-.cuIcon-roundleftfill-copy:before {
- content: "\e79e";
-}
-
-.cuIcon-font:before {
- content: "\e76a";
-}
-
-.cuIcon-title:before {
- content: "\e82f";
-}
-
-.cuIcon-recordfill:before {
- content: "\e7a4";
-}
-
-.cuIcon-record:before {
- content: "\e7a6";
-}
-
-.cuIcon-cardboardfill:before {
- content: "\e7a9";
-}
-
-.cuIcon-cardboard:before {
- content: "\e7aa";
-}
-
-.cuIcon-formfill:before {
- content: "\e7ab";
-}
-
-.cuIcon-coin:before {
- content: "\e7ac";
-}
-
-.cuIcon-cardboardforbid:before {
- content: "\e7af";
-}
-
-.cuIcon-circlefill:before {
- content: "\e7b0";
-}
-
-.cuIcon-circle:before {
- content: "\e7b1";
-}
-
-.cuIcon-attentionforbid:before {
- content: "\e7b2";
-}
-
-.cuIcon-attentionforbidfill:before {
- content: "\e7b3";
-}
-
-.cuIcon-attentionfavorfill:before {
- content: "\e7b4";
-}
-
-.cuIcon-attentionfavor:before {
- content: "\e7b5";
-}
-
-.cuIcon-titles:before {
- content: "\e701";
-}
-
-.cuIcon-icloading:before {
- content: "\e67a";
-}
-
-.cuIcon-full:before {
- content: "\e7bc";
-}
-
-.cuIcon-mail:before {
- content: "\e7bd";
-}
-
-.cuIcon-peoplelist:before {
- content: "\e7be";
-}
-
-.cuIcon-goodsnewfill:before {
- content: "\e7bf";
-}
-
-.cuIcon-goodsnew:before {
- content: "\e7c0";
-}
-
-.cuIcon-medalfill:before {
- content: "\e7c1";
-}
-
-.cuIcon-medal:before {
- content: "\e7c2";
-}
-
-.cuIcon-newsfill:before {
- content: "\e7c3";
-}
-
-.cuIcon-newshotfill:before {
- content: "\e7c4";
-}
-
-.cuIcon-newshot:before {
- content: "\e7c5";
-}
-
-.cuIcon-news:before {
- content: "\e7c6";
-}
-
-.cuIcon-videofill:before {
- content: "\e7c7";
-}
-
-.cuIcon-video:before {
- content: "\e7c8";
-}
-
-.cuIcon-exit:before {
- content: "\e7cb";
-}
-
-.cuIcon-skinfill:before {
- content: "\e7cc";
-}
-
-.cuIcon-skin:before {
- content: "\e7cd";
-}
-
-.cuIcon-moneybagfill:before {
- content: "\e7ce";
-}
-
-.cuIcon-usefullfill:before {
- content: "\e7cf";
-}
-
-.cuIcon-usefull:before {
- content: "\e7d0";
-}
-
-.cuIcon-moneybag:before {
- content: "\e7d1";
-}
-
-.cuIcon-redpacket_fill:before {
- content: "\e7d3";
-}
-
-.cuIcon-subscription:before {
- content: "\e7d4";
-}
-
-.cuIcon-loading1:before {
- content: "\e633";
-}
-
-.cuIcon-github:before {
- content: "\e692";
-}
-
-.cuIcon-global:before {
- content: "\e7eb";
-}
-
-.cuIcon-settingsfill:before {
- content: "\e6ab";
-}
-
-.cuIcon-back_android:before {
- content: "\e7ed";
-}
-
-.cuIcon-expressman:before {
- content: "\e7ef";
-}
-
-.cuIcon-evaluate_fill:before {
- content: "\e7f0";
-}
-
-.cuIcon-group_fill:before {
- content: "\e7f5";
-}
-
-.cuIcon-play_forward_fill:before {
- content: "\e7f6";
-}
-
-.cuIcon-deliver_fill:before {
- content: "\e7f7";
-}
-
-.cuIcon-notice_forbid_fill:before {
- content: "\e7f8";
-}
-
-.cuIcon-fork:before {
- content: "\e60c";
-}
-
-.cuIcon-pick:before {
- content: "\e7fa";
-}
-
-.cuIcon-wenzi:before {
- content: "\e6a7";
-}
-
-.cuIcon-ellipse:before {
- content: "\e600";
-}
-
-.cuIcon-qr_code:before {
- content: "\e61b";
-}
-
-.cuIcon-dianhua:before {
- content: "\e64d";
-}
-
-.cuIcon-cuIcon:before {
- content: "\e602";
-}
-
-.cuIcon-loading2:before {
- content: "\e7f1";
-}
-
-.cuIcon-btn:before {
- content: "\e601";
-}
diff --git a/colorui/main.css b/colorui/main.css
deleted file mode 100644
index c3e94d5..0000000
--- a/colorui/main.css
+++ /dev/null
@@ -1,3889 +0,0 @@
-/*
- ColorUi for uniApp v2.1.6 | by 鏂囨檽娓� 2019-05-31 10:44:24
- 浠呬緵瀛︿範浜ゆ祦锛屽浣滃畠鐢ㄦ墍鎵垮彈鐨勬硶寰嬭矗浠讳竴姒備笌浣滆�呮棤鍏�
-
- *浣跨敤ColorUi寮�鍙戞墿灞曚笌鎻掍欢鏃讹紝璇锋敞鏄庡熀浜嶤olorUi寮�鍙�
-
- 锛圦Q浜ゆ祦缇わ細240787041锛�
-*/
-
-/* ==================
- 鍒濆鍖�
- ==================== */
-body {
- background-color: #f1f1f1;
- font-size: 28upx;
- color: #333333;
- font-family: Helvetica Neue, Helvetica, sans-serif;
-}
-
-view,
-scroll-view,
-swiper,
-button,
-input,
-textarea,
-label,
-navigator,
-image {
- box-sizing: border-box;
-}
-
-.round {
- border-radius: 5000upx;
-}
-
-.radius {
- border-radius: 6upx;
-}
-
-/* ==================
- 鍥剧墖
- ==================== */
-
-image {
- max-width: 100%;
- display: inline-block;
- position: relative;
- z-index: 0;
-}
-
-image.loading::before {
- content: "";
- background-color: #f5f5f5;
- display: block;
- position: absolute;
- width: 100%;
- height: 100%;
- z-index: -2;
-}
-
-image.loading::after {
- content: "\e7f1";
- font-family: "cuIcon";
- position: absolute;
- top: 0;
- left: 0;
- width: 32upx;
- height: 32upx;
- line-height: 32upx;
- right: 0;
- bottom: 0;
- z-index: -1;
- font-size: 32upx;
- margin: auto;
- color: #ccc;
- -webkit-animation: cuIcon-spin 2s infinite linear;
- animation: cuIcon-spin 2s infinite linear;
- display: block;
-}
-
-.response {
- width: 100%;
-}
-
-/* ==================
- 寮�鍏�
- ==================== */
-
-/* switch,
-checkbox,
-radio {
- position: relative;
-} */
-
-switch::after,
-switch::before {
- font-family: "cuIcon";
- content: "\e645";
- position: absolute;
- color: #ffffff !important;
- top: 0%;
- left: 0upx;
- font-size: 26upx;
- line-height: 26px;
- width: 50%;
- text-align: center;
- pointer-events: none;
- transform: scale(0, 0);
- transition: all 0.3s ease-in-out 0s;
- z-index: 9;
- bottom: 0;
- height: 26px;
- margin: auto;
-}
-
-switch::before {
- content: "\e646";
- right: 0;
- transform: scale(1, 1);
- left: auto;
-}
-
-switch[checked]::after,
-switch.checked::after {
- transform: scale(1, 1);
-}
-
-switch[checked]::before,
-switch.checked::before {
- transform: scale(0, 0);
-}
-
-/* #ifndef MP-ALIPAY */
-/* radio::before,
-checkbox::before {
- font-family: "cuIcon";
- content: "\e645";
- position: absolute;
- color: #ffffff !important;
- top: 50%;
- margin-top: -8px;
- right: 5px;
- font-size: 32upx;
- line-height: 16px;
- pointer-events: none;
- transform: scale(1, 1);
- transition: all 0.3s ease-in-out 0s;
- z-index: 9;
-}
-
-radio .wx-radio-input,
-checkbox .wx-checkbox-input,
-radio .uni-radio-input,
-checkbox .uni-checkbox-input {
- margin: 0;
- width: 24px;
- height: 24px;
-}
-
-checkbox.round .wx-checkbox-input,
-checkbox.round .uni-checkbox-input {
- border-radius: 100upx;
-}
- */
-/* #endif */
-
-switch[checked]::before {
- transform: scale(0, 0);
-}
-
-switch .wx-switch-input,
-switch .uni-switch-input {
- border: none;
- padding: 0 24px;
- width: 48px;
- height: 26px;
- margin: 0;
- border-radius: 100upx;
-}
-
-switch .wx-switch-input:not([class*="bg-"]),
-switch .uni-switch-input:not([class*="bg-"]) {
- background: #8799a3 !important;
-}
-
-switch .wx-switch-input::after,
-switch .uni-switch-input::after {
- margin: auto;
- width: 26px;
- height: 26px;
- border-radius: 100upx;
- left: 0upx;
- top: 0upx;
- bottom: 0upx;
- position: absolute;
- transform: scale(0.9, 0.9);
- transition: all 0.1s ease-in-out 0s;
-}
-
-switch .wx-switch-input.wx-switch-input-checked::after,
-switch .uni-switch-input.uni-switch-input-checked::after {
- margin: auto;
- left: 22px;
- box-shadow: none;
- transform: scale(0.9, 0.9);
-}
-
-radio-group {
- display: inline-block;
-}
-
-
-
-switch.radius .wx-switch-input::after,
-switch.radius .wx-switch-input,
-switch.radius .wx-switch-input::before,
-switch.radius .uni-switch-input::after,
-switch.radius .uni-switch-input,
-switch.radius .uni-switch-input::before {
- border-radius: 10upx;
-}
-
-/* switch .wx-switch-input::before,
-radio.radio::before, */
-/* checkbox .wx-checkbox-input::before, */
-/* radio .wx-radio-input::before, */
-/* switch .uni-switch-input::before, */
-/* radio.radio::before, */
-/* checkbox .uni-checkbox-input::before, */
-/* radio .uni-radio-input::before {
- display: none;
-} */
-
-
-.switch-sex::after {
- content: "\e71c";
-}
-
-.switch-sex::before {
- content: "\e71a";
-}
-
-.switch-sex .wx-switch-input,
-.switch-sex .uni-switch-input {
- background: #e54d42 !important;
- border-color: #e54d42 !important;
-}
-
-.switch-sex[checked] .wx-switch-input,
-.switch-sex.checked .uni-switch-input {
- background: #0081ff !important;
- border-color: #0081ff !important;
-}
-
-switch.red[checked] .wx-switch-input.wx-switch-input-checked,
-checkbox.red[checked] .wx-checkbox-input,
-radio.red[checked] .wx-radio-input,
-switch.red.checked .uni-switch-input.uni-switch-input-checked,
-checkbox.red.checked .uni-checkbox-input,
-radio.red.checked .uni-radio-input {
- background-color: #e54d42 !important;
- border-color: #e54d42 !important;
- color: #ffffff !important;
-}
-
-switch.orange[checked] .wx-switch-input,
-checkbox.orange[checked] .wx-checkbox-input,
-radio.orange[checked] .wx-radio-input,
-switch.orange.checked .uni-switch-input,
-checkbox.orange.checked .uni-checkbox-input,
-radio.orange.checked .uni-radio-input {
- background-color: #f37b1d !important;
- border-color: #f37b1d !important;
- color: #ffffff !important;
-}
-
-switch.yellow[checked] .wx-switch-input,
-checkbox.yellow[checked] .wx-checkbox-input,
-radio.yellow[checked] .wx-radio-input,
-switch.yellow.checked .uni-switch-input,
-checkbox.yellow.checked .uni-checkbox-input,
-radio.yellow.checked .uni-radio-input {
- background-color: #fbbd08 !important;
- border-color: #fbbd08 !important;
- color: #333333 !important;
-}
-
-switch.olive[checked] .wx-switch-input,
-checkbox.olive[checked] .wx-checkbox-input,
-radio.olive[checked] .wx-radio-input,
-switch.olive.checked .uni-switch-input,
-checkbox.olive.checked .uni-checkbox-input,
-radio.olive.checked .uni-radio-input {
- background-color: #8dc63f !important;
- border-color: #8dc63f !important;
- color: #ffffff !important;
-}
-
-switch.green[checked] .wx-switch-input,
-switch[checked] .wx-switch-input,
-checkbox.green[checked] .wx-checkbox-input,
-checkbox[checked] .wx-checkbox-input,
-radio.green[checked] .wx-radio-input,
-radio[checked] .wx-radio-input,
-switch.green.checked .uni-switch-input,
-switch.checked .uni-switch-input,
-checkbox.green.checked .uni-checkbox-input,
-checkbox.checked .uni-checkbox-input,
-radio.green.checked .uni-radio-input,
-radio.checked .uni-radio-input {
- background-color: #39b54a !important;
- border-color: #39b54a !important;
- color: #ffffff !important;
- border-color: #39B54A !important;
-}
-
-switch.cyan[checked] .wx-switch-input,
-checkbox.cyan[checked] .wx-checkbox-input,
-radio.cyan[checked] .wx-radio-input,
-switch.cyan.checked .uni-switch-input,
-checkbox.cyan.checked .uni-checkbox-input,
-radio.cyan.checked .uni-radio-input {
- background-color: #1cbbb4 !important;
- border-color: #1cbbb4 !important;
- color: #ffffff !important;
-}
-
-switch.blue[checked] .wx-switch-input,
-checkbox.blue[checked] .wx-checkbox-input,
-radio.blue[checked] .wx-radio-input,
-switch.blue.checked .uni-switch-input,
-checkbox.blue.checked .uni-checkbox-input,
-radio.blue.checked .uni-radio-input {
- background-color: #0081ff !important;
- border-color: #0081ff !important;
- color: #ffffff !important;
-}
-
-switch.purple[checked] .wx-switch-input,
-checkbox.purple[checked] .wx-checkbox-input,
-radio.purple[checked] .wx-radio-input,
-switch.purple.checked .uni-switch-input,
-checkbox.purple.checked .uni-checkbox-input,
-radio.purple.checked .uni-radio-input {
- background-color: #6739b6 !important;
- border-color: #6739b6 !important;
- color: #ffffff !important;
-}
-
-switch.mauve[checked] .wx-switch-input,
-checkbox.mauve[checked] .wx-checkbox-input,
-radio.mauve[checked] .wx-radio-input,
-switch.mauve.checked .uni-switch-input,
-checkbox.mauve.checked .uni-checkbox-input,
-radio.mauve.checked .uni-radio-input {
- background-color: #9c26b0 !important;
- border-color: #9c26b0 !important;
- color: #ffffff !important;
-}
-
-switch.pink[checked] .wx-switch-input,
-checkbox.pink[checked] .wx-checkbox-input,
-radio.pink[checked] .wx-radio-input,
-switch.pink.checked .uni-switch-input,
-checkbox.pink.checked .uni-checkbox-input,
-radio.pink.checked .uni-radio-input {
- background-color: #e03997 !important;
- border-color: #e03997 !important;
- color: #ffffff !important;
-}
-
-switch.brown[checked] .wx-switch-input,
-checkbox.brown[checked] .wx-checkbox-input,
-radio.brown[checked] .wx-radio-input,
-switch.brown.checked .uni-switch-input,
-checkbox.brown.checked .uni-checkbox-input,
-radio.brown.checked .uni-radio-input {
- background-color: #a5673f !important;
- border-color: #a5673f !important;
- color: #ffffff !important;
-}
-
-switch.grey[checked] .wx-switch-input,
-checkbox.grey[checked] .wx-checkbox-input,
-radio.grey[checked] .wx-radio-input,
-switch.grey.checked .uni-switch-input,
-checkbox.grey.checked .uni-checkbox-input,
-radio.grey.checked .uni-radio-input {
- background-color: #8799a3 !important;
- border-color: #8799a3 !important;
- color: #ffffff !important;
-}
-
-switch.gray[checked] .wx-switch-input,
-checkbox.gray[checked] .wx-checkbox-input,
-radio.gray[checked] .wx-radio-input,
-switch.gray.checked .uni-switch-input,
-checkbox.gray.checked .uni-checkbox-input,
-radio.gray.checked .uni-radio-input {
- background-color: #f0f0f0 !important;
- border-color: #f0f0f0 !important;
- color: #333333 !important;
-}
-
-switch.black[checked] .wx-switch-input,
-checkbox.black[checked] .wx-checkbox-input,
-radio.black[checked] .wx-radio-input,
-switch.black.checked .uni-switch-input,
-checkbox.black.checked .uni-checkbox-input,
-radio.black.checked .uni-radio-input {
- background-color: #333333 !important;
- border-color: #333333 !important;
- color: #ffffff !important;
-}
-
-switch.white[checked] .wx-switch-input,
-checkbox.white[checked] .wx-checkbox-input,
-radio.white[checked] .wx-radio-input,
-switch.white.checked .uni-switch-input,
-checkbox.white.checked .uni-checkbox-input,
-radio.white.checked .uni-radio-input {
- background-color: #ffffff !important;
- border-color: #ffffff !important;
- color: #333333 !important;
-}
-
-/* ==================
- 杈规
- ==================== */
-
-/* -- 瀹炵嚎 -- */
-
-.solid,
-.solid-top,
-.solid-right,
-.solid-bottom,
-.solid-left,
-.solids,
-.solids-top,
-.solids-right,
-.solids-bottom,
-.solids-left,
-.dashed,
-.dashed-top,
-.dashed-right,
-.dashed-bottom,
-.dashed-left {
- position: relative;
-}
-
-.solid::after,
-.solid-top::after,
-.solid-right::after,
-.solid-bottom::after,
-.solid-left::after,
-.solids::after,
-.solids-top::after,
-.solids-right::after,
-.solids-bottom::after,
-.solids-left::after,
-.dashed::after,
-.dashed-top::after,
-.dashed-right::after,
-.dashed-bottom::after,
-.dashed-left::after {
- content: " ";
- width: 200%;
- height: 200%;
- position: absolute;
- top: 0;
- left: 0;
- border-radius: inherit;
- transform: scale(0.5);
- transform-origin: 0 0;
- pointer-events: none;
- box-sizing: border-box;
-}
-
-.solid::after {
- border: 1upx solid rgba(0, 0, 0, 0.1);
-}
-
-.solid-top::after {
- border-top: 1upx solid rgba(0, 0, 0, 0.1);
-}
-
-.solid-right::after {
- border-right: 1upx solid rgba(0, 0, 0, 0.1);
-}
-
-.solid-bottom::after {
- border-bottom: 1upx solid rgba(0, 0, 0, 0.1);
-}
-
-.solid-left::after {
- border-left: 1upx solid rgba(0, 0, 0, 0.1);
-}
-
-.solids::after {
- border: 8upx solid #eee;
-}
-
-.solids-top::after {
- border-top: 8upx solid #eee;
-}
-
-.solids-right::after {
- border-right: 8upx solid #eee;
-}
-
-.solids-bottom::after {
- border-bottom: 8upx solid #eee;
-}
-
-.solids-left::after {
- border-left: 8upx solid #eee;
-}
-
-/* -- 铏氱嚎 -- */
-
-.dashed::after {
- border: 1upx dashed #ddd;
-}
-
-.dashed-top::after {
- border-top: 1upx dashed #ddd;
-}
-
-.dashed-right::after {
- border-right: 1upx dashed #ddd;
-}
-
-.dashed-bottom::after {
- border-bottom: 1upx dashed #ddd;
-}
-
-.dashed-left::after {
- border-left: 1upx dashed #ddd;
-}
-
-/* -- 闃村奖 -- */
-
-.shadow[class*='white'] {
- --ShadowSize: 0 1upx 6upx;
-}
-
-.shadow-lg {
- --ShadowSize: 0upx 40upx 100upx 0upx;
-}
-
-.shadow-warp {
- position: relative;
- box-shadow: 0 0 10upx rgba(0, 0, 0, 0.1);
-}
-
-.shadow-warp:before,
-.shadow-warp:after {
- position: absolute;
- content: "";
- top: 20upx;
- bottom: 30upx;
- left: 20upx;
- width: 50%;
- box-shadow: 0 30upx 20upx rgba(0, 0, 0, 0.2);
- transform: rotate(-3deg);
- z-index: -1;
-}
-
-.shadow-warp:after {
- right: 20upx;
- left: auto;
- transform: rotate(3deg);
-}
-
-.shadow-blur {
- position: relative;
-}
-
-.shadow-blur::before {
- content: "";
- display: block;
- background: inherit;
- filter: blur(10upx);
- position: absolute;
- width: 100%;
- height: 100%;
- top: 10upx;
- left: 10upx;
- z-index: -1;
- opacity: 0.4;
- transform-origin: 0 0;
- border-radius: inherit;
- transform: scale(1, 1);
-}
-
-/* ==================
- 鎸夐挳
- ==================== */
-
-.cu-btn {
- position: relative;
- border: 0upx;
- display: inline-flex;
- align-items: center;
- justify-content: center;
- box-sizing: border-box;
- padding: 0 30upx;
- font-size: 28upx;
- height: 64upx;
- line-height: 1;
- text-align: center;
- text-decoration: none;
- overflow: visible;
- margin-left: initial;
- transform: translate(0upx, 0upx);
- margin-right: initial;
-}
-
-.cu-btn::after {
- display: none;
-}
-
-.cu-btn:not([class*="bg-"]) {
- background-color: #f0f0f0;
-}
-
-.cu-btn[class*="line"] {
- background-color: transparent;
-}
-
-.cu-btn[class*="line"]::after {
- content: " ";
- display: block;
- width: 200%;
- height: 200%;
- position: absolute;
- top: 0;
- left: 0;
- border: 1upx solid currentColor;
- transform: scale(0.5);
- transform-origin: 0 0;
- box-sizing: border-box;
- border-radius: 12upx;
- z-index: 1;
- pointer-events: none;
-}
-
-.cu-btn.round[class*="line"]::after {
- border-radius: 1000upx;
-}
-
-.cu-btn[class*="lines"]::after {
- border: 6upx solid currentColor;
-}
-
-.cu-btn[class*="bg-"]::after {
- display: none;
-}
-
-.cu-btn.sm {
- padding: 0 20upx;
- font-size: 20upx;
- height: 48upx;
-}
-
-.cu-btn.lg {
- padding: 0 40upx;
- font-size: 32upx;
- height: 80upx;
-}
-
-.cu-btn.cuIcon.sm {
- width: 48upx;
- height: 48upx;
-}
-
-.cu-btn.cuIcon {
- width: 64upx;
- height: 64upx;
- border-radius: 500upx;
- padding: 0;
-}
-
-button.cuIcon.lg {
- width: 80upx;
- height: 80upx;
-}
-
-.cu-btn.shadow-blur::before {
- top: 4upx;
- left: 4upx;
- filter: blur(6upx);
- opacity: 0.6;
-}
-
-.cu-btn.button-hover {
- transform: translate(1upx, 1upx);
-}
-
-.block {
- display: block;
-}
-
-.cu-btn.block {
- display: flex;
-}
-
-.cu-btn[disabled] {
- opacity: 0.6;
- color: #ffffff;
-}
-
-/* ==================
- 寰界珷
- ==================== */
-
-.cu-tag {
- font-size: 24upx;
- vertical-align: middle;
- position: relative;
- display: inline-flex;
- align-items: center;
- justify-content: center;
- box-sizing: border-box;
- padding: 0upx 16upx;
- height: 48upx;
- font-family: Helvetica Neue, Helvetica, sans-serif;
- white-space: nowrap;
-}
-
-.cu-tag:not([class*="bg"]):not([class*="line"]) {
- background-color: #f1f1f1;
-}
-
-.cu-tag[class*="line-"]::after {
- content: " ";
- width: 200%;
- height: 200%;
- position: absolute;
- top: 0;
- left: 0;
- border: 1upx solid currentColor;
- transform: scale(0.5);
- transform-origin: 0 0;
- box-sizing: border-box;
- border-radius: inherit;
- z-index: 1;
- pointer-events: none;
-}
-
-.cu-tag.radius[class*="line"]::after {
- border-radius: 12upx;
-}
-
-.cu-tag.round[class*="line"]::after {
- border-radius: 1000upx;
-}
-
-.cu-tag[class*="line-"]::after {
- border-radius: 0;
-}
-
-.cu-tag+.cu-tag {
- margin-left: 10upx;
-}
-
-.cu-tag.sm {
- font-size: 20upx;
- padding: 0upx 12upx;
- height: 32upx;
-}
-
-.cu-capsule {
- display: inline-flex;
- vertical-align: middle;
-}
-
-.cu-capsule+.cu-capsule {
- margin-left: 10upx;
-}
-
-.cu-capsule .cu-tag {
- margin: 0;
-}
-
-.cu-capsule .cu-tag[class*="line-"]:last-child::after {
- border-left: 0upx solid transparent;
-}
-
-.cu-capsule .cu-tag[class*="line-"]:first-child::after {
- border-right: 0upx solid transparent;
-}
-
-.cu-capsule.radius .cu-tag:first-child {
- border-top-left-radius: 6upx;
- border-bottom-left-radius: 6upx;
-}
-
-.cu-capsule.radius .cu-tag:last-child::after,
-.cu-capsule.radius .cu-tag[class*="line-"] {
- border-top-right-radius: 12upx;
- border-bottom-right-radius: 12upx;
-}
-
-.cu-capsule.round .cu-tag:first-child {
- border-top-left-radius: 200upx;
- border-bottom-left-radius: 200upx;
- text-indent: 4upx;
-}
-
-.cu-capsule.round .cu-tag:last-child::after,
-.cu-capsule.round .cu-tag:last-child {
- border-top-right-radius: 200upx;
- border-bottom-right-radius: 200upx;
- text-indent: -4upx;
-}
-
-.cu-tag.badge {
- border-radius: 200upx;
- position: absolute;
- top: -10upx;
- right: -10upx;
- font-size: 20upx;
- padding: 0upx 10upx;
- height: 28upx;
- color: #ffffff;
-}
-
-.cu-tag.badge:not([class*="bg-"]) {
- background-color: #dd514c;
-}
-
-.cu-tag:empty:not([class*="cuIcon-"]) {
- padding: 0upx;
- width: 16upx;
- height: 16upx;
- top: -4upx;
- right: -4upx;
-}
-
-.cu-tag[class*="cuIcon-"] {
- width: 32upx;
- height: 32upx;
- top: -4upx;
- right: -4upx;
-}
-
-/* ==================
- 澶村儚
- ==================== */
-
-.cu-avatar {
- font-variant: small-caps;
- margin: 0;
- padding: 0;
- display: inline-flex;
- text-align: center;
- justify-content: center;
- align-items: center;
- background-color: #ccc;
- color: #ffffff;
- white-space: nowrap;
- position: relative;
- width: 64upx;
- height: 64upx;
- background-size: cover;
- background-position: center;
- vertical-align: middle;
- font-size: 1.5em;
-}
-
-.cu-avatar.sm {
- width: 48upx;
- height: 48upx;
- font-size: 1em;
-}
-
-.cu-avatar.lg {
- width: 96upx;
- height: 96upx;
- font-size: 2em;
-}
-
-.cu-avatar.xl {
- width: 128upx;
- height: 128upx;
- font-size: 2.5em;
-}
-
-.cu-avatar .avatar-text {
- font-size: 0.4em;
-}
-
-.cu-avatar-group {
- direction: rtl;
- unicode-bidi: bidi-override;
- padding: 0 10upx 0 40upx;
- display: inline-block;
-}
-
-.cu-avatar-group .cu-avatar {
- margin-left: -30upx;
- border: 4upx solid #f1f1f1;
- vertical-align: middle;
-}
-
-.cu-avatar-group .cu-avatar.sm {
- margin-left: -20upx;
- border: 1upx solid #f1f1f1;
-}
-
-/* ==================
- 杩涘害鏉�
- ==================== */
-
-.cu-progress {
- overflow: hidden;
- height: 28upx;
- background-color: #ebeef5;
- display: inline-flex;
- align-items: center;
- width: 100%;
-}
-
-.cu-progress+view,
-.cu-progress+text {
- line-height: 1;
-}
-
-.cu-progress.xs {
- height: 10upx;
-}
-
-.cu-progress.sm {
- height: 20upx;
-}
-
-.cu-progress view {
- width: 0;
- height: 100%;
- align-items: center;
- display: flex;
- justify-items: flex-end;
- justify-content: space-around;
- font-size: 20upx;
- color: #ffffff;
- transition: width 0.6s ease;
-}
-
-.cu-progress text {
- align-items: center;
- display: flex;
- font-size: 20upx;
- color: #333333;
- text-indent: 10upx;
-}
-
-.cu-progress.text-progress {
- padding-right: 60upx;
-}
-
-.cu-progress.striped view {
- background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent);
- background-size: 72upx 72upx;
-}
-
-.cu-progress.active view {
- animation: progress-stripes 2s linear infinite;
-}
-
-@keyframes progress-stripes {
- from {
- background-position: 72upx 0;
- }
-
- to {
- background-position: 0 0;
- }
-}
-
-/* ==================
- 鍔犺浇
- ==================== */
-
-.cu-load {
- display: block;
- line-height: 3em;
- text-align: center;
-}
-
-.cu-load::before {
- font-family: "cuIcon";
- display: inline-block;
- margin-right: 6upx;
-}
-
-.cu-load.loading::before {
- content: "\e67a";
- animation: cuIcon-spin 2s infinite linear;
-}
-
-.cu-load.loading::after {
- content: "鍔犺浇涓�...";
-}
-
-.cu-load.over::before {
- content: "\e64a";
-}
-
-.cu-load.over::after {
- content: "娌℃湁鏇村浜�";
-}
-
-.cu-load.erro::before {
- content: "\e658";
-}
-
-.cu-load.erro::after {
- content: "鍔犺浇澶辫触";
-}
-
-.cu-load.load-cuIcon::before {
- font-size: 32upx;
-}
-
-.cu-load.load-cuIcon::after {
- display: none;
-}
-
-.cu-load.load-cuIcon.over {
- display: none;
-}
-
-.cu-load.load-modal {
- position: fixed;
- top: 0;
- right: 0;
- bottom: 140upx;
- left: 0;
- margin: auto;
- width: 260upx;
- height: 260upx;
- background-color: #ffffff;
- border-radius: 10upx;
- box-shadow: 0 0 0upx 2000upx rgba(0, 0, 0, 0.5);
- display: flex;
- align-items: center;
- flex-direction: column;
- justify-content: center;
- font-size: 28upx;
- z-index: 9999;
- line-height: 2.4em;
-}
-
-.cu-load.load-modal [class*="cuIcon-"] {
- font-size: 60upx;
-}
-
-.cu-load.load-modal image {
- width: 70upx;
- height: 70upx;
-}
-
-.cu-load.load-modal::after {
- content: "";
- position: absolute;
- background-color: #ffffff;
- border-radius: 50%;
- width: 200upx;
- height: 200upx;
- font-size: 10px;
- border-top: 6upx solid rgba(0, 0, 0, 0.05);
- border-right: 6upx solid rgba(0, 0, 0, 0.05);
- border-bottom: 6upx solid rgba(0, 0, 0, 0.05);
- border-left: 6upx solid #f37b1d;
- animation: cuIcon-spin 1s infinite linear;
- z-index: -1;
-}
-
-.load-progress {
- pointer-events: none;
- top: 0;
- position: fixed;
- width: 100%;
- left: 0;
- z-index: 2000;
-}
-
-.load-progress.hide {
- display: none;
-}
-
-.load-progress .load-progress-bar {
- position: relative;
- width: 100%;
- height: 4upx;
- overflow: hidden;
- transition: all 200ms ease 0s;
-}
-
-.load-progress .load-progress-spinner {
- position: absolute;
- top: 10upx;
- right: 10upx;
- z-index: 2000;
- display: block;
-}
-
-.load-progress .load-progress-spinner::after {
- content: "";
- display: block;
- width: 24upx;
- height: 24upx;
- -webkit-box-sizing: border-box;
- box-sizing: border-box;
- border: solid 4upx transparent;
- border-top-color: inherit;
- border-left-color: inherit;
- border-radius: 50%;
- -webkit-animation: load-progress-spinner 0.4s linear infinite;
- animation: load-progress-spinner 0.4s linear infinite;
-}
-
-@-webkit-keyframes load-progress-spinner {
- 0% {
- -webkit-transform: rotate(0);
- transform: rotate(0);
- }
-
- 100% {
- -webkit-transform: rotate(360deg);
- transform: rotate(360deg);
- }
-}
-
-@keyframes load-progress-spinner {
- 0% {
- -webkit-transform: rotate(0);
- transform: rotate(0);
- }
-
- 100% {
- -webkit-transform: rotate(360deg);
- transform: rotate(360deg);
- }
-}
-
-/* ==================
- 鍒楄〃
- ==================== */
-.grayscale {
- filter: grayscale(1);
-}
-
-.cu-list+.cu-list {
- margin-top: 30upx
-}
-
-.cu-list>.cu-item {
- transition: all .6s ease-in-out 0s;
- transform: translateX(0upx)
-}
-
-.cu-list>.cu-item.move-cur {
- transform: translateX(-260upx)
-}
-
-.cu-list>.cu-item .move {
- position: absolute;
- right: 0;
- display: flex;
- width: 260upx;
- height: 100%;
- transform: translateX(100%)
-}
-
-.cu-list>.cu-item .move view {
- display: flex;
- flex: 1;
- justify-content: center;
- align-items: center
-}
-
-.cu-list.menu-avatar {
- overflow: hidden;
-}
-
-.cu-list.menu-avatar>.cu-item {
- position: relative;
- display: flex;
- padding-right: 10upx;
- height: 140upx;
- background-color: #ffffff;
- justify-content: flex-end;
- align-items: center
-}
-
-.cu-list.menu-avatar>.cu-item>.cu-avatar {
- position: absolute;
- left: 30upx
-}
-
-.cu-list.menu-avatar>.cu-item .flex .text-cut {
- max-width: 510upx
-}
-
-.cu-list.menu-avatar>.cu-item .content {
- position: absolute;
- left: 146upx;
- width: calc(100% - 96upx - 60upx - 120upx - 20upx);
- line-height: 1.6em;
-}
-
-.cu-list.menu-avatar>.cu-item .content.flex-sub {
- width: calc(100% - 96upx - 60upx - 20upx);
-}
-
-.cu-list.menu-avatar>.cu-item .content>view:first-child {
- font-size: 30upx;
- display: flex;
- align-items: center
-}
-
-.cu-list.menu-avatar>.cu-item .content .cu-tag.sm {
- display: inline-block;
- margin-left: 10upx;
- height: 28upx;
- font-size: 16upx;
- line-height: 32upx
-}
-
-.cu-list.menu-avatar>.cu-item .action {
- width: 100upx;
- text-align: center
-}
-
-.cu-list.menu-avatar>.cu-item .action view+view {
- margin-top: 10upx
-}
-
-.cu-list.menu-avatar.comment>.cu-item .content {
- position: relative;
- left: 0;
- width: auto;
- flex: 1;
-}
-
-.cu-list.menu-avatar.comment>.cu-item {
- padding: 30upx 30upx 30upx 120upx;
- height: auto
-}
-
-.cu-list.menu-avatar.comment .cu-avatar {
- align-self: flex-start
-}
-
-.cu-list.menu>.cu-item {
- position: relative;
- display: flex;
- padding: 0 30upx;
- min-height: 100upx;
- background-color: #ffffff;
- justify-content: space-between;
- align-items: center
-}
-
-.cu-list.menu>.cu-item:last-child:after {
- border: none
-}
-
-.cu-list.menu-avatar>.cu-item:after,
-.cu-list.menu>.cu-item:after {
- position: absolute;
- top: 0;
- left: 0;
- box-sizing: border-box;
- width: 200%;
- height: 200%;
- border-bottom: 1upx solid #ddd;
- border-radius: inherit;
- content: " ";
- transform: scale(.5);
- transform-origin: 0 0;
- pointer-events: none
-}
-
-.cu-list.menu>.cu-item.grayscale {
- background-color: #f5f5f5
-}
-
-.cu-list.menu>.cu-item.cur {
- background-color: #fcf7e9
-}
-
-.cu-list.menu>.cu-item.arrow {
- padding-right: 90upx
-}
-
-.cu-list.menu>.cu-item.arrow:before {
- position: absolute;
- top: 0;
- right: 30upx;
- bottom: 0;
- display: block;
- margin: auto;
- width: 30upx;
- height: 30upx;
- color: #8799a3;
- content: "\e6a3";
- text-align: center;
- font-size: 34upx;
- font-family: cuIcon;
- line-height: 30upx
-}
-
-.cu-list.menu>.cu-item button.content {
- padding: 0;
- background-color: transparent;
- justify-content: flex-start
-}
-
-.cu-list.menu>.cu-item button.content:after {
- display: none
-}
-
-.cu-list.menu>.cu-item .cu-avatar-group .cu-avatar {
- border-color: #ffffff
-}
-
-.cu-list.menu>.cu-item .content>view:first-child {
- display: flex;
- align-items: center
-}
-
-.cu-list.menu>.cu-item .content>text[class*=cuIcon] {
- display: inline-block;
- margin-right: 10upx;
- width: 1.6em;
- text-align: center
-}
-
-.cu-list.menu>.cu-item .content>image {
- display: inline-block;
- margin-right: 10upx;
- width: 1.6em;
- height: 1.6em;
- vertical-align: middle
-}
-
-.cu-list.menu>.cu-item .content {
- font-size: 30upx;
- line-height: 1.6em;
- flex: 1
-}
-
-.cu-list.menu>.cu-item .content .cu-tag.sm {
- display: inline-block;
- margin-left: 10upx;
- height: 28upx;
- font-size: 16upx;
- line-height: 32upx
-}
-
-.cu-list.menu>.cu-item .action .cu-tag:empty {
- right: 10upx
-}
-
-.cu-list.menu {
- display: block;
- overflow: hidden
-}
-
-.cu-list.menu.sm-border>.cu-item:after {
- left: 30upx;
- width: calc(200% - 120upx)
-}
-
-.cu-list.grid>.cu-item {
- position: relative;
- display: flex;
- padding: 20upx 0 30upx;
- transition-duration: 0s;
- flex-direction: column
-}
-
-.cu-list.grid>.cu-item:after {
- position: absolute;
- top: 0;
- left: 0;
- box-sizing: border-box;
- width: 200%;
- height: 200%;
- border-right: 1px solid rgba(0, 0, 0, .1);
- border-bottom: 1px solid rgba(0, 0, 0, .1);
- border-radius: inherit;
- content: " ";
- transform: scale(.5);
- transform-origin: 0 0;
- pointer-events: none
-}
-
-.cu-list.grid>.cu-item text {
- display: block;
- margin-top: 10upx;
- color: #888;
- font-size: 26upx;
- line-height: 40upx
-}
-
-.cu-list.grid>.cu-item [class*=cuIcon] {
- position: relative;
- display: block;
- margin-top: 20upx;
- width: 100%;
- font-size: 48upx
-}
-
-.cu-list.grid>.cu-item .cu-tag {
- right: auto;
- left: 50%;
- margin-left: 20upx
-}
-
-.cu-list.grid {
- background-color: #ffffff;
- text-align: center
-}
-
-.cu-list.grid.no-border>.cu-item {
- padding-top: 10upx;
- padding-bottom: 20upx
-}
-
-.cu-list.grid.no-border>.cu-item:after {
- border: none
-}
-
-.cu-list.grid.no-border {
- padding: 20upx 10upx
-}
-
-.cu-list.grid.col-3>.cu-item:nth-child(3n):after,
-.cu-list.grid.col-4>.cu-item:nth-child(4n):after,
-.cu-list.grid.col-5>.cu-item:nth-child(5n):after {
- border-right-width: 0
-}
-
-.cu-list.card-menu {
- overflow: hidden;
- margin-right: 30upx;
- margin-left: 30upx;
- border-radius: 20upx
-}
-
-
-/* ==================
- 鎿嶄綔鏉�
- ==================== */
-
-.cu-bar {
- display: flex;
- position: relative;
- align-items: center;
- min-height: 100upx;
- justify-content: space-between;
-}
-
-.cu-bar .action {
- display: flex;
- align-items: center;
- height: 100%;
- justify-content: center;
- max-width: 100%;
-}
-
-.cu-bar .action.border-title {
- position: relative;
- top: -10upx;
-}
-
-.cu-bar .action.border-title text[class*="bg-"]:last-child {
- position: absolute;
- bottom: -0.5rem;
- min-width: 2rem;
- height: 6upx;
- left: 0;
-}
-
-.cu-bar .action.sub-title {
- position: relative;
- top: -0.2rem;
-}
-
-.cu-bar .action.sub-title text {
- position: relative;
- z-index: 1;
-}
-
-.cu-bar .action.sub-title text[class*="bg-"]:last-child {
- position: absolute;
- display: inline-block;
- bottom: -0.2rem;
- border-radius: 6upx;
- width: 100%;
- height: 0.6rem;
- left: 0.6rem;
- opacity: 0.3;
- z-index: 0;
-}
-
-.cu-bar .action.sub-title text[class*="text-"]:last-child {
- position: absolute;
- display: inline-block;
- bottom: -0.7rem;
- left: 0.5rem;
- opacity: 0.2;
- z-index: 0;
- text-align: right;
- font-weight: 900;
- font-size: 36upx;
-}
-
-.cu-bar.justify-center .action.border-title text:last-child,
-.cu-bar.justify-center .action.sub-title text:last-child {
- left: 0;
- right: 0;
- margin: auto;
- text-align: center;
-}
-
-.cu-bar .action:first-child {
- margin-left: 30upx;
- font-size: 30upx;
-}
-
-.cu-bar .action text.text-cut {
- text-align: left;
- width: 100%;
-}
-
-.cu-bar .cu-avatar:first-child {
- margin-left: 20upx;
-}
-
-.cu-bar .action:first-child>text[class*="cuIcon-"] {
- margin-left: -0.3em;
- margin-right: 0.3em;
-}
-
-.cu-bar .action:last-child {
- margin-right: 30upx;
-}
-
-.cu-bar .action>text[class*="cuIcon-"],
-.cu-bar .action>view[class*="cuIcon-"] {
- font-size: 36upx;
-}
-
-.cu-bar .action>text[class*="cuIcon-"]+text[class*="cuIcon-"] {
- margin-left: 0.5em;
-}
-
-.cu-bar .content {
- position: absolute;
- text-align: center;
- width: calc(100% - 340upx);
- left: 0;
- right: 0;
- bottom: 0;
- top: 0;
- margin: auto;
- height: 60upx;
- font-size: 32upx;
- line-height: 60upx;
- cursor: none;
- pointer-events: none;
- text-overflow: ellipsis;
- white-space: nowrap;
- overflow: hidden;
-}
-
-.cu-bar.ios .content {
- bottom: 7px;
- height: 30px;
- font-size: 32upx;
- line-height: 30px;
-}
-
-.cu-bar.btn-group {
- justify-content: space-around;
-}
-
-.cu-bar.btn-group button {
- padding: 20upx 32upx;
-}
-
-.cu-bar.btn-group button {
- flex: 1;
- margin: 0 20upx;
- max-width: 50%;
-}
-
-.cu-bar .search-form {
- background-color: #f5f5f5;
- line-height: 64upx;
- height: 64upx;
- font-size: 24upx;
- color: #333333;
- flex: 1;
- display: flex;
- align-items: center;
- margin: 0 30upx;
-}
-
-.cu-bar .search-form+.action {
- margin-right: 30upx;
-}
-
-.cu-bar .search-form input {
- flex: 1;
- padding-right: 30upx;
- height: 64upx;
- line-height: 64upx;
- font-size: 26upx;
- background-color: transparent;
-}
-
-.cu-bar .search-form [class*="cuIcon-"] {
- margin: 0 0.5em 0 0.8em;
-}
-
-.cu-bar .search-form [class*="cuIcon-"]::before {
- top: 0upx;
-}
-
-.cu-bar.fixed,
-.nav.fixed {
- position: fixed;
- width: 100%;
- top: 0;
- z-index: 1024;
- box-shadow: 0 1upx 6upx rgba(0, 0, 0, 0.1);
-}
-
-.cu-bar.foot {
- position: fixed;
- width: 100%;
- bottom: 0;
- z-index: 1024;
- box-shadow: 0 -1upx 6upx rgba(0, 0, 0, 0.1);
-}
-
-.cu-bar.tabbar {
- padding: 0;
- height: calc(100upx + env(safe-area-inset-bottom) / 2);
- padding-bottom: calc(env(safe-area-inset-bottom) / 2);
-}
-
-.cu-tabbar-height {
- min-height: 100upx;
- height: calc(100upx + env(safe-area-inset-bottom) / 2);
-}
-
-.cu-bar.tabbar.shadow {
- box-shadow: 0 -1upx 6upx rgba(0, 0, 0, 0.1);
-}
-
-.cu-bar.tabbar .action {
- font-size: 22upx;
- position: relative;
- flex: 1;
- text-align: center;
- padding: 0;
- display: block;
- height: auto;
- line-height: 1;
- margin: 0;
- background-color: inherit;
- overflow: initial;
-}
-
-.cu-bar.tabbar.shop .action {
- width: 140upx;
- flex: initial;
-}
-
-.cu-bar.tabbar .action.add-action {
- position: relative;
- z-index: 2;
- padding-top: 50upx;
-}
-
-.cu-bar.tabbar .action.add-action [class*="cuIcon-"] {
- position: absolute;
- width: 70upx;
- z-index: 2;
- height: 70upx;
- border-radius: 50%;
- line-height: 70upx;
- font-size: 50upx;
- top: -35upx;
- left: 0;
- right: 0;
- margin: auto;
- padding: 0;
-}
-
-.cu-bar.tabbar .action.add-action::after {
- content: "";
- position: absolute;
- width: 100upx;
- height: 100upx;
- top: -50upx;
- left: 0;
- right: 0;
- margin: auto;
- box-shadow: 0 -3upx 8upx rgba(0, 0, 0, 0.08);
- border-radius: 50upx;
- background-color: inherit;
- z-index: 0;
-}
-
-.cu-bar.tabbar .action.add-action::before {
- content: "";
- position: absolute;
- width: 100upx;
- height: 30upx;
- bottom: 30upx;
- left: 0;
- right: 0;
- margin: auto;
- background-color: inherit;
- z-index: 1;
-}
-
-.cu-bar.tabbar .btn-group {
- flex: 1;
- display: flex;
- justify-content: space-around;
- align-items: center;
- padding: 0 10upx;
-}
-
-.cu-bar.tabbar button.action::after {
- border: 0;
-}
-
-.cu-bar.tabbar .action [class*="cuIcon-"] {
- width: 100upx;
- position: relative;
- display: block;
- height: auto;
- margin: 0 auto 10upx;
- text-align: center;
- font-size: 40upx;
-}
-
-.cu-bar.tabbar .action .cuIcon-cu-image {
- margin: 0 auto;
-}
-
-.cu-bar.tabbar .action .cuIcon-cu-image image {
- width: 50upx;
- height: 50upx;
- display: inline-block;
-}
-
-.cu-bar.tabbar .submit {
- align-items: center;
- display: flex;
- justify-content: center;
- text-align: center;
- position: relative;
- flex: 2;
- align-self: stretch;
-}
-
-.cu-bar.tabbar .submit:last-child {
- flex: 2.6;
-}
-
-.cu-bar.tabbar .submit+.submit {
- flex: 2;
-}
-
-.cu-bar.tabbar.border .action::before {
- content: " ";
- width: 200%;
- height: 200%;
- position: absolute;
- top: 0;
- left: 0;
- transform: scale(0.5);
- transform-origin: 0 0;
- border-right: 1upx solid rgba(0, 0, 0, 0.1);
- z-index: 3;
-}
-
-.cu-bar.tabbar.border .action:last-child:before {
- display: none;
-}
-
-.cu-bar.input {
- padding-right: 20upx;
- background-color: #ffffff;
-}
-
-.cu-bar.input input {
- overflow: initial;
- line-height: 64upx;
- height: 64upx;
- min-height: 64upx;
- flex: 1;
- font-size: 30upx;
- margin: 0 20upx;
-}
-
-.cu-bar.input .action {
- margin-left: 20upx;
-}
-
-.cu-bar.input .action [class*="cuIcon-"] {
- font-size: 48upx;
-}
-
-.cu-bar.input input+.action {
- margin-right: 20upx;
- margin-left: 0upx;
-}
-
-.cu-bar.input .action:first-child [class*="cuIcon-"] {
- margin-left: 0upx;
-}
-
-.cu-custom {
- display: block;
- position: relative;
-}
-
-.cu-custom .cu-bar .content {
- width: calc(100% - 440upx);
-}
-
-/* #ifdef MP-ALIPAY */
-.cu-custom .cu-bar .action .cuIcon-back {
- opacity: 0;
-}
-
-/* #endif */
-
-.cu-custom .cu-bar .content image {
- height: 60upx;
- width: 240upx;
-}
-
-.cu-custom .cu-bar {
- min-height: 0px;
- /* #ifdef MP-WEIXIN */
- padding-right: 220upx;
- /* #endif */
- /* #ifdef MP-ALIPAY */
- padding-right: 150upx;
- /* #endif */
- box-shadow: 0upx 0upx 0upx;
- z-index: 9999;
-}
-
-.cu-custom .cu-bar .border-custom {
- position: relative;
- background: rgba(0, 0, 0, 0.15);
- border-radius: 1000upx;
- height: 30px;
-}
-
-.cu-custom .cu-bar .border-custom::after {
- content: " ";
- width: 200%;
- height: 200%;
- position: absolute;
- top: 0;
- left: 0;
- border-radius: inherit;
- transform: scale(0.5);
- transform-origin: 0 0;
- pointer-events: none;
- box-sizing: border-box;
- border: 1upx solid #ffffff;
- opacity: 0.5;
-}
-
-.cu-custom .cu-bar .border-custom::before {
- content: " ";
- width: 1upx;
- height: 110%;
- position: absolute;
- top: 22.5%;
- left: 0;
- right: 0;
- margin: auto;
- transform: scale(0.5);
- transform-origin: 0 0;
- pointer-events: none;
- box-sizing: border-box;
- opacity: 0.6;
- background-color: #ffffff;
-}
-
-.cu-custom .cu-bar .border-custom text {
- display: block;
- flex: 1;
- margin: auto !important;
- text-align: center;
- font-size: 34upx;
-}
-
-/* ==================
- 瀵艰埅鏍�
- ==================== */
-
-.nav {
- white-space: nowrap;
-}
-
-::-webkit-scrollbar {
- display: none;
-}
-
-.nav .cu-item {
- height: 90upx;
- display: inline-block;
- line-height: 90upx;
- margin: 0 10upx;
- padding: 0 20upx;
-}
-
-.nav .cu-item.cur {
- border-bottom: 4upx solid;
-}
-
-/* ==================
- 鏃堕棿杞�
- ==================== */
-
-.cu-timeline {
- display: block;
- background-color: #ffffff;
-}
-
-.cu-timeline .cu-time {
- width: 120upx;
- text-align: center;
- padding: 20upx 0;
- font-size: 26upx;
- color: #888;
- display: block;
-}
-
-.cu-timeline>.cu-item {
- padding: 30upx 30upx 30upx 120upx;
- position: relative;
- display: block;
- z-index: 0;
-}
-
-.cu-timeline>.cu-item:not([class*="text-"]) {
- color: #ccc;
-}
-
-.cu-timeline>.cu-item::after {
- content: "";
- display: block;
- position: absolute;
- width: 1upx;
- background-color: #ddd;
- left: 60upx;
- height: 100%;
- top: 0;
- z-index: 8;
-}
-
-.cu-timeline>.cu-item::before {
- font-family: "cuIcon";
- display: block;
- position: absolute;
- top: 36upx;
- z-index: 9;
- background-color: #ffffff;
- width: 50upx;
- height: 50upx;
- text-align: center;
- border: none;
- line-height: 50upx;
- left: 36upx;
-}
-
-.cu-timeline>.cu-item:not([class*="cuIcon-"])::before {
- content: "\e763";
-}
-
-.cu-timeline>.cu-item[class*="cuIcon-"]::before {
- background-color: #ffffff;
- width: 50upx;
- height: 50upx;
- text-align: center;
- border: none;
- line-height: 50upx;
- left: 36upx;
-}
-
-.cu-timeline>.cu-item>.content {
- padding: 30upx;
- border-radius: 6upx;
- display: block;
- line-height: 1.6;
-}
-
-.cu-timeline>.cu-item>.content:not([class*="bg-"]) {
- background-color: #f1f1f1;
- color: #333333;
-}
-
-.cu-timeline>.cu-item>.content+.content {
- margin-top: 20upx;
-}
-
-/* ==================
- 鑱婂ぉ
- ==================== */
-
-.cu-chat {
- display: flex;
- flex-direction: column;
-}
-
-.cu-chat .cu-item {
- display: flex;
- padding: 30upx 30upx 70upx;
- position: relative;
-}
-
-.cu-chat .cu-item>.cu-avatar {
- width: 80upx;
- height: 80upx;
-}
-
-.cu-chat .cu-item>.main {
- max-width: calc(100% - 260upx);
- margin: 0 40upx;
- display: flex;
- align-items: center;
-}
-
-.cu-chat .cu-item>image {
- height: 320upx;
-}
-
-.cu-chat .cu-item>.main .content {
- padding: 20upx;
- border-radius: 6upx;
- display: inline-flex;
- max-width: 100%;
- align-items: center;
- font-size: 30upx;
- position: relative;
- min-height: 80upx;
- line-height: 40upx;
- text-align: left;
-}
-
-.cu-chat .cu-item>.main .content:not([class*="bg-"]) {
- background-color: #ffffff;
- color: #333333;
-}
-
-.cu-chat .cu-item .date {
- position: absolute;
- font-size: 24upx;
- color: #8799a3;
- width: calc(100% - 320upx);
- bottom: 20upx;
- left: 160upx;
-}
-
-.cu-chat .cu-item .action {
- padding: 0 30upx;
- display: flex;
- align-items: center;
-}
-
-.cu-chat .cu-item>.main .content::after {
- content: "";
- top: 27upx;
- transform: rotate(45deg);
- position: absolute;
- z-index: 100;
- display: inline-block;
- overflow: hidden;
- width: 24upx;
- height: 24upx;
- left: -12upx;
- right: initial;
- background-color: inherit;
-}
-
-.cu-chat .cu-item.self>.main .content::after {
- left: auto;
- right: -12upx;
-}
-
-.cu-chat .cu-item>.main .content::before {
- content: "";
- top: 30upx;
- transform: rotate(45deg);
- position: absolute;
- z-index: -1;
- display: inline-block;
- overflow: hidden;
- width: 24upx;
- height: 24upx;
- left: -12upx;
- right: initial;
- background-color: inherit;
- filter: blur(5upx);
- opacity: 0.3;
-}
-
-.cu-chat .cu-item>.main .content:not([class*="bg-"])::before {
- background-color: #333333;
- opacity: 0.1;
-}
-
-.cu-chat .cu-item.self>.main .content::before {
- left: auto;
- right: -12upx;
-}
-
-.cu-chat .cu-item.self {
- justify-content: flex-end;
- text-align: right;
-}
-
-.cu-chat .cu-info {
- display: inline-block;
- margin: 20upx auto;
- font-size: 24upx;
- padding: 8upx 12upx;
- background-color: rgba(0, 0, 0, 0.2);
- border-radius: 6upx;
- color: #ffffff;
- max-width: 400upx;
- line-height: 1.4;
-}
-
-/* ==================
- 鍗$墖
- ==================== */
-
-.cu-card {
- display: block;
- overflow: hidden;
-}
-
-.cu-card>.cu-item {
- display: block;
- background-color: #ffffff;
- overflow: hidden;
- border-radius: 10upx;
- margin: 30upx;
-}
-
-.cu-card>.cu-item.shadow-blur {
- overflow: initial;
-}
-
-.cu-card.no-card>.cu-item {
- margin: 0upx;
- border-radius: 0upx;
-}
-
-.cu-card .grid.grid-square {
- margin-bottom: -20upx;
-}
-
-.cu-card.case .image {
- position: relative;
-}
-
-.cu-card.case .image image {
- width: 100%;
-}
-
-.cu-card.case .image .cu-tag {
- position: absolute;
- right: 0;
- top: 0;
-}
-
-.cu-card.case .image .cu-bar {
- position: absolute;
- bottom: 0;
- width: 100%;
- background-color: transparent;
- padding: 0upx 30upx;
-}
-
-.cu-card.case.no-card .image {
- margin: 30upx 30upx 0;
- overflow: hidden;
- border-radius: 10upx;
-}
-
-.cu-card.dynamic {
- display: block;
-}
-
-.cu-card.dynamic>.cu-item {
- display: block;
- background-color: #ffffff;
- overflow: hidden;
-}
-
-.cu-card.dynamic>.cu-item>.text-content {
- padding: 0 30upx 0;
- max-height: 6.4em;
- overflow: hidden;
- font-size: 30upx;
- margin-bottom: 20upx;
-}
-
-.cu-card.dynamic>.cu-item .square-img {
- width: 100%;
- height: 200upx;
- border-radius: 6upx;
-}
-
-.cu-card.dynamic>.cu-item .only-img {
- width: 100%;
- height: 320upx;
- border-radius: 6upx;
-}
-
-/* card.dynamic>.cu-item .comment {
- padding: 20upx;
- background-color: #f1f1f1;
- margin: 0 30upx 30upx;
- border-radius: 6upx;
-} */
-
-.cu-card.article {
- display: block;
-}
-
-.cu-card.article>.cu-item {
- padding-bottom: 30upx;
-}
-
-.cu-card.article>.cu-item .title {
- font-size: 30upx;
- font-weight: 900;
- color: #333333;
- line-height: 100upx;
- padding: 0 30upx;
-}
-
-.cu-card.article>.cu-item .content {
- display: flex;
- padding: 0 30upx;
-}
-
-.cu-card.article>.cu-item .content>image {
- width: 240upx;
- height: 6.4em;
- margin-right: 20upx;
- border-radius: 6upx;
-}
-
-.cu-card.article>.cu-item .content .desc {
- flex: 1;
- display: flex;
- flex-direction: column;
- justify-content: space-between;
-}
-
-.cu-card.article>.cu-item .content .text-content {
- font-size: 28upx;
- color: #888;
- height: 4.8em;
- overflow: hidden;
-}
-
-/* ==================
- 琛ㄥ崟
- ==================== */
-
-.cu-form-group {
- background-color: #ffffff;
- padding: 1upx 30upx;
- display: flex;
- align-items: center;
- min-height: 100upx;
- justify-content: space-between;
-}
-
-.cu-form-group+.cu-form-group {
- border-top: 1upx solid #eee;
-}
-
-.cu-form-group .title {
- text-align: justify;
- padding-right: 30upx;
- font-size: 30upx;
- position: relative;
- height: 60upx;
- line-height: 60upx;
-}
-
-.cu-form-group input {
- flex: 1;
- font-size: 30upx;
- color: #555;
- padding-right: 20upx;
-}
-
-.cu-form-group>text[class*="cuIcon-"] {
- font-size: 36upx;
- padding: 0;
- box-sizing: border-box;
-}
-
-.cu-form-group textarea {
- margin: 32upx 0 30upx;
- height: 4.6em;
- width: 100%;
- line-height: 1.2em;
- flex: 1;
- font-size: 28upx;
- padding: 0;
-}
-
-.cu-form-group.align-start .title {
- height: 1em;
- margin-top: 32upx;
- line-height: 1em;
-}
-
-.cu-form-group picker {
- flex: 1;
- padding-right: 40upx;
- overflow: hidden;
- position: relative;
-}
-
-.cu-form-group picker .picker {
- line-height: 100upx;
- font-size: 28upx;
- text-overflow: ellipsis;
- white-space: nowrap;
- overflow: hidden;
- width: 100%;
- text-align: right;
-}
-
-.cu-form-group picker::after {
- font-family: cuIcon;
- display: block;
- content: "\e6a3";
- position: absolute;
- font-size: 34upx;
- color: #8799a3;
- line-height: 100upx;
- width: 60upx;
- text-align: center;
- top: 0;
- bottom: 0;
- right: -20upx;
- margin: auto;
-}
-
-.cu-form-group textarea[disabled],
-.cu-form-group textarea[disabled] .placeholder {
- color: transparent;
-}
-
-/* ==================
- 妯℃�佺獥鍙�
- ==================== */
-
-.cu-modal {
- position: fixed;
- top: 0;
- right: 0;
- bottom: 0;
- left: 0;
- z-index: 1110;
- opacity: 0;
- outline: 0;
- text-align: center;
- -ms-transform: scale(1.185);
- transform: scale(1.185);
- backface-visibility: hidden;
- perspective: 2000upx;
- background: rgba(0, 0, 0, 0.6);
- transition: all 0.3s ease-in-out 0s;
- pointer-events: none;
-}
-
-.cu-modal::before {
- content: "\200B";
- display: inline-block;
- height: 100%;
- vertical-align: middle;
-}
-
-.cu-modal.show {
- opacity: 1;
- transition-duration: 0.3s;
- -ms-transform: scale(1);
- transform: scale(1);
- overflow-x: hidden;
- overflow-y: auto;
- pointer-events: auto;
-}
-
-.cu-dialog {
- position: relative;
- display: inline-block;
- vertical-align: middle;
- margin-left: auto;
- margin-right: auto;
- width: 680upx;
- max-width: 100%;
- background-color: #f8f8f8;
- border-radius: 10upx;
- overflow: hidden;
-}
-
-.cu-modal.bottom-modal::before {
- vertical-align: bottom;
-}
-
-.cu-modal.bottom-modal .cu-dialog {
- width: 100%;
- border-radius: 0;
-}
-
-.cu-modal.bottom-modal {
- margin-bottom: -1000upx;
-}
-
-.cu-modal.bottom-modal.show {
- margin-bottom: 0;
-}
-
-.cu-modal.drawer-modal {
- transform: scale(1);
- display: flex;
-}
-
-.cu-modal.drawer-modal .cu-dialog {
- height: 100%;
- min-width: 200upx;
- border-radius: 0;
- margin: initial;
- transition-duration: 0.3s;
-}
-
-.cu-modal.drawer-modal.justify-start .cu-dialog {
- transform: translateX(-100%);
-}
-
-.cu-modal.drawer-modal.justify-end .cu-dialog {
- transform: translateX(100%);
-}
-
-.cu-modal.drawer-modal.show .cu-dialog {
- transform: translateX(0%);
-}
-.cu-modal .cu-dialog>.cu-bar:first-child .action{
- min-width: 100rpx;
- margin-right: 0;
- min-height: 100rpx;
-}
-/* ==================
- 杞挱
- ==================== */
-swiper .a-swiper-dot {
- display: inline-block;
- width: 16upx;
- height: 16upx;
- background: rgba(0, 0, 0, .3);
- border-radius: 50%;
- vertical-align: middle;
-}
-
-swiper[class*="-dot"] .wx-swiper-dots,
-swiper[class*="-dot"] .a-swiper-dots,
-swiper[class*="-dot"] .uni-swiper-dots {
- display: flex;
- align-items: center;
- width: 100%;
- justify-content: center;
-}
-
-swiper.square-dot .wx-swiper-dot,
-swiper.square-dot .a-swiper-dot,
-swiper.square-dot .uni-swiper-dot {
- background-color: #ffffff;
- opacity: 0.4;
- width: 10upx;
- height: 10upx;
- border-radius: 20upx;
- margin: 0 8upx !important;
-}
-
-swiper.square-dot .wx-swiper-dot.wx-swiper-dot-active,
-swiper.square-dot .a-swiper-dot.a-swiper-dot-active,
-swiper.square-dot .uni-swiper-dot.uni-swiper-dot-active {
- opacity: 1;
- width: 30upx;
-}
-
-swiper.round-dot .wx-swiper-dot,
-swiper.round-dot .a-swiper-dot,
-swiper.round-dot .uni-swiper-dot {
- width: 10upx;
- height: 10upx;
- position: relative;
- margin: 4upx 8upx !important;
-}
-
-swiper.round-dot .wx-swiper-dot.wx-swiper-dot-active::after,
-swiper.round-dot .a-swiper-dot.a-swiper-dot-active::after,
-swiper.round-dot .uni-swiper-dot.uni-swiper-dot-active::after {
- content: "";
- position: absolute;
- width: 10upx;
- height: 10upx;
- top: 0upx;
- left: 0upx;
- right: 0;
- bottom: 0;
- margin: auto;
- background-color: #ffffff;
- border-radius: 20upx;
-}
-
-swiper.round-dot .wx-swiper-dot.wx-swiper-dot-active,
-swiper.round-dot .a-swiper-dot.a-swiper-dot-active,
-swiper.round-dot .uni-swiper-dot.uni-swiper-dot-active {
- width: 18upx;
- height: 18upx;
-}
-
-.screen-swiper {
- min-height: 375upx;
-}
-
-.screen-swiper image,
-.screen-swiper video,
-.swiper-item image,
-.swiper-item video {
- width: 100%;
- display: block;
- height: 100%;
- margin: 0;
- pointer-events: none;
-}
-
-.card-swiper {
- height: 420upx !important;
-}
-
-.card-swiper swiper-item {
- width: 610upx !important;
- left: 70upx;
- box-sizing: border-box;
- padding: 40upx 0upx 70upx;
- overflow: initial;
-}
-
-.card-swiper swiper-item .swiper-item {
- width: 100%;
- display: block;
- height: 100%;
- border-radius: 10upx;
- transform: scale(0.9);
- transition: all 0.2s ease-in 0s;
- overflow: hidden;
-}
-
-.card-swiper swiper-item.cur .swiper-item {
- transform: none;
- transition: all 0.2s ease-in 0s;
-}
-
-
-.tower-swiper {
- height: 420upx;
- position: relative;
- max-width: 750upx;
- overflow: hidden;
-}
-
-.tower-swiper .tower-item {
- position: absolute;
- width: 300upx;
- height: 380upx;
- top: 0;
- bottom: 0;
- left: 50%;
- margin: auto;
- transition: all 0.2s ease-in 0s;
- opacity: 1;
-}
-
-.tower-swiper .tower-item.none {
- opacity: 0;
-}
-
-.tower-swiper .tower-item .swiper-item {
- width: 100%;
- height: 100%;
- border-radius: 6upx;
- overflow: hidden;
-}
-
-/* ==================
- 姝ラ鏉�
- ==================== */
-
-.cu-steps {
- display: flex;
-}
-
-scroll-view.cu-steps {
- display: block;
- white-space: nowrap;
-}
-
-scroll-view.cu-steps .cu-item {
- display: inline-block;
-}
-
-.cu-steps .cu-item {
- flex: 1;
- text-align: center;
- position: relative;
- min-width: 100upx;
-}
-
-.cu-steps .cu-item:not([class*="text-"]) {
- color: #8799a3;
-}
-
-.cu-steps .cu-item [class*="cuIcon-"],
-.cu-steps .cu-item .num {
- display: block;
- font-size: 40upx;
- line-height: 80upx;
-}
-
-.cu-steps .cu-item::before,
-.cu-steps .cu-item::after,
-.cu-steps.steps-arrow .cu-item::before,
-.cu-steps.steps-arrow .cu-item::after {
- content: "";
- display: block;
- position: absolute;
- height: 0px;
- width: calc(100% - 80upx);
- border-bottom: 1px solid #ccc;
- left: calc(0px - (100% - 80upx) / 2);
- top: 40upx;
- z-index: 0;
-}
-
-.cu-steps.steps-arrow .cu-item::before,
-.cu-steps.steps-arrow .cu-item::after {
- content: "\e6a3";
- font-family: 'cuIcon';
- height: 30upx;
- border-bottom-width: 0px;
- line-height: 30upx;
- top: 0;
- bottom: 0;
- margin: auto;
- color: #ccc;
-}
-
-.cu-steps.steps-bottom .cu-item::before,
-.cu-steps.steps-bottom .cu-item::after {
- bottom: 40upx;
- top: initial;
-}
-
-.cu-steps .cu-item::after {
- border-bottom: 1px solid currentColor;
- width: 0px;
- transition: all 0.3s ease-in-out 0s;
-}
-
-.cu-steps .cu-item[class*="text-"]::after {
- width: calc(100% - 80upx);
- color: currentColor;
-}
-
-.cu-steps .cu-item:first-child::before,
-.cu-steps .cu-item:first-child::after {
- display: none;
-}
-
-.cu-steps .cu-item .num {
- width: 40upx;
- height: 40upx;
- border-radius: 50%;
- line-height: 40upx;
- margin: 20upx auto;
- font-size: 24upx;
- border: 1px solid currentColor;
- position: relative;
- overflow: hidden;
-}
-
-.cu-steps .cu-item[class*="text-"] .num {
- background-color: currentColor;
-}
-
-.cu-steps .cu-item .num::before,
-.cu-steps .cu-item .num::after {
- content: attr(data-index);
- position: absolute;
- left: 0;
- right: 0;
- top: 0;
- bottom: 0;
- margin: auto;
- transition: all 0.3s ease-in-out 0s;
- transform: translateY(0upx);
-}
-
-.cu-steps .cu-item[class*="text-"] .num::before {
- transform: translateY(-40upx);
- color: #ffffff;
-}
-
-.cu-steps .cu-item .num::after {
- transform: translateY(40upx);
- color: #ffffff;
- transition: all 0.3s ease-in-out 0s;
-}
-
-.cu-steps .cu-item[class*="text-"] .num::after {
- content: "\e645";
- font-family: 'cuIcon';
- color: #ffffff;
- transform: translateY(0upx);
-}
-
-.cu-steps .cu-item[class*="text-"] .num.err::after {
- content: "\e646";
-}
-
-/* ==================
- 甯冨眬
- ==================== */
-
-/* -- flex寮规�у竷灞� -- */
-
-.flex {
- display: flex;
-}
-
-.basis-xs {
- flex-basis: 20%;
-}
-
-.basis-sm {
- flex-basis: 40%;
-}
-
-.basis-df {
- flex-basis: 50%;
-}
-
-.basis-lg {
- flex-basis: 60%;
-}
-
-.basis-xl {
- flex-basis: 80%;
-}
-
-.flex-sub {
- flex: 1;
-}
-
-.flex-twice {
- flex: 2;
-}
-
-.flex-treble {
- flex: 3;
-}
-
-.flex-direction {
- flex-direction: column;
-}
-
-.flex-wrap {
- flex-wrap: wrap;
-}
-
-.align-start {
- align-items: flex-start;
-}
-
-.align-end {
- align-items: flex-end;
-}
-
-.align-center {
- align-items: center;
-}
-
-.align-stretch {
- align-items: stretch;
-}
-
-.self-start {
- align-self: flex-start;
-}
-
-.self-center {
- align-self: flex-center;
-}
-
-.self-end {
- align-self: flex-end;
-}
-
-.self-stretch {
- align-self: stretch;
-}
-
-.align-stretch {
- align-items: stretch;
-}
-
-.justify-start {
- justify-content: flex-start;
-}
-
-.justify-end {
- justify-content: flex-end;
-}
-
-.justify-center {
- justify-content: center;
-}
-
-.justify-between {
- justify-content: space-between;
-}
-
-.justify-around {
- justify-content: space-around;
-}
-
-/* grid甯冨眬 */
-
-.grid {
- display: flex;
- flex-wrap: wrap;
-}
-
-.grid.grid-square {
- overflow: hidden;
-}
-
-.grid.grid-square .cu-tag {
- position: absolute;
- right: 0;
- top: 0;
- border-bottom-left-radius: 6upx;
- padding: 6upx 12upx;
- height: auto;
- background-color: rgba(0, 0, 0, 0.5);
-}
-
-.grid.grid-square>view>text[class*="cuIcon-"] {
- font-size: 52upx;
- position: absolute;
- color: #8799a3;
- margin: auto;
- top: 0;
- bottom: 0;
- left: 0;
- right: 0;
- display: flex;
- justify-content: center;
- align-items: center;
- flex-direction: column;
-}
-
-.grid.grid-square>view {
- margin-right: 20upx;
- margin-bottom: 20upx;
- border-radius: 6upx;
- position: relative;
- overflow: hidden;
-}
-.grid.grid-square>view.bg-img image {
- width: 100%;
- height: 100%;
- position: absolute;
-}
-.grid.col-1.grid-square>view {
- padding-bottom: 100%;
- height: 0;
- margin-right: 0;
-}
-
-.grid.col-2.grid-square>view {
- padding-bottom: calc((100% - 20upx)/2);
- height: 0;
- width: calc((100% - 20upx)/2);
-}
-
-.grid.col-3.grid-square>view {
- padding-bottom: calc((100% - 40upx)/3);
- height: 0;
- width: calc((100% - 40upx)/3);
-}
-
-.grid.col-4.grid-square>view {
- padding-bottom: calc((100% - 60upx)/4);
- height: 0;
- width: calc((100% - 60upx)/4);
-}
-
-.grid.col-5.grid-square>view {
- padding-bottom: calc((100% - 80upx)/5);
- height: 0;
- width: calc((100% - 80upx)/5);
-}
-
-.grid.col-2.grid-square>view:nth-child(2n),
-.grid.col-3.grid-square>view:nth-child(3n),
-.grid.col-4.grid-square>view:nth-child(4n),
-.grid.col-5.grid-square>view:nth-child(5n) {
- margin-right: 0;
-}
-
-.grid.col-1>view {
- width: 100%;
-}
-
-.grid.col-2>view {
- width: 50%;
-}
-
-.grid.col-3>view {
- width: 33.33%;
-}
-
-.grid.col-4>view {
- width: 25%;
-}
-
-.grid.col-5>view {
- width: 20%;
-}
-
-/* -- 鍐呭杈硅窛 -- */
-
-.margin-0 {
- margin: 0;
-}
-
-.margin-xs {
- margin: 10upx;
-}
-
-.margin-sm {
- margin: 20upx;
-}
-
-.margin {
- margin: 30upx;
-}
-
-.margin-lg {
- margin: 40upx;
-}
-
-.margin-xl {
- margin: 50upx;
-}
-
-.margin-top-xs {
- margin-top: 10upx;
-}
-
-.margin-top-sm {
- margin-top: 20upx;
-}
-
-.margin-top {
- margin-top: 30upx;
-}
-
-.margin-top-lg {
- margin-top: 40upx;
-}
-
-.margin-top-xl {
- margin-top: 50upx;
-}
-
-.margin-right-xs {
- margin-right: 10upx;
-}
-
-.margin-right-sm {
- margin-right: 20upx;
-}
-
-.margin-right {
- margin-right: 30upx;
-}
-
-.margin-right-lg {
- margin-right: 40upx;
-}
-
-.margin-right-xl {
- margin-right: 50upx;
-}
-
-.margin-bottom-xs {
- margin-bottom: 10upx;
-}
-
-.margin-bottom-sm {
- margin-bottom: 20upx;
-}
-
-.margin-bottom {
- margin-bottom: 30upx;
-}
-
-.margin-bottom-lg {
- margin-bottom: 40upx;
-}
-
-.margin-bottom-xl {
- margin-bottom: 50upx;
-}
-
-.margin-left-xs {
- margin-left: 10upx;
-}
-
-.margin-left-sm {
- margin-left: 20upx;
-}
-
-.margin-left {
- margin-left: 30upx;
-}
-
-.margin-left-lg {
- margin-left: 40upx;
-}
-
-.margin-left-xl {
- margin-left: 50upx;
-}
-
-.margin-lr-xs {
- margin-left: 10upx;
- margin-right: 10upx;
-}
-
-.margin-lr-sm {
- margin-left: 20upx;
- margin-right: 20upx;
-}
-
-.margin-lr {
- margin-left: 30upx;
- margin-right: 30upx;
-}
-
-.margin-lr-lg {
- margin-left: 40upx;
- margin-right: 40upx;
-}
-
-.margin-lr-xl {
- margin-left: 50upx;
- margin-right: 50upx;
-}
-
-.margin-tb-xs {
- margin-top: 10upx;
- margin-bottom: 10upx;
-}
-
-.margin-tb-sm {
- margin-top: 20upx;
- margin-bottom: 20upx;
-}
-
-.margin-tb {
- margin-top: 30upx;
- margin-bottom: 30upx;
-}
-
-.margin-tb-lg {
- margin-top: 40upx;
- margin-bottom: 40upx;
-}
-
-.margin-tb-xl {
- margin-top: 50upx;
- margin-bottom: 50upx;
-}
-
-.padding-0 {
- padding: 0;
-}
-
-.padding-xs {
- padding: 10upx;
-}
-
-.padding-sm {
- padding: 20upx;
-}
-
-.padding {
- padding: 30upx;
-}
-
-.padding-lg {
- padding: 40upx;
-}
-
-.padding-xl {
- padding: 50upx;
-}
-
-.padding-top-xs {
- padding-top: 10upx;
-}
-
-.padding-top-sm {
- padding-top: 20upx;
-}
-
-.padding-top {
- padding-top: 30upx;
-}
-
-.padding-top-lg {
- padding-top: 40upx;
-}
-
-.padding-top-xl {
- padding-top: 50upx;
-}
-
-.padding-right-xs {
- padding-right: 10upx;
-}
-
-.padding-right-sm {
- padding-right: 20upx;
-}
-
-.padding-right {
- padding-right: 30upx;
-}
-
-.padding-right-lg {
- padding-right: 40upx;
-}
-
-.padding-right-xl {
- padding-right: 50upx;
-}
-
-.padding-bottom-xs {
- padding-bottom: 10upx;
-}
-
-.padding-bottom-sm {
- padding-bottom: 20upx;
-}
-
-.padding-bottom {
- padding-bottom: 30upx;
-}
-
-.padding-bottom-lg {
- padding-bottom: 40upx;
-}
-
-.padding-bottom-xl {
- padding-bottom: 50upx;
-}
-
-.padding-left-xs {
- padding-left: 10upx;
-}
-
-.padding-left-sm {
- padding-left: 20upx;
-}
-
-.padding-left {
- padding-left: 30upx;
-}
-
-.padding-left-lg {
- padding-left: 40upx;
-}
-
-.padding-left-xl {
- padding-left: 50upx;
-}
-
-.padding-lr-xs {
- padding-left: 10upx;
- padding-right: 10upx;
-}
-
-.padding-lr-sm {
- padding-left: 20upx;
- padding-right: 20upx;
-}
-
-.padding-lr {
- padding-left: 30upx;
- padding-right: 30upx;
-}
-
-.padding-lr-lg {
- padding-left: 40upx;
- padding-right: 40upx;
-}
-
-.padding-lr-xl {
- padding-left: 50upx;
- padding-right: 50upx;
-}
-
-.padding-tb-xs {
- padding-top: 10upx;
- padding-bottom: 10upx;
-}
-
-.padding-tb-sm {
- padding-top: 20upx;
- padding-bottom: 20upx;
-}
-
-.padding-tb {
- padding-top: 30upx;
- padding-bottom: 30upx;
-}
-
-.padding-tb-lg {
- padding-top: 40upx;
- padding-bottom: 40upx;
-}
-
-.padding-tb-xl {
- padding-top: 50upx;
- padding-bottom: 50upx;
-}
-
-/* -- 娴姩 -- */
-
-.cf::after,
-.cf::before {
- content: " ";
- display: table;
-}
-
-.cf::after {
- clear: both;
-}
-
-.fl {
- float: left;
-}
-
-.fr {
- float: right;
-}
-
-/* ==================
- 鑳屾櫙
- ==================== */
-
-.line-red::after,
-.lines-red::after {
- border-color: #e54d42;
-}
-
-.line-orange::after,
-.lines-orange::after {
- border-color: #f37b1d;
-}
-
-.line-yellow::after,
-.lines-yellow::after {
- border-color: #fbbd08;
-}
-
-.line-olive::after,
-.lines-olive::after {
- border-color: #8dc63f;
-}
-
-.line-green::after,
-.lines-green::after {
- border-color: #39b54a;
-}
-
-.line-cyan::after,
-.lines-cyan::after {
- border-color: #1cbbb4;
-}
-
-.line-blue::after,
-.lines-blue::after {
- border-color: #0081ff;
-}
-
-.line-purple::after,
-.lines-purple::after {
- border-color: #6739b6;
-}
-
-.line-mauve::after,
-.lines-mauve::after {
- border-color: #9c26b0;
-}
-
-.line-pink::after,
-.lines-pink::after {
- border-color: #e03997;
-}
-
-.line-brown::after,
-.lines-brown::after {
- border-color: #a5673f;
-}
-
-.line-grey::after,
-.lines-grey::after {
- border-color: #8799a3;
-}
-
-.line-gray::after,
-.lines-gray::after {
- border-color: #aaaaaa;
-}
-
-.line-black::after,
-.lines-black::after {
- border-color: #333333;
-}
-
-.line-white::after,
-.lines-white::after {
- border-color: #ffffff;
-}
-
-.bg-red {
- background-color: #e54d42;
- color: #ffffff;
-}
-
-.bg-orange {
- background-color: #f37b1d;
- color: #ffffff;
-}
-
-.bg-yellow {
- background-color: #fbbd08;
- color: #333333;
-}
-
-.bg-olive {
- background-color: #8dc63f;
- color: #ffffff;
-}
-
-.bg-green {
- background-color: #39b54a;
- color: #ffffff;
-}
-
-.bg-cyan {
- background-color: #1cbbb4;
- color: #ffffff;
-}
-
-.bg-blue {
- background-color: #0081ff;
- color: #ffffff;
-}
-
-.bg-purple {
- background-color: #6739b6;
- color: #ffffff;
-}
-
-.bg-mauve {
- background-color: #9c26b0;
- color: #ffffff;
-}
-
-.bg-pink {
- background-color: #e03997;
- color: #ffffff;
-}
-
-.bg-brown {
- background-color: #a5673f;
- color: #ffffff;
-}
-
-.bg-grey {
- background-color: #8799a3;
- color: #ffffff;
-}
-
-.bg-gray {
- background-color: #f0f0f0;
- color: #333333;
-}
-
-.bg-black {
- background-color: #333333;
- color: #ffffff;
-}
-
-.bg-white {
- background-color: #ffffff;
- color: #666666;
-}
-
-.bg-shadeTop {
- background-image: linear-gradient(rgba(0, 0, 0, 1), rgba(0, 0, 0, 0.01));
- color: #ffffff;
-}
-
-.bg-shadeBottom {
- background-image: linear-gradient(rgba(0, 0, 0, 0.01), rgba(0, 0, 0, 1));
- color: #ffffff;
-}
-
-.bg-red.light {
- color: #e54d42;
- background-color: #fadbd9;
-}
-
-.bg-orange.light {
- color: #f37b1d;
- background-color: #fde6d2;
-}
-
-.bg-yellow.light {
- color: #fbbd08;
- background-color: #fef2ced2;
-}
-
-.bg-olive.light {
- color: #8dc63f;
- background-color: #e8f4d9;
-}
-
-.bg-green.light {
- color: #39b54a;
- background-color: #d7f0dbff;
-}
-
-.bg-cyan.light {
- color: #1cbbb4;
- background-color: #d2f1f0;
-}
-
-.bg-blue.light {
- color: #0081ff;
- background-color: #cce6ff;
-}
-
-.bg-purple.light {
- color: #6739b6;
- background-color: #e1d7f0;
-}
-
-.bg-mauve.light {
- color: #9c26b0;
- background-color: #ebd4ef;
-}
-
-.bg-pink.light {
- color: #e03997;
- background-color: #f9d7ea;
-}
-
-.bg-brown.light {
- color: #a5673f;
- background-color: #ede1d9;
-}
-
-.bg-grey.light {
- color: #8799a3;
- background-color: #e7ebed;
-}
-
-.bg-gradual-red {
- background-image: linear-gradient(45deg, #f43f3b, #ec008c);
- color: #ffffff;
-}
-
-.bg-gradual-orange {
- background-image: linear-gradient(45deg, #ff9700, #ed1c24);
- color: #ffffff;
-}
-
-.bg-gradual-green {
- background-image: linear-gradient(45deg, #39b54a, #8dc63f);
- color: #ffffff;
-}
-
-.bg-gradual-purple {
- background-image: linear-gradient(45deg, #9000ff, #5e00ff);
- color: #ffffff;
-}
-
-.bg-gradual-pink {
- background-image: linear-gradient(45deg, #ec008c, #6739b6);
- color: #ffffff;
-}
-
-.bg-gradual-blue {
- background-image: linear-gradient(45deg, #0081ff, #1cbbb4);
- color: #ffffff;
-}
-
-.shadow[class*="-red"] {
- box-shadow: 6upx 6upx 8upx rgba(204, 69, 59, 0.2);
-}
-
-.shadow[class*="-orange"] {
- box-shadow: 6upx 6upx 8upx rgba(217, 109, 26, 0.2);
-}
-
-.shadow[class*="-yellow"] {
- box-shadow: 6upx 6upx 8upx rgba(224, 170, 7, 0.2);
-}
-
-.shadow[class*="-olive"] {
- box-shadow: 6upx 6upx 8upx rgba(124, 173, 55, 0.2);
-}
-
-.shadow[class*="-green"] {
- box-shadow: 6upx 6upx 8upx rgba(48, 156, 63, 0.2);
-}
-
-.shadow[class*="-cyan"] {
- box-shadow: 6upx 6upx 8upx rgba(28, 187, 180, 0.2);
-}
-
-.shadow[class*="-blue"] {
- box-shadow: 6upx 6upx 8upx rgba(0, 102, 204, 0.2);
-}
-
-.shadow[class*="-purple"] {
- box-shadow: 6upx 6upx 8upx rgba(88, 48, 156, 0.2);
-}
-
-.shadow[class*="-mauve"] {
- box-shadow: 6upx 6upx 8upx rgba(133, 33, 150, 0.2);
-}
-
-.shadow[class*="-pink"] {
- box-shadow: 6upx 6upx 8upx rgba(199, 50, 134, 0.2);
-}
-
-.shadow[class*="-brown"] {
- box-shadow: 6upx 6upx 8upx rgba(140, 88, 53, 0.2);
-}
-
-.shadow[class*="-grey"] {
- box-shadow: 6upx 6upx 8upx rgba(114, 130, 138, 0.2);
-}
-
-.shadow[class*="-gray"] {
- box-shadow: 6upx 6upx 8upx rgba(114, 130, 138, 0.2);
-}
-
-.shadow[class*="-black"] {
- box-shadow: 6upx 6upx 8upx rgba(26, 26, 26, 0.2);
-}
-
-.shadow[class*="-white"] {
- box-shadow: 6upx 6upx 8upx rgba(26, 26, 26, 0.2);
-}
-
-.text-shadow[class*="-red"] {
- text-shadow: 6upx 6upx 8upx rgba(204, 69, 59, 0.2);
-}
-
-.text-shadow[class*="-orange"] {
- text-shadow: 6upx 6upx 8upx rgba(217, 109, 26, 0.2);
-}
-
-.text-shadow[class*="-yellow"] {
- text-shadow: 6upx 6upx 8upx rgba(224, 170, 7, 0.2);
-}
-
-.text-shadow[class*="-olive"] {
- text-shadow: 6upx 6upx 8upx rgba(124, 173, 55, 0.2);
-}
-
-.text-shadow[class*="-green"] {
- text-shadow: 6upx 6upx 8upx rgba(48, 156, 63, 0.2);
-}
-
-.text-shadow[class*="-cyan"] {
- text-shadow: 6upx 6upx 8upx rgba(28, 187, 180, 0.2);
-}
-
-.text-shadow[class*="-blue"] {
- text-shadow: 6upx 6upx 8upx rgba(0, 102, 204, 0.2);
-}
-
-.text-shadow[class*="-purple"] {
- text-shadow: 6upx 6upx 8upx rgba(88, 48, 156, 0.2);
-}
-
-.text-shadow[class*="-mauve"] {
- text-shadow: 6upx 6upx 8upx rgba(133, 33, 150, 0.2);
-}
-
-.text-shadow[class*="-pink"] {
- text-shadow: 6upx 6upx 8upx rgba(199, 50, 134, 0.2);
-}
-
-.text-shadow[class*="-brown"] {
- text-shadow: 6upx 6upx 8upx rgba(140, 88, 53, 0.2);
-}
-
-.text-shadow[class*="-grey"] {
- text-shadow: 6upx 6upx 8upx rgba(114, 130, 138, 0.2);
-}
-
-.text-shadow[class*="-gray"] {
- text-shadow: 6upx 6upx 8upx rgba(114, 130, 138, 0.2);
-}
-
-.text-shadow[class*="-black"] {
- text-shadow: 6upx 6upx 8upx rgba(26, 26, 26, 0.2);
-}
-
-.bg-img {
- background-size: cover;
- background-position: center;
- background-repeat: no-repeat;
-}
-
-.bg-mask {
- background-color: #333333;
- position: relative;
-}
-
-.bg-mask::after {
- content: "";
- border-radius: inherit;
- width: 100%;
- height: 100%;
- display: block;
- background-color: rgba(0, 0, 0, 0.4);
- position: absolute;
- left: 0;
- right: 0;
- bottom: 0;
- top: 0;
-}
-
-.bg-mask view,
-.bg-mask cover-view {
- z-index: 5;
- position: relative;
-}
-
-.bg-video {
- position: relative;
-}
-
-.bg-video video {
- display: block;
- height: 100%;
- width: 100%;
- -o-object-fit: cover;
- object-fit: cover;
- position: absolute;
- top: 0;
- z-index: 0;
- pointer-events: none;
-}
-
-/* ==================
- 鏂囨湰
- ==================== */
-
-.text-xs {
- font-size: 20upx;
-}
-
-.text-sm {
- font-size: 24upx;
-}
-
-.text-df {
- font-size: 28upx;
-}
-
-.text-lg {
- font-size: 32upx;
-}
-
-.text-xl {
- font-size: 36upx;
-}
-
-.text-xxl {
- font-size: 44upx;
-}
-
-.text-sl {
- font-size: 80upx;
-}
-
-.text-xsl {
- font-size: 120upx;
-}
-
-.text-Abc {
- text-transform: Capitalize;
-}
-
-.text-ABC {
- text-transform: Uppercase;
-}
-
-.text-abc {
- text-transform: Lowercase;
-}
-
-.text-price::before {
- content: "楼";
- font-size: 80%;
- margin-right: 4upx;
-}
-
-.text-cut {
- text-overflow: ellipsis;
- white-space: nowrap;
- overflow: hidden;
-}
-
-.text-bold {
- font-weight: bold;
-}
-
-.text-center {
- text-align: center;
-}
-
-.text-content {
- line-height: 1.6;
-}
-
-.text-left {
- text-align: left;
-}
-
-.text-right {
- text-align: right;
-}
-
-.text-red,
-.line-red,
-.lines-red {
- color: #e54d42;
-}
-
-.text-orange,
-.line-orange,
-.lines-orange {
- color: #f37b1d;
-}
-
-.text-yellow,
-.line-yellow,
-.lines-yellow {
- color: #fbbd08;
-}
-
-.text-olive,
-.line-olive,
-.lines-olive {
- color: #8dc63f;
-}
-
-.text-green,
-.line-green,
-.lines-green {
- color: #39b54a;
-}
-
-.text-cyan,
-.line-cyan,
-.lines-cyan {
- color: #1cbbb4;
-}
-
-.text-blue,
-.line-blue,
-.lines-blue {
- color: #0081ff;
-}
-
-.text-purple,
-.line-purple,
-.lines-purple {
- color: #6739b6;
-}
-
-.text-mauve,
-.line-mauve,
-.lines-mauve {
- color: #9c26b0;
-}
-
-.text-pink,
-.line-pink,
-.lines-pink {
- color: #e03997;
-}
-
-.text-brown,
-.line-brown,
-.lines-brown {
- color: #a5673f;
-}
-
-.text-grey,
-.line-grey,
-.lines-grey {
- color: #8799a3;
-}
-
-.text-gray,
-.line-gray,
-.lines-gray {
- color: #aaaaaa;
-}
-
-.text-black,
-.line-black,
-.lines-black {
- color: #333333;
-}
-
-.text-white,
-.line-white,
-.lines-white {
- color: #ffffff;
-}
diff --git a/common/airport.js b/common/airport.js
deleted file mode 100644
index 387bcb7..0000000
--- a/common/airport.js
+++ /dev/null
@@ -1,262 +0,0 @@
-module.exports ={
- "list": [{
- "letter": "A",
- "data": [
- "闃垮厠鑻忔満鍦�",
- "闃挎媺灞卞彛鏈哄満",
- "闃垮嫆娉版満鍦�",
- "闃块噷鏄嗚帋鏈哄満",
- "瀹夊簡澶╂煴灞辨満鍦�",
- "婢抽棬鍥介檯鏈哄満"
- ]
- }, {
- "letter": "B",
- "data": [
- "淇濆北鏈哄満",
- "鍖呭ご鏈哄満",
- "鍖楁捣绂忔垚鏈哄満",
- "鍖椾含鍗楄嫅鏈哄満",
- "鍖椾含棣栭兘鍥介檯鏈哄満"
- ]
- }, {
- "letter": "C",
- "data": [
- "闀跨櫧灞辨満鍦�",
- "闀挎槬榫欏槈鍥介檯鏈哄満",
- "甯稿痉妗冭姳婧愭満鍦�",
- "鏄岄兘閭﹁揪鏈哄満",
- "闀挎矙榛勮姳鍥介檯鏈哄満",
- "闀挎不鐜嬫潙鏈哄満",
- "甯稿窞濂旂墰鏈哄満",
- "鎴愰兘鍙屾祦鍥介檯鏈哄満",
- "璧ゅ嘲鏈哄満"
- ]
- }, {
- "letter": "D",
- "data": [
- "澶х悊鏈哄満",
- "澶ц繛鍛ㄦ按瀛愬浗闄呮満鍦�",
- "澶у簡钀ㄥ皵鍥炬満鍦�",
- "澶у悓涓滅帇搴勬満鍦�",
- "杈惧窞娌冲競鏈哄満",
- "涓逛笢娴ご鏈哄満",
- "寰峰畯鑺掑競鏈哄満",
- "杩簡棣欐牸閲屾媺鏈哄満",
- "涓滆惀鏈哄満",
- "鏁︾厡鏈哄満"
- ]
- }, {
- "letter": "E",
- "data": [
- "閯傚皵澶氭柉鏈哄満",
- "鎭╂柦璁稿鍧満鍦�",
- "浜岃繛娴╃壒璧涗箤鑻忓浗闄呮満鍦�"
- ]
- }, {
- "letter": "F",
- "data": [
- "闃滈槼瑗垮叧鏈哄満",
- "绂忓窞闀夸箰鍥介檯鏈哄満"
- ]
- }, {
- "letter": "G",
- "data": [
- "璧e窞榛勯噾鏈哄満",
- "鏍煎皵鏈ㄦ満鍦�",
- "鍥哄師鍏洏灞辨満鍦�",
- "骞垮厓鐩橀緳鏈哄満",
- "骞垮窞鐧戒簯鍥介檯鏈哄満",
- "妗傛灄涓ゆ睙鍥介檯鏈哄満",
- "璐甸槼榫欐礊鍫″浗闄呮満鍦�"
- ]
- }, {
- "letter": "H",
- "data": [
- "鍝堝皵婊ㄥお骞冲浗闄呮満鍦�",
- "鍝堝瘑鏈哄満",
- "娴峰彛缇庡叞鍥介檯鏈哄満",
- "娴锋媺灏斾笢灞卞浗闄呮満鍦�",
- "閭兏鏈哄満",
- "姹変腑鏈哄満",
- "鏉窞钀у北鍥介檯鏈哄満",
- "鍚堣偉楠嗗矖鍥介檯鏈哄満",
- "鍜岀敯鏈哄満",
- "榛戞渤鏈哄満",
- "鍛煎拰娴╃壒鐧藉鍥介檯鏈哄満",
- "娣畨娑熸按鏈哄満",
- "榛勫北灞邯鍥介檯鏈哄満"
- ]
- }, {
- "letter": "I",
- "data": []
- }, {
- "letter": "J",
- "data": [
- "娴庡崡閬ュ鍥介檯鏈哄満",
- "娴庡畞鏇查槣鏈哄満",
- "楦¤タ鍏村嚡婀栨満鍦�",
- "浣虫湪鏂笢閮婃満鍦�",
- "鍢夊唱鍏虫満鍦�",
- "閿﹀窞灏忓箔瀛愭満鍦�",
- "鏅痉闀囨満鍦�",
- "浜曞唸灞辨満鍦�",
- "涔濇睙搴愬北鏈哄満",
- "涔濆榛勯緳鏈哄満"
- ]
- }, {
- "letter": "K",
- "data": [
- "鍠�浠�鏈哄満",
- "鍏嬫媺鐜涗緷鏈哄満",
- "搴撹溅榫熷吂鏈哄満",
- "搴撳皵鍕掓満鍦�",
- "鏄嗘槑宸鍧濆浗闄呮満鍦�"
- ]
- }, {
- "letter": "L",
- "data": [
- "鎷夎惃璐″槑鏈哄満",
- "鍏板窞涓窛鏈哄満",
- "涓芥睙涓変箟鏈哄満",
- "榛庡钩鏈哄満",
- "杩炰簯娓櫧濉斿煚鏈哄満",
- "涓存钵鏈哄満",
- "涓存矀鏈哄満",
- "鏋楄姖绫虫灄鏈哄満",
- "鏌冲窞鐧借幉鏈哄満",
- "榫欏博鍐犺备灞辨満鍦�",
- "娉稿窞钃濈敯鏈哄満",
- "娲涢槼鍖楅儕鏈哄満"
- ]
- }, {
- "letter": "M",
- "data": [
- "婊℃床閲岃タ閮婃満鍦�",
- "缁甸槼鍗楅儕鏈哄満",
- "婕犳渤鍙よ幉鏈哄満",
- "鐗′腹姹熸捣娴満鍦�"
- ]
- }, {
- "letter": "N",
- "data": [
- "鍗楁槍鏄屽寳鍥介檯鏈哄満",
- "鍗楀厖楂樺潽鏈哄満",
- "鍗椾含绂勫彛鍥介檯鏈哄満",
- "鍗楀畞鍚村湬鏈哄満",
- "鍗楅�氬叴涓滄満鍦�",
- "鍗楅槼濮滆惀鏈哄満",
- "瀹佹尝鏍庣ぞ鍥介檯鏈哄満"
- ]
- }, {
- "letter": "O",
- "data": []
- }, {
- "letter": "P",
- "data": [
- "鏅幢鎬濊寘鏈哄満"
- ]
- }, {
- "letter": "Q",
- "data": [
- "榻愰綈鍝堝皵涓夊瀛愭満鍦�",
- "绉︾殗宀涘北娴峰叧鏈哄満",
- "闈掑矝娴佷涵鍥介檯鏈哄満",
- "琛㈠窞鏈哄満",
- "娉夊窞鏅嬫睙鏈哄満"
- ]
- }, {
- "letter": "R",
- "data": [
- "鏃ュ杸鍒欏拰骞虫満鍦�"
- ]
- }, {
- "letter": "S",
- "data": [
- "涓変簹鍑ゅ嚢鍥介檯鏈哄満",
- "姹曞ご澶栫爞鏈哄満",
- "涓婃捣铏规ˉ鍥介檯鏈哄満",
- "涓婃捣娴︿笢鍥介檯鏈哄満",
- "娣卞湷瀹濆畨鍥介檯鏈哄満",
- "娌堥槼妗冧粰鍥介檯鏈哄満",
- "鐭冲搴勬瀹氬浗闄呮満鍦�",
- "鑻忓崡纭曟斁鍥介檯鏈哄満"
- ]
- }, {
- "letter": "T",
- "data": [
- "濉斿煄鏈哄満",
- "澶師姝﹀鍥介檯鏈哄満",
- "鍙板窞璺ˉ鏈哄満 (榛勫博鏈哄満)",
- "鍞愬北涓夊コ娌虫満鍦�",
- "鑵惧啿椹煎嘲鏈哄満",
- "澶╂触婊ㄦ捣鍥介檯鏈哄満",
- "閫氳窘鏈哄満",
- "閾滀粊鍑ゅ嚢鏈哄満"
- ]
- }, {
- "letter": "U",
- "data": []
- }, {
- "letter": "V",
- "data": []
- }, {
- "letter": "W",
- "data": [
- "涓囧窞浜旀ˉ鏈哄満",
- "娼嶅潑鏈哄満",
- "濞佹捣澶ф按娉婃満鍦�",
- "鏂囧北鏅�呴粦鏈哄満",
- "娓╁窞姘稿己鍥介檯鏈哄満",
- "涔屾捣鏈哄満",
- "姝︽眽澶╂渤鍥介檯鏈哄満",
- "涔屽叞娴╃壒鏈哄満",
- "涔岄瞾鏈ㄩ綈鍦扮獫鍫″浗闄呮満鍦�",
- "姝﹀し灞辨満鍦�",
- "姊у窞闀挎床宀涙満鍦�"
- ]
- }, {
- "letter": "X",
- "data": [
- "瑗垮畨鍜搁槼鍥介檯鏈哄満",
- "瑗挎槍闈掑北鏈哄満",
- "閿℃灄娴╃壒鏈哄満",
- "瑗垮畞鏇瑰鍫℃満鍦�",
- "瑗垮弻鐗堢撼鍢庢磼鏈哄満",
- "鍘﹂棬楂樺磶鍥介檯鏈哄満",
- "棣欐腐鍥介檯鏈哄満",
- "瑗勯槼鍒橀泦鏈哄満",
- "鍏翠箟鏈哄満",
- "寰愬窞瑙傞煶鏈哄満"
- ]
- }, {
- "letter": "Y",
- "data": [
- "寤跺畨浜屽崄閲屽牎鏈哄満",
- "鐩愬煄鏈哄満",
- "寤跺悏鏈濋槼宸濇満鍦�",
- "鐑熷彴鑾卞北鍥介檯鏈哄満",
- "瀹滃鑿滃潩鏈哄満",
- "瀹滄槍涓夊场鏈哄満",
- "浼婃槬鏋楅兘鏈哄満",
- "浼婂畞鏈哄満",
- "涔変箤鏈哄満",
- "閾跺窛娌充笢鏈哄満",
- "姘稿窞闆堕櫟鏈哄満",
- "姒嗘灄姒嗛槼鏈哄満",
- "鐜夋爲宸村鏈哄満",
- "杩愬煄寮犲瓭鏈哄満"
- ]
- }, {
- "letter": "Z",
- "data": [
- "婀涙睙鏈哄満",
- "鏄�氭満鍦�",
- "閮戝窞鏂伴儜鍥介檯鏈哄満",
- "鑺锋睙鏈哄満",
- "閲嶅簡姹熷寳鍥介檯鏈哄満",
- "涓崼棣欏北鏈哄満",
- "鑸熷北鏈卞灏栨満鍦�",
- "鐝犳捣涓夌伓鏈哄満"
- ]
- }]
-}
diff --git a/common/common.js b/common/common.js
deleted file mode 100644
index e69de29..0000000
--- a/common/common.js
+++ /dev/null
diff --git a/common/graceChecker.js b/common/graceChecker.js
deleted file mode 100644
index 0758696..0000000
--- a/common/graceChecker.js
+++ /dev/null
@@ -1,97 +0,0 @@
-/**
-鏁版嵁楠岃瘉锛堣〃鍗曢獙璇侊級
-鏉ヨ嚜 grace.hcoder.net
-浣滆�� hcoder 娣辨捣
-*/
-module.exports = {
- error:'',
- check : function (data, rule){
- for(var i = 0; i < rule.length; i++){
- if (!rule[i].checkType){return true;}
- if (!rule[i].name) {return true;}
- if (!rule[i].errorMsg) {return true;}
- if (!data[rule[i].name]) {this.error = rule[i].errorMsg; return false;}
- switch (rule[i].checkType){
- case 'string':
- var reg = new RegExp('^.{' + rule[i].checkRule + '}$');
- if(!reg.test(data[rule[i].name])) {this.error = rule[i].errorMsg; return false;}
- break;
- case 'int':
- var reg = new RegExp('^(-[1-9]|[1-9])[0-9]{' + rule[i].checkRule + '}$');
- if(!reg.test(data[rule[i].name])) {this.error = rule[i].errorMsg; return false;}
- break;
- break;
- case 'between':
- if (!this.isNumber(data[rule[i].name])){
- this.error = rule[i].errorMsg;
- return false;
- }
- var minMax = rule[i].checkRule.split(',');
- minMax[0] = Number(minMax[0]);
- minMax[1] = Number(minMax[1]);
- if (data[rule[i].name] > minMax[1] || data[rule[i].name] < minMax[0]) {
- this.error = rule[i].errorMsg;
- return false;
- }
- break;
- case 'betweenD':
- var reg = /^-?[1-9][0-9]?$/;
- if (!reg.test(data[rule[i].name])) { this.error = rule[i].errorMsg; return false; }
- var minMax = rule[i].checkRule.split(',');
- minMax[0] = Number(minMax[0]);
- minMax[1] = Number(minMax[1]);
- if (data[rule[i].name] > minMax[1] || data[rule[i].name] < minMax[0]) {
- this.error = rule[i].errorMsg;
- return false;
- }
- break;
- case 'betweenF':
- var reg = /^-?[0-9][0-9]?.+[0-9]+$/;
- if (!reg.test(data[rule[i].name])){this.error = rule[i].errorMsg; return false;}
- var minMax = rule[i].checkRule.split(',');
- minMax[0] = Number(minMax[0]);
- minMax[1] = Number(minMax[1]);
- if (data[rule[i].name] > minMax[1] || data[rule[i].name] < minMax[0]) {
- this.error = rule[i].errorMsg;
- return false;
- }
- break;
- case 'same':
- if (data[rule[i].name] != rule[i].checkRule) { this.error = rule[i].errorMsg; return false;}
- break;
- case 'notsame':
- if (data[rule[i].name] == rule[i].checkRule) { this.error = rule[i].errorMsg; return false; }
- break;
- case 'email':
- var reg = /^\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/;
- if (!reg.test(data[rule[i].name])) { this.error = rule[i].errorMsg; return false; }
- break;
- case 'phoneno':
- var reg = /^1[0-9]{10,10}$/;
- if (!reg.test(data[rule[i].name])) { this.error = rule[i].errorMsg; return false; }
- break;
- case 'zipcode':
- var reg = /^[0-9]{6}$/;
- if (!reg.test(data[rule[i].name])) { this.error = rule[i].errorMsg; return false; }
- break;
- case 'reg':
- var reg = new RegExp(rule[i].checkRule);
- if (!reg.test(data[rule[i].name])) { this.error = rule[i].errorMsg; return false; }
- break;
- case 'in':
- if(rule[i].checkRule.indexOf(data[rule[i].name]) == -1){
- this.error = rule[i].errorMsg; return false;
- }
- break;
- case 'notnull':
- if(data[rule[i].name] == null || data[rule[i].name].length < 1){this.error = rule[i].errorMsg; return false;}
- break;
- }
- }
- return true;
- },
- isNumber : function (checkVal){
- var reg = /^-?[1-9][0-9]?.?[0-9]*$/;
- return reg.test(checkVal);
- }
-}
\ No newline at end of file
diff --git a/common/html-parser.js b/common/html-parser.js
deleted file mode 100644
index 20a89b2..0000000
--- a/common/html-parser.js
+++ /dev/null
@@ -1,352 +0,0 @@
-/*
- * HTML5 Parser By Sam Blowes
- *
- * Designed for HTML5 documents
- *
- * Original code by John Resig (ejohn.org)
- * http://ejohn.org/blog/pure-javascript-html-parser/
- * Original code by Erik Arvidsson, Mozilla Public License
- * http://erik.eae.net/simplehtmlparser/simplehtmlparser.js
- *
- * ----------------------------------------------------------------------------
- * License
- * ----------------------------------------------------------------------------
- *
- * This code is triple licensed using Apache Software License 2.0,
- * Mozilla Public License or GNU Public License
- *
- * ////////////////////////////////////////////////////////////////////////////
- *
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not
- * use this file except in compliance with the License. You may obtain a copy
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
- *
- * ////////////////////////////////////////////////////////////////////////////
- *
- * The contents of this file are subject to the Mozilla Public License
- * Version 1.1 (the "License"); you may not use this file except in
- * compliance with the License. You may obtain a copy of the License at
- * http://www.mozilla.org/MPL/
- *
- * Software distributed under the License is distributed on an "AS IS"
- * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
- * License for the specific language governing rights and limitations
- * under the License.
- *
- * The Original Code is Simple HTML Parser.
- *
- * The Initial Developer of the Original Code is Erik Arvidsson.
- * Portions created by Erik Arvidssson are Copyright (C) 2004. All Rights
- * Reserved.
- *
- * ////////////////////////////////////////////////////////////////////////////
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- *
- * ----------------------------------------------------------------------------
- * Usage
- * ----------------------------------------------------------------------------
- *
- * // Use like so:
- * HTMLParser(htmlString, {
- * start: function(tag, attrs, unary) {},
- * end: function(tag) {},
- * chars: function(text) {},
- * comment: function(text) {}
- * });
- *
- * // or to get an XML string:
- * HTMLtoXML(htmlString);
- *
- * // or to get an XML DOM Document
- * HTMLtoDOM(htmlString);
- *
- * // or to inject into an existing document/DOM node
- * HTMLtoDOM(htmlString, document);
- * HTMLtoDOM(htmlString, document.body);
- *
- */
-// Regular Expressions for parsing tags and attributes
-var startTag = /^<([-A-Za-z0-9_]+)((?:\s+[a-zA-Z_:][-a-zA-Z0-9_:.]*(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/;
-var endTag = /^<\/([-A-Za-z0-9_]+)[^>]*>/;
-var attr = /([a-zA-Z_:][-a-zA-Z0-9_:.]*)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))?/g; // Empty Elements - HTML 5
-
-var empty = makeMap('area,base,basefont,br,col,frame,hr,img,input,link,meta,param,embed,command,keygen,source,track,wbr'); // Block Elements - HTML 5
-// fixed by xxx 灏� ins 鏍囩浠庡潡绾у悕鍗曚腑绉婚櫎
-
-var block = makeMap('a,address,article,applet,aside,audio,blockquote,button,canvas,center,dd,del,dir,div,dl,dt,fieldset,figcaption,figure,footer,form,frameset,h1,h2,h3,h4,h5,h6,header,hgroup,hr,iframe,isindex,li,map,menu,noframes,noscript,object,ol,output,p,pre,section,script,table,tbody,td,tfoot,th,thead,tr,ul,video'); // Inline Elements - HTML 5
-
-var inline = makeMap('abbr,acronym,applet,b,basefont,bdo,big,br,button,cite,code,del,dfn,em,font,i,iframe,img,input,ins,kbd,label,map,object,q,s,samp,script,select,small,span,strike,strong,sub,sup,textarea,tt,u,var'); // Elements that you can, intentionally, leave open
-// (and which close themselves)
-
-var closeSelf = makeMap('colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr'); // Attributes that have their values filled in disabled="disabled"
-
-var fillAttrs = makeMap('checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected'); // Special Elements (can contain anything)
-
-var special = makeMap('script,style');
-function HTMLParser(html, handler) {
- var index;
- var chars;
- var match;
- var stack = [];
- var last = html;
-
- stack.last = function () {
- return this[this.length - 1];
- };
-
- while (html) {
- chars = true; // Make sure we're not in a script or style element
-
- if (!stack.last() || !special[stack.last()]) {
- // Comment
- if (html.indexOf('<!--') == 0) {
- index = html.indexOf('-->');
-
- if (index >= 0) {
- if (handler.comment) {
- handler.comment(html.substring(4, index));
- }
-
- html = html.substring(index + 3);
- chars = false;
- } // end tag
-
- } else if (html.indexOf('</') == 0) {
- match = html.match(endTag);
-
- if (match) {
- html = html.substring(match[0].length);
- match[0].replace(endTag, parseEndTag);
- chars = false;
- } // start tag
-
- } else if (html.indexOf('<') == 0) {
- match = html.match(startTag);
-
- if (match) {
- html = html.substring(match[0].length);
- match[0].replace(startTag, parseStartTag);
- chars = false;
- }
- }
-
- if (chars) {
- index = html.indexOf('<');
- var text = index < 0 ? html : html.substring(0, index);
- html = index < 0 ? '' : html.substring(index);
-
- if (handler.chars) {
- handler.chars(text);
- }
- }
- } else {
- html = html.replace(new RegExp('([\\s\\S]*?)<\/' + stack.last() + '[^>]*>'), function (all, text) {
- text = text.replace(/<!--([\s\S]*?)-->|<!\[CDATA\[([\s\S]*?)]]>/g, '$1$2');
-
- if (handler.chars) {
- handler.chars(text);
- }
-
- return '';
- });
- parseEndTag('', stack.last());
- }
-
- if (html == last) {
- throw 'Parse Error: ' + html;
- }
-
- last = html;
- } // Clean up any remaining tags
-
-
- parseEndTag();
-
- function parseStartTag(tag, tagName, rest, unary) {
- tagName = tagName.toLowerCase();
-
- if (block[tagName]) {
- while (stack.last() && inline[stack.last()]) {
- parseEndTag('', stack.last());
- }
- }
-
- if (closeSelf[tagName] && stack.last() == tagName) {
- parseEndTag('', tagName);
- }
-
- unary = empty[tagName] || !!unary;
-
- if (!unary) {
- stack.push(tagName);
- }
-
- if (handler.start) {
- var attrs = [];
- rest.replace(attr, function (match, name) {
- var value = arguments[2] ? arguments[2] : arguments[3] ? arguments[3] : arguments[4] ? arguments[4] : fillAttrs[name] ? name : '';
- attrs.push({
- name: name,
- value: value,
- escaped: value.replace(/(^|[^\\])"/g, '$1\\\"') // "
-
- });
- });
-
- if (handler.start) {
- handler.start(tagName, attrs, unary);
- }
- }
- }
-
- function parseEndTag(tag, tagName) {
- // If no tag name is provided, clean shop
- if (!tagName) {
- var pos = 0;
- } // Find the closest opened tag of the same type
- else {
- for (var pos = stack.length - 1; pos >= 0; pos--) {
- if (stack[pos] == tagName) {
- break;
- }
- }
- }
-
- if (pos >= 0) {
- // Close all the open elements, up the stack
- for (var i = stack.length - 1; i >= pos; i--) {
- if (handler.end) {
- handler.end(stack[i]);
- }
- } // Remove the open elements from the stack
-
-
- stack.length = pos;
- }
- }
-}
-
-function makeMap(str) {
- var obj = {};
- var items = str.split(',');
-
- for (var i = 0; i < items.length; i++) {
- obj[items[i]] = true;
- }
-
- return obj;
-}
-
-function removeDOCTYPE(html) {
- return html.replace(/<\?xml.*\?>\n/, '').replace(/<!doctype.*>\n/, '').replace(/<!DOCTYPE.*>\n/, '');
-}
-
-function parseAttrs(attrs) {
- return attrs.reduce(function (pre, attr) {
- var value = attr.value;
- var name = attr.name;
-
- if (pre[name]) {
- pre[name] = pre[name] + " " + value;
- } else {
- pre[name] = value;
- }
-
- return pre;
- }, {});
-}
-
-function parseHtml(html) {
- html = removeDOCTYPE(html);
- var stacks = [];
- var results = {
- node: 'root',
- children: []
- };
- HTMLParser(html, {
- start: function start(tag, attrs, unary) {
- var node = {
- name: tag
- };
-
- if (attrs.length !== 0) {
- node.attrs = parseAttrs(attrs);
- }
-
- if (unary) {
- var parent = stacks[0] || results;
-
- if (!parent.children) {
- parent.children = [];
- }
-
- parent.children.push(node);
- } else {
- stacks.unshift(node);
- }
- },
- end: function end(tag) {
- var node = stacks.shift();
- if (node.name !== tag) console.error('invalid state: mismatch end tag');
-
- if (stacks.length === 0) {
- results.children.push(node);
- } else {
- var parent = stacks[0];
-
- if (!parent.children) {
- parent.children = [];
- }
-
- parent.children.push(node);
- }
- },
- chars: function chars(text) {
- var node = {
- type: 'text',
- text: text
- };
-
- if (stacks.length === 0) {
- results.children.push(node);
- } else {
- var parent = stacks[0];
-
- if (!parent.children) {
- parent.children = [];
- }
-
- parent.children.push(node);
- }
- },
- comment: function comment(text) {
- var node = {
- node: 'comment',
- text: text
- };
- var parent = stacks[0];
-
- if (!parent.children) {
- parent.children = [];
- }
-
- parent.children.push(node);
- }
- });
- return results.children;
-}
-
-export default parseHtml;
diff --git a/common/md5.js b/common/md5.js
deleted file mode 100644
index 86280bb..0000000
--- a/common/md5.js
+++ /dev/null
@@ -1,217 +0,0 @@
-var hexcase = 0;
-var b64pad = "";
-var chrsz = 8;
-function hex_md5(s){ return binl2hex(core_md5(str2binl(s), s.length * chrsz));}
-/*
- * Perform a simple self-test to see if the VM is working
- */
-function md5_vm_test()
-{
- return hex_md5("abc") == "900150983cd24fb0d6963f7d28e17f72";
-}
-/*
- * Calculate the MD5 of an array of little-endian words, and a bit length
- */
-function core_md5(x, len)
-{
- /* append padding */
- x[len >> 5] |= 0x80 << ((len) % 32);
- x[(((len + 64) >>> 9) << 4) + 14] = len;
- var a = 1732584193;
- var b = -271733879;
- var c = -1732584194;
- var d = 271733878;
- for(var i = 0; i < x.length; i += 16)
- {
- var olda = a;
- var oldb = b;
- var oldc = c;
- var oldd = d;
- a = md5_ff(a, b, c, d, x[i+ 0], 7 , -680876936);
- d = md5_ff(d, a, b, c, x[i+ 1], 12, -389564586);
- c = md5_ff(c, d, a, b, x[i+ 2], 17, 606105819);
- b = md5_ff(b, c, d, a, x[i+ 3], 22, -1044525330);
- a = md5_ff(a, b, c, d, x[i+ 4], 7 , -176418897);
- d = md5_ff(d, a, b, c, x[i+ 5], 12, 1200080426);
- c = md5_ff(c, d, a, b, x[i+ 6], 17, -1473231341);
- b = md5_ff(b, c, d, a, x[i+ 7], 22, -45705983);
- a = md5_ff(a, b, c, d, x[i+ 8], 7 , 1770035416);
- d = md5_ff(d, a, b, c, x[i+ 9], 12, -1958414417);
- c = md5_ff(c, d, a, b, x[i+10], 17, -42063);
- b = md5_ff(b, c, d, a, x[i+11], 22, -1990404162);
- a = md5_ff(a, b, c, d, x[i+12], 7 , 1804603682);
- d = md5_ff(d, a, b, c, x[i+13], 12, -40341101);
- c = md5_ff(c, d, a, b, x[i+14], 17, -1502002290);
- b = md5_ff(b, c, d, a, x[i+15], 22, 1236535329);
- a = md5_gg(a, b, c, d, x[i+ 1], 5 , -165796510);
- d = md5_gg(d, a, b, c, x[i+ 6], 9 , -1069501632);
- c = md5_gg(c, d, a, b, x[i+11], 14, 643717713);
- b = md5_gg(b, c, d, a, x[i+ 0], 20, -373897302);
- a = md5_gg(a, b, c, d, x[i+ 5], 5 , -701558691);
- d = md5_gg(d, a, b, c, x[i+10], 9 , 38016083);
- c = md5_gg(c, d, a, b, x[i+15], 14, -660478335);
- b = md5_gg(b, c, d, a, x[i+ 4], 20, -405537848);
- a = md5_gg(a, b, c, d, x[i+ 9], 5 , 568446438);
- d = md5_gg(d, a, b, c, x[i+14], 9 , -1019803690);
- c = md5_gg(c, d, a, b, x[i+ 3], 14, -187363961);
- b = md5_gg(b, c, d, a, x[i+ 8], 20, 1163531501);
- a = md5_gg(a, b, c, d, x[i+13], 5 , -1444681467);
- d = md5_gg(d, a, b, c, x[i+ 2], 9 , -51403784);
- c = md5_gg(c, d, a, b, x[i+ 7], 14, 1735328473);
- b = md5_gg(b, c, d, a, x[i+12], 20, -1926607734);
- a = md5_hh(a, b, c, d, x[i+ 5], 4 , -378558);
- d = md5_hh(d, a, b, c, x[i+ 8], 11, -2022574463);
- c = md5_hh(c, d, a, b, x[i+11], 16, 1839030562);
- b = md5_hh(b, c, d, a, x[i+14], 23, -35309556);
- a = md5_hh(a, b, c, d, x[i+ 1], 4 , -1530992060);
- d = md5_hh(d, a, b, c, x[i+ 4], 11, 1272893353);
- c = md5_hh(c, d, a, b, x[i+ 7], 16, -155497632);
- b = md5_hh(b, c, d, a, x[i+10], 23, -1094730640);
- a = md5_hh(a, b, c, d, x[i+13], 4 , 681279174);
- d = md5_hh(d, a, b, c, x[i+ 0], 11, -358537222);
- c = md5_hh(c, d, a, b, x[i+ 3], 16, -722521979);
- b = md5_hh(b, c, d, a, x[i+ 6], 23, 76029189);
- a = md5_hh(a, b, c, d, x[i+ 9], 4 , -640364487);
- d = md5_hh(d, a, b, c, x[i+12], 11, -421815835);
- c = md5_hh(c, d, a, b, x[i+15], 16, 530742520);
- b = md5_hh(b, c, d, a, x[i+ 2], 23, -995338651);
- a = md5_ii(a, b, c, d, x[i+ 0], 6 , -198630844);
- d = md5_ii(d, a, b, c, x[i+ 7], 10, 1126891415);
- c = md5_ii(c, d, a, b, x[i+14], 15, -1416354905);
- b = md5_ii(b, c, d, a, x[i+ 5], 21, -57434055);
- a = md5_ii(a, b, c, d, x[i+12], 6 , 1700485571);
- d = md5_ii(d, a, b, c, x[i+ 3], 10, -1894986606);
- c = md5_ii(c, d, a, b, x[i+10], 15, -1051523);
- b = md5_ii(b, c, d, a, x[i+ 1], 21, -2054922799);
- a = md5_ii(a, b, c, d, x[i+ 8], 6 , 1873313359);
- d = md5_ii(d, a, b, c, x[i+15], 10, -30611744);
- c = md5_ii(c, d, a, b, x[i+ 6], 15, -1560198380);
- b = md5_ii(b, c, d, a, x[i+13], 21, 1309151649);
- a = md5_ii(a, b, c, d, x[i+ 4], 6 , -145523070);
- d = md5_ii(d, a, b, c, x[i+11], 10, -1120210379);
- c = md5_ii(c, d, a, b, x[i+ 2], 15, 718787259);
- b = md5_ii(b, c, d, a, x[i+ 9], 21, -343485551);
- a = safe_add(a, olda);
- b = safe_add(b, oldb);
- c = safe_add(c, oldc);
- d = safe_add(d, oldd);
- }
- return Array(a, b, c, d);
-}
-/*
- * These functions implement the four basic operations the algorithm uses.
- */
-function md5_cmn(q, a, b, x, s, t)
-{
- return safe_add(bit_rol(safe_add(safe_add(a, q), safe_add(x, t)), s),b);
-}
-function md5_ff(a, b, c, d, x, s, t)
-{
- return md5_cmn((b & c) | ((~b) & d), a, b, x, s, t);
-}
-function md5_gg(a, b, c, d, x, s, t)
-{
- return md5_cmn((b & d) | (c & (~d)), a, b, x, s, t);
-}
-function md5_hh(a, b, c, d, x, s, t)
-{
- return md5_cmn(b ^ c ^ d, a, b, x, s, t);
-}
-function md5_ii(a, b, c, d, x, s, t)
-{
- return md5_cmn(c ^ (b | (~d)), a, b, x, s, t);
-}
-/*
- * Calculate the HMAC-MD5, of a key and some data
- */
-function core_hmac_md5(key, data)
-{
- var bkey = str2binl(key);
- if(bkey.length > 16) bkey = core_md5(bkey, key.length * chrsz);
- var ipad = Array(16), opad = Array(16);
- for(var i = 0; i < 16; i++)
- {
- ipad[i] = bkey[i] ^ 0x36363636;
- opad[i] = bkey[i] ^ 0x5C5C5C5C;
- }
- var hash = core_md5(ipad.concat(str2binl(data)), 512 + data.length * chrsz);
- return core_md5(opad.concat(hash), 512 + 128);
-}
-/*
- * Add integers, wrapping at 2^32. This uses 16-bit operations internally
- * to work around bugs in some JS interpreters.
- */
-function safe_add(x, y)
-{
- var lsw = (x & 0xFFFF) + (y & 0xFFFF);
- var msw = (x >> 16) + (y >> 16) + (lsw >> 16);
- return (msw << 16) | (lsw & 0xFFFF);
-}
-/*
- * Bitwise rotate a 32-bit number to the left.
- */
-function bit_rol(num, cnt)
-{
- return (num << cnt) | (num >>> (32 - cnt));
-}
-/*
- * Convert a string to an array of little-endian words
- * If chrsz is ASCII, characters >255 have their hi-byte silently ignored.
- */
-function str2binl(str)
-{
- var bin = Array();
- var mask = (1 << chrsz) - 1;
- for(var i = 0; i < str.length * chrsz; i += chrsz)
- bin[i>>5] |= (str.charCodeAt(i / chrsz) & mask) << (i%32);
- return bin;
-}
-/*
- * Convert an array of little-endian words to a string
- */
-function binl2str(bin)
-{
- var str = "";
- var mask = (1 << chrsz) - 1;
- for(var i = 0; i < bin.length * 32; i += chrsz)
- str += String.fromCharCode((bin[i>>5] >>> (i % 32)) & mask);
- return str;
-}
-/*
- * Convert an array of little-endian words to a hex string.
- */
-function binl2hex(binarray)
-{
- var hex_tab = hexcase ? "0123456789ABCDEF" : "0123456789abcdef";
- var str = "";
- for(var i = 0; i < binarray.length * 4; i++)
- {
- str += hex_tab.charAt((binarray[i>>2] >> ((i%4)*8+4)) & 0xF) +
- hex_tab.charAt((binarray[i>>2] >> ((i%4)*8 )) & 0xF);
- }
- return str;
-}
-/*
- * Convert an array of little-endian words to a base-64 string
- */
-function binl2b64(binarray)
-{
- var tab = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
- var str = "";
- for(var i = 0; i < binarray.length * 4; i += 3)
- {
- var triplet = (((binarray[i >> 2] >> 8 * ( i %4)) & 0xFF) << 16)
- | (((binarray[i+1 >> 2] >> 8 * ((i+1)%4)) & 0xFF) << 8 )
- | ((binarray[i+2 >> 2] >> 8 * ((i+2)%4)) & 0xFF);
- for(var j = 0; j < 4; j++)
- {
- if(i * 8 + j * 6 > binarray.length * 32) str += b64pad;
- else str += tab.charAt((triplet >> 6*(3-j)) & 0x3F);
- }
- }
- return str;
-}
-
-module.exports = {
- hex_md5: hex_md5
-}
\ No newline at end of file
diff --git a/common/permission.js b/common/permission.js
deleted file mode 100644
index 03abce6..0000000
--- a/common/permission.js
+++ /dev/null
@@ -1,245 +0,0 @@
-/// null = 鏈姹傦紝1 = 宸插厑璁革紝0 = 鎷掔粷|鍙楅檺, 2 = 绯荤粺鏈紑鍚�
-
-var isIOS
-
-function album() {
- var result = 0;
- var PHPhotoLibrary = plus.ios.import("PHPhotoLibrary");
- var authStatus = PHPhotoLibrary.authorizationStatus();
- if (authStatus === 0) {
- result = null;
- } else if (authStatus == 3) {
- result = 1;
- } else {
- result = 0;
- }
- plus.ios.deleteObject(PHPhotoLibrary);
- return result;
-}
-
-function camera() {
- var result = 0;
- var AVCaptureDevice = plus.ios.import("AVCaptureDevice");
- var authStatus = AVCaptureDevice.authorizationStatusForMediaType('vide');
- if (authStatus === 0) {
- result = null;
- } else if (authStatus == 3) {
- result = 1;
- } else {
- result = 0;
- }
- plus.ios.deleteObject(AVCaptureDevice);
- return result;
-}
-
-function location() {
- var result = 0;
- var cllocationManger = plus.ios.import("CLLocationManager");
- var enable = cllocationManger.locationServicesEnabled();
- var status = cllocationManger.authorizationStatus();
- if (!enable) {
- result = 2;
- } else if (status === 0) {
- result = null;
- } else if (status === 3 || status === 4) {
- result = 1;
- } else {
- result = 0;
- }
- plus.ios.deleteObject(cllocationManger);
- return result;
-}
-
-function push() {
- var result = 0;
- var UIApplication = plus.ios.import("UIApplication");
- var app = UIApplication.sharedApplication();
- var enabledTypes = 0;
- if (app.currentUserNotificationSettings) {
- var settings = app.currentUserNotificationSettings();
- enabledTypes = settings.plusGetAttribute("types");
- if (enabledTypes == 0) {
- result = 0;
- console.log("鎺ㄩ�佹潈闄愭病鏈夊紑鍚�");
- } else {
- result = 1;
- console.log("宸茬粡寮�鍚帹閫佸姛鑳�!")
- }
- plus.ios.deleteObject(settings);
- } else {
- enabledTypes = app.enabledRemoteNotificationTypes();
- if (enabledTypes == 0) {
- result = 3;
- console.log("鎺ㄩ�佹潈闄愭病鏈夊紑鍚�!");
- } else {
- result = 4;
- console.log("宸茬粡寮�鍚帹閫佸姛鑳�!")
- }
- }
- plus.ios.deleteObject(app);
- plus.ios.deleteObject(UIApplication);
- return result;
-}
-
-function contact() {
- var result = 0;
- var CNContactStore = plus.ios.import("CNContactStore");
- var cnAuthStatus = CNContactStore.authorizationStatusForEntityType(0);
- if (cnAuthStatus === 0) {
- result = null;
- } else if (cnAuthStatus == 3) {
- result = 1;
- } else {
- result = 0;
- }
- plus.ios.deleteObject(CNContactStore);
- return result;
-}
-
-function record() {
- var result = null;
- var avaudiosession = plus.ios.import("AVAudioSession");
- var avaudio = avaudiosession.sharedInstance();
- var status = avaudio.recordPermission();
- console.log("permissionStatus:" + status);
- if (status === 1970168948) {
- result = null;
- } else if (status === 1735552628) {
- result = 1;
- } else {
- result = 0;
- }
- plus.ios.deleteObject(avaudiosession);
- return result;
-}
-
-function calendar() {
- var result = null;
- var EKEventStore = plus.ios.import("EKEventStore");
- var ekAuthStatus = EKEventStore.authorizationStatusForEntityType(0);
- if (ekAuthStatus == 3) {
- result = 1;
- console.log("鏃ュ巻鏉冮檺宸茬粡寮�鍚�");
- } else {
- console.log("鏃ュ巻鏉冮檺娌℃湁寮�鍚�");
- }
- plus.ios.deleteObject(EKEventStore);
- return result;
-}
-
-function memo() {
- var result = null;
- var EKEventStore = plus.ios.import("EKEventStore");
- var ekAuthStatus = EKEventStore.authorizationStatusForEntityType(1);
- if (ekAuthStatus == 3) {
- result = 1;
- console.log("澶囧繕褰曟潈闄愬凡缁忓紑鍚�");
- } else {
- console.log("澶囧繕褰曟潈闄愭病鏈夊紑鍚�");
- }
- plus.ios.deleteObject(EKEventStore);
- return result;
-}
-
-
-function requestIOS(permissionID) {
- return new Promise((resolve, reject) => {
- switch (permissionID) {
- case "push":
- resolve(push());
- break;
- case "location":
- resolve(location());
- break;
- case "record":
- resolve(record());
- break;
- case "camera":
- resolve(camera());
- break;
- case "album":
- resolve(album());
- break;
- case "contact":
- resolve(contact());
- break;
- case "calendar":
- resolve(calendar());
- break;
- case "memo":
- resolve(memo());
- break;
- default:
- resolve(0);
- break;
- }
- });
-}
-
-function requestAndroid(permissionID) {
- return new Promise((resolve, reject) => {
- plus.android.requestPermissions(
- [permissionID],
- function(resultObj) {
- var result = 0;
- for (var i = 0; i < resultObj.granted.length; i++) {
- var grantedPermission = resultObj.granted[i];
- console.log('宸茶幏鍙栫殑鏉冮檺锛�' + grantedPermission);
- result = 1
- }
- for (var i = 0; i < resultObj.deniedPresent.length; i++) {
- var deniedPresentPermission = resultObj.deniedPresent[i];
- console.log('鎷掔粷鏈鐢宠鐨勬潈闄愶細' + deniedPresentPermission);
- result = 0
- }
- for (var i = 0; i < resultObj.deniedAlways.length; i++) {
- var deniedAlwaysPermission = resultObj.deniedAlways[i];
- console.log('姘镐箙鎷掔粷鐢宠鐨勬潈闄愶細' + deniedAlwaysPermission);
- result = -1
- }
- resolve(result);
- },
- function(error) {
- console.log('result error: ' + error.message)
- resolve({
- code: error.code,
- message: error.message
- });
- }
- );
- });
-}
-
-function gotoAppPermissionSetting() {
- if (permission.isIOS) {
- var UIApplication = plus.ios.import("UIApplication");
- var application2 = UIApplication.sharedApplication();
- var NSURL2 = plus.ios.import("NSURL");
- var setting2 = NSURL2.URLWithString("app-settings:");
- application2.openURL(setting2);
- plus.ios.deleteObject(setting2);
- plus.ios.deleteObject(NSURL2);
- plus.ios.deleteObject(application2);
- } else {
- var Intent = plus.android.importClass("android.content.Intent");
- var Settings = plus.android.importClass("android.provider.Settings");
- var Uri = plus.android.importClass("android.net.Uri");
- var mainActivity = plus.android.runtimeMainActivity();
- var intent = new Intent();
- intent.setAction(Settings.ACTION_APPLICATION_DETAILS_SETTINGS);
- var uri = Uri.fromParts("package", mainActivity.getPackageName(), null);
- intent.setData(uri);
- mainActivity.startActivity(intent);
- }
-}
-
-const permission = {
- get isIOS(){
- return typeof isIOS === 'boolean' ? isIOS : (isIOS = uni.getSystemInfoSync().platform === 'ios')
- },
- requestIOS: requestIOS,
- requestAndroid: requestAndroid,
- gotoAppSetting: gotoAppPermissionSetting
-}
-
-module.exports = permission
diff --git a/common/uni-nvue.css b/common/uni-nvue.css
deleted file mode 100644
index 6863ac9..0000000
--- a/common/uni-nvue.css
+++ /dev/null
@@ -1,136 +0,0 @@
-/* #ifndef APP-PLUS-NVUE */
-page {
- min-height: 100%;
- height: auto;
-}
-/* #endif */
-
-/* 瑙e喅澶存潯灏忕▼搴忓瓧浣撳浘鏍囦笉鏄剧ず闂锛屽洜涓哄ご鏉¤繍琛屾椂鑷姩鎻掑叆浜唖pan鏍囩锛屼笖鏈夊叏灞�瀛椾綋 */
-/* #ifdef MP-TOUTIAO */
-/* text :not(view) {
- font-family: uniicons;
-} */
-/* #endif */
-
-.uni-icon {
- font-family: uniicons;
- font-weight: normal;
-}
-
-.uni-container {
- padding: 15px;
- background-color: #f8f8f8;
-}
-
-.uni-header-logo {
- /* #ifdef H5 */
- display: flex;
- /* #endif */
- padding: 15px 15px;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- margin-top: 10rpx;
-}
-
-.uni-header-image {
- width: 80px;
- height: 80px;
-}
-
-.uni-hello-text {
- margin-bottom: 20px;
-}
-
-.hello-text {
- color: #7A7E83;
- font-size: 14px;
- line-height: 20px;
-}
-
-.hello-link {
- color: #7A7E83;
- font-size: 14px;
- line-height: 20px;
-}
-
-.uni-panel {
- margin-bottom: 12px;
-}
-
-.uni-panel-h {
- /* #ifdef H5 */
- display: flex;
- /* #endif */
- background-color: #ffffff;
- flex-direction: row !important;
- /* justify-content: space-between !important; */
- align-items: center !important;
- padding: 12px;
- /* #ifdef H5 */
- cursor: pointer;
- /* #endif */
-}
-/*
-.uni-panel-h:active {
- background-color: #f8f8f8;
-}
- */
-.uni-panel-h-on {
- background-color: #f0f0f0;
-}
-
-.uni-panel-text {
- flex: 1;
- color: #000000;
- font-size: 14px;
- font-weight: normal;
-}
-
-.uni-panel-icon {
- margin-left: 15px;
- color: #999999;
- font-size: 14px;
- font-weight: normal;
- transform: rotate(0deg);
- transition-duration: 0s;
- transition-property: transform;
-}
-
-.uni-panel-icon-on {
- transform: rotate(180deg);
-}
-
-.uni-navigate-item {
- /* #ifdef H5 */
- display: flex;
- /* #endif */
- flex-direction: row;
- align-items: center;
- background-color: #FFFFFF;
- border-top-style: solid;
- border-top-color: #f0f0f0;
- border-top-width: 1px;
- padding: 12px;
- /* #ifdef H5 */
- cursor: pointer;
- /* #endif */
-}
-
-.uni-navigate-item:active {
- background-color: #f8f8f8;
-}
-
-.uni-navigate-text {
- flex: 1;
- color: #000000;
- font-size: 14px;
- font-weight: normal;
-}
-
-.uni-navigate-icon {
- margin-left: 15px;
- color: #999999;
- font-size: 14px;
- font-weight: normal;
-}
diff --git a/common/uni.css b/common/uni.css
deleted file mode 100644
index 6603275..0000000
--- a/common/uni.css
+++ /dev/null
@@ -1,1463 +0,0 @@
-@font-face {
- font-family: uniicons;
- font-weight: normal;
- font-style: normal;
- src: url('~@/static/uni.ttf') format('truetype');
-}
-
-/* #ifdef H5 */
-.fix-left-window {
- padding-left: var(--window-left);
-}
-.pc-hide {
- display: none !important;
-}
-/* #endif */
-
-/*閫氱敤 */
-
-/* view{
- font-size:28rpx;
- line-height:1.8;
-} */
-progress, checkbox-group{
- width: 100%;
-}
-form {
- width: 100%;
-}
-.uni-flex {
- display: flex;
- flex-direction: row;
-}
-.uni-flex-item {
- flex: 1;
-}
-.uni-row {
- flex-direction: row;
-}
-.uni-column {
- flex-direction: column;
-}
-.uni-link{
- color:#576B95;
- font-size:26rpx;
-}
-.uni-center{
- text-align:center;
-}
-.uni-inline-item{
- display: flex;
- flex-direction: row;
- align-items:center;
-}
-.uni-inline-item text{
- margin-right: 20rpx;
-}
-.uni-inline-item text:last-child{
- margin-right: 0rpx;
- margin-left: 20rpx;
-}
-
-/* page */
-.uni-page-head{
- padding:35rpx;
- text-align: center;
-}
-.uni-page-head-title {
- display: inline-block;
- padding: 0 40rpx;
- font-size: 30rpx;
- height: 88rpx;
- line-height: 88rpx;
- color: #BEBEBE;
- box-sizing: border-box;
- border-bottom: 2rpx solid #D8D8D8;
-}
-.uni-page-body {
- width: 100%;
- padding:0 100px;
- flex-grow: 1;
- /* overflow-x: hidden; */
-}
-.uni-padding-wrap{
- /* width:690rpx; */
- padding:0 30rpx;
-}
-.uni-word {
- text-align: center;
- padding:200rpx 100rpx;
-}
-.uni-title {
- font-size:30rpx;
- font-weight:500;
- padding:20rpx 0;
- line-height:1.5;
-}
-.uni-text{
- font-size:28rpx;
-}
-.uni-title text{
- font-size:24rpx;
- color:#888;
-}
-
-.uni-text-gray{
- color: #ccc;
-}
-.uni-text-small {
- font-size:24rpx;
-}
-.uni-common-mb{
- margin-bottom:30rpx;
-}
-.uni-common-pb{
- padding-bottom:30rpx;
-}
-.uni-common-pl{
- padding-left:30rpx;
-}
-.uni-common-mt{
- margin-top:30rpx;
-}
-/* 鑳屾櫙鑹� */
-.uni-bg-red{
- background:#F76260; color:#FFF;
-}
-.uni-bg-green{
- background:#09BB07; color:#FFF;
-}
-.uni-bg-blue{
- background:#007AFF; color:#FFF;
-}
-/* 鏍囬 */
-.uni-h1 {font-size: 80rpx; font-weight:700;}
-.uni-h2 {font-size: 60rpx; font-weight:700;}
-.uni-h3 {font-size: 48rpx; font-weight:700;}
-.uni-h4 {font-size: 36rpx; font-weight:700;}
-.uni-h5 {font-size: 28rpx; color: #8f8f94;}
-.uni-h6 {font-size: 24rpx; color: #8f8f94;}
-.uni-bold{font-weight:bold;}
-
-/* 鏂囨湰婧㈠嚭闅愯棌 */
-.uni-ellipsis {overflow: hidden; white-space: nowrap; text-overflow: ellipsis;}
-
-/* 绔栧悜鐧惧垎鐧炬寜閽� */
-.uni-btn-v{
- padding:10rpx 0;
-}
-.uni-btn-v button{margin:20rpx 0;}
-
-/* 琛ㄥ崟 */
-.uni-form-item{
- display:flex;
- width:100%;
- padding:10rpx 0;
-}
-.uni-form-item .title{
- padding:10rpx 25rpx;
-}
-.uni-label {
- width: 210rpx;
- word-wrap: break-word;
- word-break: break-all;
- text-indent:20rpx;
-}
-.uni-input {
- height: 50rpx;
- padding: 15rpx 25rpx;
- line-height:50rpx;
- font-size:28rpx;
- background:#FFF;
- flex: 1;
-}
-radio-group, checkbox-group{
- width:100%;
-}
-radio-group label, checkbox-group label{
- padding-right:20rpx;
-}
-.uni-form-item .with-fun{
- display:flex;
- flex-wrap:nowrap;
- background:#FFFFFF;
-}
-.uni-form-item .with-fun .uni-icon{
- width:40px;
- height:80rpx;
- line-height:80rpx;
- flex-shrink:0;
-}
-
-/* loadmore */
-.uni-loadmore{
- height:80rpx;
- line-height:80rpx;
- text-align:center;
- padding-bottom:30rpx;
-}
-/*鏁板瓧瑙掓爣*/
-.uni-badge,
-.uni-badge-default {
- font-family: 'Helvetica Neue', Helvetica, sans-serif;
- font-size: 12px;
- line-height: 1;
- display: inline-block;
- padding: 3px 6px;
- color: #333;
- border-radius: 100px;
- background-color: rgba(0, 0, 0, .15);
-}
-.uni-badge.uni-badge-inverted {
- padding: 0 5px 0 0;
- color: #929292;
- background-color: transparent
-}
-.uni-badge-primary {
- color: #fff;
- background-color: #007aff
-}
-.uni-badge-blue.uni-badge-inverted,
-.uni-badge-primary.uni-badge-inverted {
- color: #007aff;
- background-color: transparent
-}
-.uni-badge-green,
-.uni-badge-success {
- color: #fff;
- background-color: #4cd964;
-}
-.uni-badge-green.uni-badge-inverted,
-.uni-badge-success.uni-badge-inverted {
- color: #4cd964;
- background-color: transparent
-}
-.uni-badge-warning,
-.uni-badge-yellow {
- color: #fff;
- background-color: #f0ad4e
-}
-.uni-badge-warning.uni-badge-inverted,
-.uni-badge-yellow.uni-badge-inverted {
- color: #f0ad4e;
- background-color: transparent
-}
-.uni-badge-danger,
-.uni-badge-red {
- color: #fff;
- background-color: #dd524d
-}
-.uni-badge-danger.uni-badge-inverted,
-.uni-badge-red.uni-badge-inverted {
- color: #dd524d;
- background-color: transparent
-}
-.uni-badge-purple,
-.uni-badge-royal {
- color: #fff;
- background-color: #8a6de9
-}
-.uni-badge-purple.uni-badge-inverted,
-.uni-badge-royal.uni-badge-inverted {
- color: #8a6de9;
- background-color: transparent
-}
-
-/*鎶樺彔闈㈡澘 */
-.uni-collapse-content {
- height: 0;
- width: 100%;
- overflow: hidden;
-}
-.uni-collapse-content.uni-active {
- height: auto;
-}
-
-/*鍗$墖瑙嗗浘 */
-.uni-card {
- background: #fff;
- border-radius: 8rpx;
- margin:20rpx 0;
- position: relative;
- box-shadow: 0 2rpx 4rpx rgba(0, 0, 0, .3);
-}
-.uni-card-content {
- font-size: 30rpx;
-}
-.uni-card-content.image-view{
- width: 100%;
- margin: 0;
-}
-.uni-card-content-inner {
- position: relative;
- padding: 30rpx;
-}
-.uni-card-footer,
-.uni-card-header {
- position: relative;
- display: flex;
- min-height: 50rpx;
- padding: 20rpx 30rpx;
- justify-content: space-between;
- align-items: center;
-}
-.uni-card-header {
- font-size: 36rpx;
-}
-.uni-card-footer {
- color: #6d6d72;
-}
-.uni-card-footer:before,
-.uni-card-header:after {
- position: absolute;
- top: 0;
- right: 0;
- left: 0;
- height: 2rpx;
- content: '';
- -webkit-transform: scaleY(.5);
- transform: scaleY(.5);
- background-color: #c8c7cc;
-}
-.uni-card-header:after {
- top: auto;
- bottom: 0;
-}
-.uni-card-media {
- justify-content: flex-start;
-}
-.uni-card-media-logo {
- height: 84rpx;
- width: 84rpx;
- margin-right: 20rpx;
-}
-.uni-card-media-body {
- height: 84rpx;
- display: flex;
- flex-direction: column;
- justify-content: space-between;
- align-items: flex-start;
-}
-.uni-card-media-text-top {
- line-height: 36rpx;
- font-size: 34rpx;
-}
-.uni-card-media-text-bottom {
- line-height: 30rpx;
- font-size: 28rpx;
- color: #8f8f94;
-}
-.uni-card-link {
- color: #007AFF;
-}
-
-/* 鍒楄〃 */
-.uni-list {
- background-color: #FFFFFF;
- position: relative;
- width: 100%;
- display: flex;
- flex-direction: column;
-}
-.uni-list:after {
- position: absolute;
- z-index: 10;
- right: 0;
- bottom: 0;
- left: 0;
- height: 1px;
- content: '';
- -webkit-transform: scaleY(.5);
- transform: scaleY(.5);
- background-color: #c8c7cc;
-}
-.uni-list::before {
- position: absolute;
- z-index: 10;
- right: 0;
- top: 0;
- left: 0;
- height: 1px;
- content: '';
- -webkit-transform: scaleY(.5);
- transform: scaleY(.5);
- background-color: #c8c7cc;
-}
-.uni-list-cell {
- position: relative;
- display: flex;
- flex-direction: row;
- justify-content: space-between;
- align-items: center;
-}
-.uni-list-cell-hover {
- background-color: #eee;
-}
-.uni-list-cell-pd {
- padding: 22rpx 30rpx;
-}
-.uni-list-cell-left {
- white-space: nowrap;
- font-size:28rpx;
- padding: 0 30rpx;
-}
-.uni-list-cell-db,
-.uni-list-cell-right {
- flex: 1;
-}
-.uni-list-cell::after {
- position: absolute;
- z-index: 3;
- right: 0;
- bottom: 0;
- left: 30rpx;
- height: 1px;
- content: '';
- -webkit-transform: scaleY(.5);
- transform: scaleY(.5);
- background-color: #c8c7cc;
-}
-.uni-list .uni-list-cell:last-child::after {
- height: 0rpx;
-}
-.uni-list-cell-last.uni-list-cell::after {
- height: 0rpx;
-}
-.uni-list-cell-divider {
- position: relative;
- display: flex;
- color: #999;
- background-color: #f7f7f7;
- padding:15rpx 20rpx;
-}
-.uni-list-cell-divider::before {
- position: absolute;
- right: 0;
- top: 0;
- left: 0;
- height: 1px;
- content: '';
- -webkit-transform: scaleY(.5);
- transform: scaleY(.5);
- background-color: #c8c7cc;
-}
-.uni-list-cell-divider::after {
- position: absolute;
- right: 0;
- bottom: 0;
- left: 0rpx;
- height: 1px;
- content: '';
- -webkit-transform: scaleY(.5);
- transform: scaleY(.5);
- background-color: #c8c7cc;
-}
-.uni-list-cell-navigate {
- font-size:30rpx;
- padding: 22rpx 30rpx;
- line-height: 48rpx;
- position: relative;
- display: flex;
- box-sizing: border-box;
- width: 100%;
- flex: 1;
- justify-content: space-between;
- align-items: center;
-}
-.uni-list-cell-navigate {
- padding-right: 36rpx;
-}
-.uni-navigate-badge {
- padding-right: 50rpx;
-}
-.uni-list-cell-navigate.uni-navigate-right:after {
- font-family: uniicons;
- content: '\e583';
- position: absolute;
- right: 24rpx;
- top: 50%;
- color: #bbb;
- -webkit-transform: translateY(-50%);
- transform: translateY(-50%);
-}
-.uni-list-cell-navigate.uni-navigate-bottom:after {
- font-family: uniicons;
- content: '\e581';
- position: absolute;
- right: 24rpx;
- top: 50%;
- color: #bbb;
- -webkit-transform: translateY(-50%);
- transform: translateY(-50%);
-}
-.uni-list-cell-navigate.uni-navigate-bottom.uni-active::after {
- font-family: uniicons;
- content: '\e580';
- position: absolute;
- right: 24rpx;
- top: 50%;
- color: #bbb;
- -webkit-transform: translateY(-50%);
- transform: translateY(-50%);
-}
-.uni-collapse.uni-list-cell {
- flex-direction: column;
-}
-.uni-list-cell-navigate.uni-active {
- background: #eee;
-}
-.uni-list.uni-collapse {
- box-sizing: border-box;
- height: 0;
- overflow: hidden;
-}
-.uni-collapse .uni-list-cell {
- padding-left: 20rpx;
-}
-.uni-collapse .uni-list-cell::after {
- left: 52rpx;
-}
-.uni-list.uni-active {
- height: auto;
-}
-
-/* 涓夎鍒楄〃 */
-.uni-triplex-row {
- display: flex;
- flex: 1;
- width: 100%;
- box-sizing: border-box;
- flex-direction: row;
- padding: 22rpx 30rpx;
-}
-.uni-triplex-right,
-.uni-triplex-left {
- display: flex;
- flex-direction: column;
-}
-.uni-triplex-left {
- width: 84%;
-}
-.uni-triplex-left .uni-title{
- padding:8rpx 0;
-}
-.uni-triplex-left .uni-text, .uni-triplex-left .uni-text-small{color:#999999;}
-.uni-triplex-right {
- width: 16%;
- text-align: right;
-}
-
-/* 鍥炬枃鍒楄〃 */
-.uni-media-list {
- padding: 22rpx 30rpx;
- box-sizing: border-box;
- display: flex;
- width: 100%;
- flex-direction: row;
-}
-.uni-navigate-right.uni-media-list {
- padding-right: 74rpx;
-}
-.uni-pull-right {
- flex-direction: row-reverse;
-}
-.uni-pull-right>.uni-media-list-logo {
- margin-right: 0rpx;
- margin-left: 20rpx;
-}
-.uni-media-list-logo {
- height: 84rpx;
- width: 84rpx;
- margin-right: 20rpx;
-}
-.uni-media-list-logo image {
- height: 100%;
- width: 100%;
-}
-.uni-media-list-body {
- height: 84rpx;
- display: flex;
- flex: 1;
- flex-direction: column;
- justify-content: space-between;
- align-items: flex-start;
- overflow: hidden;
-}
-.uni-media-list-text-top {
- width: 100%;
- line-height: 36rpx;
- font-size: 30rpx;
-}
-.uni-media-list-text-bottom {
- width: 100%;
- line-height: 30rpx;
- font-size: 26rpx;
- color: #8f8f94;
-}
-
-/* 涔濆鏍� */
-.uni-grid-9 {
- background: #f2f2f2;
- width: 750rpx;
- display: flex;
- flex-direction: row;
- flex-wrap: wrap;
- border-top: 2rpx solid #eee;
-}
-.uni-grid-9-item {
- width: 250rpx;
- height: 200rpx;
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- border-bottom: 2rpx solid;
- border-right: 2rpx solid;
- border-color: #eee;
- box-sizing: border-box;
-}
-.no-border-right {
- border-right: none;
-}
-.uni-grid-9-image {
- width: 100rpx;
- height: 100rpx;
-}
-.uni-grid-9-text {
- width: 250rpx;
- line-height: 4rpx;
- height: 40rpx;
- text-align: center;
- font-size: 30rpx;
-}
-.uni-grid-9-item-hover {
- background: rgba(0, 0, 0, 0.1);
-}
-
-/* 涓婁紶 */
-.uni-uploader {
- flex: 1;
- flex-direction: column;
-}
-.uni-uploader-head {
- display: flex;
- flex-direction: row;
- justify-content: space-between;
-}
-.uni-uploader-info {
- color: #B2B2B2;
-}
-.uni-uploader-body {
- margin-top: 16rpx;
-}
-.uni-uploader__files {
- display: flex;
- flex-direction: row;
- flex-wrap: wrap;
-}
-.uni-uploader__file {
- margin: 10rpx;
- width: 210rpx;
- height: 210rpx;
-}
-.uni-uploader__img {
- display: block;
- width: 210rpx;
- height: 210rpx;
-}
-.uni-uploader__input-box {
- position: relative;
- margin:10rpx;
- width: 208rpx;
- height: 208rpx;
- border: 2rpx solid #D9D9D9;
-}
-.uni-uploader__input-box:before,
-.uni-uploader__input-box:after {
- content: " ";
- position: absolute;
- top: 50%;
- left: 50%;
- -webkit-transform: translate(-50%, -50%);
- transform: translate(-50%, -50%);
- background-color: #D9D9D9;
-}
-.uni-uploader__input-box:before {
- width: 4rpx;
- height: 79rpx;
-}
-.uni-uploader__input-box:after {
- width: 79rpx;
- height: 4rpx;
-}
-.uni-uploader__input-box:active {
- border-color: #999999;
-}
-.uni-uploader__input-box:active:before,
-.uni-uploader__input-box:active:after {
- background-color: #999999;
-}
-.uni-uploader__input {
- position: absolute;
- z-index: 1;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- opacity: 0;
-}
-
-/*闂鍙嶉*/
-.feedback-title {
- display: flex;
- flex-direction: row;
- justify-content: space-between;
- align-items: center;
- padding: 20rpx;
- color: #8f8f94;
- font-size: 28rpx;
-}
-.feedback-star-view.feedback-title {
- justify-content: flex-start;
- margin: 0;
-}
-.feedback-quick {
- position: relative;
- padding-right: 40rpx;
-}
-.feedback-quick:after {
- font-family: uniicons;
- font-size: 40rpx;
- content: '\e581';
- position: absolute;
- right: 0;
- top: 50%;
- color: #bbb;
- -webkit-transform: translateY(-50%);
- transform: translateY(-50%);
-}
-.feedback-body {
- background: #fff;
-}
-.feedback-textare {
- height: 200rpx;
- font-size: 34rpx;
- line-height: 50rpx;
- width: 100%;
- box-sizing: border-box;
- padding: 20rpx 30rpx 0;
-}
-.feedback-input {
- font-size: 34rpx;
- height: 50rpx;
- min-height: 50rpx;
- padding: 15rpx 20rpx;
- line-height: 50rpx;
-}
-.feedback-uploader {
- padding: 22rpx 20rpx;
-}
-.feedback-star {
- font-family: uniicons;
- font-size: 40rpx;
- margin-left: 6rpx;
-}
-.feedback-star-view {
- margin-left: 20rpx;
-}
-.feedback-star:after {
- content: '\e408';
-}
-.feedback-star.active {
- color: #FFB400;
-}
-.feedback-star.active:after {
- content: '\e438';
-}
-.feedback-submit {
- background: #007AFF;
- color: #FFFFFF;
- margin: 20rpx;
-}
-
-/* input group */
-.uni-input-group {
- position: relative;
- padding: 0;
- border: 0;
- background-color: #fff;
-}
-
-.uni-input-group:before {
- position: absolute;
- top: 0;
- right: 0;
- left: 0;
- height: 2rpx;
- content: '';
- transform: scaleY(.5);
- background-color: #c8c7cc;
-}
-
-.uni-input-group:after {
- position: absolute;
- right: 0;
- bottom: 0;
- left: 0;
- height: 2rpx;
- content: '';
- transform: scaleY(.5);
- background-color: #c8c7cc;
-}
-
-.uni-input-row {
- position: relative;
- display: flex;
- flex-direction: row;
- font-size:28rpx;
- padding: 22rpx 30rpx;
- justify-content: space-between;
-}
-
-.uni-input-group .uni-input-row:after {
- position: absolute;
- right: 0;
- bottom: 0;
- left: 30rpx;
- height: 2rpx;
- content: '';
- transform: scaleY(.5);
- background-color: #c8c7cc;
-}
-
-.uni-input-row label {
- line-height: 70rpx;
-}
-
-/* textarea */
-.uni-textarea{
- width:100%;
- background:#FFF;
-}
-.uni-textarea textarea{
- width:96%;
- padding:18rpx 2%;
- line-height:1.6;
- font-size:28rpx;
- height:150rpx;
-}
-
-/* tab bar */
-.uni-tab-bar {
- display: flex;
- flex: 1;
- flex-direction: column;
- overflow: hidden;
- height: 100%;
-}
-
-.uni-tab-bar .list {
- width: 750rpx;
- height: 100%;
-}
-
-.uni-swiper-tab {
- width: 100%;
- white-space: nowrap;
- line-height: 100rpx;
- height: 100rpx;
- border-bottom: 1px solid #c8c7cc;
-}
-
-.swiper-tab-list {
- font-size: 30rpx;
- width: 150rpx;
- display: inline-block;
- text-align: center;
- color: #555;
-}
-
-.uni-tab-bar .active {
- color: #007AFF;
-}
-
-.uni-tab-bar .swiper-box {
- flex: 1;
- width: 100%;
- height: calc(100% - 100rpx);
-}
-
-.uni-tab-bar-loading{
- padding:20rpx 0;
-}
-
-/* comment */
-.uni-comment{padding:5rpx 0; display: flex; flex-grow:1; flex-direction: column;}
-.uni-comment-list{flex-wrap:nowrap; padding:10rpx 0; margin:10rpx 0; width:100%; display: flex;}
-.uni-comment-face{width:70rpx; height:70rpx; border-radius:100%; margin-right:20rpx; flex-shrink:0; overflow:hidden;}
-.uni-comment-face image{width:100%; border-radius:100%;}
-.uni-comment-body{width:100%;}
-.uni-comment-top{line-height:1.5em; justify-content:space-between;}
-.uni-comment-top text{color:#0A98D5; font-size:24rpx;}
-.uni-comment-date{line-height:38rpx; flex-direction:row; justify-content:space-between; display:flex !important; flex-grow:1;}
-.uni-comment-date view{color:#666666; font-size:24rpx; line-height:38rpx;}
-.uni-comment-content{line-height:1.6em; font-size:28rpx; padding:8rpx 0;}
-.uni-comment-replay-btn{background:#FFF; font-size:24rpx; line-height:28rpx; padding:5rpx 20rpx; border-radius:30rpx; color:#333 !important; margin:0 10rpx;}
-
-/* swiper msg */
-.uni-swiper-msg{width:100%; padding:12rpx 0; flex-wrap:nowrap; display:flex;}
-.uni-swiper-msg-icon{width:50rpx; margin-right:20rpx;}
-.uni-swiper-msg-icon image{width:100%; flex-shrink:0;}
-.uni-swiper-msg swiper{width:100%; height:50rpx;}
-.uni-swiper-msg swiper-item{line-height:50rpx;}
-
-/* product */
-.uni-product-list {
- display: flex;
- width: 100%;
- flex-wrap: wrap;
- flex-direction: row;
-}
-
-.uni-product {
- padding: 20rpx;
- display: flex;
- flex-direction: column;
-}
-
-.image-view {
- height: 330rpx;
- width: 330rpx;
- margin:12rpx 0;
-}
-
-.uni-product-image {
- height: 330rpx;
- width: 330rpx;
-}
-
-.uni-product-title {
- width: 300rpx;
- word-break: break-all;
- display: -webkit-box;
- overflow: hidden;
- line-height:1.5;
- text-overflow: ellipsis;
- -webkit-box-orient: vertical;
- -webkit-line-clamp: 2;
-}
-
-.uni-product-price {
- margin-top:10rpx;
- font-size: 28rpx;
- line-height:1.5;
- position: relative;
-}
-
-.uni-product-price-original {
- color: #e80080;
-}
-
-.uni-product-price-favour {
- color: #888888;
- text-decoration: line-through;
- margin-left: 10rpx;
-}
-
-.uni-product-tip {
- position: absolute;
- right: 10rpx;
- background-color: #ff3333;
- color: #ffffff;
- padding: 0 10rpx;
- border-radius: 5rpx;
-}
-
-/* timeline */
-.uni-timeline {
- margin: 35rpx 0;
- display: flex;
- flex-direction: column;
- position: relative;
- }
-
-
- .uni-timeline-item {
- display: flex;
- flex-direction: row;
- position: relative;
- padding-bottom: 20rpx;
- box-sizing: border-box;
- overflow: hidden;
-
- }
-
- .uni-timeline-item .uni-timeline-item-keynode {
- width: 160rpx;
- flex-shrink: 0;
- box-sizing: border-box;
- padding-right: 20rpx;
- text-align: right;
- line-height: 65rpx;
- }
-
- .uni-timeline-item .uni-timeline-item-divider {
- flex-shrink: 0;
- position: relative;
- width: 30rpx;
- height: 30rpx;
- top: 15rpx;
- border-radius: 50%;
- background-color: #bbb;
- }
-
-
-
- .uni-timeline-item-divider::before,
- .uni-timeline-item-divider::after {
- position: absolute;
- left: 15rpx;
- width: 1rpx;
- height: 100vh;
- content: '';
- background: inherit;
- }
-
- .uni-timeline-item-divider::before {
- bottom: 100%;
- }
-
- .uni-timeline-item-divider::after {
- top: 100%;
- }
-
-
- .uni-timeline-last-item .uni-timeline-item-divider:after {
- display: none;
- }
-
- .uni-timeline-first-item .uni-timeline-item-divider:before {
- display: none;
- }
-
- .uni-timeline-item .uni-timeline-item-content {
- padding-left: 20rpx;
- }
-
- .uni-timeline-last-item .bottom-border::after{
- display: none;
- }
-
- .uni-timeline-item-content .datetime{
- color: #CCCCCC;
- }
-
- /* 鑷畾涔夎妭鐐归鑹� */
- .uni-timeline-last-item .uni-timeline-item-divider{
- background-color: #1AAD19;
- }
-
-
-/* uni-icon */
-
-.uni-icon {
- font-family: uniicons;
- font-size: 24px;
- font-weight: normal;
- font-style: normal;
- line-height: 1;
- display: inline-block;
- text-decoration: none;
- -webkit-font-smoothing: antialiased;
-}
-
-.uni-icon.uni-active {
- color: #007aff;
-}
-
-.uni-icon-contact:before {
- content: '\e100';
-}
-
-.uni-icon-person:before {
- content: '\e101';
-}
-
-.uni-icon-personadd:before {
- content: '\e102';
-}
-
-.uni-icon-contact-filled:before {
- content: '\e130';
-}
-
-.uni-icon-person-filled:before {
- content: '\e131';
-}
-
-.uni-icon-personadd-filled:before {
- content: '\e132';
-}
-
-.uni-icon-phone:before {
- content: '\e200';
-}
-
-.uni-icon-email:before {
- content: '\e201';
-}
-
-.uni-icon-chatbubble:before {
- content: '\e202';
-}
-
-.uni-icon-chatboxes:before {
- content: '\e203';
-}
-
-.uni-icon-phone-filled:before {
- content: '\e230';
-}
-
-.uni-icon-email-filled:before {
- content: '\e231';
-}
-
-.uni-icon-chatbubble-filled:before {
- content: '\e232';
-}
-
-.uni-icon-chatboxes-filled:before {
- content: '\e233';
-}
-
-.uni-icon-weibo:before {
- content: '\e260';
-}
-
-.uni-icon-weixin:before {
- content: '\e261';
-}
-
-.uni-icon-pengyouquan:before {
- content: '\e262';
-}
-
-.uni-icon-chat:before {
- content: '\e263';
-}
-
-.uni-icon-qq:before {
- content: '\e264';
-}
-
-.uni-icon-videocam:before {
- content: '\e300';
-}
-
-.uni-icon-camera:before {
- content: '\e301';
-}
-
-.uni-icon-mic:before {
- content: '\e302';
-}
-
-.uni-icon-location:before {
- content: '\e303';
-}
-
-.uni-icon-mic-filled:before,
-.uni-icon-speech:before {
- content: '\e332';
-}
-
-.uni-icon-location-filled:before {
- content: '\e333';
-}
-
-.uni-icon-micoff:before {
- content: '\e360';
-}
-
-.uni-icon-image:before {
- content: '\e363';
-}
-
-.uni-icon-map:before {
- content: '\e364';
-}
-
-.uni-icon-compose:before {
- content: '\e400';
-}
-
-.uni-icon-trash:before {
- content: '\e401';
-}
-
-.uni-icon-upload:before {
- content: '\e402';
-}
-
-.uni-icon-download:before {
- content: '\e403';
-}
-
-.uni-icon-close:before {
- content: '\e404';
-}
-
-.uni-icon-redo:before {
- content: '\e405';
-}
-
-.uni-icon-undo:before {
- content: '\e406';
-}
-
-.uni-icon-refresh:before {
- content: '\e407';
-}
-
-.uni-icon-star:before {
- content: '\e408';
-}
-
-.uni-icon-plus:before {
- content: '\e409';
-}
-
-.uni-icon-minus:before {
- content: '\e410';
-}
-
-.uni-icon-circle:before,
-.uni-icon-checkbox:before {
- content: '\e411';
-}
-
-.uni-icon-close-filled:before,
-.uni-icon-clear:before {
- content: '\e434';
-}
-
-.uni-icon-refresh-filled:before {
- content: '\e437';
-}
-
-.uni-icon-star-filled:before {
- content: '\e438';
-}
-
-.uni-icon-plus-filled:before {
- content: '\e439';
-}
-
-.uni-icon-minus-filled:before {
- content: '\e440';
-}
-
-.uni-icon-circle-filled:before {
- content: '\e441';
-}
-
-.uni-icon-checkbox-filled:before {
- content: '\e442';
-}
-
-.uni-icon-closeempty:before {
- content: '\e460';
-}
-
-.uni-icon-refreshempty:before {
- content: '\e461';
-}
-
-.uni-icon-reload:before {
- content: '\e462';
-}
-
-.uni-icon-starhalf:before {
- content: '\e463';
-}
-
-.uni-icon-spinner:before {
- content: '\e464';
-}
-
-.uni-icon-spinner-cycle:before {
- content: '\e465';
-}
-
-.uni-icon-search:before {
- content: '\e466';
-}
-
-.uni-icon-plusempty:before {
- content: '\e468';
-}
-
-.uni-icon-forward:before {
- content: '\e470';
-}
-
-.uni-icon-back:before,
-.uni-icon-left-nav:before {
- content: '\e471';
-}
-
-.uni-icon-checkmarkempty:before {
- content: '\e472';
-}
-
-.uni-icon-home:before {
- content: '\e500';
-}
-
-.uni-icon-navigate:before {
- content: '\e501';
-}
-
-.uni-icon-gear:before {
- content: '\e502';
-}
-
-.uni-icon-paperplane:before {
- content: '\e503';
-}
-
-.uni-icon-info:before {
- content: '\e504';
-}
-
-.uni-icon-help:before {
- content: '\e505';
-}
-
-.uni-icon-locked:before {
- content: '\e506';
-}
-
-.uni-icon-more:before {
- content: '\e507';
-}
-
-.uni-icon-flag:before {
- content: '\e508';
-}
-
-.uni-icon-home-filled:before {
- content: '\e530';
-}
-
-.uni-icon-gear-filled:before {
- content: '\e532';
-}
-
-.uni-icon-info-filled:before {
- content: '\e534';
-}
-
-.uni-icon-help-filled:before {
- content: '\e535';
-}
-
-.uni-icon-more-filled:before {
- content: '\e537';
-}
-
-.uni-icon-settings:before {
- content: '\e560';
-}
-
-.uni-icon-list:before {
- content: '\e562';
-}
-
-.uni-icon-bars:before {
- content: '\e563';
-}
-
-.uni-icon-loop:before {
- content: '\e565';
-}
-
-.uni-icon-paperclip:before {
- content: '\e567';
-}
-
-.uni-icon-eye:before {
- content: '\e568';
-}
-
-.uni-icon-arrowup:before {
- content: '\e580';
-}
-
-.uni-icon-arrowdown:before {
- content: '\e581';
-}
-
-.uni-icon-arrowleft:before {
- content: '\e582';
-}
-
-.uni-icon-arrowright:before {
- content: '\e583';
-}
-
-.uni-icon-arrowthinup:before {
- content: '\e584';
-}
-
-.uni-icon-arrowthindown:before {
- content: '\e585';
-}
-
-.uni-icon-arrowthinleft:before {
- content: '\e586';
-}
-
-.uni-icon-arrowthinright:before {
- content: '\e587';
-}
-
-.uni-icon-pulldown:before {
- content: '\e588';
-}
-
-.uni-icon-scan:before {
- content: "\e612";
-}
-
-/* 鍒嗙晫绾� */
-.uni-divider{
- height: 110rpx;
- display: flex;
- align-items:center;
- justify-content: center;
- position: relative;
-}
-.uni-divider__content{
- font-size: 28rpx;
- color: #999;
- padding: 0 20rpx;
- position: relative;
- z-index: 101;
- background: #F4F5F6;
-}
-.uni-divider__line{
- background-color: #CCCCCC;
- height: 1px;
- width: 100%;
- position: absolute;
- z-index: 100;
- top: 50%;
- left: 0;
- transform: translateY(50%);
-}
-
-.left-win-active text{
- color: #007AFF !important;
-}
diff --git a/common/util.js b/common/util.js
deleted file mode 100644
index 628015f..0000000
--- a/common/util.js
+++ /dev/null
@@ -1,83 +0,0 @@
-function formatTime(time) {
- if (typeof time !== 'number' || time < 0) {
- return time
- }
-
- var hour = parseInt(time / 3600)
- time = time % 3600
- var minute = parseInt(time / 60)
- time = time % 60
- var second = time
-
- return ([hour, minute, second]).map(function (n) {
- n = n.toString()
- return n[1] ? n : '0' + n
- }).join(':')
-}
-
-function formatLocation(longitude, latitude) {
- if (typeof longitude === 'string' && typeof latitude === 'string') {
- longitude = parseFloat(longitude)
- latitude = parseFloat(latitude)
- }
-
- longitude = longitude.toFixed(2)
- latitude = latitude.toFixed(2)
-
- return {
- longitude: longitude.toString().split('.'),
- latitude: latitude.toString().split('.')
- }
-}
-var dateUtils = {
- UNITS: {
- '骞�': 31557600000,
- '鏈�': 2629800000,
- '澶�': 86400000,
- '灏忔椂': 3600000,
- '鍒嗛挓': 60000,
- '绉�': 1000
- },
- humanize: function (milliseconds) {
- var humanize = '';
- for (var key in this.UNITS) {
- if (milliseconds >= this.UNITS[key]) {
- humanize = Math.floor(milliseconds / this.UNITS[key]) + key + '鍓�';
- break;
- }
- }
- return humanize || '鍒氬垰';
- },
- format: function (dateStr) {
- var date = this.parse(dateStr)
- var diff = Date.now() - date.getTime();
- if (diff < this.UNITS['澶�']) {
- return this.humanize(diff);
- }
- var _format = function (number) {
- return (number < 10 ? ('0' + number) : number);
- };
- return date.getFullYear() + '/' + _format(date.getMonth() + 1) + '/' + _format(date.getDate()) + '-' +
- _format(date.getHours()) + ':' + _format(date.getMinutes());
- },
- parse: function (str) { //灏�"yyyy-mm-dd HH:MM:ss"鏍煎紡鐨勫瓧绗︿覆锛岃浆鍖栦负涓�涓狣ate瀵硅薄
- var a = str.split(/[^0-9]/);
- return new Date(a[0], a[1] - 1, a[2], a[3], a[4], a[5]);
- }
-};
-
-function getStorage(key){
- const value = uni.getStorageSync(key);
- if (value) {
- console.log(value);
- console.log(value.name);
- }
- return value.name;
-}
-
-module.exports = {
- formatTime: formatTime,
- formatLocation: formatLocation,
- dateUtils: dateUtils,
- getStorage: getStorage
-}
diff --git a/components/t-table/t-table.vue b/components/t-table/t-table.vue
deleted file mode 100644
index 15f4949..0000000
--- a/components/t-table/t-table.vue
+++ /dev/null
@@ -1,86 +0,0 @@
-<template>
- <view class="t-table" :style="{ 'border-width': border + 'px', 'border-color': borderColor }">
- <slot />
- </view>
-</template>
-
-<script>
- export default {
- props: {
- border: {
- type: String,
- default: '1'
- },
- borderColor: {
- type: String,
- default: '#d0dee5'
- },
- isCheck: {
- type: Boolean,
- default: false
- }
- },
- provide() {
- return {
- table: this
- };
- },
- data() {
- return {};
- },
- created() {
- this.childrens = [];
- this.index = 0;
- },
- methods: {
- fire(e, index, len) {
- let childrens = this.childrens;
- console.log(childrens);
- // 鍏ㄩ��
- if (index === 0) {
- childrens.map((vm, index) => {
- vm.checkboxData.checked = e;
- return vm;
- });
- } else {
- let isAll = childrens.find((n, ids) => ids !== 0 && !n.checkboxData.checked);
- childrens[0].checkboxData.checked = isAll ? false : true;
- }
-
- let fireArr = [];
- for (let i = 0; i < childrens.length; i++) {
- if (childrens[i].checkboxData.checked && i !== 0) {
- fireArr.push(childrens[i].checkboxData.value - 1);
- }
- }
- this.$emit('change', {
- detail: fireArr
- });
- }
- }
- };
-</script>
-
-<style scoped>
- .t-table {
- width: 100%;
- border: 1px #d0dee5 solid;
- border-left: none;
- border-top: none;
- box-sizing: border-box;
- }
-
- .t-table>>>t-tr {
- display: flex;
- }
-
- .t-table>>>t-tr:nth-child(2n) {
- background: #f5f5f5;
- }
-
- /* #ifdef H5 */
- .t-table>>>.t-tr:nth-child(2n) {
- background: #f5f5f5;
- }
- /* #endif */
-</style>
diff --git a/components/t-table/t-td.vue b/components/t-table/t-td.vue
deleted file mode 100644
index 1e5c81d..0000000
--- a/components/t-table/t-td.vue
+++ /dev/null
@@ -1,71 +0,0 @@
-<template>
- <view class="t-td" :style="{ 'border-width': thBorder + 'px','border-color':borderColor ,'font-size':fontSize+'px' ,'color':color,'justify-content':tdAlignCpd}">
- <slot></slot>
- </view>
-</template>
-
-<script>
- export default {
- props: {
- align: String
- },
- data() {
- return {
- thBorder: '1',
- borderColor: '#d0dee5',
- fontSize: '14',
- color: '#555c60',
- tdAlign: 'center'
- };
- },
- inject: ['table', 'tr'],
-
- created() {
- this.thBorder = this.table.border;
- this.borderColor = this.table.borderColor;
- this.fontSize = this.tr.fontSize;
- this.color = this.tr.color;
- if (this.align) {
- this.tdAlign = this.align;
- } else {
- this.tdAlign = this.tr.align
- }
- },
- computed: {
- tdAlignCpd() {
- let nameAlign = '';
- switch (this.tdAlign) {
- case 'left':
- nameAlign = 'flex-start'
- break;
- case 'center':
- nameAlign = 'center'
- break;
- case 'right':
- nameAlign = 'flex-end'
- break;
- default:
- nameAlign = 'center'
- break;
- }
- return nameAlign
- }
- }
- };
-</script>
-
-<style>
- .t-td {
- flex: 1;
- display: flex;
- align-items: center;
- width: 100%;
- padding: 14upx;
- border-top: 1px #d0dee5 solid;
- border-left: 1px #d0dee5 solid;
- text-align: center;
- color: #555c60;
- font-size: 28upx;
-
- }
-</style>
diff --git a/components/t-table/t-th.vue b/components/t-table/t-th.vue
deleted file mode 100644
index e6cf4d9..0000000
--- a/components/t-table/t-th.vue
+++ /dev/null
@@ -1,71 +0,0 @@
-<template>
- <view class="t-th" :style="{ 'border-width': thBorder + 'px' ,'border-color':borderColor,'font-size':fontSize+'px' ,'color':color,'justify-content':thAlignCpd}">
- <slot></slot>
- </view>
-</template>
-
-<script>
- export default {
- props: {
- align: String,
- },
- data() {
- return {
- thBorder: '1',
- borderColor: '#d0dee5',
- fontSize: '15',
- color: '#3b4246',
- thAlign: 'center'
- };
- },
- inject: ['table', 'tr'],
-
- created() {
- this.thBorder = this.table.border;
- this.borderColor = this.table.borderColor;
- this.fontSize = this.tr.fontSize;
- this.color = this.tr.color;
- if (this.align) {
- this.thAlign = this.align;
- } else {
- this.thAlign = this.tr.align
- }
- },
-
- computed: {
- thAlignCpd() {
- let nameAlign = '';
- switch (this.thAlign) {
- case 'left':
- nameAlign = 'flex-start'
- break;
- case 'center':
- nameAlign = 'center'
- break;
- case 'right':
- nameAlign = 'flex-end'
- break;
- default:
- nameAlign = 'center'
- break;
- }
- return nameAlign
- }
- }
- };
-</script>
-
-<style>
- .t-th {
- flex: 1;
- display: flex;
- align-items: center;
- font-size: 30upx;
- font-weight: bold;
- text-align: center;
- color: #3b4246;
- border-left: 1px #d0dee5 solid;
- border-top: 1px #d0dee5 solid;
- padding: 15upx;
- }
-</style>
diff --git a/components/t-table/t-tr.vue b/components/t-table/t-tr.vue
deleted file mode 100644
index 9dc5d88..0000000
--- a/components/t-table/t-tr.vue
+++ /dev/null
@@ -1,81 +0,0 @@
-<template>
- <view class="t-tr">
- <view v-if="isCheck" class="t-check-box" :style="{ 'border-width': thBorder + 'px' ,'border-color':borderColor}">
- <checkbox-group @change="checkboxChange">
- <checkbox :value="checkboxData.value + ''" :checked="checkboxData.checked" />
- </checkbox-group>
- </view>
- <slot></slot>
- </view>
-</template>
-
-<script>
- export default {
- props: {
- fontSize: String,
- color: String,
- align: String
- },
- inject: ['table'],
- provide() {
- return {
- tr: this
- };
- },
- data() {
- return {
- isCheck: false,
- checkboxData: {
- value: 0,
- checked: false
- },
- checked: false,
- thBorder: '1',
- borderColor: '#d0dee5'
- };
- },
- created() {
- this.thBorder = this.table.border;
- this.borderColor = this.table.borderColor;
- this.table.childrens.push(this);
- this.checkboxData.value = this.table.index++;
- this.isCheck = this.table.isCheck;
-
- },
- methods: {
- checkboxChange(e) {
- this.checkboxData.checked = !this.checkboxData.checked;
- this.table.childrens[this.checkboxData.value] = this;
- this.table.fire(e.detail.value[0] ? true : false, this.checkboxData.value, this.table.index);
- }
- }
- };
-</script>
-
-<style>
- .t-tr {
- width: 100%;
- display: flex;
- }
-
- .t-tr t-th,
- .t-tr t-td {
- display: flex;
- flex: 1;
- }
-
- .t-tr .t-check-box {
- flex-shrink: 0;
- display: flex;
- justify-content: center;
- align-items: center;
- width: 80upx;
- color: #3b4246;
- border-left: 1px #d0dee5 solid;
- border-top: 1px #d0dee5 solid;
- }
-
- .t-tr .t-check-box checkbox {
- transform: scale(0.8);
- }
-</style>
diff --git a/components/y-pop/y-pop.vue b/components/y-pop/y-pop.vue
deleted file mode 100644
index ec5e617..0000000
--- a/components/y-pop/y-pop.vue
+++ /dev/null
@@ -1,103 +0,0 @@
-<template>
- <view class="canvas flex-center" v-show="show">
- <view class="main">
- <view class="titles flex-center">
- {{title}}
- </view>
- <view class="decs flex-center">
- <uni-number-box v-model="num" :max="max" :min="min"></uni-number-box>
- </view>
- <view class="operation flex-center">
- <button size="mini" @click="confrim">纭</button>
- </view>
- </view>
- </view>
-</template>
-
-<script>
- export default {
- props: {
- title: {
- type: [String,Number],
- default: 'title'
- },
- // num: {
- // type: Number,
- // default: 0
- // },
- max: {
- type: Number,
- default: 100
- },
- min: {
- type: Number,
- default: 0
- },
- show: {
- type: Boolean,
- default: false
- }
- },
- watch: {
- // num(num) {
- // this.num = num
- // },
- show(show) {
- this.show = show
- }
- },
- data() {
- return {
- num: 0,
- };
- },
- methods: {
- confrim() {
- this.show = false
- },
- }
- }
-</script>
-
-<style>
- .flex-center {
- display: flex;
- align-items: center;
- justify-content: center;
- }
- .canvas {
- height: 100vh;
- width: 100%;
- background-color: rgba(0, 0, 0, .3);
- position: fixed;
- left: 0;
- top: 0;
- }
- .main {
- width: 80%;
- height: 400rpx;
- background-color: #fff;
- border-radius: 20rpx;
- }
- .titles {
- width: 100%;
- height: 100rpx;
- /* background-color: black; */
- text-align: center;
- line-height: 120rpx;
- font-size: 34rpx;
- font-weight: bold;
- letter-spacing: 8rpx;
- color: #555555;
- }
- .decs {
- width: 100%;
- height: 200rpx;
- /* background-color: aqua; */
- }
- .operation {
- width: 100%;
- height: 100rpx;
- /* background-color: aquamarine; */
- }
-</style>
\ No newline at end of file
diff --git a/index.html b/index.html
deleted file mode 100644
index c3ff205..0000000
--- a/index.html
+++ /dev/null
@@ -1,20 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
- <head>
- <meta charset="UTF-8" />
- <script>
- var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') ||
- CSS.supports('top: constant(a)'))
- document.write(
- '<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' +
- (coverSupport ? ', viewport-fit=cover' : '') + '" />')
- </script>
- <title></title>
- <!--preload-links-->
- <!--app-context-->
- </head>
- <body>
- <div id="app"><!--app-html--></div>
- <script type="module" src="/main.js"></script>
- </body>
-</html>
diff --git a/main.js b/main.js
deleted file mode 100644
index 5268395..0000000
--- a/main.js
+++ /dev/null
@@ -1,23 +0,0 @@
-import App from './App'
-
-// #ifndef VUE3
-import Vue from 'vue'
-Vue.prototype.baseHttp = 'http://'
-Vue.prototype.basePort = '8080'
-Vue.config.productionTip = false
-App.mpType = 'app'
-const app = new Vue({
- ...App
-})
-app.$mount()
-// #endif
-
-// #ifdef VUE3
-import { createSSRApp } from 'vue'
-export function createApp() {
- const app = createSSRApp(App)
- return {
- app
- }
-}
-// #endif
\ No newline at end of file
diff --git a/pages.json b/pages.json
deleted file mode 100644
index 885d263..0000000
--- a/pages.json
+++ /dev/null
@@ -1,234 +0,0 @@
-{
- "pages": [ //pages鏁扮粍涓涓�椤硅〃绀哄簲鐢ㄥ惎鍔ㄩ〉锛屽弬鑰冿細https://uniapp.dcloud.io/collocation/pages
- {
- "path" : "pages/login/login",
- "style": {
- "navigationBarBackgroundColor":"#FFF",
- "navigationBarTextStyle":"black",
- "navigationBarTitleText": "鐧诲綍"
- }
- },
- {
- "path": "pages/index/index",
- "style": {
- "navigationBarTitleText": "PDA棣栭〉"
- }
- },
- {
- "path": "pages/index/index2",
- "style": {
- "navigationBarTitleText": "PDA棣栭〉"
- }
- },{
- "path": "pages/basics/demo02",
- "style": {
- "navigationBarTitleText": "demo02",
- "navigationBarBackgroundColor":"#409EFF",
- "navigationBarTextStyle":"white"
- }
- },{
- "path": "pages/basics/demo",
- "style": {
- "navigationBarTitleText": "妯℃澘"
- }
- },
- {
- "path": "pages/demo/index",
- "style": {
- "navigationBarTitleText": "涓婚〉",
- "navigationBarBackgroundColor":"#409EFF",
- "navigationBarTextStyle":"white"
- }
- },
- {
- "path": "pages/demo/login",
- "style": {
- "navigationBarTitleText": "鐧诲綍椤�"
- }
- },{
- "path" : "pages/basics/stockCheck",
- "style" :
- {
- "navigationBarTitleText": "搴撲綅鐩樼偣",
- "enablePullDownRefresh": false
- }
- },{
- "path" : "pages/basics/outPakin",
- "style" :
- {
- "navigationBarTitleText": "濮斿鍏ュ簱",
- "enablePullDownRefresh": false
- }
- },{
- "path" : "pages/basics/offline",
- "style" :
- {
- "navigationBarTitleText": "涓嬬嚎鎵撳寘",
- "enablePullDownRefresh": false
- }
- },{
- "path" : "pages/basics/checkout",
- "style" :
- {
- "navigationBarTitleText": "鍑哄簱纭",
- "enablePullDownRefresh": false
- }
- },{
- "path" : "pages/basics/pakin",
- "style" :
- {
- "navigationBarTitleText": "缁勬墭鍏ュ簱",
- "enablePullDownRefresh": false
- }
- },{
- "path" : "pages/basics/order",
- "style" :
- {
- "navigationBarTitleText": "璁㈠崟缁勬墭",
- "enablePullDownRefresh": false
- }
- },{
- "path" : "pages/basics/logOut",
- "style" :
- {
- "navigationBarTitleText": "閫�鍑虹櫥褰�",
- "enablePullDownRefresh": false
- }
- },{
- "path" : "pages/basics/matQuery",
- "style" :
- {
- "navigationBarTitleText": "妫�绱㈠晢鍝�",
- "enablePullDownRefresh": false
-
- }
- },{
- "path" : "pages/basics/matSelect",
- "style" :
- {
- "navigationBarTitleText": "閫夋嫨鍟嗗搧",
- "enablePullDownRefresh": false
-
- }
- },{
- "path" : "pages/basics/stockQuery",
- "style" :
- {
- "navigationBarTitleText": "搴撳瓨鏌ヨ",
- "enablePullDownRefresh": false
-
- }
- },{
- "path" : "pages/basics/saless",
- "style" :
- {
- "navigationBarTitleText": "涓婃灦绠$悊",
- "enablePullDownRefresh": false
-
- }
- },{
- "path" : "pages/basics/putOnSale",
- "style" :
- {
- "navigationBarTitleText": "涓婃灦绠$悊",
- "enablePullDownRefresh": false
-
- }
- },{
- "path" : "pages/basics/offLines",
- "style" :
- {
- "navigationBarTitleText": "涓嬫灦绠$悊",
- "enablePullDownRefresh": false
-
- }
- },{
- "path" : "pages/basics/orderOut",
- "style" :
- {
- "navigationBarTitleText": "鍗曟嵁鍑哄簱",
- "enablePullDownRefresh": false
-
- }
- },{
- "path" : "pages/basics/stoOut",
- "style" :
- {
- "navigationBarTitleText": "搴撲綅鍑哄簱",
- "enablePullDownRefresh": false
-
- }
- },{
- "path" : "pages/basics/pakStore",
- "style" :
- {
- "navigationBarTitleText": "鍟嗗搧鍏ュ簱",
- "enablePullDownRefresh": false
-
- }
- },
- {
- "path" : "pages/basics/manStoCheck",
- "style" :
- {
- "navigationBarTitleText": "骞冲簱搴撲綅鐩樼偣",
- "enablePullDownRefresh": false
-
- }
- },
- {
- "path" : "pages/basics/matSelect2",
- "style" :
- {
- "navigationBarTitleText": "閫夋嫨鍟嗗搧",
- "enablePullDownRefresh": false
-
- }
- },
- {
- "path" : "pages/basics/matSelect3",
- "style" :
- {
- "navigationBarTitleText": "閫夋嫨鍟嗗搧",
- "enablePullDownRefresh": false
-
- }
- },
- {
- "path" : "pages/basics/piking",
- "style" :
- {
- "navigationBarTitleText": "鎷f枡/鐩樼偣杞叏鏉�",
- "enablePullDownRefresh": false
-
- }
- },
- {
- "path" : "pages/basics/stockCheckv2",
- "style" :
- {
- "navigationBarTitleText": "琛ヨ揣",
- "enablePullDownRefresh": false
-
- }
- }
-
-
-
- ],
- "globalStyle": {
- "navigationBarTextStyle": "black",
- "navigationBarTitleText": "PDA缁堢",
- "navigationBarBackgroundColor": "#FFFFFF"
- },
- "condition" : { //妯″紡閰嶇疆锛屼粎寮�鍙戞湡闂寸敓鏁�
- "current": 0, //褰撳墠婵�娲荤殑妯″紡(list 鐨勭储寮曢」)
- "list": [
- {
- "name": "", //妯″紡鍚嶇О
- "path": "", //鍚姩椤甸潰锛屽繀閫�
- "query": "" //鍚姩鍙傛暟锛屽湪椤甸潰鐨刼nLoad鍑芥暟閲岄潰寰楀埌
- }
- ]
- }
-}
diff --git a/pages/basics/appe.vue b/pages/basics/appe.vue
deleted file mode 100644
index 6670216..0000000
--- a/pages/basics/appe.vue
+++ /dev/null
@@ -1,691 +0,0 @@
-<template>
- <view class="content">
- <uni-card :is-shadow="false" is-full>
- <text class="uni-h6">鏁呴殰涓婃姤鍚庯紝鍞悗浜哄憳浼氱涓�鏃堕棿鏀跺埌閫氱煡骞惰В鍐虫晠闅溿�傝濉啓鐪熷疄鎻忚堪鍙婂叾浠栦俊鎭紝鏂逛究鐩稿叧鍚庣画鏂规銆� 鈥斺�斺�斺�� 涓壃绔嬪簱</text>
- </uni-card>
- <view class="uni-common-mt">
- <form>
- <view class="uni-list">
- <!-- 鎵�灞為」鐩� -->
- <view class="uni-list-cell">
- <view class="uni-list-cell-left">
- <view class="uni-label redDot">鎵�灞為」鐩�</view>
- </view>
- <view class="uni-list-cell-right">
- <picker :range="host" @change="hostChange" :value="hostIndex" mode="selector">
- <view class="uni-input">{{host[hostIndex]}}</view>
- </picker>
- </view>
- </view>
- <!-- 鏁呴殰绫诲瀷 -->
- <view class="uni-list-cell">
- <view class="uni-list-cell-left">
- <view class="uni-label redDot">鏁呴殰绫诲瀷</view>
- </view>
- <view class="uni-list-cell-right">
- <picker :range="issueType" @change="issueTypeChange" :value="issueTypeIndex" mode="selector">
- <view class="uni-input">{{issueType[issueTypeIndex]}}</view>
- </picker>
- </view>
- </view>
- <!-- 鑱旂郴浜� -->
- <view class="uni-list-cell">
- <view class="uni-list-cell-left">
- <view class="uni-label">鑱旂郴浜�</view>
- </view>
- <view class="uni-list-cell-right">
- <input class="uni-input" v-model="discoverer" placeholder="璇疯緭鍏�" />
- </view>
- </view>
- <!-- 鑱旂郴鏂瑰紡 -->
- <view class="uni-list-cell">
- <view class="uni-list-cell-left">
- <view class="uni-label redDot">鑱旂郴鏂瑰紡</view>
- </view>
- <view class="uni-list-cell-right">
- <input class="uni-input" v-model="tel" placeholder="璇疯緭鍏�" />
- </view>
- </view>
- <!-- 鍙戠敓鏃ユ湡 -->
- <view class="uni-list-cell">
- <view class="uni-list-cell-left">
- <view class="uni-label redDot">鍙戠敓鏃ユ湡</view>
- </view>
- <view class="uni-list-cell-right">
- <picker mode="date" :value="startTime" @change="bindDateChange">
- <view class="uni-input">{{startTime}}</view>
- </picker>
- </view>
- </view>
- </view>
- <view class="uni-list" style="margin-top: 15rpx;">
- <view class="uni-title uni-common-pl redDot" style="padding: 20rpx 30rpx 10rpx 30rpx;">闂姒傝堪</view>
- <view class="uni-textarea">
- <textarea placeholder="璇疯緭鍏ュ叿浣撴弿杩�..." v-model="title" style="text-indent:15rpx;"/>
- </view>
- </view>
- <view class="uni-list" style="margin-top: 15rpx;">
- <view class="uni-list-cell cell-pd">
- <view class="uni-uploader">
- <view class="uni-uploader-head">
- <view class="uni-uploader-title">鐩稿叧鍥剧墖涓婁紶</view>
- <view class="uni-uploader-info">{{imageList.length}}/9</view>
- </view>
- <view class="uni-uploader-body">
- <view class="uni-uploader__files">
- <block v-for="(image,index) in imageList" :key="index">
- <view class="uni-uploader__file">
- <image class="uni-uploader__img" :src="image" :data-src="image" @tap="previewImage"></image>
- </view>
- </block>
- <view class="uni-uploader__input-box">
- <view class="uni-uploader__input" @tap="chooseImage"></view>
- </view>
- </view>
- </view>
- </view>
- </view>
- </view>
- <view style="margin-top: 15rpx;">
- <template v-if="!videoSrc">
- <view class="uni-hello-addfile" @tap="chooseVideo">+ 娣诲姞瑙嗛</view>
- </template>
- <template v-else>
- <video :src="videoSrc" class="video"></video>
- </template>
- </view>
-
- <view class="uni-padding-wrap uni-common-mt" style="margin-bottom: 30rpx;">
- <button type="primary" @click="save">纭鎻愪氦</button>
- </view>
- </form>
- </view>
- </view>
-</template>
-
-<script>
- import permision from "@/common/permission.js"
- import uniPopup from '@/components/uni-popup/uni-popup.vue'
- var util = require('../../common/util.js');
-
- var formatLocation = util.formatLocation;
- var sourceType = [
- ['camera'],
- ['album'],
- ['camera', 'album']
- ]
- var sizeType = [
- ['compressed'],
- ['original'],
- ['compressed', 'original']
- ]
- function getParam(path, name) {
-聽 聽 聽 聽 var reg = new RegExp("(^|\\?|&)" + name + "=([^&]*)(\\s|&|$)", "i");
-聽 聽 聽 聽 if (reg.test(path))
-聽 聽 聽 聽 return unescape(RegExp.$2.replace(/\+/g, " "));
-聽 聽 聽 聽 return "";
-聽 聽 }
- function getDate(type) {
- const date = new Date();
-
- let year = date.getFullYear();
- let month = date.getMonth() + 1;
- let day = date.getDate();
-
- if (type === 'start') {
- year = year - 10;
- } else if (type === 'end') {
- year = year + 10;
- }
- month = month > 9 ? month : '0' + month;;
- day = day > 9 ? day : '0' + day;
-
- return `${year}-${month}-${day}`;
- }
- function isEmpty(obj){
- return typeof obj == "undefined" || obj == null || obj === "";
- }
- export default {
- components: {
- uniPopup
- },
- data() {
- return {
- // 琛ㄥ崟鏁版嵁
- title: null,
- tel: null,
- discoverer: null,
- startTime: getDate({
- format: true
- }),
- desc: null,
- memo: null,
- imageList: [],
- imageFileList: [],
- hostIndex: 0,
- host: ["璇烽�夋嫨椤圭洰"],
- issueTypeIndex: 0,
- issueType: ["璇烽�夋嫨绫诲瀷"],
- sourceTypeIndex: 2,
- sourceType: ['鎷嶇収', '鐩稿唽', '鎷嶇収鎴栫浉鍐�'],
- countIndex: 8,
- count: [1, 2, 3, 4, 5, 6, 7, 8, 9],
- hasLocation: false,
- location: {},
- locationAddress: '',
- type: '',
- videoSrc: ''
- }
- },
- onLoad() {
- this.initHost();
- this.initIssueType();
- },
- methods: {
- // 鍒濆鍖栭」鐩垪琛�
- initHost: function() {
- uni.request({
- url: this.baseUrl + '/app/host/list/auth',
- data: {
- },
- header: {
- "token": uni.getStorageSync('token')
- },
- success: (result) => {
- let res = result.data;
- if (res.code == 200) {
- for (let item of res.data) {
- this.host.push(item.name);
- }
- } else if (res.code == 403) {
- uni.showToast({title: res.msg, icon: "none",position: 'top'})
- setTimeout(() => {
- uni.reLaunch({
- url: '../login/login'
- });
- }, 500);
- } else {
- uni.showToast({title: res.msg,icon: "none",position: 'top'})
- }
- }
- });
- },
- // 鍒濆鍖栨晠闅滅被鍨�
- initIssueType: function() {
- uni.request({
- url: this.baseUrl + '/app/issue/type/auth',
- data: {
- },
- header: {
- // "token": uni.getStorageSync('token')
- },
- success: (result) => {
- let res = result.data;
- if (res.code == 200) {
- for (let item of res.data) {
- this.issueType.push(item.name);
- }
- } else if (res.code == 403) {
- uni.showToast({title: res.msg, icon: "none",position: 'top'})
- setTimeout(() => {
- uni.reLaunch({
- url: '../login/login'
- });
- }, 500);
- } else {
- uni.showToast({title: res.msg,icon: "none",position: 'top'})
- }
- }
- });
- },
- // 淇濆瓨鎻愪氦
- save: function() {
- let that = this;
- if (that.hostIndex === 0) {
- uni.showToast({title: "璇烽�夋嫨鎵�灞為」鐩�",icon: "none",position: 'top'})
- return;
- }
- let hostName = that.host[that.hostIndex];
- if (that.issueTypeIndex === 0) {
- uni.showToast({title: "璇烽�夋嫨鏁呴殰绫诲瀷",icon: "none",position: 'top'})
- return;
- }
- let issueTypeName = that.issueType[that.issueTypeIndex];
- if (isEmpty(that.tel)) {
- uni.showToast({title: "璇疯緭鍏ヨ仈绯绘柟寮�",icon: "none",position: 'top'})
- return;
- }
- if (isEmpty(that.title)) {
- uni.showToast({title: "璇疯緭鍏ラ棶棰樻杩�",icon: "none",position: 'top'})
- return;
- }
- uni.showLoading();
- uni.request({
- url: that.baseUrl + '/app/issue/save/auth',
- data: {
- hostName: hostName,
- issueTypeName: issueTypeName,
- discoverer: that.discoverer,
- tel: that.tel,
- startTime: that.startTime,
- title: that.title,
- imgArr: that.imageList,
- memo: that.memo,
- videoSrc: [that.videoSrc]
- },
- header: {
- "token": uni.getStorageSync('token')
- },
- success: (result) => {
- uni.hideLoading();
- let res = result.data;
- if (res.code == 200) {
- uni.showToast({title: res.msg,position: 'top'})
- that.hostIndex = 0;
- that.issueTypeIndex = 0;
- that.discoverer = null;
- that.tel = null;
- that.title = null;
- that.memo = null;
- that.imageList = [];
- that.imageFileList = [];
- that.startTime = getDate({
- format: true
- });
- that.videoSrc = null;
- } else if (res.code == 403) {
- uni.showToast({title: res.msg, icon: "none", position: 'top'})
- setTimeout(() => {
- uni.reLaunch({
- url: '../login/login'
- });
- }, 500);
- } else {
- uni.showToast({title: res.msg,icon: "none",position: 'top'})
- }
- }
- });
- },
- chooseLocation: function () {
- uni.chooseLocation({
- success: (res) => {
- this.hasLocation = true,
- this.location = formatLocation(res.longitude, res.latitude),
- this.locationAddress = res.address
- }
- })
- },
- issueTypeChange: function(e) {
- this.issueTypeIndex = parseInt(e.detail.value);
- },
- hostChange: function(e) {
- this.hostIndex = parseInt(e.detail.value);
- },
- sumbit: function(e){
- uni.showToast({title: "ok",icon: "none",position: 'top'})
- },
- bindPickerChange: function(e) {
- this.index = e.detail.value
- },
- bindDateChange: function(e) {
- this.startTime = e.detail.value
- },
- chooseImage: async function() {
- // #ifdef APP-PLUS
- // TODO 閫夋嫨鐩告満鎴栫浉鍐屾椂 闇�瑕佸脊鍑篴ctionsheet锛岀洰鍓嶆棤娉曡幏寰楁槸鐩告満杩樻槸鐩稿唽锛屽湪澶辫触鍥炶皟涓鐞�
- if (this.sourceTypeIndex !== 2) {
- let status = await this.checkPermission();
- if (status !== 1) {
- return;
- }
- }
- // #endif
-
- if (this.imageList.length === 9) {
- let isContinue = await this.isFullImg();
- if (!isContinue) {
- return;
- }
- }
- uni.chooseImage({
- sourceType: sourceType[this.sourceTypeIndex],
- sizeType: sizeType[this.sizeTypeIndex],
- count: this.imageList.length + this.count[this.countIndex] > 9 ? 9 - this.imageList.length : this.count[this.countIndex],
- success: (res) => {
- let that = this;
- uni.showLoading();
- for (var filePath of res.tempFilePaths) {
- uni.uploadFile({
- url : that.baseUrl + '/upload.action',
- filePath: filePath,
- name: 'file',
- success: function (result) {
- var result0 = JSON.parse(result.data);
- if(result0.code === 200) {
- that.imageList = that.imageList.concat(result0.data.url);
- } else {
- uni.showToast({title: result0.msg,icon: "none",position: 'top'})
- }
- }
- });
- }
- uni.hideLoading();
- uni.showToast({title: "鐓х墖涓婁紶鎴愬姛锛岃鑰愬績绛夊緟...",icon: "none",position: 'top'})
- that.imageFileList = that.imageFileList.concat(res.tempFiles);
- // this.imageList = this.imageList.concat(res.tempFilePaths);
- },
- fail: (err) => {
- // #ifdef APP-PLUS
- if (err['code'] && err.code !== 0 && this.sourceTypeIndex === 2) {
- this.checkPermission(err.code);
- }
- // #endif
- // #ifdef MP
- if(err.errMsg.indexOf('cancel') !== '-1'){
- return;
- }
- uni.getSetting({
- success: (res) => {
- let authStatus = false;
- switch (this.sourceTypeIndex) {
- case 0:
- authStatus = res.authSetting['scope.camera'];
- break;
- case 1:
- authStatus = res.authSetting['scope.album'];
- break;
- case 2:
- authStatus = res.authSetting['scope.album'] && res.authSetting['scope.camera'];
- break;
- default:
- break;
- }
- if (!authStatus) {
- uni.showModal({
- title: '鎺堟潈澶辫触',
- content: 'Hello uni-app闇�瑕佷粠鎮ㄧ殑鐩告満鎴栫浉鍐岃幏鍙栧浘鐗囷紝璇峰湪璁剧疆鐣岄潰鎵撳紑鐩稿叧鏉冮檺',
- success: (res) => {
- if (res.confirm) {
- uni.openSetting()
- }
- }
- })
- }
- }
- })
- // #endif
- }
- })
- },
- isFullImg: function() {
- return new Promise((res) => {
- uni.showModal({
- content: "宸茬粡鏈�9寮犲浘鐗囦簡,鏄惁娓呯┖鐜版湁鍥剧墖锛�",
- success: (e) => {
- if (e.confirm) {
- this.imageList = [];
- this.imageFileList = [];
- res(true);
- } else {
- res(false)
- }
- },
- fail: () => {
- res(false)
- }
- })
- })
- },
- previewImage: function(e) {
- var current = e.target.dataset.src
- uni.previewImage({
- current: current,
- urls: this.imageList
- })
- },
- async checkPermission(code) {
- let type = code ? code - 1 : this.sourceTypeIndex;
- let status = permision.isIOS ? await permision.requestIOS(sourceType[type][0]) :
- await permision.requestAndroid(type === 0 ? 'android.permission.CAMERA' :
- 'android.permission.READ_EXTERNAL_STORAGE');
-
- if (status === null || status === 1) {
- status = 1;
- } else {
- uni.showModal({
- content: "娌℃湁寮�鍚潈闄�",
- confirmText: "璁剧疆",
- success: function(res) {
- if (res.confirm) {
- permision.gotoAppSetting();
- }
- }
- })
- }
-
- return status;
- }
- ,
- // 瀹氫綅
- togglePopup(type) {
- this.type = type;
- },
- showConfirm() {
- this.type = 'showpopup';
- },
- hideConfirm() {
- this.type = '';
- },
- async getLocation() {
- // #ifdef APP-PLUS
- let status = await this.checkPermission();
- if (status !== 1) {
- return;
- }
- // #endif
- // #ifdef MP-WEIXIN || MP-TOUTIAO || MP-QQ
- let status = await this.getSetting();
- if (status === 2) {
- this.showConfirm();
- return;
- }
- // #endif
-
- this.doGetLocation();
- },
- doGetLocation() {
- uni.getLocation({
- success: (res) => {
- this.hasLocation = true;
- this.location = formatLocation(res.longitude, res.latitude);
- },
- fail: (err) => {
- // #ifdef MP-BAIDU
- if (err.errCode === 202 || err.errCode === 10003) { // 202妯℃嫙鍣� 10003鐪熸満 user deny
- this.showConfirm();
- }
- // #endif
- // #ifndef MP-BAIDU
- if (err.errMsg.indexOf("auth deny") >= 0) {
- uni.showToast({
- title: "璁块棶浣嶇疆琚嫆缁�"
- })
- } else {
- uni.showToast({
- title: err.errMsg
- })
- }
- // #endif
- }
- })
- },
- getSetting: function() {
- return new Promise((resolve, reject) => {
- uni.getSetting({
- success: (res) => {
- if (res.authSetting['scope.userLocation'] === undefined) {
- resolve(0);
- return;
- }
- if (res.authSetting['scope.userLocation']) {
- resolve(1);
- } else {
- resolve(2);
- }
- }
- });
- });
- },
- openSetting: function() {
- this.hideConfirm();
- uni.openSetting({
- success: (res) => {
- if (res.authSetting && res.authSetting['scope.userLocation']) {
- this.doGetLocation();
- }
- },
- fail: (err) => {}
- })
- },
- async checkPermission() {
- let status = permision.isIOS ? await permision.requestIOS('location') :
- await permision.requestAndroid('android.permission.ACCESS_FINE_LOCATION');
-
- if (status === null || status === 1) {
- status = 1;
- } else if (status === 2) {
- uni.showModal({
- content: "绯荤粺瀹氫綅宸插叧闂�",
- confirmText: "纭畾",
- showCancel: false,
- success: function(res) {
- }
- })
- } else if (status.code) {
- uni.showModal({
- content: status.message
- })
- } else {
- uni.showModal({
- content: "闇�瑕佸畾浣嶆潈闄�",
- confirmText: "璁剧疆",
- success: function(res) {
- if (res.confirm) {
- permision.gotoAppSetting();
- }
- }
- })
- }
-
- return status;
- },
- clear: function() {
- this.hasLocation = false;
- },
- chooseVideo: function() {
- let that = this;
- uni.chooseVideo({
- camera: 'back',
- sourceType: ['camera', 'album'],
- success: (res) => {
- uni.showLoading();
- uni.uploadFile({
- url : that.baseUrl + '/upload.action',
- filePath: res.tempFilePath,
- name: 'file',
- success: function (result) {
- uni.hideLoading();
- var result0 = JSON.parse(result.data);
- if(result0.code === 200) {
- that.videoSrc = result0.data.url;
- } else {
- uni.showToast({title: result0.msg,icon: "none",position: 'top'})
- }
- }
- });
- uni.showToast({title: "瑙嗛涓婁紶鎴愬姛锛岃鑰愬績绛夊緟...",icon: "none",position: 'top'})
},
- fail: (err) => {
- uni.getSetting({
- success: (res) => {
- let authStatus = false;
- switch (this.sourceTypeIndex) {
- case 0:
- authStatus = res.authSetting['scope.camera'];
- break;
- case 1:
- authStatus = res.authSetting['scope.album'];
- break;
- case 2:
- authStatus = res.authSetting['scope.album'] && res.authSetting['scope.camera'];
- break;
- default:
- break;
- }
- if (!authStatus) {
- uni.showModal({
- title: '鎺堟潈澶辫触',
- content: '闇�瑕佷粠鎮ㄧ殑鐩告満鎴栫浉鍐岃幏鍙栬棰戯紝璇峰湪璁剧疆鐣岄潰鎵撳紑鐩稿叧鏉冮檺',
- success: (res) => {
- if (res.confirm) {
- uni.openSetting()
- }
- }
- })
- }
- }
- })
- }
- })
- }
- }
- }
-</script>
-
-<style>
- @import '../../common/uni.css';
-
- .uni-title {
- color: rgb(102, 102, 102);
- }
- .uni-label {
- color: rgb(102, 102, 102);
- }
- .uni-form-item .title {
- padding: 20rpx 0;
- }
- .cell-pd {
- padding: 22rpx 30rpx;
- }
-
- .list-pd {
- margin-top: 50rpx;
- }
- .redDot:after {
- content: ' *';
- color: red;
- }
- .popup-view {
- width: 500rpx;
- }
-
- .popup-title {
- display: block;
- font-size: 16px;
- line-height: 3;
- margin-bottom: 10px;
- text-align: center;
- }
-
- .popup-buttons button {
- margin-left: 4px;
- margin-right: 4px;
- }
-
- .video {
- width: 100%;
- }
-
- .camera-tips {
- padding: 10rpx 30rpx;
- }
-</style>
diff --git a/pages/basics/checkout.vue b/pages/basics/checkout.vue
deleted file mode 100644
index 853bd9c..0000000
--- a/pages/basics/checkout.vue
+++ /dev/null
@@ -1,519 +0,0 @@
-<template>
- <view >
- <scroll-view scroll-y class="scroll-Y">
- <view class="square-2">
- <view class="square-title">
- <view class="title-sign"><view class="sign"></view></view>
- <view class="title-text"><text>鎵樼洏鏉$爜</text></view>
- </view>
- <view class="square-content">
- <view class="content-input">
- <input v-model="barcode" type="text" placeholder="鎵爜 / 杈撳叆" maxlength="8"
- @input="findBarcode()" :focus="barcodeFocus" @focus="focuss" >
- <uni-icons type="closeempty" size="20" color="#dadada" @click="removeBarcode()"></uni-icons>
- </view>
- </view>
- </view>
- <view class="square-2">
- <view class="square-title">
- <view class="title-sign"><view class="sign"></view></view>
- <view class="title-text"><text>璐у搧鏉$爜</text></view>
- </view>
- <view class="square-content">
- <view class="content-input-combox" style="width: 94%;">
- <input style="width: 90%;" type="text" v-model="matnr" placeholder="鎵爜 / 杈撳叆" @input="findMat()":focus="focus"
- @focus="focuss">
- <!-- @focus="focuss" -->
- <uni-icons type="closeempty" size="20" color="#dadada" @click="removeMatnr()"></uni-icons>
- </view>
- </view>
- </view>
-
- <view class="square-1">
- <view class="square-title">
- <view class="title-sign"><view class="sign"></view></view>
- <view class="title-text"><text>鍟嗗搧鍒楄〃</text></view>
- <view v-show="matCount > 0" style="display: inline-block;float: right;height: 100rpx;line-height: 100rpx;margin-right: 50rpx;">璇锋壂鐮侀�夊彇 {{matCount}} 浠跺晢鍝�</view>
- </view>
- </view>
- <view class="square-none" v-show="matList.length === 0">
- <view class="v-show">鏆傛棤鏇村鏁版嵁. . . </view>
- </view>
- <checkbox-group @change="checkbox">
- <view v-for="(item,index) in matList" :key="index" class="data-list bg-false" :class="'bg-'+item.checked" >
- <view class="data-list-left">
- <view class="matnr" :style="item.color">No:{{listLen-index}}</view>
- <view class="matnr" :style="item.color">{{item.matnr}}-{{item.batch}}</view>
- </view>
- <view class="data-list-right">
- <uni-icons type="trash" size="20" color="#a5a5a5" @click="remove(item,index)"></uni-icons>
- </view>
- </view>
- </checkbox-group>
- </scroll-view>
- <view class="footer flex justify-around">
- <view>
- <button class="cu-btn lg" @click="resst()">閲嶇疆</button>
- </view>
- <view>
- <button class="cu-btn lg pakin-btn bg-blue" @click="comb()">纭</button>
- </view>
- </view>
- <view>
- <!-- 鎻愮ず淇℃伅寮圭獥 -->
- <uni-popup ref="message" type="message">
- <uni-popup-message :type="msgType" :message="messageText" :duration="2000"></uni-popup-message>
- </uni-popup>
- </view>
- </view>
-</template>
-
-<script>
- import permision from "@/common/permission.js"
- export default {
- data() {
- return {
- commonUrl:null,
- barcode: '',
- barcodeFocus:true,
- focus:false,
- type: 'center',
- searchBox: 'hide',
- pick:'hide',
- matnr:'',
- // matList:[{matnr:'1101842-10000',batch:'22047515999',color:{color:'red'}}],
- matList:[],
- result: '',
- siteList:[],
- staNoList:[],
- satNo:'',
- listLen:0,
- msgType: 'success',
- messageText: '杩欐槸涓�鏉℃垚鍔熸彁绀�',
- fontColor:{color:'red'},
- matCount:'',
- wrkNo:'',
- }
- },
- onReady() {
- setInterval(function(){
- // console.log(this.matList)
- // this.getMatListLen()
- },1000)
- },
- mounted(){
- const UIP = uni.getStorageSync('UIP');
- this.baseIP = UIP;
- const UPORT = uni.getStorageSync('UPORT');
- this.basePORT = UPORT
- const PROJ = uni.getStorageSync('UPROJ');
- this.baseUrl = PROJ
- this.getUrl()
- },
- methods: {
- // 鑾峰彇url
- getUrl() {
- this.commonUrl = this.baseHttp + this.baseIP + ':' +this.basePORT + "/" +this.baseUrl
- },
- huanghang() {
- this.matnr = ''
- this.focus = false;
- this.$nextTick(function() {
- this.focus = true;
- });
-
- },
- messageToggle(type) {
- this.msgType = type
- this.messageText = `杩欐槸涓�鏉�${type}娑堟伅鎻愮ず`
- this.$refs.message.open()
- },
- getMatListLen() {
- // this.listLen = this.matList.length;
- },
- focuss() {
- // uni.hideKeyboard()
- },
- resst() {
- this.matList = []
- this.barcode = ''
- this.matnr = ''
- this.matCount = ''
- uni.vibrateShort();
- },
- removeBarcode() {
- this.barcode = ''
- uni.vibrateShort();
- this.barcodeFocus = false;
- this.$nextTick(function() {
- this.barcodeFocus = true;
- });
- },
- removeMatnr() {
- this.matnr = ''
- uni.vibrateShort();
- this.focus = false;
- this.$nextTick(function() {
- this.focus = true;
- });
- },
- remove(item,index) {
- this.matList.splice(index,1);
- this.listLen = this.matList.length
- this.messageToggle('success')
- this.messageText = '鍒犻櫎鎴愬姛'
- uni.vibrateShort();
- },
-
- selectMat() {
- let that = this
- uni.vibrateShort();
- uni.showLoading();
- uni.navigateTo({
- url: "matSelect",
- events: {
- // 涓烘寚瀹氫簨浠舵坊鍔犱竴涓洃鍚櫒锛岃幏鍙栬鎵撳紑椤甸潰浼犻�佸埌褰撳墠椤甸潰鐨勬暟鎹�
- acceptDataFromOpenedPage: function(data) {
- that.matnr = data.data
- that.findMat(that.matnr)
- },
- },
- success: function(res) {
- // 閫氳繃eventChannel鍚戣鎵撳紑椤甸潰浼犻�佹暟鎹�
- res.eventChannel.emit('acceptDataFromOpenerPage', {baseIP:that.baseIP, basePORT:that.basePORT })
- }
- });
- that.matnr = ''
- },
- findBarcode() {
- let that = this
- uni.request({
- url: that.commonUrl + '/mobile/pakout/confirm/barcode/auth',
- data: {
- barcode:that.barcode
- },
- header: {
- 'token':uni.getStorageSync('token'),
- },
- success(result) {
- console.log(result)
- let res = result.data;
- if (res.code === 200) {
- if (res.data.ioType === 101) {
- that.matList = res.data.list.concat(that.matList)
- that.listLen = that.matList.length;
- return;
- }
- if (res.data.ioType === 103) {
- that.matCount = res.data.list.length
- that.wrkNo = res.data.list[0].wrkNo
- return;
- }
- // if (res.data) {
- // that.matCount = res.data.length
- // }
- } else if (res.code === 403) {
- uni.showToast({title: res.msg, icon: "none", position: 'top'})
- setTimeout(() => {
- uni.reLaunch({
- url: '../login/login'
- });
- }, 1000);
- } else {
- uni.showToast({title: res.msg, icon: "none",position: 'top'})
- }
-
- }
- });
-
- },
- findMat() {
- let that = this
- uni.request({
- url: that.commonUrl + '/mobile/pakout/confirm/pick/auth',
- data: {
- wrkNo:that.wrkNo,
- matnr:that.matnr
- },
- header: {
- 'token':uni.getStorageSync('token')
- },
- success(result) {
- console.log(result)
- var res = result.data;
- if(res.code === 200 ) {
- if(res.data) {
- if (that.matList.length == 0) {
- that.matList.push(res.data)
- that.listLen = that.matList.length;
- that.huanghang();
- return;
- }
- for(let i = 0;i<that.matList.length;i++) {
- if (that.matList.length < that.matCount){
- if(JSON.stringify(that.matList[i]) === JSON.stringify(res.data)) {
- that.messageToggle('warn');
- that.messageText = '璇ュ晢鍝佸凡娣诲姞';
- that.huanghang();
- return;
- } else {
- that.matList.unshift(res.data);
- that.listLen = that.matList.length;
- that.huanghang();
- return;
- }
- } else {
- that.messageToggle('warn');
- that.messageText = '宸插嚭鍏ㄩ儴鍟嗗搧锛岃纭鍑哄簱';
- that.huanghang();
- return;
- }
- }
- }
- } else if (res.code == 403) {
- uni.showToast({title: res.msg, icon: "none", position: 'top'})
- setTimeout(() => {
- uni.reLaunch({
- url: '../login/login'
- });
- }, 1000);
- } else {
- uni.showToast({title: res.msg, icon: "none",position: 'top'})
- }
-
- }
- });
- },
- comb() {
- let that = this;
- if (that.barcode === '') {
- this.messageToggle('error')
- this.messageText = '璇锋壂鎻忔墭鐩樼爜'
- return;
- }
- if (that.barcode.length !== 8) {
- this.messageToggle('error')
- this.messageText = '鎵樼洏鐮佸繀椤讳负8浣�'
- return;
- }
- if (that.matList.length === 0) {
- this.messageToggle('error')
- this.messageText = '璇锋坊鍔犲晢鍝佸垪琛�'
- return;
- }
-
- if (that.matList.length < that.matCount) {
- var len = that.matCount - that.matList.length
- that.messageToggle('error')
- that.messageText = '杩樺墿' + len + '浠舵湭鎵弿'
- return;
- }
- uni.showLoading();
- uni.request({
- url: that.commonUrl + '/mobile/pakout/confirm/auth',
- data: that.matList,
- method: 'POST',
- header: {
- 'token':uni.getStorageSync('token')
- },
- success(result) {
- uni.showLoading();
- var res = result.data
- if (res.code === 200) {
- uni.showToast({ title: res.msg,position: 'bottom',duration: 1000});
- that.resst();
- } else if (res.code == 403) {
- uni.showToast({title: res.msg, icon: "none", position: 'top'})
- setTimeout(() => {
- uni.reLaunch({
- url: '../login/login'
- });
- }, 1000);
- } else {
- uni.showToast({title: res.msg, icon: "none",position: 'top'})
- }
- }
- });
- },
- getCheckDetl() { // 鑾峰彇鍑哄簱鍙h揣鐗╀俊鎭�
- let that = this
-
- }, // getCheckDetl
- change(e) {
- },
- toggle(type) {
- this.type = type
- // open 鏂规硶浼犲叆鍙傛暟 绛夊悓鍦� uni-popup 缁勪欢涓婄粦瀹� type灞炴��
- this.$refs.goodsSearch.open(type)
- },
- checkbox: function (e) {
- var items = this.data,
- values = e.detail.value;
- for (var i = 0, lenI = items.length; i < lenI; ++i) {
- const item = items[i]
- item.id = item.id + ''
- if(values.indexOf(item.id) >= 0){
- this.$set(item,'checked',true)
- }else{
- this.$set(item,'checked',false)
- }
- }
- if (values.length == items.length) {
- this.check = true
- this.checkText = "鍙栨秷鍏ㄩ��"
- } else {
- this.check = false
- this.checkText = "鍏ㄩ��"
- }
- uni.vibrateShort();
- },
- }
- }
-</script>
-
-<style>
- /* @import "../../colorui/main.css";
- @import "../../colorui/icon.css"; */
-
- .pak-seach-box {
- background-color: #FFFFFF;
- margin: 15rpx 15rpx 0rpx 15rpx;
- width: 96%;
- height: 150rpx;
- border-radius: 20rpx;
- }
- .box-top{
- display: block;
- height: 60rpx;
- width: 720rpx;
- }
- .color-block-blue {
- background-color: #1E9FFF;
- display: inline-block;
- float: left;
- margin: 15rpx 15rpx 0 15rpx;
- width: 12rpx;
- height: 40rpx;
- border: 5rpx solid #1E9FFF;
- border-radius: 20rpx;
- }
- .title {
- display: inline-block;
- float: left;
- font-size: 34rpx;
- font-weight: 700;
- height: 50rpx;
- line-height: 50rpx;
- margin-top: 10rpx;
- }
- .box-buttom {
- display: inline-block;
- background-color: #f0f0f0;
- width: 65%;
- height: 60rpx;
- border-radius: 20rpx;
- margin: 15rpx 15rpx 0rpx 15rpx;
- }
- .box-buttom input {
- width: 75%;
- float: left;
- margin: 8rpx 10rpx 0rpx 25rpx;
- }
- .box-buttom .search-icon{
- width: 60rpx;
- height: 60rpx;
- float: right;
- margin-top: 5rpx;
- margin-right: 10rpx;
- }
-
- /* .pak-seach-box input {
- background-color: #ededed;
- border: 1rpx solid #d8d8d8;
- display: inline-block;
- border-radius: 20rpx;
- float: left;
- width: 70%;
- height: 60rpx;
- line-height: 60rpx;
- margin: 15rpx 15rpx 0rpx 15rpx;
- padding-left: 20rpx;
- } */
- .pak-seach-box button {
- background-color: #1E9FFF;
- color: #ffffff;
- display: inline-block;
- float: right;
- width: 180rpx;
- height: 60rpx;
- margin: 15rpx 15rpx 0rpx 15rpx;
- line-height: 60rpx;
- }
- .pakin-btn {
- background-color: #1E9FFF;
- }
- .pak-data-box {
- background-color: #F1F1F1;
- margin: 15rpx 15rpx 0rpx 15rpx;
- width: 96%;
- height: 70rpx;
- border-radius: 20rpx;
- }
- .pak-data-box .box-top {
- background-color: #FFFFFF;
- height: 70rpx;
- border-radius: 20rpx 20rpx 20rpx 20rpx;
- }
- .bg-false {
- background-color: #FFFFFF;
- }
- .bg-true {
- background-color: #ebebeb;
- }
- .data-list {
- border-bottom: 1px solid #d8d8d8;
- height: 130rpx;
- margin: 15rpx;
- border-radius: 20rpx;
- }
- .data-list:first-child {
- margin-top: 20rpx;
- }
- .data-list:last-child {
- margin-bottom: 200rpx;
- }
- /* .data-list-left {
- display: inline-block;
- float: left;
- text-align: center;
- width: 100rpx;
- height: 180rpx;
- line-height: 180rpx;
- } */
- .data-list-left {
- width: 550rpx;
- /* background-color: #007AFF; */
- display: inline-block;
- float: left;
- margin-left: 4%;
- height: 130rpx;
- color: #676767;
- }
- .matnr {
- display: inline-block;
- width: 100%;
- font-size: 14px;
- font-weight: 700;
- padding-top: 15rpx;
- /* height: 130rpx;
- line-height: 130rpx; */
- }
- .data-list-right {
- /* background-color: #6739B6; */
- display: inline-block;
- float: right;
- width: 100rpx;
- height: 130rpx;
- line-height: 130rpx;
- }
-</style>
\ No newline at end of file
diff --git a/pages/basics/checkout2.vue b/pages/basics/checkout2.vue
deleted file mode 100644
index 9990525..0000000
--- a/pages/basics/checkout2.vue
+++ /dev/null
@@ -1,520 +0,0 @@
-<template>
- <view >
- <scroll-view scroll-y catch:touchmove="touchmove">
- <view class="square-2">
- <view class="square-title">
- <view class="title-sign"><view class="sign"></view></view>
- <view class="title-text"><text>鎵樼洏鏉$爜</text></view>
- </view>
- <view class="square-content">
- <view class="content-input">
- <input v-model="barcode" type="text" placeholder="鎵爜 / 杈撳叆" maxlength="8"
- @input="findBarcode()" :focus="barcodeFocus" @focus="focuss" >
- <uni-icons type="closeempty" size="20" color="#dadada" @click="removeBarcode()"></uni-icons>
- </view>
- </view>
- </view>
- <view class="square-2">
- <view class="square-title">
- <view class="title-sign"><view class="sign"></view></view>
- <view class="title-text"><text>璐у搧鏉$爜</text></view>
- </view>
- <view class="square-content">
- <view class="content-input-combox" style="width: 94%;">
- <input style="width: 90%;" type="text" v-model="matnr" placeholder="鎵爜 / 杈撳叆" @input="findMat()":focus="focus"
- @focus="focuss">
- <!-- @focus="focuss" -->
- <uni-icons type="closeempty" size="20" color="#dadada" @click="removeMatnr()"></uni-icons>
- </view>
- </view>
- </view>
-
- <view class="square-1">
- <view class="square-title">
- <view class="title-sign"><view class="sign"></view></view>
- <view class="title-text"><text>鍟嗗搧鍒楄〃</text></view>
- </view>
- </view>
- <view class="square-none" v-show="matList.length === 0">
- <view class="v-show">鏆傛棤鏇村鏁版嵁...</view>
- </view>
- <checkbox-group @change="checkbox">
- <view v-for="(item,index) in matList" :key="index" class="data-list bg-false" :class="'bg-'+item.checked" >
- <view class="data-list-left">
- <view class="matnr" :style="item.color">No:{{listLen-index}}</view>
- <view class="matnr" :style="item.color">{{item.matnr}}-{{item.batch}}</view>
- </view>
- <view class="data-list-right">
- <uni-icons type="trash" size="20" color="#a5a5a5" @click="remove(item,index)"></uni-icons>
- </view>
- </view>
- </checkbox-group>
- </scroll-view>
- <view class="footer flex justify-around">
- <view>
- <button class="cu-btn lg" @click="resst()">閲嶇疆</button>
- </view>
- <view>
- <button class="cu-btn lg pakin-btn bg-blue" @click="comb()">纭</button>
- </view>
- </view>
- <view>
- <!-- 鎻愮ず淇℃伅寮圭獥 -->
- <uni-popup ref="message" type="message">
- <uni-popup-message :type="msgType" :message="messageText" :duration="2000"></uni-popup-message>
- </uni-popup>
- </view>
- </view>
-</template>
-
-<script>
- import permision from "@/common/permission.js"
- export default {
- data() {
- return {
- barcode: '',
- barcodeFocus:true,
- focus:false,
- type: 'center',
- searchBox: 'hide',
- pick:'hide',
- matnr:'',
- matList:[{matnr:'1101842-10000',batch:'22047515999',color:{color:'red'}}],
- // matList:[],
- result: '',
- siteList:[],
- desc:'',
- staNoList:[],
- satNo:'',
- listLen:0,
- msgType: 'success',
- messageText: '杩欐槸涓�鏉℃垚鍔熸彁绀�',
- fontColor:{color:'red'}
- }
- },
- onReady() {
- setInterval(function(){
- // console.log(this.matList)
- // this.getMatListLen()
- },1000)
- },
- mounted(){
- const UIP = uni.getStorageSync('UIP');
- this.baseIP = UIP;
- const UPORT = uni.getStorageSync('UPORT');
- this.basePORT = UPORT
- this.getOutBound();
-
- },
- methods: {
- messageToggle(type) {
- this.msgType = type
- this.messageText = `杩欐槸涓�鏉�${type}娑堟伅鎻愮ず`
- this.$refs.message.open()
- },
- choseStaNo() {
- for (var i = 0;i < this.staNoList.length; i++) {
- if (this.desc == this.staNoList[i].desc) {
- this.staNo = this.staNoList[i].siteId
- }
- }
- },
- getMatListLen() {
- // this.listLen = this.matList.length;
- },
- focuss() {
- // uni.hideKeyboard()
- },
- resst() {
- this.matList = []
- this.barcode = ''
- this.matnr = ''
- this.desc = ''
- uni.vibrateShort();
- },
- removeBarcode() {
- this.barcode = ''
- uni.vibrateShort();
- this.barcodeFocus = false;
- this.$nextTick(function() {
- this.barcodeFocus = true;
- });
- },
- removeMatnr() {
- this.matnr = ''
- uni.vibrateShort();
- this.focus = false;
- this.$nextTick(function() {
- this.focus = true;
- });
- },
- remove(item,index) {
- this.matList.splice(index,1);
- this.listLen = this.matList.length
- this.messageToggle('success')
- this.messageText = '鍒犻櫎鎴愬姛'
- uni.vibrateShort();
- },
- comb() {
- uni.vibrateShort();
- let that = this;
- uni.showLoading();
- uni.request({
- url: that.baseHttp + that.baseIP + ':' +that.basePORT + that.baseUrl + '/mobile/pakout/confirm/auth',
- data: that.matList,
- method: 'POST',
- header: {
- 'token':uni.getStorageSync('token')
- },
- success(result) {
- uni.showLoading();
- var res = result.data
- if (res.code === 200) {
- uni.showToast({
- title: res.msg,
- position: 'bottom',
- duration: 1000
- });
- that.matList = []
- that.barcode = ''
- that.matnr = ''
- that.desc = ''
- } else if (res.code == 403) {
- uni.showToast({title: res.msg, icon: "none", position: 'top'})
- setTimeout(() => {
- uni.reLaunch({
- url: '../login/login'
- });
- }, 1000);
- } else {
- uni.showToast({title: res.msg, icon: "none",position: 'top'})
- }
- }
- });
- },
- selectMat() {
- let that = this
- uni.vibrateShort();
- uni.showLoading();
- uni.navigateTo({
- url: "matSelect",
- events: {
- // 涓烘寚瀹氫簨浠舵坊鍔犱竴涓洃鍚櫒锛岃幏鍙栬鎵撳紑椤甸潰浼犻�佸埌褰撳墠椤甸潰鐨勬暟鎹�
- acceptDataFromOpenedPage: function(data) {
- that.matnr = data.data
- that.findMat(that.matnr)
- },
- },
- success: function(res) {
- // 閫氳繃eventChannel鍚戣鎵撳紑椤甸潰浼犻�佹暟鎹�
- res.eventChannel.emit('acceptDataFromOpenerPage', {baseIP:that.baseIP, basePORT:that.basePORT })
- }
- });
- that.matnr = ''
- },
- findMat() {
- let that = this
- uni.request({
- url: that.baseHttp + that.baseIP + ':' +that.basePORT + that.baseUrl + '/mobile/pakout/query/auth/v2',
- data: {
- staNo:that.staNo,
- matnr:that.matnr
- },
- header: {
- 'token':uni.getStorageSync('token')
- },
- success(result) {
- var res = result.data;
- if(res.code === 200 ) {
- if(res.data) {
- for(let i = 0;i<that.matList.length;i++) {
- for (let j = 0;j < res.data.length; j++) {
- if(JSON.stringify(that.matList[i]) === JSON.stringify(res.data[j])) {
- res.data.splice(j,1)
- }
- }
- }
- that.matList = res.data.concat(that.matList)
- that.listLen = that.matList.length;
- that.focus = false;
- that.$nextTick(function() {
- that.focus = true;
- });
- that.matnr = ''
- }
- } else if (res.code == 403) {
- uni.showToast({title: res.msg, icon: "none", position: 'top'})
- setTimeout(() => {
- uni.reLaunch({
- url: '../login/login'
- });
- }, 1000);
- } else {
- uni.showToast({title: res.msg, icon: "none",position: 'top'})
- }
-
- }
- });
- },
- addMatList(mat) {
- console.log(mat)
- if (this.matList.length == 0){
-
- // this.matList.push(mat[0])
- // this.matList.prototype.push.apply(mat)
- } else {
-
- let toUnshift = true
- for (var i = 0; i < this.matList.length; i++) {
- let matnr = this.matList[i].matnr
- if (matnr == this.matList[i].matnr) {
- // this.messageToggle('warn')
- // this.messageText = matnr + '宸茬粡鎵弿锛岃鍕块噸澶嶆壂鎻�'
- toUnshift = false
- }
- }
- if (toUnshift) {
- this.matList.unshift(mat[0])
- }
-
- }
- console.log(this.matList)
- },
- findBarcode() {
- let that = this
- uni.request({
- url: that.baseHttp + that.baseIP + ':' +that.basePORT + that.baseUrl + '/mobile/pakout/query/auth',
- data: {
- barcode:that.barcode
- },
- header: {
- 'token':uni.getStorageSync('token'),
-
- },
- success(result) {
- var res = result.data;
- if(res.data) {
- for(let i = 0;i<that.matList.length;i++) {
- for (let j = 0;j < res.data.length; j++) {
- if(JSON.stringify(that.matList[i]) === JSON.stringify(res.data[j])) {
- res.data.splice(j,1)
- }
- }
- }
- that.matList = res.data.concat(that.matList)
- }
- that.listLen = that.matList.length;
- }
- });
-
- },
- getOutBound() { // 鑾峰彇鍑哄簱鍙�
- let that = this
- uni.request({
- url: that.baseHttp + that.baseIP + ':' +that.basePORT + that.baseUrl + '/available/take/site',
- method: 'POST',
- header: {
- 'token':uni.getStorageSync('token')
- },
- success(result) {
- var res = result.data
- if (res.code === 200) {
- for (var i = 0; i < res.data.length; i++){
- that.siteList.push(res.data[i].desc)
- }
- that.staNoList = res.data
- } else if (res.code == 403) {
- uni.showToast({title: res.msg, icon: "none", position: 'top'})
- setTimeout(() => {
- uni.reLaunch({
- url: '../login/login'
- });
- }, 1000);
- } else {
- uni.showToast({title: res.msg, icon: "none",position: 'top'})
- }
- },
- });
- }, // getOutBound
- getCheckDetl() { // 鑾峰彇鍑哄簱鍙h揣鐗╀俊鎭�
- let that = this
-
- }, // getCheckDetl
- change(e) {
- },
- toggle(type) {
- this.type = type
- // open 鏂规硶浼犲叆鍙傛暟 绛夊悓鍦� uni-popup 缁勪欢涓婄粦瀹� type灞炴��
- this.$refs.goodsSearch.open(type)
- },
- checkbox: function (e) {
- var items = this.data,
- values = e.detail.value;
- for (var i = 0, lenI = items.length; i < lenI; ++i) {
- const item = items[i]
- item.id = item.id + ''
- if(values.indexOf(item.id) >= 0){
- this.$set(item,'checked',true)
- }else{
- this.$set(item,'checked',false)
- }
- }
- if (values.length == items.length) {
- this.check = true
- this.checkText = "鍙栨秷鍏ㄩ��"
- } else {
- this.check = false
- this.checkText = "鍏ㄩ��"
- }
- uni.vibrateShort();
- },
- }
- }
-</script>
-
-<style>
- /* @import "../../colorui/main.css";
- @import "../../colorui/icon.css"; */
-
- .pak-seach-box {
- background-color: #FFFFFF;
- margin: 15rpx 15rpx 0rpx 15rpx;
- width: 96%;
- height: 150rpx;
- border-radius: 20rpx;
- }
- .box-top{
- display: block;
- height: 60rpx;
- width: 720rpx;
- }
- .color-block-blue {
- background-color: #1E9FFF;
- display: inline-block;
- float: left;
- margin: 15rpx 15rpx 0 15rpx;
- width: 12rpx;
- height: 40rpx;
- border: 5rpx solid #1E9FFF;
- border-radius: 20rpx;
- }
- .title {
- display: inline-block;
- float: left;
- font-size: 34rpx;
- font-weight: 700;
- height: 50rpx;
- line-height: 50rpx;
- margin-top: 10rpx;
- }
- .box-buttom {
- display: inline-block;
- background-color: #f0f0f0;
- width: 65%;
- height: 60rpx;
- border-radius: 20rpx;
- margin: 15rpx 15rpx 0rpx 15rpx;
- }
- .box-buttom input {
- width: 75%;
- float: left;
- margin: 8rpx 10rpx 0rpx 25rpx;
- }
- .box-buttom .search-icon{
- width: 60rpx;
- height: 60rpx;
- float: right;
- margin-top: 5rpx;
- margin-right: 10rpx;
- }
-
- /* .pak-seach-box input {
- background-color: #ededed;
- border: 1rpx solid #d8d8d8;
- display: inline-block;
- border-radius: 20rpx;
- float: left;
- width: 70%;
- height: 60rpx;
- line-height: 60rpx;
- margin: 15rpx 15rpx 0rpx 15rpx;
- padding-left: 20rpx;
- } */
- .pak-seach-box button {
- background-color: #1E9FFF;
- color: #ffffff;
- display: inline-block;
- float: right;
- width: 180rpx;
- height: 60rpx;
- margin: 15rpx 15rpx 0rpx 15rpx;
- line-height: 60rpx;
- }
- .pakin-btn {
- background-color: #1E9FFF;
- }
- .pak-data-box {
- background-color: #F1F1F1;
- margin: 15rpx 15rpx 0rpx 15rpx;
- width: 96%;
- height: 70rpx;
- border-radius: 20rpx;
- }
- .pak-data-box .box-top {
- background-color: #FFFFFF;
- height: 70rpx;
- border-radius: 20rpx 20rpx 20rpx 20rpx;
- }
- .bg-false {
- background-color: #FFFFFF;
- }
- .bg-true {
- background-color: #ebebeb;
- }
- .data-list {
- border-bottom: 1px solid #d8d8d8;
- height: 130rpx;
- margin: 15rpx;
- border-radius: 20rpx;
- }
- .data-list:first-child {
- margin-top: 20rpx;
- }
- .data-list:last-child {
- margin-bottom: 200rpx;
- }
- /* .data-list-left {
- display: inline-block;
- float: left;
- text-align: center;
- width: 100rpx;
- height: 180rpx;
- line-height: 180rpx;
- } */
- .data-list-left {
- width: 550rpx;
- /* background-color: #007AFF; */
- display: inline-block;
- float: left;
- margin-left: 4%;
- height: 130rpx;
- color: #676767;
- }
- .matnr {
- display: inline-block;
- width: 100%;
- font-size: 14px;
- font-weight: 700;
- padding-top: 15rpx;
- /* height: 130rpx;
- line-height: 130rpx; */
- }
- .data-list-right {
- /* background-color: #6739B6; */
- display: inline-block;
- float: right;
- width: 100rpx;
- height: 130rpx;
- line-height: 130rpx;
- }
-</style>
\ No newline at end of file
diff --git a/pages/basics/demo.vue b/pages/basics/demo.vue
deleted file mode 100644
index bd0cdf2..0000000
--- a/pages/basics/demo.vue
+++ /dev/null
@@ -1,138 +0,0 @@
-<template>
- <view>
-
- <view class="square-2">
- <view class="square-title">
- <view class="title-sign"><view class="sign"></view></view>
- <view class="title-text"><text>娌℃湁鎸夐挳</text></view>
- </view>
- <view class="square-content">
- <view class="content-input">
- <input type="text" v-model="yyds" placeholder="鎵爜 / 杈撳叆" @input="find" :focus="focus">
- <uni-icons type="closeempty" size="20" color="#dadada"></uni-icons>
- </view>
- </view>
- </view>
- <checkbox-group >
- <view v-for="(item,index) in staNoList" :key="index" class="data-list " >
- <view class="data-list-left">
- <view class="matnr">{{item}}</view>
- </view>
- </view>
- </checkbox-group>
- <view class="square-2">
- <view class="square-title">
- <view class="title-sign"><view class="sign"></view></view>
- <view class="title-text"><text>鍙充晶鎸夐挳</text></view>
- </view>
- <view class="square-content">
- <view class="content-input-btn">
- <input type="text">
- <uni-icons type="closeempty" size="20" color="#dadada"></uni-icons>
- </view>
- <view class="content-btn">
- <button class="cu-btn bg-blue pda-btn">鎻愬彇</button>
- </view>
- </view>
- </view>
-
- <view class="square-3">
- <view class="square-title">
- <view class="title-sign"><view class="sign"></view></view>
- <view class="title-text"><text>宸︿晶涓嬫媺</text></view>
- </view>
- <view class="square-content">
- <view class="content-combox">
-
- <uni-combox emptyTips="鏆傛棤鏁版嵁" :candidates="staNoList" v-model="staNo" placeholder="绔欏彴鍙�"></uni-combox>
- </view>
-
- </view>
- <view class="square-content">
- <view class="content-input-combox">
- <input type="text">
- <uni-icons type="closeempty" size="20" color="#dadada"></uni-icons>
- </view>
- </view>
- </view>
-
- <view class="square-1">
- <view class="square-title">
- <view class="title-sign"><view class="sign"></view></view>
- <view class="title-text"><text>鍟嗗搧鍒楄〃</text></view>
- </view>
- </view>
-
- <view class="square-none">
- <view class="v-show">鏆傛棤鏇村鏁版嵁...</view>
- </view>
- <!-- 鍟嗗搧鍒楄〃 -->
- <view>
- <view></view>
- </view>
- <!-- 琛ㄥ崟 -->
- <view class="square-form">
- <view class="form-title">
- <text>缁撴潫鏃堕棿</text>
- </view>
- <view class="form-input">
- <input type="text" placeholder="璇疯緭鍏�...">
- </view>
- </view>
- <!-- 琛ㄥ崟蹇呭~ -->
- <view class="square-form">
- <view class="form-title">
- <text>缁撴潫鏃堕棿</text>
- </view>
- <view class="form-input">
- <input type="text" placeholder="璇疯緭鍏�...">
- </view>
- </view>
- <!-- 鎼滅储妗� -->
- <view class="square-1">
- <view class="searchBox">
- <view class="searchIcon"><uni-icons type="search" size="20" color="#dadada"></uni-icons></view>
- <view class="searchArea"><input type="text" placeholder=" 璇疯緭鍏�"></view>
- <view class="closeIcon"><uni-icons type="closeempty" size="20" color="#dadada"></uni-icons></view>
- </view>
- </view>
- </view>
-</template>
-
-<script>
- export default {
- data() {
- return {
- staNoList:[],
- staNo:'',
- yyds:'',
- focus:''
- }
- },
- onLoad() {
- // #ifdef APP
- setInterval(()=>{
- uni.hideKeyboard()
- },20)
- // #endif
- },
- methods:{
- find(){
- this.staNoList.push(this.yyds);
-
-
- this.focus = false;
- setTimeout(()=>{
- this.yyds ='';
- this.focus = true;
- console.log(this.yyds ,'1')
- }, 50);
- }
- }
- }
-
-</script>
-
-<style>
-
-</style>
diff --git a/pages/basics/demo02.vue b/pages/basics/demo02.vue
deleted file mode 100644
index d03e40c..0000000
--- a/pages/basics/demo02.vue
+++ /dev/null
@@ -1,27 +0,0 @@
-<template>
- <!-- 绐楀彛瀹瑰櫒 -->
- <view style="width: 100%;">
- <!-- 鏉$爜鎵弿妗� -->
- <view class="search-box">
- <view>
- <view class="search-box-title">搴撲綅鐮� : </view>
- <input class="search-box-input" placeholder-style="placeholderStyle" type="text" >
- </view>
- </view>
-
- </view>
-</template>
-
-<script>
- export default {
- data() {
- return {
- placeholderStyle:'placeholder-style'
- }
- }
- }
-</script>
-
-<style>
- @import url("@/static/css/common.css");
-</style>
\ No newline at end of file
diff --git a/pages/basics/logOut.vue b/pages/basics/logOut.vue
deleted file mode 100644
index b2dc7e6..0000000
--- a/pages/basics/logOut.vue
+++ /dev/null
@@ -1,21 +0,0 @@
-<template>
- <view></view>
-</template>
-<script>
- export default {
- mounted() {
- uni.showToast({
- title: '娉ㄩ攢鎴愬姛',
- duration: 1000
- })
- setTimeout(() => {
- uni.removeStorageSync('token');
- uni.reLaunch({
- url:"/pages/login/login"
- });
- }, 1000);
- },
-
- }
-
-</script>
\ No newline at end of file
diff --git a/pages/basics/manStoCheck.vue b/pages/basics/manStoCheck.vue
deleted file mode 100644
index afaf9cb..0000000
--- a/pages/basics/manStoCheck.vue
+++ /dev/null
@@ -1,463 +0,0 @@
-<template>
- <view class="">
- <!-- 搴撲綅鍙疯緭鍏ユ -->
- <view class="square-2">
- <view class="square-title">
- <view class="title-sign"><view class="sign"></view></view>
- <view class="title-text"><text>搴撲綅鍙�</text></view>
- </view>
- <view class="square-content">
- <view class="content-input">
- <input type="text" v-model="locno" placeholder="鎵爜 / 杈撳叆" :focus="locnoFocus">
- <uni-icons v-show="locno" type="closeempty" size="20" color="#dadada" @click="remove('locno')"></uni-icons>
- </view>
- </view>
- </view>
- <!-- 鍟嗗搧鐮佽緭鍏ユ -->
- <view class="square-2">
- <view class="square-title">
- <view class="title-sign"><view class="sign"></view></view>
- <view class="title-text"><text>妫�绱㈠晢鍝�</text></view>
- </view>
- <view class="square-content">
- <view class="content-input-btn">
- <input v-model="matnr" type="text" placeholder="鎵爜 / 杈撳叆" @input="findMat()"
- :focus="matnrFocus" placeholder-style="line-height: 85rpx;">
- <uni-icons v-show="matnr" type="closeempty" size="20" color="#dadada" @click="remove('matnr')"></uni-icons>
- </view>
- <view class="content-btn">
- <button class="cu-btn bg-blue pda-btn" @click="selectMat()">+鎻愬彇</button>
- </view>
- </view>
- </view>
-
- <!-- 鍟嗗搧鍒楄〃琛ㄥご -->
- <view class="square-1">
- <view class="square-title">
- <view class="title-sign"><view class="sign"></view></view>
- <view class="title-text"><text>鍟嗗搧鍒楄〃</text></view>
- </view>
- </view>
-
- <view class="square-none" v-show="matList.length == 0">
- <view class="v-show">鏆傛棤鏇村鏁版嵁...</view>
- </view>
-
- <checkbox-group @change="checkbox">
- <view v-for="(item,index) in matList" :key="index" class="data-list bg-false" :class="'bg-'+item.checked" >
- <view class="data-list-left">
- <!-- <view>
- <checkbox :value="item.id+''" :checked="item.checked" style="display: block;" />
- </view> -->
- <view class="matnr"><text style="width: 400rpx;">缂栫爜锛歿{item.matnr}}</text></view>
- <view><text style="width: 400rpx;">鍝佸悕锛歿{item.maktx}}</text></view>
- <view><text style="width: 400rpx;">鎵瑰彿锛歿{item.batch}}</text></view>
- <view>
- <text style="width: 400rpx;">鏁伴噺锛歿{item.anfme}}</text>
- </view>
- </view>
- <view class="data-list-right">
- <label><uni-icons type="compose" size="20" color="#a5a5a5" @click="revise(item,index)"></uni-icons></label>
- <label><uni-icons type="trash" size="25" color="#a5a5a5" @click="remove(item,index)"></uni-icons></label>
- </view>
- </view>
- </checkbox-group>
-
- <!-- 搴曢儴鎸夐挳 -->
- <view class="footer flex justify-around">
- <!-- <label class="label-btn" style="width: 170rpx;">
- <checkbox :checked="check" @click="allChecked()">{{checkText}}</checkbox>
- </label>
- <label class="label-btn" style="width: 100rpx;">
- <text @click="reChecked()">鍙嶉��</text>
- </label> -->
-
- <label class="label-btn" style="width: 150rpx;">
- <button class="cu-btn" @click="resst()">閲嶇疆</button>
- </label>
- <label class="label-btn">
- <button class="cu-btn bg-blue " @click="comb()">鐩樼偣</button>
- </label>
- </view>
-
- <!-- 寮圭獥 -->
- <!-- 淇敼鏁伴噺 -->
- <uni-popup ref="revise" background-color="#fff">
- <view class="revise-box ">
- <view class="revise-box-top">
- <view class="color-block-blue"></view>
- <text class="title">淇敼鎵瑰彿/鏁伴噺</text>
- </view>
- <view class="" style="position: relative;left: 50px;margin-bottom: 20px;">
- <text style="display: inline-block;float: left;width: 50px;">鎵瑰彿锛�</text>
- <input type="text" style="width: 100px;border-bottom: 1px solid #9e9e9e;" v-model="batch">
- </view>
- <view class="changeBox">
- <view class="num-box">
- <text style="display: inline-block;float: left;width: 50px;">鎵瑰彿锛�</text>
- <uni-number-box :value="count" :max="9999" color="#747474" @change="changeValue"/>
- </view>
- </view>
- <view class="revise-box-buttom">
- <view>
- <button class="cu-btn bg-blue" @click="confirm()">纭</button>
- </view>
- </view>
- </view>
- </uni-popup>
- </view>
-</template>
-
-<script>
- export default {
- data() {
- return {
- commonUrl:null,
- locno: '',
- locnoFocus: true,
- matnr: '',
- matnrFocus: true,
- matList: [],
- count:'',
- batch:''
-
- }
- },
- mounted(){
- const UIP = uni.getStorageSync('UIP');
- this.baseIP = UIP;
- const UPORT = uni.getStorageSync('UPORT');
- this.basePORT = UPORT
- const PROJ = uni.getStorageSync('UPROJ');
- this.baseUrl = PROJ
- this.getUrl()
- },
- methods: {
- // 鑾峰彇url
- getUrl() {
- this.commonUrl = this.baseHttp + this.baseIP + ':' +this.basePORT + "/" +this.baseUrl
- },
- // 娓呯┖input
- remove(e) {
- this[e] = ''
- },
- findMat() {
- let that = this
- uni.request({
- url: that.commonUrl + '/mat/auth',
- data: {
- matnr:that.matnr
- },
- header: {
- 'token':uni.getStorageSync('token')
- },
- success(result) {
- console.log(result);
- uni.vibrateShort();
- let res = result.data
- if (res.code === 200 && res.data) {
- that.matData = res.data
- that.matnr = ''
- uni.navigateTo({
- url: "matQuery",
- events: {
- // 涓烘寚瀹氫簨浠舵坊鍔犱竴涓洃鍚櫒锛岃幏鍙栬鎵撳紑椤甸潰浼犻�佸埌褰撳墠椤甸潰鐨勬暟鎹�
- matList: function(data) {
- that.checkMat(data.data)
- // that.matList.push(data.data)
- },
- },
- success: function(res) {
- // 閫氳繃eventChannel鍚戣鎵撳紑椤甸潰浼犻�佹暟鎹�
- res.eventChannel.emit('matData', { data: that.matData })
- },
- });
- } else if (res.code == 403) {
- uni.showToast({title: res.msg, icon: "none", position: 'top'})
- setTimeout(() => {
- uni.reLaunch({
- url: '../login/login'
- });
- }, 1000);
- } else {
- uni.showToast({title: res.msg, icon: "none",position: 'top'})
- }
-
- }
- });
-
- },
- // 娣诲姞鍟嗗搧
- addMat(mat) {
- this.matList.unshift(mat)
- },
- checkMat(mat) {
- var len = this.matList.length
- var add = true
- for (var i = 0; i < len; i++) {
- if (mat.matnr == this.matList[i].matnr) {
- this.matList[i].anfme += mat.anfme
- this.$forceUpdate() // 寮哄埗鍒锋柊
- add = false
- }
- }
- if (add) {
- this.matList.unshift(mat)
- }
- },
- // 鍒楄〃鍒犻櫎鎸夐挳
- remove(item,index) {
- this.matList.splice(index,1)
- uni.vibrateShort();
- },
- revise(item,index) {
- this.count = this.matList[index].anfme
- // var maxCount = this.matList[index].maxCount
- // if (maxCount == undefined ) {
- // this.matList[index]["maxCount"] = item.enableQty
- // }
- // this.enableQty = item.enableQty
- // this.count = this.minCount
- // this.maxCount = item.maxCount
- this.rowNum = index
- this.eject()
- },
- eject(type) {
- this.type = type
- // open 鏂规硶浼犲叆鍙傛暟 绛夊悓鍦� uni-popup 缁勪欢涓婄粦瀹� type灞炴��
- this.$refs.revise.open(type)
- },
- confirm() {
- this.matList[this.rowNum].anfme = this.count
- this.matList[this.rowNum].batch = this.batch
- this.$refs.revise.close()
- this.$forceUpdate() // 寮哄埗鍒锋柊
- },
- changeValue(value) {
- this.count = value
- },
- resst() {
- this.matList = []
- this.locno = ''
- this.barcodeFocuss()
- uni.vibrateShort();
- },
- comb() {
- uni.vibrateShort();
- let that = this;
- if (that.barcode === '') {
- uni.showToast({title: '璇锋壂鎻忔墭鐩樻潯鐮�', icon: "none", position: 'top'});
- return;
- }
- if (that.matList.length === 0) {
- uni.showToast({title: '璇锋坊鍔犲晢鍝佸垪琛�', icon: "none", position: 'top'});
- return;
- }
- for (var i = 0; i < that.matList.length; i++) {
- if (that.matList[i].anfme == 0 || that.matList[i].anfme == '') {
- uni.showToast({title: that.matList[i].matnr + '缁勬墭鏁伴噺涓嶈兘涓�0', icon: "none", position: 'top'});
- return;
- }
- }
- uni.showLoading();
- uni.request({
- url: that.commonUrl + '/mobile/comb/auth',
- data: JSON.stringify({
- barcode: that.barcode,
- combMats: that.matList
- }),
- method: 'POST',
- header: {
- 'token':uni.getStorageSync('token')
- },
- success(result) {
- uni.hideLoading();
- var res = result.data
- if (res.code === 200) {
- that.resst();
- uni.showToast({
- title: res.msg,
- position: 'bottom',
- duration: 1000
- });
- } else if (res.code == 403) {
- uni.showToast({title: res.msg, icon: "none", position: 'top'})
- setTimeout(() => {
- uni.reLaunch({
- url: '../login/login'
- });
- }, 1000);
- } else {
- uni.showToast({title: res.msg, icon: "none",position: 'top'})
- }
- }
- });
- },
- }
- }
-</script>
-
-<style>
- .revise-box {
- position: relative;
- width: 500rpx;
- height: 400rpx;
- border-radius: 25px;
- }
- .revise-box-top {
- width: 400rpx;
- height: 120rpx;
- border-radius: 25px;
- }
- .changeBox {
- width: 400rpx;
- height: 100rpx;
- }
- .num-box {
- margin-left: 100rpx;
- }
- .revise-box-buttom{
- margin-left: 190rpx;
- }
- .pak-seach-box {
- background-color: #FFFFFF;
- margin: 15rpx 15rpx 0rpx 15rpx;
- width: 96%;
- height: 150rpx;
- border-radius: 20rpx;
- }
- .box-top{
- display: block;
- height: 60rpx;
- width: 720rpx;
- }
- .color-block-blue {
- background-color: #1E9FFF;
- display: inline-block;
- float: left;
- margin: 15rpx 15rpx 0 15rpx;
- width: 12rpx;
- height: 40rpx;
- border: 5rpx solid #1E9FFF;
- border-radius: 20rpx;
- }
- .title {
- display: inline-block;
- float: left;
- font-size: 34rpx;
- font-weight: 700;
- height: 50rpx;
- line-height: 50rpx;
- margin-top: 10rpx;
- }
- .box-buttom {
- display: inline-block;
- background-color: #ededed;
- width: 65%;
- height: 60rpx;
- border-radius: 20rpx;
- margin: 15rpx 15rpx 0rpx 15rpx;
- }
- .box-buttom input {
- width: 75%;
- float: left;
- margin: 8rpx 10rpx 0rpx 25rpx;
- }
- .box-buttom .search-icon{
- width: 60rpx;
- height: 60rpx;
- float: right;
- margin-top: 5rpx;
- margin-right: 10rpx;
- }
- /* .pak-seach-box input {
- background-color: #ededed;
- border: 1rpx solid #d8d8d8;
- display: inline-block;
- border-radius: 20rpx;
- float: left;
- width: 70%;
- height: 60rpx;
- line-height: 60rpx;
- margin: 15rpx 15rpx 0rpx 15rpx;
- padding-left: 20rpx;
- } */
- .pak-seach-box button {
- background-color: #1E9FFF;
- color: #ffffff;
- display: inline-block;
- float: right;
- width: 180rpx;
- height: 60rpx;
- margin: 15rpx 15rpx 0rpx 15rpx;
- line-height: 60rpx;
- }
- .pakin-btn {
- background-color: #1E9FFF;
- }
- .pak-data-box {
- background-color: #F1F1F1;
- margin: 15rpx 15rpx 0rpx 15rpx;
- width: 96%;
- height: 70rpx;
- border-radius: 20rpx;
- }
- .pak-data-box .box-top {
- background-color: #FFFFFF;
- height: 70rpx;
- border-radius: 20rpx 20rpx 20rpx 20rpx;
- }
- .bg-false {
- background-color: #FFFFFF;
- }
- .bg-true {
- background-color: #ebebeb;
- }
- .data-list {
- border-bottom: 1px solid #d8d8d8;
- height: 180rpx;
- margin: 15rpx;
- border-radius: 20rpx;
- }
- .data-list:first-child {
- margin-top: 20rpx;
- }
- .data-list:last-child {
- margin-bottom: 120rpx;
- }
- /* .data-list-left {
- display: inline-block;
- float: left;
- text-align: center;
- width: 100rpx;
- height: 180rpx;
- line-height: 180rpx;
- } */
- .data-list-left {
- display: inline-block;
- float: left;
- margin-left: 6%;
- height: 180rpx;
- color: #676767;
- }
- .matnr {
- padding-top: 10rpx;
- }
- .data-list-right {
- display: inline-block;
- float: right;
- height: 180rpx;
- line-height: 180rpx;
- }
- /* display: inline-block;
- float: right;
- width: 200rpx;
- height: 180rpx;
- line-height: 180rpx; */
- .data-list-right label {
- display: inline-block;
- float: left;
- width: 80rpx;
- height: 180rpx;
- }
-</style>
\ No newline at end of file
diff --git a/pages/basics/matQuery.vue b/pages/basics/matQuery.vue
deleted file mode 100644
index a707b6d..0000000
--- a/pages/basics/matQuery.vue
+++ /dev/null
@@ -1,151 +0,0 @@
-<template>
- <scroll-view scroll-y>
- <view>
- <view class="container">
- <view class="text-box">
- <view class="text-title"><text>鍟嗗搧缂栫爜</text></view>
- <view class="text-title"><text>{{matData.matnr}}</text></view>
- </view>
- <view class="text-box">
- <view class="text-title"><text>鍟嗗搧鍚嶇О</text></view>
- <view class="text-title">{{matData.maktx}}</view>
- </view>
- <view class="text-box">
- <view class="text-title"><text>瑙勬牸</text></view>
- <view class="text-title">{{matData.specs}}</view>
- </view>
- <view class="text-box">
- <view class="text-title"><text>鎵瑰彿</text></view>
- <view class="text-title"><input type="text" v-model="matData.batch"></view>
- </view>
- <view class="text-box">
- <view class="text-title"><text>澶囨敞</text></view>
- <view class="text-title"><input type="text" v-model="matData.memo"></view>
- </view>
- <view class="text-box">
- <view class="text-title"><text>鏁伴噺</text></view>
- <view class="text-title">
- <view>
- <uni-number-box :value="matData.anfme" :max="9999999" color="#747474" @change="changeValue"/>
- </view>
- </view>
- </view>
- </view>
- </view>
- <view class="foot flex justify-center">
- <label>
- <button class="cu-btn bg-blue" @click="back()">鎻愬彇</button>
- </label>
- </view>
- </scroll-view>
-</template>
-
-<script>
- export default {
- data() {
- return {
- matData: {
- matnr: null,
- maktx: null,
- batch: null,
- anfme: null,
- },
- baseIP:'',
- basePORT:'',
- }
- },
- onLoad(option) {
- let that = this
- // #ifdef APP-NVUE
- const eventChannel = this.$scope.eventChannel; // 鍏煎APP-NVUE
- // #endif
- // #ifndef APP-NVUE
- const eventChannel = this.getOpenerEventChannel();
- // #endif
-
- // 鐩戝惉acceptDataFromOpenerPage浜嬩欢锛岃幏鍙栦笂涓�椤甸潰閫氳繃eventChannel浼犻�佸埌褰撳墠椤甸潰鐨勬暟鎹�
- eventChannel.on('matData', function(data) {
- that.matData = data.data
- that.matData.anfme = that.matData.fullQty
- })
-
-
- },
- methods: {
- blur() {
-
- },
- focus() {
-
- },
- changeValue(value) {
- this.matData.anfme = value
- },
- back() {
- if (this.matData.anfme === 0) {
- uni.showToast({title: '璇疯緭鍏ユ暟閲�', icon: "none", position: 'top'});
- return;
- }
- this.getOpenerEventChannel().emit('matList', {data: this.matData});
- uni.vibrateShort();
- uni.navigateBack({
-
- })
- }
- }
- }
-</script>
-
-<style>
- .container {
- width: 100%;
- height: 100%;
- background-color: #ffffff;
- }
- .text-box {
- height: 100rpx;
- line-height: 100rpx;
- margin-top: 20rpx;
- margin-left: 10%;
- width: 80%;
- font-size: 32rpx;
- font-weight: 400;
- color: #434343;
- border-bottom: 1rpx solid #e8e8e8;
- }
- .text-box:last-child {
- border-bottom: none;
- }
- .text-box .text-title {
- width: 30%;
- height: 100rpx;
- float: left;
- display: inline-block;
- }
- .text-box .text-title:last-child {
- display: inline-block;
- margin-left: 5%;
- width: 65%;
- font-size: 30rpx;
- font-weight: 400;
- color: #747474;
- display: flex;
- align-items: center;
- }
- .text-box .text-title:last-child input {
- border-bottom: 1rpx solid #e8e8e8 ;
- width: 100%;
- }
-
-
- .foot {
- width: 100%;
- height: 100rpx;
- line-height: 100rpx;
- background-color: rgba(255,255,255,1);
- position: fixed;
- bottom: 0%;
- border-top: 1px solid #d8d8d8;
- z-index: 1;
- }
-</style>
diff --git a/pages/basics/matSelect.vue b/pages/basics/matSelect.vue
deleted file mode 100644
index 4c919a9..0000000
--- a/pages/basics/matSelect.vue
+++ /dev/null
@@ -1,426 +0,0 @@
-<template>
- <view>
- <scroll-view scroll-y >
- <view class="search-box">
- <view class="search-area">
- <view class="search-icon"><uni-icons type="search" size="25" color="#a5a5a5"></uni-icons></view>
- <input type="text" @focus="inputF" v-model="condition" placeholder="璇疯緭鍏ュ晢鍝佺紪鐮� / 鍚嶇О"/>
- <view class="close-icon" @click="reset()"><uni-icons type="closeempty" size="25" color="#a5a5a5"></uni-icons></view>
- </view>
- <view class="search-btn"><button @click="search(condition)" class="cu-btn bg-blue">鎼滅储</button></view>
- </view>
- <checkbox-group @change="checkbox">
- <label v-for="(item,index) in tag" :key="index" class="demo-list bg-false"
- @click="showTag(item.id)">
- <view class="demo-list-right">
- <view class="tag">
- <view class="cu-tag bg-blue ">褰掔被</view>
- </view>
-
- <view class="order-ditel"><text class="orderNo">{{item.name}}</text></view>
- </view>
- </label>
-
- </checkbox-group>
- <checkbox-group>
- <label v-for="(item,index) in data" :key="index" class="demo-list bg-false"
- @click="findBySelect(item.matnr)">
- <view class="demo-list-right">
- <view class="tag">
- <view class="cu-tag bg-cyan ">鍟嗗搧</view>
- </view>
- <view class="matnr"><text style="width: 400rpx;">{{item.matnr}}</text></view>
- </view>
- </label>
- </checkbox-group>
- </scroll-view>
- <view class="record" v-show="recordShow">
- <label class="record-card" v-for="(item,index) in record" :key="index" @click="chose(index)">
- <view style="padding: 0 5rpx 0 10rpx;">{{item}}</view>
- <uni-icons style="padding: 0 5rpx 0 5rpx;" type="closeempty" size="22" color="#a5a5a5" @click="del(index)"></uni-icons>
- </label>
- </view>
- </view>
-</template>
-
-<script>
- export default {
- data() {
- return {
- commonUrl:null,
- condition:null,
- tag: [],
- data: [],
- record: [],
- recordShow: false,
- }
- },
- onLoad() {
- let that = this
- // const eventChannel = this.$scope.eventChannel; // 鍏煎APP-NVUE
- const eventChannel = this.getOpenerEventChannel();
-
- // 鐩戝惉acceptDataFromOpenerPage浜嬩欢锛岃幏鍙栦笂涓�椤甸潰閫氳繃eventChannel浼犻�佸埌褰撳墠椤甸潰鐨勬暟鎹�
- eventChannel.on('commonUrl', function(data) {
- that.commonUrl = data.commonUrl
- that.showTag(1)
- that.record = uni.getStorageSync("record")
- })
- },
- methods: {
- checkbox() {
-
- },
- reset() {
- this.condition = null
- uni.vibrateShort();
- },
- // 鑱氱劍
- inputF() {
- if (this.record.length == 0) {
- return
- }
- this.recordShow = true
- },
- search(condition) {
- let that = this
- that.tag = null
- that.data = null
- that.recordShow = false
- uni.vibrateShort();
- uni.showLoading({
- title: '鎼滅储涓�...'
- });
- uni.request({
- // url: "http://localhost:8081/jkwms/tag/list/pda/auth",
- url: that.commonUrl + '/mat/search/pda/auth',
- data: {
- condition: condition
- },
- method:"GET",
- header: {
- 'token':uni.getStorageSync('token'),
- },
- success(result) {
- console.log(result);
- uni.hideLoading();
- var res = result.data
- if (res.code === 200 ) {
- that.data = res.data
- that.save()
- } else if (res.code == 403) {
- uni.showToast({title: res.msg, icon: "none", position: 'top'})
- setTimeout(() => {
- uni.reLaunch({
- url: '../login/login'
- });
- }, 1000);
- } else {
- uni.showToast({title: res.msg, icon: "none",position: 'top'})
- }
- }
- });
- },
- // 淇濆瓨
- save() {
- if (this.record === '') {
- this.record = []
- }
- this.record.push(this.condition)
- for (var i = 0; i < this.record.length; i++) {
- for (var j = i + 1;j < this.record.length; j++) {
- if (this.record[i] ===this.record[j]){
- this.record.splice(j,1);
- j--;
- }
- }
- }
-
- uni.setStorageSync("record",this.record)
- },
- // 鍒犻櫎
- del(i) {
- this.record.splice(i,1)
- uni.setStorageSync("record",this.record)
- },
- chose(i) {
- this.condition = this.record[i]
- },
- showTag(parentId) {
- let that = this
- uni.showLoading();
- uni.request({
- url: that.commonUrl + '/tag/list/pda/auth',
- header: {
- 'token':uni.getStorageSync('token'),
- },
- data: {
- limit: 100000,
- parentId: parentId
- },
- header: {
- 'token':uni.getStorageSync('token'),
- },
- success(result) {
- uni.hideLoading();
- that.tag = null
- that.data = null
- var res = result.data
- if (res.code === 200) {
- if (res.data != null && res.data.length > 0) {
- that.tag = res.data
- } else {
- that.showMat(parentId)
- }
- } else if (res.code === 403 ) {
- uni.showToast({title: res.msg, icon: "none", position: 'top'})
- setTimeout(() => {
- uni.reLaunch({
- url: '../login/login'
- });
- }, 1000);
- } else {
- uni.showToast({title: res.msg, icon: "none",position: 'top'})
- }
-
- }
- });
- },
- showMat(tagId) {
- uni.showLoading();
- let that = this
- if (tagId == null || tagId == '' || tagId == undefined) {
- return;
- }
- uni.request({
- url: that.commonUrl + '/mat/list/pda/auth',
- data: {
- tagId: tagId
- },
- method:"GET",
- header: {
- 'token':uni.getStorageSync('token'),
- },
- success(result) {
- uni.hideLoading();
- that.tag = null
- var res = result.data
- if (res.code === 200) {
- if (res.data != null && res.data.length > 0) {
- that.data = res.data
-
- } else {
- // that.tagId = parentId
- }
- } else if (res.code === 403 ) {
- uni.showToast({title: res.msg, icon: "none", position: 'top'})
- setTimeout(() => {
- uni.reLaunch({
- url: '../login/login'
- });
- }, 1000);
- } else {
- uni.showToast({title: res.msg, icon: "none",position: 'top'})
- }
-
- }
- });
- },
- findBySelect(matnr) {
- this.getOpenerEventChannel().emit('acceptDataFromOpenedPage', {data: matnr});
- uni.vibrateShort();
- uni.navigateBack({
-
- })
-
- }
- }
- }
-</script>
-
-<style>
- .record {
- display: flex;
- align-items: center;
- flex-wrap: wrap;
- z-index: 1;
- position: fixed;
- top: 188rpx;
- /* #ifdef APP-PLUS */
- top: 89rpx;
- /* #endif */
- width: 100%;
- min-height: 50rpx;
- background-color: #E4E7ED;
- }
- .record-card {
- display: flex;
- align-items: center;
- min-width: 100rpx;
- height: 60rpx;
- background-color: #C0C4CC;
- margin: 10rpx 10rpx 10rpx 10rpx;
- border-radius: 10rpx;
- }
- .matnr {
- margin-left: 60rpx;
- margin-top: 20rpx;
- }
- .matnr:last-child {
- margin-top: 0rpx;
- }
- .tag {
- padding-left: 50rpx;
- padding-top: 10rpx;
- width: 100%;
- border-bottom: 1px solid #ebebeb;
- }
- .search-box {
- position: fixed;
- left: 0;
- top: 0;
- width: 100%;
- height: 100rpx;
- background-color: #FFF;
- border-bottom: 1px solid #d8d8d8;
- border-radius: 0 0 20rpx 20rpx;
- z-index: 1;
- }
- /*#ifdef H5 */
- .search-box {
- position: fixed;
- left: 0;
- top: 89rpx;
- width: 100%;
- height: 100rpx;
- background-color: #ffffff;
- border-bottom: 1px solid #d8d8d8;
- border-radius: 0 0 20rpx 20rpx;
- z-index: 1;
- }
- /* #endif */
- .search-area {
- display: inline-block;
- background-color: #F1F1F1;
- width: 75%;
- height: 70%;
- margin: 15rpx;
- border-radius: 15rpx;
- }
- .search-area input {
- display: inline-block;
- height: 70rpx;
- width: 70%;
- line-height: 70rpx;
- font-size: 25rpx;
- font-weight: 400;
- }
- .search-btn {
- display: inline-block;
- float: right;
- margin-right: 30rpx;
- margin-top: 15rpx;
- }
- .search-icon {
- display: inline-block;
- float: left;
- width: 70rpx;
- height: 70rpx;
- text-align: center;
- line-height: 70rpx;
-
- }
- .close-icon {
- display: inline-block;
- float: right;
- width: 70rpx;
- height: 70rpx;
- text-align: center;
- line-height: 70rpx;
- }
- .bg-false {
- background-color: #FFFFFF;
- }
- .bg-true {
- background-color: #ebebeb;
- }
- .demo-list {
- border-bottom: 1px solid #d8d8d8;
- height: 150rpx;
- margin: 15rpx;
- border-radius: 20rpx;
- }
- .demo-list:first-child {
- margin-top: 120rpx;
- }
- .demo-list:last-child {
- margin-bottom: 120rpx;
- }
- label {
- display: block;
- }
- .demo-list-left {
- display: inline-block;
- float: left;
- text-align: center;
- width: 100rpx;
- height: 120rpx;
- line-height: 120rpx;
- }
- .demo-list-right {
- display: inline-block;
- float: left;
- width: 100%;
- height: 150rpx;
- color: #828282;
- }
- .order-ditel {
- margin-top: 30rpx;
- height: 60rpx;
- width: 600rpx;
- line-height: 60rpx;
- }
-
- .demo-list-right .index {
- width: 120rpx;
- height: 25rpx;
- line-height: 25rpx;
- font-size: 40rpx;
- border-right: 4rpx solid #6f6f6f;
- padding-left: 0px;
- padding-right: 10rpx;
- color: #3b3b3b;
- /* background-color: #007AFF; */
- }
- .demo-list-right .orderNo {
- padding-left: 30rpx;
- font-size: 35rpx;
- width: 400rpx;
- color: #3b3b3b;
- /* background-color: #0A98D5; */
- }
- .demo-list-right .vertical-bar { // 绔栨潬
- /* background-color: #6739B6; */
- width: 50rpx;
- font-size: 30rpx;
- text-align: center;
- }
- .demo-list-right text {
- display: inline-block;
- width: 250rpx;
- font-size: 25rpx;
- }
- .color-red {
- width: auto;
- font-weight: 700;
- color: #e74f4f;
- }
-
-
- .label-btn {
- width: 150rpx;
- }
- checkbox {
- /* transform:scale(0.7) */
- }
-</style>
diff --git a/pages/basics/matSelect2.vue b/pages/basics/matSelect2.vue
deleted file mode 100644
index a8b48cd..0000000
--- a/pages/basics/matSelect2.vue
+++ /dev/null
@@ -1,400 +0,0 @@
-<template>
- <view>
- <scroll-view scroll-y >
- <view class="search-box">
- <view class="search-area">
- <view class="search-icon"><uni-icons type="search" size="25" color="#a5a5a5"></uni-icons></view>
- <input type="text" v-model="condition" placeholder="璇疯緭鍏ュ晢鍝佺紪鐮� / 鍚嶇О"/>
- <view class="close-icon" @click="reset()"><uni-icons type="closeempty" size="25" color="#a5a5a5"></uni-icons></view>
- </view>
- <view class="search-btn"><button @click="search(condition)" class="cu-btn bg-blue">鎼滅储</button></view>
- </view>
- <checkbox-group @change="checkbox">
- <label v-for="(item,index) in tag" :key="index" class="demo-list bg-false"
- @click="showTag(item.id)">
- <view class="demo-list-right">
- <view class="tag">
- <view class="cu-tag bg-blue ">褰掔被</view>
- </view>
-
- <view class="order-ditel"><text class="orderNo">{{item.name}}</text></view>
- </view>
- </label>
-
- </checkbox-group>
- <checkbox-group>
- <label v-for="(item,index) in data" :key="index" class="demo-list bg-false"
- @click="findBySelect(item.matnr)">
- <view class="demo-list-right">
- <view class="tag">
- <view class="cu-tag bg-cyan ">鍟嗗搧</view>
- </view>
- <view class="matnr"><text style="width: 400rpx;">{{item.matnr}}</text></view>
- <view class="matnr"><text style="width: 400rpx;">{{item.specs}}</text></view>
- </view>
- </label>
- </checkbox-group>
- <uni-load-more :status="status" :icon-size="16" :content-text="contentText" />
- </scroll-view>
- </view>
-</template>
-
-<script>
- export default {
- data() {
- return {
- commonUrl:null,
- condition:null,
- tag: [],
- data: [],
- status: 'more',
- contentText: {
- contentdown: '涓婃媺鍔犺浇鏇村',
- contentrefresh: '鍔犺浇涓�',
- contentnomore: '娌℃湁鏇村'
- },
- last_id: '',
- }
- },
- onLoad() {
- let that = this
- // const eventChannel = this.$scope.eventChannel; // 鍏煎APP-NVUE
- const eventChannel = this.getOpenerEventChannel();
-
- // 鐩戝惉acceptDataFromOpenerPage浜嬩欢锛岃幏鍙栦笂涓�椤甸潰閫氳繃eventChannel浼犻�佸埌褰撳墠椤甸潰鐨勬暟鎹�
- eventChannel.on('commonUrl', function(data) {
- that.commonUrl = data.commonUrl
- that.showTag(1)
- })
- },
- onReachBottom() {
- // this.status = 'more';
- this.getList();
- },
- methods: {
- getList() {
- let that = this
- var data = {
-
- };
- if (this.last_id) {
- //璇存槑宸叉湁鏁版嵁锛岀洰鍓嶅浜庝笂鎷夊姞杞�
- this.status = 'loading';
- data.minId = this.last_id;
- data.time = new Date().getTime() + '';
- data.pageSize = 10;
- }
- uni.request({
- url: that.commonUrl + '',
- data: data,
- success: data => {
- if (data.statusCode == 200) {
- let list = this.setTime(data.data);
- this.listData = this.reload ? list : this.listData.concat(list);
- this.last_id = list[list.length - 1].id;
- this.reload = false;
- }
- },
- fail: (data, code) => {
- console.log('fail' + JSON.stringify(data));
- }
- });
- },
- checkbox() {
-
- },
- reset() {
- this.condition = null
- uni.vibrateShort();
- },
- search(condition) {
- let that = this
- that.tag = null
- that.data = null
- uni.vibrateShort();
- uni.showLoading({
- title: '鎼滅储涓�...'
- });
- uni.request({
- // url: "http://localhost:8081/jkwms/tag/list/pda/auth",
- url: that.commonUrl + '/mat/search/pda/auth',
- data: {
- condition: condition
- },
- method:"GET",
- header: {
- 'token':uni.getStorageSync('token'),
- },
- success(result) {
- uni.hideLoading();
- var res = result.data
- if (res.code === 200 ) {
- that.data = res.data
- } else if (res.code == 403) {
- uni.showToast({title: res.msg, icon: "none", position: 'top'})
- setTimeout(() => {
- uni.reLaunch({
- url: '../login/login'
- });
- }, 1000);
- } else {
- uni.showToast({title: res.msg, icon: "none",position: 'top'})
- }
- }
- });
- },
- showTag(parentId) {
- let that = this
- uni.showLoading();
- uni.request({
- url: that.commonUrl + '/tag/list/pda/auth',
- header: {
- 'token':uni.getStorageSync('token'),
- },
- data: {
- limit: 100000,
- parentId: parentId
- },
- header: {
- 'token':uni.getStorageSync('token'),
- },
- success(result) {
- uni.hideLoading();
- that.tag = null
- that.data = null
- var res = result.data
- if (res.code === 200) {
- if (res.data != null && res.data.length > 0) {
- that.tag = res.data
- } else {
- that.showMat(parentId)
- }
- } else if (res.code === 403 ) {
- uni.showToast({title: res.msg, icon: "none", position: 'top'})
- setTimeout(() => {
- uni.reLaunch({
- url: '../login/login'
- });
- }, 1000);
- } else {
- uni.showToast({title: res.msg, icon: "none",position: 'top'})
- }
-
- }
- });
- },
- showMat(tagId) {
- uni.showLoading();
- let that = this
- if (tagId == null || tagId == '' || tagId == undefined) {
- return;
- }
- uni.request({
- url: that.commonUrl + '/mat/list/pda/auth',
- data: {
- tagId: tagId
- },
- method:"GET",
- header: {
- 'token':uni.getStorageSync('token'),
- },
- success(result) {
- uni.hideLoading();
- that.tag = null
- var res = result.data
- if (res.code === 200) {
- if (res.data != null && res.data.length > 0) {
- that.data = res.data
-
- } else {
- // that.tagId = parentId
- }
- } else if (res.code === 403 ) {
- uni.showToast({title: res.msg, icon: "none", position: 'top'})
- setTimeout(() => {
- uni.reLaunch({
- url: '../login/login'
- });
- }, 1000);
- } else {
- uni.showToast({title: res.msg, icon: "none",position: 'top'})
- }
-
- }
- });
- },
- findBySelect(matnr) {
- this.getOpenerEventChannel().emit('acceptDataFromOpenedPage', {data: matnr});
- uni.vibrateShort();
- uni.navigateBack({
-
- })
-
- }
- }
- }
-</script>
-
-<style>
- .matnr {
- margin-left: 60rpx;
- margin-top: 20rpx;
- }
- .matnr:last-child {
- margin-top: 0rpx;
- }
- .tag {
- padding-left: 50rpx;
- padding-top: 10rpx;
- width: 100%;
- border-bottom: 1px solid #ebebeb;
- }
- .search-box {
- position: fixed;
- left: 0;
- top: 0;
- width: 100%;
- height: 100rpx;
- background-color: #FFF;
- border-bottom: 1px solid #d8d8d8;
- border-radius: 0 0 20rpx 20rpx;
- z-index: 1;
- }
- /*#ifdef H5 */
- .search-box {
- position: fixed;
- left: 0;
- top: 89rpx;
- width: 100%;
- height: 100rpx;
- background-color: #ffffff;
- border-bottom: 1px solid #d8d8d8;
- border-radius: 0 0 20rpx 20rpx;
- z-index: 1;
- }
- /* #endif */
- .search-area {
- display: inline-block;
- background-color: #F1F1F1;
- width: 75%;
- height: 70%;
- margin: 15rpx;
- border-radius: 15rpx;
- }
- .search-area input {
- display: inline-block;
- height: 70rpx;
- width: 70%;
- line-height: 70rpx;
- font-size: 25rpx;
- font-weight: 400;
- }
- .search-btn {
- display: inline-block;
- float: right;
- margin-right: 30rpx;
- margin-top: 15rpx;
- }
- .search-icon {
- display: inline-block;
- float: left;
- width: 70rpx;
- height: 70rpx;
- text-align: center;
- line-height: 70rpx;
-
- }
- .close-icon {
- display: inline-block;
- float: right;
- width: 70rpx;
- height: 70rpx;
- text-align: center;
- line-height: 70rpx;
- }
- .bg-false {
- background-color: #FFFFFF;
- }
- .bg-true {
- background-color: #ebebeb;
- }
- .demo-list {
- border-bottom: 1px solid #d8d8d8;
- height: 180rpx;
- margin: 15rpx;
- border-radius: 20rpx;
- }
- .demo-list:first-child {
- margin-top: 120rpx;
- }
- .demo-list:last-child {
- margin-bottom: 120rpx;
- }
- label {
- display: block;
- }
- .demo-list-left {
- display: inline-block;
- float: left;
- text-align: center;
- width: 100rpx;
- height: 180rpx;
- line-height: 180rpx;
- }
- .demo-list-right {
- display: inline-block;
- float: left;
- width: 100%;
- height: 180rpx;
- color: #828282;
- }
- .order-ditel {
- margin-top: 30rpx;
- height: 60rpx;
- width: 600rpx;
- line-height: 60rpx;
- }
-
- .demo-list-right .index {
- width: 120rpx;
- height: 25rpx;
- line-height: 25rpx;
- font-size: 40rpx;
- border-right: 4rpx solid #6f6f6f;
- padding-left: 0px;
- padding-right: 10rpx;
- color: #3b3b3b;
- /* background-color: #007AFF; */
- }
- .demo-list-right .orderNo {
- padding-left: 30rpx;
- font-size: 35rpx;
- width: 400rpx;
- color: #3b3b3b;
- /* background-color: #0A98D5; */
- }
- .demo-list-right .vertical-bar { // 绔栨潬
- /* background-color: #6739B6; */
- width: 50rpx;
- font-size: 30rpx;
- text-align: center;
- }
- .demo-list-right text {
- display: inline-block;
- width: 250rpx;
- font-size: 25rpx;
- }
- .color-red {
- width: auto;
- font-weight: 700;
- color: #e74f4f;
- }
-
-
- .label-btn {
- width: 150rpx;
- }
- checkbox {
- /* transform:scale(0.7) */
- }
-</style>
diff --git a/pages/basics/matSelect3.vue b/pages/basics/matSelect3.vue
deleted file mode 100644
index 33dfa31..0000000
--- a/pages/basics/matSelect3.vue
+++ /dev/null
@@ -1,412 +0,0 @@
-<template>
- <view>
- <scroll-view scroll-y >
- <view class="search-box">
- <view class="search-area">
- <view class="search-icon"><uni-icons type="search" size="25" color="#a5a5a5"></uni-icons></view>
- <input type="text" v-model="condition" placeholder="璇疯緭鍏ュ晢鍝佺紪鐮� / 鍚嶇О"/>
- <view class="close-icon" @click="reset()"><uni-icons type="closeempty" size="25" color="#a5a5a5"></uni-icons></view>
- </view>
- <view class="search-btn"><button @click="search(condition)" class="cu-btn bg-blue">鎼滅储</button></view>
- </view>
- <checkbox-group @change="checkbox">
- <label v-for="(item,index) in tag" :key="index" class="demo-list bg-false"
- @click="showTag(item.id)">
- <view class="demo-list-right">
- <view class="tag">
- <view class="cu-tag bg-blue ">褰掔被</view>
- </view>
-
- <view class="order-ditel"><text class="orderNo">{{item.name}}</text></view>
- </view>
- </label>
-
- </checkbox-group>
- <checkbox-group>
- <label v-for="(item,index) in data" :key="index" class="demo-list bg-false"
- @click="findBySelect(item.matnr)">
- <view class="demo-list-right">
- <view class="tag">
- <view class="cu-tag bg-cyan ">鍟嗗搧</view>
- </view>
- <view class="matnr"><text style="width: 400rpx;">{{item.matnr}}</text></view>
- <view class="matnr"><text style="width: 400rpx;">{{item.specs}}</text></view>
- </view>
- </label>
- </checkbox-group>
- </scroll-view>
- <view class="footer flex" style="height: 100rpx;">
- <view class="bottom">
- <view style="display: inline-block;">
- <button size="mini" @click="pageUp()">涓婁竴椤�</button>
- </view>
- <view style="display: flex;align-items: center;">
- <text>褰撳墠椤碉細</text>
- <input v-model="limit" @blur="toPage()" type="text" style="width: 50rpx;border: 1px solid #ccc;height: 30rpx;font-size: 14rpx;">
- </view>
- <view style="display: flex;align-items: center;">
- <text style="font-size: 14rpx;">鍏眥{pages}}椤�</text>
- </view>
- <view style="display: inline-block;">
- <button size="mini" @click="pageDown()">涓嬩竴椤�</button>
- </view>
- </view>
- </view>
- </view>
-</template>
-
-<script>
- export default {
- data() {
- return {
- commonUrl:null,
- condition:null,
- tag: [],
- data: [],
- limit: 1,
- pages: 10,
- curr: 1,
- parentId:''
- }
- },
- onLoad() {
- let that = this
- // const eventChannel = this.$scope.eventChannel; // 鍏煎APP-NVUE
- const eventChannel = this.getOpenerEventChannel();
-
- // 鐩戝惉acceptDataFromOpenerPage浜嬩欢锛岃幏鍙栦笂涓�椤甸潰閫氳繃eventChannel浼犻�佸埌褰撳墠椤甸潰鐨勬暟鎹�
- eventChannel.on('commonUrl', function(data) {
- that.commonUrl = data.commonUrl
- that.showTag(1)
- })
- },
- methods: {
- pageUp() {
- this.curr = this.curr - 1
- this.showMat(this.parentId,this.curr,16)
- this.limit = this.curr
- console.log(this.curr);
- },
- pageDown() {
- this.curr = this.curr + 1
- this.limit = this.curr
- this.showMat(this.parentId,this.curr,16)
- console.log(this.curr);
- },
- toPage() {
- this.curr = this.pages
-
- this.showMat(this.parentId,this.curr,16)
- },
- checkbox() {
-
- },
- reset() {
- this.condition = null
- uni.vibrateShort();
- },
- search(condition) {
- let that = this
- that.tag = null
- that.data = null
- uni.vibrateShort();
- uni.showLoading({
- title: '鎼滅储涓�...'
- });
- uni.request({
- // url: "http://localhost:8081/jkwms/tag/list/pda/auth",
- url: that.commonUrl + '/mat/search/pda/auth',
- data: {
- condition: condition
- },
- method:"GET",
- header: {
- 'token':uni.getStorageSync('token'),
- },
- success(result) {
- uni.hideLoading();
- var res = result.data
- if (res.code === 200 ) {
- that.data = res.data
- } else if (res.code == 403) {
- uni.showToast({title: res.msg, icon: "none", position: 'top'})
- setTimeout(() => {
- uni.reLaunch({
- url: '../login/login'
- });
- }, 1000);
- } else {
- uni.showToast({title: res.msg, icon: "none",position: 'top'})
- }
- }
- });
- },
- showTag(parentId) {
- let that = this
- uni.showLoading();
- uni.request({
- url: that.commonUrl + '/tag/list/pda/auth',
- header: {
- 'token':uni.getStorageSync('token'),
- },
- data: {
- curr: 1,
- limit: 16,
- parentId: parentId
- },
- header: {
- 'token':uni.getStorageSync('token'),
- },
- success(result) {
- uni.hideLoading();
- that.tag = null
- that.data = null
- var res = result.data
- if (res.code === 200) {
- if (res.data != null && res.data.length > 0) {
- that.tag = res.data
- } else {
- that.showMat(parentId,"1","16")
- }
- } else if (res.code === 403 ) {
- uni.showToast({title: res.msg, icon: "none", position: 'top'})
- setTimeout(() => {
- uni.reLaunch({
- url: '../login/login'
- });
- }, 1000);
- } else {
- uni.showToast({title: res.msg, icon: "none",position: 'top'})
- }
-
- }
- });
- },
- showMat(tagId,curr,limit) {
- uni.showLoading();
- let that = this
- if (tagId == null || tagId == '' || tagId == undefined) {
- return;
- }
- uni.request({
- url: that.commonUrl + '/mat/list/pad/page/auth',
- data: {
- param: {
- curr: curr,
- limit: limit,
- tagId:tagId,
- }
- },
- method:"POST",
- header: {
- 'token':uni.getStorageSync('token'),
- },
- success(result) {
- console.log(result);
- uni.hideLoading();
- that.tag = null
- var res = result.data
- if (res.code === 200) {
- if (res.data != null && res.data.length > 0) {
- that.data = res.data
-
- } else {
- // that.tagId = parentId
- }
- } else if (res.code === 403 ) {
- uni.showToast({title: res.msg, icon: "none", position: 'top'})
- setTimeout(() => {
- uni.reLaunch({
- url: '../login/login'
- });
- }, 1000);
- } else {
- uni.showToast({title: res.msg, icon: "none",position: 'top'})
- }
-
- }
- });
- },
- findBySelect(matnr) {
- this.getOpenerEventChannel().emit('acceptDataFromOpenedPage', {data: matnr});
- uni.vibrateShort();
- uni.navigateBack({
-
- })
-
- }
- }
- }
-</script>
-
-<style>
- .bottom {
- height: 100%;
- width: 100%;
- /* background-color: #828282; */
- display: flex;
- justify-content: space-around;
-
- }
- .matnr {
- margin-left: 60rpx;
- margin-top: 20rpx;
- }
- .matnr:last-child {
- margin-top: 0rpx;
- }
- .tag {
- padding-left: 50rpx;
- padding-top: 10rpx;
- width: 100%;
- border-bottom: 1px solid #ebebeb;
- }
- .search-box {
- position: fixed;
- left: 0;
- top: 0;
- width: 100%;
- height: 100rpx;
- background-color: #FFF;
- border-bottom: 1px solid #d8d8d8;
- border-radius: 0 0 20rpx 20rpx;
- z-index: 1;
- }
- /*#ifdef H5 */
- .search-box {
- position: fixed;
- left: 0;
- top: 89rpx;
- width: 100%;
- height: 100rpx;
- background-color: #ffffff;
- border-bottom: 1px solid #d8d8d8;
- border-radius: 0 0 20rpx 20rpx;
- z-index: 1;
- }
- /* #endif */
- .search-area {
- display: inline-block;
- background-color: #F1F1F1;
- width: 75%;
- height: 70%;
- margin: 15rpx;
- border-radius: 15rpx;
- }
- .search-area input {
- display: inline-block;
- height: 70rpx;
- width: 70%;
- line-height: 70rpx;
- font-size: 25rpx;
- font-weight: 400;
- }
- .search-btn {
- display: inline-block;
- float: right;
- margin-right: 30rpx;
- margin-top: 15rpx;
- }
- .search-icon {
- display: inline-block;
- float: left;
- width: 70rpx;
- height: 70rpx;
- text-align: center;
- line-height: 70rpx;
-
- }
- .close-icon {
- display: inline-block;
- float: right;
- width: 70rpx;
- height: 70rpx;
- text-align: center;
- line-height: 70rpx;
- }
- .bg-false {
- background-color: #FFFFFF;
- }
- .bg-true {
- background-color: #ebebeb;
- }
- .demo-list {
- border-bottom: 1px solid #d8d8d8;
- height: 180rpx;
- margin: 15rpx;
- border-radius: 20rpx;
- }
- .demo-list:first-child {
- margin-top: 120rpx;
- }
- .demo-list:last-child {
- margin-bottom: 120rpx;
- }
- label {
- display: block;
- }
- .demo-list-left {
- display: inline-block;
- float: left;
- text-align: center;
- width: 100rpx;
- height: 180rpx;
- line-height: 180rpx;
- }
- .demo-list-right {
- display: inline-block;
- float: left;
- width: 100%;
- height: 180rpx;
- color: #828282;
- }
- .order-ditel {
- margin-top: 30rpx;
- height: 60rpx;
- width: 600rpx;
- line-height: 60rpx;
- }
-
- .demo-list-right .index {
- width: 120rpx;
- height: 25rpx;
- line-height: 25rpx;
- font-size: 40rpx;
- border-right: 4rpx solid #6f6f6f;
- padding-left: 0px;
- padding-right: 10rpx;
- color: #3b3b3b;
- /* background-color: #007AFF; */
- }
- .demo-list-right .orderNo {
- padding-left: 30rpx;
- font-size: 35rpx;
- width: 400rpx;
- color: #3b3b3b;
- /* background-color: #0A98D5; */
- }
- .demo-list-right .vertical-bar { // 绔栨潬
- /* background-color: #6739B6; */
- width: 50rpx;
- font-size: 30rpx;
- text-align: center;
- }
- .demo-list-right text {
- display: inline-block;
- width: 250rpx;
- font-size: 25rpx;
- }
- .color-red {
- width: auto;
- font-weight: 700;
- color: #e74f4f;
- }
-
-
- .label-btn {
- width: 150rpx;
- }
- checkbox {
- /* transform:scale(0.7) */
- }
-</style>
diff --git a/pages/basics/offLines.vue b/pages/basics/offLines.vue
deleted file mode 100644
index 7875456..0000000
--- a/pages/basics/offLines.vue
+++ /dev/null
@@ -1,261 +0,0 @@
-<template>
- <view>
-
- <!-- 搴撲綅鐮佽緭鍏ユ -->
- <view class="square-2">
- <view class="square-title">
- <view class="title-sign"><view class="sign"></view></view>
- <view class="title-text"><text>搴撲綅鐮�</text></view>
- </view>
- <view class="square-content">
- <view class="content-input">
- <input type="text" v-model="locno" placeholder="鎵爜 / 杈撳叆" :focus="locnoFocus">
- <uni-icons type="closeempty" size="20" color="#dadada" @click="remove('locno')"></uni-icons>
- </view>
- </view>
- </view>
-
- <!-- 鍟嗗搧鐮佽緭鍏ユ -->
- <view class="square-2">
- <view class="square-title">
- <view class="title-sign"><view class="sign"></view></view>
- <view class="title-text"><text>鍟嗗搧鐮�</text></view>
- </view>
- <view class="square-content">
- <view class="content-input">
- <input type="text" v-model="matnr" placeholder="鎵爜 / 杈撳叆" @input="findMat" :focus="matnrFocus">
- <uni-icons type="closeempty" size="20" color="#dadada" @click="remove('matnr')"></uni-icons>
- </view>
- </view>
- </view>
-
- <!-- 鍟嗗搧鍒楄〃琛ㄥご -->
- <view class="square-1">
- <view class="square-title">
- <view class="title-sign"><view class="sign"></view></view>
- <view class="title-text"><text>鍟嗗搧鍒楄〃</text></view>
- </view>
- </view>
-
- <view class="square-none" v-show="matList.length == 0">
- <view class="v-show">鏆傛棤鏇村鏁版嵁...</view>
- </view>
-
- <checkbox-group>
- <view v-for="(item,index) in matList" :key="index" class="data-list bg-false" :class="'bg-'+item.checked" >
- <view class="data-list-left">
- <view class="matnr"><text style="width: 400rpx;">缂栫爜锛歿{item.matnr}}</text></view>
- <view><text style="width: 400rpx;">鍝佸悕锛歿{item.maktx}}</text></view>
- <view><text style="width: 400rpx;">鎵瑰彿锛歿{item.batch}}</text></view>
- <view>
- <text style="width: 400rpx;">鎬绘暟閲忥細{{item.anfme}}</text><text style="width: 400rpx;">涓嬫灦鏁伴噺锛歿{item.qty}}</text>
- </view>
- <view>
-
- </view>
- </view>
- <view class="data-list-right">
- <label><uni-icons type="compose" size="20" color="#a5a5a5" @click="revise(item,index)"></uni-icons></label>
- <label><uni-icons type="trash" size="25" color="#a5a5a5" @click="removeItem(item,index)"></uni-icons></label>
- </view>
- </view>
- </checkbox-group>
-
- <!-- 搴曢儴鎸夐挳 -->
- <view class="footer flex justify-around">
- <!-- <label class="label-btn" style="width: 170rpx;">
- <checkbox :checked="check" @click="allChecked()">{{checkText}}</checkbox>
- </label>
- <label class="label-btn" style="width: 100rpx;">
- <text @click="reChecked()">鍙嶉��</text>
- </label> -->
-
- <label class="label-btn" style="width: 150rpx;">
- <button class="cu-btn" @click="resst()">閲嶇疆</button>
- </label>
- <label class="label-btn">
- <button class="cu-btn bg-blue " @click="comb()">涓嬫灦</button>
- </label>
- </view>
-
- <!-- 寮圭獥 -->
- <!-- 淇敼鏁伴噺 -->
- <uni-popup ref="revise" background-color="#fff">
- <view class="revise-box">
- <view class="revise-box-top">
- <view class="color-block-blue"></view>
- <text class="title">淇敼鏁伴噺</text>
- </view>
- <view class="changeBox">
- <view class="num-box">
- <uni-number-box :value="qty" :max="9999" color="#747474" @change="changeValue"/>
- </view>
- </view>
- <view class="revise-box-buttom">
- <view>
- <button class="cu-btn bg-blue" @click="confirm()">纭</button>
- </view>
- </view>
- </view>
- </uni-popup>
- </view>
-
-</template>
-
-<script>
- export default {
- data() {
- return {
- matnr: '',
- locno: 'NA003',
- matList: [],
- locnoFocus:true,
- matnrFocus:false,
- res:'',
- qty:0
- }
- },
- mounted(){
- const UIP = uni.getStorageSync('UIP');
- this.baseIP = UIP;
- const UPORT = uni.getStorageSync('UPORT');
- this.basePORT = UPORT
- const PROJ = uni.getStorageSync('UPROJ');
- this.baseUrl = PROJ
- this.getUrl()
- },
- methods: {
- // 鑾峰彇url
- getUrl() {
- this.commonUrl = this.baseHttp + this.baseIP + ':' +this.basePORT + "/" +this.baseUrl
- },
- // 鎼滅储
- findMat() {
- this.res = ''
- let that = this,
- url = '/mobile/mat/find/auth',
- data = {locNo: that.locno, matnr: that.matnr},
- method = "GET";
- that.res=''
- that.request(url,data,method);
- setTimeout(function() {
- that.res = that.res.data
- that.checkMat(that.res)
- }, 100);
-
-
- },
- // 涓嬫灦鎸夐挳
- comb() {
- this.res = ''
- var offSaleParam = {}
- offSaleParam['locNo'] = this.locno
- offSaleParam['matnr'] = this.matnr
- offSaleParam['anfme'] = this.matList[0].qty
- let that = this,
- url = '/mobile/mat/offSale/auth',
- data = JSON.stringify(offSaleParam),
- method = "POST"
- that.request(url,data,method)
- setTimeout(function() {
- if(that.res.code === 200) {
- that.resst()
- uni.showToast({title: that.res.msg, icon: "none",position: 'top'})
- }
- }, 100);
-
- },
- revise(item,index) {
- // this.qty = this.matList[index].anfme
- this.rowNum = index
- this.eject()
- },
- eject(type) {
- this.type = type
- // open 鏂规硶浼犲叆鍙傛暟 绛夊悓鍦� uni-popup 缁勪欢涓婄粦瀹� type灞炴��
- this.$refs.revise.open(type)
- },
- confirm() {
- this.matList[this.rowNum].qty = this.qty
- this.$refs.revise.close()
- this.$forceUpdate() // 寮哄埗鍒锋柊
- },
- changeValue(value) {
- this.qty = value
- },
- // 娓呯┖input
- remove(e) {
- this[e] = ''
- },
- // 閲嶇疆鎸夐挳
- resst() {
- this.matList = []
- this.locno = ''
- this.matnr = ''
- },
- // 娣诲姞鍟嗗搧
- addMat(mat) {
- mat['qty'] = 0
- this.matList.unshift(mat)
- },
- checkMat(mat) {
- var len = this.matList.length
- var add = true
- for (var i = 0; i < len; i++) {
- if (mat.matnr == this.matList[i].matnr) {
- this.matList[i].anfme += mat.anfme
- this.$forceUpdate() // 寮哄埗鍒锋柊
- add = false
- }
- }
- if (add) {
- mat['qty'] = 0
- this.matList.unshift(mat)
- }
- },
- // 閫氱敤鏂规硶
- request(url,data,method){
- let that = this
- uni.request({
- url: this.commonUrl + url,
- data: data,
- header:{'token':uni.getStorageSync('token')},
- method: method,
- success(result) {
- var res = result.data
- console.log(res);
- if ( res.code === 200 ) {
- that.res = res
- } else if(res.code === 403) {
- uni.showToast({title: res.msg, icon: "none", position: 'top'})
- setTimeout(() => {
- uni.reLaunch({
- url: '../login/login'
- });
- }, 1000);
- } else {
- console.log(res.msg);
- uni.showToast({title: res.msg, icon: "none",position: 'top'})
- }
-
- }
- })
- },
- }
- }
-</script>
-
-<style>
- @import url(@/static/css/putOnSale.css);
- .footer {
- width: 100%;
- height: 100rpx;
- line-height: 100rpx;
- background-color: #FFF;
- position: fixed;
- bottom: 0;
- border-top: 1px solid #d8d8d8;
- border-radius: 20rpx 20rpx 0 0 ;
- z-index: 1;
- }
-</style>
\ No newline at end of file
diff --git a/pages/basics/offline.vue b/pages/basics/offline.vue
deleted file mode 100644
index 68df42e..0000000
--- a/pages/basics/offline.vue
+++ /dev/null
@@ -1,499 +0,0 @@
-<template>
- <view >
- <scroll-view scroll-y catch:touchmove="touchmove">
- <view class="square-2">
- <view class="square-title">
- <view class="title-sign"><view class="sign"></view></view>
- <view class="title-text"><text>鎵樼洏鏉$爜</text></view>
- </view>
- <view class="square-content">
- <view class="content-input">
- <input v-model="barcode" type="text" placeholder="鎵爜 / 杈撳叆"
- maxlength="8" :focus="barcodeFocus" @focus="focuss">
- <uni-icons type="closeempty" size="20" color="#dadada" @click="removeBarcode()"></uni-icons>
- </view>
- </view>
- </view>
- <view class="square-2">
- <view class="square-title">
- <view class="title-sign"><view class="sign"></view></view>
- <view class="title-text"><text>鐗╂枡鏉$爜</text></view>
- </view>
- <view class="square-content">
- <view class="content-input">
- <input v-model="matNo" type="text" placeholder="鎵爜 / 杈撳叆"
- @input="findMat()" :focus="focus" @focus="focuss" >
- <uni-icons type="closeempty" size="20" color="#dadada" @click="removeMat()"></uni-icons>
- </view>
- </view>
- </view>
- <view class="square-1">
- <view class="square-title">
- <view class="title-sign"><view class="sign"></view></view>
- <view class="title-text"><text>鍟嗗搧鍒楄〃</text></view>
- </view>
- </view>
- <view class="square-none" v-show="matList.length === 0">
- <view class="v-show">鏆傛棤鏇村鏁版嵁...</view>
- </view>
- <checkbox-group>
- <view v-for="(item,index) in matList" :key="index" class="data-list bg-false" >
- <view class="data-list-left">
- <view class="matnr">{{item.barcode}}</view>
- </view>
- <view class="data-list-right">
- <!-- <label><uni-icons type="compose" size="20" color="#a5a5a5" @click="revise(item,index)"></uni-icons></label> -->
- <label><uni-icons type="trash" size="25" color="#a5a5a5" @click="remove(item,index)"></uni-icons></label>
- </view>
- </view>
- </checkbox-group>
- </scroll-view>
- <view class="footer flex justify-around">
- <view>
- <button class="cu-btn lg" @click="resst()">閲嶇疆</button>
- </view>
- <view>
- <button class="cu-btn lg pakin-btn bg-blue" @click="comb()">缁勬墭</button>
- </view>
- </view>
- <view>
- <!-- 鎻愮ず淇℃伅寮圭獥 -->
- <uni-popup ref="message" type="message">
- <uni-popup-message :type="msgType" :message="messageText" :duration="2000"></uni-popup-message>
- </uni-popup>
- </view>
- <view>
- <!-- 淇敼鏁伴噺 -->
- <uni-popup ref="revise" background-color="#fff" @change="change">
- <view class="revise-box">
- <view class="revise-box-top">
- <view class="color-block-blue"></view>
- <text class="title">缁勬墭鏁伴噺</text>
- </view>
- <view class="text-box">
- <text>鍙粍鏁伴噺锛歿{enableQty}}</text>
- </view>
- <view class="changeBox">
- <view class="num-box">
- <uni-number-box v-model="count" :min="minCount" :max="maxCount" color="#747474" @change="changeValue"/>
- </view>
- </view>
- <view class="revise-box-buttom">
- <view>
- <button class="cu-btn bg-blue" @click="confirm()">纭</button>
- </view>
- </view>
-
- </view>
- </uni-popup>
- </view>
- </view>
-</template>
-
-<script>
- import permision from "@/common/permission.js"
- export default {
- data() {
- return {
- commonUrl:null,
- barcode: '',
- barcodeFocus:true,
- focus:false,
- matList:[],
- matNo:'',
- mat:null,
- type: 'center',
- searchBox: 'hide',
- pick:'hide',
- result: '',
- count:'',
- minCount:0,
- maxCount:'',
- rowNum:'',
- enableQty:'',
- msgType: 'success',
- messageText: '杩欐槸涓�鏉℃垚鍔熸彁绀�',
-
-
- }
- },
- mounted(){
- const UIP = uni.getStorageSync('UIP');
- this.baseIP = UIP;
- const UPORT = uni.getStorageSync('UPORT');
- this.basePORT = UPORT
- const PROJ = uni.getStorageSync('UPROJ');
- this.baseUrl = PROJ
- this.getUrl()
- },
- methods: {
- // 鑾峰彇url
- getUrl() {
- this.commonUrl = this.baseHttp + this.baseIP + ':' +this.basePORT + "/" +this.baseUrl
- },
- focuss() {
- // uni.hideKeyboard()
- },
- messageToggle(type) {
- this.msgType = type
- this.messageText = `杩欐槸涓�鏉�${type}娑堟伅鎻愮ず`
- this.$refs.message.open()
- },
- resst() {
- this.matList = []
- this.barcode = ''
- this.matNo = ''
- uni.vibrateShort();
- },
- removeBarcode() {
- this.barcode = ''
- uni.vibrateShort();
- this.barcodeFocus = false;
- this.$nextTick(function() {
- this.barcodeFocus = true;
- });
- },
- removeMat() {
- this.matNo = ''
- uni.vibrateShort();
- this.focus = false;
- this.$nextTick(function() {
- this.focus = true;
- });
- },
- eject(type) {
- this.type = type
- // open 鏂规硶浼犲叆鍙傛暟 绛夊悓鍦� uni-popup 缁勪欢涓婄粦瀹� type灞炴��
- this.$refs.revise.open(type)
- },
- initAnfme() {
- for (var i = 0; i < this.matList.length; i++) {
- this.matList[i].anfme = 1
- this.matList[i].matnr = this.matList[i].barcode
- }
- },
- changeValue() {
-
- },
- remove(item,index) {
- this.matList.splice(index,1)
- uni.vibrateShort();
- },
- confirm() {
- this.matList[this.rowNum].anfme = this.count
- this.$refs.revise.close()
- },
- comb() {
- uni.vibrateShort();
- let that = this;
- if (that.barcode === '') {
- this.messageToggle('warn')
- this.messageText = '璇锋壂鎻忔墭鐩樼爜'
- return;
- }
- if (that.barcode.length !== 8) {
- this.messageToggle('warn')
- this.messageText = '鎵樼洏鐮佸繀椤讳负8浣�'
- return;
- }
- if (that.matList.length === 0) {
- this.messageToggle('warn')
- this.messageText = '璇锋坊鍔犲晢鍝佸垪琛�'
- return;
- }
- for (var i = 0; i < that.matList.length; i++) {
- if (that.matList[i].anfme === 0) {
- this.messageToggle('error')
- this.messageText = '鍟嗗搧缁勬墭鏁伴噺涓�0涓嶈兘缁勬墭'
- return;
- }
- }
- uni.showLoading();
- uni.request({
- url: that.commonUrl + '/mobile/pack/comb/auth',
- data: JSON.stringify({
- barcode: that.barcode,
- combMats: that.matList
- }),
- method: 'POST',
- header: {
- 'token':uni.getStorageSync('token')
- },
- success(result) {
- uni.hideLoading();
- var res = result.data
- if (res.code === 200) {
- that.messageToggle('success')
- that.messageText = res.msg
- // uni.showToast({
- // title: res.msg,
- // position: 'bottom',
- // duration: 1000
- // });
- that.barcode = ''
- that.orderNo = ''
- that.order = ''
- that.matList = []
- } else if (res.code == 403) {
- that.messageToggle('warn')
- that.messageText = res.msg
- setTimeout(() => {
- uni.reLaunch({
- url: '../login/login'
- });
- }, 1000);
- } else {
- that.messageToggle('error')
- that.messageText = res.msg
- }
- }
- });
- },
- findMat() {
- let that = this
- uni.request({
- url: that.commonUrl + '/mobile/pack/get/auth',
- data: {
- barcode: that.matNo
- },
- header: {
- 'token':uni.getStorageSync('token')
- },
- success(result) {
- let res = result.data
- if (res.code === 200) {
- if(res.data) {
- that.mat = res.data
- that.addMatList(that.mat)
- that.initAnfme()
- that.matNo = '',
- that.focus = false;
- that.$nextTick(function() {
- that.focus = true;
- });
- } else {
- that.messageToggle('warn')
- that.messageText = '璇烽噸鏂版壂鐮� \ 杈撳叆'
- }
- } else if (res.code == 403) {
- that.messageToggle('warn')
- that.messageText = res.msg
- setTimeout(() => {
- uni.reLaunch({
- url: '../login/login'
- });
- }, 1000);
- } else {
- that.messageToggle('warn')
- that.messageText = res.msg
- // uni.showToast({title: res.msg, icon: "none",position: 'top'})
- }
- }
- });
- },
- addMatList(mat) {
- let barcode = this.mat.barcode
- let toUnshift = true
- for (var i = 0; i < this.matList.length; i++) {
- if (barcode === this.matList[i].barcode) {
- this.messageToggle('warn')
- this.messageText = barcode + '宸茬粡鎵弿锛岃鍕块噸澶嶆壂鎻�'
- toUnshift = false
- }
- }
- if (toUnshift) {
- this.matList.unshift(mat)
- }
- },
- change(e) {
- // console.log('褰撳墠妯″紡锛�' + e.type + ',鐘舵�侊細' + e.show);
- },
- toggle(type) {
- this.type = type
- // open 鏂规硶浼犲叆鍙傛暟 绛夊悓鍦� uni-popup 缁勪欢涓婄粦瀹� type灞炴��
- this.$refs.goodsSearch.open(type)
- },
- }
- }
-</script>
-
-<style>
- /* @import "../../colorui/main.css";
- @import "../../colorui/icon.css"; */
-
- .pak-seach-box {
- background-color: #FFFFFF;
- margin: 15rpx 15rpx 0rpx 15rpx;
- width: 96%;
- height: 150rpx;
- border-radius: 20rpx;
- }
- .box-top{
- display: block;
- height: 60rpx;
- width: 720rpx;
- }
- .color-block-blue {
- background-color: #1E9FFF;
- display: inline-block;
- float: left;
- margin: 15rpx 15rpx 0 15rpx;
- width: 12rpx;
- height: 40rpx;
- border: 5rpx solid #1E9FFF;
- border-radius: 20rpx;
- }
- .title {
- display: inline-block;
- float: left;
- font-size: 34rpx;
- font-weight: 700;
- height: 50rpx;
- line-height: 50rpx;
- margin-top: 10rpx;
- }
- .box-buttom {
- display: inline-block;
- background-color: #ededed;
- width: 96%;
- height: 60rpx;
- border-radius: 20rpx;
- margin: 15rpx 15rpx 0rpx 15rpx;
- }
- .box-buttom input {
- width: 75%;
- float: left;
- margin: 8rpx 10rpx 0rpx 25rpx;
- }
- .box-buttom .search-icon{
- width: 60rpx;
- height: 60rpx;
- float: right;
- margin-top: 5rpx;
- margin-right: 10rpx;
- }
- .pak-seach-box button {
- background-color: #1E9FFF;
- color: #ffffff;
- display: inline-block;
- float: right;
- width: 150rpx;
- height: 60rpx;
- margin: 15rpx 15rpx 0rpx 15rpx;
- line-height: 60rpx;
- }
- .pakin-btn {
- background-color: #1E9FFF;
- }
- .pak-data-box {
- background-color: #F1F1F1;
- margin: 15rpx 15rpx 0rpx 15rpx;
- width: 96%;
- height: 70rpx;
- border-radius: 20rpx;
- }
- .pak-data-box .box-top {
- background-color: #FFFFFF;
- height: 70rpx;
- border-radius: 20rpx 20rpx 20rpx 20rpx;
- }
- .bg-false {
- background-color: #FFFFFF;
- }
- .bg-true {
- background-color: #ebebeb;
- }
- .data-list {
- border-bottom: 1px solid #d8d8d8;
- height: 130rpx;
- margin: 15rpx;
- border-radius: 20rpx;
- }
- .data-list:first-child {
- margin-top: 20rpx;
- }
- .data-list:last-child {
- margin-bottom: 160rpx;
- }
- /* .data-list-left {
- display: inline-block;
- float: left;
- text-align: center;
- width: 100rpx;
- height: 180rpx;
- line-height: 180rpx;
- } */
- .data-list-left {
- width: 550rpx;
- /* background-color: #007AFF; */
- display: inline-block;
- float: left;
- margin-left: 4%;
- height: 130rpx;
- color: #676767;
- }
- .matnr {
- display: inline-block;
- width: 100%;
- font-size: 16px;
- font-weight: 700;
- height: 130rpx;
- line-height: 130rpx;
- }
- .data-list-right {
- /* background-color: #6739B6; */
- display: inline-block;
- float: right;
- width: 100rpx;
- height: 130rpx;
- line-height: 130rpx;
- }
- .data-list-right label {
- display: inline-block;
- float: left;
- width: 100rpx;
- height: 130rpx;
- }
- .revise-box {
- width: 500rpx;
- height: 500rpx;
- }
- .revise-box-top {
- width: 100%;
- height: 100rpx;
- background-color: #fff;
- padding: 10rpx;
- }
- .changeBox {
- width: 100%;
- height: 100rpx;
- line-height: 120rpx;
- text-align: center;
- background-color: #FFF;
- margin-top: 20rpx;
- border-bottom: 1px solid #e3e3e3;
- }
- .text-box {
- width: 100%;
- height: 100rpx;
- line-height: 120rpx;
- text-align: center;
- /* padding-left: 120rpx; */
- background-color: #FFF;
- margin-top: 20rpx;
- border-bottom: 1px solid #e3e3e3;
- }
- .changeBox .num-box {
- display: inline-block;
- }
- .revise-box-buttom {
- position: absolute;
- width: 100%;
- height: 100rpx;
- line-height: 100rpx;
- background-color: #FFFFFF;
- bottom: 0;
- text-align: center;
- }
-
-</style>
diff --git a/pages/basics/order.vue b/pages/basics/order.vue
deleted file mode 100644
index 952c5fb..0000000
--- a/pages/basics/order.vue
+++ /dev/null
@@ -1,643 +0,0 @@
-<template>
- <view >
- <scroll-view scroll-y catch:touchmove="touchmove">
- <view class="square-2">
- <view class="square-title">
- <view class="title-sign"><view class="sign"></view></view>
- <view class="title-text"><text>鎵樼洏鏉$爜</text></view>
- </view>
- <view class="square-content">
- <view class="content-input">
- <input v-model="barcode" type="text" placeholder="鎵爜 / 杈撳叆" maxlength="10"
- :focus="barcodeFocus" @input="barcodeInput" placeholder-style="line-height: 85rpx;">
- <uni-icons type="closeempty" size="20" color="#dadada" @click="removeBarcode()"></uni-icons>
- </view>
- </view>
- </view>
-
- <view class="square-2">
- <view class="square-title">
- <view class="title-sign"><view class="sign"></view></view>
- <view class="title-text"><text>鍗曟嵁缂栧彿</text></view>
- </view>
- <view class="square-content">
- <view class="content-input">
- <input v-model="order" type="text" placeholder="鎵爜 / 杈撳叆" @input="findOrder()"
- :focus="focus" placeholder-style="line-height: 85rpx;">
- <uni-icons type="closeempty" size="20" color="#dadada" @click="removeOrder()"></uni-icons>
- </view>
- </view>
- </view>
-
- <view class="square-1">
- <view class="square-title">
- <view class="title-sign"><view class="sign"></view></view>
- <view class="title-text"><text>鍟嗗搧鍒楄〃</text></view>
- <view v-show="matList.length != 0" class="lable">
- <label class="label-btn" style="width: 170rpx;line-height: 95rpx;" >
- <checkbox :checked="check" @click="allChecked()">{{checkText}}</checkbox>
- </label>
- <label class="label-btn" >
- <text @click="reChecked()">鍙嶉��</text>
- </label>
- <label >
- <uni-icons type="trash" size="25" color="#a5a5a5" @click="remove()"></uni-icons>
- </label>
- </view>
- </view>
-
- </view>
- <view class="square-none" v-show="matList.length === 0">
- <view class="v-show">鏆傛棤鏇村鏁版嵁...</view>
- </view>
-
- <checkbox-group @change="checkbox">
- <view v-for="(item,index) in matList" :key="index" class="data-list bg-false" :class="'bg-'+item.checked" >
- <label class="left-check-box">
- <checkbox :value="item.id+''" :checked="item.checked" style="display: block;" />
- </label>
- <view class="data-list-left">
- <view class="matnr"><text style="width: 700rpx;">缂栫爜锛歿{item.matnr}}</text></view>
- <view><text style="width: 700rpx;">鍝佸悕锛歿{item.maktx}}</text></view>
- <view><text style="width: 700rpx;">鎵瑰彿锛歿{item.batch}}</text></view>
- <view>
- <text style="width: 700rpx;">鏁伴噺锛歿{item.anfme}}</text>
- </view>
- </view>
- <view class="data-list-right">
- <label><uni-icons type="compose" size="20" color="#a5a5a5" @click="revise(item,index)"></uni-icons></label>
- <!-- list涓垹闄ら敭 -->
- <!-- <label><uni-icons type="trash" size="25" color="#a5a5a5" @click="remove(item,index)"></uni-icons></label> -->
- </view>
- </view>
- </checkbox-group>
- </scroll-view>
-
- <!-- 搴曢儴鎸夐挳 -->
- <view class="footer flex justify-around">
- <!-- 搴曢儴鍏ㄩ�� 鍙嶉�夋寜閽� -->
- <!-- <label class="label-btn" style="width: 170rpx;">
- <checkbox :checked="check" @click="allChecked()">{{checkText}}</checkbox>
- </label>
- <label class="label-btn" style="width: 100rpx;">
- <text @click="reChecked()">鍙嶉��</text>
- </label> -->
-
- <label class="label-btn" style="width: 150rpx;">
- <button class="cu-btn" @click="resst()">閲嶇疆</button>
- </label>
- <label class="label-btn">
- <button class="cu-btn bg-blue " @click="comb()">缁勬墭</button>
- </label>
- </view>
-
- <view>
- <!-- 淇敼鏁伴噺 -->
- <uni-popup ref="revise" background-color="#fff" @change="change">
- <view class="revise-box">
- <view class="revise-box-top">
- <view class="color-block-blue"></view>
- <text class="title">缁勬墭鏁伴噺</text>
- </view>
- <view class="text-box">
- <text>鍙粍鏁伴噺锛歿{enableQty}}</text>
- </view>
- <view class="changeBox flex justify-around">
- <view class="num-box">
- <uni-number-box v-model="count" :min="minCount" :max="maxCount" color="#747474" @change="changeValue"/>
- </view>
- <button class="cu-btn" @click="changeMax">max</button>
- </view>
- <view class="revise-box-buttom">
- <view>
- <button class="cu-btn bg-blue" @click="confirm()">纭</button>
- </view>
- </view>
-
- </view>
- </uni-popup>
- </view>
- </view>
-</template>
-
-<script>
- import permision from "@/common/permission.js"
- export default {
- data() {
- return {
- commonUrl:null,
- barcode: '',
- barcodeFocus:true,
- focus:false,
- type: 'center',
- searchBox: 'hide',
- pick:'hide',
- order:null,
- orderNo:null,
- matList:[],
- result: '',
- count:'',
- minCount:0,
- maxCount:'',
- rowNum:'',
- enableQty:'',
- check:false,
- checkText:'鍏ㄩ��',
- checkedData:[],
- }
- },
- mounted(){
- const UIP = uni.getStorageSync('UIP');
- this.baseIP = UIP;
- const UPORT = uni.getStorageSync('UPORT');
- this.basePORT = UPORT
- const PROJ = uni.getStorageSync('UPROJ');
- this.baseUrl = PROJ
- this.getUrl()
- },
- methods: {
- // 鑾峰彇url
- getUrl() {
- this.commonUrl = this.baseHttp + this.baseIP + ':' +this.basePORT + "/" +this.baseUrl
- },
- // barcode input 浜嬩欢
- barcodeInput() {
- var len = this.barcode.length
- if (len != 8) {
- uni.showToast({title: '鎵樼洏鐮佹湁璇閲嶈瘯', icon: "none", position: 'top'});
- this.barcodeFocuss()
- return;
- }
- if (len == 8) {
- this.focuss()
- }
- },
- // 鎵樼洏鐮佹湁璇噸缃�
- barcodeFocuss() {
- // #ifdef APP
- let that = this;
- that.barcodeFocus = false;
- setTimeout(()=>{
- that.barcode = '';
- that.barcodeFocus = true;
- }, 100);
- // #endif
- },
- focuss() {
- // #ifdef APP
- let that = this;
- that.focus = false;
- setTimeout(()=>{
- that.matnrId = '';
- that.focus = true;
- }, 100);
- // #endif
- },
- resst() {
- this.matList = []
- this.barcode = ''
- this.order = ''
- this.barcodeFocuss()
- uni.vibrateShort();
- },
- removeBarcode() {
- this.barcode = ''
- uni.vibrateShort();
- this.barcodeFocus = false;
- this.$nextTick(function() {
- this.barcodeFocus = true;
- });
- },
- removeOrder() {
- this.order = ''
- uni.vibrateShort();
- this.focus = false;
- this.$nextTick(function() {
- this.focus = true;
- });
- },
- eject(type) {
- this.type = type
- // open 鏂规硶浼犲叆鍙傛暟 绛夊悓鍦� uni-popup 缁勪欢涓婄粦瀹� type灞炴��
- this.$refs.revise.open(type)
- },
- initAnfme() {
-
- for (var i = 0; i < this.matList.length; i++) {
- this.matList[i].anfme = 0
- }
- uni.hideLoading();
- },
- revise(item,index) {
- var maxCount = this.matList[index].maxCount
- if (maxCount == undefined ) {
- this.matList[index]["maxCount"] = item.enableQty
- }
- this.enableQty = item.enableQty
- this.count = this.minCount
- this.maxCount = item.maxCount
- this.rowNum = index
- this.eject()
- },
- changeMax() {
- this.count = this.enableQty
- },
- changeValue() {
-
- },
- remove() {
- console.log(this.matList.filter(item=> item.checked !== true))
- this.matList = this.matList.filter(item=> item.checked !== true)
-
- // this.matList.splice(i,1)
-
- // for (var i = 0; i < this.matList.length; i++) {
- // if (this.matList[i].checked == true) {
-
- // }
- // }
- this.checkList();
- uni.vibrateShort();
- },
- // 鍒楄〃涓垹闄�
- // remove(item,index) {
- // this.matList.splice(index,1)
- // uni.vibrateShort();
- // },
- confirm() {
- this.matList[this.rowNum].anfme = this.count
- this.$refs.revise.close()
- },
- comb() {
- uni.vibrateShort();
- let that = this;
- if (that.barcode === '') {
- uni.showToast({title: '璇锋壂鎻忔墭鐩樻潯鐮�', icon: "none", position: 'top'});
- return;
- }
- if (that.barcode.length !== 8) {
- uni.showToast({title: '鎵樼洏鐮佸繀椤讳负8浣�', icon: "none", position: 'top'});
- return;
- }
- if (that.matList.length === 0) {
- uni.showToast({title: '璇锋坊鍔犲晢鍝佸垪琛�', icon: "none", position: 'top'});
- return;
- }
- for (var i = 0; i < that.matList.length; i++) {
- if (that.matList[i].anfme === 0) {
- uni.showToast({title: '鍟嗗搧缁勬墭鏁伴噺涓�0涓嶈兘缁勬墭', icon: "none", position: 'top'});
- return;
- }
- }
- uni.showLoading();
- uni.request({
- url: that.commonUrl + '/mobile/comb/auth',
- data: JSON.stringify({
- orderNo: that.orderNo,
- barcode: that.barcode,
- combMats: that.matList
- }),
- method: 'POST',
- header: {
- 'token':uni.getStorageSync('token')
- },
- success(result) {
- uni.showLoading();
- var res = result.data
- if (res.code === 200) {
- uni.showToast({
- title: res.msg,
- position: 'top',
- duration: 1000
- });
- that.resst()
- } else if (res.code == 403) {
- uni.showToast({title: res.msg, icon: "none", position: 'top'})
- setTimeout(() => {
- uni.reLaunch({
- url: '../login/login'
- });
- }, 1000);
- } else {
- uni.showToast({title: res.msg, icon: "none",position: 'top'})
- }
- }
- });
- },
- findOrder() {
- let that = this
- uni.request({
- url: that.commonUrl + '/mobile/order/search/orderNo/auth',
- data: {
- orderNo: that.order
- },
- header: {
- 'token':uni.getStorageSync('token')
- },
- success(result) {
- console.log(result)
- let res = result.data
- if (res.code === 200) {
- if(res.data) {
- uni.showLoading();
- that.matList = res.data;
- that.orderNo = that.order
- that.initAnfme()
- console.log(that.matList)
- }
- } else if (res.code == 403) {
- uni.showToast({title: res.msg, icon: "none", position: 'top'})
- setTimeout(() => {
- uni.reLaunch({
- url: '../login/login'
- });
- }, 1000);
- } else {
- uni.showToast({title: res.msg, icon: "none",position: 'top'})
- }
- }
- });
- },
- change(e) {
- // console.log('褰撳墠妯″紡锛�' + e.type + ',鐘舵�侊細' + e.show);
- },
- toggle(type) {
- this.type = type
- // open 鏂规硶浼犲叆鍙傛暟 绛夊悓鍦� uni-popup 缁勪欢涓婄粦瀹� type灞炴��
- this.$refs.goodsSearch.open(type)
- },
- // 鍒楄〃閫夋嫨
- checkbox: function (e) {
- var items = this.matList,
- values = e.detail.value;
- for (var i = 0, lenI = items.length; i < lenI; ++i) {
- const item = items[i]
- item.id = item.id + ''
- if(values.indexOf(item.id) >= 0){
- this.$set(item,'checked',true)
- }else{
- this.$set(item,'checked',false)
- }
- }
- if (values.length == items.length) {
- this.check = true
- this.checkText = "鍙栨秷鍏ㄩ��"
- } else {
- this.check = false
- this.checkText = "鍏ㄩ��"
- }
- uni.vibrateShort();
- },
- // 鍒楄〃鍙嶉��
- reChecked() {
- if (this.matList.length == 0) {
- return;
- }
- var checkArr = []
- for (var i = 0; i < this.matList.length;i++) {
- if (this.matList[i].checked == true) {
- this.$set(this.matList[i],'checked',false)
- }else{
- this.$set(this.matList[i],'checked',true)
- }
- if (this.matList[i].checked == true) {
- checkArr.push(this.matList[i].checked)
- }
- }
- if (checkArr.length == this.matList.length) {
- this.check = true
- this.checkText = "鍙栨秷鍏ㄩ��"
- } else {
- this.check = false
- this.checkText = "鍏ㄩ��"
- }
- uni.vibrateShort();
- },
- // 鍒楄〃鍏ㄩ��
- allChecked(e){
- if (this.check == true) {
- for (var i = 0; i < this.matList.length;i++) {
- this.$set(this.matList[i],'checked',false)
- }
- this.check = false
- this.checkText = "鍏ㄩ��"
- } else {
- for (var i = 0; i < this.matList.length;i++) {
- this.$set(this.matList[i],'checked',true)
- }
- this.check = true
- this.checkText = "鍙栨秷鍏ㄩ��"
- }
- uni.vibrateShort();
- },
- // 妫�楠屽垪琛ㄩ暱搴� 绛変簬0 鏄剧ず鍏ㄩ��
- checkList() {
- if (this.matList.length == 0) {
- this.check = false
- this.checkText = "鍏ㄩ��"
- return;
- }
- }
- }
- }
-</script>
-
-<style>
- /* @import "../../colorui/main.css";
- @import "../../colorui/icon.css"; */
- .square-1 .lable {
- display: inline-block;
- float: right;
- height: 100%;
- width: 400rpx;
- }
- .square-1 .lable label {
- display: inline-block;
- float: left;
- height: 100%;
- width: 90rpx;
- line-height: 100rpx;
- }
- .pak-seach-box {
- background-color: #FFFFFF;
- margin: 15rpx 15rpx 0rpx 15rpx;
- width: 96%;
- height: 150rpx;
- border-radius: 20rpx;
- }
- .box-top{
- display: block;
- height: 60rpx;
- width: 720rpx;
- }
- .color-block-blue {
- background-color: #1E9FFF;
- display: inline-block;
- float: left;
- margin: 15rpx 15rpx 0 15rpx;
- width: 12rpx;
- height: 40rpx;
- border: 5rpx solid #1E9FFF;
- border-radius: 20rpx;
- }
- .title {
- display: inline-block;
- float: left;
- font-size: 34rpx;
- font-weight: 700;
- height: 50rpx;
- line-height: 50rpx;
- margin-top: 10rpx;
- }
- .box-buttom {
- display: inline-block;
- background-color: #ededed;
- width: 96%;
- height: 60rpx;
- border-radius: 20rpx;
- margin: 15rpx 15rpx 0rpx 15rpx;
- }
- .box-buttom input {
- width: 75%;
- float: left;
- margin: 8rpx 10rpx 0rpx 25rpx;
- }
- .box-buttom .search-icon{
- width: 60rpx;
- height: 60rpx;
- float: right;
- margin-top: 5rpx;
- margin-right: 10rpx;
- }
- .pak-seach-box button {
- background-color: #1E9FFF;
- color: #ffffff;
- display: inline-block;
- float: right;
- width: 150rpx;
- height: 60rpx;
- margin: 15rpx 15rpx 0rpx 15rpx;
- line-height: 60rpx;
- }
- .pakin-btn {
- background-color: #1E9FFF;
- }
- .pak-data-box {
- background-color: #F1F1F1;
- margin: 15rpx 15rpx 0rpx 15rpx;
- width: 96%;
- height: 70rpx;
- border-radius: 20rpx;
- }
- .pak-data-box .box-top {
- background-color: #FFFFFF;
- height: 70rpx;
- border-radius: 20rpx 20rpx 20rpx 20rpx;
- }
- .bg-false {
- background-color: #FFFFFF;
- }
- .bg-true {
- background-color: #ebebeb;
- }
- .data-list {
- border-bottom: 1px solid #d8d8d8;
- height: 180rpx;
- margin: 15rpx;
- border-radius: 20rpx;
- }
- .data-list:first-child {
- margin-top: 20rpx;
- }
- .data-list:last-child {
- margin-bottom: 160rpx;
- }
- /* .data-list-left {
- display: inline-block;
- float: left;
- text-align: center;
- width: 100rpx;
- height: 180rpx;
- line-height: 180rpx;
- } */
- .left-check-box {
- display: inline-block;
- /* background-color: #1E9FFF; */
- float: left;
- height: 100%;
- width: 100rpx;
- text-align: center;
- line-height: 170rpx;
- }
- .data-list-left {
- /* background-color: #ffff7f; */
- display: inline-block;
- float: left;
- height: 180rpx;
- width: 500rpx;
- color: #676767;
- }
- .matnr {
- padding-top: 10rpx;
- }
- .data-list-right {
- /* background-color: #55ffff; */
- display: inline-block;
- float: right;
- width: 100rpx;
- height: 180rpx;
- line-height: 180rpx;
- }
- .data-list-right label {
- display: inline-block;
- float: left;
- width: 100rpx;
- height: 180rpx;
- }
- .revise-box {
- width: 500rpx;
- height: 500rpx;
- }
- .revise-box-top {
- width: 100%;
- height: 100rpx;
- background-color: #fff;
- padding: 10rpx;
- }
- .changeBox {
- width: 100%;
- height: 100rpx;
- line-height: 120rpx;
- text-align: center;
- background-color: #FFF;
- margin-top: 20rpx;
- border-bottom: 1px solid #e3e3e3;
- }
- .text-box {
- width: 100%;
- height: 100rpx;
- line-height: 120rpx;
- text-align: center;
- /* padding-left: 120rpx; */
- background-color: #FFF;
- margin-top: 20rpx;
- border-bottom: 1px solid #e3e3e3;
- }
- .changeBox .num-box {
- display: inline-block;
- float: left;
- }
- .changeBox button {
- float: left;
- }
- .revise-box-buttom {
- position: absolute;
- width: 100%;
- height: 100rpx;
- line-height: 100rpx;
- background-color: #FFFFFF;
- bottom: 0;
- text-align: center;
- }
-
-</style>
diff --git a/pages/basics/orderOut.vue b/pages/basics/orderOut.vue
deleted file mode 100644
index adaa0c5..0000000
--- a/pages/basics/orderOut.vue
+++ /dev/null
@@ -1,363 +0,0 @@
-<template>
- <view>
- <view class="square-2">
- <view class="square-title">
- <view class="title-sign"><view class="sign"></view></view>
- <view class="title-text"><text>鍑哄簱鍗曞彿</text></view>
- </view>
- <view class="square-content">
- <view class="content-input">
- <input type="text" v-model="billNo" placeholder="鎵爜 / 杈撳叆" @input="searchBillNo" placeholder-style="line-height: 85rpx;">
- <uni-icons type="closeempty" size="20" color="#dadada" @click="removeBillNo"></uni-icons>
- </view>
- </view>
- </view>
- <view class="square-2">
- <view class="square-title">
- <view class="title-sign"><view class="sign"></view></view>
- <view class="title-text"><text>鍑哄簱鍙�</text></view>
-
- </view>
- <view class="content-combox">
- <uni-combox emptyTips="鏆傛棤鏁版嵁"
- :candidates="sites" v-model="siteId" @click="staNoSelect()" placeholder="璇烽�夋嫨鍑哄簱绔欑偣">
- </uni-combox>
- </view>
- </view>
-
- <view class="square-1">
- <view class="square-title">
- <view class="title-sign"><view class="sign"></view></view>
- <view class="title-text"><text>鍟嗗搧鍒楄〃</text></view>
- </view>
-
- </view>
-
- <view class="square-none" v-show="matList.length === 0">
- <view class="v-show">鏆傛棤鏇村鏁版嵁...</view>
- </view>
-
- <checkbox-group @change="checkbox">
- <view v-for="(item,index) in matList" :key="index" class="data-list bg-false" :class="'bg-'+item.checked" >
- <!-- <label class="left-check-box">
- <checkbox :value="item.id+''" :checked="item.checked" style="display: block;" />
- </label> -->
- <view class="data-list-left">
- <view class="matnr"><text style="width: 700rpx;">缂栫爜锛歿{item.matnr}}</text></view>
- <view><text style="width: 700rpx;">鍝佸悕锛歿{item.maktx}}</text></view>
- <view><text style="width: 700rpx;">鎵瑰彿锛歿{item.batch}}</text></view>
- <view>
- <text style="width: 700rpx;">鏁伴噺锛歿{item.anfme}}</text>
- </view>
- </view>
- <view class="data-list-right">
- <!-- <label><uni-icons type="compose" size="20" color="#a5a5a5" @click="revise(item,index)"></uni-icons></label> -->
- <!-- list涓垹闄ら敭 -->
- <!-- <label><uni-icons type="trash" size="25" color="#a5a5a5" @click="remove(item,index)"></uni-icons></label> -->
- </view>
- </view>
- </checkbox-group>
- <!-- <view style="margin-top: 10px;">
- <uni-table ref="table" border stripe emptyText="鏆傛棤鏇村鏁版嵁">
- <uni-tr>
- <uni-th align="center" width="50">鍑哄簱鏁伴噺</uni-th>
- <uni-th align="center" width="70">浜у搧ID</uni-th>
- <uni-th align="center" width="80">浜у搧浠e彿</uni-th>
- <uni-th align="center" width="70">浜у搧鍚嶇О</uni-th>
- </uni-tr>
- <uni-tr v-for="(item, index) in matList" :key="index">
- <uni-td align="center">{{item.qty}}</uni-td>
- <uni-td align="center">{{item.matNo}}</uni-td>
- <uni-td align="center">{{item.size}}</uni-td>
- <uni-td align="center">{{item.matName}}</uni-td>
- </uni-tr>
- </uni-table>
- </view> -->
-
- <!-- 搴曢儴鎸夐挳 -->
- <view class="footer flex justify-around">
- <!-- 搴曢儴鍏ㄩ�� 鍙嶉�夋寜閽� -->
- <!-- <label class="label-btn" style="width: 170rpx;">
- <checkbox :checked="check" @click="allChecked()">{{checkText}}</checkbox>
- </label>
- <label class="label-btn" style="width: 100rpx;">
- <text @click="reChecked()">鍙嶉��</text>
- </label> -->
-
- <label class="label-btn" style="width: 150rpx;">
- <button class="cu-btn" @click="resst()">閲嶇疆</button>
- </label>
- <label class="label-btn">
- <button class="cu-btn bg-blue " @click="outbound()">鍚姩鍑哄簱</button>
- </label>
- </view>
-
- </view>
-</template>
-
-<script>
- export default {
- data() {
- return {
- commonUrl:null,
- billNo: '',
- matList: [],
- sites: [],
- siteId: ''
- }
- },
- mounted(){
- const UIP = uni.getStorageSync('UIP');
- this.baseIP = UIP;
- const UPORT = uni.getStorageSync('UPORT');
- this.basePORT = UPORT
- const PROJ = uni.getStorageSync('UPROJ');
- this.baseUrl = PROJ
- this.getUrl()
- this.staNoSelect();
- },
- methods: {
- // 鑾峰彇url
- getUrl() {
- this.commonUrl = this.baseHttp + this.baseIP + ':' +this.basePORT + "/" +this.baseUrl
- },
- // 娓呯┖鍗曞彿鎼滅储妗�
- removeBillNo() {
- this.billNo = null
- },
- searchBillNo() {
- let that = this;
- uni.request({
- url: that.commonUrl + "/orderDetl/list/auth",
- header: {
- 'content-type':"application/x-www-form-urlencoded",
- 'token':uni.getStorageSync('token')
- },
- data: {
- curr:1,
- limit:10,
- // typeCode:1,
- order_no: that.billNo
- },
- method:"POST",
- success(result) {
- let res = result.data
- if (res.code === 200 ) {
- if (res.data) {
- that.matList = res.data.records
- that.staNoSelect()
- } else {
- that.matList = []
- }
- } else if (res.code == 403) {
- uni.showToast({title: res.msg, icon: "none", position: 'top'})
- setTimeout(() => {
- uni.reLaunch({
- url: '../login/login'
- });
- }, 1000);
- } else {
- uni.showToast({title: res.msg, icon: "none",position: 'top'})
- }
- },
- })
- },
- staNoSelect() {
- let that = this;
- uni.request({
- url: that.commonUrl + "/available/take/site",
- header: {'token':uni.getStorageSync('token')},
- success(result) {
- console.log(result)
- let res = result.data
- if (res.code === 200 ) {
- that.sites = [];
- for (var i = 0; i < res.data.length; i++) {
- that.sites.push(res.data[i].desc)
- }
- } else if (res.code == 403) {
- uni.showToast({title: res.msg, icon: "none", position: 'top'})
- setTimeout(() => {
- uni.reLaunch({
- url: '../login/login'
- });
- }, 1000);
- } else {
- uni.showToast({title: res.msg, icon: "none",position: 'top'})
- }
- }
- })
- },
- outbound() {
- let that = this
- if (that.matList.length === 0) {
- uni.showToast({title: "璇烽�夋嫨鍑哄簱鍙�", icon: "none",position: 'top'})
- } else {
- if (that.siteId == '') {
- uni.showToast({title: "璇烽�夋嫨鍑哄簱鍙�", icon: "none",position: 'top'})
- return;
- }
- };
- var staNo = that.siteId.substring(0,3)
- var locDetls = [];
- that.matList.forEach(function(elem) {
- locDetls.push({billNo:elem.billNo,seqNo:elem.seqNo, matNo: elem.matNo, count: elem.qty,});
- });
- let param = {
- outSite: staNo,
- locDetls: locDetls
- }
- console.log(param)
- // return
- uni.request({
- url: that.commonUrl + "/mobile/order/out/pakout/auth",
- header: {
- 'token':uni.getStorageSync('token')},
- // data: JSON.stringify(param),
- data: {
- staNo: staNo,
- orderNo: that.billNo
- },
- method:"POST",
- success(result) {
- console.log(result)
- if (result.data.code === 200) {
- uni.showToast({title: result.data.msg, icon: "none",position: 'top'})
- that.resst()
- } else {
- uni.showToast({title: result.data.msg, icon: "none",position: 'top'})
- }
- }
- })
- },
- resst() {
- this.billNo = '';
- this.matList = [];
- this.siteId = '';
- }
- }
- }
-</script>
-
-<style>
- .pda-btn1 {
- margin-left:260rpx;
- margin-right: auto;
- margin-top: 150rpx;
- width: 200rpx;
- height: 80rpx;
- font-size: 30upx;
- font-weight: bold;
- }
- .combox {
- width: 200px;
- padding: 12px;
- }
- .bg-false {
- background-color: #FFFFFF;
- }
- .bg-true {
- background-color: #ebebeb;
- }
- .data-list {
- border-bottom: 1px solid #d8d8d8;
- height: 180rpx;
- width: 94%;
- margin: 15rpx auto 15rpx auto;
- border-radius: 20rpx;
- }
- .data-list:first-child {
- margin-top: 20rpx;
- }
- .data-list:last-child {
- margin-bottom: 160rpx;
- }
- /* .data-list-left {
- display: inline-block;
- float: left;
- text-align: center;
- width: 100rpx;
- height: 180rpx;
- line-height: 180rpx;
- } */
- .left-check-box {
- display: inline-block;
- /* background-color: #1E9FFF; */
- float: left;
- height: 100%;
- width: 100rpx;
- text-align: center;
- line-height: 170rpx;
- }
- .data-list-left {
- /* background-color: #ffff7f; */
- display: inline-block;
- float: left;
- height: 180rpx;
- width: 500rpx;
- color: #676767;
- text-indent: 20rpx;
- }
- .matnr {
- padding-top: 10rpx;
- }
- .data-list-right {
- /* background-color: #55ffff; */
- display: inline-block;
- float: right;
- width: 100rpx;
- height: 180rpx;
- line-height: 180rpx;
- }
- .data-list-right label {
- display: inline-block;
- float: left;
- width: 100rpx;
- height: 180rpx;
- }
- .revise-box {
- width: 500rpx;
- height: 500rpx;
- }
- .revise-box-top {
- width: 100%;
- height: 100rpx;
- background-color: #fff;
- padding: 10rpx;
- }
- .changeBox {
- width: 100%;
- height: 100rpx;
- line-height: 120rpx;
- text-align: center;
- background-color: #FFF;
- margin-top: 20rpx;
- border-bottom: 1px solid #e3e3e3;
- }
- .text-box {
- width: 100%;
- height: 100rpx;
- line-height: 120rpx;
- text-align: center;
- /* padding-left: 120rpx; */
- background-color: #FFF;
- margin-top: 20rpx;
- border-bottom: 1px solid #e3e3e3;
- }
- .changeBox .num-box {
- display: inline-block;
- float: left;
- }
- .changeBox button {
- float: left;
- }
- .revise-box-buttom {
- position: absolute;
- width: 100%;
- height: 100rpx;
- line-height: 100rpx;
- background-color: #FFFFFF;
- bottom: 0;
- text-align: center;
- }
-</style>
\ No newline at end of file
diff --git a/pages/basics/outPakin.vue b/pages/basics/outPakin.vue
deleted file mode 100644
index 24f3cfe..0000000
--- a/pages/basics/outPakin.vue
+++ /dev/null
@@ -1,444 +0,0 @@
-<template>
- <view >
- <scroll-view scroll-y catch:touchmove="touchmove">
- <view class="square-2">
- <view class="square-title">
- <view class="title-sign"><view class="sign"></view></view>
- <view class="title-text"><text>鎵樼洏鏉$爜</text></view>
- </view>
- <view class="square-content">
- <view class="content-input">
- <input readonly="value" v-model="barcode" type="text" placeholder="鎵爜 / 杈撳叆" maxlength="8"
- :focus="barcodeFocus" @input="nextInput">
- <uni-icons type="closeempty" size="20" color="#dadada" @click="removeBarcode()"></uni-icons>
- </view>
- </view>
- </view>
- <view class="square-2">
- <view class="square-title">
- <view class="title-sign"><view class="sign"></view></view>
- <view class="title-text"><text>妫�绱㈠晢鍝�</text></view>
- </view>
- <view class="square-content">
- <view class="content-input">
- <input v-model="matnrId" type="text" placeholder="鎵爜 / 杈撳叆" @input="findMat()"
- :focus="focus"@focus="empty()">
- <!-- :focus="focus" @blur="clear "> -->
- <!-- @focus="focuss" -->
- <uni-icons type="closeempty" size="20" color="#dadada" @click="foucss()"></uni-icons>
- </view>
- </view>
- </view>
- <view class="square-1">
- <view class="square-title">
- <view class="title-sign"><view class="sign"></view></view>
- <view class="title-text"><text>鍟嗗搧鍒楄〃</text></view>
- </view>
- </view>
- <view class="square-none" v-show="matList.length === 0">
- <view class="v-show">鏆傛棤鏇村鏁版嵁...</view>
- </view>
- <checkbox-group >
- <view v-for="(item,index) in matList" :key="index" class="data-list bg-false" :class="'bg-'+item.checked" >
- <view class="data-list-left">
- <view class="matnr">No:{{listLen-index}}</view>
- <view class="matnr">{{item.matnr}}-{{item.batch}}</view>
- </view>
- <view class="data-list-right">
- <uni-icons type="trash" size="20" color="#a5a5a5" @click="remove(item,index)"></uni-icons>
- </view>
- </view>
- </checkbox-group>
- </scroll-view>
- <view class="footer flex justify-around">
- <view>
- <button class="cu-btn lg" @click="resst()">閲嶇疆</button>
- </view>
- <view>
- <button class="cu-btn lg pakin-btn bg-blue" @click="comb()">缁勬墭</button>
- </view>
- </view>
- <view>
- <!-- 鎻愮ず淇℃伅寮圭獥 -->
- <uni-popup ref="message" type="message">
- <uni-popup-message :type="msgType" :message="messageText" :duration="2000"></uni-popup-message>
- </uni-popup>
- </view>
- </view>
-</template>
-
-<script>
- import permision from "@/common/permission.js"
- export default {
- data() {
- return {
- barcode: '',
- barcodeFocus:true,
- focus:false,
- type: 'center',
- searchBox: 'hide',
- pick:'hide',
- matnrId:'',
- // matList:[{matnr:'1101842-10000',batch:'22047515999'}],
- matList:[],
- result: '',
- listLen:0,
- msgType: 'success',
- messageText: '杩欐槸涓�鏉℃垚鍔熸彁绀�',
- }
- },
- mounted(){
- const UIP = uni.getStorageSync('UIP');
- this.baseIP = UIP;
- const UPORT = uni.getStorageSync('UPORT');
- this.basePORT = UPORT
- },
- onLoad() {
- // #ifdef APP
- setInterval(()=>{
- uni.hideKeyboard()
- },20)
- // #endif
- },
- methods: {
- nextInput() {
- if (this.barcode.length == 8) {
- this.foucss()
- }
- },
- empty() {
- return this.inputValue='';
- },
- barcodeFocuss() {
- // #ifdef APP
- let that = this;
- that.barcodeFocus = false;
- setTimeout(()=>{
- that.matnrId = '';
- that.barcodeFocus = true;
- }, 100);
- // #endif
-
- },
- foucss() {
- // #ifdef APP
- let that = this;
- that.focus = false;
- setTimeout(()=>{
- that.matnrId = '';
- that.focus = true;
- }, 100);
- // #endif
- },
- clear() {
- this.matnrId = ''
- },
- messageToggle(type) {
- this.msgType = type
- this.messageText = `杩欐槸涓�鏉�${type}娑堟伅鎻愮ず`
- this.$refs.message.open()
- },
- resst() {
- this.matnrId = '';
- this.matList = [];
- this.barcode = '';
- this.barcodeFocuss();
- },
- removeBarcode() {
- this.barcode = ''
- this.barcodeFocus = false;
- this.$nextTick(function() {
- this.barcodeFocus = true;
- });
- },
- remove(item,index) {
- this.matnrId = ''
- this.matList.splice(index,1)
- this.listLen = this.matList.length
- this.messageToggle('success')
- this.messageText = '鍒犻櫎鎴愬姛'
- },
- comb() {
- let that = this;
- if (that.barcode === '') {
- uni.showToast({title: '璇锋壂鎻忔墭鐩樻潯鐮�', icon: "none", position: 'top'});
- return;
- }
- if (that.matList.length === 0) {
- uni.showToast({title: '璇锋坊鍔犲晢鍝佸垪琛�', icon: "none", position: 'top'});
- return;
- }
- uni.showLoading();
- uni.request({
- url: that.baseHttp + that.baseIP + ':' +that.basePORT + that.baseUrl + '/mobile/comb/auth',
- data: JSON.stringify({
- barcode: that.barcode,
- combMats: that.matList
- }),
- method: 'POST',
- header: {
- 'token':uni.getStorageSync('token')
- },
- success(result) {
- uni.showLoading();
- var res = result.data
- if (res.code === 200) {
- uni.showToast({
- title: res.msg,
- position: 'bottom',
- duration: 1000
- });
- that.resst();
- } else if (res.code == 403) {
- uni.showToast({title: res.msg, icon: "none", position: 'top'})
- setTimeout(() => {
- uni.reLaunch({
- url: '../login/login'
- });
- }, 1000);
- } else {
- uni.showToast({title: res.msg, icon: "none",position: 'top'})
- }
- }
- });
- },
- findMat() {
- let that = this
- if (that.matnrId.length > 25){
- that.messageToggle('warn');
- that.messageText = '鍟嗗搧缂栫爜瓒呴暱锛岃閲嶈瘯';
- that.foucss();
- return;
- }
- let str = that.matnrId.split('-')
- let matnr = str[0] + '-' + str[1]
- for (let k = 0; k < that.matList.length;k++) {
- if (that.matList[k].matnr != matnr) {
- that.messageToggle('warn');
- that.messageText = '鍟嗗搧绉嶇被涓嶄竴鑷达紝璇烽噸璇曪紒';
- that.foucss();
- return;
- }
- }
- uni.showLoading();
- uni.request({
- url: that.baseHttp + that.baseIP + ':' +that.basePORT + that.baseUrl + '/mat/auth',
- data: {
- matnr:matnr
- },
- header: {
- 'token':uni.getStorageSync('token')
- },
- success(result) {
- uni.hideLoading();
- // uni.vibrateShort();
- let res = result.data
- if (res.code === 200 && res.data) {
- let add = true;
- let mat = res.data;
- mat['batch'] = str[2];
- mat['anfme'] = 1
- for(let i = 0;i < that.matList.length;i++) {
- if(that.matList[i].batch == str[2]) {
- that.messageToggle('warn');
- that.messageText = '閲嶅鎵弿';
- that.foucss();
- add = false;
- }
- }
- if(add) {
- that.messageToggle('success');
- that.messageText = '妫�绱㈡垚鍔�';
- that.matList.unshift(res.data)
- that.foucss();
- }
- that.listLen = that.matList.length;
- } else if (res.code == 403) {
- that.messageToggle('error')
- that.messageText = res.msg
- setTimeout(() => {
- uni.reLaunch({
- url: '../login/login'
- });
- }, 1000);
- uni.hideLoading();
- } else {
- that.messageToggle('error')
- that.messageText = res.msg
- uni.hideLoading();
- // uni.showToast({title: res.msg, icon: "none",position: 'top'})
- }
- }
-
- });
- },
-
- change(e) {
- console.log('褰撳墠妯″紡锛�' + e.type + ',鐘舵�侊細' + e.show);
- },
-
- }
- }
-</script>
-
-
-
-<style>
- /* @import "../../colorui/main.css";
- @import "../../colorui/icon.css"; */
- /*
- 1101842-10000-220475159999
- 1101842-10000-22047518494
- 1101842-10000-22047518532
- 1101842-10000-22047515990
- 1101842-12345-22047515990
- 1101842-10000-22047515997
- 1101842-10000-22047518515
- 1101842-10000-22047515778
- 1101842-10000-22047515938
- 1101842-10000-22047518518
- 1101842-10000-22047518517
- 1101842-10000-22047515967
- 1101842-10000-22047518472
- 1101842-10000-22047518516
- 1101842-10000-22047518511
- 1101842-10000-22047515864
- 1101842-10000-22047515889
- */
-
- .pak-seach-box {
- background-color: #FFFFFF;
- margin: 15rpx 15rpx 0rpx 15rpx;
- width: 96%;
- height: 150rpx;
- border-radius: 20rpx;
- }
- .box-top{
- display: block;
- height: 60rpx;
- width: 720rpx;
- }
- .color-block-blue {
- background-color: #1E9FFF;
- display: inline-block;
- float: left;
- margin: 15rpx 15rpx 0 15rpx;
- width: 12rpx;
- height: 40rpx;
- border: 5rpx solid #1E9FFF;
- border-radius: 20rpx;
- }
- .title {
- display: inline-block;
- float: left;
- font-size: 34rpx;
- font-weight: 700;
- height: 50rpx;
- line-height: 50rpx;
- margin-top: 10rpx;
- }
- .box-buttom {
- display: inline-block;
- background-color: #ededed;
- width: 65%;
- height: 60rpx;
- border-radius: 20rpx;
- margin: 15rpx 15rpx 0rpx 15rpx;
- }
- .box-buttom input {
- width: 75%;
- float: left;
- margin: 8rpx 10rpx 0rpx 25rpx;
- }
- .box-buttom .search-icon{
- width: 60rpx;
- height: 60rpx;
- float: right;
- margin-top: 5rpx;
- margin-right: 10rpx;
- }
- /* .pak-seach-box input {
- background-color: #ededed;
- border: 1rpx solid #d8d8d8;
- display: inline-block;
- border-radius: 20rpx;
- float: left;
- width: 70%;
- height: 60rpx;
- line-height: 60rpx;
- margin: 15rpx 15rpx 0rpx 15rpx;
- padding-left: 20rpx;
- } */
- .pak-seach-box button {
- background-color: #1E9FFF;
- color: #ffffff;
- display: inline-block;
- float: right;
- width: 180rpx;
- height: 60rpx;
- margin: 15rpx 15rpx 0rpx 15rpx;
- line-height: 60rpx;
- }
- .pakin-btn {
- background-color: #1E9FFF;
- }
- .pak-data-box {
- background-color: #F1F1F1;
- margin: 15rpx 15rpx 0rpx 15rpx;
- width: 96%;
- height: 70rpx;
- border-radius: 20rpx;
- }
- .pak-data-box .box-top {
- background-color: #FFFFFF;
- height: 70rpx;
- border-radius: 20rpx 20rpx 20rpx 20rpx;
- }
- .bg-false {
- background-color: #FFFFFF;
- }
- .bg-true {
- background-color: #ebebeb;
- }
- .data-list {
- border-bottom: 1px solid #d8d8d8;
- height: 130rpx;
- margin: 15rpx;
- border-radius: 20rpx;
- }
- .data-list:first-child {
- margin-top: 20rpx;
- }
- .data-list:last-child {
- margin-bottom: 200rpx;
- }
- /* .data-list-left {
- display: inline-block;
- float: left;
- text-align: center;
- width: 100rpx;
- height: 180rpx;
- line-height: 180rpx;
- } */
- .data-list-left {
- display: inline-block;
- float: left;
- margin-left: 6%;
- height: 130rpx;
- /* line-height: 100rpx; */
- color: #676767;
- }
- .matnr {
- font-size: 14px;
- font-weight: 700;
- /* padding-top: 15rpx; */
- padding-top: 15rpx;
- }
- .data-list-right {
- display: inline-block;
- float: right;
- height: 130rpx;
- line-height: 130rpx;
- margin-right: 10%;
- }
-</style>
\ No newline at end of file
diff --git a/pages/basics/pakStore.vue b/pages/basics/pakStore.vue
deleted file mode 100644
index 0a1e5aa..0000000
--- a/pages/basics/pakStore.vue
+++ /dev/null
@@ -1,415 +0,0 @@
-<template>
- <view>
- <view class="square-2">
- <view class="square-title">
- <view class="title-sign"><view class="sign"></view></view>
- <view class="title-text"><text>鎻愬彇鍟嗗搧</text></view>
- </view>
- <view class="square-content">
- <view class="content-input-btn">
- <input v-model="matnr" type="text" placeholder="鎵爜 / 杈撳叆" @input="findMat()"
- :focus="focus" placeholder-style="line-height: 85rpx;">
- <uni-icons type="closeempty" size="20" color="#dadada" @click="remove('matnr')"></uni-icons>
- </view>
- <view class="content-btn">
- <button class="cu-btn bg-blue pda-btn" @click="selectMat()">+鎻愬彇</button>
- </view>
- </view>
- </view>
- <!-- <view class="square-2">
- <view class="square-title">
- <view class="title-sign"><view class="sign"></view></view>
- <view class="title-text"><text>搴撲綅鍙风爜</text></view>
- </view>
- <view class="square-content">
- <view class="content-input">
- <input type="text" v-model="locNo" placeholder="鎵爜 / 杈撳叆" @input="searchLocNo" placeholder-style="line-height: 85rpx;">
- <uni-icons type="closeempty" size="20" color="#dadada" @click="removeLocNo"></uni-icons>
- </view>
- </view>
- </view> -->
- <view class="square-2">
- <view class="square-title">
- <view class="title-sign"><view class="sign"></view></view>
- <view class="title-text"><text>鍏ュ簱鍙�</text></view>
-
- </view>
- <view class="content-combox">
- <uni-combox emptyTips="鏆傛棤鏁版嵁"
- :candidates="sites" v-model="siteId" @click="staNoSelect()" placeholder="璇烽�夋嫨鍑哄簱绔欑偣">
- </uni-combox>
- </view>
- </view>
-
- <view class="square-1">
- <view class="square-title">
- <view class="title-sign"><view class="sign"></view></view>
- <view class="title-text"><text>鍟嗗搧鍒楄〃</text></view>
- </view>
-
- </view>
-
- <view class="square-none" v-show="matList.length === 0">
- <view class="v-show">鏆傛棤鏇村鏁版嵁...</view>
- </view>
-
- <view v-for="(item,index) in matList" :key="index" class="data-list bg-false" :class="'bg-'+item.checked" >
- <view class="data-list-left">
- <!-- <view>
- <checkbox :value="item.id+''" :checked="item.checked" style="display: block;" />
- </view> -->
- <view class="matnr"><text style="width: 400rpx;">缂栫爜锛歿{item.matnr}}</text></view>
- <view><text style="width: 400rpx;">鍝佸悕锛歿{item.maktx}}</text></view>
- <view><text style="width: 400rpx;">鎵瑰彿锛歿{item.batch}}</text></view>
- <view>
- <text style="width: 400rpx;">鏁伴噺锛歿{item.anfme}}</text>
- </view>
- </view>
- <view class="data-list-right">
- <label><uni-icons type="compose" size="20" color="#a5a5a5" @click="revise(item,index)"></uni-icons></label>
- <label><uni-icons type="trash" size="25" color="#a5a5a5" @click="removeMat(item,index)"></uni-icons></label>
- </view>
- </view>
- <!-- 搴曢儴鎸夐挳 -->
- <view class="footer flex justify-around">
- <label class="label-btn" style="width: 150rpx;">
- <button class="cu-btn" @click="resst()">閲嶇疆</button>
- </label>
- <label class="label-btn">
- <button class="cu-btn bg-blue " @click="comb()">鍚姩鍏ュ簱</button>
- </label>
- </view>
- <!-- 寮圭獥 -->
- <!-- 淇敼鏁伴噺 -->
- <uni-popup ref="revise" background-color="#fff">
- <view class="revise-box">
- <view class="revise-box-top">
- <view class="color-block-blue"></view>
- <text class="title">淇敼鏁伴噺</text>
- </view>
- <view class="changeBox">
- <view class="num-box">
- <uni-number-box :value="count" :max="9999" color="#747474" @change="changeValue"/>
- </view>
- </view>
- <view class="revise-box-buttom">
- <view>
- <button class="cu-btn bg-blue" @click="confirm()">纭</button>
- </view>
- </view>
- </view>
- </uni-popup>
- </view>
-</template>
-
-<script>
- export default {
- data() {
- return {
- commonUrl:null,
- matnr:'',
- focus: true,
- matList: [],
- sites: [],
- siteId: '',
- count:0
- }
- },
- mounted(){
- const UIP = uni.getStorageSync('UIP');
- this.baseIP = UIP;
- const UPORT = uni.getStorageSync('UPORT');
- this.basePORT = UPORT
- const PROJ = uni.getStorageSync('UPROJ');
- this.baseUrl = PROJ
- this.getUrl()
- this.getInBound();
- },
- methods: {
- // 鑾峰彇url
- getUrl() {
- this.commonUrl = this.baseHttp + this.baseIP + ':' +this.basePORT + "/" +this.baseUrl
- },
- // 娓呯┖input
- remove(e) {
- this[e] = ''
- },
- // 绉婚櫎鐗╂枡
- removeMat(item,index) {
- this.matList.splice(index,1)
- },
- // 鎼滅储鐗╂枡
- findMat() {
- let that = this
- uni.request({
- url: that.commonUrl + '/mat/auth',
- data: {
- matnr:that.matnr
- },
- header: {
- 'token':uni.getStorageSync('token')
- },
- success(result) {
- uni.vibrateShort();
- let res = result.data
- if (res.code === 200 && res.data) {
- that.matData = res.data
- that.matnr = ''
- uni.navigateTo({
- url: "matQuery",
- events: {
- // 涓烘寚瀹氫簨浠舵坊鍔犱竴涓洃鍚櫒锛岃幏鍙栬鎵撳紑椤甸潰浼犻�佸埌褰撳墠椤甸潰鐨勬暟鎹�
- matList: function(data) {
- that.checkMat(data.data)
- // that.matList.push(data.data)
- },
- },
- success: function(res) {
- // 閫氳繃eventChannel鍚戣鎵撳紑椤甸潰浼犻�佹暟鎹�
- res.eventChannel.emit('matData', { data: that.matData })
- },
- });
- } else if (res.code == 403) {
- uni.showToast({title: res.msg, icon: "none", position: 'top'})
- setTimeout(() => {
- uni.reLaunch({
- url: '../login/login'
- });
- }, 1000);
- } else {
- uni.showToast({title: res.msg, icon: "none",position: 'top'})
- }
-
- }
- });
- },
- // 娣诲姞鍟嗗搧
- addMat(mat) {
- this.matList.unshift(mat)
- },
- checkMat(mat) {
- var len = this.matList.length
- var add = true
- for (var i = 0; i < len; i++) {
- if (mat.matnr == this.matList[i].matnr) {
- this.matList[i].anfme += mat.anfme
- this.$forceUpdate() // 寮哄埗鍒锋柊
- add = false
- }
- }
- if (add) {
- this.matList.unshift(mat)
- }
- },
- // 鎻愬彇鍟嗗搧
- selectMat() {
- let that = this
- uni.navigateTo({
- url: "matSelect",
- success: function(res) {
- // 閫氳繃eventChannel鍚戣鎵撳紑椤甸潰浼犻�佹暟鎹� 鍚戝彟澶栦竴涓〉闈紶閫掑�肩殑
- res.eventChannel.emit('commonUrl', {commonUrl:that.commonUrl })
- },
- events: {
- // 涓烘寚瀹氫簨浠舵坊鍔犱竴涓洃鍚櫒锛岃幏鍙栬鎵撳紑椤甸潰浼犻�佸埌褰撳墠椤甸潰鐨勬暟鎹� 鍙﹀涓�涓〉闈紶杩囨潵鐨�
- acceptDataFromOpenedPage: function(data) {
- that.matnr = data.data
- that.findMat(that.matnr)
- },
- },
- });
- },
- // 鑾峰彇鍙敤鍏ュ簱绔欑偣
- getInBound() {
- let that = this;
- uni.request({
- url: that.commonUrl + "/available/put/site",
- header: {'token':uni.getStorageSync('token')},
- success(result) {
- let res = result.data
- if (res.code === 200 ) {
- that.sites = [];
- for (var i = 0; i < res.data.length; i++) {
- that.sites.push(res.data[i])
- }
- } else if (res.code == 403) {
- uni.showToast({title: res.msg, icon: "none", position: 'top'})
- setTimeout(() => {
- uni.reLaunch({
- url: '../login/login'
- });
- }, 1000);
- } else {
- uni.showToast({title: res.msg, icon: "none",position: 'top'})
- }
- }
- })
- },
- // 鍚姩鍏ュ簱
- comb() {
- let that = this
- if (that.matList.length === 0) {
- uni.showToast({title: "璇峰厛鎻愬彇鍟嗗搧", icon: "none",position: 'top'})
- return;
- }
- if (that.siteId == '') {
- uni.showToast({title: "璇烽�夋嫨鍑哄簱鍙�", icon: "none",position: 'top'})
- return;
- }
- var list = [];
- let param = {
- devpNo: that.siteId,
- list: that.matList
- }
- uni.request({
- url: that.commonUrl + "/full/store/put/start",
- header: {
- 'token':uni.getStorageSync('token')},
- data: JSON.stringify(param),
- method:"POST",
- success(result) {
- var res = result.data
- if (result.data.code === 200) {
- uni.showToast({title: "鍏ュ簱鍚姩鎴愬姛锛岀洰鏍囧簱浣嶏細" + res.data, icon: "none",position: 'top'})
- that.resst()
- } else {
- uni.showToast({title: result.data.msg, icon: "none",position: 'top'})
- }
- }
- })
- },
- resst() {
- this.matnr = '';
- this.siteId = '';
- this.matList = [];
- },
- // 淇敼鏁伴噺
- revise(item,index) {
- this.count = this.matList[index].anfme
- this.rowNum = index
- this.eject()
- },
- eject(type) {
- this.type = type
- // open 鏂规硶浼犲叆鍙傛暟 绛夊悓鍦� uni-popup 缁勪欢涓婄粦瀹� type灞炴��
- this.$refs.revise.open(type)
- },
- changeValue(value) {
- this.count = value
- },
- confirm() {
- this.matList[this.rowNum].anfme = this.count
- this.$refs.revise.close()
- this.$forceUpdate() // 寮哄埗鍒锋柊
- },
- }
- }
-</script>
-
-<style>
- .color-block-blue {
- background-color: #1E9FFF;
- display: inline-block;
- float: left;
- margin: 15rpx 15rpx 0 15rpx;
- width: 12rpx;
- height: 40rpx;
- border: 5rpx solid #1E9FFF;
- border-radius: 20rpx;
- }
- .title {
- display: inline-block;
- float: left;
- font-size: 34rpx;
- font-weight: 700;
- height: 50rpx;
- line-height: 50rpx;
- margin-top: 10rpx;
- }
- .pda-btn1 {
- margin-left:260rpx;
- margin-right: auto;
- margin-top: 150rpx;
- width: 200rpx;
- height: 80rpx;
- font-size: 30upx;
- font-weight: bold;
- }
- .combox {
- width: 200px;
- padding: 12px;
- }
- .bg-false {
- background-color: #FFFFFF;
- }
- .bg-true {
- background-color: #ebebeb;
- }
- .data-list {
- border-bottom: 1px solid #d8d8d8;
- height: 180rpx;
- margin: 15rpx;
- border-radius: 20rpx;
- }
- .data-list:first-child {
- margin-top: 20rpx;
- }
- .data-list:last-child {
- margin-bottom: 120rpx;
- }
- /* .data-list-left {
- display: inline-block;
- float: left;
- text-align: center;
- width: 100rpx;
- height: 180rpx;
- line-height: 180rpx;
- } */
- .data-list-left {
- display: inline-block;
- float: left;
- margin-left: 6%;
- height: 180rpx;
- color: #676767;
- }
- .matnr {
- padding-top: 10rpx;
- }
- .data-list-right {
- display: inline-block;
- float: right;
- height: 180rpx;
- line-height: 180rpx;
- }
- /* display: inline-block;
- float: right;
- width: 200rpx;
- height: 180rpx;
- line-height: 180rpx; */
- .data-list-right label {
- display: inline-block;
- float: left;
- width: 80rpx;
- height: 180rpx;
- }
- .revise-box {
- width: 400rpx;
- height: 300rpx;
- border-radius: 25px;
- }
- .revise-box-top {
- width: 400rpx;
- height: 120rpx;
- border-radius: 25px;
- }
- .changeBox {
- width: 400rpx;
- height: 100rpx;
- }
- .num-box {
- margin-left: 100rpx;
- }
- .revise-box-buttom{
- margin-left: 130rpx;
- }
-</style>
\ No newline at end of file
diff --git a/pages/basics/pakin.vue b/pages/basics/pakin.vue
deleted file mode 100644
index 78b4d0c..0000000
--- a/pages/basics/pakin.vue
+++ /dev/null
@@ -1,676 +0,0 @@
-<template>
- <view >
- <scroll-view scroll-y catch:touchmove="touchmove">
- <view class="square-2">
- <view class="square-title">
- <view class="title-sign"><view class="sign"></view></view>
- <view class="title-text"><text>鎵樼洏鏉$爜</text></view>
- </view>
- <view class="square-content">
- <view class="content-input">
- <input v-model="barcode" type="text" placeholder="鎵爜 / 杈撳叆"
- :focus="barcodeFocus" @confirm="barcodeInput()" placeholder-style="line-height: 85rpx;">
- <uni-icons type="closeempty" size="20" color="#dadada" @click="removeBarcode()"></uni-icons>
- </view>
- </view>
- </view>
-
-
- <view class="square-2">
- <view class="square-title">
- <view class="title-sign"><view class="sign"></view></view>
- <view class="title-text"><text>妫�绱㈠晢鍝�</text></view>
- </view>
- <view class="square-content">
- <view class="content-input-btn">
- <input v-model="matnr" type="text" placeholder="鎵爜 / 杈撳叆" @input="findMat()"
- :focus="focus" placeholder-style="line-height: 85rpx;">
- <uni-icons type="closeempty" size="20" color="#dadada" @click="removeMatnr()"></uni-icons>
- </view>
- <view class="content-btn">
- <button class="cu-btn bg-blue pda-btn" @click="selectMat()">+鎻愬彇</button>
- </view>
- </view>
- </view>
- <view class="square-1">
- <view class="square-title">
- <view class="title-sign"><view class="sign"></view></view>
- <view class="title-text"><text>鏄惁鍖呰</text></view>
- <radio-group @change="isFrozen">
- <label>
- <radio :checked="ck1" style="margin-left: 100rpx;"/><text>鏄�</text>
- </label>
- <label>
- <radio :checked="ck2" style="margin-left: 50rpx;"/><text>鍚�</text>
- </label>
- </radio-group>
- </view>
- </view>
-
- <view class="square-1">
- <view class="square-title">
- <view class="title-sign"><view class="sign"></view></view>
- <view class="title-text"><text>鍟嗗搧鍒楄〃</text></view>
- </view>
- </view>
-
- <view class="square-none" v-show="matList.length === 0">
- <view class="v-show">鏆傛棤鏇村鏁版嵁...</view>
- </view>
-
- <checkbox-group @change="checkbox">
- <view v-for="(item,index) in matList" :key="index" class="data-list bg-false" :class="'bg-'+item.checked" >
- <view class="data-list-left">
- <view class="matnr"><text style="width: 400rpx;">缂栫爜锛歿{item.matnr}}</text></view>
- <view><text style="width: 400rpx;">鍝佸悕锛歿{item.maktx}}</text></view>
- <view><text style="width: 400rpx;">瑙勬牸锛歿{item.specs}}</text></view>
- <view><text style="width: 400rpx;">鎵瑰彿锛歿{item.batch}}</text></view>
- <view>
- <text style="width: 400rpx;">澶囨敞锛歿{item.memo}}</text>
- <text style="width: 400rpx;margin-left: 100rpx">鏁伴噺锛歿{item.anfme}}</text>
- </view>
- </view>
- <view class="data-list-right">
- <label><uni-icons type="compose" size="20" color="#a5a5a5" @click="revise(item,index)"></uni-icons></label>
- <label><uni-icons type="trash" size="25" color="#a5a5a5" @click="remove(item,index)"></uni-icons></label>
- </view>
- </view>
- </checkbox-group>
- </scroll-view>
-
-
- <!-- 搴曢儴鎸夐挳 -->
- <view class="footer flex justify-around">
-
- <label class="label-btn" style="width: 150rpx;">
- <button class="cu-btn" @click="resst()">閲嶇疆</button>
- </label>
- <label class="label-btn">
- <button class="cu-btn bg-blue " @click="comb()">缁勬墭</button>
- </label>
- </view>
- <!-- 寮圭獥 -->
- <!-- 淇敼鏁伴噺 -->
- <uni-popup ref="revise" >
- <view class="revise-box ">
- <view class="revise-box-top">
- <view class="color-block-blue"></view>
- <text class="title">淇敼</text>
- </view>
- <view class="" style="position: relative;left: 50px;margin-bottom: 20px;">
- <text style="display: inline-block;float: left;width: 50px;">鎵瑰彿锛�</text>
- <input type="text" style="width: 100px;border-bottom: 1px solid #9e9e9e;" v-model="batch">
- </view>
- <view class="" style="position: relative;left: 50px;margin-bottom: 20px;">
- <text style="display: inline-block;float: left;width: 50px;">澶囨敞锛�</text>
- <input type="text" style="width: 100px;border-bottom: 1px solid #9e9e9e;" v-model="memo">
- </view>
- <view class="changeBox">
- <view class="num-box">
- <text style="display: inline-block;float: left;width: 50px;">鏁伴噺锛�</text>
- <uni-number-box :value="count" :max="9999999" color="#747474" @change="changeValue"/>
- </view>
- </view>
- <view class="revise-box-buttom">
- <view>
- <button class="cu-btn bg-blue" @click="confirm()">纭</button>
- </view>
- </view>
- </view>
- </uni-popup>
- </view>
-</template>
-
-<script>
- import permision from "@/common/permission.js"
- import loginVue from "../login/login.vue";
- export default {
- data() {
- return {
- commonUrl:null,
- barcode: '',
- barcodeFocus:true,
- focus:false,
- type: 'center',
- searchBox: 'hide',
- pick:'hide',
- matnr:'',
- matList:[],
- result: '',
- enableQty:'',
- count:'',
- minCount:0,
- maxCount:'',
- rowNum:'',
- check:false,
- checkText:'鍏ㄩ��',
- checkedData:[],
- batch:'',
- memo: '',
- ck1: true,
- ck2: false,
- frozen: 0,
- }
- },
- onShow() {
- setTimeout(()=>{
- // this.focuss()
- }, 100);
-
- },
- mounted(){
- const UIP = uni.getStorageSync('UIP');
- this.baseIP = UIP;
- const UPORT = uni.getStorageSync('UPORT');
- this.basePORT = UPORT
- const PROJ = uni.getStorageSync('UPROJ');
- this.baseUrl = PROJ
- this.getUrl()
- },
- methods: {
- // 鍖呰
- isFrozen() {
- var temp = this.ck1
- this.ck1 = this.ck2
- this.ck2 = temp
- this.frozen = this.ck1
- if (this.frozen == true) {
- this.frozen = 1
- } else {
- this.frozen = 0
- }
- console.log(this.frozen);
- },
- // 鑾峰彇url
- getUrl() {
- this.commonUrl = this.baseHttp + this.baseIP + ':' +this.basePORT + "/" +this.baseUrl
- },
- // barcode input 浜嬩欢
- barcodeInput() {
- // 涓嶈缃畾鏃跺櫒 浼氬嚭鐜版壂鍏ョ殑瀛楃涓蹭笉鍏�
- setTimeout(()=>{
- var len = this.barcode.length
- if (len != 8) {
- uni.showToast({title: '鎵樼洏鐮佹湁璇閲嶈瘯', icon: "none", position: 'top'});
- this.barcodeFocuss()
- return;
- }
- this.focuss()
- },200)
- },
- // 鎵樼洏鐮佹湁璇噸缃�
- barcodeFocuss() {
- let that = this;
- that.barcodeFocus = false;
- setTimeout(()=>{
- that.barcode = '';
- that.barcodeFocus = true;
- }, 100);
- },
- // 鍟嗗搧鍏夋爣娓呯┖閲嶇疆
- focuss() {
- // #ifdef APP
- let that = this;
- that.focus = false;
- setTimeout(()=>{
- that.matnr = '';
- that.focus = true;
- }, 100);
- // #endif
- },
- resst() {
- this.matList = []
- this.barcode = ''
- this.matnr = ''
- this.barcodeFocuss()
- uni.vibrateShort();
- },
- removeBarcode() {
- this.barcode = ''
- uni.vibrateShort();
- this.barcodeFocus = false;
- this.$nextTick(function() {
- this.barcodeFocus = true;
- });
- },
- removeMatnr() {
- this.matnr = ''
- uni.vibrateShort();
- this.focus = false;
- this.$nextTick(function() {
- this.focus = true;
- });
- },
- // 鍒楄〃鍒犻櫎鎸夐挳
- remove(item,index) {
- this.matList.splice(index,1)
- uni.vibrateShort();
- },
- comb() {
- uni.vibrateShort();
- let that = this;
- if (that.barcode === '') {
- uni.showToast({title: '璇锋壂鎻忔墭鐩樻潯鐮�', icon: "none", position: 'top'});
- return;
- }
- if (that.matList.length === 0) {
- uni.showToast({title: '璇锋坊鍔犲晢鍝佸垪琛�', icon: "none", position: 'top'});
- return;
- }
- for (var i = 0; i < that.matList.length; i++) {
- if (that.matList[i].anfme == 0 || that.matList[i].anfme == '') {
- uni.showToast({title: that.matList[i].matnr + '缁勬墭鏁伴噺涓嶈兘涓�0', icon: "none", position: 'top'});
- return;
- }
- }
- for (var j = 0; j < that.matList.length; j++) {
- that.matList[j].beBatch = that.frozen
- }
- uni.showLoading();
- uni.request({
- url: that.commonUrl + '/mobile/comb/auth',
- data: JSON.stringify({
- barcode: that.barcode,
- combMats: that.matList
- }),
- method: 'POST',
- header: {
- 'token':uni.getStorageSync('token')
- },
- success(result) {
- uni.hideLoading();
- var res = result.data
- if (res.code === 200) {
- const innerAudioContext = uni.createInnerAudioContext();
- innerAudioContext.src = '/static/music/pakinOk.mp3';
- innerAudioContext.play()
- that.resst();
- uni.showToast({
- title: res.msg,
- position: 'bottom',
- duration: 1000
- });
- } else if (res.code == 403) {
- uni.showToast({title: res.msg, icon: "none", position: 'top'})
- setTimeout(() => {
- uni.reLaunch({
- url: '../login/login'
- });
- }, 1000);
- } else {
- uni.showToast({title: res.msg, icon: "none",position: 'top'})
- }
- }
- });
- },
- selectMat() {
- let that = this
- uni.vibrateShort();
- uni.navigateTo({
- url: "matSelect",
- events: {
- // 涓烘寚瀹氫簨浠舵坊鍔犱竴涓洃鍚櫒锛岃幏鍙栬鎵撳紑椤甸潰浼犻�佸埌褰撳墠椤甸潰鐨勬暟鎹� 鍙﹀涓�涓〉闈紶杩囨潵鐨�
- acceptDataFromOpenedPage: function(data) {
- that.matnr = data.data
- that.findMat(that.matnr)
- },
- },
- success: function(res) {
- // 閫氳繃eventChannel鍚戣鎵撳紑椤甸潰浼犻�佹暟鎹� 鍚戝彟澶栦竴涓〉闈紶閫掑�肩殑
- res.eventChannel.emit('commonUrl', {commonUrl:that.commonUrl })
- },
-
- });
- that.matnr = ''
- },
- findMat() {
- let that = this
- for (var i = 0; i < that.matList.length; i++) {
- if (that.matnr == that.matList[i].matnr) {
- uni.showToast({title: that.matnr + "褰撳墠鐗╂枡鎻愬彇锛岃鍕块噸澶嶆壂鎻�!", icon: "none",position: 'top'})
- setTimeout(()=>{
- that.matnr = '';
- that.focus = true;
- }, 100);
- return;
- }
- }
- uni.request({
- url: that.commonUrl + '/mat/auth',
- data: {
- matnr:that.matnr
- },
- header: {
- 'token':uni.getStorageSync('token')
- },
- success(result) {
- uni.vibrateShort();
- let res = result.data
- if (res.code === 200 && res.data) {
- that.matData = res.data
- that.matnr = ''
- that.matData['batch'] = ''
- uni.navigateTo({
- url: "matQuery",
- events: {
- // 涓烘寚瀹氫簨浠舵坊鍔犱竴涓洃鍚櫒锛岃幏鍙栬鎵撳紑椤甸潰浼犻�佸埌褰撳墠椤甸潰鐨勬暟鎹�
- matList: function(data) {
- that.checkMat(data.data)
- // that.matList.push(data.data)
- },
- },
- success: function(res) {
- // 閫氳繃eventChannel鍚戣鎵撳紑椤甸潰浼犻�佹暟鎹�
- res.eventChannel.emit('matData', { data: that.matData })
- },
- });
- } else if (res.code == 403) {
- uni.showToast({title: res.msg, icon: "none", position: 'top'})
- setTimeout(() => {
- uni.reLaunch({
- url: '../login/login'
- });
- }, 1000);
- } else {
- setTimeout(()=>{
- that.matnr = '';
- that.focus = true;
- }, 100);
- uni.showToast({title: res.msg, icon: "none",position: 'top'})
- }
-
- }
- });
- },
-
- // 娣诲姞鍟嗗搧
- addMat(mat) {
- this.matList.unshift(mat)
- },
- checkMat(mat) {
- var len = this.matList.length
- var add = true
- var date = new Date()
- var today = date.getFullYear() + '/' + (date.getMonth()+1) + '/' + date.getDate()
- for (var i = 0; i < len; i++) {
- if (mat.matnr == this.matList[i].matnr) {
- uni.showToast({title: mat.matnr + "褰撳墠鐗╂枡鎻愬彇锛岃鍕块噸澶嶆壂鎻�!", icon: "none",position: 'top'})
- // this.matList[i].anfme += mat.anfme
- this.$forceUpdate() // 寮哄埗鍒锋柊
- add = false
- }
- }
- if (add) {
- if(mat.batch === '' || mat.batch === null) {
- // mat.batch = today
- }
- this.matList.unshift(mat)
- }
- },
- change(e) {
- },
- toggle(type) {
- this.type = type
- // open 鏂规硶浼犲叆鍙傛暟 绛夊悓鍦� uni-popup 缁勪欢涓婄粦瀹� type灞炴��
- this.$refs.goodsSearch.open(type)
- },
- checkbox: function (e) {
- var items = this.matList,
- values = e.detail.value;
- for (var i = 0, lenI = items.length; i < lenI; ++i) {
- const item = items[i]
- item.id = item.id + ''
- if(values.indexOf(item.id) >= 0){
- this.$set(item,'checked',true)
- }else{
- this.$set(item,'checked',false)
- }
- }
- if (values.length == items.length) {
- this.check = true
- this.checkText = "鍙栨秷鍏ㄩ��"
- } else {
- this.check = false
- this.checkText = "鍏ㄩ��"
- }
- uni.vibrateShort();
- },
- revise(item,index) {
- this.count = this.matList[index].anfme
- this.batch = this.matList[index].batch
- this.memo = this.matList[index].memo
- this.cstmr = this.matList[index].cstmr
- this.rowNum = index
- this.eject()
- },
- eject(type) {
- this.type = type
- // open 鏂规硶浼犲叆鍙傛暟 绛夊悓鍦� uni-popup 缁勪欢涓婄粦瀹� type灞炴��
- this.$refs.revise.open(type)
- },
- changeValue(value) {
- this.count = value
- },
- confirm() {
- this.matList[this.rowNum].anfme = this.count
- this.matList[this.rowNum].batch = this.batch
- this.matList[this.rowNum].memo = this.memo
- this.matList[this.rowNum].cstmr = this.cstmr
- this.$refs.revise.close()
- this.$forceUpdate() // 寮哄埗鍒锋柊
- },
- // 鍒楄〃鍙嶉��
- reChecked() {
- if (this.matList.length == 0) {
- return;
- }
- var checkArr = []
- for (var i = 0; i < this.matList.length;i++) {
- if (this.matList[i].checked == true) {
- this.$set(this.matList[i],'checked',false)
- }else{
- this.$set(this.matList[i],'checked',true)
- }
- if (this.matList[i].checked == true) {
- checkArr.push(this.matList[i].checked)
- }
- }
- if (checkArr.length == this.matList.length) {
- this.check = true
- this.checkText = "鍙栨秷鍏ㄩ��"
- } else {
- this.check = false
- this.checkText = "鍏ㄩ��"
- }
- uni.vibrateShort();
- },
- // 鍒楄〃鍏ㄩ��
- allChecked(e){
-
- if (this.check == true) {
- for (var i = 0; i < this.matList.length;i++) {
- this.$set(this.matList[i],'checked',false)
- }
- this.check = false
- this.checkText = "鍏ㄩ��"
- } else {
- for (var i = 0; i < this.matList.length;i++) {
- this.$set(this.matList[i],'checked',true)
- }
- this.check = true
- this.checkText = "鍙栨秷鍏ㄩ��"
- }
- uni.vibrateShort();
- },
- }
- }
-</script>
-
-<style>
- /* @import "../../colorui/main.css";
- @import "../../colorui/icon.css"; */
- .revise-box {
- position: relative;
- width: 500rpx;
- height: 500rpx;
- border-radius: 25px;
- background-color: #fff;
- border-radius: 20rpx;
- }
- .revise-box-top {
- width: 400rpx;
- height: 120rpx;
- border-radius: 25px;
- }
- .changeBox {
- width: 400rpx;
- height: 100rpx;
- }
- .num-box {
- margin-left: 100rpx;
- }
- .revise-box-buttom{
- margin-left: 190rpx;
- }
- .pak-seach-box {
- background-color: #FFFFFF;
- margin: 15rpx 15rpx 0rpx 15rpx;
- width: 96%;
- height: 150rpx;
- border-radius: 20rpx;
- }
- .box-top{
- display: block;
- height: 60rpx;
- width: 720rpx;
- }
- .color-block-blue {
- background-color: #1E9FFF;
- display: inline-block;
- float: left;
- margin: 15rpx 15rpx 0 15rpx;
- width: 12rpx;
- height: 40rpx;
- border: 5rpx solid #1E9FFF;
- border-radius: 20rpx;
- }
- .title {
- display: inline-block;
- float: left;
- font-size: 34rpx;
- font-weight: 700;
- height: 50rpx;
- line-height: 50rpx;
- margin-top: 10rpx;
- }
- .box-buttom {
- display: inline-block;
- background-color: #ededed;
- width: 65%;
- height: 60rpx;
- border-radius: 20rpx;
- margin: 15rpx 15rpx 0rpx 15rpx;
- }
- .box-buttom input {
- width: 75%;
- float: left;
- margin: 8rpx 10rpx 0rpx 25rpx;
- }
- .box-buttom .search-icon{
- width: 60rpx;
- height: 60rpx;
- float: right;
- margin-top: 5rpx;
- margin-right: 10rpx;
- }
- /* .pak-seach-box input {
- background-color: #ededed;
- border: 1rpx solid #d8d8d8;
- display: inline-block;
- border-radius: 20rpx;
- float: left;
- width: 70%;
- height: 60rpx;
- line-height: 60rpx;
- margin: 15rpx 15rpx 0rpx 15rpx;
- padding-left: 20rpx;
- } */
- .pak-seach-box button {
- background-color: #1E9FFF;
- color: #ffffff;
- display: inline-block;
- float: right;
- width: 180rpx;
- height: 60rpx;
- margin: 15rpx 15rpx 0rpx 15rpx;
- line-height: 60rpx;
- }
- .pakin-btn {
- background-color: #1E9FFF;
- }
- .pak-data-box {
- background-color: #F1F1F1;
- margin: 15rpx 15rpx 0rpx 15rpx;
- width: 96%;
- height: 70rpx;
- border-radius: 20rpx;
- }
- .pak-data-box .box-top {
- background-color: #FFFFFF;
- height: 70rpx;
- border-radius: 20rpx 20rpx 20rpx 20rpx;
- }
- .bg-false {
- background-color: #FFFFFF;
- }
- .bg-true {
- background-color: #ebebeb;
- }
- .data-list {
- border-bottom: 1px solid #d8d8d8;
- height: 220rpx;
- margin: 15rpx;
- border-radius: 20rpx;
- }
- .data-list:first-child {
- margin-top: 20rpx;
- }
- .data-list:last-child {
- margin-bottom: 180rpx;
- }
- /* .data-list-left {
- display: inline-block;
- float: left;
- text-align: center;
- width: 100rpx;
- height: 180rpx;
- line-height: 180rpx;
- } */
- .data-list-left {
- display: inline-block;
- float: left;
- margin-left: 6%;
- height: 180rpx;
- color: #676767;
- }
- .matnr {
- padding-top: 10rpx;
- }
- .data-list-right {
- display: inline-block;
- float: right;
- height: 220rpx;
- line-height: 220rpx;
- }
- /* display: inline-block;
- float: right;
- width: 200rpx;
- height: 180rpx;
- line-height: 180rpx; */
- .data-list-right label {
- display: inline-block;
- float: left;
- width: 80rpx;
- height: 180rpx;
- }
-</style>
\ No newline at end of file
diff --git a/pages/basics/piking.vue b/pages/basics/piking.vue
deleted file mode 100644
index 7e52d73..0000000
--- a/pages/basics/piking.vue
+++ /dev/null
@@ -1,494 +0,0 @@
-<template>
- <view>
- <scroll-view scroll-y>
- <!-- <view class="pak-seach-box">
- <view class="box-top">
- <view class="color-block-blue"></view>
- <text class="title">閫夋嫨绔欏彴</text>
- </view>
- <view>
- <text class="item">鍑哄簱鍙�</text>
- <view class="example-body">
- <uni-combox @input="getCheckDetl" emptyTips="鏆傛棤鏁版嵁" :candidates="staNoList" v-model="staNo" placeholder="璇烽�夋嫨"></uni-combox>
- </view>
- </view>
- </view> -->
-
- <view class="square-2">
- <view class="square-title">
- <view class="title-sign"><view class="sign"></view></view>
- <view class="title-text"><text>鎵樼洏鏉$爜</text></view>
- </view>
- <view class="square-content">
- <view class="content-input">
- <input v-model="barcode" @input="search" type="text" placeholder="鎵爜 / 杈撳叆" maxlength="8"placeholder-style="line-height: 85rpx;">
- <uni-icons type="closeempty" size="20" color="#dadada" @click="removeBarcode" ></uni-icons>
- </view>
- </view>
- </view>
- <view class="pak-data-box">
- <view class="box-top">
- <view class="color-block-blue"></view>
- <text class="title">鍑哄簱鍟嗗搧</text>
- <!-- <button class="cu-btn bg-blue" @click="selectMat()">+ 娣诲姞</button> -->
- </view>
- </view>
- <view class="pak-data-box" v-show="matList.length === 0">
- <view style="text-align: center;">鏆傛棤鏇村鏁版嵁</view>
- </view>
- <checkbox-group>
- <view v-for="(item,index) in matList" :key="index" class="data-list bg-false" :class="'bg-'+item.checked" >
- <view class="data-list-left">
- <view class="matnr"><text style="width: 400rpx;">缂栫爜锛歿{item.matnr}}</text></view>
- <view><text style="width: 400rpx;">瑙勬牸锛歿{item.specs}}</text></view>
- <view><text style="width: 400rpx;">鍝佸悕锛歿{item.maktx}}</text></view>
- <view><text style="width: 400rpx;">鎵瑰彿锛歿{item.batch}}</text></view>
- <view><text style="width: 400rpx;">瀹㈡埛淇℃伅锛歿{item.cstmr}}</text></view>
- <view>
- <text style="width: 400rpx;">澶囨敞锛歿{item.memo}}</text>
- <text style="width: 400rpx;margin-left: 100rpx">鏁伴噺锛歿{item.anfme}}</text>
- </view>
- </view>
- <view class="data-list-right">
- <label><uni-icons type="compose" size="20" color="#a5a5a5" @click="revise(item,index)"></uni-icons></label>
- <label><uni-icons type="trash" size="25" color="#a5a5a5" @click="remove(item,index)"></uni-icons></label>
- </view>
- </view>
- </checkbox-group>
- <view class="footer flex justify-around">
- <view>
- <button class="cu-btn lg" @click="resst()">閲嶇疆</button>
- </view>
- <view>
- <button class="cu-btn lg pakin-btn bg-blue" @click="pickingToFull()">杞叏鏉垮嚭搴�</button>
- </view>
- </view>
- </scroll-view>
-
- <view>
- <!-- 淇敼鏁伴噺 -->
- <uni-popup ref="revise" @change="change">
- <view class="revise-box">
- <view class="revise-box-top">
- <view class="color-block-blue"></view>
- <text class="title">淇敼</text>
- </view>
- <view class="change">
- <view class="text-box">
- <text>鏁伴噺锛歿{enableQty}}</text>
- </view>
- <view class="changeBox">
- <view class="num-box">
- <uni-number-box v-model="count" :min="minCount" :max="maxCount" color="#747474" @change="changeValue"/>
- </view>
- </view>
- </view>
- <view class="revise-box-buttom">
- <view>
- <button class="cu-btn bg-blue" @click="confirm()">纭</button>
- </view>
- </view>
-
- </view>
- </uni-popup>
- </view>
- </view>
-</template>
-<script>
- export default {
- data() {
- return {
- commonUrl:null,
- matList:[],
- staNoList:[],
- barcode: '',
- staNo:'',
- matnr:'',
- enableQty:'',
- count:'',
- maxCount:'',
- minCount:0,
- rowNum:''
- }
- },
- mounted(){
- const UIP = uni.getStorageSync('UIP');
- this.baseIP = UIP;
- const UPORT = uni.getStorageSync('UPORT');
- this.basePORT = UPORT
- const PROJ = uni.getStorageSync('UPROJ');
- this.baseUrl = PROJ
- this.getUrl()
- this.getOutBound();
- },
- methods: {
- // 鑾峰彇url
- getUrl() {
- this.commonUrl = this.baseHttp + this.baseIP + ':' +this.basePORT + "/" +this.baseUrl
- },
- // 鏍规嵁鎵樼洏鐮佹悳绱�
- search() {
- let that = this
- uni.request({
- url: that.commonUrl + '/mobile/piking/auth',
- header: {
- 'token':uni.getStorageSync('token')
- },
- data: {barcode: that.barcode},
- method:'GET',
- success(result) {
- let res = result.data
- if(res.code === 200){
- for(var i = 0; i < res.data.length;i++){
- that.matList.push(res.data[i])
- }
- } else if (res.code == 403) {
- uni.showToast({title: res.msg, icon: "none", position: 'top'})
- setTimeout(() => {
- uni.reLaunch({
- url: '../login/login'
- });
- }, 1000);
- } else {
- uni.showToast({title: res.msg, icon: "none",position: 'top'})
- }
- }
-
- })
- },
- // 杞叏鏉垮嚭搴�
- pickingToFull() {
- console.log(this.barcode);
- let that = this
- uni.request({
- url: that.commonUrl + '/mobile/piking/to/full',
- header: {
- 'token':uni.getStorageSync('token')
- },
- data: {barcode: that.barcode},
- method: 'GET',
- success(result){
- let res = result.data
- if (res.code === 200) {
- uni.showToast({title: res.msg, icon: "none", position: 'top'})
- that.matList = []
- that.barcode = ''
- } else if (res.code == 403) {
- uni.showToast({title: res.msg, icon: "none", position: 'top'})
- setTimeout(() => {
- uni.reLaunch({
- url: '../login/login'
- });
- }, 1000);
- } else {
- uni.showToast({title: res.msg, icon: "none",position: 'top'})
- }
- }
- })
- },
- getOutBound() { // 鑾峰彇鍑哄簱鍙�
- let that = this
- uni.request({
- url: that.commonUrl + '/available/take/check/site',
- method: 'POST',
- header: {
- 'token':uni.getStorageSync('token')
- },
- success(result) {
- var res = result.data
- if (res.code === 200) {
- that.staNoList = res.data
- } else if (res.code == 403) {
- uni.showToast({title: res.msg, icon: "none", position: 'top'})
- setTimeout(() => {
- uni.reLaunch({
- url: '../login/login'
- });
- }, 1000);
- } else {
- uni.showToast({title: res.msg, icon: "none",position: 'top'})
- }
- },
- });
- }, // getOutBound
- getCheckDetl() { // 鑾峰彇鍑哄簱鍙h揣鐗╀俊鎭�
- let that = this
- uni.request({
- url: that.commonUrl + '/mobile/checkDetl/auth',
- method: 'POST',
- data: {
- staNo:that.staNo
- },
- header: {
- 'token':uni.getStorageSync('token')
- },
- success(result) {
- var res = result.data
- console.log(result)
- if (res.code === 200) {
- console.log(res.data)
- } else if (res.code == 403) {
- uni.showToast({title: res.msg, icon: "none", position: 'top'})
- setTimeout(() => {
- uni.reLaunch({
- url: '../login/login'
- });
- }, 1000);
- } else {
- uni.showToast({title: res.msg, icon: "none",position: 'top'})
- }
- },
- });
- }, // getCheckDetl
- selectMat() { // 閫夋嫨鍟嗗搧
- let that = this
- uni.vibrateShort();
- uni.navigateTo({
- url: "matSelect",
- events: {
- // 涓烘寚瀹氫簨浠舵坊鍔犱竴涓洃鍚櫒锛岃幏鍙栬鎵撳紑椤甸潰浼犻�佸埌褰撳墠椤甸潰鐨勬暟鎹�
- acceptDataFromOpenedPage: function(data) {
- that.matnr = data.data
- that.findMat(that.matnr)
- },
- },
- success: function(res) {
- // 閫氳繃eventChannel鍚戣鎵撳紑椤甸潰浼犻�佹暟鎹�
- res.eventChannel.emit('acceptDataFromOpenerPage', {baseIP:that.baseIP, basePORT:that.basePORT })
- }
- });
- that.matnr = ''
- }, // selectMat
- findMat() {
- let that = this
- uni.request({
- url: that.commonUrl + '/mat/auth',
- data: {
- matnr:that.matnr
- },
- header: {
- 'token':uni.getStorageSync('token')
- },
- success(result) {
- uni.vibrateShort();
- let res = result.data
- if (res.code === 200 && res.data) {
- that.matData = res.data
- uni.navigateTo({
- url: "matQuery",
- events: {
- // 涓烘寚瀹氫簨浠舵坊鍔犱竴涓洃鍚櫒锛岃幏鍙栬鎵撳紑椤甸潰浼犻�佸埌褰撳墠椤甸潰鐨勬暟鎹�
- matList: function(data) {
- that.matList.push(data.data)
- },
- },
- success: function(res) {
- // 閫氳繃eventChannel鍚戣鎵撳紑椤甸潰浼犻�佹暟鎹�
- res.eventChannel.emit('matData', { data: that.matData })
- }
- });
- }
-
- }
- });
- }, // findMat
- revise(item,index) {
- var maxCount = this.matList[index].maxCount
- if (maxCount == undefined ) {
- this.matList[index]["maxCount"] = item.enableQty
- }
- this.enableQty = item.enableQty
- this.count = this.minCount
- this.maxCount = item.maxCount
- this.rowNum = index
- this.eject()
- },
- remove(item,index) {
- this.matList.splice(index,1)
- uni.vibrateShort();
- },
- eject(type) {
- this.type = type
- // open 鏂规硶浼犲叆鍙傛暟 绛夊悓鍦� uni-popup 缁勪欢涓婄粦瀹� type灞炴��
- this.$refs.revise.open(type)
- },
- change(e) {
- // console.log('褰撳墠妯″紡锛�' + e.type + ',鐘舵�侊細' + e.show);
- },
- changeValue() {
-
- },
- confirm() {
- this.matList[this.rowNum].anfme = this.count
- this.$refs.revise.close()
- },
- resst() {
- this.matList = []
- this.barcode = ''
- },
- adjust() {
- let that = this
- uni.request({
- url: that.commonUrl + '/adjust/auth',
- method: 'POST',
- data: {
- combParam: that.matList
- },
- header: {
- 'token':uni.getStorageSync('token')
- },
- success(result) {
- var res = result.data
- console.log(result)
- if (res.code === 200) {
-
- } else if (res.code == 403) {
- uni.showToast({title: res.msg, icon: "none", position: 'top'})
- setTimeout(() => {
- uni.reLaunch({
- url: '../login/login'
- });
- }, 1000);
- } else {
- uni.showToast({title: res.msg, icon: "none",position: 'top'})
- }
- },
- });
- },
- removeBarcode() {
- this.barcode = ''
- }
- } // methods
- } // exprot
-</script>
-<style>
- .revise-box {
- width: 500rpx;
- height: 300rpx;
- display: flex;
- flex-direction: column;
- border-radius: 20rpx;
- background-color: #fff;
- }
- .change {
- height: 150rpx;
- display: flex;
- align-items: center;
- justify-content: center;
- }
- .revise-box-buttom {
- display: flex;
- align-items: center;
- justify-content: center;
- }
- .pak-seach-box {
- background-color: #FFFFFF;
- margin: 15rpx 15rpx 0rpx 15rpx;
- width: 96%;
- height: 200rpx;
- border-radius: 20rpx;
- }
- .box-top{
- display: block;
- height: 80rpx;
- width: 720rpx;
- }
- .color-block-blue {
- background-color: #1E9FFF;
- display: inline-block;
- float: left;
- margin: 30rpx 15rpx 0 15rpx;
- width: 12rpx;
- height: 40rpx;
- border: 5rpx solid #1E9FFF;
- border-radius: 20rpx;
- }
- .title {
- display: inline-block;
- float: left;
- font-size: 34rpx;
- font-weight: 700;
- height: 50rpx;
- line-height: 80rpx;
- margin-top: 10rpx;
- }
- .item {
- text-indent: 1em;
- font-size: 16px;
- display: inline-block;
- margin-top: 40rpx;
- }
- .example-body {
- position: fixed;
- display: inline-block;
- margin-top: 3.5%;
- margin-left: 5%;
- width: 70%;
- z-index: 999;
- }
-
- .pak-data-box {
- background-color: #F1F1F1;
- margin: 15rpx 15rpx 0rpx 15rpx;
- width: 96%;
- height: 100rpx;
- border-radius: 20rpx;
- line-height: 100rpx;
- }
- .pak-data-box>.box-top {
- background-color: #FFFFFF;
- height: 100rpx;
- border-radius: 20rpx 20rpx 20rpx 20rpx;
- }
- .pak-data-box button {
- background-color: #1E9FFF;
- color: #ffffff;
- display: inline-block;
- float: right;
- width: 150rpx;
- height: 80rpx;
- margin: 10rpx 25rpx 0rpx 0rpx;
- line-height: 80rpx;
- }
- .bg-false {
- background-color: #FFFFFF;
- }
- .bg-true {
- background-color: #ebebeb;
- }
- .data-list {
- border-bottom: 1px solid #d8d8d8;
- height: 240rpx;
- margin: 15rpx;
- border-radius: 20rpx;
- }
- .data-list:first-child {
- margin-top: 20rpx;
- }
- .data-list:last-child {
- margin-bottom: 180rpx;
- }
- .data-list-left {
- display: inline-block;
- float: left;
- margin-left: 6%;
- height: 240rpx;
- color: #676767;
- }
- .matnr {
- padding-top: 10rpx;
- }
- .data-list-right {
- display: inline-block;
- float: right;
- width: 200rpx;
- height: 240rpx;
- line-height: 240rpx;
- }
- .data-list-right label {
- display: inline-block;
- float: left;
- width: 100rpx;
- height: 180rpx;
- }
-</style>
\ No newline at end of file
diff --git a/pages/basics/putOnSale.vue b/pages/basics/putOnSale.vue
deleted file mode 100644
index a60a8e6..0000000
--- a/pages/basics/putOnSale.vue
+++ /dev/null
@@ -1,330 +0,0 @@
-<template>
- <view>
- <!-- 搴撲綅鍙疯緭鍏ユ -->
- <view class="square-2">
- <view class="square-title">
- <view class="title-sign"><view class="sign"></view></view>
- <view class="title-text"><text>搴撲綅鍙�</text></view>
- </view>
- <view class="square-content">
- <view class="content-input">
- <input type="text" v-model="locno" placeholder="鎵爜 / 杈撳叆" :focus="locnoFocus">
- <uni-icons v-show="locno" type="closeempty" size="20" color="#dadada" @click="remove('locno')"></uni-icons>
- </view>
- </view>
- </view>
- <!-- 鍟嗗搧鐮佽緭鍏ユ -->
- <view class="square-2">
- <view class="square-title">
- <view class="title-sign"><view class="sign"></view></view>
- <view class="title-text"><text>妫�绱㈠晢鍝�</text></view>
- </view>
- <view class="square-content">
- <view class="content-input-btn">
- <input v-model="matnr" type="text" placeholder="鎵爜 / 杈撳叆" @input="findMat()"
- :focus="matnrFocus" placeholder-style="line-height: 85rpx;">
- <uni-icons v-show="matnr" type="closeempty" size="20" color="#dadada" @click="remove('matnr')"></uni-icons>
- </view>
- <view class="content-btn">
- <button class="cu-btn bg-blue pda-btn" @click="selectMat()">+鎻愬彇</button>
- </view>
- </view>
- </view>
-
- <!-- 鍟嗗搧鍒楄〃琛ㄥご -->
- <view class="square-1">
- <view class="square-title">
- <view class="title-sign"><view class="sign"></view></view>
- <view class="title-text"><text>鍟嗗搧鍒楄〃</text></view>
- </view>
- </view>
-
- <view class="square-none" v-show="matList.length == 0">
- <view class="v-show">鏆傛棤鏇村鏁版嵁...</view>
- </view>
-
- <checkbox-group>
- <view v-for="(item,index) in matList" :key="index" class="data-list bg-false" :class="'bg-'+item.checked" >
- <view class="data-list-left">
- <view class="matnr"><text style="width: 400rpx;">缂栫爜锛歿{item.matnr}}</text></view>
- <view><text style="width: 400rpx;">鍝佸悕锛歿{item.maktx}}</text></view>
- <view><text style="width: 400rpx;">鎵瑰彿锛歿{item.batch}}</text></view>
- <view>
- <text style="width: 400rpx;">鏁伴噺锛歿{item.anfme}}</text>
- </view>
- </view>
- <view class="data-list-right">
- <label><uni-icons type="compose" size="20" color="#a5a5a5" @click="revise(item,index)"></uni-icons></label>
- <label><uni-icons type="trash" size="25" color="#a5a5a5" @click="removeItem(item,index)"></uni-icons></label>
- </view>
- </view>
- </checkbox-group>
-
- <!-- 搴曢儴鎸夐挳 -->
- <view class="footer flex justify-around">
- <!-- <label class="label-btn" style="width: 170rpx;">
- <checkbox :checked="check" @click="allChecked()">{{checkText}}</checkbox>
- </label>
- <label class="label-btn" style="width: 100rpx;">
- <text @click="reChecked()">鍙嶉��</text>
- </label> -->
-
- <label class="label-btn" style="width: 150rpx;">
- <button class="cu-btn" @click="resst()">閲嶇疆</button>
- </label>
- <label class="label-btn">
- <button class="cu-btn bg-blue " @click="comb()">涓婃灦</button>
- </label>
- </view>
- <view>
- <!-- 鎻愮ず淇℃伅寮圭獥 -->
- <uni-popup ref="message" type="message">
- <uni-popup-message :type="msgType" :message="messageText" :duration="2000"></uni-popup-message>
- </uni-popup>
- </view>
-
- <!-- 寮圭獥 -->
- <!-- 淇敼鏁伴噺 -->
- <uni-popup ref="revise" background-color="#fff">
- <view class="revise-box">
- <view class="revise-box-top">
- <view class="color-block-blue"></view>
- <text class="title">淇敼鎵瑰彿/鏁伴噺</text>
- </view>
- <view class="" style="position: relative;left: 50px;margin-bottom: 20px;">
- <text style="display: inline-block;float: left;width: 50px;">鎵瑰彿锛�</text>
- <input type="text" style="width: 100px;border-bottom: 1px solid #9e9e9e;" v-model="batch">
- </view>
- <view class="changeBox">
- <view class="num-box">
- <uni-number-box :value="count" :max="9999" color="#747474" @change="changeValue"/>
- </view>
- </view>
- <view class="revise-box-buttom">
- <view>
- <button class="cu-btn bg-blue" @click="confirm()">纭</button>
- </view>
- </view>
- </view>
- </uni-popup>
- </view>
-</template>
-
-<script>
- export default {
- data() {
- return {
- locno:'', // 搴撲綅鍙�
- matnr:'', // 鍟嗗搧鐮�
- locnoFocus:true,
- matnrFocus:true,
- matList:[], // 鍟嗗搧鍒楄〃
- listLen:0,
- listNum:1,
- msgType: 'success',
- messageText: '杩欐槸涓�鏉℃垚鍔熸彁绀�',
- count:'',
- rowNum:'',
- batch:''
- }
- },
- mounted(){
- const UIP = uni.getStorageSync('UIP');
- this.baseIP = UIP;
- const UPORT = uni.getStorageSync('UPORT');
- this.basePORT = UPORT
- const PROJ = uni.getStorageSync('UPROJ');
- this.baseUrl = PROJ
- this.getUrl()
- },
- methods:{
- // 鑾峰彇url
- getUrl() {
- this.commonUrl = this.baseHttp + this.baseIP + ':' +this.basePORT + "/" +this.baseUrl
- },
- // 娑堟伅鎻愮ず寮圭獥
- messageToggle(type) {
- this.msgType = type
- this.messageText = ''
- this.$refs.message.open()
- },
- // 娓呯┖input
- remove(e) {
- this[e] = ''
- },
- // 閲嶇疆
- resst() {
- this.locno = ''
- this.matnr = ''
- this.matList = []
- },
- findMat() {
- let that = this
- uni.request({
- url: that.commonUrl + '/mat/auth',
- data: {
- matnr:that.matnr
- },
- header: {
- 'token':uni.getStorageSync('token')
- },
- success(result) {
- uni.vibrateShort();
- let res = result.data
- if (res.code === 200 && res.data) {
- that.matData = res.data
- that.matnr = ''
- uni.navigateTo({
- url: "matQuery",
- events: {
- // 涓烘寚瀹氫簨浠舵坊鍔犱竴涓洃鍚櫒锛岃幏鍙栬鎵撳紑椤甸潰浼犻�佸埌褰撳墠椤甸潰鐨勬暟鎹�
- matList: function(data) {
- console.log(data)
- that.matList.push(data.data)
- },
- },
- success: function(res) {
- // 閫氳繃eventChannel鍚戣鎵撳紑椤甸潰浼犻�佹暟鎹�
- res.eventChannel.emit('matData', { data: that.matData })
- },
- });
- }
-
- }
- });
-
- },
- // 绉婚櫎鐗╂枡
- removeItem(item,index) {
- this.matList.splice(index,1)
- // this.listLen = this.matList.length
- this.messageToggle('success')
- this.messageText = '绉婚櫎鎴愬姛'
- },
- // 涓婃灦
- comb() {
- let that = this
- if(that.locno === '') {
- uni.showToast({title: '璇锋坊鍔犲簱浣嶇爜', icon: "none", position: 'top'});
- return;
- }
- if(that.matList.length === 0) {
- uni.showToast({title: '璇锋坊鍔犲晢鍝�', icon: "none", position: 'top'});
- return;
- }
- var combMats = []
- var combParam = {}
- combParam['locno'] = that.locno
- combParam['combMats'] = that.matList
- uni.request({
- url: that.commonUrl + '/mobile/mat/onSale/auth',
- data: JSON.stringify(combParam),
- header: { 'token':uni.getStorageSync('token'),},
- method:'POST',
- success(result) {
- var res = result.data
- if (res.code === 200) {
- uni.showToast({title: res.msg, icon: "none", position: 'top'});
- that.resst()
- } else if(res.code === 403) {
- uni.showToast({title: res.msg, icon: "none", position: 'top'})
- setTimeout(() => {
- uni.reLaunch({
- url: '../login/login'
- });
- }, 1000);
- } else {
- uni.showToast({title: res.msg, icon: "none",position: 'top'})
- }
- }
- })
- },
- // 鎻愬彇鍟嗗搧
- selectMat() {
- let that = this
- uni.vibrateShort();
- uni.navigateTo({
- url: "matSelect",
- events: {
- // 涓烘寚瀹氫簨浠舵坊鍔犱竴涓洃鍚櫒锛岃幏鍙栬鎵撳紑椤甸潰浼犻�佸埌褰撳墠椤甸潰鐨勬暟鎹� 鍙﹀涓�涓〉闈紶杩囨潵鐨�
- acceptDataFromOpenedPage: function(data) {
- that.matnr = data.data
- that.findMat(that.matnr)
- },
- },
- success: function(res) {
- // 閫氳繃eventChannel鍚戣鎵撳紑椤甸潰浼犻�佹暟鎹� 鍚戝彟澶栦竴涓〉闈紶閫掑�肩殑
- res.eventChannel.emit('commonUrl', {commonUrl:that.commonUrl })
- },
-
- });
- that.matnr = ''
- },
- revise(item,index) {
- this.count = this.matList[index].anfme
- this.rowNum = index
- this.eject()
- },
- eject(type) {
- this.type = type
- // open 鏂规硶浼犲叆鍙傛暟 绛夊悓鍦� uni-popup 缁勪欢涓婄粦瀹� type灞炴��
- this.$refs.revise.open(type)
- },
- changeValue(value) {
- this.count = value
- },
- confirm() {
- this.matList[this.rowNum].anfme = this.count
- this.matList[this.rowNum].batch = this.batch
- this.$refs.revise.close()
- this.$forceUpdate() // 寮哄埗鍒锋柊
- },
-
- }
- }
-</script>
-
-<style>
- @import url(@/static/css/putOnSale.css);
- .footer {
- width: 100%;
- height: 100rpx;
- line-height: 100rpx;
- background-color: #FFF;
- position: fixed;
- bottom: 0;
- border-top: 1px solid #d8d8d8;
- border-radius: 20rpx 20rpx 0 0 ;
- z-index: 1;
- }
- .revise-box {
- position: relative;
- width: 500rpx;
- height: 400rpx;
- border-radius: 25px;
- }
- .revise-box-top {
- width: 400rpx;
- height: 120rpx;
- border-radius: 25px;
- }
- .color-block-blue {
- background-color: #1E9FFF;
- display: inline-block;
- float: left;
- margin: 15rpx 15rpx 0 15rpx;
- width: 12rpx;
- height: 40rpx;
- border: 5rpx solid #1E9FFF;
- border-radius: 20rpx;
- }
- .title {
- display: inline-block;
- float: left;
- font-size: 34rpx;
- font-weight: 700;
- height: 50rpx;
- line-height: 50rpx;
- margin-top: 10rpx;
- }
-</style>
\ No newline at end of file
diff --git a/pages/basics/saless.vue b/pages/basics/saless.vue
deleted file mode 100644
index 653efe9..0000000
--- a/pages/basics/saless.vue
+++ /dev/null
@@ -1,341 +0,0 @@
-<template>
- <view>
- <scroll-view scroll-y>
- <view>
- <view class="search-box">
- <view class="search-area">
- <view class="search-icon"><uni-icons type="search" size="25" color="#a5a5a5"></uni-icons></view>
- <input type="text" v-model="orderNo" placeholder="鎵爜 / 杈撳叆(璁㈠崟缂栧彿)" @input="search()"/>
- <view class="close-icon" @click="reset()"><uni-icons type="closeempty" size="25" color="#a5a5a5"></uni-icons></view>
- </view>
- </view>
- <checkbox-group @change="checkbox">
- <label v-for="(item,index) in data" :key="index" class="demo-list bg-false" :class="'bg-'+item.checked" >
- <view class="demo-list-left">
- <checkbox :value="item.id+''" :checked="item.checked" style="display: block;" />
- </view>
- <view class="demo-list-right">
- <!-- <view><text style="font-weight: bold;">搴忓彿锛歿{index+1}}</text></view> -->
- <view class="order-ditel"><text class="index">No.{{index+1}}</text><text class="orderNo">{{item.orderNo}}</text></view>
- <view><text style="width: 400rpx;">鍟嗗搧缂栫爜锛歿{item.matnr}}</text></view>
- <view>
- <text>搴斿叆鏁伴噺锛歿{item.anfme}}</text>
- <text>鍟嗗搧鍚嶇О锛歿{item.maktx}}</text>
- </view>
- <view>
- <text>宸插叆鏁伴噺锛歿{item.inQty}}</text>
- <text style="width: auto;">璁㈠崟鐘舵�侊細</text><text :class="state$"> {{item.state$}}</text>
- </view>
- </view>
- </label>
- </checkbox-group>
- </view>
- </scroll-view>
- <view class="footer flex justify-around">
- <label class="label-btn" style="width: 150rpx;">
- <checkbox :checked="check" @click="allChecked()">{{checkText}}</checkbox>
- </label>
- <label class="label-btn" style="width: 100rpx;">
- <text @click="reChecked()">鍙嶉��</text>
- </label>
-
- <label class="label-btn" style="width: 170rpx;">
- <button class="cu-btn bg-red ">鎾ら攢涓婃灦</button>
- </label>
- <label class="label-btn">
- <button class="cu-btn bg-blue " @click="shangjia()">涓婃灦</button>
- </label>
- </view>
- </view>
-</template>
-
-<script>
- export default {
- data() {
- return {
- data: [],
- orderNo:'',
- needData:{},
- check:false,
- checkText:'鍏ㄩ��',
- checkedData:[],
- state$:'',
- }
- },
- mounted() {
- const UIP = uni.getStorageSync('UIP');
- this.baseIP = UIP;
- const UPORT = uni.getStorageSync('UPORT');
- this.basePORT = UPORT;
- this.render()
- },
- methods: {
- // 鎼滅储
- search() {
- let that = this;
- // that.tabData.forEach(function(e){
- // that.searchData = e.orderNo
- // })
- this.render(that.orderNo)
- },
- // 閲嶇疆
- reset() {
- let that = this;
- if (that.orderNo == '') {
- uni.vibrateShort();
- } else {
- uni.vibrateLong();
- }
- that.orderNo = '';
- that.needData['order_no'] = '';
- that.getData();
-
-
- },
- // 琛ㄦ牸鍔犺浇
- render(param) {
- let that = this;
- if(param) {
- that.needData['order_no'] = param;
- that.getData();
- } else {
- that.getData();
- }
- },
- getData() {
- let that = this
- uni.request({
- url: that.baseHttp + that.baseIP + ':' +that.basePORT + that.baseUrl + "/receiveDetl/list/auth",
- header:{'token':uni.getStorageSync('token')},
- data: that.needData,
- success(res) {
- var res = res.data
- if (res.code === 200) {
- that.data = res.data.records
- }
- for (var i = 0; i < that.data.length; i++) {
- if (that.data[i].state$ == "鏈叆搴�") {
- that.state$ = 'color-red'
- } else {
- console.log(2)
- }
-
- }
- }
- })
- },
- checkbox: function (e) {
- var items = this.data,
- values = e.detail.value;
- for (var i = 0, lenI = items.length; i < lenI; ++i) {
- const item = items[i]
- item.id = item.id + ''
- if(values.indexOf(item.id) >= 0){
- this.$set(item,'checked',true)
- }else{
- this.$set(item,'checked',false)
- }
- }
- if (values.length == items.length) {
- this.check = true
- this.checkText = "鍙栨秷鍏ㄩ��"
- } else {
- this.check = false
- this.checkText = "鍏ㄩ��"
- }
- uni.vibrateShort();
- },
- reChecked() { // 鍙嶉��
- var checkArr = []
- for (var i = 0; i < this.data.length;i++) {
- if (this.data[i].checked == true) {
- this.$set(this.data[i],'checked',false)
- }else{
- this.$set(this.data[i],'checked',true)
- }
- if (this.data[i].checked == true) {
- checkArr.push(this.data[i].checked)
- }
- }
- if (checkArr.length == this.data.length) {
- this.check = true
- this.checkText = "鍙栨秷鍏ㄩ��"
- } else {
- this.check = false
- this.checkText = "鍏ㄩ��"
- }
- uni.vibrateShort();
- },
- allChecked(e){ // 鍏ㄩ��
- if (this.check == true) {
- for (var i = 0; i < this.data.length;i++) {
- this.$set(this.data[i],'checked',false)
- }
- this.check = false
- this.checkText = "鍏ㄩ��"
- } else {
- for (var i = 0; i < this.data.length;i++) {
- this.$set(this.data[i],'checked',true)
- }
- this.check = true
- this.checkText = "鍙栨秷鍏ㄩ��"
- }
- uni.vibrateShort();
- },
- shangjia() {
- this.checkedData = []
- for (var i = 0; i < this.data.length; i++) {
- if (this.data[i].checked == true) {
- this.checkedData.push(this.data[i])
- }
- }
- uni.vibrateShort();
- console.log(this.checkedData)
- }
- }
- }
-</script>
-
-<style>
- .search-box {
- position: fixed;
- left: 0;
- top: 0;
- width: 100%;
- height: 100rpx;
- background-color: #FFF;
- border-bottom: 1px solid #d8d8d8;
- border-radius: 0 0 20rpx 20rpx;
- z-index: 1;
- }
- /*#ifdef H5 */
- .search-box {
- position: fixed;
- left: 0;
- top: 60rpx;
- width: 100%;
- height: 100rpx;
- background-color: #ffffff;
- border-bottom: 1px solid #d8d8d8;
- border-radius: 0 0 20rpx 20rpx;
- z-index: 1;
- }
- /* #endif */
- .search-area {
- background-color: #F1F1F1;
- width: 96%;
- height: 70%;
- margin: 15rpx;
- border-radius: 15rpx;
- }
- .search-area input {
- display: inline-block;
- height: 70rpx;
- width: 70%;
- line-height: 70rpx;
- font-size: 25rpx;
- font-weight: 400;
- }
- .search-icon {
- display: inline-block;
- float: left;
- width: 70rpx;
- height: 70rpx;
- text-align: center;
- line-height: 70rpx;
-
- }
- .close-icon {
- display: inline-block;
- float: right;
- width: 70rpx;
- height: 70rpx;
- text-align: center;
- line-height: 70rpx;
- }
- .bg-false {
- background-color: #FFFFFF;
- }
- .bg-true {
- background-color: #ebebeb;
- }
-
- .demo-list {
- border-bottom: 1px solid #d8d8d8;
- height: 180rpx;
- margin: 15rpx;
- border-radius: 20rpx;
- }
- .demo-list:first-child {
- margin-top: 120rpx;
- }
- .demo-list:last-child {
- margin-bottom: 120rpx;
- }
- label {
- display: block;
- }
- .demo-list-left {
- display: inline-block;
- float: left;
- text-align: center;
- width: 100rpx;
- height: 180rpx;
- line-height: 180rpx;
- }
- .demo-list-right {
- display: inline-block;
- float: left;
- height: 180rpx;
- color: #828282;
- }
- .order-ditel {
- height: 60rpx;
- width: 600rpx;
- line-height: 60rpx;
- }
-
- .demo-list-right .index {
- width: 120rpx;
- height: 25rpx;
- line-height: 25rpx;
- font-size: 40rpx;
- border-right: 4rpx solid #6f6f6f;
- padding-left: 0px;
- padding-right: 10rpx;
- color: #3b3b3b;
- /* background-color: #007AFF; */
- }
- .demo-list-right .orderNo {
- padding-left: 30rpx;
- font-size: 35rpx;
- width: 400rpx;
- color: #3b3b3b;
- /* background-color: #0A98D5; */
- }
- .demo-list-right .vertical-bar { // 绔栨潬
- /* background-color: #6739B6; */
- width: 50rpx;
- font-size: 30rpx;
- text-align: center;
- }
- .demo-list-right text {
- display: inline-block;
- width: 250rpx;
- font-size: 25rpx;
- }
- .color-red {
- width: auto;
- font-weight: 700;
- color: #e74f4f;
- }
-
-
- .label-btn {
- width: 150rpx;
- }
- checkbox {
- /* transform:scale(0.7) */
- }
-
-</style>
diff --git a/pages/basics/stoOut.vue b/pages/basics/stoOut.vue
deleted file mode 100644
index 743467f..0000000
--- a/pages/basics/stoOut.vue
+++ /dev/null
@@ -1,346 +0,0 @@
-<template>
- <view>
- <view class="square-2">
- <view class="square-title">
- <view class="title-sign"><view class="sign"></view></view>
- <view class="title-text"><text>搴撲綅鍙风爜</text></view>
- </view>
- <view class="square-content">
- <view class="content-input">
- <input type="text" v-model="locNo" placeholder="鎵爜 / 杈撳叆" @input="searchLocNo" placeholder-style="line-height: 85rpx;">
- <uni-icons type="closeempty" size="20" color="#dadada" @click="removeLocNo"></uni-icons>
- </view>
- </view>
- </view>
- <view class="square-2">
- <view class="square-title">
- <view class="title-sign"><view class="sign"></view></view>
- <view class="title-text"><text>鍑哄簱鍙�</text></view>
-
- </view>
- <view class="content-combox">
- <uni-combox emptyTips="鏆傛棤鏁版嵁"
- :candidates="sites" v-model="siteId" @click="staNoSelect()" placeholder="璇烽�夋嫨鍑哄簱绔欑偣">
- </uni-combox>
- </view>
- </view>
-
- <view class="square-1">
- <view class="square-title">
- <view class="title-sign"><view class="sign"></view></view>
- <view class="title-text"><text>鍟嗗搧鍒楄〃</text></view>
- </view>
-
- </view>
-
- <view class="square-none" v-show="matList.length === 0">
- <view class="v-show">鏆傛棤鏇村鏁版嵁...</view>
- </view>
-
- <checkbox-group @change="checkbox">
- <view v-for="(item,index) in matList" :key="index" class="data-list bg-false" :class="'bg-'+item.checked" >
- <!-- <label class="left-check-box">
- <checkbox :value="item.id+''" :checked="item.checked" style="display: block;" />
- </label> -->
- <view class="data-list-left">
- <view class="matnr"><text style="width: 700rpx;">缂栫爜锛歿{item.matnr}}</text></view>
- <view><text style="width: 700rpx;">鍝佸悕锛歿{item.maktx}}</text></view>
- <view><text style="width: 700rpx;">鎵瑰彿锛歿{item.batch}}</text></view>
- <view>
- <text style="width: 700rpx;">鏁伴噺锛歿{item.anfme}}</text>
- </view>
- </view>
- <view class="data-list-right">
- <!-- <label><uni-icons type="compose" size="20" color="#a5a5a5" @click="revise(item,index)"></uni-icons></label> -->
- <!-- list涓垹闄ら敭 -->
- <!-- <label><uni-icons type="trash" size="25" color="#a5a5a5" @click="remove(item,index)"></uni-icons></label> -->
- </view>
- </view>
- </checkbox-group>
- <!-- <view style="margin-top: 10px;">
- <uni-table ref="table" border stripe emptyText="鏆傛棤鏇村鏁版嵁">
- <uni-tr>
- <uni-th align="center" width="50">鍑哄簱鏁伴噺</uni-th>
- <uni-th align="center" width="70">浜у搧ID</uni-th>
- <uni-th align="center" width="80">浜у搧浠e彿</uni-th>
- <uni-th align="center" width="70">浜у搧鍚嶇О</uni-th>
- </uni-tr>
- <uni-tr v-for="(item, index) in matList" :key="index">
- <uni-td align="center">{{item.qty}}</uni-td>
- <uni-td align="center">{{item.matNo}}</uni-td>
- <uni-td align="center">{{item.size}}</uni-td>
- <uni-td align="center">{{item.matName}}</uni-td>
- </uni-tr>
- </uni-table>
- </view> -->
-
- <!-- 搴曢儴鎸夐挳 -->
- <view class="footer flex justify-around">
- <!-- 搴曢儴鍏ㄩ�� 鍙嶉�夋寜閽� -->
- <!-- <label class="label-btn" style="width: 170rpx;">
- <checkbox :checked="check" @click="allChecked()">{{checkText}}</checkbox>
- </label>
- <label class="label-btn" style="width: 100rpx;">
- <text @click="reChecked()">鍙嶉��</text>
- </label> -->
-
- <label class="label-btn" style="width: 150rpx;">
- <button class="cu-btn" @click="resst()">閲嶇疆</button>
- </label>
- <label class="label-btn">
- <button class="cu-btn bg-blue " @click="outbound()">鍚姩鍑哄簱</button>
- </label>
- </view>
-
- </view>
-</template>
-
-<script>
- export default {
- data() {
- return {
- locNo: null,
- matList: [],
- sites: [],
- siteId: ''
- }
- },
- mounted(){
- const UIP = uni.getStorageSync('UIP');
- this.baseIP = UIP;
- const UPORT = uni.getStorageSync('UPORT');
- this.basePORT = UPORT;
- this.staNoSelect();
- },
- methods: {
- // 娓呯┖鍗曞彿鎼滅储妗�
- removeLocNo() {
- this.locNo = null
- },
- searchLocNo() {
- let that = this;
- uni.request({
- url: that.baseHttp + that.baseIP + ':' +that.basePORT + that.baseUrl + "/locDetl/list/auth",
- header: {
- 'content-type':"application/x-www-form-urlencoded",
- 'token':uni.getStorageSync('token')
- },
- data: {
- curr:1,
- limit:10,
- // typeCode:1,
- loc_no: that.locNo
- },
- method:"POST",
- success(result) {
- console.log(result)
- let res = result.data
- if (res.code === 200 ) {
- that.matList = res.data.records
- that.staNoSelect()
- } else if (res.code == 403) {
- uni.showToast({title: res.msg, icon: "none", position: 'top'})
- setTimeout(() => {
- uni.reLaunch({
- url: '../login/login'
- });
- }, 1000);
- } else {
- uni.showToast({title: res.msg, icon: "none",position: 'top'})
- }
- },
- })
- },
- staNoSelect() {
- let that = this;
- uni.request({
- url: that.baseHttp + that.baseIP + ':' +that.basePORT + that.baseUrl + "/available/take/site",
- header: {'token':uni.getStorageSync('token')},
- success(result) {
- let res = result.data
- if (res.code === 200 ) {
- that.sites = [];
- for (var i = 0; i < res.data.length; i++) {
- that.sites.push(res.data[i].desc)
- }
- } else if (res.code == 403) {
- uni.showToast({title: res.msg, icon: "none", position: 'top'})
- setTimeout(() => {
- uni.reLaunch({
- url: '../login/login'
- });
- }, 1000);
- } else {
- uni.showToast({title: res.msg, icon: "none",position: 'top'})
- }
- }
- })
- },
- outbound() {
- let that = this
- if (that.matList.length === 0) {
- uni.showToast({title: "璇烽�夋嫨鍑哄簱鍙�", icon: "none",position: 'top'})
- } else {
- if (that.siteId == '') {
- uni.showToast({title: "璇烽�夋嫨鍑哄簱鍙�", icon: "none",position: 'top'})
- return;
- }
- };
- var staNo = that.siteId.substring(0,3)
- var locDetls = [];
- that.matList.forEach(function(elem) {
- console.log(elem)
- locDetls.push({locNo:elem.locNo,matnr:elem.matnr, batch: elem.batch, count: elem.anfme,});
- });
- let param = {
- outSite: staNo,
- locDetls: locDetls
- }
- uni.request({
- url: that.baseHttp + that.baseIP + ':' +that.basePORT + that.baseUrl + "/plate/out/start",
- header: {
- 'token':uni.getStorageSync('token')},
- data: JSON.stringify(param),
- method:"POST",
- success(result) {
- console.log(result)
- if (result.data.code === 200) {
- uni.showToast({title: result.data.msg, icon: "none",position: 'top'})
- that.resst()
- } else {
- uni.showToast({title: result.data.msg, icon: "none",position: 'top'})
- }
- }
- })
- },
- resst() {
- this.billNo = '';
- this.matList = [];
- this.siteId = '';
- }
- }
- }
-</script>
-
-<style>
- .pda-btn1 {
- margin-left:260rpx;
- margin-right: auto;
- margin-top: 150rpx;
- width: 200rpx;
- height: 80rpx;
- font-size: 30upx;
- font-weight: bold;
- }
- .combox {
- width: 200px;
- padding: 12px;
- }
- .bg-false {
- background-color: #FFFFFF;
- }
- .bg-true {
- background-color: #ebebeb;
- }
- .data-list {
- border-bottom: 1px solid #d8d8d8;
- height: 180rpx;
- width: 94%;
- margin: 15rpx auto 15rpx auto;
- border-radius: 20rpx;
- }
- .data-list:first-child {
- margin-top: 20rpx;
- }
- .data-list:last-child {
- margin-bottom: 160rpx;
- }
- /* .data-list-left {
- display: inline-block;
- float: left;
- text-align: center;
- width: 100rpx;
- height: 180rpx;
- line-height: 180rpx;
- } */
- .left-check-box {
- display: inline-block;
- /* background-color: #1E9FFF; */
- float: left;
- height: 100%;
- width: 100rpx;
- text-align: center;
- line-height: 170rpx;
- }
- .data-list-left {
- /* background-color: #ffff7f; */
- display: inline-block;
- float: left;
- height: 180rpx;
- width: 500rpx;
- color: #676767;
- text-indent: 20rpx;
- }
- .matnr {
- padding-top: 10rpx;
- }
- .data-list-right {
- /* background-color: #55ffff; */
- display: inline-block;
- float: right;
- width: 100rpx;
- height: 180rpx;
- line-height: 180rpx;
- }
- .data-list-right label {
- display: inline-block;
- float: left;
- width: 100rpx;
- height: 180rpx;
- }
- .revise-box {
- width: 500rpx;
- height: 500rpx;
- }
- .revise-box-top {
- width: 100%;
- height: 100rpx;
- background-color: #fff;
- padding: 10rpx;
- }
- .changeBox {
- width: 100%;
- height: 100rpx;
- line-height: 120rpx;
- text-align: center;
- background-color: #FFF;
- margin-top: 20rpx;
- border-bottom: 1px solid #e3e3e3;
- }
- .text-box {
- width: 100%;
- height: 100rpx;
- line-height: 120rpx;
- text-align: center;
- /* padding-left: 120rpx; */
- background-color: #FFF;
- margin-top: 20rpx;
- border-bottom: 1px solid #e3e3e3;
- }
- .changeBox .num-box {
- display: inline-block;
- float: left;
- }
- .changeBox button {
- float: left;
- }
- .revise-box-buttom {
- position: absolute;
- width: 100%;
- height: 100rpx;
- line-height: 100rpx;
- background-color: #FFFFFF;
- bottom: 0;
- text-align: center;
- }
-</style>
\ No newline at end of file
diff --git a/pages/basics/stockCheck.vue b/pages/basics/stockCheck.vue
deleted file mode 100644
index 3266940..0000000
--- a/pages/basics/stockCheck.vue
+++ /dev/null
@@ -1,464 +0,0 @@
-<template>
- <view>
- <scroll-view scroll-y>
- <!-- <view class="pak-seach-box">
- <view class="box-top">
- <view class="color-block-blue"></view>
- <text class="title">閫夋嫨绔欏彴</text>
- </view>
- <view>
- <text class="item">鍑哄簱鍙�</text>
- <view class="example-body">
- <uni-combox @input="getCheckDetl" emptyTips="鏆傛棤鏁版嵁" :candidates="staNoList" v-model="staNo" placeholder="璇烽�夋嫨"></uni-combox>
- </view>
- </view>
- </view> -->
-
- <view class="square-2">
- <view class="square-title">
- <view class="title-sign"><view class="sign"></view></view>
- <view class="title-text"><text>鎵樼洏鏉$爜</text></view>
- </view>
- <view class="square-content">
- <view class="content-input">
- <input v-model="barcode" @input="search" type="text" placeholder="鎵爜 / 杈撳叆" maxlength="8"placeholder-style="line-height: 85rpx;">
- <uni-icons type="closeempty" size="20" color="#dadada" @click="removeBarcode" ></uni-icons>
- </view>
- </view>
- </view>
- <view class="square-2">
- <view class="square-title">
- <view class="title-sign"><view class="sign"></view></view>
- <view class="title-text"><text>娣诲姞鍟嗗搧</text></view>
- </view>
- <view class="square-content">
- <view class="content-input-btn">
- <input v-model="matnr" type="text" placeholder="鎵爜 / 杈撳叆" @input="findMat()"
- :focus="focus" placeholder-style="line-height: 85rpx;">
- <uni-icons type="closeempty" size="20" color="#dadada" @click="removeMatnr()"></uni-icons>
- </view>
- <view class="content-btn">
- <button class="cu-btn bg-blue pda-btn" @click="selectMat()">+鎻愬彇</button>
- </view>
- </view>
- </view>
- <view class="pak-data-box">
- <view class="box-top">
- <view class="color-block-blue"></view>
- <text class="title">鍟嗗搧鍒楄〃</text>
- <!-- <button class="cu-btn bg-blue" @click="selectMat()">+ 娣诲姞</button> -->
- </view>
- </view>
- <view class="pak-data-box" v-show="matList.length === 0">
- <view style="text-align: center;">鏆傛棤鏇村鏁版嵁</view>
- </view>
- <checkbox-group>
- <view v-for="(item,index) in matList" :key="index" class="data-list bg-false" :class="'bg-'+item.checked" >
- <view class="data-list-left">
- <view class="matnr"><text style="width: 400rpx;">缂栫爜锛歿{item.matnr}}</text></view>
- <view><text style="width: 400rpx;">瑙勬牸锛歿{item.specs}}</text></view>
- <view><text style="width: 400rpx;">鍝佸悕锛歿{item.maktx}}</text></view>
- <view><text style="width: 400rpx;">鎵瑰彿锛歿{item.batch}}</text></view>
- <view><text style="width: 400rpx;">瀹㈡埛淇℃伅锛歿{item.cstmr}}</text></view>
- <view>
- <text style="width: 400rpx;">澶囨敞锛歿{item.memo}}</text>
- <text style="width: 400rpx;margin-left: 100rpx">鏁伴噺锛歿{item.anfme}}</text>
- </view>
- </view>
- <view class="data-list-right">
- <label><uni-icons type="compose" size="20" color="#a5a5a5" @click="revise(item,index)"></uni-icons></label>
- <label><uni-icons type="trash" size="25" color="#a5a5a5" @click="remove(item,index)"></uni-icons></label>
- </view>
- </view>
- </checkbox-group>
- <view class="footer flex justify-around">
- <view>
- <button class="cu-btn lg" @click="resst()">閲嶇疆</button>
- </view>
- <view>
- <button class="cu-btn lg pakin-btn bg-blue" @click="adjust()">纭</button>
- </view>
- </view>
- </scroll-view>
- <!-- <y-pop v-model="count" title="淇敼" :max="9999999" :show="show"></y-pop> -->
- <view>
- <!-- 淇敼鏁伴噺 -->
- <uni-popup ref="revise" @change="change">
- <view class="revise-box">
- <view class="revise-box-top">
- <view class="color-block-blue"></view>
- <text class="title">淇敼</text>
- </view>
- <view class="change">
- <view class="text-box">
- <text>鏁伴噺锛歿{enableQty}}</text>
- </view>
- <view class="changeBox">
- <view class="num-box">
- <uni-number-box v-model="count" :min="minCount" :max="99999999" color="#747474" @change="changeValue"/>
- </view>
- </view>
- </view>
-
- <view class="revise-box-buttom">
- <view>
- <button class="cu-btn bg-blue" @click="confirm()">纭</button>
- </view>
- </view>
-
- </view>
- </uni-popup>
- </view>
- </view>
-</template>
-<script>
- export default {
- data() {
- return {
- commonUrl:null,
- matList:[],
- staNoList:[],
- barcode: '',
- staNo:'',
- matnr:'',
- enableQty:'',
- count:15,
- maxCount:'',
- minCount:0,
- rowNum:'',
- show: false,
- focus: false,
-
- }
- },
- mounted(){
- const UIP = uni.getStorageSync('UIP');
- this.baseIP = UIP;
- const UPORT = uni.getStorageSync('UPORT');
- this.basePORT = UPORT
- const PROJ = uni.getStorageSync('UPROJ');
- this.baseUrl = PROJ
- this.getUrl()
- },
- methods: {
- // 鑾峰彇url
- getUrl() {
- this.commonUrl = this.baseHttp + this.baseIP + ':' +this.basePORT + "/" +this.baseUrl
- },
- // 鏍规嵁鎵樼洏鐮佹悳绱�
- search() {
- let that = this
- uni.request({
- url: that.commonUrl + '/mobile/checkDetl/auth2',
- header: {
- 'token':uni.getStorageSync('token')
- },
- data: {barcode: that.barcode},
- method:'GET',
- success(result) {
- let res = result.data
- if(res.code === 200){
- for(var i = 0; i < res.data.length;i++){
- that.matList.push(res.data[i])
- }
- } else if (res.code == 403) {
- uni.showToast({title: res.msg, icon: "none", position: 'top'})
- setTimeout(() => {
- uni.reLaunch({
- url: '../login/login'
- });
- }, 1000);
- } else {
- uni.showToast({title: res.msg, icon: "none",position: 'top'})
- }
- }
-
- })
- },
- selectMat() { // 閫夋嫨鍟嗗搧
- let that = this
- uni.vibrateShort();
- uni.navigateTo({
- url: "matSelect",
- events: {
- // 涓烘寚瀹氫簨浠舵坊鍔犱竴涓洃鍚櫒锛岃幏鍙栬鎵撳紑椤甸潰浼犻�佸埌褰撳墠椤甸潰鐨勬暟鎹� 鍙﹀涓�涓〉闈紶杩囨潵鐨�
- acceptDataFromOpenedPage: function(data) {
- that.matnr = data.data
- that.findMat(that.matnr)
- that.matnr = ''
- },
- },
- success: function(res) {
- // 閫氳繃eventChannel鍚戣鎵撳紑椤甸潰浼犻�佹暟鎹� 鍚戝彟澶栦竴涓〉闈紶閫掑�肩殑
- res.eventChannel.emit('commonUrl', {commonUrl:that.commonUrl })
- },
-
- });
-
- }, // selectMat
- findMat() {
- let that = this
- uni.request({
- url: that.commonUrl + '/mat/auth',
- data: {
- matnr:that.matnr
- },
- header: {
- 'token':uni.getStorageSync('token')
- },
- success(result) {
- uni.vibrateShort();
- let res = result.data
- if (res.code === 200 && res.data) {
- that.matData = res.data
- uni.navigateTo({
- url: "matQuery",
- events: {
- // 涓烘寚瀹氫簨浠舵坊鍔犱竴涓洃鍚櫒锛岃幏鍙栬鎵撳紑椤甸潰浼犻�佸埌褰撳墠椤甸潰鐨勬暟鎹�
- matList: function(data) {
- that.checkMat(data.data)
- },
- },
- success: function(res) {
- // 閫氳繃eventChannel鍚戣鎵撳紑椤甸潰浼犻�佹暟鎹�
- res.eventChannel.emit('matData', { data: that.matData })
- }
- });
- }
-
- }
- });
- }, // findMat
- removeMatnr() {
- this.matnr = ''
- uni.vibrateShort();
- this.focus = false;
- this.$nextTick(function() {
- this.focus = true;
- });
- },
- revise(item,index) {
- // var maxCount = this.matList[index].maxCount
- // if (maxCount == undefined ) {
- // this.matList[index]["maxCount"] = item.enableQty
- // }
- // this.enableQty = item.enableQty
- // this.count = this.minCount
- // this.maxCount = item.maxCount
- this.count = this.matList[index].anfme
- this.rowNum = index
- this.eject()
- // this.show = true
- },
- remove(item,index) {
- this.matList[index].anfme = 0
- uni.vibrateShort();
- this.$forceUpdate() // 寮哄埗鍒锋柊
- },
- eject(type) {
- this.type = type
- // open 鏂规硶浼犲叆鍙傛暟 绛夊悓鍦� uni-popup 缁勪欢涓婄粦瀹� type灞炴��
- this.$refs.revise.open(type)
- },
- change(e) {
- // console.log('褰撳墠妯″紡锛�' + e.type + ',鐘舵�侊細' + e.show);
- },
- changeValue() {
-
- },
- confirm() {
- this.matList[this.rowNum].anfme = this.count
- this.$refs.revise.close()
- this.$forceUpdate() // 寮哄埗鍒锋柊
- },
- resst() {
- this.matList = []
- this.staNo = ''
- },
- // 娣诲姞鍟嗗搧
- addMat(mat) {
- this.matList.unshift(mat)
- },
- checkMat(mat) {
- var len = this.matList.length
- var add = true
- for (var i = 0; i < len; i++) {
- if (mat.matnr == this.matList[i].matnr) {
- this.matList[i].anfme += mat.anfme
- this.$forceUpdate() // 寮哄埗鍒锋柊
- add = false
- }
- }
- if (add) {
- this.matList.unshift(mat)
- }
- },
- adjust() {
- let that = this
- var combMats = []
- var combParam = {}
- combParam['barcode'] = that.barcode
- combParam['wrkDetls'] = that.matList
- uni.request({
- url: that.commonUrl + '/mobile/adjustNew/auth',
- method: 'POST',
- data: JSON.stringify(combParam),
- header: {
- 'token':uni.getStorageSync('token')
- },
- success(result) {
- var res = result.data
- if (res.code === 200) {
- that.matList = []
- that.barcode = ''
- uni.showToast({title: res.msg, icon: "none", position: 'top'})
- } else if (res.code == 403) {
- uni.showToast({title: res.msg, icon: "none", position: 'top'})
- setTimeout(() => {
- uni.reLaunch({
- url: '../login/login'
- });
- }, 1000);
- } else {
- uni.showToast({title: res.msg, icon: "none",position: 'top'})
- }
- },
- });
- },
- removeBarcode() {
- this.barcode = ''
- }
- } // methods
- } // exprot
-</script>
-<style>
- .revise-box {
- width: 500rpx;
- height: 300rpx;
- display: flex;
- flex-direction: column;
- border-radius: 20rpx;
- background-color: #F1F1F1;
- }
- .change {
- height: 150rpx;
- display: flex;
- align-items: center;
- justify-content: center;
- }
- .revise-box-buttom {
- display: flex;
- align-items: center;
- justify-content: center;
- }
- .pak-seach-box {
- background-color: #FFFFFF;
- margin: 15rpx 15rpx 0rpx 15rpx;
- width: 96%;
- height: 200rpx;
- border-radius: 20rpx;
- }
- .box-top{
- display: block;
- height: 80rpx;
- width: 720rpx;
- }
- .color-block-blue {
- background-color: #1E9FFF;
- display: inline-block;
- float: left;
- margin: 30rpx 15rpx 0 15rpx;
- width: 12rpx;
- height: 40rpx;
- border: 5rpx solid #1E9FFF;
- border-radius: 20rpx;
- }
- .title {
- display: inline-block;
- float: left;
- font-size: 34rpx;
- font-weight: 700;
- height: 50rpx;
- line-height: 80rpx;
- margin-top: 10rpx;
- }
- .item {
- text-indent: 1em;
- font-size: 16px;
- display: inline-block;
- margin-top: 40rpx;
- }
- .example-body {
- position: fixed;
- display: inline-block;
- margin-top: 3.5%;
- margin-left: 5%;
- width: 70%;
- z-index: 999;
- }
-
- .pak-data-box {
- background-color: #F1F1F1;
- margin: 15rpx 15rpx 0rpx 15rpx;
- width: 96%;
- height: 100rpx;
- border-radius: 20rpx;
- line-height: 100rpx;
- }
- .pak-data-box>.box-top {
- background-color: #FFFFFF;
- height: 100rpx;
- border-radius: 20rpx 20rpx 20rpx 20rpx;
- }
- .pak-data-box button {
- background-color: #1E9FFF;
- color: #ffffff;
- display: inline-block;
- float: right;
- width: 150rpx;
- height: 80rpx;
- margin: 10rpx 25rpx 0rpx 0rpx;
- line-height: 80rpx;
- }
- .bg-false {
- background-color: #FFFFFF;
- }
- .bg-true {
- background-color: #ebebeb;
- }
- .data-list {
- border-bottom: 1px solid #d8d8d8;
- height: 240rpx;
- margin: 15rpx;
- border-radius: 20rpx;
- }
- .data-list:first-child {
- margin-top: 20rpx;
- }
- .data-list:last-child {
- margin-bottom: 180rpx;
- }
- .data-list-left {
- display: inline-block;
- float: left;
- margin-left: 6%;
- height: 180rpx;
- color: #676767;
- }
- .matnr {
- padding-top: 10rpx;
- }
- .data-list-right {
- display: inline-block;
- float: right;
- width: 200rpx;
- height: 230rpx;
- line-height: 230rpx;
- }
- .data-list-right label {
- display: inline-block;
- float: left;
- width: 100rpx;
- height: 180rpx;
- }
-</style>
\ No newline at end of file
diff --git a/pages/basics/stockCheckv2.vue b/pages/basics/stockCheckv2.vue
deleted file mode 100644
index 9c61095..0000000
--- a/pages/basics/stockCheckv2.vue
+++ /dev/null
@@ -1,464 +0,0 @@
-<template>
- <view>
- <scroll-view scroll-y>
- <!-- <view class="pak-seach-box">
- <view class="box-top">
- <view class="color-block-blue"></view>
- <text class="title">閫夋嫨绔欏彴</text>
- </view>
- <view>
- <text class="item">鍑哄簱鍙�</text>
- <view class="example-body">
- <uni-combox @input="getCheckDetl" emptyTips="鏆傛棤鏁版嵁" :candidates="staNoList" v-model="staNo" placeholder="璇烽�夋嫨"></uni-combox>
- </view>
- </view>
- </view> -->
-
- <view class="square-2">
- <view class="square-title">
- <view class="title-sign"><view class="sign"></view></view>
- <view class="title-text"><text>鎵樼洏鏉$爜</text></view>
- </view>
- <view class="square-content">
- <view class="content-input">
- <input v-model="barcode" @input="search" type="text" placeholder="鎵爜 / 杈撳叆" maxlength="8"placeholder-style="line-height: 85rpx;">
- <uni-icons type="closeempty" size="20" color="#dadada" @click="removeBarcode" ></uni-icons>
- </view>
- </view>
- </view>
- <view class="square-2">
- <view class="square-title">
- <view class="title-sign"><view class="sign"></view></view>
- <view class="title-text"><text>娣诲姞鍟嗗搧</text></view>
- </view>
- <view class="square-content">
- <view class="content-input-btn">
- <input v-model="matnr" type="text" placeholder="鎵爜 / 杈撳叆" @input="findMat()"
- :focus="focus" placeholder-style="line-height: 85rpx;">
- <uni-icons type="closeempty" size="20" color="#dadada" @click="removeMatnr()"></uni-icons>
- </view>
- <view class="content-btn">
- <button class="cu-btn bg-blue pda-btn" @click="selectMat()">+鎻愬彇</button>
- </view>
- </view>
- </view>
- <view class="pak-data-box">
- <view class="box-top">
- <view class="color-block-blue"></view>
- <text class="title">鍟嗗搧鍒楄〃</text>
- <!-- <button class="cu-btn bg-blue" @click="selectMat()">+ 娣诲姞</button> -->
- </view>
- </view>
- <view class="pak-data-box" v-show="matList.length === 0">
- <view style="text-align: center;">鏆傛棤鏇村鏁版嵁</view>
- </view>
- <checkbox-group>
- <view v-for="(item,index) in matList" :key="index" class="data-list bg-false" :class="'bg-'+item.checked" >
- <view class="data-list-left">
- <view class="matnr"><text style="width: 400rpx;">缂栫爜锛歿{item.matnr}}</text></view>
- <view><text style="width: 400rpx;">瑙勬牸锛歿{item.specs}}</text></view>
- <view><text style="width: 400rpx;">鍝佸悕锛歿{item.maktx}}</text></view>
- <view><text style="width: 400rpx;">鎵瑰彿锛歿{item.batch}}</text></view>
- <view><text style="width: 400rpx;">瀹㈡埛淇℃伅锛歿{item.cstmr}}</text></view>
- <view>
- <text style="width: 400rpx;">澶囨敞锛歿{item.memo}}</text>
- <text style="width: 400rpx;margin-left: 100rpx">鏁伴噺锛歿{item.anfme}}</text>
- </view>
- </view>
- <view class="data-list-right">
- <label><uni-icons type="compose" size="20" color="#a5a5a5" @click="revise(item,index)"></uni-icons></label>
- <label><uni-icons type="trash" size="25" color="#a5a5a5" @click="remove(item,index)"></uni-icons></label>
- </view>
- </view>
- </checkbox-group>
- <view class="footer flex justify-around">
- <view>
- <button class="cu-btn lg" @click="resst()">閲嶇疆</button>
- </view>
- <view>
- <button class="cu-btn lg pakin-btn bg-blue" @click="adjust()">纭</button>
- </view>
- </view>
- </scroll-view>
- <!-- <y-pop v-model="count" title="淇敼" :max="9999999" :show="show"></y-pop> -->
- <view>
- <!-- 淇敼鏁伴噺 -->
- <uni-popup ref="revise" @change="change">
- <view class="revise-box">
- <view class="revise-box-top">
- <view class="color-block-blue"></view>
- <text class="title">淇敼</text>
- </view>
- <view class="change">
- <view class="text-box">
- <text>鏁伴噺锛歿{enableQty}}</text>
- </view>
- <view class="changeBox">
- <view class="num-box">
- <uni-number-box v-model="count" :min="minCount" :max="99999999" color="#747474" @change="changeValue"/>
- </view>
- </view>
- </view>
-
- <view class="revise-box-buttom">
- <view>
- <button class="cu-btn bg-blue" @click="confirm()">纭</button>
- </view>
- </view>
-
- </view>
- </uni-popup>
- </view>
- </view>
-</template>
-<script>
- export default {
- data() {
- return {
- commonUrl:null,
- matList:[],
- staNoList:[],
- barcode: '',
- staNo:'',
- matnr:'',
- enableQty:'',
- count:15,
- maxCount:'',
- minCount:0,
- rowNum:'',
- show: false,
- focus: false,
-
- }
- },
- mounted(){
- const UIP = uni.getStorageSync('UIP');
- this.baseIP = UIP;
- const UPORT = uni.getStorageSync('UPORT');
- this.basePORT = UPORT
- const PROJ = uni.getStorageSync('UPROJ');
- this.baseUrl = PROJ
- this.getUrl()
- },
- methods: {
- // 鑾峰彇url
- getUrl() {
- this.commonUrl = this.baseHttp + this.baseIP + ':' +this.basePORT + "/" +this.baseUrl
- },
- // 鏍规嵁鎵樼洏鐮佹悳绱�
- search() {
- let that = this
- uni.request({
- url: that.commonUrl + '/mobile/checkDetl/auth2',
- header: {
- 'token':uni.getStorageSync('token')
- },
- data: {barcode: that.barcode},
- method:'GET',
- success(result) {
- let res = result.data
- if(res.code === 200){
- for(var i = 0; i < res.data.length;i++){
- that.matList.push(res.data[i])
- }
- } else if (res.code == 403) {
- uni.showToast({title: res.msg, icon: "none", position: 'top'})
- setTimeout(() => {
- uni.reLaunch({
- url: '../login/login'
- });
- }, 1000);
- } else {
- uni.showToast({title: res.msg, icon: "none",position: 'top'})
- }
- }
-
- })
- },
- selectMat() { // 閫夋嫨鍟嗗搧
- let that = this
- uni.vibrateShort();
- uni.navigateTo({
- url: "matSelect",
- events: {
- // 涓烘寚瀹氫簨浠舵坊鍔犱竴涓洃鍚櫒锛岃幏鍙栬鎵撳紑椤甸潰浼犻�佸埌褰撳墠椤甸潰鐨勬暟鎹� 鍙﹀涓�涓〉闈紶杩囨潵鐨�
- acceptDataFromOpenedPage: function(data) {
- that.matnr = data.data
- that.findMat(that.matnr)
- that.matnr = ''
- },
- },
- success: function(res) {
- // 閫氳繃eventChannel鍚戣鎵撳紑椤甸潰浼犻�佹暟鎹� 鍚戝彟澶栦竴涓〉闈紶閫掑�肩殑
- res.eventChannel.emit('commonUrl', {commonUrl:that.commonUrl })
- },
-
- });
-
- }, // selectMat
- findMat() {
- let that = this
- uni.request({
- url: that.commonUrl + '/mat/auth',
- data: {
- matnr:that.matnr
- },
- header: {
- 'token':uni.getStorageSync('token')
- },
- success(result) {
- uni.vibrateShort();
- let res = result.data
- if (res.code === 200 && res.data) {
- that.matData = res.data
- uni.navigateTo({
- url: "matQuery",
- events: {
- // 涓烘寚瀹氫簨浠舵坊鍔犱竴涓洃鍚櫒锛岃幏鍙栬鎵撳紑椤甸潰浼犻�佸埌褰撳墠椤甸潰鐨勬暟鎹�
- matList: function(data) {
- that.checkMat(data.data)
- },
- },
- success: function(res) {
- // 閫氳繃eventChannel鍚戣鎵撳紑椤甸潰浼犻�佹暟鎹�
- res.eventChannel.emit('matData', { data: that.matData })
- }
- });
- }
-
- }
- });
- }, // findMat
- removeMatnr() {
- this.matnr = ''
- uni.vibrateShort();
- this.focus = false;
- this.$nextTick(function() {
- this.focus = true;
- });
- },
- revise(item,index) {
- // var maxCount = this.matList[index].maxCount
- // if (maxCount == undefined ) {
- // this.matList[index]["maxCount"] = item.enableQty
- // }
- // this.enableQty = item.enableQty
- // this.count = this.minCount
- // this.maxCount = item.maxCount
- this.count = this.matList[index].anfme
- this.rowNum = index
- this.eject()
- // this.show = true
- },
- remove(item,index) {
- this.matList[index].anfme = 0
- uni.vibrateShort();
- this.$forceUpdate() // 寮哄埗鍒锋柊
- },
- eject(type) {
- this.type = type
- // open 鏂规硶浼犲叆鍙傛暟 绛夊悓鍦� uni-popup 缁勪欢涓婄粦瀹� type灞炴��
- this.$refs.revise.open(type)
- },
- change(e) {
- // console.log('褰撳墠妯″紡锛�' + e.type + ',鐘舵�侊細' + e.show);
- },
- changeValue() {
-
- },
- confirm() {
- this.matList[this.rowNum].anfme = this.count
- this.$refs.revise.close()
- this.$forceUpdate() // 寮哄埗鍒锋柊
- },
- resst() {
- this.matList = []
- this.staNo = ''
- },
- // 娣诲姞鍟嗗搧
- addMat(mat) {
- this.matList.unshift(mat)
- },
- checkMat(mat) {
- var len = this.matList.length
- var add = true
- for (var i = 0; i < len; i++) {
- if (mat.matnr == this.matList[i].matnr) {
- this.matList[i].anfme += mat.anfme
- this.$forceUpdate() // 寮哄埗鍒锋柊
- add = false
- }
- }
- if (add) {
- this.matList.unshift(mat)
- }
- },
- adjust() {
- let that = this
- var combMats = []
- var combParam = {}
- combParam['barcode'] = that.barcode
- combParam['wrkDetls'] = that.matList
- uni.request({
- url: that.commonUrl + '/mobile/adjustNew/v2/auth',
- method: 'POST',
- data: JSON.stringify(combParam),
- header: {
- 'token':uni.getStorageSync('token')
- },
- success(result) {
- var res = result.data
- if (res.code === 200) {
- that.matList = []
- that.barcode = ''
- uni.showToast({title: res.msg, icon: "none", position: 'top'})
- } else if (res.code == 403) {
- uni.showToast({title: res.msg, icon: "none", position: 'top'})
- setTimeout(() => {
- uni.reLaunch({
- url: '../login/login'
- });
- }, 1000);
- } else {
- uni.showToast({title: res.msg, icon: "none",position: 'top'})
- }
- },
- });
- },
- removeBarcode() {
- this.barcode = ''
- }
- } // methods
- } // exprot
-</script>
-<style>
- .revise-box {
- width: 500rpx;
- height: 300rpx;
- display: flex;
- flex-direction: column;
- border-radius: 20rpx;
- background-color: #F1F1F1;
- }
- .change {
- height: 150rpx;
- display: flex;
- align-items: center;
- justify-content: center;
- }
- .revise-box-buttom {
- display: flex;
- align-items: center;
- justify-content: center;
- }
- .pak-seach-box {
- background-color: #FFFFFF;
- margin: 15rpx 15rpx 0rpx 15rpx;
- width: 96%;
- height: 200rpx;
- border-radius: 20rpx;
- }
- .box-top{
- display: block;
- height: 80rpx;
- width: 720rpx;
- }
- .color-block-blue {
- background-color: #1E9FFF;
- display: inline-block;
- float: left;
- margin: 30rpx 15rpx 0 15rpx;
- width: 12rpx;
- height: 40rpx;
- border: 5rpx solid #1E9FFF;
- border-radius: 20rpx;
- }
- .title {
- display: inline-block;
- float: left;
- font-size: 34rpx;
- font-weight: 700;
- height: 50rpx;
- line-height: 80rpx;
- margin-top: 10rpx;
- }
- .item {
- text-indent: 1em;
- font-size: 16px;
- display: inline-block;
- margin-top: 40rpx;
- }
- .example-body {
- position: fixed;
- display: inline-block;
- margin-top: 3.5%;
- margin-left: 5%;
- width: 70%;
- z-index: 999;
- }
-
- .pak-data-box {
- background-color: #F1F1F1;
- margin: 15rpx 15rpx 0rpx 15rpx;
- width: 96%;
- height: 100rpx;
- border-radius: 20rpx;
- line-height: 100rpx;
- }
- .pak-data-box>.box-top {
- background-color: #FFFFFF;
- height: 100rpx;
- border-radius: 20rpx 20rpx 20rpx 20rpx;
- }
- .pak-data-box button {
- background-color: #1E9FFF;
- color: #ffffff;
- display: inline-block;
- float: right;
- width: 150rpx;
- height: 80rpx;
- margin: 10rpx 25rpx 0rpx 0rpx;
- line-height: 80rpx;
- }
- .bg-false {
- background-color: #FFFFFF;
- }
- .bg-true {
- background-color: #ebebeb;
- }
- .data-list {
- border-bottom: 1px solid #d8d8d8;
- height: 250rpx;
- margin: 15rpx;
- border-radius: 20rpx;
- }
- .data-list:first-child {
- margin-top: 20rpx;
- }
- .data-list:last-child {
- margin-bottom: 180rpx;
- }
- .data-list-left {
- display: inline-block;
- float: left;
- margin-left: 6%;
- height: 180rpx;
- color: #676767;
- }
- .matnr {
- padding-top: 10rpx;
- }
- .data-list-right {
- display: inline-block;
- float: right;
- width: 200rpx;
- height: 230rpx;
- line-height: 230rpx;
- }
- .data-list-right label {
- display: inline-block;
- float: left;
- width: 100rpx;
- height: 180rpx;
- }
-</style>
\ No newline at end of file
diff --git a/pages/basics/stockQuery.vue b/pages/basics/stockQuery.vue
deleted file mode 100644
index 7040578..0000000
--- a/pages/basics/stockQuery.vue
+++ /dev/null
@@ -1,272 +0,0 @@
-<template>
- <view>
- <!-- 鎼滅储妗� -->
- <view class="square-1">
- <view class="searchBox">
- <view class="searchIcon"><uni-icons type="search" size="20" color="#dadada"></uni-icons></view>
- <view class="searchArea">
- <input v-model="locNo" type="text" placeholder=" 搴撲綅鍙�" @input="searchByLoc" placeholder-style="line-height: 85rpx;"></view>
- <view class="closeIcon"><uni-icons type="closeempty" size="20" color="#dadada" @click="removeLocNo"></uni-icons></view>
- </view>
- </view>
- <!-- 鎼滅储妗� -->
- <view class="square-1">
- <view class="searchBox">
- <view class="searchIcon"><uni-icons type="search" size="20" color="#dadada"></uni-icons></view>
- <view class="searchArea">
- <input v-model="matnr" type="text" placeholder=" 鍟嗗搧缂栫爜" @input="searchByMatnr" placeholder-style="line-height: 85rpx;"></view>
- <view class="closeIcon"><uni-icons type="closeempty" size="20" color="#dadada" @click="removeMatnr"></uni-icons></view>
- </view>
- </view>
- <!-- 鍒楄〃澶� -->
- <view class="square-1">
- <view class="square-title">
- <view class="title-sign"><view class="sign"></view></view>
- <view class="title-text"><text>鍟嗗搧鍒楄〃</text></view>
- </view>
- </view>
- <!-- 鍟嗗搧鍒楄〃 -->
- <!-- <checkbox-group @change="checkbox">
- <view v-for="(item,index) in matList" :key="index" class="data-list bg-false" :class="'bg-'+item.checked" >
- <view class="data-list-left">
- <view class="matnr"><text style="width: 400rpx;">缂栫爜锛歿{item.matnr}}</text></view>
- <view><text style="width: 400rpx;">鍝佸悕锛歿{item.maktx}}</text></view>
- <view><text style="width: 400rpx;">鎵瑰彿锛歿{item.batch}}</text></view>
- <view>
- <text style="width: 400rpx;">鏁伴噺锛歿{item.anfme}}</text>
- </view>
- </view>
- <view class="data-list-right">
- <label><uni-icons type="compose" size="20" color="#a5a5a5" @click="revise(item,index)"></uni-icons></label>
- <label><uni-icons type="trash" size="25" color="#a5a5a5" @click="remove(item,index)"></uni-icons></label>
- </view>
- </view>
- </checkbox-group> -->
- <checkbox-group @change="checkbox">
- <view v-for="(item,index) in matList" :key="index" class="data-list bg-false" :class="'bg-'+item.checked" >
- <!-- <label class="left-check-box">
- <checkbox :value="item.id+''" :checked="item.checked" style="display: block;" />
- </label> -->
- <view class="data-list-left">
- <view class="matnr"><text style="width: 700rpx;">瑙勬牸锛歿{item.matnr}}</text></view>
- <view class="matnr"><text style="width: 700rpx;">瑙勬牸锛歿{item.specs}}</text></view>
- <view><text style="width: 700rpx;">鍝佸悕锛歿{item.maktx}}</text></view>
- <view><text style="width: 700rpx;">鎵瑰彿锛歿{item.batch}}</text></view>
- <view>
- <text style="width: 700rpx;">鏁伴噺锛歿{item.anfme}}</text>
- </view>
- </view>
- <!-- <view class="data-list-right">
- <label><uni-icons type="compose" size="20" color="#a5a5a5" @click="revise(item,index)"></uni-icons></label>
- list涓垹闄ら敭
- <label><uni-icons type="trash" size="25" color="#a5a5a5" @click="remove(item,index)"></uni-icons></label>
- </view> -->
- </view>
- </checkbox-group>
- <!-- 鏃犳暟鎹樉绀� -->
- <view class="square-none" v-show="matList.length === 0">
- <view class="v-show">鏆傛棤鏇村鏁版嵁...</view>
- </view>
- </view>
-</template>
-
-<script>
- export default {
- data () {
- return {
- commonUrl:null,
- matList: [],
- locNo: null,
- matnr: null
-
- }
- },
- mounted() {
- const UIP = uni.getStorageSync('UIP');
- this.baseIP = UIP;
- const UPORT = uni.getStorageSync('UPORT');
- this.basePORT = UPORT
- const PROJ = uni.getStorageSync('UPROJ');
- this.baseUrl = PROJ
- this.getUrl()
- },
- methods: {
- // 鑾峰彇url
- getUrl() {
- this.commonUrl = this.baseHttp + this.baseIP + ':' +this.basePORT + "/" +this.baseUrl
- },
- checkbox: function () {
-
- },
- // 娓呯┖搴撲綅鍙锋悳绱㈡
- removeLocNo() {
- this.locNo = null
- },
- // 娓呯┖鍟嗗搧缂栫爜
- removeMatnr() {
- this.matnr = null
- },
- request() {
- let that = this
- uni.request({
- url:that.commonUrl + '/locDetl/list/auth',
- header:{'token':uni.getStorageSync('token')},
- data: {
- curr: 1,
- limit: 100,
- loc_no: that.locNo,
- matnr: that.matnr
- },
- method:"GET",
- success(result) {
- console.log(result)
- let res = result.data
- let records = res.data.records
- if (res.code == 200) {
- if (records) {
- that.matList = records
- console.log(that.matList)
- } else {
- uni.showToast({
- title: "鏆傛棤鏇村鏁版嵁",
- position: 'top',
- duration: 1000
- });
- }
- } else if (res.code == 403) {
- uni.showToast({title: res.msg, icon: "none", position: 'top'})
- setTimeout(() => {
- uni.reLaunch({
- url: '../login/login'
- });
- }, 1000);
- } else {
- uni.showToast({title: res.msg, icon: "none",position: 'top'})
- }
- }
- })
- },
- // 鏍规嵁搴撲綅鍙锋悳绱�
- searchByLoc() {
- let that = this
- that.request()
- },
- // 鏍规嵁鍟嗗搧缂栫爜鎼滅储
- searchByMatnr() {
- let that = this
- that.request()
- },
- revise() {
-
- }
- },
- }
-</script>
-
-<style>
- .bg-false {
- background-color: #FFFFFF;
- }
- .bg-true {
- background-color: #ebebeb;
- }
- .data-list {
- border-bottom: 1px solid #d8d8d8;
- height: 230rpx;
- margin: 15rpx;
- border-radius: 20rpx;
- }
- .data-list:first-child {
- margin-top: 20rpx;
- }
- .data-list:last-child {
- margin-bottom: 160rpx;
- }
- /* .data-list-left {
- display: inline-block;
- float: left;
- text-align: center;
- width: 100rpx;
- height: 180rpx;
- line-height: 180rpx;
- } */
- .left-check-box {
- display: inline-block;
- /* background-color: #1E9FFF; */
- float: left;
- height: 100%;
- width: 100rpx;
- text-align: center;
- line-height: 230rpx;
- }
- .data-list-left {
- /* background-color: #ffff7f; */
- display: inline-block;
- float: left;
- height: 180rpx;
- width: 500rpx;
- color: #676767;
- }
- .matnr {
- padding-top: 10rpx;
- }
- .data-list-right {
- /* background-color: #55ffff; */
- display: inline-block;
- float: right;
- width: 100rpx;
- height: 230rpx;
- line-height: 230rpx;
- }
- .data-list-right label {
- display: inline-block;
- float: left;
- width: 100rpx;
- height: 180rpx;
- }
- .revise-box {
- width: 500rpx;
- height: 500rpx;
- }
- .revise-box-top {
- width: 100%;
- height: 100rpx;
- background-color: #fff;
- padding: 10rpx;
- }
- .changeBox {
- width: 100%;
- height: 100rpx;
- line-height: 120rpx;
- text-align: center;
- background-color: #FFF;
- margin-top: 20rpx;
- border-bottom: 1px solid #e3e3e3;
- }
- .text-box {
- width: 100%;
- height: 100rpx;
- line-height: 120rpx;
- text-align: center;
- /* padding-left: 120rpx; */
- background-color: #FFF;
- margin-top: 20rpx;
- border-bottom: 1px solid #e3e3e3;
- }
- .changeBox .num-box {
- display: inline-block;
- float: left;
- }
- .changeBox button {
- float: left;
- }
- .revise-box-buttom {
- position: absolute;
- width: 100%;
- height: 100rpx;
- line-height: 100rpx;
- background-color: #FFFFFF;
- bottom: 0;
- text-align: center;
- }
-</style>
\ No newline at end of file
diff --git a/pages/demo/index.vue b/pages/demo/index.vue
deleted file mode 100644
index eddec81..0000000
--- a/pages/demo/index.vue
+++ /dev/null
@@ -1,95 +0,0 @@
-<template>
- <view>
- <view class="two-cols home-nav-item" v-for="(item,index) in navs" @click="click(index)" :class="item.clicked"
- @touchstart="touch(index)" @touchend="touchend(index)">
- <view class="nav-icon">
- <uni-icons :type="item.icon" size="60" color="#6c6c6c"></uni-icons>
- </view>
- <view class="nav-text">
- {{item.name}}
- </view>
- </view>
- </view>
-</template>
-
-<script>
- export default{
- data() {
- return {
- navs:[
- {
- name:'鍏ュ簱',
- icon:'download',
- clicked:''
- },
- {
- name:'鍑哄簱',
- icon:'upload',
- clicked:''
- },
- {
- name:'鐩樼偣',
- icon:'compose',
- clicked:''
- },
- {
- name:'閫�鍑虹櫥褰�',
- icon:'close',
- clicked:''
- },
- ],
-
- }
- },
- methods: {
- click(index) {
-
- },
- touch(index) {
- this.navs[index].clicked = 'grey'
- // setTimeout(()=>{
-
- // },100)
- },
- touchend(index) {
- this.navs[index].clicked = ''
- }
- }
- }
-</script>
-
-<style>
- @import url("@/static/css/common.css");
- .home-nav-item {
- width: 44%;
- height: 0;
- padding-bottom: 50%;
- margin-left: 4%;
- margin-top: 5%;
- display: inline-block;
- box-shadow: 0 0 2px #dcdcdc;
- /* border: 1px solid #dcdcdc;
- border-right: 1px solid #dcdcdc;
- border-left: 1px solid #dcdcdc; */
- }
- .home-nav-item:first-child {
-
- }
- .nav-icon {
- width: 60%;
- height: 0;
- padding-bottom: 60%;
- margin: 10% auto;
- text-align: center;
- }
- .nav-text {
- width: 100%;
- height: 0;
- margin-bottom: 20%;
- font-size: 32rpx;
- text-align: center;
- }
- .grey {
- background-color: #dcdcdc;
- }
-</style>
\ No newline at end of file
diff --git a/pages/demo/login.vue b/pages/demo/login.vue
deleted file mode 100644
index 02409e3..0000000
--- a/pages/demo/login.vue
+++ /dev/null
@@ -1,8 +0,0 @@
-<template>
-</template>
-
-<script>
-</script>
-
-<style>
-</style>
\ No newline at end of file
diff --git a/pages/demo/pakStore/pakStore.vue b/pages/demo/pakStore/pakStore.vue
deleted file mode 100644
index d568a37..0000000
--- a/pages/demo/pakStore/pakStore.vue
+++ /dev/null
@@ -1,60 +0,0 @@
-<template>
-</template>
-
-<script>
- export default {
- data() {
- return {
-
- }
- },
-
- methods:{
- // 鑾峰彇url
- getUrl() {
- this.commonUrl = this.baseHttp + this.baseIP + ':' +this.basePORT + "/" +this.baseUrl
- },
-
- findMat() {
- let that = this
- uni.request({
- url: that.commonUrl + '/mat/auth',
- data: {
- matnr:that.matnr
- },
- header: {
- 'token':uni.getStorageSync('token')
- },
- success(result) {
- uni.vibrateShort();
- let res = result.data
- if (res.code === 200 && res.data) {
- that.matData = res.data
- that.matnr = ''
- uni.navigateTo({
- url: "matQuery",
- events: {
- // 涓烘寚瀹氫簨浠舵坊鍔犱竴涓洃鍚櫒锛岃幏鍙栬鎵撳紑椤甸潰浼犻�佸埌褰撳墠椤甸潰鐨勬暟鎹�
- matList: function(data) {
- console.log(data)
- that.matList.push(data.data)
- },
- },
- success: function(res) {
- // 閫氳繃eventChannel鍚戣鎵撳紑椤甸潰浼犻�佹暟鎹�
- res.eventChannel.emit('matData', { data: that.matData })
- },
- });
- }
-
- }
- });
-
- },
-
- }
- }
-</script>
-
-<style>
-</style>
\ No newline at end of file
diff --git a/pages/index/index.vue b/pages/index/index.vue
deleted file mode 100644
index 3a98b53..0000000
--- a/pages/index/index.vue
+++ /dev/null
@@ -1,133 +0,0 @@
-<template>
- <view>
- <scroll-view scroll-y>
- <view class="flex justify-end custom-position">
- <view>
- <image class="img-logo flex solid-bottom " src="../../static/zoneyung.png" mode="widthFix"></image>
- </view>
- </view>
- <view class="nav-list" >
- <navigator hover-class="none" :url="'/pages/basics/' + item.name" class="nav-li" navigateTo :class="'bg-'+item.color"
- :style="[{animation: 'show ' + ((index+1)*0.2+1) + 's 1'}]" v-for="(item,index) in elements" :key="index" @click="checked()">
- <view class="nav-title">{{item.title}}</view>
- <view class="nav-name">{{item.name}}</view>
- <text :class="'cuIcon-' + item.cuIcon"></text>
- </navigator>
- </view>
- </scroll-view>
- </view>
-</template>
-
-<script>
- export default {
- data() {
- return {
- elements:[
- // {
- // title: '涓婃灦绠$悊',
- // name: 'putOnSale',
- // color: 'blue',
- // cuIcon: 'video'
- // },
- // {
- // title: '涓嬫灦绠$悊',
- // name: 'offLines',
- // color: 'blue',
- // cuIcon: 'copy'
- // },
- {
- title: '缁勬墭鍏ュ簱',
- name: 'pakin',
- color: 'blue',
- cuIcon: 'copy'
- },
- // {
- // title: '璁㈠崟缁勬墭',
- // name: 'order',
- // color: 'blue',
- // cuIcon: 'goods'
- // },
- // {
- // title: '搴撳瓨鏌ヨ',
- // name: 'stockQuery',
- // color: 'blue',
- // cuIcon: 'searchlist'
- // },
-
- // {
- // title: '鍗曟嵁鍑哄簱',
- // name: 'orderOut',
- // color: 'blue',
- // cuIcon: 'video'
- // },
- // {
- // title: '搴撲綅鍑哄簱',
- // name: 'stoOut',
- // color: 'blue',
- // cuIcon: 'video'
- // },
- // {
- // title: '鍟嗗搧鍏ュ簱',
- // name: 'pakStore',
- // color: 'blue',
- // cuIcon: 'video'
- // },
- // {
- // title: '搴撳瓨鐩樼偣',
- // name: 'stockCheck',
- // color: 'blue',
- // cuIcon: 'safe'
- // },
- // {
- // title: '鎷f枡鍑哄簱',
- // name: 'piking',
- // color: 'blue',
- // cuIcon: 'safe'
- // },
- // {
- // title: '骞充粨搴撳瓨鐩樼偣',
- // name: 'manStoCheck',
- // color: 'blue',
- // cuIcon: 'safe'
- // },
- // {
- // title: '骞充粨搴撳瓨鐩樼偣',
- // name: 'manStoCheck',
- // color: 'blue',
- // cuIcon: 'safe'
- // },
- {
- title: '閫�鍑虹櫥褰�',
- name: 'logOut',
- color: 'grey',
- cuIcon: 'exit'
- },
-
- ]
- }
- },
- onLoad() {
-
- },
- methods: {
- changeImg(){
- console.log(1)
- },
- checked() {
- uni.vibrateShort();
- }
- }
- }
-</script>
-
-<style>
- @import "../../colorui/main.css";
- @import "../../colorui/icon.css";
-
- .custom-position {
- margin: 10rpx 10rpx 50rpx 0rpx;
- }
- .img-logo {
- width: 150rpx;
- }
-</style>
diff --git a/pages/index/index2.vue b/pages/index/index2.vue
deleted file mode 100644
index 78401de..0000000
--- a/pages/index/index2.vue
+++ /dev/null
@@ -1,198 +0,0 @@
-<template>
- <view>
- <scroll-view scroll-y>
- <view class="flex justify-end custom-position">
- <view>
- <image class="img-logo flex solid-bottom " src="../../static/zoneyung.png" mode="widthFix"></image>
- </view>
- </view>
- <view class="nav-list" >
- <navigator hover-class="none" :url="'/pages/basics/' + item.name" class="nav-li" navigateTo :class="'bg-'+item.color"
- :style="[{animation: 'show ' + ((index+1)*0.2+1) + 's 1'}]" v-for="(item,index) in elements" :key="index" @click="checked()">
- <view class="nav-title">{{item.title}}</view>
- <view class="nav-name">{{item.name}}</view>
- <text :class="'cuIcon-' + item.cuIcon"></text>
- </navigator>
- </view>
- </scroll-view>
- </view>
-</template>
-
-<script>
- export default {
- data() {
- return {
- commonUrl:null,
- elements:[
- // {
- // title: '涓婃灦绠$悊',
- // name: 'putOnSale',
- // color: 'blue',
- // cuIcon: 'video'
- // },
- // {
- // title: '涓嬫灦绠$悊',
- // name: 'offLines',
- // color: 'blue',
- // cuIcon: 'copy'
- // },
- {
- title: '缁勬墭鍏ュ簱',
- name: 'pakin',
- color: 'blue',
- cuIcon: 'copy'
- },
- // {
- // title: '璁㈠崟缁勬墭',
- // name: 'order',
- // color: 'blue',
- // cuIcon: 'goods'
- // },
- {
- title: '搴撳瓨鏌ヨ',
- name: 'stockQuery',
- color: 'blue',
- cuIcon: 'searchlist'
- },
-
- // {
- // title: '鍗曟嵁鍑哄簱',
- // name: 'orderOut',
- // color: 'blue',
- // cuIcon: 'video'
- // },
- // {
- // title: '搴撲綅鍑哄簱',
- // name: 'stoOut',
- // color: 'blue',
- // cuIcon: 'video'
- // },
- // {
- // title: '鍟嗗搧鍏ュ簱',
- // name: 'pakStore',
- // color: 'blue',
- // cuIcon: 'video'
- // },
- {
- title: '搴撳瓨鐩樼偣',
- name: 'stockCheck',
- color: 'blue',
- cuIcon: 'safe'
- },
- {
- title: '琛ヨ揣',
- name: 'stockCheckv2',
- color: 'blue',
- cuIcon: 'safe'
- },
- {
- title: '鎷f枡鍑哄簱',
- name: 'piking',
- color: 'blue',
- cuIcon: 'safe'
- },
- {
- title: '琛ヨ揣',
- name: 'stockCheckv2',
- color: 'blue',
- cuIcon: 'safe'
- },
- // {
- // title: '骞充粨搴撳瓨鐩樼偣',
- // name: 'manStoCheck',
- // color: 'blue',
- // cuIcon: 'safe'
- // },
- // {
- // title: '骞充粨搴撳瓨鐩樼偣',
- // name: 'manStoCheck',
- // color: 'blue',
- // cuIcon: 'safe'
- // },
- {
- title: '閫�鍑虹櫥褰�',
- name: 'logOut',
- color: 'grey',
- cuIcon: 'exit'
- },
-
- ]
- }
- },
- mounted(){
- const UIP = uni.getStorageSync('UIP');
- this.baseIP = UIP;
- const UPORT = uni.getStorageSync('UPORT');
- this.basePORT = UPORT
- const PROJ = uni.getStorageSync('UPROJ');
- this.baseUrl = PROJ
- this.getUrl()
- this.rq()
- },
- onLoad() {
-
- },
- methods: {
- // 鑾峰彇url
- getUrl() {
- this.commonUrl = this.baseHttp + this.baseIP + ':' +this.basePORT + "/" +this.baseUrl
- },
- rq() {
- let that = this
- uni.request({
- url: that.commonUrl + '/menu/pda/auth',
- data: {},
- header: {
- 'token':uni.getStorageSync('token')
- },
- method:'POST',
- success(result) {
- let res = result.data
- console.log(res);
- that.elements = []
- if (res.code === 200) {
- if (res.data == undefined || res.data == null || res.data == "") {
- that.elements.push({title:'閫�鍑虹櫥褰�',name:'logOut',color:'grey',cuIcon:'exit'})
- return
- }
- for (var i = 0; i < res.data.length;i ++){
- if (res.data.length < 0) {
- break;
- }
- that.elements.unshift({title:res.data[i].name,name:res.data[i].action,color:'blue',cuIcon:'safe'})
- }
- that.elements.push({title:'閫�鍑虹櫥褰�',name:'logOut',color:'grey',cuIcon:'exit'})
- } else if (res.code === 403) {
- uni.showToast({title: res.msg, icon: "none", position: 'top'})
- setTimeout(() => {
- uni.reLaunch({
- url: '../login/login'
- });
- }, 1000);
- } else {
- uni.showToast({title: res.msg, icon: "none",position: 'top'})
- }
- }
- })
- },
- changeImg(){
- console.log(1)
- },
- checked() {
- uni.vibrateShort();
- }
- }
- }
-</script>
-
-<style>
- @import "../../colorui/main.css";
- @import "../../colorui/icon.css";
-
- .custom-position {
- margin: 10rpx 10rpx 50rpx 0rpx;
- }
- .img-logo {
- width: 150rpx;
- }
-</style>
diff --git a/pages/login/login.vue b/pages/login/login.vue
deleted file mode 100644
index 331bfc7..0000000
--- a/pages/login/login.vue
+++ /dev/null
@@ -1,473 +0,0 @@
-<template>
- <view class="zai-box">
-
- <scroll-view scroll-y class="page">
-
- <view class="text-center" :style="[{animation: 'show ' + 0.4+ 's 1'}]">
- <image src="../../static/logo.png" mode='aspectFit' class="zai-logo" @longtap='longpressImg'></image>
- </view>
- <view class="box padding-lr-xl login-paddingtop" :style="[{animation: 'show ' + 0.6+ 's 1'}]">
- <block v-if="loginWay==1">
- <view class="cu-form-group margin-top shadow-warp" :class="[shape=='round'?'round':'']">
- <view class="title-login"><text class="cuIcon-people margin-right-xs"></text>璐﹀彿:</view>
- <input placeholder="璇疯緭鍏ヨ处鍙�" name="input" v-model="userName"></input>
- </view>
- <view class="cu-form-group margin-top shadow-warp" :class="[shape=='round'?'round':'']">
- <view class="title-login"><text class="cuIcon-lock margin-right-xs"></text>瀵嗙爜:</view>
- <input class="uni-input" placeholder="璇疯緭鍏ュ瘑鐮�" :password="!showPassword" v-model="password" />
- <view class="action text-lg">
- <text :class="[showPassword ? 'cuIcon-attention' : 'cuIcon-attentionforbid']"
- @click="changePassword"></text>
- </view>
- </view>
- <view class="flex margin-xs justify-between">
- <checkbox-group class="rember">
- <label>
- <checkbox value="cb" :checked="rember" @tap="rember = !rember"
- style="transform:scale(0.7)" /><text>璁颁綇瀵嗙爜</text>
- </label>
- </checkbox-group>
- <!-- <text class="changeIP" @click="changeIP()">璁剧疆IP</text> -->
- <text class="changeIP" @click="config()">閰嶇疆</text>
- </view>
- <view class="flex padding justify-center margin-top">
- <button class="cu-btn bg-blue lg shadow" :loading="loading"
- :class="[shape=='round'?'round':'']" @tap="onLogin"><text
- space="emsp">{{loading ? "鐧诲綍涓�...":" 鐧诲綍 "}}</text>
- </button>
- </view>
- </block>
-
- <!-- #ifdef APP-PLUS -->
- <view class="padding flex flex-direction text-center"
- style="position: fixed;width: 80%;bottom: 0;text-align: center;">
- 褰撳墠鐗堟湰:{{version}}
- </view>
- <!-- #endif -->
-
- </view>
- </scroll-view>
-
- <view>
- <uni-popup ref="popup" type="right">
- <view class="config">
- <view class="config-title"><text>閰嶇疆</text></view>
- <view class="config-item">
- <text>ip鍦板潃锛�</text>
- <input v-model="IP" type="text" placeholder="192.168.1.1"
- placeholder-style="font-size:16rpx;text-indent: 10rpx;">
- </view>
- <view class="config-item">
- <text>绔彛鍙凤細</text>
- <input v-model="PORT" type="text" placeholder="8080"
- placeholder-style="font-size:16rpx;text-indent: 10rpx;">
- </view>
- <view class="config-item">
- <text>椤圭洰锛�</text>
- <input v-model="PROJECT" type="text" placeholder="wms"
- placeholder-style="font-size:16rpx;text-indent: 10rpx;">
- </view>
- <view class="flex justify-around">
- <button class="cu-btn bg-blue lg" @click="configConfirm">纭</button>
- </view>
- </view>
- </uni-popup>
- </view>
-
-
-
-
- <!-- 鐧诲綍鍔犺浇寮圭獥 -->
- <view class="cu-load load-modal" v-if="loading">
- <!-- <view class="cuIcon-emojifill text-orange"></view> -->
- <image src="../../static/logo1.png" mode="aspectFit" class="round"></image>
- <view class="gray-text">鐧诲綍涓�...</view>
- </view>
- <view>
- <uni-popup ref="inputDialog" type="dialog">
- <uni-popup-dialog ref="inputClose" mode="input" title="璁剧疆IP" v-model="IP" placeholder="璇疯緭鍏ユ湇鍔″櫒IP"
- @confirm="dialogInputConfirm">
- </uni-popup-dialog>
- </uni-popup>
- </view>
- <view style="margin-top: 10rpx;">
- <uni-popup ref="serverPort" type="dialog">
- <uni-popup-dialog ref="inputClose" mode="input" title="璁剧疆绔彛" v-model="PORT" placeholder="璇疯緭鍏ユ湇鍔″櫒绔彛鍙�"
- @confirm="serverPortConfirm">
- </uni-popup-dialog>
- </uni-popup>
- </view>
- </view>
-
-</template>
-
-<script>
- // import { ACCESS_TOKEN,USER_NAME,USER_INFO } from "@/common/util/constants"
- import {
- mapActions
- } from "vuex"
- import md5 from '../../common/md5.js'
- // import configService from '@/common/service/config.service.js';
-
- export default {
- data() {
- return {
- shape: '', //round 鍦嗗舰
- loading: false,
- phoneNo: '',
- smsCode: '',
- showPassword: false, //鏄惁鏄剧ず鏄庢枃
- loginWay: 1, //1: 璐﹀瘑锛�2锛氶獙璇佺爜
- smsCountDown: 0,
- smsCountInterval: null,
- toggleDelay: false,
- version: '',
- //绗笁鏂圭櫥褰曠浉鍏充俊鎭�
- thirdType: "",
- thirdLoginInfo: "",
- thirdLoginState: false,
- bindingPhoneModal: false,
- thirdUserUuid: '',
- url: {
- bindingThirdPhone: '/sys/thirdLogin/bindingThirdPhone'
- },
- type: '',
- userName: '',
- password: '',
- rember: true,
- IP: '10.20.192.200',
- PORT: '', // 榛樿绔彛鍙�
- PROJECT: ''
- };
- },
- mounted() {
- let that = this;
- //缂撳瓨鐨勮处鍙�
- const HCuname = uni.getStorageSync('HCuname');
- //缂撳瓨鐨勫瘑鐮�
- const HCpassw = uni.getStorageSync('HCpassw');
- //鏈夌紦瀛樺氨璧嬪�肩粰鏂囨湰娌℃湁灏辨竻绌�
- if (HCuname && HCpassw) {
- that.userName = HCuname;
- that.password = HCpassw;
- } else {
- that.userName = '';
- that.password = '';
- }
- const UIP = uni.getStorageSync('UIP');
- if (UIP) {
- that.IP = UIP;
- that.baseIP = UIP;
- } else {
- that.IP = '';
- }
-
- const UPORT = uni.getStorageSync('UPORT');
- if (UPORT) {
- that.PORT = UPORT;
- that.basePORT = UPORT;
- } else {
- that.PORT = '';
- }
- const PROJ = uni.getStorageSync('UPROJ');
- this.PROJECT = PROJ;
- this.baseUrl = PROJ
- },
- onLoad: function() {
- // #ifdef APP-PLUS
- var that = this
- plus.runtime.getProperty(plus.runtime.appid, function(wgtinfo) {
- that.version = wgtinfo.version
- });
- // #endif
- // this.getVersion()
- // this.downWgt()
- },
- computed: {
- isSendSMSEnable() {
- return this.smsCountDown <= 0 && this.phoneNo.length > 4;
- },
- getSendBtnText() {
- if (this.smsCountDown > 0) {
- return this.smsCountDown + '绉掑悗鍙戦��';
- } else {
- return '鍙戦�侀獙璇佺爜';
- }
- },
- canSMSLogin() {
- return this.userName.length > 4 && this.smsCode.length > 4;
- },
- canPwdLogin() {
- return this.userName.length > 4 && this.password.length > 4;
- },
- },
- methods: {
- // 閰嶇疆 URL PORT 椤圭洰(jkwms)
- config() {
- this.$refs.popup.open("center")
- },
- // 纭閰嶇疆
- configConfirm() {
- this.baseIP = this.IP
- uni.setStorageSync('UIP', this.baseIP)
- this.basePORT = this.PORT
- uni.setStorageSync('UPORT', this.basePORT)
- this.baseUrl = this.PROJECT
- uni.setStorageSync('UPROJ', this.baseUrl)
- var baseUrl = this.baseHttp + this.baseIP + ':' + this.basePORT + "/" + this.baseUrl
- uni.setStorageSync("baseUrl", baseUrl)
- this.$refs.popup.close()
- },
- longpressImg() { // 闀挎寜鍥剧墖
- this.$refs.serverPort.open()
- },
- serverPortConfirm(type) {
- this.basePORT = type
- // 瀛樺叆鏈湴缂撳瓨
- this.PORT = type
- uni.setStorageSync('UPORT', this.basePORT)
- },
- changeIP() {
- this.$refs.inputDialog.open()
- },
- dialogInputConfirm(type) {
- this.baseIP = type
- // 瀛樺叆鏈湴缂撳瓨
- this.IP = type;
- uni.setStorageSync('UIP', this.baseIP)
- },
- checkboxChange: function(e) {
- if (e.detail.value.length == 1) {
-
- //鑾峰彇缂撳瓨鐨勮处鍙�
- uni.getStorageSync('HCuname', this.userName);
- uni.getStorageSync('HCpassw', this.password);
- } else {
- uni.removeStorageSync('HCuname');
- uni.removeStorageSync('HCpassw');
- }
- },
- onLogin: function() {
- if (!this.userName || this.userName.length == 0) {
- uni.showToast({
- title: '璇峰~鍐欒处鍙�',
- icon: "none"
- })
- return;
- }
- if (!this.password || this.password.length == 0) {
- uni.showToast({
- title: '璇峰~鍐欏瘑鐮�',
- icon: "none"
- })
- return;
- }
- if (this.baseIP == undefined || this.baseIP == '') {
- uni.showToast({
- title: '璇峰厛璁剧疆IP',
- icon: 'none'
- })
- return;
- }
- if (this.basePORT == undefined) {
- uni.showToast({
- title: '闀挎寜鍥剧墖杈撳叆绔彛鍙�',
- icon: 'none'
- })
- return;
- }
- uni.showLoading();
- setTimeout(function() {
- uni.hideLoading();
- uni.showToast({
- title: '鐧诲綍瓒呮椂',
- position: 'bottom',
- duration: 1000
- });
- }, 6000)
- uni.request({
- url: this.baseHttp + this.baseIP + ':' + this.basePORT + "/" + this.baseUrl +
- '/login.action',
- data: {
- username: this.userName,
- password: md5.hex_md5(this.password)
- },
- header: {
- "content-type": "application/json"
- },
- success: (result) => {
- let res = result.data;
- uni.hideLoading();
- if (res.code == 200) {
- uni.showToast({
- title: '鐧诲綍鎴愬姛',
- position: 'bottom',
- duration: 1000
- });
- if (this.rember) {
- uni.setStorageSync('HCuname', this.userName);
- uni.setStorageSync('HCpassw', this.password);
- } else {
- uni.removeStorageSync('HCuname');
- uni.removeStorageSync('HCpassw');
- }
- uni.setStorageSync('token', res.data.token);
- setTimeout(() => {
- // uni.navigateBack(); // 灏忕▼搴忕敤杩欎釜 鎶婇椤佃矾鐢辨斁绗竴涓�
- uni.reLaunch({
- url: '../index/index'
- });
- }, 1000);
- } else {
- uni.showToast({
- title: res.msg,
- icon: "none",
- position: 'top'
- })
- }
-
- }
- });
- },
- saveClientId() {
- var info = plus.push.getClientInfo();
- var cid = info.clientid;
- this.$http.get("/sys/user/saveClientId", {
- params: {
- clientId: cid
- }
- }).then(res => {
- this.$tip.success('鐧诲綍鎴愬姛!')
- this.$Router.replaceAll({
- name: 'index'
- })
- })
- },
- changePassword() {
- this.showPassword = !this.showPassword;
- },
- loginSuccess() {
- // 鐧婚檰鎴愬姛锛岄噸瀹氬悜鍒颁富椤�
- this.$Router.replace({
- name: 'index'
- })
- },
- requestFailed(err) {
- this.$message.warning("鐧诲綍澶辫触")
- },
- },
- beforeDestroy() {
- if (this.smsCountInterval) {
- clearInterval(this.smsCountInterval);
- }
- },
-
-
- }
-</script>
-
-<style>
- @import "../../colorui/main.css";
- @import "../../colorui/icon.css";
- @import "../../colorui/animation.css";
-
- .config {
- width: 500rpx;
- height: 500rpx;
- background-color: #fff;
- border-radius: 20px;
- }
-
- .config-title {
- height: 100rpx;
- font-size: 32rpx;
- text-align: center;
- line-height: 100rpx;
- }
-
- .config-item {
- height: 100rpx;
- }
-
- .config-item text {
- display: inline-block;
- float: left;
- text-indent: 1em;
- }
-
- .config-item input {
- display: inline-block;
- float: right;
- margin-right: 50rpx;
- width: 300rpx;
- height: 50rpx;
- border: 1px solid #aaaaaa;
- border-radius: 10rpx;
- font-size: 16rpx;
- text-indent: 10rpx;
-
- }
-
- .login-paddingtop {
- padding-top: 50upx;
- }
-
- .zai-box {
- padding: 0 20upx;
- padding-top: 100upx;
- position: relative;
- }
-
- .zai-logo {
- width: 600upx;
- height: 150px;
- }
-
- .zai-title {
- font-size: 58upx;
- color: #000000;
- text-align: center;
- }
-
- .input-placeholder,
- .zai-input {
- color: #94afce;
- }
-
- .zai-label {
- padding: 60upx 0;
- text-align: center;
- font-size: 30upx;
- color: #a7b6d0;
- }
-
- .zai-btn {
- background: #ff65a3;
- color: #fff;
- border: 0;
- border-radius: 100upx;
- font-size: 36upx;
- }
-
- .zai-btn:after {
- border: 0;
- }
-
- /*鎸夐挳鐐瑰嚮鏁堟灉*/
- .zai-btn.button-hover {
- transform: translate(1upx, 1upx);
- }
-
- .changeBox {
- margin-top: 20upx;
- }
-
- .rember {
- display: inline-block;
- }
-
- .changeIP {
- float: right;
- margin-right: 15upx;
- }
-</style>
diff --git a/static/css/common.css b/static/css/common.css
deleted file mode 100644
index 07f56da..0000000
--- a/static/css/common.css
+++ /dev/null
@@ -1,61 +0,0 @@
-/* columns 鍒� 缂╁啓 col */
-/* 涓�琛屼竴鍒� */
-.one-col {
- width: 100%;
- height: 0;
- padding-bottom: 100%;
- background-color: #FFF;
- display: inline-block;
- float: left;
-}
-/* 涓�琛屼袱鍒� */
-.two-cols {
- width: 50%;
- height: 0;
- padding-bottom: 50%;
- background-color: #FFF;
- display: inline-block;
- float: left;
-}
-/* 涓�琛屼笁鍒� */
-.three-cols {
- width: 33.33%;
- height: 0;
- padding-bottom: 33.33%;
- background-color: #FFF;
- display: inline-block;
- float: left;
-}
-
-/* 鏉$爜鎵弿妗� */
-.search-box {
- width: 100%;
- /* height: 100rpx; */
-}
-.search-box-title {
- display: inline-block;
- float: left;
- border-bottom: 1px solid #909399;
- width: 30%;
- height: 100rpx;
- line-height: 100rpx;
- text-align: right;
- text-indent: -10rpx;
-
-}
-.search-box-input {
- display: inline-block;
- float: left;
- border-bottom: 1px solid #909399;
- width: 60%;
- height: 100rpx;
- /* line-height: 150rpx; */
- margin-left: 10rpx;
- text-indent: 10rpx;
- placeholder-style {
- color: #eaeff8;
- }
-}
-.placeholder-style {
-
-}
\ No newline at end of file
diff --git a/static/css/demo/index.css b/static/css/demo/index.css
deleted file mode 100644
index e69de29..0000000
--- a/static/css/demo/index.css
+++ /dev/null
diff --git a/static/css/putOnSale.css b/static/css/putOnSale.css
deleted file mode 100644
index e1c5594..0000000
--- a/static/css/putOnSale.css
+++ /dev/null
@@ -1,73 +0,0 @@
-.revise-box {
- width: 400rpx;
- height: 300rpx;
- border-radius: 25px;
-}
-.revise-box-top {
- width: 400rpx;
- height: 120rpx;
- border-radius: 25px;
-}
-.changeBox {
- width: 400rpx;
- height: 100rpx;
-}
-.num-box {
- margin-left: 100rpx;
-}
-.revise-box-buttom{
- margin-left: 130rpx;
-}
-.bg-false {
- background-color: #FFFFFF;
-}
-.bg-true {
- background-color: #ebebeb;
-}
-.data-list {
- border-bottom: 1px solid #d8d8d8;
- height: 180rpx;
- margin: 15rpx;
- border-radius: 20rpx;
-}
-.data-list:first-child {
- /* margin-top: 20rpx; */
-}
-.data-list:last-child {
- margin-bottom: 120rpx;
-}
-/* .data-list-left {
- display: inline-block;
- float: left;
- text-align: center;
- width: 100rpx;
- height: 180rpx;
- line-height: 180rpx;
-} */
-.data-list-left {
- display: inline-block;
- float: left;
- margin-left: 6%;
- height: 180rpx;
- color: #676767;
-}
-.matnr {
- padding-top: 10rpx;
-}
-.data-list-right {
- display: inline-block;
- float: right;
- height: 180rpx;
- line-height: 180rpx;
-}
-/* display: inline-block;
-float: right;
-width: 200rpx;
-height: 180rpx;
-line-height: 180rpx; */
-.data-list-right label {
- display: inline-block;
- float: left;
- width: 80rpx;
- height: 180rpx;
-}
\ No newline at end of file
diff --git a/static/logo.png b/static/logo.png
deleted file mode 100644
index e2fc662..0000000
--- a/static/logo.png
+++ /dev/null
Binary files differ
diff --git a/static/logo1.png b/static/logo1.png
deleted file mode 100644
index e2fc662..0000000
--- a/static/logo1.png
+++ /dev/null
Binary files differ
diff --git a/static/music/pakinOk.mp3 b/static/music/pakinOk.mp3
deleted file mode 100644
index 4d072d4..0000000
--- a/static/music/pakinOk.mp3
+++ /dev/null
Binary files differ
diff --git a/static/uni.ttf b/static/uni.ttf
deleted file mode 100644
index 60a1968..0000000
--- a/static/uni.ttf
+++ /dev/null
Binary files differ
diff --git a/static/zoneyung.png b/static/zoneyung.png
deleted file mode 100644
index 094646e..0000000
--- a/static/zoneyung.png
+++ /dev/null
Binary files differ
diff --git a/uni.scss b/uni.scss
deleted file mode 100644
index a05adb4..0000000
--- a/uni.scss
+++ /dev/null
@@ -1,76 +0,0 @@
-/**
- * 杩欓噷鏄痷ni-app鍐呯疆鐨勫父鐢ㄦ牱寮忓彉閲�
- *
- * uni-app 瀹樻柟鎵╁睍鎻掍欢鍙婃彃浠跺競鍦猴紙https://ext.dcloud.net.cn锛変笂寰堝涓夋柟鎻掍欢鍧囦娇鐢ㄤ簡杩欎簺鏍峰紡鍙橀噺
- * 濡傛灉浣犳槸鎻掍欢寮�鍙戣�咃紝寤鸿浣犱娇鐢╯css棰勫鐞嗭紝骞跺湪鎻掍欢浠g爜涓洿鎺ヤ娇鐢ㄨ繖浜涘彉閲忥紙鏃犻渶 import 杩欎釜鏂囦欢锛夛紝鏂逛究鐢ㄦ埛閫氳繃鎼Н鏈ㄧ殑鏂瑰紡寮�鍙戞暣浣撻鏍间竴鑷寸殑App
- *
- */
-
-/**
- * 濡傛灉浣犳槸App寮�鍙戣�咃紙鎻掍欢浣跨敤鑰咃級锛屼綘鍙互閫氳繃淇敼杩欎簺鍙橀噺鏉ュ畾鍒惰嚜宸辩殑鎻掍欢涓婚锛屽疄鐜拌嚜瀹氫箟涓婚鍔熻兘
- *
- * 濡傛灉浣犵殑椤圭洰鍚屾牱浣跨敤浜唖css棰勫鐞嗭紝浣犱篃鍙互鐩存帴鍦ㄤ綘鐨� scss 浠g爜涓娇鐢ㄥ涓嬪彉閲忥紝鍚屾椂鏃犻渶 import 杩欎釜鏂囦欢
- */
-
-/* 棰滆壊鍙橀噺 */
-
-/* 琛屼负鐩稿叧棰滆壊 */
-$uni-color-primary: #007aff;
-$uni-color-success: #4cd964;
-$uni-color-warning: #f0ad4e;
-$uni-color-error: #dd524d;
-
-/* 鏂囧瓧鍩烘湰棰滆壊 */
-$uni-text-color:#333;//鍩烘湰鑹�
-$uni-text-color-inverse:#fff;//鍙嶈壊
-$uni-text-color-grey:#999;//杈呭姪鐏拌壊锛屽鍔犺浇鏇村鐨勬彁绀轰俊鎭�
-$uni-text-color-placeholder: #808080;
-$uni-text-color-disable:#c0c0c0;
-
-/* 鑳屾櫙棰滆壊 */
-$uni-bg-color:#ffffff;
-$uni-bg-color-grey:#f8f8f8;
-$uni-bg-color-hover:#f1f1f1;//鐐瑰嚮鐘舵�侀鑹�
-$uni-bg-color-mask:rgba(0, 0, 0, 0.4);//閬僵棰滆壊
-
-/* 杈规棰滆壊 */
-$uni-border-color:#c8c7cc;
-
-/* 灏哄鍙橀噺 */
-
-/* 鏂囧瓧灏哄 */
-$uni-font-size-sm:12px;
-$uni-font-size-base:14px;
-$uni-font-size-lg:16;
-
-/* 鍥剧墖灏哄 */
-$uni-img-size-sm:20px;
-$uni-img-size-base:26px;
-$uni-img-size-lg:40px;
-
-/* Border Radius */
-$uni-border-radius-sm: 2px;
-$uni-border-radius-base: 3px;
-$uni-border-radius-lg: 6px;
-$uni-border-radius-circle: 50%;
-
-/* 姘村钩闂磋窛 */
-$uni-spacing-row-sm: 5px;
-$uni-spacing-row-base: 10px;
-$uni-spacing-row-lg: 15px;
-
-/* 鍨傜洿闂磋窛 */
-$uni-spacing-col-sm: 4px;
-$uni-spacing-col-base: 8px;
-$uni-spacing-col-lg: 12px;
-
-/* 閫忔槑搴� */
-$uni-opacity-disabled: 0.3; // 缁勪欢绂佺敤鎬佺殑閫忔槑搴�
-
-/* 鏂囩珷鍦烘櫙鐩稿叧 */
-$uni-color-title: #2C405A; // 鏂囩珷鏍囬棰滆壊
-$uni-font-size-title:20px;
-$uni-color-subtitle: #555555; // 浜岀骇鏍囬棰滆壊
-$uni-font-size-subtitle:26px;
-$uni-color-paragraph: #3F536E; // 鏂囩珷娈佃惤棰滆壊
-$uni-font-size-paragraph:15px;
diff --git a/uni_modules/uni-badge/changelog.md b/uni_modules/uni-badge/changelog.md
deleted file mode 100644
index 544ecc1..0000000
--- a/uni_modules/uni-badge/changelog.md
+++ /dev/null
@@ -1,29 +0,0 @@
-## 1.2.0锛�2021-11-19锛�
-- 浼樺寲 缁勪欢UI锛屽苟鎻愪緵璁捐璧勬簮锛岃瑙�:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource)
-- 鏂囨。杩佺Щ锛岃瑙�:[https://uniapp.dcloud.io/component/uniui/uni-badge](https://uniapp.dcloud.io/component/uniui/uni-badge)
-## 1.1.7锛�2021-11-08锛�
-- 浼樺寲 鍗囩骇ui
-- 淇敼 size 灞炴�ч粯璁ゅ�艰皟鏁翠负 small
-- 淇敼 type 灞炴�э紝榛樿鍊艰皟鏁翠负 error锛宨nfo 鏇挎崲 default
-## 1.1.6锛�2021-09-22锛�
-- 淇 鍦ㄥ瓧鑺傚皬绋嬪簭涓婃牱寮忎笉鐢熸晥鐨� bug
-## 1.1.5锛�2021-07-30锛�
-- 缁勪欢鍏煎 vue3锛屽浣曞垱寤簐ue3椤圭洰锛岃瑙� [uni-app 椤圭洰鏀寔 vue3 浠嬬粛](https://ask.dcloud.net.cn/article/37834)
-## 1.1.4锛�2021-07-29锛�
-- 淇 鍘绘帀 nvue 涓嶆敮鎸乧ss 鐨� align-self 灞炴�э紝nvue 涓嬩笉鏆傛敮鎸� absolute 灞炴��
-## 1.1.3锛�2021-06-24锛�
-- 浼樺寲 绀轰緥椤圭洰
-## 1.1.1锛�2021-05-12锛�
-- 鏂板 缁勪欢绀轰緥鍦板潃
-## 1.1.0锛�2021-05-12锛�
-- 鏂板 uni-badge 鐨� absolute 灞炴�э紝鏀寔瀹氫綅
-- 鏂板 uni-badge 鐨� offset 灞炴�э紝鏀寔瀹氫綅鍋忕Щ
-- 鏂板 uni-badge 鐨� is-dot 灞炴�э紝鏀寔浠呮樉绀烘湁涓�涓皬鐐�
-- 鏂板 uni-badge 鐨� max-num 灞炴�э紝鏀寔鑷畾涔夊皝椤剁殑鏁板瓧鍊硷紝瓒呰繃 99 鏄剧ず99+
-- 浼樺寲 uni-badge 灞炴�� custom-style锛� 鏀寔浠ュ璞″舰寮忚嚜瀹氫箟鏍峰紡
-## 1.0.7锛�2021-05-07锛�
-- 淇 uni-badge 鍦� App 绔紝鏁板瓧灏忎簬10鏃朵笉鏄渾褰㈢殑bug
-- 淇 uni-badge 鍦ㄧ埗鍏冪礌涓嶆槸 flex 甯冨眬鏃讹紝瀹藉害缂╁皬鐨刡ug
-- 鏂板 uni-badge 灞炴�� custom-style锛� 鏀寔鑷畾涔夋牱寮�
-## 1.0.6锛�2021-02-04锛�
-- 璋冩暣涓簎ni_modules鐩綍瑙勮寖
diff --git a/uni_modules/uni-badge/components/uni-badge/uni-badge.vue b/uni_modules/uni-badge/components/uni-badge/uni-badge.vue
deleted file mode 100644
index 1981b4e..0000000
--- a/uni_modules/uni-badge/components/uni-badge/uni-badge.vue
+++ /dev/null
@@ -1,268 +0,0 @@
-<template>
- <view class="uni-badge--x">
- <slot />
- <text v-if="text" :class="classNames" :style="[badgeWidth, positionStyle, customStyle, dotStyle]"
- class="uni-badge" @click="onClick()">{{displayValue}}</text>
- </view>
-</template>
-
-<script>
- /**
- * Badge 鏁板瓧瑙掓爣
- * @description 鏁板瓧瑙掓爣涓�鑸拰鍏跺畠鎺т欢锛堝垪琛ㄣ��9瀹牸绛夛級閰嶅悎浣跨敤锛岀敤浜庤繘琛屾暟閲忔彁绀猴紝榛樿涓哄疄蹇冪伆鑹茶儗鏅�
- * @tutorial https://ext.dcloud.net.cn/plugin?id=21
- * @property {String} text 瑙掓爣鍐呭
- * @property {String} size = [normal|small] 瑙掓爣鍐呭
- * @property {String} type = [info|primary|success|warning|error] 棰滆壊绫诲瀷
- * @value info 鐏拌壊
- * @value primary 钃濊壊
- * @value success 缁胯壊
- * @value warning 榛勮壊
- * @value error 绾㈣壊
- * @property {String} inverted = [true|false] 鏄惁鏃犻渶鑳屾櫙棰滆壊
- * @property {Number} maxNum 灞曠ず灏侀《鐨勬暟瀛楀�硷紝瓒呰繃 99 鏄剧ず 99+
- * @property {String} absolute = [rightTop|rightBottom|leftBottom|leftTop] 寮�鍚粷瀵瑰畾浣�, 瑙掓爣灏嗗畾浣嶅埌鍏跺寘瑁圭殑鏍囩鐨勫洓瑙掍笂
- * @value rightTop 鍙充笂
- * @value rightBottom 鍙充笅
- * @value leftTop 宸︿笂
- * @value leftBottom 宸︿笅
- * @property {Array[number]} offset 璺濆畾浣嶈涓績鐐圭殑鍋忕Щ閲忥紝鍙湁瀛樺湪 absolute 灞炴�ф椂鏈夋晥锛屼緥濡傦細[-10, -10] 琛ㄧず鍚戝鍋忕Щ 10px锛孾10, 10] 琛ㄧず鍚� absolute 鎸囧畾鐨勫唴鍋忕Щ 10px
- * @property {String} isDot = [true|false] 鏄惁鏄剧ず涓轰竴涓皬鐐�
- * @event {Function} click 鐐瑰嚮 Badge 瑙﹀彂浜嬩欢
- * @example <uni-badge text="1"></uni-badge>
- */
-
- export default {
- name: 'UniBadge',
- emits: ['click'],
- props: {
- type: {
- type: String,
- default: 'error'
- },
- inverted: {
- type: Boolean,
- default: false
- },
- isDot: {
- type: Boolean,
- default: false
- },
- maxNum: {
- type: Number,
- default: 99
- },
- absolute: {
- type: String,
- default: ''
- },
- offset: {
- type: Array,
- default () {
- return [0, 0]
- }
- },
- text: {
- type: [String, Number],
- default: ''
- },
- size: {
- type: String,
- default: 'small'
- },
- customStyle: {
- type: Object,
- default () {
- return {}
- }
- }
- },
- data() {
- return {};
- },
- computed: {
- width() {
- return String(this.text).length * 8 + 12
- },
- classNames() {
- const {
- inverted,
- type,
- size,
- absolute
- } = this
- return [
- inverted ? 'uni-badge--' + type + '-inverted' : '',
- 'uni-badge--' + type,
- 'uni-badge--' + size,
- absolute ? 'uni-badge--absolute' : ''
- ].join(' ')
- },
- positionStyle() {
- if (!this.absolute) return {}
- let w = this.width / 2,
- h = 10
- if (this.isDot) {
- w = 5
- h = 5
- }
- const x = `${- w + this.offset[0]}px`
- const y = `${- h + this.offset[1]}px`
-
- const whiteList = {
- rightTop: {
- right: x,
- top: y
- },
- rightBottom: {
- right: x,
- bottom: y
- },
- leftBottom: {
- left: x,
- bottom: y
- },
- leftTop: {
- left: x,
- top: y
- }
- }
- const match = whiteList[this.absolute]
- return match ? match : whiteList['rightTop']
- },
- badgeWidth() {
- return {
- width: `${this.width}px`
- }
- },
- dotStyle() {
- if (!this.isDot) return {}
- return {
- width: '10px',
- height: '10px',
- borderRadius: '10px'
- }
- },
- displayValue() {
- const {
- isDot,
- text,
- maxNum
- } = this
- return isDot ? '' : (Number(text) > maxNum ? `${maxNum}+` : text)
- }
- },
- methods: {
- onClick() {
- this.$emit('click');
- }
- }
- };
-</script>
-
-<style lang="scss" scoped>
- $uni-primary: #2979ff !default;
- $uni-success: #4cd964 !default;
- $uni-warning: #f0ad4e !default;
- $uni-error: #dd524d !default;
- $uni-info: #909399 !default;
-
-
- $bage-size: 12px;
- $bage-small: scale(0.8);
-
- .uni-badge--x {
- /* #ifdef APP-NVUE */
- // align-self: flex-start;
- /* #endif */
- /* #ifndef APP-NVUE */
- display: inline-block;
- /* #endif */
- position: relative;
- }
-
- .uni-badge--absolute {
- position: absolute;
- }
-
- .uni-badge--small {
- transform: $bage-small;
- transform-origin: center center;
- }
-
- .uni-badge {
- /* #ifndef APP-NVUE */
- display: flex;
- overflow: hidden;
- box-sizing: border-box;
- /* #endif */
- justify-content: center;
- flex-direction: row;
- height: 20px;
- line-height: 18px;
- color: #fff;
- border-radius: 100px;
- background-color: $uni-info;
- background-color: transparent;
- border: 1px solid #fff;
- text-align: center;
- font-family: 'Helvetica Neue', Helvetica, sans-serif;
- font-size: $bage-size;
- /* #ifdef H5 */
- z-index: 999;
- cursor: pointer;
- /* #endif */
-
- &--info {
- color: #fff;
- background-color: $uni-info;
- }
-
- &--primary {
- background-color: $uni-primary;
- }
-
- &--success {
- background-color: $uni-success;
- }
-
- &--warning {
- background-color: $uni-warning;
- }
-
- &--error {
- background-color: $uni-error;
- }
-
- &--inverted {
- padding: 0 5px 0 0;
- color: $uni-info;
- }
-
- &--info-inverted {
- color: $uni-info;
- background-color: transparent;
- }
-
- &--primary-inverted {
- color: $uni-primary;
- background-color: transparent;
- }
-
- &--success-inverted {
- color: $uni-success;
- background-color: transparent;
- }
-
- &--warning-inverted {
- color: $uni-warning;
- background-color: transparent;
- }
-
- &--error-inverted {
- color: $uni-error;
- background-color: transparent;
- }
-
- }
-</style>
diff --git a/uni_modules/uni-badge/package.json b/uni_modules/uni-badge/package.json
deleted file mode 100644
index 7ba6d2f..0000000
--- a/uni_modules/uni-badge/package.json
+++ /dev/null
@@ -1,88 +0,0 @@
-{
- "id": "uni-badge",
- "displayName": "uni-badge 鏁板瓧瑙掓爣",
- "version": "1.2.0",
- "description": "鏁板瓧瑙掓爣锛堝窘绔狅級缁勪欢锛屽湪鍏冪礌鍛ㄥ洿灞曠ず娑堟伅鎻愰啋锛屼竴鑸敤浜庡垪琛ㄣ�佷節瀹牸銆佹寜閽瓑鍦版柟銆�",
- "keywords": [
- "",
- "badge",
- "uni-ui",
- "uniui",
- "鏁板瓧瑙掓爣",
- "寰界珷"
-],
- "repository": "https://github.com/dcloudio/uni-ui",
- "engines": {
- "HBuilderX": ""
- },
- "directories": {
- "example": "../../temps/example_temps"
- },
- "dcloudext": {
- "category": [
- "鍓嶇缁勪欢",
- "閫氱敤缁勪欢"
- ],
- "sale": {
- "regular": {
- "price": "0.00"
- },
- "sourcecode": {
- "price": "0.00"
- }
- },
- "contact": {
- "qq": ""
- },
- "declaration": {
- "ads": "鏃�",
- "data": "鏃�",
- "permissions": "鏃�"
- },
- "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui"
- },
- "uni_modules": {
- "dependencies": [],
- "encrypt": [],
- "platforms": {
- "cloud": {
- "tcb": "y",
- "aliyun": "y"
- },
- "client": {
- "App": {
- "app-vue": "y",
- "app-nvue": "y"
- },
- "H5-mobile": {
- "Safari": "y",
- "Android Browser": "y",
- "寰俊娴忚鍣�(Android)": "y",
- "QQ娴忚鍣�(Android)": "y"
- },
- "H5-pc": {
- "Chrome": "y",
- "IE": "y",
- "Edge": "y",
- "Firefox": "y",
- "Safari": "y"
- },
- "灏忕▼搴�": {
- "寰俊": "y",
- "闃块噷": "y",
- "鐧惧害": "y",
- "瀛楄妭璺冲姩": "y",
- "QQ": "y"
- },
- "蹇簲鐢�": {
- "鍗庝负": "y",
- "鑱旂洘": "y"
- },
- "Vue": {
- "vue2": "y",
- "vue3": "y"
- }
- }
- }
- }
-}
\ No newline at end of file
diff --git a/uni_modules/uni-badge/readme.md b/uni_modules/uni-badge/readme.md
deleted file mode 100644
index bdf175d..0000000
--- a/uni_modules/uni-badge/readme.md
+++ /dev/null
@@ -1,10 +0,0 @@
-## Badge 鏁板瓧瑙掓爣
-> **缁勪欢鍚嶏細uni-badge**
-> 浠g爜鍧楋細 `uBadge`
-
-鏁板瓧瑙掓爣涓�鑸拰鍏跺畠鎺т欢锛堝垪琛ㄣ��9瀹牸绛夛級閰嶅悎浣跨敤锛岀敤浜庤繘琛屾暟閲忔彁绀猴紝榛樿涓哄疄蹇冪伆鑹茶儗鏅紝
-
-### [鏌ョ湅鏂囨。](https://uniapp.dcloud.io/component/uniui/uni-badge)
-#### 濡備娇鐢ㄨ繃绋嬩腑鏈変换浣曢棶棰橈紝鎴栬�呮偍瀵箄ni-ui鏈変竴浜涘ソ鐨勫缓璁紝娆㈣繋鍔犲叆 uni-ui 浜ゆ祦缇わ細871950839
-
-
diff --git a/uni_modules/uni-calendar/changelog.md b/uni_modules/uni-calendar/changelog.md
deleted file mode 100644
index 6df4493..0000000
--- a/uni_modules/uni-calendar/changelog.md
+++ /dev/null
@@ -1,16 +0,0 @@
-## 1.4.5锛�2022-02-25锛�
-- 淇 鏉′欢缂栬瘧 nvue 涓嶆敮鎸佺殑 css 鏍峰紡
-## 1.4.4锛�2022-02-25锛�
-- 淇 鏉′欢缂栬瘧 nvue 涓嶆敮鎸佺殑 css 鏍峰紡
-## 1.4.3锛�2021-09-22锛�
-- 淇 startDate銆� endDate 灞炴�уけ鏁堢殑 bug
-## 1.4.2锛�2021-08-24锛�
-- 鏂板 鏀寔鍥介檯鍖�
-## 1.4.1锛�2021-08-05锛�
-- 淇 寮瑰嚭灞傝 tabbar 閬洊 bug
-## 1.4.0锛�2021-07-30锛�
-- 缁勪欢鍏煎 vue3锛屽浣曞垱寤簐ue3椤圭洰锛岃瑙� [uni-app 椤圭洰鏀寔 vue3 浠嬬粛](https://ask.dcloud.net.cn/article/37834)
-## 1.3.16锛�2021-05-12锛�
-- 鏂板 缁勪欢绀轰緥鍦板潃
-## 1.3.15锛�2021-02-04锛�
-- 璋冩暣涓簎ni_modules鐩綍瑙勮寖
diff --git a/uni_modules/uni-calendar/components/uni-calendar/calendar.js b/uni_modules/uni-calendar/components/uni-calendar/calendar.js
deleted file mode 100644
index b8d7d6f..0000000
--- a/uni_modules/uni-calendar/components/uni-calendar/calendar.js
+++ /dev/null
@@ -1,546 +0,0 @@
-/**
-* @1900-2100鍖洪棿鍐呯殑鍏巻銆佸啘鍘嗕簰杞�
-* @charset UTF-8
-* @github https://github.com/jjonline/calendar.js
-* @Author Jea鏉�(JJonline@JJonline.Cn)
-* @Time 2014-7-21
-* @Time 2016-8-13 Fixed 2033hex銆丄ttribution Annals
-* @Time 2016-9-25 Fixed lunar LeapMonth Param Bug
-* @Time 2017-7-24 Fixed use getTerm Func Param Error.use solar year,NOT lunar year
-* @Version 1.0.3
-* @鍏巻杞啘鍘嗭細calendar.solar2lunar(1987,11,01); //[you can ignore params of prefix 0]
-* @鍐滃巻杞叕鍘嗭細calendar.lunar2solar(1987,09,10); //[you can ignore params of prefix 0]
-*/
-/* eslint-disable */
-var calendar = {
-
- /**
- * 鍐滃巻1900-2100鐨勬鼎澶у皬淇℃伅琛�
- * @Array Of Property
- * @return Hex
- */
- lunarInfo: [0x04bd8, 0x04ae0, 0x0a570, 0x054d5, 0x0d260, 0x0d950, 0x16554, 0x056a0, 0x09ad0, 0x055d2, // 1900-1909
- 0x04ae0, 0x0a5b6, 0x0a4d0, 0x0d250, 0x1d255, 0x0b540, 0x0d6a0, 0x0ada2, 0x095b0, 0x14977, // 1910-1919
- 0x04970, 0x0a4b0, 0x0b4b5, 0x06a50, 0x06d40, 0x1ab54, 0x02b60, 0x09570, 0x052f2, 0x04970, // 1920-1929
- 0x06566, 0x0d4a0, 0x0ea50, 0x06e95, 0x05ad0, 0x02b60, 0x186e3, 0x092e0, 0x1c8d7, 0x0c950, // 1930-1939
- 0x0d4a0, 0x1d8a6, 0x0b550, 0x056a0, 0x1a5b4, 0x025d0, 0x092d0, 0x0d2b2, 0x0a950, 0x0b557, // 1940-1949
- 0x06ca0, 0x0b550, 0x15355, 0x04da0, 0x0a5b0, 0x14573, 0x052b0, 0x0a9a8, 0x0e950, 0x06aa0, // 1950-1959
- 0x0aea6, 0x0ab50, 0x04b60, 0x0aae4, 0x0a570, 0x05260, 0x0f263, 0x0d950, 0x05b57, 0x056a0, // 1960-1969
- 0x096d0, 0x04dd5, 0x04ad0, 0x0a4d0, 0x0d4d4, 0x0d250, 0x0d558, 0x0b540, 0x0b6a0, 0x195a6, // 1970-1979
- 0x095b0, 0x049b0, 0x0a974, 0x0a4b0, 0x0b27a, 0x06a50, 0x06d40, 0x0af46, 0x0ab60, 0x09570, // 1980-1989
- 0x04af5, 0x04970, 0x064b0, 0x074a3, 0x0ea50, 0x06b58, 0x05ac0, 0x0ab60, 0x096d5, 0x092e0, // 1990-1999
- 0x0c960, 0x0d954, 0x0d4a0, 0x0da50, 0x07552, 0x056a0, 0x0abb7, 0x025d0, 0x092d0, 0x0cab5, // 2000-2009
- 0x0a950, 0x0b4a0, 0x0baa4, 0x0ad50, 0x055d9, 0x04ba0, 0x0a5b0, 0x15176, 0x052b0, 0x0a930, // 2010-2019
- 0x07954, 0x06aa0, 0x0ad50, 0x05b52, 0x04b60, 0x0a6e6, 0x0a4e0, 0x0d260, 0x0ea65, 0x0d530, // 2020-2029
- 0x05aa0, 0x076a3, 0x096d0, 0x04afb, 0x04ad0, 0x0a4d0, 0x1d0b6, 0x0d250, 0x0d520, 0x0dd45, // 2030-2039
- 0x0b5a0, 0x056d0, 0x055b2, 0x049b0, 0x0a577, 0x0a4b0, 0x0aa50, 0x1b255, 0x06d20, 0x0ada0, // 2040-2049
- /** Add By JJonline@JJonline.Cn**/
- 0x14b63, 0x09370, 0x049f8, 0x04970, 0x064b0, 0x168a6, 0x0ea50, 0x06b20, 0x1a6c4, 0x0aae0, // 2050-2059
- 0x0a2e0, 0x0d2e3, 0x0c960, 0x0d557, 0x0d4a0, 0x0da50, 0x05d55, 0x056a0, 0x0a6d0, 0x055d4, // 2060-2069
- 0x052d0, 0x0a9b8, 0x0a950, 0x0b4a0, 0x0b6a6, 0x0ad50, 0x055a0, 0x0aba4, 0x0a5b0, 0x052b0, // 2070-2079
- 0x0b273, 0x06930, 0x07337, 0x06aa0, 0x0ad50, 0x14b55, 0x04b60, 0x0a570, 0x054e4, 0x0d160, // 2080-2089
- 0x0e968, 0x0d520, 0x0daa0, 0x16aa6, 0x056d0, 0x04ae0, 0x0a9d4, 0x0a2d0, 0x0d150, 0x0f252, // 2090-2099
- 0x0d520], // 2100
-
- /**
- * 鍏巻姣忎釜鏈堜唤鐨勫ぉ鏁版櫘閫氳〃
- * @Array Of Property
- * @return Number
- */
- solarMonth: [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31],
-
- /**
- * 澶╁共鍦版敮涔嬪ぉ骞查�熸煡琛�
- * @Array Of Property trans["鐢�","涔�","涓�","涓�","鎴�","宸�","搴�","杈�","澹�","鐧�"]
- * @return Cn string
- */
- Gan: ['\u7532', '\u4e59', '\u4e19', '\u4e01', '\u620a', '\u5df1', '\u5e9a', '\u8f9b', '\u58ec', '\u7678'],
-
- /**
- * 澶╁共鍦版敮涔嬪湴鏀�熸煡琛�
- * @Array Of Property
- * @trans["瀛�","涓�","瀵�","鍗�","杈�","宸�","鍗�","鏈�","鐢�","閰�","鎴�","浜�"]
- * @return Cn string
- */
- Zhi: ['\u5b50', '\u4e11', '\u5bc5', '\u536f', '\u8fb0', '\u5df3', '\u5348', '\u672a', '\u7533', '\u9149', '\u620c', '\u4ea5'],
-
- /**
- * 澶╁共鍦版敮涔嬪湴鏀�熸煡琛�<=>鐢熻倴
- * @Array Of Property
- * @trans["榧�","鐗�","铏�","鍏�","榫�","铔�","椹�","缇�","鐚�","楦�","鐙�","鐚�"]
- * @return Cn string
- */
- Animals: ['\u9f20', '\u725b', '\u864e', '\u5154', '\u9f99', '\u86c7', '\u9a6c', '\u7f8a', '\u7334', '\u9e21', '\u72d7', '\u732a'],
-
- /**
- * 24鑺傛皵閫熸煡琛�
- * @Array Of Property
- * @trans["灏忓瘨","澶у瘨","绔嬫槬","闆ㄦ按","鎯婅洶","鏄ュ垎","娓呮槑","璋烽洦","绔嬪","灏忔弧","鑺掔","澶忚嚦","灏忔殤","澶ф殤","绔嬬","澶勬殤","鐧介湶","绉嬪垎","瀵掗湶","闇滈檷","绔嬪啲","灏忛洩","澶ч洩","鍐嚦"]
- * @return Cn string
- */
- solarTerm: ['\u5c0f\u5bd2', '\u5927\u5bd2', '\u7acb\u6625', '\u96e8\u6c34', '\u60ca\u86f0', '\u6625\u5206', '\u6e05\u660e', '\u8c37\u96e8', '\u7acb\u590f', '\u5c0f\u6ee1', '\u8292\u79cd', '\u590f\u81f3', '\u5c0f\u6691', '\u5927\u6691', '\u7acb\u79cb', '\u5904\u6691', '\u767d\u9732', '\u79cb\u5206', '\u5bd2\u9732', '\u971c\u964d', '\u7acb\u51ac', '\u5c0f\u96ea', '\u5927\u96ea', '\u51ac\u81f3'],
-
- /**
- * 1900-2100鍚勫勾鐨�24鑺傛皵鏃ユ湡閫熸煡琛�
- * @Array Of Property
- * @return 0x string For splice
- */
- sTermInfo: ['9778397bd097c36b0b6fc9274c91aa', '97b6b97bd19801ec9210c965cc920e', '97bcf97c3598082c95f8c965cc920f',
- '97bd0b06bdb0722c965ce1cfcc920f', 'b027097bd097c36b0b6fc9274c91aa', '97b6b97bd19801ec9210c965cc920e',
- '97bcf97c359801ec95f8c965cc920f', '97bd0b06bdb0722c965ce1cfcc920f', 'b027097bd097c36b0b6fc9274c91aa',
- '97b6b97bd19801ec9210c965cc920e', '97bcf97c359801ec95f8c965cc920f', '97bd0b06bdb0722c965ce1cfcc920f',
- 'b027097bd097c36b0b6fc9274c91aa', '9778397bd19801ec9210c965cc920e', '97b6b97bd19801ec95f8c965cc920f',
- '97bd09801d98082c95f8e1cfcc920f', '97bd097bd097c36b0b6fc9210c8dc2', '9778397bd197c36c9210c9274c91aa',
- '97b6b97bd19801ec95f8c965cc920e', '97bd09801d98082c95f8e1cfcc920f', '97bd097bd097c36b0b6fc9210c8dc2',
- '9778397bd097c36c9210c9274c91aa', '97b6b97bd19801ec95f8c965cc920e', '97bcf97c3598082c95f8e1cfcc920f',
- '97bd097bd097c36b0b6fc9210c8dc2', '9778397bd097c36c9210c9274c91aa', '97b6b97bd19801ec9210c965cc920e',
- '97bcf97c3598082c95f8c965cc920f', '97bd097bd097c35b0b6fc920fb0722', '9778397bd097c36b0b6fc9274c91aa',
- '97b6b97bd19801ec9210c965cc920e', '97bcf97c3598082c95f8c965cc920f', '97bd097bd097c35b0b6fc920fb0722',
- '9778397bd097c36b0b6fc9274c91aa', '97b6b97bd19801ec9210c965cc920e', '97bcf97c359801ec95f8c965cc920f',
- '97bd097bd097c35b0b6fc920fb0722', '9778397bd097c36b0b6fc9274c91aa', '97b6b97bd19801ec9210c965cc920e',
- '97bcf97c359801ec95f8c965cc920f', '97bd097bd097c35b0b6fc920fb0722', '9778397bd097c36b0b6fc9274c91aa',
- '97b6b97bd19801ec9210c965cc920e', '97bcf97c359801ec95f8c965cc920f', '97bd097bd07f595b0b6fc920fb0722',
- '9778397bd097c36b0b6fc9210c8dc2', '9778397bd19801ec9210c9274c920e', '97b6b97bd19801ec95f8c965cc920f',
- '97bd07f5307f595b0b0bc920fb0722', '7f0e397bd097c36b0b6fc9210c8dc2', '9778397bd097c36c9210c9274c920e',
- '97b6b97bd19801ec95f8c965cc920f', '97bd07f5307f595b0b0bc920fb0722', '7f0e397bd097c36b0b6fc9210c8dc2',
- '9778397bd097c36c9210c9274c91aa', '97b6b97bd19801ec9210c965cc920e', '97bd07f1487f595b0b0bc920fb0722',
- '7f0e397bd097c36b0b6fc9210c8dc2', '9778397bd097c36b0b6fc9274c91aa', '97b6b97bd19801ec9210c965cc920e',
- '97bcf7f1487f595b0b0bb0b6fb0722', '7f0e397bd097c35b0b6fc920fb0722', '9778397bd097c36b0b6fc9274c91aa',
- '97b6b97bd19801ec9210c965cc920e', '97bcf7f1487f595b0b0bb0b6fb0722', '7f0e397bd097c35b0b6fc920fb0722',
- '9778397bd097c36b0b6fc9274c91aa', '97b6b97bd19801ec9210c965cc920e', '97bcf7f1487f531b0b0bb0b6fb0722',
- '7f0e397bd097c35b0b6fc920fb0722', '9778397bd097c36b0b6fc9274c91aa', '97b6b97bd19801ec9210c965cc920e',
- '97bcf7f1487f531b0b0bb0b6fb0722', '7f0e397bd07f595b0b6fc920fb0722', '9778397bd097c36b0b6fc9274c91aa',
- '97b6b97bd19801ec9210c9274c920e', '97bcf7f0e47f531b0b0bb0b6fb0722', '7f0e397bd07f595b0b0bc920fb0722',
- '9778397bd097c36b0b6fc9210c91aa', '97b6b97bd197c36c9210c9274c920e', '97bcf7f0e47f531b0b0bb0b6fb0722',
- '7f0e397bd07f595b0b0bc920fb0722', '9778397bd097c36b0b6fc9210c8dc2', '9778397bd097c36c9210c9274c920e',
- '97b6b7f0e47f531b0723b0b6fb0722', '7f0e37f5307f595b0b0bc920fb0722', '7f0e397bd097c36b0b6fc9210c8dc2',
- '9778397bd097c36b0b70c9274c91aa', '97b6b7f0e47f531b0723b0b6fb0721', '7f0e37f1487f595b0b0bb0b6fb0722',
- '7f0e397bd097c35b0b6fc9210c8dc2', '9778397bd097c36b0b6fc9274c91aa', '97b6b7f0e47f531b0723b0b6fb0721',
- '7f0e27f1487f595b0b0bb0b6fb0722', '7f0e397bd097c35b0b6fc920fb0722', '9778397bd097c36b0b6fc9274c91aa',
- '97b6b7f0e47f531b0723b0b6fb0721', '7f0e27f1487f531b0b0bb0b6fb0722', '7f0e397bd097c35b0b6fc920fb0722',
- '9778397bd097c36b0b6fc9274c91aa', '97b6b7f0e47f531b0723b0b6fb0721', '7f0e27f1487f531b0b0bb0b6fb0722',
- '7f0e397bd097c35b0b6fc920fb0722', '9778397bd097c36b0b6fc9274c91aa', '97b6b7f0e47f531b0723b0b6fb0721',
- '7f0e27f1487f531b0b0bb0b6fb0722', '7f0e397bd07f595b0b0bc920fb0722', '9778397bd097c36b0b6fc9274c91aa',
- '97b6b7f0e47f531b0723b0787b0721', '7f0e27f0e47f531b0b0bb0b6fb0722', '7f0e397bd07f595b0b0bc920fb0722',
- '9778397bd097c36b0b6fc9210c91aa', '97b6b7f0e47f149b0723b0787b0721', '7f0e27f0e47f531b0723b0b6fb0722',
- '7f0e397bd07f595b0b0bc920fb0722', '9778397bd097c36b0b6fc9210c8dc2', '977837f0e37f149b0723b0787b0721',
- '7f07e7f0e47f531b0723b0b6fb0722', '7f0e37f5307f595b0b0bc920fb0722', '7f0e397bd097c35b0b6fc9210c8dc2',
- '977837f0e37f14998082b0787b0721', '7f07e7f0e47f531b0723b0b6fb0721', '7f0e37f1487f595b0b0bb0b6fb0722',
- '7f0e397bd097c35b0b6fc9210c8dc2', '977837f0e37f14998082b0787b06bd', '7f07e7f0e47f531b0723b0b6fb0721',
- '7f0e27f1487f531b0b0bb0b6fb0722', '7f0e397bd097c35b0b6fc920fb0722', '977837f0e37f14998082b0787b06bd',
- '7f07e7f0e47f531b0723b0b6fb0721', '7f0e27f1487f531b0b0bb0b6fb0722', '7f0e397bd097c35b0b6fc920fb0722',
- '977837f0e37f14998082b0787b06bd', '7f07e7f0e47f531b0723b0b6fb0721', '7f0e27f1487f531b0b0bb0b6fb0722',
- '7f0e397bd07f595b0b0bc920fb0722', '977837f0e37f14998082b0787b06bd', '7f07e7f0e47f531b0723b0b6fb0721',
- '7f0e27f1487f531b0b0bb0b6fb0722', '7f0e397bd07f595b0b0bc920fb0722', '977837f0e37f14998082b0787b06bd',
- '7f07e7f0e47f149b0723b0787b0721', '7f0e27f0e47f531b0b0bb0b6fb0722', '7f0e397bd07f595b0b0bc920fb0722',
- '977837f0e37f14998082b0723b06bd', '7f07e7f0e37f149b0723b0787b0721', '7f0e27f0e47f531b0723b0b6fb0722',
- '7f0e397bd07f595b0b0bc920fb0722', '977837f0e37f14898082b0723b02d5', '7ec967f0e37f14998082b0787b0721',
- '7f07e7f0e47f531b0723b0b6fb0722', '7f0e37f1487f595b0b0bb0b6fb0722', '7f0e37f0e37f14898082b0723b02d5',
- '7ec967f0e37f14998082b0787b0721', '7f07e7f0e47f531b0723b0b6fb0722', '7f0e37f1487f531b0b0bb0b6fb0722',
- '7f0e37f0e37f14898082b0723b02d5', '7ec967f0e37f14998082b0787b06bd', '7f07e7f0e47f531b0723b0b6fb0721',
- '7f0e37f1487f531b0b0bb0b6fb0722', '7f0e37f0e37f14898082b072297c35', '7ec967f0e37f14998082b0787b06bd',
- '7f07e7f0e47f531b0723b0b6fb0721', '7f0e27f1487f531b0b0bb0b6fb0722', '7f0e37f0e37f14898082b072297c35',
- '7ec967f0e37f14998082b0787b06bd', '7f07e7f0e47f531b0723b0b6fb0721', '7f0e27f1487f531b0b0bb0b6fb0722',
- '7f0e37f0e366aa89801eb072297c35', '7ec967f0e37f14998082b0787b06bd', '7f07e7f0e47f149b0723b0787b0721',
- '7f0e27f1487f531b0b0bb0b6fb0722', '7f0e37f0e366aa89801eb072297c35', '7ec967f0e37f14998082b0723b06bd',
- '7f07e7f0e47f149b0723b0787b0721', '7f0e27f0e47f531b0723b0b6fb0722', '7f0e37f0e366aa89801eb072297c35',
- '7ec967f0e37f14998082b0723b06bd', '7f07e7f0e37f14998083b0787b0721', '7f0e27f0e47f531b0723b0b6fb0722',
- '7f0e37f0e366aa89801eb072297c35', '7ec967f0e37f14898082b0723b02d5', '7f07e7f0e37f14998082b0787b0721',
- '7f07e7f0e47f531b0723b0b6fb0722', '7f0e36665b66aa89801e9808297c35', '665f67f0e37f14898082b0723b02d5',
- '7ec967f0e37f14998082b0787b0721', '7f07e7f0e47f531b0723b0b6fb0722', '7f0e36665b66a449801e9808297c35',
- '665f67f0e37f14898082b0723b02d5', '7ec967f0e37f14998082b0787b06bd', '7f07e7f0e47f531b0723b0b6fb0721',
- '7f0e36665b66a449801e9808297c35', '665f67f0e37f14898082b072297c35', '7ec967f0e37f14998082b0787b06bd',
- '7f07e7f0e47f531b0723b0b6fb0721', '7f0e26665b66a449801e9808297c35', '665f67f0e37f1489801eb072297c35',
- '7ec967f0e37f14998082b0787b06bd', '7f07e7f0e47f531b0723b0b6fb0721', '7f0e27f1487f531b0b0bb0b6fb0722'],
-
- /**
- * 鏁板瓧杞腑鏂囬�熸煡琛�
- * @Array Of Property
- * @trans ['鏃�','涓�','浜�','涓�','鍥�','浜�','鍏�','涓�','鍏�','涔�','鍗�']
- * @return Cn string
- */
- nStr1: ['\u65e5', '\u4e00', '\u4e8c', '\u4e09', '\u56db', '\u4e94', '\u516d', '\u4e03', '\u516b', '\u4e5d', '\u5341'],
-
- /**
- * 鏃ユ湡杞啘鍘嗙О鍛奸�熸煡琛�
- * @Array Of Property
- * @trans ['鍒�','鍗�','寤�','鍗�']
- * @return Cn string
- */
- nStr2: ['\u521d', '\u5341', '\u5eff', '\u5345'],
-
- /**
- * 鏈堜唤杞啘鍘嗙О鍛奸�熸煡琛�
- * @Array Of Property
- * @trans ['姝�','涓�','浜�','涓�','鍥�','浜�','鍏�','涓�','鍏�','涔�','鍗�','鍐�','鑵�']
- * @return Cn string
- */
- nStr3: ['\u6b63', '\u4e8c', '\u4e09', '\u56db', '\u4e94', '\u516d', '\u4e03', '\u516b', '\u4e5d', '\u5341', '\u51ac', '\u814a'],
-
- /**
- * 杩斿洖鍐滃巻y骞翠竴鏁村勾鐨勬�诲ぉ鏁�
- * @param lunar Year
- * @return Number
- * @eg:var count = calendar.lYearDays(1987) ;//count=387
- */
- lYearDays: function (y) {
- var i; var sum = 348
- for (i = 0x8000; i > 0x8; i >>= 1) { sum += (this.lunarInfo[y - 1900] & i) ? 1 : 0 }
- return (sum + this.leapDays(y))
- },
-
- /**
- * 杩斿洖鍐滃巻y骞撮棸鏈堟槸鍝釜鏈堬紱鑻骞存病鏈夐棸鏈� 鍒欒繑鍥�0
- * @param lunar Year
- * @return Number (0-12)
- * @eg:var leapMonth = calendar.leapMonth(1987) ;//leapMonth=6
- */
- leapMonth: function (y) { // 闂板瓧缂栫爜 \u95f0
- return (this.lunarInfo[y - 1900] & 0xf)
- },
-
- /**
- * 杩斿洖鍐滃巻y骞撮棸鏈堢殑澶╂暟 鑻ヨ骞存病鏈夐棸鏈堝垯杩斿洖0
- * @param lunar Year
- * @return Number (0銆�29銆�30)
- * @eg:var leapMonthDay = calendar.leapDays(1987) ;//leapMonthDay=29
- */
- leapDays: function (y) {
- if (this.leapMonth(y)) {
- return ((this.lunarInfo[y - 1900] & 0x10000) ? 30 : 29)
- }
- return (0)
- },
-
- /**
- * 杩斿洖鍐滃巻y骞磎鏈堬紙闈為棸鏈堬級鐨勬�诲ぉ鏁帮紝璁$畻m涓洪棸鏈堟椂鐨勫ぉ鏁拌浣跨敤leapDays鏂规硶
- * @param lunar Year
- * @return Number (-1銆�29銆�30)
- * @eg:var MonthDay = calendar.monthDays(1987,9) ;//MonthDay=29
- */
- monthDays: function (y, m) {
- if (m > 12 || m < 1) { return -1 }// 鏈堜唤鍙傛暟浠�1鑷�12锛屽弬鏁伴敊璇繑鍥�-1
- return ((this.lunarInfo[y - 1900] & (0x10000 >> m)) ? 30 : 29)
- },
-
- /**
- * 杩斿洖鍏巻(!)y骞磎鏈堢殑澶╂暟
- * @param solar Year
- * @return Number (-1銆�28銆�29銆�30銆�31)
- * @eg:var solarMonthDay = calendar.leapDays(1987) ;//solarMonthDay=30
- */
- solarDays: function (y, m) {
- if (m > 12 || m < 1) { return -1 } // 鑻ュ弬鏁伴敊璇� 杩斿洖-1
- var ms = m - 1
- if (ms == 1) { // 2鏈堜唤鐨勯棸骞宠寰嬫祴绠楀悗纭杩斿洖28鎴�29
- return (((y % 4 == 0) && (y % 100 != 0) || (y % 400 == 0)) ? 29 : 28)
- } else {
- return (this.solarMonth[ms])
- }
- },
-
- /**
- * 鍐滃巻骞翠唤杞崲涓哄共鏀邯骞�
- * @param lYear 鍐滃巻骞寸殑骞翠唤鏁�
- * @return Cn string
- */
- toGanZhiYear: function (lYear) {
- var ganKey = (lYear - 3) % 10
- var zhiKey = (lYear - 3) % 12
- if (ganKey == 0) ganKey = 10// 濡傛灉浣欐暟涓�0鍒欎负鏈�鍚庝竴涓ぉ骞�
- if (zhiKey == 0) zhiKey = 12// 濡傛灉浣欐暟涓�0鍒欎负鏈�鍚庝竴涓湴鏀�
- return this.Gan[ganKey - 1] + this.Zhi[zhiKey - 1]
- },
-
- /**
- * 鍏巻鏈堛�佹棩鍒ゆ柇鎵�灞炴槦搴�
- * @param cMonth [description]
- * @param cDay [description]
- * @return Cn string
- */
- toAstro: function (cMonth, cDay) {
- var s = '\u9b54\u7faf\u6c34\u74f6\u53cc\u9c7c\u767d\u7f8a\u91d1\u725b\u53cc\u5b50\u5de8\u87f9\u72ee\u5b50\u5904\u5973\u5929\u79e4\u5929\u874e\u5c04\u624b\u9b54\u7faf'
- var arr = [20, 19, 21, 21, 21, 22, 23, 23, 23, 23, 22, 22]
- return s.substr(cMonth * 2 - (cDay < arr[cMonth - 1] ? 2 : 0), 2) + '\u5ea7'// 搴�
- },
-
- /**
- * 浼犲叆offset鍋忕Щ閲忚繑鍥炲共鏀�
- * @param offset 鐩稿鐢插瓙鐨勫亸绉婚噺
- * @return Cn string
- */
- toGanZhi: function (offset) {
- return this.Gan[offset % 10] + this.Zhi[offset % 12]
- },
-
- /**
- * 浼犲叆鍏巻(!)y骞磋幏寰楄骞寸n涓妭姘旂殑鍏巻鏃ユ湡
- * @param y鍏巻骞�(1900-2100)锛沶浜屽崄鍥涜妭姘斾腑鐨勭鍑犱釜鑺傛皵(1~24)锛涗粠n=1(灏忓瘨)绠楄捣
- * @return day Number
- * @eg:var _24 = calendar.getTerm(1987,3) ;//_24=4;鎰忓嵆1987骞�2鏈�4鏃ョ珛鏄�
- */
- getTerm: function (y, n) {
- if (y < 1900 || y > 2100) { return -1 }
- if (n < 1 || n > 24) { return -1 }
- var _table = this.sTermInfo[y - 1900]
- var _info = [
- parseInt('0x' + _table.substr(0, 5)).toString(),
- parseInt('0x' + _table.substr(5, 5)).toString(),
- parseInt('0x' + _table.substr(10, 5)).toString(),
- parseInt('0x' + _table.substr(15, 5)).toString(),
- parseInt('0x' + _table.substr(20, 5)).toString(),
- parseInt('0x' + _table.substr(25, 5)).toString()
- ]
- var _calday = [
- _info[0].substr(0, 1),
- _info[0].substr(1, 2),
- _info[0].substr(3, 1),
- _info[0].substr(4, 2),
-
- _info[1].substr(0, 1),
- _info[1].substr(1, 2),
- _info[1].substr(3, 1),
- _info[1].substr(4, 2),
-
- _info[2].substr(0, 1),
- _info[2].substr(1, 2),
- _info[2].substr(3, 1),
- _info[2].substr(4, 2),
-
- _info[3].substr(0, 1),
- _info[3].substr(1, 2),
- _info[3].substr(3, 1),
- _info[3].substr(4, 2),
-
- _info[4].substr(0, 1),
- _info[4].substr(1, 2),
- _info[4].substr(3, 1),
- _info[4].substr(4, 2),
-
- _info[5].substr(0, 1),
- _info[5].substr(1, 2),
- _info[5].substr(3, 1),
- _info[5].substr(4, 2)
- ]
- return parseInt(_calday[n - 1])
- },
-
- /**
- * 浼犲叆鍐滃巻鏁板瓧鏈堜唤杩斿洖姹夎閫氫織琛ㄧず娉�
- * @param lunar month
- * @return Cn string
- * @eg:var cnMonth = calendar.toChinaMonth(12) ;//cnMonth='鑵婃湀'
- */
- toChinaMonth: function (m) { // 鏈� => \u6708
- if (m > 12 || m < 1) { return -1 } // 鑻ュ弬鏁伴敊璇� 杩斿洖-1
- var s = this.nStr3[m - 1]
- s += '\u6708'// 鍔犱笂鏈堝瓧
- return s
- },
-
- /**
- * 浼犲叆鍐滃巻鏃ユ湡鏁板瓧杩斿洖姹夊瓧琛ㄧず娉�
- * @param lunar day
- * @return Cn string
- * @eg:var cnDay = calendar.toChinaDay(21) ;//cnMonth='寤夸竴'
- */
- toChinaDay: function (d) { // 鏃� => \u65e5
- var s
- switch (d) {
- case 10:
- s = '\u521d\u5341'; break
- case 20:
- s = '\u4e8c\u5341'; break
- break
- case 30:
- s = '\u4e09\u5341'; break
- break
- default :
- s = this.nStr2[Math.floor(d / 10)]
- s += this.nStr1[d % 10]
- }
- return (s)
- },
-
- /**
- * 骞翠唤杞敓鑲朳!浠呰兘澶ц嚧杞崲] => 绮剧‘鍒掑垎鐢熻倴鍒嗙晫绾挎槸鈥滅珛鏄モ��
- * @param y year
- * @return Cn string
- * @eg:var animal = calendar.getAnimal(1987) ;//animal='鍏�'
- */
- getAnimal: function (y) {
- return this.Animals[(y - 4) % 12]
- },
-
- /**
- * 浼犲叆闃冲巻骞存湀鏃ヨ幏寰楄缁嗙殑鍏巻銆佸啘鍘唎bject淇℃伅 <=>JSON
- * @param y solar year
- * @param m solar month
- * @param d solar day
- * @return JSON object
- * @eg:console.log(calendar.solar2lunar(1987,11,01));
- */
- solar2lunar: function (y, m, d) { // 鍙傛暟鍖洪棿1900.1.31~2100.12.31
- // 骞翠唤闄愬畾銆佷笂闄�
- if (y < 1900 || y > 2100) {
- return -1// undefined杞崲涓烘暟瀛楀彉涓篘aN
- }
- // 鍏巻浼犲弬鏈�涓嬮檺
- if (y == 1900 && m == 1 && d < 31) {
- return -1
- }
- // 鏈紶鍙� 鑾峰緱褰撳ぉ
- if (!y) {
- var objDate = new Date()
- } else {
- var objDate = new Date(y, parseInt(m) - 1, d)
- }
- var i; var leap = 0; var temp = 0
- // 淇ymd鍙傛暟
- var y = objDate.getFullYear()
- var m = objDate.getMonth() + 1
- var d = objDate.getDate()
- var offset = (Date.UTC(objDate.getFullYear(), objDate.getMonth(), objDate.getDate()) - Date.UTC(1900, 0, 31)) / 86400000
- for (i = 1900; i < 2101 && offset > 0; i++) {
- temp = this.lYearDays(i)
- offset -= temp
- }
- if (offset < 0) {
- offset += temp; i--
- }
-
- // 鏄惁浠婂ぉ
- var isTodayObj = new Date()
- var isToday = false
- if (isTodayObj.getFullYear() == y && isTodayObj.getMonth() + 1 == m && isTodayObj.getDate() == d) {
- isToday = true
- }
- // 鏄熸湡鍑�
- var nWeek = objDate.getDay()
- var cWeek = this.nStr1[nWeek]
- // 鏁板瓧琛ㄧず鍛ㄥ嚑椤哄簲澶╂湞鍛ㄤ竴寮�濮嬬殑鎯緥
- if (nWeek == 0) {
- nWeek = 7
- }
- // 鍐滃巻骞�
- var year = i
- var leap = this.leapMonth(i) // 闂板摢涓湀
- var isLeap = false
-
- // 鏁堥獙闂版湀
- for (i = 1; i < 13 && offset > 0; i++) {
- // 闂版湀
- if (leap > 0 && i == (leap + 1) && isLeap == false) {
- --i
- isLeap = true; temp = this.leapDays(year) // 璁$畻鍐滃巻闂版湀澶╂暟
- } else {
- temp = this.monthDays(year, i)// 璁$畻鍐滃巻鏅�氭湀澶╂暟
- }
- // 瑙i櫎闂版湀
- if (isLeap == true && i == (leap + 1)) { isLeap = false }
- offset -= temp
- }
- // 闂版湀瀵艰嚧鏁扮粍涓嬫爣閲嶅彔鍙栧弽
- if (offset == 0 && leap > 0 && i == leap + 1) {
- if (isLeap) {
- isLeap = false
- } else {
- isLeap = true; --i
- }
- }
- if (offset < 0) {
- offset += temp; --i
- }
- // 鍐滃巻鏈�
- var month = i
- // 鍐滃巻鏃�
- var day = offset + 1
- // 澶╁共鍦版敮澶勭悊
- var sm = m - 1
- var gzY = this.toGanZhiYear(year)
-
- // 褰撴湀鐨勪袱涓妭姘�
- // bugfix-2017-7-24 11:03:38 use lunar Year Param `y` Not `year`
- var firstNode = this.getTerm(y, (m * 2 - 1))// 杩斿洖褰撴湀銆岃妭銆嶄负鍑犳棩寮�濮�
- var secondNode = this.getTerm(y, (m * 2))// 杩斿洖褰撴湀銆岃妭銆嶄负鍑犳棩寮�濮�
-
- // 渚濇嵁12鑺傛皵淇骞叉敮鏈�
- var gzM = this.toGanZhi((y - 1900) * 12 + m + 11)
- if (d >= firstNode) {
- gzM = this.toGanZhi((y - 1900) * 12 + m + 12)
- }
-
- // 浼犲叆鐨勬棩鏈熺殑鑺傛皵涓庡惁
- var isTerm = false
- var Term = null
- if (firstNode == d) {
- isTerm = true
- Term = this.solarTerm[m * 2 - 2]
- }
- if (secondNode == d) {
- isTerm = true
- Term = this.solarTerm[m * 2 - 1]
- }
- // 鏃ユ煴 褰撴湀涓�鏃ヤ笌 1900/1/1 鐩稿樊澶╂暟
- var dayCyclical = Date.UTC(y, sm, 1, 0, 0, 0, 0) / 86400000 + 25567 + 10
- var gzD = this.toGanZhi(dayCyclical + d - 1)
- // 璇ユ棩鏈熸墍灞炵殑鏄熷骇
- var astro = this.toAstro(m, d)
-
- return { 'lYear': year, 'lMonth': month, 'lDay': day, 'Animal': this.getAnimal(year), 'IMonthCn': (isLeap ? '\u95f0' : '') + this.toChinaMonth(month), 'IDayCn': this.toChinaDay(day), 'cYear': y, 'cMonth': m, 'cDay': d, 'gzYear': gzY, 'gzMonth': gzM, 'gzDay': gzD, 'isToday': isToday, 'isLeap': isLeap, 'nWeek': nWeek, 'ncWeek': '\u661f\u671f' + cWeek, 'isTerm': isTerm, 'Term': Term, 'astro': astro }
- },
-
- /**
- * 浼犲叆鍐滃巻骞存湀鏃ヤ互鍙婁紶鍏ョ殑鏈堜唤鏄惁闂版湀鑾峰緱璇︾粏鐨勫叕鍘嗐�佸啘鍘唎bject淇℃伅 <=>JSON
- * @param y lunar year
- * @param m lunar month
- * @param d lunar day
- * @param isLeapMonth lunar month is leap or not.[濡傛灉鏄啘鍘嗛棸鏈堢鍥涗釜鍙傛暟璧嬪�紅rue鍗冲彲]
- * @return JSON object
- * @eg:console.log(calendar.lunar2solar(1987,9,10));
- */
- lunar2solar: function (y, m, d, isLeapMonth) { // 鍙傛暟鍖洪棿1900.1.31~2100.12.1
- var isLeapMonth = !!isLeapMonth
- var leapOffset = 0
- var leapMonth = this.leapMonth(y)
- var leapDay = this.leapDays(y)
- if (isLeapMonth && (leapMonth != m)) { return -1 }// 浼犲弬瑕佹眰璁$畻璇ラ棸鏈堝叕鍘� 浣嗚骞村緱鍑虹殑闂版湀涓庝紶鍙傜殑鏈堜唤骞朵笉鍚�
- if (y == 2100 && m == 12 && d > 1 || y == 1900 && m == 1 && d < 31) { return -1 }// 瓒呭嚭浜嗘渶澶ф瀬闄愬��
- var day = this.monthDays(y, m)
- var _day = day
- // bugFix 2016-9-25
- // if month is leap, _day use leapDays method
- if (isLeapMonth) {
- _day = this.leapDays(y, m)
- }
- if (y < 1900 || y > 2100 || d > _day) { return -1 }// 鍙傛暟鍚堟硶鎬ф晥楠�
-
- // 璁$畻鍐滃巻鐨勬椂闂村樊
- var offset = 0
- for (var i = 1900; i < y; i++) {
- offset += this.lYearDays(i)
- }
- var leap = 0; var isAdd = false
- for (var i = 1; i < m; i++) {
- leap = this.leapMonth(y)
- if (!isAdd) { // 澶勭悊闂版湀
- if (leap <= i && leap > 0) {
- offset += this.leapDays(y); isAdd = true
- }
- }
- offset += this.monthDays(y, i)
- }
- // 杞崲闂版湀鍐滃巻 闇�琛ュ厖璇ュ勾闂版湀鐨勫墠涓�涓湀鐨勬椂宸�
- if (isLeapMonth) { offset += day }
- // 1900骞村啘鍘嗘鏈堜竴鏃ョ殑鍏巻鏃堕棿涓�1900骞�1鏈�30鏃�0鏃�0鍒�0绉�(璇ユ椂闂翠篃鏄湰鍐滃巻鐨勬渶寮�濮嬭捣濮嬬偣)
- var stmap = Date.UTC(1900, 1, 30, 0, 0, 0)
- var calObj = new Date((offset + d - 31) * 86400000 + stmap)
- var cY = calObj.getUTCFullYear()
- var cM = calObj.getUTCMonth() + 1
- var cD = calObj.getUTCDate()
-
- return this.solar2lunar(cY, cM, cD)
- }
-}
-
-export default calendar
diff --git a/uni_modules/uni-calendar/components/uni-calendar/i18n/en.json b/uni_modules/uni-calendar/components/uni-calendar/i18n/en.json
deleted file mode 100644
index fcbd13c..0000000
--- a/uni_modules/uni-calendar/components/uni-calendar/i18n/en.json
+++ /dev/null
@@ -1,12 +0,0 @@
-{
- "uni-calender.ok": "ok",
- "uni-calender.cancel": "cancel",
- "uni-calender.today": "today",
- "uni-calender.MON": "MON",
- "uni-calender.TUE": "TUE",
- "uni-calender.WED": "WED",
- "uni-calender.THU": "THU",
- "uni-calender.FRI": "FRI",
- "uni-calender.SAT": "SAT",
- "uni-calender.SUN": "SUN"
-}
diff --git a/uni_modules/uni-calendar/components/uni-calendar/i18n/index.js b/uni_modules/uni-calendar/components/uni-calendar/i18n/index.js
deleted file mode 100644
index de7509c..0000000
--- a/uni_modules/uni-calendar/components/uni-calendar/i18n/index.js
+++ /dev/null
@@ -1,8 +0,0 @@
-import en from './en.json'
-import zhHans from './zh-Hans.json'
-import zhHant from './zh-Hant.json'
-export default {
- en,
- 'zh-Hans': zhHans,
- 'zh-Hant': zhHant
-}
diff --git a/uni_modules/uni-calendar/components/uni-calendar/i18n/zh-Hans.json b/uni_modules/uni-calendar/components/uni-calendar/i18n/zh-Hans.json
deleted file mode 100644
index 1ca43de..0000000
--- a/uni_modules/uni-calendar/components/uni-calendar/i18n/zh-Hans.json
+++ /dev/null
@@ -1,12 +0,0 @@
-{
- "uni-calender.ok": "纭畾",
- "uni-calender.cancel": "鍙栨秷",
- "uni-calender.today": "浠婃棩",
- "uni-calender.SUN": "鏃�",
- "uni-calender.MON": "涓�",
- "uni-calender.TUE": "浜�",
- "uni-calender.WED": "涓�",
- "uni-calender.THU": "鍥�",
- "uni-calender.FRI": "浜�",
- "uni-calender.SAT": "鍏�"
-}
diff --git a/uni_modules/uni-calendar/components/uni-calendar/i18n/zh-Hant.json b/uni_modules/uni-calendar/components/uni-calendar/i18n/zh-Hant.json
deleted file mode 100644
index e0fe33b..0000000
--- a/uni_modules/uni-calendar/components/uni-calendar/i18n/zh-Hant.json
+++ /dev/null
@@ -1,12 +0,0 @@
-{
- "uni-calender.ok": "纰哄畾",
- "uni-calender.cancel": "鍙栨秷",
- "uni-calender.today": "浠婃棩",
- "uni-calender.SUN": "鏃�",
- "uni-calender.MON": "涓�",
- "uni-calender.TUE": "浜�",
- "uni-calender.WED": "涓�",
- "uni-calender.THU": "鍥�",
- "uni-calender.FRI": "浜�",
- "uni-calender.SAT": "鍏�"
-}
diff --git a/uni_modules/uni-calendar/components/uni-calendar/uni-calendar-item.vue b/uni_modules/uni-calendar/components/uni-calendar/uni-calendar-item.vue
deleted file mode 100644
index 0353011..0000000
--- a/uni_modules/uni-calendar/components/uni-calendar/uni-calendar-item.vue
+++ /dev/null
@@ -1,181 +0,0 @@
-<template>
- <view class="uni-calendar-item__weeks-box" :class="{
- 'uni-calendar-item--disable':weeks.disable,
- 'uni-calendar-item--isDay':calendar.fullDate === weeks.fullDate && weeks.isDay,
- 'uni-calendar-item--checked':(calendar.fullDate === weeks.fullDate && !weeks.isDay) ,
- 'uni-calendar-item--before-checked':weeks.beforeMultiple,
- 'uni-calendar-item--multiple': weeks.multiple,
- 'uni-calendar-item--after-checked':weeks.afterMultiple,
- }"
- @click="choiceDate(weeks)">
- <view class="uni-calendar-item__weeks-box-item">
- <text v-if="selected&&weeks.extraInfo" class="uni-calendar-item__weeks-box-circle"></text>
- <text class="uni-calendar-item__weeks-box-text" :class="{
- 'uni-calendar-item--isDay-text': weeks.isDay,
- 'uni-calendar-item--isDay':calendar.fullDate === weeks.fullDate && weeks.isDay,
- 'uni-calendar-item--checked':calendar.fullDate === weeks.fullDate && !weeks.isDay,
- 'uni-calendar-item--before-checked':weeks.beforeMultiple,
- 'uni-calendar-item--multiple': weeks.multiple,
- 'uni-calendar-item--after-checked':weeks.afterMultiple,
- 'uni-calendar-item--disable':weeks.disable,
- }">{{weeks.date}}</text>
- <text v-if="!lunar&&!weeks.extraInfo && weeks.isDay" class="uni-calendar-item__weeks-lunar-text" :class="{
- 'uni-calendar-item--isDay-text':weeks.isDay,
- 'uni-calendar-item--isDay':calendar.fullDate === weeks.fullDate && weeks.isDay,
- 'uni-calendar-item--checked':calendar.fullDate === weeks.fullDate && !weeks.isDay,
- 'uni-calendar-item--before-checked':weeks.beforeMultiple,
- 'uni-calendar-item--multiple': weeks.multiple,
- 'uni-calendar-item--after-checked':weeks.afterMultiple,
- }">{{todayText}}</text>
- <text v-if="lunar&&!weeks.extraInfo" class="uni-calendar-item__weeks-lunar-text" :class="{
- 'uni-calendar-item--isDay-text':weeks.isDay,
- 'uni-calendar-item--isDay':calendar.fullDate === weeks.fullDate && weeks.isDay,
- 'uni-calendar-item--checked':calendar.fullDate === weeks.fullDate && !weeks.isDay,
- 'uni-calendar-item--before-checked':weeks.beforeMultiple,
- 'uni-calendar-item--multiple': weeks.multiple,
- 'uni-calendar-item--after-checked':weeks.afterMultiple,
- 'uni-calendar-item--disable':weeks.disable,
- }">{{weeks.isDay ? todayText : (weeks.lunar.IDayCn === '鍒濅竴'?weeks.lunar.IMonthCn:weeks.lunar.IDayCn)}}</text>
- <text v-if="weeks.extraInfo&&weeks.extraInfo.info" class="uni-calendar-item__weeks-lunar-text" :class="{
- 'uni-calendar-item--extra':weeks.extraInfo.info,
- 'uni-calendar-item--isDay-text':weeks.isDay,
- 'uni-calendar-item--isDay':calendar.fullDate === weeks.fullDate && weeks.isDay,
- 'uni-calendar-item--checked':calendar.fullDate === weeks.fullDate && !weeks.isDay,
- 'uni-calendar-item--before-checked':weeks.beforeMultiple,
- 'uni-calendar-item--multiple': weeks.multiple,
- 'uni-calendar-item--after-checked':weeks.afterMultiple,
- 'uni-calendar-item--disable':weeks.disable,
- }">{{weeks.extraInfo.info}}</text>
- </view>
- </view>
-</template>
-
-<script>
- import {
- initVueI18n
- } from '@dcloudio/uni-i18n'
- import messages from './i18n/index.js'
- const { t } = initVueI18n(messages)
- export default {
- emits:['change'],
- props: {
- weeks: {
- type: Object,
- default () {
- return {}
- }
- },
- calendar: {
- type: Object,
- default: () => {
- return {}
- }
- },
- selected: {
- type: Array,
- default: () => {
- return []
- }
- },
- lunar: {
- type: Boolean,
- default: false
- }
- },
- computed: {
- todayText() {
- return t("uni-calender.today")
- },
- },
- methods: {
- choiceDate(weeks) {
- this.$emit('change', weeks)
- }
- }
- }
-</script>
-
-<style lang="scss" scoped>
- .uni-calendar-item__weeks-box {
- flex: 1;
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex-direction: column;
- justify-content: center;
- align-items: center;
- }
-
- .uni-calendar-item__weeks-box-text {
- font-size: $uni-font-size-base;
- color: $uni-text-color;
- }
-
- .uni-calendar-item__weeks-lunar-text {
- font-size: $uni-font-size-sm;
- color: $uni-text-color;
- }
-
- .uni-calendar-item__weeks-box-item {
- position: relative;
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex-direction: column;
- justify-content: center;
- align-items: center;
- width: 100rpx;
- height: 100rpx;
- }
-
- .uni-calendar-item__weeks-box-circle {
- position: absolute;
- top: 5px;
- right: 5px;
- width: 8px;
- height: 8px;
- border-radius: 8px;
- background-color: $uni-color-error;
-
- }
-
- .uni-calendar-item--disable {
- background-color: rgba(249, 249, 249, $uni-opacity-disabled);
- color: $uni-text-color-disable;
- }
-
- .uni-calendar-item--isDay-text {
- color: $uni-color-primary;
- }
-
- .uni-calendar-item--isDay {
- background-color: $uni-color-primary;
- opacity: 0.8;
- color: #fff;
- }
-
- .uni-calendar-item--extra {
- color: $uni-color-error;
- opacity: 0.8;
- }
-
- .uni-calendar-item--checked {
- background-color: $uni-color-primary;
- color: #fff;
- opacity: 0.8;
- }
-
- .uni-calendar-item--multiple {
- background-color: $uni-color-primary;
- color: #fff;
- opacity: 0.8;
- }
- .uni-calendar-item--before-checked {
- background-color: #ff5a5f;
- color: #fff;
- }
- .uni-calendar-item--after-checked {
- background-color: #ff5a5f;
- color: #fff;
- }
-</style>
diff --git a/uni_modules/uni-calendar/components/uni-calendar/uni-calendar.vue b/uni_modules/uni-calendar/components/uni-calendar/uni-calendar.vue
deleted file mode 100644
index a2c33d0..0000000
--- a/uni_modules/uni-calendar/components/uni-calendar/uni-calendar.vue
+++ /dev/null
@@ -1,554 +0,0 @@
-<template>
- <view class="uni-calendar">
- <view v-if="!insert&&show" class="uni-calendar__mask" :class="{'uni-calendar--mask-show':aniMaskShow}" @click="clean"></view>
- <view v-if="insert || show" class="uni-calendar__content" :class="{'uni-calendar--fixed':!insert,'uni-calendar--ani-show':aniMaskShow}">
- <view v-if="!insert" class="uni-calendar__header uni-calendar--fixed-top">
- <view class="uni-calendar__header-btn-box" @click="close">
- <text class="uni-calendar__header-text uni-calendar--fixed-width">{{cancelText}}</text>
- </view>
- <view class="uni-calendar__header-btn-box" @click="confirm">
- <text class="uni-calendar__header-text uni-calendar--fixed-width">{{okText}}</text>
- </view>
- </view>
- <view class="uni-calendar__header">
- <view class="uni-calendar__header-btn-box" @click.stop="pre">
- <view class="uni-calendar__header-btn uni-calendar--left"></view>
- </view>
- <picker mode="date" :value="date" fields="month" @change="bindDateChange">
- <text class="uni-calendar__header-text">{{ (nowDate.year||'') +' / '+( nowDate.month||'')}}</text>
- </picker>
- <view class="uni-calendar__header-btn-box" @click.stop="next">
- <view class="uni-calendar__header-btn uni-calendar--right"></view>
- </view>
- <text class="uni-calendar__backtoday" @click="backtoday">{{todayText}}</text>
-
- </view>
- <view class="uni-calendar__box">
- <view v-if="showMonth" class="uni-calendar__box-bg">
- <text class="uni-calendar__box-bg-text">{{nowDate.month}}</text>
- </view>
- <view class="uni-calendar__weeks">
- <view class="uni-calendar__weeks-day">
- <text class="uni-calendar__weeks-day-text">{{SUNText}}</text>
- </view>
- <view class="uni-calendar__weeks-day">
- <text class="uni-calendar__weeks-day-text">{{monText}}</text>
- </view>
- <view class="uni-calendar__weeks-day">
- <text class="uni-calendar__weeks-day-text">{{TUEText}}</text>
- </view>
- <view class="uni-calendar__weeks-day">
- <text class="uni-calendar__weeks-day-text">{{WEDText}}</text>
- </view>
- <view class="uni-calendar__weeks-day">
- <text class="uni-calendar__weeks-day-text">{{THUText}}</text>
- </view>
- <view class="uni-calendar__weeks-day">
- <text class="uni-calendar__weeks-day-text">{{FRIText}}</text>
- </view>
- <view class="uni-calendar__weeks-day">
- <text class="uni-calendar__weeks-day-text">{{SATText}}</text>
- </view>
- </view>
- <view class="uni-calendar__weeks" v-for="(item,weekIndex) in weeks" :key="weekIndex">
- <view class="uni-calendar__weeks-item" v-for="(weeks,weeksIndex) in item" :key="weeksIndex">
- <calendar-item class="uni-calendar-item--hook" :weeks="weeks" :calendar="calendar" :selected="selected" :lunar="lunar" @change="choiceDate"></calendar-item>
- </view>
- </view>
- </view>
- </view>
- </view>
-</template>
-
-<script>
- import Calendar from './util.js';
- import calendarItem from './uni-calendar-item.vue'
- import {
- initVueI18n
- } from '@dcloudio/uni-i18n'
- import messages from './i18n/index.js'
- const { t } = initVueI18n(messages)
- /**
- * Calendar 鏃ュ巻
- * @description 鏃ュ巻缁勪欢鍙互鏌ョ湅鏃ユ湡锛岄�夋嫨浠绘剰鑼冨洿鍐呯殑鏃ユ湡锛屾墦鐐规搷浣溿�傚父鐢ㄥ満鏅锛氶厭搴楁棩鏈熼璁€�佺伀杞︽満绁ㄩ�夋嫨璐拱鏃ユ湡銆佷笂涓嬬彮鎵撳崱绛�
- * @tutorial https://ext.dcloud.net.cn/plugin?id=56
- * @property {String} date 鑷畾涔夊綋鍓嶆椂闂达紝榛樿涓轰粖澶�
- * @property {Boolean} lunar 鏄剧ず鍐滃巻
- * @property {String} startDate 鏃ユ湡閫夋嫨鑼冨洿-寮�濮嬫棩鏈�
- * @property {String} endDate 鏃ユ湡閫夋嫨鑼冨洿-缁撴潫鏃ユ湡
- * @property {Boolean} range 鑼冨洿閫夋嫨
- * @property {Boolean} insert = [true|false] 鎻掑叆妯″紡,榛樿涓篺alse
- * @value true 寮圭獥妯″紡
- * @value false 鎻掑叆妯″紡
- * @property {Boolean} clearDate = [true|false] 寮圭獥妯″紡鏄惁娓呯┖涓婃閫夋嫨鍐呭
- * @property {Array} selected 鎵撶偣锛屾湡寰呮牸寮廩{date: '2019-06-27', info: '绛惧埌', data: { custom: '鑷畾涔変俊鎭�', name: '鑷畾涔夋秷鎭ご',xxx:xxx... }}]
- * @property {Boolean} showMonth 鏄惁閫夋嫨鏈堜唤涓鸿儗鏅�
- * @event {Function} change 鏃ユ湡鏀瑰彉锛宍insert :ture` 鏃剁敓鏁�
- * @event {Function} confirm 纭閫夋嫨`insert :false` 鏃剁敓鏁�
- * @event {Function} monthSwitch 鍒囨崲鏈堜唤鏃惰Е鍙�
- * @example <uni-calendar :insert="true":lunar="true" :start-date="'2019-3-2'":end-date="'2019-5-20'"@change="change" />
- */
- export default {
- components: {
- calendarItem
- },
- emits:['close','confirm','change','monthSwitch'],
- props: {
- date: {
- type: String,
- default: ''
- },
- selected: {
- type: Array,
- default () {
- return []
- }
- },
- lunar: {
- type: Boolean,
- default: false
- },
- startDate: {
- type: String,
- default: ''
- },
- endDate: {
- type: String,
- default: ''
- },
- range: {
- type: Boolean,
- default: false
- },
- insert: {
- type: Boolean,
- default: true
- },
- showMonth: {
- type: Boolean,
- default: true
- },
- clearDate: {
- type: Boolean,
- default: true
- }
- },
- data() {
- return {
- show: false,
- weeks: [],
- calendar: {},
- nowDate: '',
- aniMaskShow: false
- }
- },
- computed:{
- /**
- * for i18n
- */
-
- okText() {
- return t("uni-calender.ok")
- },
- cancelText() {
- return t("uni-calender.cancel")
- },
- todayText() {
- return t("uni-calender.today")
- },
- monText() {
- return t("uni-calender.MON")
- },
- TUEText() {
- return t("uni-calender.TUE")
- },
- WEDText() {
- return t("uni-calender.WED")
- },
- THUText() {
- return t("uni-calender.THU")
- },
- FRIText() {
- return t("uni-calender.FRI")
- },
- SATText() {
- return t("uni-calender.SAT")
- },
- SUNText() {
- return t("uni-calender.SUN")
- },
- },
- watch: {
- date(newVal) {
- // this.cale.setDate(newVal)
- this.init(newVal)
- },
- startDate(val){
- this.cale.resetSatrtDate(val)
- this.cale.setDate(this.nowDate.fullDate)
- this.weeks = this.cale.weeks
- },
- endDate(val){
- this.cale.resetEndDate(val)
- this.cale.setDate(this.nowDate.fullDate)
- this.weeks = this.cale.weeks
- },
- selected(newVal) {
- this.cale.setSelectInfo(this.nowDate.fullDate, newVal)
- this.weeks = this.cale.weeks
- }
- },
- created() {
- // 鑾峰彇鏃ュ巻鏂规硶瀹炰緥
- this.cale = new Calendar({
- // date: new Date(),
- selected: this.selected,
- startDate: this.startDate,
- endDate: this.endDate,
- range: this.range,
- })
- // 閫変腑鏌愪竴澶�
- // this.cale.setDate(this.date)
- this.init(this.date)
- // this.setDay
- },
- methods: {
- // 鍙栨秷绌块��
- clean() {},
- bindDateChange(e) {
- const value = e.detail.value + '-1'
- console.log(this.cale.getDate(value));
- this.init(value)
- },
- /**
- * 鍒濆鍖栨棩鏈熸樉绀�
- * @param {Object} date
- */
- init(date) {
- this.cale.setDate(date)
- this.weeks = this.cale.weeks
- this.nowDate = this.calendar = this.cale.getInfo(date)
- },
- /**
- * 鎵撳紑鏃ュ巻寮圭獥
- */
- open() {
- // 寮圭獥妯″紡骞朵笖娓呯悊鏁版嵁
- if (this.clearDate && !this.insert) {
- this.cale.cleanMultipleStatus()
- // this.cale.setDate(this.date)
- this.init(this.date)
- }
- this.show = true
- this.$nextTick(() => {
- setTimeout(() => {
- this.aniMaskShow = true
- }, 50)
- })
- },
- /**
- * 鍏抽棴鏃ュ巻寮圭獥
- */
- close() {
- this.aniMaskShow = false
- this.$nextTick(() => {
- setTimeout(() => {
- this.show = false
- this.$emit('close')
- }, 300)
- })
- },
- /**
- * 纭鎸夐挳
- */
- confirm() {
- this.setEmit('confirm')
- this.close()
- },
- /**
- * 鍙樺寲瑙﹀彂
- */
- change() {
- if (!this.insert) return
- this.setEmit('change')
- },
- /**
- * 閫夋嫨鏈堜唤瑙﹀彂
- */
- monthSwitch() {
- let {
- year,
- month
- } = this.nowDate
- this.$emit('monthSwitch', {
- year,
- month: Number(month)
- })
- },
- /**
- * 娲惧彂浜嬩欢
- * @param {Object} name
- */
- setEmit(name) {
- let {
- year,
- month,
- date,
- fullDate,
- lunar,
- extraInfo
- } = this.calendar
- this.$emit(name, {
- range: this.cale.multipleStatus,
- year,
- month,
- date,
- fulldate: fullDate,
- lunar,
- extraInfo: extraInfo || {}
- })
- },
- /**
- * 閫夋嫨澶╄Е鍙�
- * @param {Object} weeks
- */
- choiceDate(weeks) {
- if (weeks.disable) return
- this.calendar = weeks
- // 璁剧疆澶氶��
- this.cale.setMultiple(this.calendar.fullDate)
- this.weeks = this.cale.weeks
- this.change()
- },
- /**
- * 鍥炲埌浠婂ぉ
- */
- backtoday() {
- console.log(this.cale.getDate(new Date()).fullDate);
- let date = this.cale.getDate(new Date()).fullDate
- // this.cale.setDate(date)
- this.init(date)
- this.change()
- },
- /**
- * 涓婁釜鏈�
- */
- pre() {
- const preDate = this.cale.getDate(this.nowDate.fullDate, -1, 'month').fullDate
- this.setDate(preDate)
- this.monthSwitch()
-
- },
- /**
- * 涓嬩釜鏈�
- */
- next() {
- const nextDate = this.cale.getDate(this.nowDate.fullDate, +1, 'month').fullDate
- this.setDate(nextDate)
- this.monthSwitch()
- },
- /**
- * 璁剧疆鏃ユ湡
- * @param {Object} date
- */
- setDate(date) {
- this.cale.setDate(date)
- this.weeks = this.cale.weeks
- this.nowDate = this.cale.getInfo(date)
- }
- }
- }
-</script>
-
-<style lang="scss" scoped>
- .uni-calendar {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex-direction: column;
- }
-
- .uni-calendar__mask {
- position: fixed;
- bottom: 0;
- top: 0;
- left: 0;
- right: 0;
- background-color: $uni-bg-color-mask;
- transition-property: opacity;
- transition-duration: 0.3s;
- opacity: 0;
- /* #ifndef APP-NVUE */
- z-index: 99;
- /* #endif */
- }
-
- .uni-calendar--mask-show {
- opacity: 1
- }
-
- .uni-calendar--fixed {
- position: fixed;
- /* #ifdef APP-NVUE */
- bottom: 0;
- /* #endif */
- left: 0;
- right: 0;
- transition-property: transform;
- transition-duration: 0.3s;
- transform: translateY(460px);
- /* #ifndef APP-NVUE */
- bottom: calc(var(--window-bottom));
- z-index: 99;
- /* #endif */
- }
-
- .uni-calendar--ani-show {
- transform: translateY(0);
- }
-
- .uni-calendar__content {
- background-color: #fff;
- }
-
- .uni-calendar__header {
- position: relative;
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex-direction: row;
- justify-content: center;
- align-items: center;
- height: 50px;
- border-bottom-color: $uni-border-color;
- border-bottom-style: solid;
- border-bottom-width: 1px;
- }
-
- .uni-calendar--fixed-top {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex-direction: row;
- justify-content: space-between;
- border-top-color: $uni-border-color;
- border-top-style: solid;
- border-top-width: 1px;
- }
-
- .uni-calendar--fixed-width {
- width: 50px;
- // padding: 0 15px;
- }
-
- .uni-calendar__backtoday {
- position: absolute;
- right: 0;
- top: 25rpx;
- padding: 0 5px;
- padding-left: 10px;
- height: 25px;
- line-height: 25px;
- font-size: 12px;
- border-top-left-radius: 25px;
- border-bottom-left-radius: 25px;
- color: $uni-text-color;
- background-color: $uni-bg-color-hover;
- }
-
- .uni-calendar__header-text {
- text-align: center;
- width: 100px;
- font-size: $uni-font-size-base;
- color: $uni-text-color;
- }
-
- .uni-calendar__header-btn-box {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex-direction: row;
- align-items: center;
- justify-content: center;
- width: 50px;
- height: 50px;
- }
-
- .uni-calendar__header-btn {
- width: 10px;
- height: 10px;
- border-left-color: $uni-text-color-placeholder;
- border-left-style: solid;
- border-left-width: 2px;
- border-top-color: $uni-color-subtitle;
- border-top-style: solid;
- border-top-width: 2px;
- }
-
- .uni-calendar--left {
- transform: rotate(-45deg);
- }
-
- .uni-calendar--right {
- transform: rotate(135deg);
- }
-
-
- .uni-calendar__weeks {
- position: relative;
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex-direction: row;
- }
-
- .uni-calendar__weeks-item {
- flex: 1;
- }
-
- .uni-calendar__weeks-day {
- flex: 1;
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex-direction: column;
- justify-content: center;
- align-items: center;
- height: 45px;
- border-bottom-color: #F5F5F5;
- border-bottom-style: solid;
- border-bottom-width: 1px;
- }
-
- .uni-calendar__weeks-day-text {
- font-size: 14px;
- }
-
- .uni-calendar__box {
- position: relative;
- }
-
- .uni-calendar__box-bg {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- justify-content: center;
- align-items: center;
- position: absolute;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- }
-
- .uni-calendar__box-bg-text {
- font-size: 200px;
- font-weight: bold;
- color: $uni-text-color-grey;
- opacity: 0.1;
- text-align: center;
- /* #ifndef APP-NVUE */
- line-height: 1;
- /* #endif */
- }
-</style>
diff --git a/uni_modules/uni-calendar/components/uni-calendar/util.js b/uni_modules/uni-calendar/components/uni-calendar/util.js
deleted file mode 100644
index bae9273..0000000
--- a/uni_modules/uni-calendar/components/uni-calendar/util.js
+++ /dev/null
@@ -1,354 +0,0 @@
-import CALENDAR from './calendar.js'
-
-class Calendar {
- constructor({
- date,
- selected,
- startDate,
- endDate,
- range
- } = {}) {
- // 褰撳墠鏃ユ湡
- this.date = this.getDate(new Date()) // 褰撳墠鍒濆叆鏃ユ湡
- // 鎵撶偣淇℃伅
- this.selected = selected || [];
- // 鑼冨洿寮�濮�
- this.startDate = startDate
- // 鑼冨洿缁撴潫
- this.endDate = endDate
- this.range = range
- // 澶氶�夌姸鎬�
- this.cleanMultipleStatus()
- // 姣忓懆鏃ユ湡
- this.weeks = {}
- // this._getWeek(this.date.fullDate)
- }
- /**
- * 璁剧疆鏃ユ湡
- * @param {Object} date
- */
- setDate(date) {
- this.selectDate = this.getDate(date)
- this._getWeek(this.selectDate.fullDate)
- }
-
- /**
- * 娓呯悊澶氶�夌姸鎬�
- */
- cleanMultipleStatus() {
- this.multipleStatus = {
- before: '',
- after: '',
- data: []
- }
- }
-
- /**
- * 閲嶇疆寮�濮嬫棩鏈�
- */
- resetSatrtDate(startDate) {
- // 鑼冨洿寮�濮�
- this.startDate = startDate
-
- }
-
- /**
- * 閲嶇疆缁撴潫鏃ユ湡
- */
- resetEndDate(endDate) {
- // 鑼冨洿缁撴潫
- this.endDate = endDate
- }
-
- /**
- * 鑾峰彇浠绘剰鏃堕棿
- */
- getDate(date, AddDayCount = 0, str = 'day') {
- if (!date) {
- date = new Date()
- }
- if (typeof date !== 'object') {
- date = date.replace(/-/g, '/')
- }
- const dd = new Date(date)
- switch (str) {
- case 'day':
- dd.setDate(dd.getDate() + AddDayCount) // 鑾峰彇AddDayCount澶╁悗鐨勬棩鏈�
- break
- case 'month':
- if (dd.getDate() === 31) {
- dd.setDate(dd.getDate() + AddDayCount)
- } else {
- dd.setMonth(dd.getMonth() + AddDayCount) // 鑾峰彇AddDayCount澶╁悗鐨勬棩鏈�
- }
- break
- case 'year':
- dd.setFullYear(dd.getFullYear() + AddDayCount) // 鑾峰彇AddDayCount澶╁悗鐨勬棩鏈�
- break
- }
- const y = dd.getFullYear()
- const m = dd.getMonth() + 1 < 10 ? '0' + (dd.getMonth() + 1) : dd.getMonth() + 1 // 鑾峰彇褰撳墠鏈堜唤鐨勬棩鏈燂紝涓嶈冻10琛�0
- const d = dd.getDate() < 10 ? '0' + dd.getDate() : dd.getDate() // 鑾峰彇褰撳墠鍑犲彿锛屼笉瓒�10琛�0
- return {
- fullDate: y + '-' + m + '-' + d,
- year: y,
- month: m,
- date: d,
- day: dd.getDay()
- }
- }
-
-
- /**
- * 鑾峰彇涓婃湀鍓╀綑澶╂暟
- */
- _getLastMonthDays(firstDay, full) {
- let dateArr = []
- for (let i = firstDay; i > 0; i--) {
- const beforeDate = new Date(full.year, full.month - 1, -i + 1).getDate()
- dateArr.push({
- date: beforeDate,
- month: full.month - 1,
- lunar: this.getlunar(full.year, full.month - 1, beforeDate),
- disable: true
- })
- }
- return dateArr
- }
- /**
- * 鑾峰彇鏈湀澶╂暟
- */
- _currentMonthDys(dateData, full) {
- let dateArr = []
- let fullDate = this.date.fullDate
- for (let i = 1; i <= dateData; i++) {
- let isinfo = false
- let nowDate = full.year + '-' + (full.month < 10 ?
- full.month : full.month) + '-' + (i < 10 ?
- '0' + i : i)
- // 鏄惁浠婂ぉ
- let isDay = fullDate === nowDate
- // 鑾峰彇鎵撶偣淇℃伅
- let info = this.selected && this.selected.find((item) => {
- if (this.dateEqual(nowDate, item.date)) {
- return item
- }
- })
-
- // 鏃ユ湡绂佺敤
- let disableBefore = true
- let disableAfter = true
- if (this.startDate) {
- // let dateCompBefore = this.dateCompare(this.startDate, fullDate)
- // disableBefore = this.dateCompare(dateCompBefore ? this.startDate : fullDate, nowDate)
- disableBefore = this.dateCompare(this.startDate, nowDate)
- }
-
- if (this.endDate) {
- // let dateCompAfter = this.dateCompare(fullDate, this.endDate)
- // disableAfter = this.dateCompare(nowDate, dateCompAfter ? this.endDate : fullDate)
- disableAfter = this.dateCompare(nowDate, this.endDate)
- }
- let multiples = this.multipleStatus.data
- let checked = false
- let multiplesStatus = -1
- if (this.range) {
- if (multiples) {
- multiplesStatus = multiples.findIndex((item) => {
- return this.dateEqual(item, nowDate)
- })
- }
- if (multiplesStatus !== -1) {
- checked = true
- }
- }
- let data = {
- fullDate: nowDate,
- year: full.year,
- date: i,
- multiple: this.range ? checked : false,
- beforeMultiple: this.dateEqual(this.multipleStatus.before, nowDate),
- afterMultiple: this.dateEqual(this.multipleStatus.after, nowDate),
- month: full.month,
- lunar: this.getlunar(full.year, full.month, i),
- disable: !(disableBefore && disableAfter),
- isDay
- }
- if (info) {
- data.extraInfo = info
- }
-
- dateArr.push(data)
- }
- return dateArr
- }
- /**
- * 鑾峰彇涓嬫湀澶╂暟
- */
- _getNextMonthDays(surplus, full) {
- let dateArr = []
- for (let i = 1; i < surplus + 1; i++) {
- dateArr.push({
- date: i,
- month: Number(full.month) + 1,
- lunar: this.getlunar(full.year, Number(full.month) + 1, i),
- disable: true
- })
- }
- return dateArr
- }
-
- /**
- * 鑾峰彇褰撳墠鏃ユ湡璇︽儏
- * @param {Object} date
- */
- getInfo(date) {
- if (!date) {
- date = new Date()
- }
- const dateInfo = this.canlender.find(item => item.fullDate === this.getDate(date).fullDate)
- return dateInfo
- }
-
- /**
- * 姣旇緝鏃堕棿澶у皬
- */
- dateCompare(startDate, endDate) {
- // 璁$畻鎴鏃堕棿
- startDate = new Date(startDate.replace('-', '/').replace('-', '/'))
- // 璁$畻璇︾粏椤圭殑鎴鏃堕棿
- endDate = new Date(endDate.replace('-', '/').replace('-', '/'))
- if (startDate <= endDate) {
- return true
- } else {
- return false
- }
- }
-
- /**
- * 姣旇緝鏃堕棿鏄惁鐩哥瓑
- */
- dateEqual(before, after) {
- // 璁$畻鎴鏃堕棿
- before = new Date(before.replace('-', '/').replace('-', '/'))
- // 璁$畻璇︾粏椤圭殑鎴鏃堕棿
- after = new Date(after.replace('-', '/').replace('-', '/'))
- if (before.getTime() - after.getTime() === 0) {
- return true
- } else {
- return false
- }
- }
-
-
- /**
- * 鑾峰彇鏃ユ湡鑼冨洿鍐呮墍鏈夋棩鏈�
- * @param {Object} begin
- * @param {Object} end
- */
- geDateAll(begin, end) {
- var arr = []
- var ab = begin.split('-')
- var ae = end.split('-')
- var db = new Date()
- db.setFullYear(ab[0], ab[1] - 1, ab[2])
- var de = new Date()
- de.setFullYear(ae[0], ae[1] - 1, ae[2])
- var unixDb = db.getTime() - 24 * 60 * 60 * 1000
- var unixDe = de.getTime() - 24 * 60 * 60 * 1000
- for (var k = unixDb; k <= unixDe;) {
- k = k + 24 * 60 * 60 * 1000
- arr.push(this.getDate(new Date(parseInt(k))).fullDate)
- }
- return arr
- }
- /**
- * 璁$畻闃村巻鏃ユ湡鏄剧ず
- */
- getlunar(year, month, date) {
- return CALENDAR.solar2lunar(year, month, date)
- }
- /**
- * 璁剧疆鎵撶偣
- */
- setSelectInfo(data, value) {
- this.selected = value
- this._getWeek(data)
- }
-
- /**
- * 鑾峰彇澶氶�夌姸鎬�
- */
- setMultiple(fullDate) {
- let {
- before,
- after
- } = this.multipleStatus
-
- if (!this.range) return
- if (before && after) {
- this.multipleStatus.before = ''
- this.multipleStatus.after = ''
- this.multipleStatus.data = []
- } else {
- if (!before) {
- this.multipleStatus.before = fullDate
- } else {
- this.multipleStatus.after = fullDate
- if (this.dateCompare(this.multipleStatus.before, this.multipleStatus.after)) {
- this.multipleStatus.data = this.geDateAll(this.multipleStatus.before, this.multipleStatus.after);
- } else {
- this.multipleStatus.data = this.geDateAll(this.multipleStatus.after, this.multipleStatus.before);
- }
- }
- }
- this._getWeek(fullDate)
- }
-
- /**
- * 鑾峰彇姣忓懆鏁版嵁
- * @param {Object} dateData
- */
- _getWeek(dateData) {
- const {
- fullDate,
- year,
- month,
- date,
- day
- } = this.getDate(dateData)
- let firstDay = new Date(year, month - 1, 1).getDay()
- let currentDay = new Date(year, month, 0).getDate()
- let dates = {
- lastMonthDays: this._getLastMonthDays(firstDay, this.getDate(dateData)), // 涓婁釜鏈堟湯灏惧嚑澶�
- currentMonthDys: this._currentMonthDys(currentDay, this.getDate(dateData)), // 鏈湀澶╂暟
- nextMonthDays: [], // 涓嬩釜鏈堝紑濮嬪嚑澶�
- weeks: []
- }
- let canlender = []
- const surplus = 42 - (dates.lastMonthDays.length + dates.currentMonthDys.length)
- dates.nextMonthDays = this._getNextMonthDays(surplus, this.getDate(dateData))
- canlender = canlender.concat(dates.lastMonthDays, dates.currentMonthDys, dates.nextMonthDays)
- let weeks = {}
- // 鎷兼帴鏁扮粍 涓婁釜鏈堝紑濮嬪嚑澶� + 鏈湀澶╂暟+ 涓嬩釜鏈堝紑濮嬪嚑澶�
- for (let i = 0; i < canlender.length; i++) {
- if (i % 7 === 0) {
- weeks[parseInt(i / 7)] = new Array(7)
- }
- weeks[parseInt(i / 7)][i % 7] = canlender[i]
- }
- this.canlender = canlender
- this.weeks = weeks
- }
-
- //闈欐�佹柟娉�
- // static init(date) {
- // if (!this.instance) {
- // this.instance = new Calendar(date);
- // }
- // return this.instance;
- // }
-}
-
-
-export default Calendar
diff --git a/uni_modules/uni-calendar/package.json b/uni_modules/uni-calendar/package.json
deleted file mode 100644
index 40455c8..0000000
--- a/uni_modules/uni-calendar/package.json
+++ /dev/null
@@ -1,88 +0,0 @@
-{
- "id": "uni-calendar",
- "displayName": "uni-calendar 鏃ュ巻",
- "version": "1.4.5",
- "description": "鏃ュ巻缁勪欢",
- "keywords": [
- "uni-ui",
- "uniui",
- "鏃ュ巻",
- "",
- "鎵撳崱",
- "鏃ュ巻閫夋嫨"
-],
- "repository": "https://github.com/dcloudio/uni-ui",
- "engines": {
- "HBuilderX": ""
- },
- "directories": {
- "example": "../../temps/example_temps"
- },
- "dcloudext": {
- "category": [
- "鍓嶇缁勪欢",
- "閫氱敤缁勪欢"
- ],
- "sale": {
- "regular": {
- "price": "0.00"
- },
- "sourcecode": {
- "price": "0.00"
- }
- },
- "contact": {
- "qq": ""
- },
- "declaration": {
- "ads": "鏃�",
- "data": "鏃�",
- "permissions": "鏃�"
- },
- "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui"
- },
- "uni_modules": {
- "dependencies": [],
- "encrypt": [],
- "platforms": {
- "cloud": {
- "tcb": "y",
- "aliyun": "y"
- },
- "client": {
- "App": {
- "app-vue": "y",
- "app-nvue": "y"
- },
- "H5-mobile": {
- "Safari": "y",
- "Android Browser": "y",
- "寰俊娴忚鍣�(Android)": "y",
- "QQ娴忚鍣�(Android)": "y"
- },
- "H5-pc": {
- "Chrome": "y",
- "IE": "y",
- "Edge": "y",
- "Firefox": "y",
- "Safari": "y"
- },
- "灏忕▼搴�": {
- "寰俊": "y",
- "闃块噷": "y",
- "鐧惧害": "y",
- "瀛楄妭璺冲姩": "y",
- "QQ": "y"
- },
- "蹇簲鐢�": {
- "鍗庝负": "u",
- "鑱旂洘": "u"
- },
- "Vue": {
- "vue2": "y",
- "vue3": "y"
- }
- }
- }
- }
-}
\ No newline at end of file
diff --git a/uni_modules/uni-calendar/readme.md b/uni_modules/uni-calendar/readme.md
deleted file mode 100644
index 4f3ca0e..0000000
--- a/uni_modules/uni-calendar/readme.md
+++ /dev/null
@@ -1,103 +0,0 @@
-
-
-## Calendar 鏃ュ巻
-> **缁勪欢鍚嶏細uni-calendar**
-> 浠g爜鍧楋細 `uCalendar`
-
-
-鏃ュ巻缁勪欢
-
-> **娉ㄦ剰浜嬮」**
-> 涓轰簡閬垮厤閿欒浣跨敤锛岀粰澶у甯︽潵涓嶅ソ鐨勫紑鍙戜綋楠岋紝璇峰湪浣跨敤缁勪欢鍓嶄粩缁嗛槄璇讳笅闈㈢殑娉ㄦ剰浜嬮」锛屽彲浠ュ府浣犻伩鍏嶄竴浜涢敊璇��
-> - 鏈粍浠跺啘鍘嗚浆鎹娇鐢ㄧ殑js鏄� [@1900-2100鍖洪棿鍐呯殑鍏巻銆佸啘鍘嗕簰杞琞(https://github.com/jjonline/calendar.js)
-> - 浠呮敮鎸佽嚜瀹氫箟缁勪欢妯″紡
-> - `date`灞炴�т紶鍏ョ殑搴旇鏄竴涓� String 锛屽锛� 2019-06-27 锛岃�屼笉鏄� new Date()
-> - 閫氳繃 `insert` 灞炴�ф潵纭畾褰撳墠鐨勪簨浠舵槸 @change 杩樻槸 @confirm 銆傜悊搴斿悎骞朵负涓�涓簨浠讹紝浣嗘槸涓轰簡鍖哄垎妯″紡锛岀幇浣跨敤涓や釜浜嬩欢锛岃繖閲岄渶瑕佹敞鎰�
-> - 寮圭獥妯″紡涓嬫棤娉曢樆姝㈠悗闈㈢殑鍏冪礌婊氬姩锛屽鏈夐渶瑕侀樆姝紝璇峰湪寮圭獥寮瑰嚭鍚庯紝鎵嬪姩璁剧疆婊氬姩鍏冪礌涓轰笉鍙粴鍔�
-
-
-### 瀹夎鏂瑰紡
-
-鏈粍浠剁鍚圼easycom](https://uniapp.dcloud.io/collocation/pages?id=easycom)瑙勮寖锛宍HBuilderX 2.5.5`璧凤紝鍙渶灏嗘湰缁勪欢瀵煎叆椤圭洰锛屽湪椤甸潰`template`涓嵆鍙洿鎺ヤ娇鐢紝鏃犻渶鍦ㄩ〉闈腑`import`鍜屾敞鍐宍components`銆�
-
-濡傞渶閫氳繃`npm`鏂瑰紡浣跨敤`uni-ui`缁勪欢锛屽彟瑙佹枃妗o細[https://ext.dcloud.net.cn/plugin?id=55](https://ext.dcloud.net.cn/plugin?id=55)
-
-### 鍩烘湰鐢ㄦ硶
-
-鍦� ``template`` 涓娇鐢ㄧ粍浠�
-
-```html
-<view>
- <uni-calendar
- :insert="true"
- :lunar="true"
- :start-date="'2019-3-2'"
- :end-date="'2019-5-20'"
- @change="change"
- />
-</view>
-```
-
-### 閫氳繃鏂规硶鎵撳紑鏃ュ巻
-
-闇�瑕佽缃� `insert` 涓� `false`
-
-```html
-<view>
- <uni-calendar
- ref="calendar"
- :insert="false"
- @confirm="confirm"
- />
- <button @click="open">鎵撳紑鏃ュ巻</button>
-</view>
-```
-
-```javascript
-
-export default {
- data() {
- return {};
- },
- methods: {
- open(){
- this.$refs.calendar.open();
- },
- confirm(e) {
- console.log(e);
- }
- }
-};
-
-```
-
-
-## API
-
-### Calendar Props
-
-| 灞炴�у悕 | 绫诲瀷 | 榛樿鍊紎 璇存槑 |
-| | |
-| date | String |- | 鑷畾涔夊綋鍓嶆椂闂达紝榛樿涓轰粖澶� |
-| lunar | Boolean | false | 鏄剧ず鍐滃巻 |
-| startDate | String |- | 鏃ユ湡閫夋嫨鑼冨洿-寮�濮嬫棩鏈� |
-| endDate | String |- | 鏃ユ湡閫夋嫨鑼冨洿-缁撴潫鏃ユ湡 |
-| range | Boolean | false | 鑼冨洿閫夋嫨 |
-| insert | Boolean | false | 鎻掑叆妯″紡,鍙�夊�硷紝ture锛氭彃鍏ユā寮忥紱false锛氬脊绐楁ā寮忥紱榛樿涓烘彃鍏ユā寮� |
-|clearDate |Boolean |true |寮圭獥妯″紡鏄惁娓呯┖涓婃閫夋嫨鍐呭 |
-| selected | Array |- | 鎵撶偣锛屾湡寰呮牸寮廩{date: '2019-06-27', info: '绛惧埌', data: { custom: '鑷畾涔変俊鎭�', name: '鑷畾涔夋秷鎭ご',xxx:xxx... }}] |
-|showMonth | Boolean | true | 鏄惁鏄剧ず鏈堜唤涓鸿儗鏅� |
-
-### Calendar Events
-
-| 浜嬩欢鍚� | 璇存槑 |杩斿洖鍊紎
-| | | |
-| open | 寮瑰嚭鏃ュ巻缁勪欢锛宍insert :false` 鏃剁敓鏁坾- |
-
-
-
-
-
-## 缁勪欢绀轰緥
-
-鐐瑰嚮鏌ョ湅锛歔https://hellouniapp.dcloud.net.cn/pages/extUI/calendar/calendar](https://hellouniapp.dcloud.net.cn/pages/extUI/calendar/calendar)
\ No newline at end of file
diff --git a/uni_modules/uni-card/changelog.md b/uni_modules/uni-card/changelog.md
deleted file mode 100644
index c3cd8c4..0000000
--- a/uni_modules/uni-card/changelog.md
+++ /dev/null
@@ -1,26 +0,0 @@
-## 1.3.1锛�2021-12-20锛�
-- 淇 鍦╲ue椤甸潰涓嬬暐缂╁浘鏄剧ず涓嶆甯哥殑bug
-## 1.3.0锛�2021-11-19锛�
-- 閲嶆瀯鎻掓Ы鐨勭敤娉� 锛宧eader 鏇挎崲涓� title
-- 鏂板 actions 鎻掓Ы
-- 鏂板 cover 灏侀潰鍥惧睘鎬у拰鎻掓Ы
-- 鏂板 padding 鍐呭榛樿鍐呰竟璺濈
-- 鏂板 margin 鍗$墖榛樿澶栬竟璺濈
-- 鏂板 spacing 鍗$墖榛樿鍐呰竟璺�
-- 鏂板 shadow 鍗$墖闃村奖灞炴��
-- 鍙栨秷 mode 灞炴�э紝鍙娇鐢ㄧ粍鍚堟彃妲戒唬鏇�
-- 鍙栨秷 note 灞炴�� 锛屼娇鐢╝ctions鎻掓Ы浠f浛
-- 浼樺寲 缁勪欢UI锛屽苟鎻愪緵璁捐璧勬簮锛岃瑙�:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource)
-- 鏂囨。杩佺Щ锛岃瑙�:[https://uniapp.dcloud.io/component/uniui/uni-card](https://uniapp.dcloud.io/component/uniui/uni-card)
-## 1.2.1锛�2021-07-30锛�
-- 浼樺寲 vue3涓嬩簨浠惰鍛婄殑闂
-## 1.2.0锛�2021-07-13锛�
-- 缁勪欢鍏煎 vue3锛屽浣曞垱寤簐ue3椤圭洰璇﹁ [uni-app 椤圭洰鏀寔 vue3 浠嬬粛](https://ask.dcloud.net.cn/article/37834)
-## 1.1.8锛�2021-07-01锛�
-- 浼樺寲 鍥炬枃鍗$墖鏃犲浘鐗囧姞杞芥椂锛屾彁渚涘崰浣嶅浘鏍�
-- 鏂板 header 鎻掓Ы锛岃嚜瀹氫箟鍗$墖澶撮儴锛� 鍥炬枃鍗$墖 mode="style" 鏃讹紝涓嶆敮鎸侊級
-- 淇 thumbnail 涓嶅瓨鍦ㄤ粛鐒跺崰浣嶇殑 bug
-## 1.1.7锛�2021-05-12锛�
-- 鏂板 缁勪欢绀轰緥鍦板潃
-## 1.1.6锛�2021-02-04锛�
-- 璋冩暣涓簎ni_modules鐩綍瑙勮寖
diff --git a/uni_modules/uni-card/components/uni-card/uni-card.vue b/uni_modules/uni-card/components/uni-card/uni-card.vue
deleted file mode 100644
index 38cf594..0000000
--- a/uni_modules/uni-card/components/uni-card/uni-card.vue
+++ /dev/null
@@ -1,270 +0,0 @@
-<template>
- <view class="uni-card" :class="{ 'uni-card--full': isFull, 'uni-card--shadow': isShadow,'uni-card--border':border}"
- :style="{'margin':isFull?0:margin,'padding':spacing,'box-shadow':isShadow?shadow:''}">
- <!-- 灏侀潰 -->
- <slot name="cover">
- <view v-if="cover" class="uni-card__cover">
- <image class="uni-card__cover-image" mode="widthFix" @click="onClick('cover')" :src="cover"></image>
- </view>
- </slot>
- <slot name="title">
- <view v-if="title || extra" class="uni-card__header">
- <!-- 鍗$墖鏍囬 -->
- <view class="uni-card__header-box" @click="onClick('title')">
- <view v-if="thumbnail" class="uni-card__header-avatar">
- <image class="uni-card__header-avatar-image" :src="thumbnail" mode="aspectFit" />
- </view>
- <view class="uni-card__header-content">
- <text class="uni-card__header-content-title uni-ellipsis">{{ title }}</text>
- <text v-if="title&&subTitle"
- class="uni-card__header-content-subtitle uni-ellipsis">{{ subTitle }}</text>
- </view>
- </view>
- <view class="uni-card__header-extra" @click="onClick('extra')">
- <text class="uni-card__header-extra-text">{{ extra }}</text>
- </view>
- </view>
- </slot>
- <!-- 鍗$墖鍐呭 -->
- <view class="uni-card__content" :style="{padding:padding}" @click="onClick('content')">
- <slot></slot>
- </view>
- <view class="uni-card__actions" @click="onClick('actions')">
- <slot name="actions"></slot>
- </view>
- </view>
-</template>
-
-<script>
- /**
- * Card 鍗$墖
- * @description 鍗$墖瑙嗗浘缁勪欢
- * @tutorial https://ext.dcloud.net.cn/plugin?id=22
- * @property {String} title 鏍囬鏂囧瓧
- * @property {String} subTitle 鍓爣棰�
- * @property {Number} padding 鍐呭鍐呰竟璺�
- * @property {Number} margin 鍗$墖澶栬竟璺�
- * @property {Number} spacing 鍗$墖鍐呰竟璺�
- * @property {String} extra 鏍囬棰濆淇℃伅
- * @property {String} cover 灏侀潰鍥撅紙鏈湴璺緞闇�瑕佸紩鍏ワ級
- * @property {String} thumbnail 鏍囬宸︿晶缂╃暐鍥�
- * @property {Boolean} is-full = [true | false] 鍗$墖鍐呭鏄惁閫氭爮锛屼负 true 鏃跺皢鍘婚櫎padding鍊�
- * @property {Boolean} is-shadow = [true | false] 鍗$墖鍐呭鏄惁寮�鍚槾褰�
- * @property {String} shadow 鍗$墖闃村奖
- * @property {Boolean} border 鍗$墖杈规
- * @event {Function} click 鐐瑰嚮 Card 瑙﹀彂浜嬩欢
- */
- export default {
- name: 'UniCard',
- emits: ['click'],
- props: {
- title: {
- type: String,
- default: ''
- },
- subTitle: {
- type: String,
- default: ''
- },
- padding: {
- type: String,
- default: '10px'
- },
- margin: {
- type: String,
- default: '15px'
- },
- spacing: {
- type: String,
- default: '0 10px'
- },
- extra: {
- type: String,
- default: ''
- },
- cover: {
- type: String,
- default: ''
- },
- thumbnail: {
- type: String,
- default: ''
- },
- isFull: {
- // 鍐呭鍖哄煙鏄惁閫氭爮
- type: Boolean,
- default: false
- },
- isShadow: {
- // 鏄惁寮�鍚槾褰�
- type: Boolean,
- default: true
- },
- shadow: {
- type: String,
- default: '0px 0px 3px 1px rgba(0, 0, 0, 0.08)'
- },
- border: {
- type: Boolean,
- default: true
- }
- },
- methods: {
- onClick(type) {
- this.$emit('click', type)
- }
- }
- }
-</script>
-
-<style lang="scss">
- $uni-border-3: #EBEEF5 !default;
- $uni-shadow-base:0 0px 6px 1px rgba($color: #a5a5a5, $alpha: 0.2) !default;
- $uni-main-color: #3a3a3a !default;
- $uni-base-color: #6a6a6a !default;
- $uni-secondary-color: #909399 !default;
- $uni-spacing-sm: 8px !default;
- $uni-border-color:$uni-border-3;
- $uni-shadow: $uni-shadow-base;
- $uni-card-title: 15px;
- $uni-cart-title-color:$uni-main-color;
- $uni-card-subtitle: 12px;
- $uni-cart-subtitle-color:$uni-secondary-color;
- $uni-card-spacing: 10px;
- $uni-card-content-color: $uni-base-color;
-
- .uni-card {
- margin: $uni-card-spacing;
- padding: 0 $uni-spacing-sm;
- border-radius: 4px;
- overflow: hidden;
- font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, SimSun, sans-serif;
- background-color: #fff;
- flex: 1;
-
- .uni-card__cover {
- position: relative;
- margin-top: $uni-card-spacing;
- flex-direction: row;
- overflow: hidden;
- border-radius: 4px;
- .uni-card__cover-image {
- flex: 1;
- // width: 100%;
- /* #ifndef APP-PLUS */
- vertical-align: middle;
- /* #endif */
- }
- }
-
- .uni-card__header {
- display: flex;
- border-bottom: 1px $uni-border-color solid;
- flex-direction: row;
- align-items: center;
- padding: $uni-card-spacing;
- overflow: hidden;
-
- .uni-card__header-box {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex: 1;
- flex-direction: row;
- align-items: center;
- overflow: hidden;
- }
-
- .uni-card__header-avatar {
- width: 40px;
- height: 40px;
- overflow: hidden;
- border-radius: 5px;
- margin-right: $uni-card-spacing;
- .uni-card__header-avatar-image {
- flex: 1;
- width: 40px;
- height: 40px;
- }
- }
-
- .uni-card__header-content {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex-direction: column;
- justify-content: center;
- flex: 1;
- // height: 40px;
- overflow: hidden;
-
- .uni-card__header-content-title {
- font-size: $uni-card-title;
- color: $uni-cart-title-color;
- // line-height: 22px;
- }
-
- .uni-card__header-content-subtitle {
- font-size: $uni-card-subtitle;
- margin-top: 5px;
- color: $uni-cart-subtitle-color;
- }
- }
-
- .uni-card__header-extra {
- line-height: 12px;
-
- .uni-card__header-extra-text {
- font-size: 12px;
- color: $uni-cart-subtitle-color;
- }
- }
- }
-
- .uni-card__content {
- padding: $uni-card-spacing;
- font-size: 14px;
- color: $uni-card-content-color;
- line-height: 22px;
- }
-
- .uni-card__actions {
- font-size: 12px;
- }
- }
-
- .uni-card--border {
- border: 1px solid $uni-border-color;
- }
-
- .uni-card--shadow {
- position: relative;
- /* #ifndef APP-NVUE */
- box-shadow: $uni-shadow;
- /* #endif */
- }
-
- .uni-card--full {
- margin: 0;
- border-left-width: 0;
- border-left-width: 0;
- border-radius: 0;
- }
-
- /* #ifndef APP-NVUE */
- .uni-card--full:after {
- border-radius: 0;
- }
-
- /* #endif */
- .uni-ellipsis {
- /* #ifndef APP-NVUE */
- overflow: hidden;
- white-space: nowrap;
- text-overflow: ellipsis;
- /* #endif */
- /* #ifdef APP-NVUE */
- lines: 1;
- /* #endif */
- }
-</style>
diff --git a/uni_modules/uni-card/package.json b/uni_modules/uni-card/package.json
deleted file mode 100644
index f16224d..0000000
--- a/uni_modules/uni-card/package.json
+++ /dev/null
@@ -1,90 +0,0 @@
-{
- "id": "uni-card",
- "displayName": "uni-card 鍗$墖",
- "version": "1.3.1",
- "description": "Card 缁勪欢锛屾彁渚涘父瑙佺殑鍗$墖鏍峰紡銆�",
- "keywords": [
- "uni-ui",
- "uniui",
- "card",
- "",
- "鍗$墖"
-],
- "repository": "https://github.com/dcloudio/uni-ui",
- "engines": {
- "HBuilderX": ""
- },
- "directories": {
- "example": "../../temps/example_temps"
- },
- "dcloudext": {
- "category": [
- "鍓嶇缁勪欢",
- "閫氱敤缁勪欢"
- ],
- "sale": {
- "regular": {
- "price": "0.00"
- },
- "sourcecode": {
- "price": "0.00"
- }
- },
- "contact": {
- "qq": ""
- },
- "declaration": {
- "ads": "鏃�",
- "data": "鏃�",
- "permissions": "鏃�"
- },
- "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui"
- },
- "uni_modules": {
- "dependencies": [
- "uni-icons",
- "uni-scss"
- ],
- "encrypt": [],
- "platforms": {
- "cloud": {
- "tcb": "y",
- "aliyun": "y"
- },
- "client": {
- "App": {
- "app-vue": "y",
- "app-nvue": "y"
- },
- "H5-mobile": {
- "Safari": "y",
- "Android Browser": "y",
- "寰俊娴忚鍣�(Android)": "y",
- "QQ娴忚鍣�(Android)": "y"
- },
- "H5-pc": {
- "Chrome": "y",
- "IE": "y",
- "Edge": "y",
- "Firefox": "y",
- "Safari": "y"
- },
- "灏忕▼搴�": {
- "寰俊": "y",
- "闃块噷": "y",
- "鐧惧害": "y",
- "瀛楄妭璺冲姩": "y",
- "QQ": "y"
- },
- "蹇簲鐢�": {
- "鍗庝负": "u",
- "鑱旂洘": "u"
- },
- "Vue": {
- "vue2": "y",
- "vue3": "y"
- }
- }
- }
- }
-}
diff --git a/uni_modules/uni-card/readme.md b/uni_modules/uni-card/readme.md
deleted file mode 100644
index 7434e71..0000000
--- a/uni_modules/uni-card/readme.md
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-## Card 鍗$墖
-> **缁勪欢鍚嶏細uni-card**
-> 浠g爜鍧楋細 `uCard`
-
-鍗$墖瑙嗗浘缁勪欢銆�
-
-### [鏌ョ湅鏂囨。](https://uniapp.dcloud.io/component/uniui/uni-card)
-#### 濡備娇鐢ㄨ繃绋嬩腑鏈変换浣曢棶棰橈紝鎴栬�呮偍瀵箄ni-ui鏈変竴浜涘ソ鐨勫缓璁紝娆㈣繋鍔犲叆 uni-ui 浜ゆ祦缇わ細871950839
-
-
diff --git a/uni_modules/uni-collapse/changelog.md b/uni_modules/uni-collapse/changelog.md
deleted file mode 100644
index 292e4c7..0000000
--- a/uni_modules/uni-collapse/changelog.md
+++ /dev/null
@@ -1,36 +0,0 @@
-## 1.4.3锛�2022-01-25锛�
-- 淇 鍒濆鍖栫殑鏃跺�� 锛宱pen 灞炴�уけ鏁堢殑bug
-## 1.4.2锛�2022-01-21锛�
-- 淇 寰俊灏忕▼搴弐esize鍚庣粍浠舵敹璧风殑bug
-## 1.4.1锛�2021-11-22锛�
-- 淇 vue3涓釜鍒玸css鍙橀噺鏃犳硶鎵惧埌鐨勯棶棰�
-## 1.4.0锛�2021-11-19锛�
-- 浼樺寲 缁勪欢UI锛屽苟鎻愪緵璁捐璧勬簮锛岃瑙�:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource)
-- 鏂囨。杩佺Щ锛岃瑙�:[https://uniapp.dcloud.io/component/uniui/uni-collapse](https://uniapp.dcloud.io/component/uniui/uni-collapse)
-## 1.3.3锛�2021-08-17锛�
-- 浼樺寲 show-arrow 灞炴�ч粯璁や负true
-## 1.3.2锛�2021-08-17锛�
-- 鏂板 show-arrow 灞炴�э紝鎺у埗鏄惁鏄剧ず鍙充晶绠ご
-## 1.3.1锛�2021-07-30锛�
-- 浼樺寲 vue3涓嬪皬绋嬪簭浜嬩欢璀﹀憡鐨勯棶棰�
-## 1.3.0锛�2021-07-30锛�
-- 缁勪欢鍏煎 vue3锛屽浣曞垱寤簐ue3椤圭洰锛岃瑙� [uni-app 椤圭洰鏀寔 vue3 浠嬬粛](https://ask.dcloud.net.cn/article/37834)
-## 1.2.2锛�2021-07-21锛�
-- 淇 鐢�1.2.0鐗堟湰寮曡捣鐨� change 浜嬩欢杩斿洖 undefined 鐨凚ug
-## 1.2.1锛�2021-07-21锛�
-- 浼樺寲 缁勪欢绀轰緥
-## 1.2.0锛�2021-07-21锛�
-- 鏂板 缁勪欢鎶樺彔鍔ㄧ敾
-- 鏂板 value\v-model 灞炴�� 锛屽姩鎬佷慨鏀归潰鏉挎姌鍙犵姸鎬�
-- 鏂板 title 鎻掓Ы 锛屽彲瀹氫箟闈㈡澘鏍囬
-- 鏂板 border 灞炴�� 锛屾樉绀洪殣钘忛潰鏉垮唴瀹瑰垎闅旂嚎
-- 鏂板 title-border 灞炴�� 锛屾樉绀洪殣钘忛潰鏉挎爣棰樺垎闅旂嚎
-- 淇 resize 鏂规硶澶辨晥鐨凚ug
-- 淇 change 浜嬩欢杩斿洖鍙傛暟涓嶆纭殑Bug
-- 浼樺寲 H5銆丄pp 骞冲彴鑷姩鏇村叿鍐呭鏇存柊楂樺害锛屾棤闇�璋冪敤 reszie() 鏂规硶
-## 1.1.7锛�2021-05-12锛�
-- 鏂板 缁勪欢绀轰緥鍦板潃
-## 1.1.6锛�2021-02-05锛�
-- 浼樺寲 缁勪欢寮曠敤鍏崇郴锛岄�氳繃uni_modules寮曠敤缁勪欢
-## 1.1.5锛�2021-02-05锛�
-- 璋冩暣涓簎ni_modules鐩綍瑙勮寖
\ No newline at end of file
diff --git a/uni_modules/uni-collapse/components/uni-collapse-item/uni-collapse-item.vue b/uni_modules/uni-collapse/components/uni-collapse-item/uni-collapse-item.vue
deleted file mode 100644
index d62a6a7..0000000
--- a/uni_modules/uni-collapse/components/uni-collapse-item/uni-collapse-item.vue
+++ /dev/null
@@ -1,402 +0,0 @@
-<template>
- <view class="uni-collapse-item">
- <!-- onClick(!isOpen) -->
- <view @click="onClick(!isOpen)" class="uni-collapse-item__title"
- :class="{'is-open':isOpen &&titleBorder === 'auto' ,'uni-collapse-item-border':titleBorder !== 'none'}">
- <view class="uni-collapse-item__title-wrap">
- <slot name="title">
- <view class="uni-collapse-item__title-box" :class="{'is-disabled':disabled}">
- <image v-if="thumb" :src="thumb" class="uni-collapse-item__title-img" />
- <text class="uni-collapse-item__title-text">{{ title }}</text>
- </view>
- </slot>
- </view>
- <view v-if="showArrow"
- :class="{ 'uni-collapse-item__title-arrow-active': isOpen, 'uni-collapse-item--animation': showAnimation === true }"
- class="uni-collapse-item__title-arrow">
- <uni-icons :color="disabled?'#ddd':'#bbb'" size="14" type="bottom" />
- </view>
- </view>
- <view class="uni-collapse-item__wrap" :class="{'is--transition':showAnimation}"
- :style="{height: (isOpen?height:0) +'px'}">
- <view :id="elId" ref="collapse--hook" class="uni-collapse-item__wrap-content"
- :class="{open:isheight,'uni-collapse-item--border':border&&isOpen}">
- <slot></slot>
- </view>
- </view>
-
- </view>
-</template>
-
-<script>
- // #ifdef APP-NVUE
- const dom = weex.requireModule('dom')
- // #endif
- /**
- * CollapseItem 鎶樺彔闈㈡澘瀛愮粍浠�
- * @description 鎶樺彔闈㈡澘瀛愮粍浠�
- * @property {String} title 鏍囬鏂囧瓧
- * @property {String} thumb 鏍囬宸︿晶缂╃暐鍥�
- * @property {String} name 鍞竴鏍囧織绗�
- * @property {Boolean} open = [true|false] 鏄惁灞曞紑缁勪欢
- * @property {Boolean} titleBorder = [true|false] 鏄惁鏄剧ず鏍囬鍒嗛殧绾�
- * @property {Boolean} border = [true|false] 鏄惁鏄剧ず鍒嗛殧绾�
- * @property {Boolean} disabled = [true|false] 鏄惁灞曞紑闈㈡澘
- * @property {Boolean} showAnimation = [true|false] 寮�鍚姩鐢�
- * @property {Boolean} showArrow = [true|false] 鏄惁鏄剧ず鍙充晶绠ご
- */
- export default {
- name: 'uniCollapseItem',
- props: {
- // 鍒楄〃鏍囬
- title: {
- type: String,
- default: ''
- },
- name: {
- type: [Number, String],
- default: ''
- },
- // 鏄惁绂佺敤
- disabled: {
- type: Boolean,
- default: false
- },
- // #ifdef APP-PLUS
- // 鏄惁鏄剧ず鍔ㄧ敾,app 绔粯璁や笉寮�鍚姩鐢伙紝鍗¢】涓ラ噸
- showAnimation: {
- type: Boolean,
- default: false
- },
- // #endif
- // #ifndef APP-PLUS
- // 鏄惁鏄剧ず鍔ㄧ敾
- showAnimation: {
- type: Boolean,
- default: true
- },
- // #endif
- // 鏄惁灞曞紑
- open: {
- type: Boolean,
- default: false
- },
- // 缂╃暐鍥�
- thumb: {
- type: String,
- default: ''
- },
- // 鏍囬鍒嗛殧绾挎樉绀虹被鍨�
- titleBorder: {
- type: String,
- default: 'auto'
- },
- border: {
- type: Boolean,
- default: true
- },
- showArrow: {
- type: Boolean,
- default: true
- }
- },
- data() {
- // TODO 闅忔満鐢熺敓鍏冪礌ID锛岃В鍐崇櫨搴﹀皬绋嬪簭鑾峰彇鍚屼竴涓厓绱犱綅缃俊鎭殑bug
- const elId = `Uni_${Math.ceil(Math.random() * 10e5).toString(36)}`
- return {
- isOpen: false,
- isheight: null,
- height: 0,
- elId,
- nameSync: 0
- }
- },
- watch: {
- open(val) {
- this.isOpen = val
- this.onClick(val, 'init')
- }
- },
- updated(e) {
- this.$nextTick(() => {
- this.init(true)
- })
- },
- created() {
- this.collapse = this.getCollapse()
- this.oldHeight = 0
- this.onClick(this.open, 'init')
- },
- // #ifndef VUE3
- // TODO vue2
- destroyed() {
- if (this.__isUnmounted) return
- this.uninstall()
- },
- // #endif
- // #ifdef VUE3
- // TODO vue3
- unmounted() {
- this.__isUnmounted = true
- this.uninstall()
- },
- // #endif
- mounted() {
- if (!this.collapse) return
- if (this.name !== '') {
- this.nameSync = this.name
- } else {
- this.nameSync = this.collapse.childrens.length + ''
- }
- if (this.collapse.names.indexOf(this.nameSync) === -1) {
- this.collapse.names.push(this.nameSync)
- } else {
- console.warn(`name 鍊� ${this.nameSync} 閲嶅`);
- }
- if (this.collapse.childrens.indexOf(this) === -1) {
- this.collapse.childrens.push(this)
- }
- this.init()
- },
- methods: {
- init(type) {
- // #ifndef APP-NVUE
- this.getCollapseHeight(type)
- // #endif
- // #ifdef APP-NVUE
- this.getNvueHwight(type)
- // #endif
- },
- uninstall() {
- if (this.collapse) {
- this.collapse.childrens.forEach((item, index) => {
- if (item === this) {
- this.collapse.childrens.splice(index, 1)
- }
- })
- this.collapse.names.forEach((item, index) => {
- if (item === this.nameSync) {
- this.collapse.names.splice(index, 1)
- }
- })
- }
- },
- onClick(isOpen, type) {
- if (this.disabled) return
- this.isOpen = isOpen
- if (this.isOpen && this.collapse) {
- this.collapse.setAccordion(this)
- }
- if (type !== 'init') {
- this.collapse.onChange(isOpen, this)
- }
- },
- getCollapseHeight(type, index = 0) {
- const views = uni.createSelectorQuery().in(this)
- views
- .select(`#${this.elId}`)
- .fields({
- size: true
- }, data => {
- // TODO 鐧惧害涓彲鑳借幏鍙栦笉鍒拌妭鐐逛俊鎭� 锛岄渶瑕佸惊鐜幏鍙�
- if (index >= 10) return
- if (!data) {
- index++
- this.getCollapseHeight(false, index)
- return
- }
- // #ifdef APP-NVUE
- this.height = data.height + 1
- // #endif
- // #ifndef APP-NVUE
- this.height = data.height
- // #endif
- this.isheight = true
- if (type) return
- this.onClick(this.isOpen, 'init')
- })
- .exec()
- },
- getNvueHwight(type) {
- const result = dom.getComponentRect(this.$refs['collapse--hook'], option => {
- if (option && option.result && option.size) {
- // #ifdef APP-NVUE
- this.height = option.size.height + 1
- // #endif
- // #ifndef APP-NVUE
- this.height = option.size.height
- // #endif
- this.isheight = true
- if (type) return
- this.onClick(this.open, 'init')
- }
- })
- },
- /**
- * 鑾峰彇鐖跺厓绱犲疄渚�
- */
- getCollapse(name = 'uniCollapse') {
- let parent = this.$parent;
- let parentName = parent.$options.name;
- while (parentName !== name) {
- parent = parent.$parent;
- if (!parent) return false;
- parentName = parent.$options.name;
- }
- return parent;
- }
- }
- }
-</script>
-
-<style lang="scss">
- .uni-collapse-item {
- /* #ifndef APP-NVUE */
- box-sizing: border-box;
-
- /* #endif */
- &__title {
- /* #ifndef APP-NVUE */
- display: flex;
- width: 100%;
- box-sizing: border-box;
- /* #endif */
- flex-direction: row;
- align-items: center;
- transition: border-bottom-color .3s;
-
- // transition-property: border-bottom-color;
- // transition-duration: 5s;
- &-wrap {
- width: 100%;
- flex: 1;
-
- }
-
- &-box {
- padding: 0 15px;
- /* #ifndef APP-NVUE */
- display: flex;
- width: 100%;
- box-sizing: border-box;
- /* #endif */
- flex-direction: row;
- justify-content: space-between;
- align-items: center;
- height: 48px;
- line-height: 48px;
- background-color: #fff;
- color: #303133;
- font-size: 13px;
- font-weight: 500;
- /* #ifdef H5 */
- cursor: pointer;
- outline: none;
-
- /* #endif */
- &.is-disabled {
- .uni-collapse-item__title-text {
- color: #999;
- }
- }
-
- }
-
- &.uni-collapse-item-border {
- border-bottom: 1px solid #ebeef5;
- }
-
- &.is-open {
- border-bottom-color: transparent;
- }
-
- &-img {
- height: 22px;
- width: 22px;
- margin-right: 10px;
- }
-
- &-text {
- flex: 1;
- font-size: 14px;
- /* #ifndef APP-NVUE */
- white-space: nowrap;
- color: inherit;
- /* #endif */
- /* #ifdef APP-NVUE */
- lines: 1;
- /* #endif */
- overflow: hidden;
- text-overflow: ellipsis;
- }
-
- &-arrow {
- /* #ifndef APP-NVUE */
- display: flex;
- box-sizing: border-box;
- /* #endif */
- align-items: center;
- justify-content: center;
- width: 20px;
- height: 20px;
- margin-right: 10px;
- transform: rotate(0deg);
-
- &-active {
- transform: rotate(-180deg);
- }
- }
-
-
- }
-
- &__wrap {
- /* #ifndef APP-NVUE */
- will-change: height;
- box-sizing: border-box;
- /* #endif */
- background-color: #fff;
- overflow: hidden;
- position: relative;
- height: 0;
-
- &.is--transition {
- // transition: all 0.3s;
- transition-property: height, border-bottom-width;
- transition-duration: 0.3s;
- /* #ifndef APP-NVUE */
- will-change: height;
- /* #endif */
- }
-
-
-
- &-content {
- position: absolute;
- font-size: 13px;
- color: #303133;
- // transition: height 0.3s;
- border-bottom-color: transparent;
- border-bottom-style: solid;
- border-bottom-width: 0;
-
- &.uni-collapse-item--border {
- border-bottom-width: 1px;
- border-bottom-color: red;
- border-bottom-color: #ebeef5;
- }
-
- &.open {
- position: relative;
- }
- }
- }
-
- &--animation {
- transition-property: transform;
- transition-duration: 0.3s;
- transition-timing-function: ease;
- }
-
- }
-</style>
diff --git a/uni_modules/uni-collapse/components/uni-collapse/uni-collapse.vue b/uni_modules/uni-collapse/components/uni-collapse/uni-collapse.vue
deleted file mode 100644
index 384c39a..0000000
--- a/uni_modules/uni-collapse/components/uni-collapse/uni-collapse.vue
+++ /dev/null
@@ -1,147 +0,0 @@
-<template>
- <view class="uni-collapse">
- <slot />
- </view>
-</template>
-<script>
- /**
- * Collapse 鎶樺彔闈㈡澘
- * @description 灞曠ず鍙互鎶樺彔 / 灞曞紑鐨勫唴瀹瑰尯鍩�
- * @tutorial https://ext.dcloud.net.cn/plugin?id=23
- * @property {String|Array} value 褰撳墠婵�娲婚潰鏉挎敼鍙樻椂瑙﹀彂(濡傛灉鏄墜椋庣惔妯″紡锛屽弬鏁扮被鍨嬩负string锛屽惁鍒欎负array)
- * @property {Boolean} accordion = [true|false] 鏄惁寮�鍚墜椋庣惔鏁堟灉鏄惁寮�鍚墜椋庣惔鏁堟灉
- * @event {Function} change 鍒囨崲闈㈡澘鏃惰Е鍙戯紝濡傛灉鏄墜椋庣惔妯″紡锛岃繑鍥炵被鍨嬩负string锛屽惁鍒欎负array
- */
- export default {
- name: 'uniCollapse',
- emits:['change','activeItem','input','update:modelValue'],
- props: {
- value: {
- type: [String, Array],
- default: ''
- },
- modelValue: {
- type: [String, Array],
- default: ''
- },
- accordion: {
- // 鏄惁寮�鍚墜椋庣惔鏁堟灉
- type: [Boolean, String],
- default: false
- },
- },
- data() {
- return {}
- },
- computed: {
- // TODO 鍏煎 vue2 鍜� vue3
- dataValue() {
- let value = (typeof this.value === 'string' && this.value === '') ||
- (Array.isArray(this.value) && this.value.length === 0)
- let modelValue = (typeof this.modelValue === 'string' && this.modelValue === '') ||
- (Array.isArray(this.modelValue) && this.modelValue.length === 0)
- if (value) {
- return this.modelValue
- }
- if (modelValue) {
- return this.value
- }
-
- return this.value
- }
- },
- watch: {
- dataValue(val) {
- this.setOpen(val)
- }
- },
- created() {
- this.childrens = []
- this.names = []
- },
- mounted() {
- this.$nextTick(()=>{
- this.setOpen(this.dataValue)
- })
- },
- methods: {
- setOpen(val) {
- let str = typeof val === 'string'
- let arr = Array.isArray(val)
- this.childrens.forEach((vm, index) => {
- if (str) {
- if (val === vm.nameSync) {
- if (!this.accordion) {
- console.warn('accordion 灞炴�т负 false ,v-model 绫诲瀷搴旇涓� array')
- return
- }
- vm.isOpen = true
- }
- }
- if (arr) {
- val.forEach(v => {
- if (v === vm.nameSync) {
- if (this.accordion) {
- console.warn('accordion 灞炴�т负 true ,v-model 绫诲瀷搴旇涓� string')
- return
- }
- vm.isOpen = true
- }
- })
- }
- })
- this.emit(val)
- },
- setAccordion(self) {
- if (!this.accordion) return
- this.childrens.forEach((vm, index) => {
- if (self !== vm) {
- vm.isOpen = false
- }
- })
- },
- resize() {
- this.childrens.forEach((vm, index) => {
- // #ifndef APP-NVUE
- vm.getCollapseHeight()
- // #endif
- // #ifdef APP-NVUE
- vm.getNvueHwight()
- // #endif
- })
- },
- onChange(isOpen, self) {
- let activeItem = []
-
- if (this.accordion) {
- activeItem = isOpen ? self.nameSync : ''
- } else {
- this.childrens.forEach((vm, index) => {
- if (vm.isOpen) {
- activeItem.push(vm.nameSync)
- }
- })
- }
- this.$emit('change', activeItem)
- this.emit(activeItem)
- },
- emit(val){
- this.$emit('input', val)
- this.$emit('update:modelValue', val)
- }
- }
- }
-</script>
-<style lang="scss" >
- .uni-collapse {
- /* #ifndef APP-NVUE */
- width: 100%;
- display: flex;
- /* #endif */
- /* #ifdef APP-NVUE */
- flex: 1;
- /* #endif */
- flex-direction: column;
- background-color: #fff;
- }
-</style>
diff --git a/uni_modules/uni-collapse/package.json b/uni_modules/uni-collapse/package.json
deleted file mode 100644
index 65349cf..0000000
--- a/uni_modules/uni-collapse/package.json
+++ /dev/null
@@ -1,89 +0,0 @@
-{
- "id": "uni-collapse",
- "displayName": "uni-collapse 鎶樺彔闈㈡澘",
- "version": "1.4.3",
- "description": "Collapse 缁勪欢锛屽彲浠ユ姌鍙� / 灞曞紑鐨勫唴瀹瑰尯鍩熴��",
- "keywords": [
- "uni-ui",
- "鎶樺彔",
- "鎶樺彔闈㈡澘",
- "鎵嬮鐞�"
-],
- "repository": "https://github.com/dcloudio/uni-ui",
- "engines": {
- "HBuilderX": ""
- },
- "directories": {
- "example": "../../temps/example_temps"
- },
- "dcloudext": {
- "category": [
- "鍓嶇缁勪欢",
- "閫氱敤缁勪欢"
- ],
- "sale": {
- "regular": {
- "price": "0.00"
- },
- "sourcecode": {
- "price": "0.00"
- }
- },
- "contact": {
- "qq": ""
- },
- "declaration": {
- "ads": "鏃�",
- "data": "鏃�",
- "permissions": "鏃�"
- },
- "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui"
- },
- "uni_modules": {
- "dependencies": [
- "uni-scss",
- "uni-icons"
- ],
- "encrypt": [],
- "platforms": {
- "cloud": {
- "tcb": "y",
- "aliyun": "y"
- },
- "client": {
- "App": {
- "app-vue": "y",
- "app-nvue": "y"
- },
- "H5-mobile": {
- "Safari": "y",
- "Android Browser": "y",
- "寰俊娴忚鍣�(Android)": "y",
- "QQ娴忚鍣�(Android)": "y"
- },
- "H5-pc": {
- "Chrome": "y",
- "IE": "y",
- "Edge": "y",
- "Firefox": "y",
- "Safari": "y"
- },
- "灏忕▼搴�": {
- "寰俊": "y",
- "闃块噷": "y",
- "鐧惧害": "y",
- "瀛楄妭璺冲姩": "y",
- "QQ": "y"
- },
- "蹇簲鐢�": {
- "鍗庝负": "u",
- "鑱旂洘": "u"
- },
- "Vue": {
- "vue2": "y",
- "vue3": "y"
- }
- }
- }
- }
-}
diff --git a/uni_modules/uni-collapse/readme.md b/uni_modules/uni-collapse/readme.md
deleted file mode 100644
index bc758eb..0000000
--- a/uni_modules/uni-collapse/readme.md
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-## Collapse 鎶樺彔闈㈡澘
-> **缁勪欢鍚嶏細uni-collapse**
-> 浠g爜鍧楋細 `uCollapse`
-> 鍏宠仈缁勪欢锛歚uni-collapse-item`銆乣uni-icons`銆�
-
-
-鎶樺彔闈㈡澘鐢ㄦ潵鎶樺彔/鏄剧ず杩囬暱鐨勫唴瀹规垨鑰呮槸鍒楄〃銆傞�氬父鏄湪澶氬唴瀹瑰垎绫婚」浣跨敤锛屾姌鍙犱笉閲嶈鐨勫唴瀹癸紝鏄剧ず閲嶈鍐呭銆傜偣鍑诲彲浠ュ睍寮�鎶樺彔閮ㄥ垎銆�
-
-### [鏌ョ湅鏂囨。](https://uniapp.dcloud.io/component/uniui/uni-collapse)
-#### 濡備娇鐢ㄨ繃绋嬩腑鏈変换浣曢棶棰橈紝鎴栬�呮偍瀵箄ni-ui鏈変竴浜涘ソ鐨勫缓璁紝娆㈣繋鍔犲叆 uni-ui 浜ゆ祦缇わ細871950839
\ No newline at end of file
diff --git a/uni_modules/uni-combox/changelog.md b/uni_modules/uni-combox/changelog.md
deleted file mode 100644
index 23c2748..0000000
--- a/uni_modules/uni-combox/changelog.md
+++ /dev/null
@@ -1,15 +0,0 @@
-## 1.0.1锛�2021-11-23锛�
-- 浼樺寲 label銆乴abel-width 灞炴��
-## 1.0.0锛�2021-11-19锛�
-- 浼樺寲 缁勪欢UI锛屽苟鎻愪緵璁捐璧勬簮锛岃瑙�:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource)
-- 鏂囨。杩佺Щ锛岃瑙�:[https://uniapp.dcloud.io/component/uniui/uni-combox](https://uniapp.dcloud.io/component/uniui/uni-combox)
-## 0.1.0锛�2021-07-30锛�
-- 缁勪欢鍏煎 vue3锛屽浣曞垱寤簐ue3椤圭洰锛岃瑙� [uni-app 椤圭洰鏀寔 vue3 浠嬬粛](https://ask.dcloud.net.cn/article/37834)
-## 0.0.6锛�2021-05-12锛�
-- 鏂板 缁勪欢绀轰緥鍦板潃
-## 0.0.5锛�2021-04-21锛�
-- 浼樺寲 娣诲姞渚濊禆 uni-icons, 瀵煎叆鍚庤嚜鍔ㄤ笅杞戒緷璧�
-## 0.0.4锛�2021-02-05锛�
-- 浼樺寲 缁勪欢寮曠敤鍏崇郴锛岄�氳繃uni_modules寮曠敤缁勪欢
-## 0.0.3锛�2021-02-04锛�
-- 璋冩暣涓簎ni_modules鐩綍瑙勮寖
diff --git a/uni_modules/uni-combox/components/uni-combox/uni-combox.vue b/uni_modules/uni-combox/components/uni-combox/uni-combox.vue
deleted file mode 100644
index d4cb79d..0000000
--- a/uni_modules/uni-combox/components/uni-combox/uni-combox.vue
+++ /dev/null
@@ -1,275 +0,0 @@
-<template>
- <view class="uni-combox" :class="border ? '' : 'uni-combox__no-border'">
- <view v-if="label" class="uni-combox__label" :style="labelStyle">
- <text>{{label}}</text>
- </view>
- <view class="uni-combox__input-box">
- <input class="uni-combox__input" type="text" :placeholder="placeholder"
- placeholder-class="uni-combox__input-plac" v-model="inputVal" @input="onInput" @focus="onFocus"
-@blur="onBlur" />
- <uni-icons :type="showSelector? 'top' : 'bottom'" size="14" color="#999" @click="toggleSelector">
- </uni-icons>
- </view>
- <view class="uni-combox__selector" v-if="showSelector">
- <view class="uni-popper__arrow"></view>
- <scroll-view scroll-y="true" class="uni-combox__selector-scroll">
- <view class="uni-combox__selector-empty" v-if="filterCandidatesLength === 0">
- <text>{{emptyTips}}</text>
- </view>
- <view class="uni-combox__selector-item" v-for="(item,index) in filterCandidates" :key="index"
- @click="onSelectorClick(index)">
- <text>{{item}}</text>
- </view>
- </scroll-view>
- </view>
- </view>
-</template>
-
-<script>
- /**
- * Combox 缁勫悎杈撳叆妗�
- * @description 缁勫悎杈撳叆妗嗕竴鑸敤浜庢棦鍙互杈撳叆涔熷彲浠ラ�夋嫨鐨勫満鏅�
- * @tutorial https://ext.dcloud.net.cn/plugin?id=1261
- * @property {String} label 宸︿晶鏂囧瓧
- * @property {String} labelWidth 宸︿晶鍐呭瀹藉害
- * @property {String} placeholder 杈撳叆妗嗗崰浣嶇
- * @property {Array} candidates 鍊欓�夐」鍒楄〃
- * @property {String} emptyTips 绛涢�夌粨鏋滀负绌烘椂鏄剧ず鐨勬枃瀛�
- * @property {String} value 缁勫悎妗嗙殑鍊�
- */
- export default {
- name: 'uniCombox',
- emits: ['input', 'update:modelValue'],
- props: {
- border: {
- type: Boolean,
- default: true
- },
- label: {
- type: String,
- default: ''
- },
- labelWidth: {
- type: String,
- default: 'auto'
- },
- placeholder: {
- type: String,
- default: ''
- },
- candidates: {
- type: Array,
- default () {
- return []
- }
- },
- emptyTips: {
- type: String,
- default: '鏃犲尮閰嶉」'
- },
- // #ifndef VUE3
- value: {
- type: [String, Number],
- default: ''
- },
- // #endif
- // #ifdef VUE3
- modelValue: {
- type: [String, Number],
- default: ''
- },
- // #endif
- },
- data() {
- return {
- showSelector: false,
- inputVal: ''
- }
- },
- computed: {
- labelStyle() {
- if (this.labelWidth === 'auto') {
- return ""
- }
- return `width: ${this.labelWidth}`
- },
- filterCandidates() {
- return this.candidates.filter((item) => {
- return item.toString().indexOf(this.inputVal) > -1
- })
- },
- filterCandidatesLength() {
- return this.filterCandidates.length
- }
- },
- watch: {
- // #ifndef VUE3
- value: {
- handler(newVal) {
- this.inputVal = newVal
- },
- immediate: true
- },
- // #endif
- // #ifdef VUE3
- modelValue: {
- handler(newVal) {
- this.inputVal = newVal
- },
- immediate: true
- },
- // #endif
- },
- methods: {
- toggleSelector() {
- this.showSelector = !this.showSelector
- },
- onFocus() {
- this.showSelector = true
- },
- onBlur() {
- setTimeout(() => {
- this.showSelector = false
- }, 153)
- },
- onSelectorClick(index) {
- this.inputVal = this.filterCandidates[index]
- this.showSelector = false
- this.$emit('input', this.inputVal)
- this.$emit('update:modelValue', this.inputVal)
- },
- onInput() {
- setTimeout(() => {
- this.$emit('input', this.inputVal)
- this.$emit('update:modelValue', this.inputVal)
- })
- }
- }
- }
-</script>
-
-<style lang="scss" scoped>
- .uni-combox {
- font-size: 14px;
- border: 1px solid #DCDFE6;
- border-radius: 4px;
- padding: 6px 10px;
- position: relative;
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- // height: 40px;
- flex-direction: row;
- align-items: center;
- // border-bottom: solid 1px #DDDDDD;
- }
-
- .uni-combox__label {
- font-size: 16px;
- line-height: 22px;
- padding-right: 10px;
- color: #999999;
- }
-
- .uni-combox__input-box {
- position: relative;
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex: 1;
- flex-direction: row;
- align-items: center;
- }
-
- .uni-combox__input {
- flex: 1;
- font-size: 14px;
- height: 22px;
- line-height: 22px;
- }
-
- .uni-combox__input-plac {
- font-size: 14px;
- color: #999;
- }
-
- .uni-combox__selector {
- /* #ifndef APP-NVUE */
- box-sizing: border-box;
- /* #endif */
- position: absolute;
- top: calc(100% + 12px);
- left: 0;
- width: 100%;
- background-color: #FFFFFF;
- border: 1px solid #EBEEF5;
- border-radius: 6px;
- box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
- z-index: 2;
- padding: 4px 0;
- }
-
- .uni-combox__selector-scroll {
- /* #ifndef APP-NVUE */
- max-height: 200px;
- box-sizing: border-box;
- /* #endif */
- }
-
- .uni-combox__selector-empty,
- .uni-combox__selector-item {
- /* #ifndef APP-NVUE */
- display: flex;
- cursor: pointer;
- /* #endif */
- line-height: 36px;
- font-size: 14px;
- text-align: center;
- // border-bottom: solid 1px #DDDDDD;
- padding: 0px 10px;
- }
-
- .uni-combox__selector-item:hover {
- background-color: #f9f9f9;
- }
-
- .uni-combox__selector-empty:last-child,
- .uni-combox__selector-item:last-child {
- /* #ifndef APP-NVUE */
- border-bottom: none;
- /* #endif */
- }
-
- // picker 寮瑰嚭灞傞�氱敤鐨勬寚绀哄皬涓夎
- .uni-popper__arrow,
- .uni-popper__arrow::after {
- position: absolute;
- display: block;
- width: 0;
- height: 0;
- border-color: transparent;
- border-style: solid;
- border-width: 6px;
- }
-
- .uni-popper__arrow {
- filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.03));
- top: -6px;
- left: 10%;
- margin-right: 3px;
- border-top-width: 0;
- border-bottom-color: #EBEEF5;
- }
-
- .uni-popper__arrow::after {
- content: " ";
- top: 1px;
- margin-left: -6px;
- border-top-width: 0;
- border-bottom-color: #fff;
- }
-
- .uni-combox__no-border {
- border: none;
- }
-</style>
diff --git a/uni_modules/uni-combox/package.json b/uni_modules/uni-combox/package.json
deleted file mode 100644
index 4a05c3f..0000000
--- a/uni_modules/uni-combox/package.json
+++ /dev/null
@@ -1,90 +0,0 @@
-{
- "id": "uni-combox",
- "displayName": "uni-combox 缁勫悎妗�",
- "version": "1.0.1",
- "description": "鍙互閫夋嫨涔熷彲浠ヨ緭鍏ョ殑琛ㄥ崟椤� ",
- "keywords": [
- "uni-ui",
- "uniui",
- "combox",
- "缁勫悎妗�",
- "select"
-],
- "repository": "https://github.com/dcloudio/uni-ui",
- "engines": {
- "HBuilderX": ""
- },
- "directories": {
- "example": "../../temps/example_temps"
- },
- "dcloudext": {
- "category": [
- "鍓嶇缁勪欢",
- "閫氱敤缁勪欢"
- ],
- "sale": {
- "regular": {
- "price": "0.00"
- },
- "sourcecode": {
- "price": "0.00"
- }
- },
- "contact": {
- "qq": ""
- },
- "declaration": {
- "ads": "鏃�",
- "data": "鏃�",
- "permissions": "鏃�"
- },
- "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui"
- },
- "uni_modules": {
- "dependencies": [
- "uni-scss",
- "uni-icons"
- ],
- "encrypt": [],
- "platforms": {
- "cloud": {
- "tcb": "y",
- "aliyun": "y"
- },
- "client": {
- "App": {
- "app-vue": "y",
- "app-nvue": "n"
- },
- "H5-mobile": {
- "Safari": "y",
- "Android Browser": "y",
- "寰俊娴忚鍣�(Android)": "y",
- "QQ娴忚鍣�(Android)": "y"
- },
- "H5-pc": {
- "Chrome": "y",
- "IE": "y",
- "Edge": "y",
- "Firefox": "y",
- "Safari": "y"
- },
- "灏忕▼搴�": {
- "寰俊": "y",
- "闃块噷": "y",
- "鐧惧害": "y",
- "瀛楄妭璺冲姩": "y",
- "QQ": "y"
- },
- "蹇簲鐢�": {
- "鍗庝负": "u",
- "鑱旂洘": "u"
- },
- "Vue": {
- "vue2": "y",
- "vue3": "y"
- }
- }
- }
- }
-}
\ No newline at end of file
diff --git a/uni_modules/uni-combox/readme.md b/uni_modules/uni-combox/readme.md
deleted file mode 100644
index ffa2cc8..0000000
--- a/uni_modules/uni-combox/readme.md
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
-## Combox 缁勫悎妗�
-> **缁勪欢鍚嶏細uni-combox**
-> 浠g爜鍧楋細 `uCombox`
-
-
-缁勫悎妗嗙粍浠躲��
-
-### [鏌ョ湅鏂囨。](https://uniapp.dcloud.io/component/uniui/uni-combox)
-#### 濡備娇鐢ㄨ繃绋嬩腑鏈変换浣曢棶棰橈紝鎴栬�呮偍瀵箄ni-ui鏈変竴浜涘ソ鐨勫缓璁紝娆㈣繋鍔犲叆 uni-ui 浜ゆ祦缇わ細871950839
\ No newline at end of file
diff --git a/uni_modules/uni-countdown/changelog.md b/uni_modules/uni-countdown/changelog.md
deleted file mode 100644
index f25beef..0000000
--- a/uni_modules/uni-countdown/changelog.md
+++ /dev/null
@@ -1,24 +0,0 @@
-## 1.2.2锛�2022-01-19锛�
-- 淇 鍦ㄥ井淇″皬绋嬪簭涓牱寮忎笉鐢熸晥鐨刡ug
-## 1.2.1锛�2022-01-18锛�
-- 鏂板 update 鏂规硶 锛屽湪鍔ㄦ�佹洿鏂版椂闂村悗锛屽埛鏂扮粍浠�
-## 1.2.0锛�2021-11-19锛�
-- 浼樺寲 缁勪欢UI锛屽苟鎻愪緵璁捐璧勬簮锛岃瑙�:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource)
-- 鏂囨。杩佺Щ锛岃瑙�:[https://uniapp.dcloud.io/component/uniui/uni-countdown](https://uniapp.dcloud.io/component/uniui/uni-countdown)
-## 1.1.3锛�2021-10-18锛�
-- 閲嶆瀯
-- 鏂板 font-size 鏀寔鑷畾涔夊瓧浣撳ぇ灏�
-## 1.1.2锛�2021-08-24锛�
-- 鏂板 鏀寔鍥介檯鍖�
-## 1.1.1锛�2021-07-30锛�
-- 浼樺寲 vue3涓嬪皬绋嬪簭浜嬩欢璀﹀憡鐨勯棶棰�
-## 1.1.0锛�2021-07-30锛�
-- 缁勪欢鍏煎 vue3锛屽浣曞垱寤簐ue3椤圭洰锛岃瑙� [uni-app 椤圭洰鏀寔 vue3 浠嬬粛](https://ask.dcloud.net.cn/article/37834)
-## 1.0.5锛�2021-06-18锛�
-- 淇 uni-countdown 閲嶅璧嬪�艰烦涓ょ鐨� bug
-## 1.0.4锛�2021-05-12锛�
-- 鏂板 缁勪欢绀轰緥鍦板潃
-## 1.0.3锛�2021-05-08锛�
-- 淇 uni-countdown 涓嶈兘鎺у埗鍊掕鏃剁殑 bug
-## 1.0.2锛�2021-02-04锛�
-- 璋冩暣涓簎ni_modules鐩綍瑙勮寖
diff --git a/uni_modules/uni-countdown/components/uni-countdown/i18n/en.json b/uni_modules/uni-countdown/components/uni-countdown/i18n/en.json
deleted file mode 100644
index 06309cb..0000000
--- a/uni_modules/uni-countdown/components/uni-countdown/i18n/en.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "uni-countdown.day": "day",
- "uni-countdown.h": "h",
- "uni-countdown.m": "m",
- "uni-countdown.s": "s"
-}
diff --git a/uni_modules/uni-countdown/components/uni-countdown/i18n/index.js b/uni_modules/uni-countdown/components/uni-countdown/i18n/index.js
deleted file mode 100644
index de7509c..0000000
--- a/uni_modules/uni-countdown/components/uni-countdown/i18n/index.js
+++ /dev/null
@@ -1,8 +0,0 @@
-import en from './en.json'
-import zhHans from './zh-Hans.json'
-import zhHant from './zh-Hant.json'
-export default {
- en,
- 'zh-Hans': zhHans,
- 'zh-Hant': zhHant
-}
diff --git a/uni_modules/uni-countdown/components/uni-countdown/i18n/zh-Hans.json b/uni_modules/uni-countdown/components/uni-countdown/i18n/zh-Hans.json
deleted file mode 100644
index 358cdd1..0000000
--- a/uni_modules/uni-countdown/components/uni-countdown/i18n/zh-Hans.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "uni-countdown.day": "澶�",
- "uni-countdown.h": "鏃�",
- "uni-countdown.m": "鍒�",
- "uni-countdown.s": "绉�"
-}
diff --git a/uni_modules/uni-countdown/components/uni-countdown/i18n/zh-Hant.json b/uni_modules/uni-countdown/components/uni-countdown/i18n/zh-Hant.json
deleted file mode 100644
index e5a63de..0000000
--- a/uni_modules/uni-countdown/components/uni-countdown/i18n/zh-Hant.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "uni-countdown.day": "澶�",
- "uni-countdown.h": "鏅�",
- "uni-countdown.m": "鍒�",
- "uni-countdown.s": "绉�"
-}
diff --git a/uni_modules/uni-countdown/components/uni-countdown/uni-countdown.vue b/uni_modules/uni-countdown/components/uni-countdown/uni-countdown.vue
deleted file mode 100644
index 1f8ef4e..0000000
--- a/uni_modules/uni-countdown/components/uni-countdown/uni-countdown.vue
+++ /dev/null
@@ -1,271 +0,0 @@
-<template>
- <view class="uni-countdown">
- <text v-if="showDay" :style="[timeStyle]" class="uni-countdown__number">{{ d }}</text>
- <text v-if="showDay" :style="[splitorStyle]" class="uni-countdown__splitor">{{dayText}}</text>
- <text :style="[timeStyle]" class="uni-countdown__number">{{ h }}</text>
- <text :style="[splitorStyle]" class="uni-countdown__splitor">{{ showColon ? ':' : hourText }}</text>
- <text :style="[timeStyle]" class="uni-countdown__number">{{ i }}</text>
- <text :style="[splitorStyle]" class="uni-countdown__splitor">{{ showColon ? ':' : minuteText }}</text>
- <text :style="[timeStyle]" class="uni-countdown__number">{{ s }}</text>
- <text v-if="!showColon" :style="[splitorStyle]" class="uni-countdown__splitor">{{secondText}}</text>
- </view>
-</template>
-<script>
- import {
- initVueI18n
- } from '@dcloudio/uni-i18n'
- import messages from './i18n/index.js'
- const {
- t
- } = initVueI18n(messages)
- /**
- * Countdown 鍊掕鏃�
- * @description 鍊掕鏃剁粍浠�
- * @tutorial https://ext.dcloud.net.cn/plugin?id=25
- * @property {String} backgroundColor 鑳屾櫙鑹�
- * @property {String} color 鏂囧瓧棰滆壊
- * @property {Number} day 澶╂暟
- * @property {Number} hour 灏忔椂
- * @property {Number} minute 鍒嗛挓
- * @property {Number} second 绉�
- * @property {Number} timestamp 鏃堕棿鎴�
- * @property {Boolean} showDay = [true|false] 鏄惁鏄剧ず澶╂暟
- * @property {Boolean} show-colon = [true|false] 鏄惁浠ュ啋鍙蜂负鍒嗛殧绗�
- * @property {String} splitorColor 鍒嗗壊绗﹀彿棰滆壊
- * @event {Function} timeup 鍊掕鏃舵椂闂村埌瑙﹀彂浜嬩欢
- * @example <uni-countdown :day="1" :hour="1" :minute="12" :second="40"></uni-countdown>
- */
- export default {
- name: 'UniCountdown',
- emits: ['timeup'],
- props: {
- showDay: {
- type: Boolean,
- default: true
- },
- showColon: {
- type: Boolean,
- default: true
- },
- start: {
- type: Boolean,
- default: true
- },
- backgroundColor: {
- type: String,
- default: ''
- },
- color: {
- type: String,
- default: '#333'
- },
- fontSize: {
- type: Number,
- default: 14
- },
- splitorColor: {
- type: String,
- default: '#333'
- },
- day: {
- type: Number,
- default: 0
- },
- hour: {
- type: Number,
- default: 0
- },
- minute: {
- type: Number,
- default: 0
- },
- second: {
- type: Number,
- default: 0
- },
- timestamp: {
- type: Number,
- default: 0
- }
- },
- data() {
- return {
- timer: null,
- syncFlag: false,
- d: '00',
- h: '00',
- i: '00',
- s: '00',
- leftTime: 0,
- seconds: 0
- }
- },
- computed: {
- dayText() {
- return t("uni-countdown.day")
- },
- hourText(val) {
- return t("uni-countdown.h")
- },
- minuteText(val) {
- return t("uni-countdown.m")
- },
- secondText(val) {
- return t("uni-countdown.s")
- },
- timeStyle() {
- const {
- color,
- backgroundColor,
- fontSize
- } = this
- return {
- color,
- backgroundColor,
- fontSize: `${fontSize}px`,
- width: `${fontSize * 22 / 14}px`, // 鎸夊瓧浣撳ぇ灏忎负 14px 鏃剁殑姣斾緥缂╂斁
- lineHeight: `${fontSize * 20 / 14}px`,
- borderRadius: `${fontSize * 3 / 14}px`,
- }
- },
- splitorStyle() {
- const { splitorColor, fontSize, backgroundColor } = this
- return {
- color: splitorColor,
- fontSize: `${fontSize * 12 / 14}px`,
- margin: backgroundColor ? `${fontSize * 4 / 14}px` : ''
- }
- }
- },
- watch: {
- day(val) {
- this.changeFlag()
- },
- hour(val) {
- this.changeFlag()
- },
- minute(val) {
- this.changeFlag()
- },
- second(val) {
- this.changeFlag()
- },
- start: {
- immediate: true,
- handler(newVal, oldVal) {
- if (newVal) {
- this.startData();
- } else {
- if (!oldVal) return
- clearInterval(this.timer)
- }
- }
-
- }
- },
- created: function(e) {
- this.seconds = this.toSeconds(this.timestamp, this.day, this.hour, this.minute, this.second)
- this.countDown()
- },
- // #ifndef VUE3
- destroyed() {
- clearInterval(this.timer)
- },
- // #endif
- // #ifdef VUE3
- unmounted() {
- clearInterval(this.timer)
- },
- // #endif
- methods: {
- toSeconds(timestamp, day, hours, minutes, seconds) {
- if (timestamp) {
- return timestamp - parseInt(new Date().getTime() / 1000, 10)
- }
- return day * 60 * 60 * 24 + hours * 60 * 60 + minutes * 60 + seconds
- },
- timeUp() {
- clearInterval(this.timer)
- this.$emit('timeup')
- },
- countDown() {
- let seconds = this.seconds
- let [day, hour, minute, second] = [0, 0, 0, 0]
- if (seconds > 0) {
- day = Math.floor(seconds / (60 * 60 * 24))
- hour = Math.floor(seconds / (60 * 60)) - (day * 24)
- minute = Math.floor(seconds / 60) - (day * 24 * 60) - (hour * 60)
- second = Math.floor(seconds) - (day * 24 * 60 * 60) - (hour * 60 * 60) - (minute * 60)
- } else {
- this.timeUp()
- }
- if (day < 10) {
- day = '0' + day
- }
- if (hour < 10) {
- hour = '0' + hour
- }
- if (minute < 10) {
- minute = '0' + minute
- }
- if (second < 10) {
- second = '0' + second
- }
- this.d = day
- this.h = hour
- this.i = minute
- this.s = second
- },
- startData() {
- this.seconds = this.toSeconds(this.timestamp, this.day, this.hour, this.minute, this.second)
- if (this.seconds <= 0) {
- this.seconds = this.toSeconds(0, 0, 0, 0, 0)
- this.countDown()
- return
- }
- clearInterval(this.timer)
- this.countDown()
- this.timer = setInterval(() => {
- this.seconds--
- if (this.seconds < 0) {
- this.timeUp()
- return
- }
- this.countDown()
- }, 1000)
- },
- update(){
- this.startData();
- },
- changeFlag() {
- if (!this.syncFlag) {
- this.seconds = this.toSeconds(this.timestamp, this.day, this.hour, this.minute, this.second)
- this.startData();
- this.syncFlag = true;
- }
- }
- }
- }
-</script>
-<style lang="scss" scoped>
- $font-size: 14px;
-
- .uni-countdown {
- display: flex;
- flex-direction: row;
- justify-content: flex-start;
- align-items: center;
-
- &__splitor {
- margin: 0 2px;
- font-size: $font-size;
- color: #333;
- }
-
- &__number {
- border-radius: 3px;
- text-align: center;
- font-size: $font-size;
- }
- }
-</style>
diff --git a/uni_modules/uni-countdown/package.json b/uni_modules/uni-countdown/package.json
deleted file mode 100644
index 70e99ee..0000000
--- a/uni_modules/uni-countdown/package.json
+++ /dev/null
@@ -1,86 +0,0 @@
-{
- "id": "uni-countdown",
- "displayName": "uni-countdown 鍊掕鏃�",
- "version": "1.2.2",
- "description": "CountDown 鍊掕鏃剁粍浠�",
- "keywords": [
- "uni-ui",
- "uniui",
- "countdown",
- "鍊掕鏃�"
-],
- "repository": "https://github.com/dcloudio/uni-ui",
- "engines": {
- "HBuilderX": ""
- },
- "directories": {
- "example": "../../temps/example_temps"
- },
- "dcloudext": {
- "category": [
- "鍓嶇缁勪欢",
- "閫氱敤缁勪欢"
- ],
- "sale": {
- "regular": {
- "price": "0.00"
- },
- "sourcecode": {
- "price": "0.00"
- }
- },
- "contact": {
- "qq": ""
- },
- "declaration": {
- "ads": "鏃�",
- "data": "鏃�",
- "permissions": "鏃�"
- },
- "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui"
- },
- "uni_modules": {
- "dependencies": ["uni-scss"],
- "encrypt": [],
- "platforms": {
- "cloud": {
- "tcb": "y",
- "aliyun": "y"
- },
- "client": {
- "App": {
- "app-vue": "y",
- "app-nvue": "y"
- },
- "H5-mobile": {
- "Safari": "y",
- "Android Browser": "y",
- "寰俊娴忚鍣�(Android)": "y",
- "QQ娴忚鍣�(Android)": "y"
- },
- "H5-pc": {
- "Chrome": "y",
- "IE": "y",
- "Edge": "y",
- "Firefox": "y",
- "Safari": "y"
- },
- "灏忕▼搴�": {
- "寰俊": "y",
- "闃块噷": "y",
- "鐧惧害": "y",
- "瀛楄妭璺冲姩": "y",
- "QQ": "y"
- },
- "蹇簲鐢�": {
- "鍗庝负": "u",
- "鑱旂洘": "u"
- },
- "Vue": {
- "vue2": "y",
- "vue3": "y"
- }
- }
- }
- }
-}
\ No newline at end of file
diff --git a/uni_modules/uni-countdown/readme.md b/uni_modules/uni-countdown/readme.md
deleted file mode 100644
index 4bcb1aa..0000000
--- a/uni_modules/uni-countdown/readme.md
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-## CountDown 鍊掕鏃�
-> **缁勪欢鍚嶏細uni-countdown**
-> 浠g爜鍧楋細 `uCountDown`
-
-鍊掕鏃剁粍浠躲��
-
-### [鏌ョ湅鏂囨。](https://uniapp.dcloud.io/component/uniui/uni-countdown)
-#### 濡備娇鐢ㄨ繃绋嬩腑鏈変换浣曢棶棰橈紝鎴栬�呮偍瀵箄ni-ui鏈変竴浜涘ソ鐨勫缓璁紝娆㈣繋鍔犲叆 uni-ui 浜ゆ祦缇わ細871950839
\ No newline at end of file
diff --git a/uni_modules/uni-data-checkbox/changelog.md b/uni_modules/uni-data-checkbox/changelog.md
deleted file mode 100644
index 179130a..0000000
--- a/uni_modules/uni-data-checkbox/changelog.md
+++ /dev/null
@@ -1,39 +0,0 @@
-## 1.0.0锛�2021-11-19锛�
-- 浼樺寲 缁勪欢UI锛屽苟鎻愪緵璁捐璧勬簮锛岃瑙�:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource)
-- 鏂囨。杩佺Щ锛岃瑙�:[https://uniapp.dcloud.io/component/uniui/uni-data-checkbox](https://uniapp.dcloud.io/component/uniui/uni-data-checkbox)
-## 0.2.5锛�2021-08-23锛�
-- 淇 鍦╱ni-forms涓� modelValue 涓笉瀛樺湪褰撳墠瀛楁锛屽綋鍓嶅瓧娈靛繀濉啓涔熶笉鍙備笌鏍¢獙鐨勯棶棰�
-## 0.2.4锛�2021-08-17锛�
-- 淇 鍗曢�� list 妯″紡涓� 锛宨con 涓� left 鏃讹紝閫変腑鍥炬爣涓嶆樉绀虹殑闂
-## 0.2.3锛�2021-08-11锛�
-- 淇 鍦� uni-forms 涓噸缃〃鍗曪紝閿欒淇℃伅鏃犳硶娓呴櫎鐨勯棶棰�
-## 0.2.2锛�2021-07-30锛�
-- 浼樺寲 鍦╱ni-forms缁勪欢锛屼笌label涓嶅榻愮殑闂
-## 0.2.1锛�2021-07-27锛�
-- 淇 鍗曢�夐粯璁ゅ�间负0涓嶈兘閫変腑鐨凚ug
-## 0.2.0锛�2021-07-13锛�
-- 缁勪欢鍏煎 vue3锛屽浣曞垱寤簐ue3椤圭洰锛岃瑙� [uni-app 椤圭洰鏀寔 vue3 浠嬬粛](https://ask.dcloud.net.cn/article/37834)
-## 0.1.11锛�2021-07-06锛�
-- 浼樺寲 鍒犻櫎鏃犵敤鏃ュ織
-## 0.1.10锛�2021-07-05锛�
-- 淇 鐢� 0.1.9 寮曡捣鐨勯潪 nvue 绔浘鏍囦笉鏄剧ず鐨勯棶棰�
-## 0.1.9锛�2021-07-05锛�
-- 淇 nvue 榛戞鏍峰紡闂
-## 0.1.8锛�2021-06-28锛�
-- 淇 selectedTextColor 灞炴�т笉鐢熸晥鐨凚ug
-## 0.1.7锛�2021-06-02锛�
-- 鏂板 map 灞炴�э紝鍙互鏂逛究鏄犲皠text/value灞炴��
-## 0.1.6锛�2021-05-26锛�
-- 淇 涓嶅叧鑱旀湇鍔$┖闂寸殑鎯呭喌涓嬬粍浠舵姤閿欑殑Bug
-## 0.1.5锛�2021-05-12锛�
-- 鏂板 缁勪欢绀轰緥鍦板潃
-## 0.1.4锛�2021-04-09锛�
-- 淇 nvue 涓嬫棤娉曢�変腑鐨勯棶棰�
-## 0.1.3锛�2021-03-22锛�
-- 鏂板 disabled灞炴��
-## 0.1.2锛�2021-02-24锛�
-- 浼樺寲 榛樿棰滆壊鏄剧ず
-## 0.1.1锛�2021-02-24锛�
-- 鏂板 鏀寔nvue
-## 0.1.0锛�2021-02-18锛�
-- 鈥滄殏鏃犳暟鎹�濇樉绀哄眳涓�
diff --git a/uni_modules/uni-data-checkbox/components/uni-data-checkbox/uni-data-checkbox.vue b/uni_modules/uni-data-checkbox/components/uni-data-checkbox/uni-data-checkbox.vue
deleted file mode 100644
index 63af3a3..0000000
--- a/uni_modules/uni-data-checkbox/components/uni-data-checkbox/uni-data-checkbox.vue
+++ /dev/null
@@ -1,817 +0,0 @@
-<template>
- <view class="uni-data-checklist" :style="{'margin-top':isTop+'px'}">
- <template v-if="!isLocal">
- <view class="uni-data-loading">
- <uni-load-more v-if="!mixinDatacomErrorMessage" status="loading" iconType="snow" :iconSize="18" :content-text="contentText"></uni-load-more>
- <text v-else>{{mixinDatacomErrorMessage}}</text>
- </view>
- </template>
- <template v-else>
- <checkbox-group v-if="multiple" class="checklist-group" :class="{'is-list':mode==='list' || wrap}" @change="chagne">
- <label class="checklist-box" :class="['is--'+mode,item.selected?'is-checked':'',(disabled || !!item.disabled)?'is-disable':'',index!==0&&mode==='list'?'is-list-border':'']"
- :style="item.styleBackgroud" v-for="(item,index) in dataList" :key="index">
- <checkbox class="hidden" hidden :disabled="disabled || !!item.disabled" :value="item[map.value]+''" :checked="item.selected" />
- <view v-if="(mode !=='tag' && mode !== 'list') || ( mode === 'list' && icon === 'left')" class="checkbox__inner" :style="item.styleIcon">
- <view class="checkbox__inner-icon"></view>
- </view>
- <view class="checklist-content" :class="{'list-content':mode === 'list' && icon ==='left'}">
- <text class="checklist-text" :style="item.styleIconText">{{item[map.text]}}</text>
- <view v-if="mode === 'list' && icon === 'right'" class="checkobx__list" :style="item.styleBackgroud"></view>
- </view>
- </label>
- </checkbox-group>
- <radio-group v-else class="checklist-group" :class="{'is-list':mode==='list','is-wrap':wrap}" @change="chagne">
- <!-- -->
- <label class="checklist-box" :class="['is--'+mode,item.selected?'is-checked':'',(disabled || !!item.disabled)?'is-disable':'',index!==0&&mode==='list'?'is-list-border':'']"
- :style="item.styleBackgroud" v-for="(item,index) in dataList" :key="index">
- <radio class="hidden" hidden :disabled="disabled || item.disabled" :value="item[map.value]+''" :checked="item.selected" />
- <view v-if="(mode !=='tag' && mode !== 'list') || ( mode === 'list' && icon === 'left')" class="radio__inner"
- :style="item.styleBackgroud">
- <view class="radio__inner-icon" :style="item.styleIcon"></view>
- </view>
- <view class="checklist-content" :class="{'list-content':mode === 'list' && icon ==='left'}">
- <text class="checklist-text" :style="item.styleIconText">{{item[map.text]}}</text>
- <view v-if="mode === 'list' && icon === 'right'" :style="item.styleRightIcon" class="checkobx__list"></view>
- </view>
- </label>
- </radio-group>
- </template>
- </view>
-</template>
-
-<script>
- /**
- * DataChecklist 鏁版嵁閫夋嫨鍣�
- * @description 閫氳繃鏁版嵁娓叉煋 checkbox 鍜� radio
- * @tutorial https://ext.dcloud.net.cn/plugin?id=xxx
- * @property {String} mode = [default| list | button | tag] 鏄剧ず妯″紡
- * @value default 榛樿妯帓妯″紡
- * @value list 鍒楄〃妯″紡
- * @value button 鎸夐挳妯″紡
- * @value tag 鏍囩妯″紡
- * @property {Boolean} multiple = [true|false] 鏄惁澶氶��
- * @property {Array|String|Number} value 榛樿鍊�
- * @property {Array} localdata 鏈湴鏁版嵁 锛屾牸寮� [{text:'',value:''}]
- * @property {Number|String} min 鏈�灏忛�夋嫨涓暟 锛宮ultiple涓簍rue鏃剁敓鏁�
- * @property {Number|String} max 鏈�澶ч�夋嫨涓暟 锛宮ultiple涓簍rue鏃剁敓鏁�
- * @property {Boolean} wrap 鏄惁鎹㈣鏄剧ず
- * @property {String} icon = [left|right] list 鍒楄〃妯″紡涓媔con鏄剧ず浣嶇疆
- * @property {Boolean} selectedColor 閫変腑棰滆壊
- * @property {Boolean} emptyText 娌℃湁鏁版嵁鏃舵樉绀虹殑鏂囧瓧 锛屾湰鍦版暟鎹棤鏁�
- * @property {Boolean} selectedTextColor 閫変腑鏂囨湰棰滆壊锛屽涓嶅~鍐欏垯鑷姩鏄剧ず
- * @property {Object} map 瀛楁鏄犲皠锛� 榛樿 map={text:'text',value:'value'}
- * @value left 宸︿晶鏄剧ず
- * @value right 鍙充晶鏄剧ず
- * @event {Function} change 閫変腑鍙戠敓鍙樺寲瑙﹀彂
- */
-
- export default {
- name: 'uniDataChecklist',
- mixins: [uniCloud.mixinDatacom || {}],
- emits:['input','update:modelValue','change'],
- props: {
- mode: {
- type: String,
- default: 'default'
- },
-
- multiple: {
- type: Boolean,
- default: false
- },
- value: {
- type: [Array, String, Number],
- default () {
- return ''
- }
- },
- // TODO vue3
- modelValue: {
- type: [Array, String, Number],
- default() {
- return '';
- }
- },
- localdata: {
- type: Array,
- default () {
- return []
- }
- },
- min: {
- type: [Number, String],
- default: ''
- },
- max: {
- type: [Number, String],
- default: ''
- },
- wrap: {
- type: Boolean,
- default: false
- },
- icon: {
- type: String,
- default: 'left'
- },
- selectedColor: {
- type: String,
- default: ''
- },
- selectedTextColor: {
- type: String,
- default: ''
- },
- emptyText:{
- type: String,
- default: '鏆傛棤鏁版嵁'
- },
- disabled:{
- type: Boolean,
- default: false
- },
- map:{
- type: Object,
- default(){
- return {
- text:'text',
- value:'value'
- }
- }
- }
- },
- watch: {
- localdata: {
- handler(newVal) {
- this.range = newVal
- this.dataList = this.getDataList(this.getSelectedValue(newVal))
- },
- deep: true
- },
- mixinDatacomResData(newVal) {
- this.range = newVal
- this.dataList = this.getDataList(this.getSelectedValue(newVal))
- },
- value(newVal) {
- this.dataList = this.getDataList(newVal)
- // fix by mehaotian is_reset 鍦� uni-forms 涓畾涔�
- if(!this.is_reset){
- this.is_reset = false
- this.formItem && this.formItem.setValue(newVal)
- }
- },
- modelValue(newVal) {
- this.dataList = this.getDataList(newVal);
- if(!this.is_reset){
- this.is_reset = false
- this.formItem && this.formItem.setValue(newVal)
- }
- }
- },
- data() {
- return {
- dataList: [],
- range: [],
- contentText: {
- contentdown: '鏌ョ湅鏇村',
- contentrefresh: '鍔犺浇涓�',
- contentnomore: '娌℃湁鏇村'
- },
- isLocal:true,
- styles: {
- selectedColor: '#2979ff',
- selectedTextColor: '#666',
- },
- isTop:0
- };
- },
- computed:{
- dataValue(){
- if(this.value === '')return this.modelValue
- if(this.modelValue === '') return this.value
- return this.value
- }
- },
- created() {
- this.form = this.getForm('uniForms')
- this.formItem = this.getForm('uniFormsItem')
- // this.formItem && this.formItem.setValue(this.value)
-
- if (this.formItem) {
- this.isTop = 6
- if (this.formItem.name) {
- // 濡傛灉瀛樺湪name娣诲姞榛樿鍊�,鍚﹀垯formData 涓笉瀛樺湪杩欎釜瀛楁涓嶆牎楠�
- if(!this.is_reset){
- this.is_reset = false
- this.formItem.setValue(this.dataValue)
- }
- this.rename = this.formItem.name
- this.form.inputChildrens.push(this)
- }
- }
-
- if (this.localdata && this.localdata.length !== 0) {
- this.isLocal = true
- this.range = this.localdata
- this.dataList = this.getDataList(this.getSelectedValue(this.range))
- } else {
- if (this.collection) {
- this.isLocal = false
- this.loadData()
- }
- }
- },
- methods: {
- loadData() {
- this.mixinDatacomGet().then(res=>{
- this.mixinDatacomResData = res.result.data
- if(this.mixinDatacomResData.length === 0){
- this.isLocal = false
- this.mixinDatacomErrorMessage = this.emptyText
- }else{
- this.isLocal = true
- }
- }).catch(err=>{
- this.mixinDatacomErrorMessage = err.message
- })
- },
- /**
- * 鑾峰彇鐖跺厓绱犲疄渚�
- */
- getForm(name = 'uniForms') {
- let parent = this.$parent;
- let parentName = parent.$options.name;
- while (parentName !== name) {
- parent = parent.$parent;
- if (!parent) return false
- parentName = parent.$options.name;
- }
- return parent;
- },
- chagne(e) {
- const values = e.detail.value
-
- let detail = {
- value: [],
- data: []
- }
-
- if (this.multiple) {
- this.range.forEach(item => {
-
- if (values.includes(item[this.map.value] + '')) {
- detail.value.push(item[this.map.value])
- detail.data.push(item)
- }
- })
- } else {
- const range = this.range.find(item => (item[this.map.value] + '') === values)
- if (range) {
- detail = {
- value: range[this.map.value],
- data: range
- }
- }
- }
- this.formItem && this.formItem.setValue(detail.value)
- // TODO 鍏煎 vue2
- this.$emit('input', detail.value);
- // // TOTO 鍏煎 vue3
- this.$emit('update:modelValue', detail.value);
- this.$emit('change', {
- detail
- })
- if (this.multiple) {
- // 濡傛灉 v-model 娌℃湁缁戝畾 锛屽垯璧板唴閮ㄩ�昏緫
- // if (this.value.length === 0) {
- this.dataList = this.getDataList(detail.value, true)
- // }
- } else {
- this.dataList = this.getDataList(detail.value)
- }
- },
-
- /**
- * 鑾峰彇娓叉煋鐨勬柊鏁扮粍
- * @param {Object} value 閫変腑鍐呭
- */
- getDataList(value) {
- // 瑙i櫎寮曠敤鍏崇郴锛岀牬鍧忓師寮曠敤鍏崇郴锛岄伩鍏嶆薄鏌撴簮鏁版嵁
- let dataList = JSON.parse(JSON.stringify(this.range))
- let list = []
- if (this.multiple) {
- if (!Array.isArray(value)) {
- value = []
- }
- }
- dataList.forEach((item, index) => {
- item.disabled = item.disable || item.disabled || false
- if (this.multiple) {
- if (value.length > 0) {
- let have = value.find(val => val === item[this.map.value])
- item.selected = have !== undefined
- } else {
- item.selected = false
- }
- } else {
- item.selected = value === item[this.map.value]
- }
-
- list.push(item)
- })
- return this.setRange(list)
- },
- /**
- * 澶勭悊鏈�澶ф渶灏忓��
- * @param {Object} list
- */
- setRange(list) {
- let selectList = list.filter(item => item.selected)
- let min = Number(this.min) || 0
- let max = Number(this.max) || ''
- list.forEach((item, index) => {
- if (this.multiple) {
- if (selectList.length <= min) {
- let have = selectList.find(val => val[this.map.value] === item[this.map.value])
- if (have !== undefined) {
- item.disabled = true
- }
- }
-
- if (selectList.length >= max && max !== '') {
- let have = selectList.find(val => val[this.map.value] === item[this.map.value])
- if (have === undefined) {
- item.disabled = true
- }
- }
- }
- this.setStyles(item, index)
- list[index] = item
- })
- return list
- },
- /**
- * 璁剧疆 class
- * @param {Object} item
- * @param {Object} index
- */
- setStyles(item, index) {
- // 璁剧疆鑷畾涔夋牱寮�
- item.styleBackgroud = this.setStyleBackgroud(item)
- item.styleIcon = this.setStyleIcon(item)
- item.styleIconText = this.setStyleIconText(item)
- item.styleRightIcon = this.setStyleRightIcon(item)
- },
-
- /**
- * 鑾峰彇閫変腑鍊�
- * @param {Object} range
- */
- getSelectedValue(range) {
- if (!this.multiple) return this.dataValue
- let selectedArr = []
- range.forEach((item) => {
- if (item.selected) {
- selectedArr.push(item[this.map.value])
- }
- })
- return this.dataValue.length > 0 ? this.dataValue : selectedArr
- },
-
- /**
- * 璁剧疆鑳屾櫙鏍峰紡
- */
- setStyleBackgroud(item) {
- let styles = {}
- let selectedColor = this.selectedColor?this.selectedColor:'#2979ff'
- if (this.mode !== 'list') {
- styles['border-color'] = item.selected?selectedColor:'#DCDFE6'
- }
- if (this.mode === 'tag') {
- styles['background-color'] = item.selected? selectedColor:'#f5f5f5'
- }
- let classles = ''
- for (let i in styles) {
- classles += `${i}:${styles[i]};`
- }
- return classles
- },
- setStyleIcon(item) {
- let styles = {}
- let classles = ''
- let selectedColor = this.selectedColor?this.selectedColor:'#2979ff'
- styles['background-color'] = item.selected?selectedColor:'#fff'
- styles['border-color'] = item.selected?selectedColor:'#DCDFE6'
-
- if(!item.selected && item.disabled){
- styles['background-color'] = '#F2F6FC'
- styles['border-color'] = item.selected?selectedColor:'#DCDFE6'
- }
-
- for (let i in styles) {
- classles += `${i}:${styles[i]};`
- }
- return classles
- },
- setStyleIconText(item) {
- let styles = {}
- let classles = ''
- let selectedColor = this.selectedColor?this.selectedColor:'#2979ff'
- if (this.mode === 'tag') {
- styles.color = item.selected?(this.selectedTextColor?this.selectedTextColor:'#fff'):'#666'
- } else {
- styles.color = item.selected?(this.selectedTextColor?this.selectedTextColor:selectedColor):'#666'
- }
- if(!item.selected && item.disabled){
- styles.color = '#999'
- }
-
- for (let i in styles) {
- classles += `${i}:${styles[i]};`
- }
- return classles
- },
- setStyleRightIcon(item) {
- let styles = {}
- let classles = ''
- if (this.mode === 'list') {
- styles['border-color'] = item.selected?this.styles.selectedColor:'#DCDFE6'
- }
- for (let i in styles) {
- classles += `${i}:${styles[i]};`
- }
-
- return classles
- }
- }
- }
-</script>
-
-<style lang="scss">
- $checked-color: #2979ff;
- $border-color: #DCDFE6;
- $disable:0.4;
-
- @mixin flex {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- }
-
- .uni-data-loading {
- @include flex;
- flex-direction: row;
- justify-content: center;
- align-items: center;
- height: 36px;
- padding-left: 10px;
- color: #999;
- }
-
- .uni-data-checklist {
- position: relative;
- z-index: 0;
- flex: 1;
- // 澶氶�夋牱寮�
- .checklist-group {
- @include flex;
- flex-direction: row;
- flex-wrap: wrap;
-
- &.is-list {
- flex-direction: column;
- }
-
- .checklist-box {
- @include flex;
- flex-direction: row;
- align-items: center;
- position: relative;
- margin: 5px 0;
- margin-right: 25px;
-
- .hidden {
- position: absolute;
- opacity: 0;
- }
-
- // 鏂囧瓧鏍峰紡
- .checklist-content {
- @include flex;
- flex: 1;
- flex-direction: row;
- align-items: center;
- justify-content: space-between;
- .checklist-text {
- font-size: 14px;
- color: #666;
- margin-left: 5px;
- line-height: 14px;
- }
-
- .checkobx__list {
- border-right-width: 1px;
- border-right-color: #007aff;
- border-right-style: solid;
- border-bottom-width:1px;
- border-bottom-color: #007aff;
- border-bottom-style: solid;
- height: 12px;
- width: 6px;
- left: -5px;
- transform-origin: center;
- transform: rotate(45deg);
- opacity: 0;
- }
- }
-
- // 澶氶�夋牱寮�
- .checkbox__inner {
- /* #ifndef APP-NVUE */
- flex-shrink: 0;
- box-sizing: border-box;
- /* #endif */
- position: relative;
- width: 16px;
- height: 16px;
- border: 1px solid $border-color;
- border-radius: 4px;
- background-color: #fff;
- z-index: 1;
- .checkbox__inner-icon {
- position: absolute;
- /* #ifdef APP-NVUE */
- top: 2px;
- /* #endif */
- /* #ifndef APP-NVUE */
- top: 1px;
- /* #endif */
- left: 5px;
- height: 8px;
- width: 4px;
- border-right-width: 1px;
- border-right-color: #fff;
- border-right-style: solid;
- border-bottom-width:1px ;
- border-bottom-color: #fff;
- border-bottom-style: solid;
- opacity: 0;
- transform-origin: center;
- transform: rotate(40deg);
- }
- }
-
- // 鍗曢�夋牱寮�
- .radio__inner {
- @include flex;
- /* #ifndef APP-NVUE */
- flex-shrink: 0;
- box-sizing: border-box;
- /* #endif */
- justify-content: center;
- align-items: center;
- position: relative;
- width: 16px;
- height: 16px;
- border: 1px solid $border-color;
- border-radius: 16px;
- background-color: #fff;
- z-index: 1;
-
- .radio__inner-icon {
- width: 8px;
- height: 8px;
- border-radius: 10px;
- opacity: 0;
- }
- }
-
- // 榛樿鏍峰紡
- &.is--default {
-
- // 绂佺敤
- &.is-disable {
- /* #ifdef H5 */
- cursor: not-allowed;
- /* #endif */
- .checkbox__inner {
- background-color: #F2F6FC;
- border-color: $border-color;
- /* #ifdef H5 */
- cursor: not-allowed;
- /* #endif */
- }
-
- .radio__inner {
- background-color: #F2F6FC;
- border-color: $border-color;
- }
- .checklist-text {
- color: #999;
- }
- }
-
- // 閫変腑
- &.is-checked {
- .checkbox__inner {
- border-color: $checked-color;
- background-color: $checked-color;
-
- .checkbox__inner-icon {
- opacity: 1;
- transform: rotate(45deg);
- }
- }
- .radio__inner {
- border-color: $checked-color;
- .radio__inner-icon {
- opacity: 1;
- background-color: $checked-color;
- }
- }
- .checklist-text {
- color: $checked-color;
- }
- // 閫変腑绂佺敤
- &.is-disable {
- .checkbox__inner {
- opacity: $disable;
- }
-
- .checklist-text {
- opacity: $disable;
- }
- .radio__inner {
- opacity: $disable;
- }
- }
- }
- }
-
- // 鎸夐挳鏍峰紡
- &.is--button {
- margin-right: 10px;
- padding: 5px 10px;
- border: 1px $border-color solid;
- border-radius: 3px;
- transition: border-color 0.2s;
-
- // 绂佺敤
- &.is-disable {
- /* #ifdef H5 */
- cursor: not-allowed;
- /* #endif */
- border: 1px #eee solid;
- opacity: $disable;
- .checkbox__inner {
- background-color: #F2F6FC;
- border-color: $border-color;
- /* #ifdef H5 */
- cursor: not-allowed;
- /* #endif */
- }
- .radio__inner {
- background-color: #F2F6FC;
- border-color: $border-color;
- /* #ifdef H5 */
- cursor: not-allowed;
- /* #endif */
- }
- .checklist-text {
- color: #999;
- }
- }
-
- &.is-checked {
- border-color: $checked-color;
- .checkbox__inner {
- border-color: $checked-color;
- background-color: $checked-color;
- .checkbox__inner-icon {
- opacity: 1;
- transform: rotate(45deg);
- }
- }
-
- .radio__inner {
- border-color: $checked-color;
-
- .radio__inner-icon {
- opacity: 1;
- background-color: $checked-color;
- }
- }
-
- .checklist-text {
- color: $checked-color;
- }
-
- // 閫変腑绂佺敤
- &.is-disable {
- opacity: $disable;
- }
- }
- }
-
- // 鏍囩鏍峰紡
- &.is--tag {
- margin-right: 10px;
- padding: 5px 10px;
- border: 1px $border-color solid;
- border-radius: 3px;
- background-color: #f5f5f5;
-
- .checklist-text {
- margin: 0;
- color: #666;
- }
-
- // 绂佺敤
- &.is-disable {
- /* #ifdef H5 */
- cursor: not-allowed;
- /* #endif */
- opacity: $disable;
- }
-
- &.is-checked {
- background-color: $checked-color;
- border-color: $checked-color;
-
- .checklist-text {
- color: #fff;
- }
- }
- }
- // 鍒楄〃鏍峰紡
- &.is--list {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- padding: 10px 15px;
- padding-left: 0;
- margin: 0;
-
- &.is-list-border {
- border-top: 1px #eee solid;
- }
-
- // 绂佺敤
- &.is-disable {
- /* #ifdef H5 */
- cursor: not-allowed;
- /* #endif */
- .checkbox__inner {
- background-color: #F2F6FC;
- border-color: $border-color;
- /* #ifdef H5 */
- cursor: not-allowed;
- /* #endif */
- }
- .checklist-text {
- color: #999;
- }
- }
-
- &.is-checked {
- .checkbox__inner {
- border-color: $checked-color;
- background-color: $checked-color;
-
- .checkbox__inner-icon {
- opacity: 1;
- transform: rotate(45deg);
- }
- }
- .radio__inner {
- .radio__inner-icon {
- opacity: 1;
- }
- }
- .checklist-text {
- color: $checked-color;
- }
-
- .checklist-content {
- .checkobx__list {
- opacity: 1;
- border-color: $checked-color;
- }
- }
-
- // 閫変腑绂佺敤
- &.is-disable {
- .checkbox__inner {
- opacity: $disable;
- }
-
- .checklist-text {
- opacity: $disable;
- }
- }
- }
- }
- }
- }
- }
-</style>
diff --git a/uni_modules/uni-data-checkbox/package.json b/uni_modules/uni-data-checkbox/package.json
deleted file mode 100644
index 515293d..0000000
--- a/uni_modules/uni-data-checkbox/package.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "id": "uni-data-checkbox",
- "displayName": "uni-data-checkbox 鏁版嵁閫夋嫨鍣�",
- "version": "1.0.0",
- "description": "閫氳繃鏁版嵁椹卞姩鐨勫崟閫夋鍜屽閫夋",
- "keywords": [
- "uni-ui",
- "checkbox",
- "鍗曢��",
- "澶氶��",
- "鍗曢�夊閫�"
-],
- "repository": "https://github.com/dcloudio/uni-ui",
- "engines": {
- "HBuilderX": "^3.1.1"
- },
- "directories": {
- "example": "../../temps/example_temps"
- },
- "dcloudext": {
- "category": [
- "鍓嶇缁勪欢",
- "閫氱敤缁勪欢"
- ],
- "sale": {
- "regular": {
- "price": "0.00"
- },
- "sourcecode": {
- "price": "0.00"
- }
- },
- "contact": {
- "qq": ""
- },
- "declaration": {
- "ads": "鏃�",
- "data": "鏃�",
- "permissions": "鏃�"
- },
- "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui"
- },
- "uni_modules": {
- "dependencies": ["uni-load-more","uni-scss"],
- "encrypt": [],
- "platforms": {
- "cloud": {
- "tcb": "y",
- "aliyun": "y"
- },
- "client": {
- "App": {
- "app-vue": "y",
- "app-nvue": "y"
- },
- "H5-mobile": {
- "Safari": "y",
- "Android Browser": "y",
- "寰俊娴忚鍣�(Android)": "y",
- "QQ娴忚鍣�(Android)": "y"
- },
- "H5-pc": {
- "Chrome": "y",
- "IE": "y",
- "Edge": "y",
- "Firefox": "y",
- "Safari": "y"
- },
- "灏忕▼搴�": {
- "寰俊": "y",
- "闃块噷": "y",
- "鐧惧害": "y",
- "瀛楄妭璺冲姩": "y",
- "QQ": "y"
- },
- "蹇簲鐢�": {
- "鍗庝负": "u",
- "鑱旂洘": "u"
- },
- "Vue": {
- "vue2": "y",
- "vue3": "y"
- }
- }
- }
- }
-}
diff --git a/uni_modules/uni-data-checkbox/readme.md b/uni_modules/uni-data-checkbox/readme.md
deleted file mode 100644
index 6eb253d..0000000
--- a/uni_modules/uni-data-checkbox/readme.md
+++ /dev/null
@@ -1,18 +0,0 @@
-
-
-## DataCheckbox 鏁版嵁椹卞姩鐨勫崟閫夊閫夋
-> **缁勪欢鍚嶏細uni-data-checkbox**
-> 浠g爜鍧楋細 `uDataCheckbox`
-
-
-鏈粍浠舵槸鍩轰簬uni-app鍩虹缁勪欢checkbox鐨勫皝瑁呫�傛湰缁勪欢瑕佽В鍐抽棶棰樺寘鎷細
-
-1. 鏁版嵁缁戝畾鍨嬬粍浠讹細缁欐湰缁勪欢缁戝畾涓�涓猟ata锛屼細鑷姩娓叉煋涓�缁勫�欓�夊唴瀹广�傚啀浠ュ線锛屽紑鍙戣�呴渶瑕佺紪鍐欎笉灏戜唬鐮佸疄鐜扮被浼煎姛鑳�
-2. 鑷姩鐨勮〃鍗曟牎楠岋細缁勪欢缁戝畾浜哾ata锛屼笖绗﹀悎[uni-forms](https://ext.dcloud.net.cn/plugin?id=2773)缁勪欢鐨勮〃鍗曟牎楠岃鑼冿紝鎼厤浣跨敤浼氳嚜鍔ㄥ疄鐜拌〃鍗曟牎楠�
-3. 鏈粍浠跺悎骞朵簡鍗曢�夊閫�
-4. 鏈粍浠舵湁鑻ュ共椋庢牸閫夋嫨锛屽鏅�氱殑鍗曢�夊閫夋銆佸苟鍒梑utton椋庢牸銆乼ag椋庢牸銆傚紑鍙戣�呭彲浠ュ揩閫熼�夋嫨闇�瑕佺殑椋庢牸銆備絾浣滀负涓�涓皝瑁呯粍浠讹紝鏍峰紡浠g爜铏界劧涓嶇敤鑷繁鍐欎簡锛屽嵈浼氱壓鐗蹭竴瀹氱殑鏍峰紡鑷畾涔夋��
-
-鍦╱niCloud寮�鍙戜腑锛宍DB Schema`涓厤缃簡enum鏋氫妇绛夌被鍨嬪悗锛屽湪web鎺у埗鍙扮殑[鑷姩鐢熸垚琛ㄥ崟](https://uniapp.dcloud.io/uniCloud/schema?id=autocode)鍔熻兘涓紝浼氳嚜鍔ㄧ敓鎴恅`uni-data-checkbox``缁勪欢骞剁粦瀹氬ソdata
-
-### [鏌ョ湅鏂囨。](https://uniapp.dcloud.io/component/uniui/uni-data-checkbox)
-#### 濡備娇鐢ㄨ繃绋嬩腑鏈変换浣曢棶棰橈紝鎴栬�呮偍瀵箄ni-ui鏈変竴浜涘ソ鐨勫缓璁紝娆㈣繋鍔犲叆 uni-ui 浜ゆ祦缇わ細871950839
\ No newline at end of file
diff --git a/uni_modules/uni-data-picker/changelog.md b/uni_modules/uni-data-picker/changelog.md
deleted file mode 100644
index 486eedc..0000000
--- a/uni_modules/uni-data-picker/changelog.md
+++ /dev/null
@@ -1,56 +0,0 @@
-## 1.0.3锛�2022-02-25锛�
-- 淇 nvue 涓嶆敮鎸佺殑 v-show 鐨� bug
-## 1.0.2锛�2022-02-25锛�
-- 淇 鏉′欢缂栬瘧 nvue 涓嶆敮鎸佺殑 css 鏍峰紡
-## 1.0.1锛�2021-11-23锛�
-- 淇 鐢变笂涓増鏈紩鍙戠殑map銆乿-model绛夊睘鎬т笉鐢熸晥鐨刡ug
-## 1.0.0锛�2021-11-19锛�
-- 浼樺寲 缁勪欢 UI锛屽苟鎻愪緵璁捐璧勬簮锛岃瑙�:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource)
-- 鏂囨。杩佺Щ锛岃瑙�:[https://uniapp.dcloud.io/component/uniui/uni-data-picker](https://uniapp.dcloud.io/component/uniui/uni-data-picker)
-## 0.4.9锛�2021-10-28锛�
-- 淇 VUE2 v-model 姒傜巼鏃犳晥鐨� bug
-## 0.4.8锛�2021-10-27锛�
-- 淇 v-model 姒傜巼鏃犳晥鐨� bug
-## 0.4.7锛�2021-10-25锛�
-- 鏂板 灞炴�� spaceInfo 鏈嶅姟绌洪棿閰嶇疆 HBuilderX 3.2.11+
-- 淇 鏍戝瀷 uniCloud 鏁版嵁绫诲瀷涓� int 鏃舵姤閿欑殑 bug
-## 0.4.6锛�2021-10-19锛�
-- 淇 闈� VUE3 v-model 涓� 0 鏃舵棤娉曢�変腑鐨� bug
-## 0.4.5锛�2021-09-26锛�
-- 鏂板 娓呴櫎宸查�夐」鐨勫姛鑳斤紙閫氳繃 clearIcon 灞炴�ч厤缃槸鍚︽樉绀烘寜閽級锛屽悓鏃舵彁渚� clear 鏂规硶浠ヤ緵璋冪敤锛屼簩鑰呯瓑鏁�
-- 淇 readonly 涓� true 鏃舵姤閿欑殑 bug
-## 0.4.4锛�2021-09-26锛�
-- 淇 涓婁竴鐗堟湰閫犳垚鐨� map 灞炴�уけ鏁堢殑 bug
-- 鏂板 ellipsis 灞炴�э紝鏀寔閰嶇疆 tab 閫夐」闀垮害杩囬暱鏃舵槸鍚﹁嚜鍔ㄧ渷鐣�
-## 0.4.3锛�2021-09-24锛�
-- 淇 鏌愪簺鎯呭喌涓嬬骇鑱旀湭瑙﹀彂鐨� bug
-## 0.4.2锛�2021-09-23锛�
-- 鏂板 鎻愪緵 show 鍜� hide 鏂规硶锛屽紑鍙戣�呭彲浠ラ�氳繃 ref 璋冪敤
-- 鏂板 閫夐」鍐呭杩囬暱鑷姩娣诲姞鐪佺暐鍙�
-## 0.4.1锛�2021-09-15锛�
-- 鏂板 map 灞炴�� 瀛楁鏄犲皠锛屽皢 text/value 鏄犲皠鍒版暟鎹腑鐨勫叾浠栧瓧娈�
-## 0.4.0锛�2021-07-13锛�
-- 缁勪欢鍏煎 vue3锛屽浣曞垱寤� vue3 椤圭洰锛岃瑙� [uni-app 椤圭洰鏀寔 vue3 浠嬬粛](https://ask.dcloud.net.cn/article/37834)
-## 0.3.5锛�2021-06-04锛�
-- 淇 鏃犳硶鍔犺浇浜戠鏁版嵁鐨勯棶棰�
-## 0.3.4锛�2021-05-28锛�
-- 淇 v-model 鏃犳晥闂
-- 淇 loaddata 涓虹┖鏁版嵁缁勬椂鍔犺浇鏃堕棿杩囬暱闂
-- 淇 涓婁釜鐗堟湰寮曞嚭鐨勬湰鍦版暟鎹棤娉曢�夋嫨甯︽湁 children 鐨� 2 绾ц妭鐐�
-## 0.3.3锛�2021-05-12锛�
-- 鏂板 缁勪欢绀轰緥鍦板潃
-## 0.3.2锛�2021-04-22锛�
-- 淇 闈炴爲褰㈡暟鎹湁 where 灞炴�ф煡璇㈡姤閿欑殑闂
-## 0.3.1锛�2021-04-15锛�
-- 淇 鏈湴鏁版嵁姒傜巼鏃犳硶鍥炴樉鏃堕棶棰�
-## 0.3.0锛�2021-04-07锛�
-- 鏂板 鏀寔浜戠闈炴爲褰㈣〃缁撴瀯鏁版嵁
-- 淇 鏍硅妭鐐� parent_field 瀛楁绛変簬 null 鏃堕�夋嫨鐣岄潰閿欎贡闂
-## 0.2.0锛�2021-03-15锛�
-- 淇 nodeclick銆乸opupopened銆乸opupclosed 浜嬩欢鏃犳硶瑙﹀彂鐨勯棶棰�
-## 0.1.9锛�2021-03-09锛�
-- 淇 寰俊灏忕▼搴忔煇浜涙儏鍐典笅鏃犳硶閫夋嫨鐨勯棶棰�
-## 0.1.8锛�2021-02-05锛�
-- 浼樺寲 閮ㄥ垎鏍峰紡鍦� nvue 涓婄殑鍏煎琛ㄧ幇
-## 0.1.7锛�2021-02-05锛�
-- 璋冩暣涓� uni_modules 鐩綍瑙勮寖
diff --git a/uni_modules/uni-data-picker/components/uni-data-picker/keypress.js b/uni_modules/uni-data-picker/components/uni-data-picker/keypress.js
deleted file mode 100644
index 6ef26a2..0000000
--- a/uni_modules/uni-data-picker/components/uni-data-picker/keypress.js
+++ /dev/null
@@ -1,45 +0,0 @@
-// #ifdef H5
-export default {
- name: 'Keypress',
- props: {
- disable: {
- type: Boolean,
- default: false
- }
- },
- mounted () {
- const keyNames = {
- esc: ['Esc', 'Escape'],
- tab: 'Tab',
- enter: 'Enter',
- space: [' ', 'Spacebar'],
- up: ['Up', 'ArrowUp'],
- left: ['Left', 'ArrowLeft'],
- right: ['Right', 'ArrowRight'],
- down: ['Down', 'ArrowDown'],
- delete: ['Backspace', 'Delete', 'Del']
- }
- const listener = ($event) => {
- if (this.disable) {
- return
- }
- const keyName = Object.keys(keyNames).find(key => {
- const keyName = $event.key
- const value = keyNames[key]
- return value === keyName || (Array.isArray(value) && value.includes(keyName))
- })
- if (keyName) {
- // 閬垮厤鍜屽叾浠栨寜閿簨浠跺啿绐�
- setTimeout(() => {
- this.$emit(keyName, {})
- }, 0)
- }
- }
- document.addEventListener('keyup', listener)
- this.$once('hook:beforeDestroy', () => {
- document.removeEventListener('keyup', listener)
- })
- },
- render: () => {}
-}
-// #endif
diff --git a/uni_modules/uni-data-picker/components/uni-data-picker/uni-data-picker.vue b/uni_modules/uni-data-picker/components/uni-data-picker/uni-data-picker.vue
deleted file mode 100644
index a76af2e..0000000
--- a/uni_modules/uni-data-picker/components/uni-data-picker/uni-data-picker.vue
+++ /dev/null
@@ -1,539 +0,0 @@
-<template>
- <view class="uni-data-tree">
- <view class="uni-data-tree-input" @click="handleInput">
- <slot :options="options" :data="inputSelected" :error="errorMessage">
- <view class="input-value" :class="{'input-value-border': border}">
- <text v-if="errorMessage" class="selected-area error-text">{{errorMessage}}</text>
- <view v-else-if="loading && !isOpened" class="selected-area">
- <uni-load-more class="load-more" :contentText="loadMore" status="loading"></uni-load-more>
- </view>
- <scroll-view v-else-if="inputSelected.length" class="selected-area" scroll-x="true">
- <view class="selected-list">
- <view class="selected-item" v-for="(item,index) in inputSelected" :key="index">
- <text>{{item.text}}</text><text v-if="index<inputSelected.length-1"
- class="input-split-line">{{split}}</text>
- </view>
- </view>
- </scroll-view>
- <text v-else class="selected-area placeholder">{{placeholder}}</text>
- <view v-if="clearIcon && !readonly && inputSelected.length" class="icon-clear"
- @click.stop="clear">
- <uni-icons type="clear" color="#e1e1e1" size="14"></uni-icons>
- </view>
- <view class="arrow-area" v-if="(!clearIcon || !inputSelected.length) && !readonly ">
- <view class="input-arrow"></view>
- </view>
- </view>
- </slot>
- </view>
- <view class="uni-data-tree-cover" v-if="isOpened" @click="handleClose"></view>
- <view class="uni-data-tree-dialog" v-if="isOpened">
- <view class="uni-popper__arrow"></view>
- <view class="dialog-caption">
- <view class="title-area">
- <text class="dialog-title">{{popupTitle}}</text>
- </view>
- <view class="dialog-close" @click="handleClose">
- <view class="dialog-close-plus" data-id="close"></view>
- <view class="dialog-close-plus dialog-close-rotate" data-id="close"></view>
- </view>
- </view>
- <data-picker-view class="picker-view" ref="pickerView" v-model="dataValue" :localdata="localdata"
- :preload="preload" :collection="collection" :field="field" :orderby="orderby" :where="where"
- :step-searh="stepSearh" :self-field="selfField" :parent-field="parentField" :managed-mode="true"
- :map="map" :ellipsis="ellipsis" @change="onchange" @datachange="ondatachange" @nodeclick="onnodeclick">
- </data-picker-view>
- </view>
- </view>
-</template>
-
-<script>
- import dataPicker from "../uni-data-pickerview/uni-data-picker.js"
- import DataPickerView from "../uni-data-pickerview/uni-data-pickerview.vue"
-
- /**
- * DataPicker 绾ц仈閫夋嫨
- * @description 鏀寔鍗曞垪銆佸拰澶氬垪绾ц仈閫夋嫨銆傚垪鏁版病鏈夐檺鍒讹紝濡傛灉灞忓箷鏄剧ず涓嶅叏锛岄《閮╰ab鍖哄煙浼氬乏鍙虫粴鍔ㄣ��
- * @tutorial https://ext.dcloud.net.cn/plugin?id=3796
- * @property {String} popup-title 寮瑰嚭绐楀彛鏍囬
- * @property {Array} localdata 鏈湴鏁版嵁锛屽弬鑰�
- * @property {Boolean} border = [true|false] 鏄惁鏈夎竟妗�
- * @property {Boolean} readonly = [true|false] 鏄惁浠呰
- * @property {Boolean} preload = [true|false] 鏄惁棰勫姞杞芥暟鎹�
- * @value true 寮�鍚鍔犺浇鏁版嵁锛岀偣鍑诲脊鍑虹獥鍙e悗鏄剧ず宸插姞杞芥暟鎹�
- * @value false 鍏抽棴棰勫姞杞芥暟鎹紝鐐瑰嚮寮瑰嚭绐楀彛鍚庡紑濮嬪姞杞芥暟鎹�
- * @property {Boolean} step-searh = [true|false] 鏄惁鍒嗗竷鏌ヨ
- * @value true 鍚敤鍒嗗竷鏌ヨ锛屼粎鏌ヨ褰撳墠閫変腑鑺傜偣
- * @value false 鍏抽棴鍒嗗竷鏌ヨ锛屼竴娆℃煡璇㈠嚭鎵�鏈夋暟鎹�
- * @property {String|DBFieldString} self-field 鍒嗗竷鏌ヨ褰撳墠瀛楁鍚嶇О
- * @property {String|DBFieldString} parent-field 鍒嗗竷鏌ヨ鐖跺瓧娈靛悕绉�
- * @property {String|DBCollectionString} collection 琛ㄥ悕
- * @property {String|DBFieldString} field 鏌ヨ瀛楁锛屽涓瓧娈电敤 `,` 鍒嗗壊
- * @property {String} orderby 鎺掑簭瀛楁鍙婃搴忓�掑彊璁剧疆
- * @property {String|JQLString} where 鏌ヨ鏉′欢
- * @event {Function} popupshow 寮瑰嚭鐨勯�夋嫨绐楀彛鎵撳紑鏃惰Е鍙戞浜嬩欢
- * @event {Function} popuphide 寮瑰嚭鐨勯�夋嫨绐楀彛鍏抽棴鏃惰Е鍙戞浜嬩欢
- */
- export default {
- name: 'UniDataPicker',
- emits: ['popupopened', 'popupclosed', 'nodeclick', 'input', 'change', 'update:modelValue'],
- mixins: [dataPicker],
- components: {
- DataPickerView
- },
- props: {
- options: {
- type: [Object, Array],
- default () {
- return {}
- }
- },
- popupTitle: {
- type: String,
- default: '璇烽�夋嫨'
- },
- placeholder: {
- type: String,
- default: '璇烽�夋嫨'
- },
- heightMobile: {
- type: String,
- default: ''
- },
- readonly: {
- type: Boolean,
- default: false
- },
- clearIcon: {
- type: Boolean,
- default: true
- },
- border: {
- type: Boolean,
- default: true
- },
- split: {
- type: String,
- default: '/'
- },
- ellipsis: {
- type: Boolean,
- default: true
- }
- },
- data() {
- return {
- isOpened: false,
- inputSelected: []
- }
- },
- created() {
- this.form = this.getForm('uniForms')
- this.formItem = this.getForm('uniFormsItem')
- if (this.formItem) {
- if (this.formItem.name) {
- this.rename = this.formItem.name
- this.form.inputChildrens.push(this)
- }
- }
-
- this.$nextTick(() => {
- this.load()
- })
- },
- methods: {
- clear() {
- this.inputSelected.splice(0)
- this._dispatchEvent([])
- },
- onPropsChange() {
- this._treeData = []
- this.selectedIndex = 0
- this.load()
- },
- load() {
- if (this.readonly) {
- this._processReadonly(this.localdata, this.dataValue)
- return
- }
-
- if (this.isLocaldata) {
- this.loadData()
- this.inputSelected = this.selected.slice(0)
- } else if (!this.parentField && !this.selfField && this.hasValue) {
- this.getNodeData(() => {
- this.inputSelected = this.selected.slice(0)
- })
- } else if (this.hasValue) {
- this.getTreePath(() => {
- this.inputSelected = this.selected.slice(0)
- })
- }
- },
- getForm(name = 'uniForms') {
- let parent = this.$parent;
- let parentName = parent.$options.name;
- while (parentName !== name) {
- parent = parent.$parent;
- if (!parent) return false;
- parentName = parent.$options.name;
- }
- return parent;
- },
- show() {
- this.isOpened = true
- this.$nextTick(() => {
- this.$refs.pickerView.updateData({
- treeData: this._treeData,
- selected: this.selected,
- selectedIndex: this.selectedIndex
- })
- })
- this.$emit('popupopened')
- },
- hide() {
- this.isOpened = false
- this.$emit('popupclosed')
- },
- handleInput() {
- if (this.readonly) {
- return
- }
- this.show()
- },
- handleClose(e) {
- this.hide()
- },
- onnodeclick(e) {
- this.$emit('nodeclick', e)
- },
- ondatachange(e) {
- this._treeData = this.$refs.pickerView._treeData
- },
- onchange(e) {
- this.hide()
- this.inputSelected = e
- this._dispatchEvent(e)
- },
- _processReadonly(dataList, value) {
- var isTree = dataList.findIndex((item) => {
- return item.children
- })
- if (isTree > -1) {
- let inputValue
- if (Array.isArray(value)) {
- inputValue = value[value.length - 1]
- if (typeof inputValue === 'object' && inputValue.value) {
- inputValue = inputValue.value
- }
- } else {
- inputValue = value
- }
- this.inputSelected = this._findNodePath(inputValue, this.localdata)
- return
- }
-
- if (!this.hasValue) {
- this.inputSelected = []
- return
- }
-
- let result = []
- for (let i = 0; i < value.length; i++) {
- var val = value[i]
- var item = dataList.find((v) => {
- return v.value == val
- })
- if (item) {
- result.push(item)
- }
- }
- if (result.length) {
- this.inputSelected = result
- }
- },
- _filterForArray(data, valueArray) {
- var result = []
- for (let i = 0; i < valueArray.length; i++) {
- var value = valueArray[i]
- var found = data.find((item) => {
- return item.value == value
- })
- if (found) {
- result.push(found)
- }
- }
- return result
- },
- _dispatchEvent(selected) {
- let item = {}
- if (selected.length) {
- var value = new Array(selected.length)
- for (var i = 0; i < selected.length; i++) {
- value[i] = selected[i].value
- }
- item = selected[selected.length - 1]
- } else {
- item.value = ''
- }
- if (this.formItem) {
- this.formItem.setValue(item.value)
- }
-
- this.$emit('input', item.value)
- this.$emit('update:modelValue', item.value)
- this.$emit('change', {
- detail: {
- value: selected
- }
- })
- }
- }
- }
-</script>
-
-<style >
- .uni-data-tree {
- position: relative;
- font-size: 14px;
- }
-
- .error-text {
- color: #DD524D;
- }
-
- .input-value {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex-direction: row;
- align-items: center;
- flex-wrap: nowrap;
- font-size: 14px;
- line-height: 38px;
- padding: 0 5px;
- overflow: hidden;
- /* #ifdef APP-NVUE */
- height: 40px;
- /* #endif */
- }
-
- .input-value-border {
- border: 1px solid #e5e5e5;
- border-radius: 5px;
- }
-
- .selected-area {
- flex: 1;
- overflow: hidden;
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex-direction: row;
- }
-
- .load-more {
- /* #ifndef APP-NVUE */
- margin-right: auto;
- /* #endif */
- /* #ifdef APP-NVUE */
- width: 40px;
- /* #endif */
- }
-
- .selected-list {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex-direction: row;
- flex-wrap: nowrap;
- padding: 0 5px;
- }
-
- .selected-item {
- flex-direction: row;
- padding: 0 1px;
- /* #ifndef APP-NVUE */
- white-space: nowrap;
- /* #endif */
- }
-
- .placeholder {
- color: grey;
- }
-
- .input-split-line {
- opacity: .5;
- }
-
- .arrow-area {
- position: relative;
- width: 20px;
- /* #ifndef APP-NVUE */
- margin-bottom: 5px;
- margin-left: auto;
- display: flex;
- /* #endif */
- justify-content: center;
- transform: rotate(-45deg);
- transform-origin: center;
- }
-
- .input-arrow {
- width: 7px;
- height: 7px;
- border-left: 1px solid #999;
- border-bottom: 1px solid #999;
- }
-
- .uni-data-tree-cover {
- position: fixed;
- left: 0;
- top: 0;
- right: 0;
- bottom: 0;
- background-color: rgba(0, 0, 0, .4);
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex-direction: column;
- z-index: 100;
- }
-
- .uni-data-tree-dialog {
- position: fixed;
- left: 0;
- top: 20%;
- right: 0;
- bottom: 0;
- background-color: #FFFFFF;
- border-top-left-radius: 10px;
- border-top-right-radius: 10px;
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex-direction: column;
- z-index: 102;
- overflow: hidden;
- /* #ifdef APP-NVUE */
- width: 750rpx;
- /* #endif */
- }
-
- .dialog-caption {
- position: relative;
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex-direction: row;
- /* border-bottom: 1px solid #f0f0f0; */
- }
-
- .title-area {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- align-items: center;
- /* #ifndef APP-NVUE */
- margin: auto;
- /* #endif */
- padding: 0 10px;
- }
-
- .dialog-title {
- /* font-weight: bold; */
- line-height: 44px;
- }
-
- .dialog-close {
- position: absolute;
- top: 0;
- right: 0;
- bottom: 0;
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex-direction: row;
- align-items: center;
- padding: 0 15px;
- }
-
- .dialog-close-plus {
- width: 16px;
- height: 2px;
- background-color: #666;
- border-radius: 2px;
- transform: rotate(45deg);
- }
-
- .dialog-close-rotate {
- position: absolute;
- transform: rotate(-45deg);
- }
-
- .picker-view {
- flex: 1;
- overflow: hidden;
- }
-
- /* #ifdef H5 */
- @media all and (min-width: 768px) {
- .uni-data-tree-cover {
- background-color: transparent;
- }
-
- .uni-data-tree-dialog {
- position: absolute;
- top: 55px;
- height: auto;
- min-height: 400px;
- max-height: 50vh;
- background-color: #fff;
- border: 1px solid #EBEEF5;
- box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
- border-radius: 4px;
- overflow: unset;
- }
-
- .dialog-caption {
- display: none;
- }
-
- .icon-clear {
- margin-right: 5px;
- }
- }
-
- /* #endif */
-
- /* picker 寮瑰嚭灞傞�氱敤鐨勬寚绀哄皬涓夎, todo锛氭墿灞曡嚦涓婁笅宸﹀彸鏂瑰悜瀹氫綅 */
- /* #ifndef APP-NVUE */
- .uni-popper__arrow,
- .uni-popper__arrow::after {
- position: absolute;
- display: block;
- width: 0;
- height: 0;
- border-color: transparent;
- border-style: solid;
- border-width: 6px;
- }
-
- .uni-popper__arrow {
- filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.03));
- top: -6px;
- left: 10%;
- margin-right: 3px;
- border-top-width: 0;
- border-bottom-color: #EBEEF5;
- }
-
- .uni-popper__arrow::after {
- content: " ";
- top: 1px;
- margin-left: -6px;
- border-top-width: 0;
- border-bottom-color: #fff;
- }
- /* #endif */
- </style>
diff --git a/uni_modules/uni-data-picker/components/uni-data-pickerview/uni-data-picker.js b/uni_modules/uni-data-picker/components/uni-data-pickerview/uni-data-picker.js
deleted file mode 100644
index c12fd54..0000000
--- a/uni_modules/uni-data-picker/components/uni-data-pickerview/uni-data-picker.js
+++ /dev/null
@@ -1,563 +0,0 @@
-export default {
- props: {
- localdata: {
- type: [Array, Object],
- default () {
- return []
- }
- },
- spaceInfo: {
- type: Object,
- default () {
- return {}
- }
- },
- collection: {
- type: String,
- default: ''
- },
- action: {
- type: String,
- default: ''
- },
- field: {
- type: String,
- default: ''
- },
- orderby: {
- type: String,
- default: ''
- },
- where: {
- type: [String, Object],
- default: ''
- },
- pageData: {
- type: String,
- default: 'add'
- },
- pageCurrent: {
- type: Number,
- default: 1
- },
- pageSize: {
- type: Number,
- default: 20
- },
- getcount: {
- type: [Boolean, String],
- default: false
- },
- getone: {
- type: [Boolean, String],
- default: false
- },
- gettree: {
- type: [Boolean, String],
- default: false
- },
- manual: {
- type: Boolean,
- default: false
- },
- value: {
- type: [Array, String, Number],
- default () {
- return []
- }
- },
- modelValue: {
- type: [Array, String, Number],
- default () {
- return []
- }
- },
- preload: {
- type: Boolean,
- default: false
- },
- stepSearh: {
- type: Boolean,
- default: true
- },
- selfField: {
- type: String,
- default: ''
- },
- parentField: {
- type: String,
- default: ''
- },
- multiple: {
- type: Boolean,
- default: false
- },
- map: {
- type: Object,
- default() {
- return {
- text: "text",
- value: "value"
- }
- }
- }
- },
- data() {
- return {
- loading: false,
- errorMessage: '',
- loadMore: {
- contentdown: '',
- contentrefresh: '',
- contentnomore: ''
- },
- dataList: [],
- selected: [],
- selectedIndex: 0,
- page: {
- current: this.pageCurrent,
- size: this.pageSize,
- count: 0
- }
- }
- },
- computed: {
- isLocaldata() {
- return !this.collection.length
- },
- postField() {
- let fields = [this.field];
- if (this.parentField) {
- fields.push(`${this.parentField} as parent_value`);
- }
- return fields.join(',');
- },
- dataValue() {
- let isModelValue = Array.isArray(this.modelValue) ? (this.modelValue.length > 0) : (this.modelValue !== null || this.modelValue !== undefined)
- return isModelValue ? this.modelValue : this.value
- },
- hasValue() {
- if (typeof this.dataValue === 'number') {
- return true
- }
- return (this.dataValue != null) && (this.dataValue.length > 0)
- }
- },
- created() {
- this.$watch(() => {
- var al = [];
- ['pageCurrent',
- 'pageSize',
- 'spaceInfo',
- 'value',
- 'modelValue',
- 'localdata',
- 'collection',
- 'action',
- 'field',
- 'orderby',
- 'where',
- 'getont',
- 'getcount',
- 'gettree'
- ].forEach(key => {
- al.push(this[key])
- });
- return al
- }, (newValue, oldValue) => {
- let needReset = false
- for (let i = 2; i < newValue.length; i++) {
- if (newValue[i] != oldValue[i]) {
- needReset = true
- break
- }
- }
- if (newValue[0] != oldValue[0]) {
- this.page.current = this.pageCurrent
- }
- this.page.size = this.pageSize
-
- this.onPropsChange()
- })
- this._treeData = []
- },
- methods: {
- onPropsChange() {
- this._treeData = []
- },
- getCommand(options = {}) {
- /* eslint-disable no-undef */
- let db = uniCloud.database(this.spaceInfo)
-
- const action = options.action || this.action
- if (action) {
- db = db.action(action)
- }
-
- const collection = options.collection || this.collection
- db = db.collection(collection)
-
- const where = options.where || this.where
- if (!(!where || !Object.keys(where).length)) {
- db = db.where(where)
- }
-
- const field = options.field || this.field
- if (field) {
- db = db.field(field)
- }
-
- const orderby = options.orderby || this.orderby
- if (orderby) {
- db = db.orderBy(orderby)
- }
-
- const current = options.pageCurrent !== undefined ? options.pageCurrent : this.page.current
- const size = options.pageSize !== undefined ? options.pageSize : this.page.size
- const getCount = options.getcount !== undefined ? options.getcount : this.getcount
- const getTree = options.gettree !== undefined ? options.gettree : this.gettree
-
- const getOptions = {
- getCount,
- getTree
- }
- if (options.getTreePath) {
- getOptions.getTreePath = options.getTreePath
- }
-
- db = db.skip(size * (current - 1)).limit(size).get(getOptions)
-
- return db
- },
- getNodeData(callback) {
- if (this.loading) {
- return
- }
- this.loading = true
- this.getCommand({
- field: this.postField,
- where: this._pathWhere()
- }).then((res) => {
- this.loading = false
- this.selected = res.result.data
- callback && callback()
- }).catch((err) => {
- this.loading = false
- this.errorMessage = err
- })
- },
- getTreePath(callback) {
- if (this.loading) {
- return
- }
- this.loading = true
-
- this.getCommand({
- field: this.postField,
- getTreePath: {
- startWith: `${this.selfField}=='${this.dataValue}'`
- }
- }).then((res) => {
- this.loading = false
- let treePath = []
- this._extractTreePath(res.result.data, treePath)
- this.selected = treePath
- callback && callback()
- }).catch((err) => {
- this.loading = false
- this.errorMessage = err
- })
- },
- loadData() {
- if (this.isLocaldata) {
- this._processLocalData()
- return
- }
-
- if (this.dataValue != null) {
- this._loadNodeData((data) => {
- this._treeData = data
- this._updateBindData()
- this._updateSelected()
- })
- return
- }
-
- if (this.stepSearh) {
- this._loadNodeData((data) => {
- this._treeData = data
- this._updateBindData()
- })
- } else {
- this._loadAllData((data) => {
- this._treeData = []
- this._extractTree(data, this._treeData, null)
- this._updateBindData()
- })
- }
- },
- _loadAllData(callback) {
- if (this.loading) {
- return
- }
- this.loading = true
-
- this.getCommand({
- field: this.postField,
- gettree: true,
- startwith: `${this.selfField}=='${this.dataValue}'`
- }).then((res) => {
- this.loading = false
- callback(res.result.data)
- this.onDataChange()
- }).catch((err) => {
- this.loading = false
- this.errorMessage = err
- })
- },
- _loadNodeData(callback, pw) {
- if (this.loading) {
- return
- }
- this.loading = true
-
- this.getCommand({
- field: this.postField,
- where: pw || this._postWhere(),
- pageSize: 500
- }).then((res) => {
- this.loading = false
- callback(res.result.data)
- this.onDataChange()
- }).catch((err) => {
- this.loading = false
- this.errorMessage = err
- })
- },
- _pathWhere() {
- let result = []
- let where_field = this._getParentNameByField();
- if (where_field) {
- result.push(`${where_field} == '${this.dataValue}'`)
- }
-
- if (this.where) {
- return `(${this.where}) && (${result.join(' || ')})`
- }
-
- return result.join(' || ')
- },
- _postWhere() {
- let result = []
- let selected = this.selected
- let parentField = this.parentField
- if (parentField) {
- result.push(`${parentField} == null || ${parentField} == ""`)
- }
- if (selected.length) {
- for (var i = 0; i < selected.length - 1; i++) {
- result.push(`${parentField} == '${selected[i].value}'`)
- }
- }
-
- let where = []
- if (this.where) {
- where.push(`(${this.where})`)
- }
- if (result.length) {
- where.push(`(${result.join(' || ')})`)
- }
-
- return where.join(' && ')
- },
- _nodeWhere() {
- let result = []
- let selected = this.selected
- if (selected.length) {
- result.push(`${this.parentField} == '${selected[selected.length - 1].value}'`)
- }
-
- if (this.where) {
- return `(${this.where}) && (${result.join(' || ')})`
- }
-
- return result.join(' || ')
- },
- _getParentNameByField() {
- const fields = this.field.split(',');
- let where_field = null;
- for (let i = 0; i < fields.length; i++) {
- const items = fields[i].split('as');
- if (items.length < 2) {
- continue;
- }
- if (items[1].trim() === 'value') {
- where_field = items[0].trim();
- break;
- }
- }
- return where_field
- },
- _isTreeView() {
- return (this.parentField && this.selfField)
- },
- _updateSelected() {
- var dl = this.dataList
- var sl = this.selected
- let textField = this.map.text
- let valueField = this.map.value
- for (var i = 0; i < sl.length; i++) {
- var value = sl[i].value
- var dl2 = dl[i]
- for (var j = 0; j < dl2.length; j++) {
- var item2 = dl2[j]
- if (item2[valueField] === value) {
- sl[i].text = item2[textField]
- break
- }
- }
- }
- },
- _updateBindData(node) {
- const {
- dataList,
- hasNodes
- } = this._filterData(this._treeData, this.selected)
-
- let isleaf = this._stepSearh === false && !hasNodes
-
- if (node) {
- node.isleaf = isleaf
- }
-
- this.dataList = dataList
- this.selectedIndex = dataList.length - 1
-
- if (!isleaf && this.selected.length < dataList.length) {
- this.selected.push({
- value: null,
- text: "璇烽�夋嫨"
- })
- }
-
- return {
- isleaf,
- hasNodes
- }
- },
- _filterData(data, paths) {
- let dataList = []
- let hasNodes = true
-
- dataList.push(data.filter((item) => {
- return (item.parent_value === null || item.parent_value === undefined || item.parent_value === '')
- }))
- for (let i = 0; i < paths.length; i++) {
- var value = paths[i].value
- var nodes = data.filter((item) => {
- return item.parent_value === value
- })
-
- if (nodes.length) {
- dataList.push(nodes)
- } else {
- hasNodes = false
- }
- }
-
- return {
- dataList,
- hasNodes
- }
- },
- _extractTree(nodes, result, parent_value) {
- let list = result || []
- let valueField = this.map.value
- for (let i = 0; i < nodes.length; i++) {
- let node = nodes[i]
-
- let child = {}
- for (let key in node) {
- if (key !== 'children') {
- child[key] = node[key]
- }
- }
- if (parent_value !== null && parent_value !== undefined && parent_value !== '') {
- child.parent_value = parent_value
- }
- result.push(child)
-
- let children = node.children
- if (children) {
- this._extractTree(children, result, node[valueField])
- }
- }
- },
- _extractTreePath(nodes, result) {
- let list = result || []
- for (let i = 0; i < nodes.length; i++) {
- let node = nodes[i]
-
- let child = {}
- for (let key in node) {
- if (key !== 'children') {
- child[key] = node[key]
- }
- }
- result.push(child)
-
- let children = node.children
- if (children) {
- this._extractTreePath(children, result)
- }
- }
- },
- _findNodePath(key, nodes, path = []) {
- let textField = this.map.text
- let valueField = this.map.value
- for (let i = 0; i < nodes.length; i++) {
- let node = nodes[i]
- let children = node.children
- let text = node[textField]
- let value = node[valueField]
-
- path.push({
- value,
- text
- })
-
- if (value === key) {
- return path
- }
-
- if (children) {
- const p = this._findNodePath(key, children, path)
- if (p.length) {
- return p
- }
- }
-
- path.pop()
- }
- return []
- },
- _processLocalData() {
- this._treeData = []
- this._extractTree(this.localdata, this._treeData)
-
- var inputValue = this.dataValue
- if (inputValue === undefined) {
- return
- }
-
- if (Array.isArray(inputValue)) {
- inputValue = inputValue[inputValue.length - 1]
- if (typeof inputValue === 'object' && inputValue[this.map.value]) {
- inputValue = inputValue[this.map.value]
- }
- }
-
- this.selected = this._findNodePath(inputValue, this.localdata)
- }
- }
-}
diff --git a/uni_modules/uni-data-picker/components/uni-data-pickerview/uni-data-pickerview.vue b/uni_modules/uni-data-picker/components/uni-data-pickerview/uni-data-pickerview.vue
deleted file mode 100644
index 72f8b33..0000000
--- a/uni_modules/uni-data-picker/components/uni-data-pickerview/uni-data-pickerview.vue
+++ /dev/null
@@ -1,333 +0,0 @@
-<template>
- <view class="uni-data-pickerview">
- <scroll-view class="selected-area" scroll-x="true" scroll-y="false" :show-scrollbar="false">
- <view class="selected-list">
- <template v-for="(item,index) in selected">
- <view class="selected-item"
- :class="{'selected-item-active':index==selectedIndex, 'selected-item-text-overflow': ellipsis}"
- :key="index" v-if="item.text" @click="handleSelect(index)">
- <text class="">{{item.text}}</text>
- </view>
- </template>
- </view>
- </scroll-view>
- <view class="tab-c">
- <template v-for="(child, i) in dataList">
- <scroll-view class="list" :key="i" v-if="i==selectedIndex" :scroll-y="true">
- <view class="item" :class="{'is-disabled': !!item.disable}" v-for="(item, j) in child" :key="j"
- @click="handleNodeClick(item, i, j)">
- <text class="item-text item-text-overflow">{{item[map.text]}}</text>
- <view class="check" v-if="selected.length > i && item[map.value] == selected[i].value"></view>
- </view>
- </scroll-view>
- </template>
-
- <view class="loading-cover" v-if="loading">
- <uni-load-more class="load-more" :contentText="loadMore" status="loading"></uni-load-more>
- </view>
- <view class="error-message" v-if="errorMessage">
- <text class="error-text">{{errorMessage}}</text>
- </view>
- </view>
- </view>
-</template>
-
-<script>
- import dataPicker from "./uni-data-picker.js"
-
- /**
- * DataPickerview
- * @description uni-data-pickerview
- * @tutorial https://ext.dcloud.net.cn/plugin?id=3796
- * @property {Array} localdata 鏈湴鏁版嵁锛屽弬鑰�
- * @property {Boolean} step-searh = [true|false] 鏄惁鍒嗗竷鏌ヨ
- * @value true 鍚敤鍒嗗竷鏌ヨ锛屼粎鏌ヨ褰撳墠閫変腑鑺傜偣
- * @value false 鍏抽棴鍒嗗竷鏌ヨ锛屼竴娆℃煡璇㈠嚭鎵�鏈夋暟鎹�
- * @property {String|DBFieldString} self-field 鍒嗗竷鏌ヨ褰撳墠瀛楁鍚嶇О
- * @property {String|DBFieldString} parent-field 鍒嗗竷鏌ヨ鐖跺瓧娈靛悕绉�
- * @property {String|DBCollectionString} collection 琛ㄥ悕
- * @property {String|DBFieldString} field 鏌ヨ瀛楁锛屽涓瓧娈电敤 `,` 鍒嗗壊
- * @property {String} orderby 鎺掑簭瀛楁鍙婃搴忓�掑彊璁剧疆
- * @property {String|JQLString} where 鏌ヨ鏉′欢
- */
- export default {
- name: 'UniDataPickerView',
- emits: ['nodeclick', 'change', 'datachange', 'update:modelValue'],
- mixins: [dataPicker],
- props: {
- managedMode: {
- type: Boolean,
- default: false
- },
- ellipsis: {
- type: Boolean,
- default: true
- }
- },
- data() {
- return {}
- },
- created() {
- if (this.managedMode) {
- return
- }
-
- this.$nextTick(() => {
- this.load()
- })
- },
- methods: {
- onPropsChange() {
- this._treeData = []
- this.selectedIndex = 0
- this.load()
- },
- load() {
- if (this.isLocaldata) {
- this.loadData()
- } else if (this.dataValue.length) {
- this.getTreePath((res) => {
- this.loadData()
- })
- }
- },
- handleSelect(index) {
- this.selectedIndex = index
- },
- handleNodeClick(item, i, j) {
- if (item.disable) {
- return
- }
- const node = this.dataList[i][j]
- const text = node[this.map.text]
- const value = node[this.map.value]
- if (i < this.selected.length - 1) {
- this.selected.splice(i, this.selected.length - i)
- this.selected.push({
- text,
- value
- })
- } else if (i === this.selected.length - 1) {
- this.selected.splice(i, 1, {
- text,
- value
- })
- }
-
- if (node.isleaf) {
- this.onSelectedChange(node, node.isleaf)
- return
- }
-
- const {
- isleaf,
- hasNodes
- } = this._updateBindData()
-
- if (!this._isTreeView() && !hasNodes) {
- this.onSelectedChange(node, true)
- return
- }
-
- if (this.isLocaldata && (!hasNodes || isleaf)) {
- this.onSelectedChange(node, true)
- return
- }
-
- if (!isleaf && !hasNodes) {
- this._loadNodeData((data) => {
- if (!data.length) {
- node.isleaf = true
- } else {
- this._treeData.push(...data)
- this._updateBindData(node)
- }
- this.onSelectedChange(node, node.isleaf)
- }, this._nodeWhere())
- return
- }
-
- this.onSelectedChange(node, false)
- },
- updateData(data) {
- this._treeData = data.treeData
- this.selected = data.selected
- if (!this._treeData.length) {
- this.loadData()
- } else {
- //this.selected = data.selected
- this._updateBindData()
- }
- },
- onDataChange() {
- this.$emit('datachange')
- },
- onSelectedChange(node, isleaf) {
- if (isleaf) {
- this._dispatchEvent()
- }
-
- if (node) {
- this.$emit('nodeclick', node)
- }
- },
- _dispatchEvent() {
- this.$emit('change', this.selected.slice(0))
- }
- }
- }
-</script>
-<style >
- .uni-data-pickerview {
- flex: 1;
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex-direction: column;
- overflow: hidden;
- height: 100%;
- }
-
- .error-text {
- color: #DD524D;
- }
-
- .loading-cover {
- position: absolute;
- left: 0;
- top: 0;
- right: 0;
- bottom: 0;
- background-color: rgba(255, 255, 255, .5);
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex-direction: column;
- align-items: center;
- z-index: 1001;
- }
-
- .load-more {
- /* #ifndef APP-NVUE */
- margin: auto;
- /* #endif */
- }
-
- .error-message {
- background-color: #fff;
- position: absolute;
- left: 0;
- top: 0;
- right: 0;
- bottom: 0;
- padding: 15px;
- opacity: .9;
- z-index: 102;
- }
-
- /* #ifdef APP-NVUE */
- .selected-area {
- width: 750rpx;
- }
-
- /* #endif */
-
- .selected-list {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex-direction: row;
- flex-wrap: nowrap;
- padding: 0 5px;
- border-bottom: 1px solid #f8f8f8;
- }
-
- .selected-item {
- margin-left: 10px;
- margin-right: 10px;
- padding: 12px 0;
- text-align: center;
- /* #ifndef APP-NVUE */
- white-space: nowrap;
- /* #endif */
- }
-
- .selected-item-text-overflow {
- width: 168px;
- /* fix nvue */
- overflow: hidden;
- /* #ifndef APP-NVUE */
- width: 6em;
- white-space: nowrap;
- text-overflow: ellipsis;
- -o-text-overflow: ellipsis;
- /* #endif */
- }
-
- .selected-item-active {
- border-bottom: 2px solid #007aff;
- }
-
- .selected-item-text {
- color: #007aff;
- }
-
- .tab-c {
- position: relative;
- flex: 1;
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex-direction: row;
- overflow: hidden;
- }
-
- .list {
- flex: 1;
- }
-
- .item {
- padding: 12px 15px;
- /* border-bottom: 1px solid #f0f0f0; */
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex-direction: row;
- justify-content: space-between;
- }
-
- .is-disabled {
- opacity: .5;
- }
-
- .item-text {
- /* flex: 1; */
- color: #333333;
- }
-
- .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);
- }
-</style>
diff --git a/uni_modules/uni-data-picker/package.json b/uni_modules/uni-data-picker/package.json
deleted file mode 100644
index d4925ef..0000000
--- a/uni_modules/uni-data-picker/package.json
+++ /dev/null
@@ -1,92 +0,0 @@
-{
- "id": "uni-data-picker",
- "displayName": "uni-data-picker 鏁版嵁椹卞姩鐨刾icker閫夋嫨鍣�",
- "version": "1.0.3",
- "description": "鍗曞垪銆佸鍒楃骇鑱旈�夋嫨鍣紝甯哥敤浜庣渷甯傚尯鍩庡競閫夋嫨銆佸叕鍙搁儴闂ㄩ�夋嫨銆佸绾у垎绫荤瓑鍦烘櫙",
- "keywords": [
- "uni-ui",
- "uniui",
- "picker",
- "绾ц仈",
- "鐪佸競鍖�",
- ""
-],
- "repository": "https://github.com/dcloudio/uni-ui",
- "engines": {
- "HBuilderX": ""
- },
- "directories": {
- "example": "../../temps/example_temps"
- },
- "dcloudext": {
- "category": [
- "鍓嶇缁勪欢",
- "閫氱敤缁勪欢"
- ],
- "sale": {
- "regular": {
- "price": "0.00"
- },
- "sourcecode": {
- "price": "0.00"
- }
- },
- "contact": {
- "qq": ""
- },
- "declaration": {
- "ads": "鏃�",
- "data": "鏃�",
- "permissions": "鏃�"
- },
- "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui"
- },
- "uni_modules": {
- "dependencies": [
- "uni-load-more",
- "uni-icons",
- "uni-scss"
- ],
- "encrypt": [],
- "platforms": {
- "cloud": {
- "tcb": "y",
- "aliyun": "y"
- },
- "client": {
- "App": {
- "app-vue": "y",
- "app-nvue": "y"
- },
- "H5-mobile": {
- "Safari": "y",
- "Android Browser": "y",
- "寰俊娴忚鍣�(Android)": "y",
- "QQ娴忚鍣�(Android)": "y"
- },
- "H5-pc": {
- "Chrome": "y",
- "IE": "y",
- "Edge": "y",
- "Firefox": "y",
- "Safari": "y"
- },
- "灏忕▼搴�": {
- "寰俊": "y",
- "闃块噷": "y",
- "鐧惧害": "y",
- "瀛楄妭璺冲姩": "y",
- "QQ": "y"
- },
- "蹇簲鐢�": {
- "鍗庝负": "u",
- "鑱旂洘": "u"
- },
- "Vue": {
- "vue2": "y",
- "vue3": "y"
- }
- }
- }
- }
-}
\ No newline at end of file
diff --git a/uni_modules/uni-data-picker/readme.md b/uni_modules/uni-data-picker/readme.md
deleted file mode 100644
index 6cda224..0000000
--- a/uni_modules/uni-data-picker/readme.md
+++ /dev/null
@@ -1,22 +0,0 @@
-## DataPicker 绾ц仈閫夋嫨
-> **缁勪欢鍚嶏細uni-data-picker**
-> 浠g爜鍧楋細 `uDataPicker`
-> 鍏宠仈缁勪欢锛歚uni-data-pickerview`銆乣uni-load-more`銆�
-
-
-`<uni-data-picker>` 鏄竴涓�夋嫨绫籟datacom缁勪欢](https://uniapp.dcloud.net.cn/component/datacom)銆�
-
-鏀寔鍗曞垪銆佸拰澶氬垪绾ц仈閫夋嫨銆傚垪鏁版病鏈夐檺鍒讹紝濡傛灉灞忓箷鏄剧ず涓嶅叏锛岄《閮╰ab鍖哄煙浼氬乏鍙虫粴鍔ㄣ��
-
-鍊欓�夋暟鎹敮鎸佷竴娆℃�у姞杞藉畬姣曪紝涔熸敮鎸佹噿鍔犺浇锛屾瘮濡傜ず渚嬪浘涓紝閫夋嫨浜嗏�滃寳浜�濆悗锛屽姩鎬佸姞杞藉寳浜殑鍖哄幙鏁版嵁銆�
-
-`<uni-data-picker>` 缁勪欢灏ゅ叾閫傜敤浜庡湴鍧�閫夋嫨銆佸垎绫婚�夋嫨绛夐�夋嫨绫汇��
-
-`<uni-data-picker>` 鏀寔鏈湴鏁版嵁銆佷簯绔潤鎬佹暟鎹�(json)锛寀niCloud浜戞暟鎹簱鏁版嵁銆�
-
-`<uni-data-picker>` 鍙互閫氳繃JQL鐩磋繛uniCloud浜戞暟鎹簱锛岄厤濂梉DB Schema](https://uniapp.dcloud.net.cn/uniCloud/schema)锛屽彲鍦╯chema2code涓嚜鍔ㄧ敓鎴愬墠绔〉闈紝杩樻敮鎸佹湇鍔″櫒绔牎楠屻��
-
-鍦╱niCloud鏁版嵁琛ㄤ腑鏂板缓琛ㄢ�渦ni-id-address鈥濆拰鈥渙pendb-city-china鈥濓紝杩�2涓〃鐨剆chema鑷甫foreignKey鍏宠仈銆傚湪鈥渦ni-id-address鈥濊〃鐨勮〃缁撴瀯椤甸潰浣跨敤schema2code鐢熸垚鍓嶇椤甸潰锛屼細鑷姩鐢熸垚鍦板潃绠$悊鐨勭淮鎶ら〉闈紝鑷姩浠庘�渙pendb-city-china鈥濊〃鍖呭惈鐨勪腑鍥芥墍鏈夌渷甯傚尯淇℃伅閲岄�夋嫨鍦板潃銆�
-
-### [鏌ョ湅鏂囨。](https://uniapp.dcloud.io/component/uniui/uni-data-picker)
-#### 濡備娇鐢ㄨ繃绋嬩腑鏈変换浣曢棶棰橈紝鎴栬�呮偍瀵箄ni-ui鏈変竴浜涘ソ鐨勫缓璁紝娆㈣繋鍔犲叆 uni-ui 浜ゆ祦缇わ細871950839
\ No newline at end of file
diff --git a/uni_modules/uni-dateformat/changelog.md b/uni_modules/uni-dateformat/changelog.md
deleted file mode 100644
index d551d7b..0000000
--- a/uni_modules/uni-dateformat/changelog.md
+++ /dev/null
@@ -1,10 +0,0 @@
-## 1.0.0锛�2021-11-19锛�
-- 浼樺寲 缁勪欢UI锛屽苟鎻愪緵璁捐璧勬簮锛岃瑙�:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource)
-- 鏂囨。杩佺Щ锛岃瑙�:[https://uniapp.dcloud.io/component/uniui/uni-dateformat](https://uniapp.dcloud.io/component/uniui/uni-dateformat)
-## 0.0.5锛�2021-07-08锛�
-- 璋冩暣 榛樿鏃堕棿涓嶅啀鏄綋鍓嶆椂闂达紝鑰屾槸鏄剧ず'-'瀛楃
-## 0.0.4锛�2021-05-12锛�
-- 鏂板 缁勪欢绀轰緥鍦板潃
-## 0.0.3锛�2021-02-04锛�
-- 璋冩暣涓簎ni_modules鐩綍瑙勮寖
-- 淇 iOS 骞冲彴鏃ユ湡鏍煎紡鍖栧嚭閿欑殑闂
diff --git a/uni_modules/uni-dateformat/components/uni-dateformat/date-format.js b/uni_modules/uni-dateformat/components/uni-dateformat/date-format.js
deleted file mode 100644
index e00d559..0000000
--- a/uni_modules/uni-dateformat/components/uni-dateformat/date-format.js
+++ /dev/null
@@ -1,200 +0,0 @@
-// yyyy-MM-dd hh:mm:ss.SSS 鎵�鏈夋敮鎸佺殑绫诲瀷
-function pad(str, length = 2) {
- str += ''
- while (str.length < length) {
- str = '0' + str
- }
- return str.slice(-length)
-}
-
-const parser = {
- yyyy: (dateObj) => {
- return pad(dateObj.year, 4)
- },
- yy: (dateObj) => {
- return pad(dateObj.year)
- },
- MM: (dateObj) => {
- return pad(dateObj.month)
- },
- M: (dateObj) => {
- return dateObj.month
- },
- dd: (dateObj) => {
- return pad(dateObj.day)
- },
- d: (dateObj) => {
- return dateObj.day
- },
- hh: (dateObj) => {
- return pad(dateObj.hour)
- },
- h: (dateObj) => {
- return dateObj.hour
- },
- mm: (dateObj) => {
- return pad(dateObj.minute)
- },
- m: (dateObj) => {
- return dateObj.minute
- },
- ss: (dateObj) => {
- return pad(dateObj.second)
- },
- s: (dateObj) => {
- return dateObj.second
- },
- SSS: (dateObj) => {
- return pad(dateObj.millisecond, 3)
- },
- S: (dateObj) => {
- return dateObj.millisecond
- },
-}
-
-// 杩欓兘n骞翠簡iOS渚濈劧涓嶈璇�2020-12-12锛岄渶瑕佽浆鎹负2020/12/12
-function getDate(time) {
- if (time instanceof Date) {
- return time
- }
- switch (typeof time) {
- case 'string':
- {
- // 2020-12-12T12:12:12.000Z銆�2020-12-12T12:12:12.000
- if (time.indexOf('T') > -1) {
- return new Date(time)
- }
- return new Date(time.replace(/-/g, '/'))
- }
- default:
- return new Date(time)
- }
-}
-
-export function formatDate(date, format = 'yyyy/MM/dd hh:mm:ss') {
- if (!date && date !== 0) {
- return ''
- }
- date = getDate(date)
- const dateObj = {
- year: date.getFullYear(),
- month: date.getMonth() + 1,
- day: date.getDate(),
- hour: date.getHours(),
- minute: date.getMinutes(),
- second: date.getSeconds(),
- millisecond: date.getMilliseconds()
- }
- const tokenRegExp = /yyyy|yy|MM|M|dd|d|hh|h|mm|m|ss|s|SSS|SS|S/
- let flag = true
- let result = format
- while (flag) {
- flag = false
- result = result.replace(tokenRegExp, function(matched) {
- flag = true
- return parser[matched](dateObj)
- })
- }
- return result
-}
-
-export function friendlyDate(time, {
- locale = 'zh',
- threshold = [60000, 3600000],
- format = 'yyyy/MM/dd hh:mm:ss'
-}) {
- if (time === '-') {
- return time
- }
- if (!time && time !== 0) {
- return ''
- }
- const localeText = {
- zh: {
- year: '骞�',
- month: '鏈�',
- day: '澶�',
- hour: '灏忔椂',
- minute: '鍒嗛挓',
- second: '绉�',
- ago: '鍓�',
- later: '鍚�',
- justNow: '鍒氬垰',
- soon: '椹笂',
- template: '{num}{unit}{suffix}'
- },
- en: {
- year: 'year',
- month: 'month',
- day: 'day',
- hour: 'hour',
- minute: 'minute',
- second: 'second',
- ago: 'ago',
- later: 'later',
- justNow: 'just now',
- soon: 'soon',
- template: '{num} {unit} {suffix}'
- }
- }
- const text = localeText[locale] || localeText.zh
- let date = getDate(time)
- let ms = date.getTime() - Date.now()
- let absMs = Math.abs(ms)
- if (absMs < threshold[0]) {
- return ms < 0 ? text.justNow : text.soon
- }
- if (absMs >= threshold[1]) {
- return formatDate(date, format)
- }
- let num
- let unit
- let suffix = text.later
- if (ms < 0) {
- suffix = text.ago
- ms = -ms
- }
- const seconds = Math.floor((ms) / 1000)
- const minutes = Math.floor(seconds / 60)
- const hours = Math.floor(minutes / 60)
- const days = Math.floor(hours / 24)
- const months = Math.floor(days / 30)
- const years = Math.floor(months / 12)
- switch (true) {
- case years > 0:
- num = years
- unit = text.year
- break
- case months > 0:
- num = months
- unit = text.month
- break
- case days > 0:
- num = days
- unit = text.day
- break
- case hours > 0:
- num = hours
- unit = text.hour
- break
- case minutes > 0:
- num = minutes
- unit = text.minute
- break
- default:
- num = seconds
- unit = text.second
- break
- }
-
- if (locale === 'en') {
- if (num === 1) {
- num = 'a'
- } else {
- unit += 's'
- }
- }
-
- return text.template.replace(/{\s*num\s*}/g, num + '').replace(/{\s*unit\s*}/g, unit).replace(/{\s*suffix\s*}/g,
- suffix)
-}
diff --git a/uni_modules/uni-dateformat/components/uni-dateformat/uni-dateformat.vue b/uni_modules/uni-dateformat/components/uni-dateformat/uni-dateformat.vue
deleted file mode 100644
index c5ed030..0000000
--- a/uni_modules/uni-dateformat/components/uni-dateformat/uni-dateformat.vue
+++ /dev/null
@@ -1,88 +0,0 @@
-<template>
- <text>{{dateShow}}</text>
-</template>
-
-<script>
- import {friendlyDate} from './date-format.js'
- /**
- * Dateformat 鏃ユ湡鏍煎紡鍖�
- * @description 鏃ユ湡鏍煎紡鍖栫粍浠�
- * @tutorial https://ext.dcloud.net.cn/plugin?id=3279
- * @property {Object|String|Number} date 鏃ユ湡瀵硅薄/鏃ユ湡瀛楃涓�/鏃堕棿鎴�
- * @property {String} locale 鏍煎紡鍖栦娇鐢ㄧ殑璇█
- * @value zh 涓枃
- * @value en 鑻辨枃
- * @property {Array} threshold 搴旂敤涓嶅悓绫诲瀷鏍煎紡鍖栫殑闃堝��
- * @property {String} format 杈撳嚭鏃ユ湡瀛楃涓叉椂鐨勬牸寮�
- */
- export default {
- name: 'uniDateformat',
- props: {
- date: {
- type: [Object, String, Number],
- default () {
- return '-'
- }
- },
- locale: {
- type: String,
- default: 'zh',
- },
- threshold: {
- type: Array,
- default () {
- return [0, 0]
- }
- },
- format: {
- type: String,
- default: 'yyyy/MM/dd hh:mm:ss'
- },
- // refreshRate浣跨敤涓嶅綋鍙兘瀵艰嚧鎬ц兘闂锛岃皑鎱庝娇鐢�
- refreshRate: {
- type: [Number, String],
- default: 0
- }
- },
- data() {
- return {
- refreshMark: 0
- }
- },
- computed: {
- dateShow() {
- this.refreshMark
- return friendlyDate(this.date, {
- locale: this.locale,
- threshold: this.threshold,
- format: this.format
- })
- }
- },
- watch: {
- refreshRate: {
- handler() {
- this.setAutoRefresh()
- },
- immediate: true
- }
- },
- methods: {
- refresh() {
- this.refreshMark++
- },
- setAutoRefresh() {
- clearInterval(this.refreshInterval)
- if (this.refreshRate) {
- this.refreshInterval = setInterval(() => {
- this.refresh()
- }, parseInt(this.refreshRate))
- }
- }
- }
- }
-</script>
-
-<style>
-
-</style>
diff --git a/uni_modules/uni-dateformat/package.json b/uni_modules/uni-dateformat/package.json
deleted file mode 100644
index 786a670..0000000
--- a/uni_modules/uni-dateformat/package.json
+++ /dev/null
@@ -1,88 +0,0 @@
-{
- "id": "uni-dateformat",
- "displayName": "uni-dateformat 鏃ユ湡鏍煎紡鍖�",
- "version": "1.0.0",
- "description": "鏃ユ湡鏍煎紡鍖栫粍浠讹紝鍙互灏嗘棩鏈熸牸寮忓寲涓�1鍒嗛挓鍓嶃�佸垰鍒氱瓑褰㈠紡",
- "keywords": [
- "uni-ui",
- "uniui",
- "鏃ユ湡鏍煎紡鍖�",
- "鏃堕棿鏍煎紡鍖�",
- "鏍煎紡鍖栨椂闂�",
- ""
-],
- "repository": "https://github.com/dcloudio/uni-ui",
- "engines": {
- "HBuilderX": ""
- },
- "directories": {
- "example": "../../temps/example_temps"
- },
- "dcloudext": {
- "category": [
- "鍓嶇缁勪欢",
- "閫氱敤缁勪欢"
- ],
- "sale": {
- "regular": {
- "price": "0.00"
- },
- "sourcecode": {
- "price": "0.00"
- }
- },
- "contact": {
- "qq": ""
- },
- "declaration": {
- "ads": "鏃�",
- "data": "鏃�",
- "permissions": "鏃�"
- },
- "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui"
- },
- "uni_modules": {
- "dependencies": ["uni-scss"],
- "encrypt": [],
- "platforms": {
- "cloud": {
- "tcb": "y",
- "aliyun": "y"
- },
- "client": {
- "App": {
- "app-vue": "y",
- "app-nvue": "y"
- },
- "H5-mobile": {
- "Safari": "y",
- "Android Browser": "y",
- "寰俊娴忚鍣�(Android)": "y",
- "QQ娴忚鍣�(Android)": "y"
- },
- "H5-pc": {
- "Chrome": "y",
- "IE": "y",
- "Edge": "y",
- "Firefox": "y",
- "Safari": "y"
- },
- "灏忕▼搴�": {
- "寰俊": "y",
- "闃块噷": "y",
- "鐧惧害": "y",
- "瀛楄妭璺冲姩": "y",
- "QQ": "y"
- },
- "蹇簲鐢�": {
- "鍗庝负": "y",
- "鑱旂洘": "y"
- },
- "Vue": {
- "vue2": "y",
- "vue3": "y"
- }
- }
- }
- }
-}
\ No newline at end of file
diff --git a/uni_modules/uni-dateformat/readme.md b/uni_modules/uni-dateformat/readme.md
deleted file mode 100644
index 37ddb6e..0000000
--- a/uni_modules/uni-dateformat/readme.md
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
-### DateFormat 鏃ユ湡鏍煎紡鍖�
-> **缁勪欢鍚嶏細uni-dateformat**
-> 浠g爜鍧楋細 `uDateformat`
-
-
-鏃ユ湡鏍煎紡鍖栫粍浠躲��
-
-### [鏌ョ湅鏂囨。](https://uniapp.dcloud.io/component/uniui/uni-dateformat)
-#### 濡備娇鐢ㄨ繃绋嬩腑鏈変换浣曢棶棰橈紝鎴栬�呮偍瀵箄ni-ui鏈変竴浜涘ソ鐨勫缓璁紝娆㈣繋鍔犲叆 uni-ui 浜ゆ祦缇わ細871950839
\ No newline at end of file
diff --git a/uni_modules/uni-datetime-picker/changelog.md b/uni_modules/uni-datetime-picker/changelog.md
deleted file mode 100644
index 381c9a8..0000000
--- a/uni_modules/uni-datetime-picker/changelog.md
+++ /dev/null
@@ -1,85 +0,0 @@
-## 2.2.2锛�2021-12-10锛�
-- 淇 clear-icon 灞炴�у湪灏忕▼搴忓钩鍙颁笉鐢熸晥鐨� bug
-## 2.2.1锛�2021-12-10锛�
-- 淇 鏃ユ湡鑼冨洿閫夊湪灏忕▼搴忓钩鍙帮紝蹇呴』澶氱偣鍑讳竴娆℃墠鑳藉彇娑堥�変腑鐘舵�佺殑 bug
-## 2.2.0锛�2021-11-19锛�
-- 浼樺寲 缁勪欢UI锛屽苟鎻愪緵璁捐璧勬簮锛岃瑙�:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource)
-- 鏂囨。杩佺Щ锛岃瑙�:[https://uniapp.dcloud.io/component/uniui/uni-datetime-picker](https://uniapp.dcloud.io/component/uniui/uni-datetime-picker)
-## 2.1.5锛�2021-11-09锛�
-- 鏂板 鎻愪緵缁勪欢璁捐璧勬簮锛岀粍浠舵牱寮忚皟鏁�
-## 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 绔繃瀹界殑闂
-## 2.1.0锛�2021-08-09锛�
-- 鏂板 閫傞厤 vue3
-## 2.0.19锛�2021-08-09锛�
-- 鏂板 鏀寔浣滀负 uni-forms 瀛愮粍浠剁浉鍏冲姛鑳�
-- 淇 鍦� uni-forms 涓娇鐢ㄦ椂锛岄�夋嫨鏃堕棿鎶� NAN 閿欒鐨� bug
-## 2.0.18锛�2021-08-05锛�
-- 淇 type 灞炴�у姩鎬佽祴鍊兼棤鏁堢殑 bug
-- 淇 鈥樼‘璁も�欐寜閽 tabbar 閬洊 bug
-- 淇 缁勪欢鏈祴鍊兼椂鑼冨洿閫夊乏銆佸彸鏃ュ巻鐩稿悓鐨� bug
-## 2.0.17锛�2021-08-04锛�
-- 淇 鑼冨洿閫夋湭姝g‘鏄剧ず褰撳墠鍊肩殑 bug
-- 淇 h5 骞冲彴锛堢Щ鍔ㄧ锛夋姤閿� 'cale' of undefined 鐨� bug
-## 2.0.16锛�2021-07-21锛�
-- 鏂板 return-type 灞炴�ф敮鎸佽繑鍥� date 鏃ユ湡瀵硅薄
-## 2.0.15锛�2021-07-14锛�
-- 淇 鍗曢�夋棩鏈熺被鍨嬶紝鍒濆璧嬪�煎悗涓嶅湪褰撳墠鏃ュ巻鐨� bug
-- 鏂板 clearIcon 灞炴�э紝鏄剧ず妗嗙殑娓呯┖鎸夐挳鍙厤缃樉绀洪殣钘忥紙浠� pc 鏈夋晥锛�
-- 浼樺寲 绉诲姩绔Щ闄ゆ樉绀烘鐨勬竻绌烘寜閽紝鏃犲疄闄呯敤閫�
-## 2.0.14锛�2021-07-14锛�
-- 淇 缁勪欢璧嬪�间负绌猴紝鐣岄潰鏈洿鏂扮殑 bug
-- 淇 start 鍜� end 涓嶈兘鍔ㄦ�佽祴鍊肩殑 bug
-- 淇 鑼冨洿閫夌被鍨嬶紝鐢ㄦ埛閫夋嫨鍚庡啀娆¢�夋嫨鍙充晶鏃ュ巻锛堢粨鏉熸棩鏈燂級鏄剧ず涓嶆纭殑 bug
-## 2.0.13锛�2021-07-08锛�
-- 淇 鑼冨洿閫夋嫨涓嶈兘鍔ㄦ�佽祴鍊肩殑 bug
-## 2.0.12锛�2021-07-08锛�
-- 淇 鑼冨洿閫夋嫨鐨勫垵濮嬫椂闂村湪涓�涓湀鍐呮椂锛岄�犳垚鏃犳硶閫夋嫨鐨刡ug
-## 2.0.11锛�2021-07-08锛�
-- 浼樺寲 寮瑰嚭灞傚湪瓒呭嚭瑙嗙獥杈圭紭瀹氫綅涓嶅噯纭殑闂
-## 2.0.10锛�2021-07-08锛�
-- 淇 鑼冨洿璧峰鐐规牱寮忕殑鑳屾櫙鑹蹭笌浠婃棩鏍峰紡鐨勫瓧浣撳墠鏅壊铻嶅悎锛屽鑷存棩鏈熷瓧浣撶湅涓嶆竻鐨� bug
-- 浼樺寲 寮瑰嚭灞傚湪瓒呭嚭瑙嗙獥杈圭紭琚伄鐩栫殑闂
-## 2.0.9锛�2021-07-07锛�
-- 鏂板 maskClick 浜嬩欢
-- 淇 鐗规畩鎯呭喌鏃ュ巻 rpx 甯冨眬閿欒鐨� bug锛宺px -> px
-- 淇 鑼冨洿閫夋嫨鏃舵竻绌鸿繑鍥炲�间笉鍚堢悊鐨刡ug锛孾'', ''] -> []
-## 2.0.8锛�2021-07-07锛�
-- 鏂板 鏃ユ湡鏃堕棿鏄剧ず妗嗘敮鎸佹彃妲�
-## 2.0.7锛�2021-07-01锛�
-- 浼樺寲 娣诲姞 uni-icons 渚濊禆
-## 2.0.6锛�2021-05-22锛�
-- 淇 鍥炬爣鍦ㄥ皬绋嬪簭涓婁笉鏄剧ず鐨� bug
-- 浼樺寲 閲嶅懡鍚嶅紩鐢ㄧ粍浠讹紝閬垮厤娼滃湪缁勪欢鍛藉悕鍐茬獊
-## 2.0.5锛�2021-05-20锛�
-- 浼樺寲 浠g爜鐩綍鎵佸钩鍖�
-## 2.0.4锛�2021-05-12锛�
-- 鏂板 缁勪欢绀轰緥鍦板潃
-## 2.0.3锛�2021-05-10锛�
-- 淇 ios 涓嬩笉璇嗗埆 '-' 鏃ユ湡鏍煎紡鐨� bug
-- 浼樺寲 pc 涓嬪脊鍑哄眰娣诲姞杈规鍜岄槾褰�
-## 2.0.2锛�2021-05-08锛�
-- 淇 鍦� admin 涓幏鍙栧脊鍑哄眰瀹氫綅閿欒鐨刡ug
-## 2.0.1锛�2021-05-08锛�
-- 淇 type 灞炴�у悜涓嬪吋瀹癸紝榛樿鍊间粠 date 鍙樻洿涓� datetime
-## 2.0.0锛�2021-04-30锛�
-- 鏀寔鏃ュ巻褰㈠紡鐨勬棩鏈�+鏃堕棿鐨勮寖鍥撮�夋嫨
- > 娉ㄦ剰锛氭鐗堟湰涓嶅悜鍚庡吋瀹癸紝涓嶅啀鏀寔鍗曠嫭鏃堕棿閫夋嫨锛坱ype=time锛夊強鐩稿叧鐨� hide-second 灞炴�э紙鏃堕棿閫夊彲浣跨敤鍐呯疆缁勪欢 picker锛�
-## 1.0.6锛�2021-03-18锛�
-- 鏂板 hide-second 灞炴�э紝鏃堕棿鏀寔浠呴�夋嫨鏃躲�佸垎
-- 淇 閫夋嫨璺熸樉绀虹殑鏃ユ湡涓嶄竴鏍风殑 bug
-- 淇 chang浜嬩欢瑙﹀彂2娆$殑 bug
-- 淇 鍒嗐�佺 end 鑼冨洿閿欒鐨� bug
-- 浼樺寲 鏇村ソ鐨� nvue 閫傞厤
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
deleted file mode 100644
index b57610f..0000000
--- a/uni_modules/uni-datetime-picker/components/uni-datetime-picker/calendar-item.vue
+++ /dev/null
@@ -1,185 +0,0 @@
-<template>
- <view class="uni-calendar-item__weeks-box" :class="{
- 'uni-calendar-item--disable':weeks.disable,
- 'uni-calendar-item--before-checked-x':weeks.beforeMultiple,
- 'uni-calendar-item--multiple': weeks.multiple,
- 'uni-calendar-item--after-checked-x':weeks.afterMultiple,
- }" @click="choiceDate(weeks)" @mouseenter="handleMousemove(weeks)">
- <view class="uni-calendar-item__weeks-box-item" :class="{
- 'uni-calendar-item--checked':calendar.fullDate === weeks.fullDate && (calendar.userChecked || !checkHover),
- 'uni-calendar-item--checked-range-text': checkHover,
- 'uni-calendar-item--before-checked':weeks.beforeMultiple,
- 'uni-calendar-item--multiple': weeks.multiple,
- 'uni-calendar-item--after-checked':weeks.afterMultiple,
- 'uni-calendar-item--disable':weeks.disable,
- }">
- <text v-if="selected&&weeks.extraInfo" class="uni-calendar-item__weeks-box-circle"></text>
- <text class="uni-calendar-item__weeks-box-text uni-calendar-item__weeks-box-text-disable uni-calendar-item--checked-text">{{weeks.date}}</text>
- </view>
- <view :class="{'uni-calendar-item--isDay': weeks.isDay}"></view>
- </view>
-</template>
-
-<script>
- export default {
- props: {
- weeks: {
- type: Object,
- default () {
- return {}
- }
- },
- calendar: {
- type: Object,
- default: () => {
- return {}
- }
- },
- selected: {
- type: Array,
- default: () => {
- return []
- }
- },
- lunar: {
- type: Boolean,
- default: false
- },
- checkHover: {
- type: Boolean,
- default: false
- }
- },
- methods: {
- choiceDate(weeks) {
- this.$emit('change', weeks)
- },
- handleMousemove(weeks) {
- this.$emit('handleMouse', weeks)
- }
- }
- }
-</script>
-
-<style lang="scss" scoped>
- .uni-calendar-item__weeks-box {
- flex: 1;
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex-direction: column;
- justify-content: center;
- align-items: center;
- margin: 1px 0;
- position: relative;
- }
-
- .uni-calendar-item__weeks-box-text {
- font-size: 14px;
- // font-family: Lato-Bold, Lato;
- font-weight: bold;
- color: #455997;
- }
-
- .uni-calendar-item__weeks-lunar-text {
- font-size: 12px;
- color: #333;
- }
-
- .uni-calendar-item__weeks-box-item {
- position: relative;
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex-direction: column;
- justify-content: center;
- align-items: center;
- width: 40px;
- height: 40px;
- /* #ifdef H5 */
- cursor: pointer;
- /* #endif */
- }
-
-
- .uni-calendar-item__weeks-box-circle {
- position: absolute;
- top: 5px;
- right: 5px;
- width: 8px;
- height: 8px;
- border-radius: 8px;
- background-color: #dd524d;
-
- }
-
- .uni-calendar-item__weeks-box .uni-calendar-item--disable {
- // background-color: rgba(249, 249, 249, $uni-opacity-disabled);
- cursor: default;
- }
-
- .uni-calendar-item--disable .uni-calendar-item__weeks-box-text-disable {
- color: #D1D1D1;
- }
-
- .uni-calendar-item--isDay {
- position: absolute;
- top: 10px;
- right: 17%;
- background-color: #dd524d;
- width:6px;
- height: 6px;
- border-radius: 50%;
- }
-
- .uni-calendar-item--extra {
- color: #dd524d;
- opacity: 0.8;
- }
-
- .uni-calendar-item__weeks-box .uni-calendar-item--checked {
- background-color: #007aff;
- border-radius: 50%;
- box-sizing: border-box;
- border: 3px solid #fff;
- }
-
- .uni-calendar-item--checked .uni-calendar-item--checked-text {
- color: #fff;
- }
-
- .uni-calendar-item--multiple .uni-calendar-item--checked-range-text {
- color: #333;
- }
-
- .uni-calendar-item--multiple {
- background-color: #F6F7FC;
- // color: #fff;
- }
-
- .uni-calendar-item--multiple .uni-calendar-item--before-checked,
- .uni-calendar-item--multiple .uni-calendar-item--after-checked {
- background-color: #409eff;
- border-radius: 50%;
- box-sizing: border-box;
- border: 3px solid #F6F7FC;
- }
-
- .uni-calendar-item--before-checked .uni-calendar-item--checked-text,
- .uni-calendar-item--after-checked .uni-calendar-item--checked-text {
- color: #fff;
- }
-
- .uni-calendar-item--before-checked-x {
- border-top-left-radius: 50px;
- border-bottom-left-radius: 50px;
- box-sizing: border-box;
- background-color: #F6F7FC;
- }
-
- .uni-calendar-item--after-checked-x {
- border-top-right-radius: 50px;
- border-bottom-right-radius: 50px;
- background-color: #F6F7FC;
- }
-</style>
diff --git a/uni_modules/uni-datetime-picker/components/uni-datetime-picker/calendar.js b/uni_modules/uni-datetime-picker/components/uni-datetime-picker/calendar.js
deleted file mode 100644
index b8d7d6f..0000000
--- a/uni_modules/uni-datetime-picker/components/uni-datetime-picker/calendar.js
+++ /dev/null
@@ -1,546 +0,0 @@
-/**
-* @1900-2100鍖洪棿鍐呯殑鍏巻銆佸啘鍘嗕簰杞�
-* @charset UTF-8
-* @github https://github.com/jjonline/calendar.js
-* @Author Jea鏉�(JJonline@JJonline.Cn)
-* @Time 2014-7-21
-* @Time 2016-8-13 Fixed 2033hex銆丄ttribution Annals
-* @Time 2016-9-25 Fixed lunar LeapMonth Param Bug
-* @Time 2017-7-24 Fixed use getTerm Func Param Error.use solar year,NOT lunar year
-* @Version 1.0.3
-* @鍏巻杞啘鍘嗭細calendar.solar2lunar(1987,11,01); //[you can ignore params of prefix 0]
-* @鍐滃巻杞叕鍘嗭細calendar.lunar2solar(1987,09,10); //[you can ignore params of prefix 0]
-*/
-/* eslint-disable */
-var calendar = {
-
- /**
- * 鍐滃巻1900-2100鐨勬鼎澶у皬淇℃伅琛�
- * @Array Of Property
- * @return Hex
- */
- lunarInfo: [0x04bd8, 0x04ae0, 0x0a570, 0x054d5, 0x0d260, 0x0d950, 0x16554, 0x056a0, 0x09ad0, 0x055d2, // 1900-1909
- 0x04ae0, 0x0a5b6, 0x0a4d0, 0x0d250, 0x1d255, 0x0b540, 0x0d6a0, 0x0ada2, 0x095b0, 0x14977, // 1910-1919
- 0x04970, 0x0a4b0, 0x0b4b5, 0x06a50, 0x06d40, 0x1ab54, 0x02b60, 0x09570, 0x052f2, 0x04970, // 1920-1929
- 0x06566, 0x0d4a0, 0x0ea50, 0x06e95, 0x05ad0, 0x02b60, 0x186e3, 0x092e0, 0x1c8d7, 0x0c950, // 1930-1939
- 0x0d4a0, 0x1d8a6, 0x0b550, 0x056a0, 0x1a5b4, 0x025d0, 0x092d0, 0x0d2b2, 0x0a950, 0x0b557, // 1940-1949
- 0x06ca0, 0x0b550, 0x15355, 0x04da0, 0x0a5b0, 0x14573, 0x052b0, 0x0a9a8, 0x0e950, 0x06aa0, // 1950-1959
- 0x0aea6, 0x0ab50, 0x04b60, 0x0aae4, 0x0a570, 0x05260, 0x0f263, 0x0d950, 0x05b57, 0x056a0, // 1960-1969
- 0x096d0, 0x04dd5, 0x04ad0, 0x0a4d0, 0x0d4d4, 0x0d250, 0x0d558, 0x0b540, 0x0b6a0, 0x195a6, // 1970-1979
- 0x095b0, 0x049b0, 0x0a974, 0x0a4b0, 0x0b27a, 0x06a50, 0x06d40, 0x0af46, 0x0ab60, 0x09570, // 1980-1989
- 0x04af5, 0x04970, 0x064b0, 0x074a3, 0x0ea50, 0x06b58, 0x05ac0, 0x0ab60, 0x096d5, 0x092e0, // 1990-1999
- 0x0c960, 0x0d954, 0x0d4a0, 0x0da50, 0x07552, 0x056a0, 0x0abb7, 0x025d0, 0x092d0, 0x0cab5, // 2000-2009
- 0x0a950, 0x0b4a0, 0x0baa4, 0x0ad50, 0x055d9, 0x04ba0, 0x0a5b0, 0x15176, 0x052b0, 0x0a930, // 2010-2019
- 0x07954, 0x06aa0, 0x0ad50, 0x05b52, 0x04b60, 0x0a6e6, 0x0a4e0, 0x0d260, 0x0ea65, 0x0d530, // 2020-2029
- 0x05aa0, 0x076a3, 0x096d0, 0x04afb, 0x04ad0, 0x0a4d0, 0x1d0b6, 0x0d250, 0x0d520, 0x0dd45, // 2030-2039
- 0x0b5a0, 0x056d0, 0x055b2, 0x049b0, 0x0a577, 0x0a4b0, 0x0aa50, 0x1b255, 0x06d20, 0x0ada0, // 2040-2049
- /** Add By JJonline@JJonline.Cn**/
- 0x14b63, 0x09370, 0x049f8, 0x04970, 0x064b0, 0x168a6, 0x0ea50, 0x06b20, 0x1a6c4, 0x0aae0, // 2050-2059
- 0x0a2e0, 0x0d2e3, 0x0c960, 0x0d557, 0x0d4a0, 0x0da50, 0x05d55, 0x056a0, 0x0a6d0, 0x055d4, // 2060-2069
- 0x052d0, 0x0a9b8, 0x0a950, 0x0b4a0, 0x0b6a6, 0x0ad50, 0x055a0, 0x0aba4, 0x0a5b0, 0x052b0, // 2070-2079
- 0x0b273, 0x06930, 0x07337, 0x06aa0, 0x0ad50, 0x14b55, 0x04b60, 0x0a570, 0x054e4, 0x0d160, // 2080-2089
- 0x0e968, 0x0d520, 0x0daa0, 0x16aa6, 0x056d0, 0x04ae0, 0x0a9d4, 0x0a2d0, 0x0d150, 0x0f252, // 2090-2099
- 0x0d520], // 2100
-
- /**
- * 鍏巻姣忎釜鏈堜唤鐨勫ぉ鏁版櫘閫氳〃
- * @Array Of Property
- * @return Number
- */
- solarMonth: [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31],
-
- /**
- * 澶╁共鍦版敮涔嬪ぉ骞查�熸煡琛�
- * @Array Of Property trans["鐢�","涔�","涓�","涓�","鎴�","宸�","搴�","杈�","澹�","鐧�"]
- * @return Cn string
- */
- Gan: ['\u7532', '\u4e59', '\u4e19', '\u4e01', '\u620a', '\u5df1', '\u5e9a', '\u8f9b', '\u58ec', '\u7678'],
-
- /**
- * 澶╁共鍦版敮涔嬪湴鏀�熸煡琛�
- * @Array Of Property
- * @trans["瀛�","涓�","瀵�","鍗�","杈�","宸�","鍗�","鏈�","鐢�","閰�","鎴�","浜�"]
- * @return Cn string
- */
- Zhi: ['\u5b50', '\u4e11', '\u5bc5', '\u536f', '\u8fb0', '\u5df3', '\u5348', '\u672a', '\u7533', '\u9149', '\u620c', '\u4ea5'],
-
- /**
- * 澶╁共鍦版敮涔嬪湴鏀�熸煡琛�<=>鐢熻倴
- * @Array Of Property
- * @trans["榧�","鐗�","铏�","鍏�","榫�","铔�","椹�","缇�","鐚�","楦�","鐙�","鐚�"]
- * @return Cn string
- */
- Animals: ['\u9f20', '\u725b', '\u864e', '\u5154', '\u9f99', '\u86c7', '\u9a6c', '\u7f8a', '\u7334', '\u9e21', '\u72d7', '\u732a'],
-
- /**
- * 24鑺傛皵閫熸煡琛�
- * @Array Of Property
- * @trans["灏忓瘨","澶у瘨","绔嬫槬","闆ㄦ按","鎯婅洶","鏄ュ垎","娓呮槑","璋烽洦","绔嬪","灏忔弧","鑺掔","澶忚嚦","灏忔殤","澶ф殤","绔嬬","澶勬殤","鐧介湶","绉嬪垎","瀵掗湶","闇滈檷","绔嬪啲","灏忛洩","澶ч洩","鍐嚦"]
- * @return Cn string
- */
- solarTerm: ['\u5c0f\u5bd2', '\u5927\u5bd2', '\u7acb\u6625', '\u96e8\u6c34', '\u60ca\u86f0', '\u6625\u5206', '\u6e05\u660e', '\u8c37\u96e8', '\u7acb\u590f', '\u5c0f\u6ee1', '\u8292\u79cd', '\u590f\u81f3', '\u5c0f\u6691', '\u5927\u6691', '\u7acb\u79cb', '\u5904\u6691', '\u767d\u9732', '\u79cb\u5206', '\u5bd2\u9732', '\u971c\u964d', '\u7acb\u51ac', '\u5c0f\u96ea', '\u5927\u96ea', '\u51ac\u81f3'],
-
- /**
- * 1900-2100鍚勫勾鐨�24鑺傛皵鏃ユ湡閫熸煡琛�
- * @Array Of Property
- * @return 0x string For splice
- */
- sTermInfo: ['9778397bd097c36b0b6fc9274c91aa', '97b6b97bd19801ec9210c965cc920e', '97bcf97c3598082c95f8c965cc920f',
- '97bd0b06bdb0722c965ce1cfcc920f', 'b027097bd097c36b0b6fc9274c91aa', '97b6b97bd19801ec9210c965cc920e',
- '97bcf97c359801ec95f8c965cc920f', '97bd0b06bdb0722c965ce1cfcc920f', 'b027097bd097c36b0b6fc9274c91aa',
- '97b6b97bd19801ec9210c965cc920e', '97bcf97c359801ec95f8c965cc920f', '97bd0b06bdb0722c965ce1cfcc920f',
- 'b027097bd097c36b0b6fc9274c91aa', '9778397bd19801ec9210c965cc920e', '97b6b97bd19801ec95f8c965cc920f',
- '97bd09801d98082c95f8e1cfcc920f', '97bd097bd097c36b0b6fc9210c8dc2', '9778397bd197c36c9210c9274c91aa',
- '97b6b97bd19801ec95f8c965cc920e', '97bd09801d98082c95f8e1cfcc920f', '97bd097bd097c36b0b6fc9210c8dc2',
- '9778397bd097c36c9210c9274c91aa', '97b6b97bd19801ec95f8c965cc920e', '97bcf97c3598082c95f8e1cfcc920f',
- '97bd097bd097c36b0b6fc9210c8dc2', '9778397bd097c36c9210c9274c91aa', '97b6b97bd19801ec9210c965cc920e',
- '97bcf97c3598082c95f8c965cc920f', '97bd097bd097c35b0b6fc920fb0722', '9778397bd097c36b0b6fc9274c91aa',
- '97b6b97bd19801ec9210c965cc920e', '97bcf97c3598082c95f8c965cc920f', '97bd097bd097c35b0b6fc920fb0722',
- '9778397bd097c36b0b6fc9274c91aa', '97b6b97bd19801ec9210c965cc920e', '97bcf97c359801ec95f8c965cc920f',
- '97bd097bd097c35b0b6fc920fb0722', '9778397bd097c36b0b6fc9274c91aa', '97b6b97bd19801ec9210c965cc920e',
- '97bcf97c359801ec95f8c965cc920f', '97bd097bd097c35b0b6fc920fb0722', '9778397bd097c36b0b6fc9274c91aa',
- '97b6b97bd19801ec9210c965cc920e', '97bcf97c359801ec95f8c965cc920f', '97bd097bd07f595b0b6fc920fb0722',
- '9778397bd097c36b0b6fc9210c8dc2', '9778397bd19801ec9210c9274c920e', '97b6b97bd19801ec95f8c965cc920f',
- '97bd07f5307f595b0b0bc920fb0722', '7f0e397bd097c36b0b6fc9210c8dc2', '9778397bd097c36c9210c9274c920e',
- '97b6b97bd19801ec95f8c965cc920f', '97bd07f5307f595b0b0bc920fb0722', '7f0e397bd097c36b0b6fc9210c8dc2',
- '9778397bd097c36c9210c9274c91aa', '97b6b97bd19801ec9210c965cc920e', '97bd07f1487f595b0b0bc920fb0722',
- '7f0e397bd097c36b0b6fc9210c8dc2', '9778397bd097c36b0b6fc9274c91aa', '97b6b97bd19801ec9210c965cc920e',
- '97bcf7f1487f595b0b0bb0b6fb0722', '7f0e397bd097c35b0b6fc920fb0722', '9778397bd097c36b0b6fc9274c91aa',
- '97b6b97bd19801ec9210c965cc920e', '97bcf7f1487f595b0b0bb0b6fb0722', '7f0e397bd097c35b0b6fc920fb0722',
- '9778397bd097c36b0b6fc9274c91aa', '97b6b97bd19801ec9210c965cc920e', '97bcf7f1487f531b0b0bb0b6fb0722',
- '7f0e397bd097c35b0b6fc920fb0722', '9778397bd097c36b0b6fc9274c91aa', '97b6b97bd19801ec9210c965cc920e',
- '97bcf7f1487f531b0b0bb0b6fb0722', '7f0e397bd07f595b0b6fc920fb0722', '9778397bd097c36b0b6fc9274c91aa',
- '97b6b97bd19801ec9210c9274c920e', '97bcf7f0e47f531b0b0bb0b6fb0722', '7f0e397bd07f595b0b0bc920fb0722',
- '9778397bd097c36b0b6fc9210c91aa', '97b6b97bd197c36c9210c9274c920e', '97bcf7f0e47f531b0b0bb0b6fb0722',
- '7f0e397bd07f595b0b0bc920fb0722', '9778397bd097c36b0b6fc9210c8dc2', '9778397bd097c36c9210c9274c920e',
- '97b6b7f0e47f531b0723b0b6fb0722', '7f0e37f5307f595b0b0bc920fb0722', '7f0e397bd097c36b0b6fc9210c8dc2',
- '9778397bd097c36b0b70c9274c91aa', '97b6b7f0e47f531b0723b0b6fb0721', '7f0e37f1487f595b0b0bb0b6fb0722',
- '7f0e397bd097c35b0b6fc9210c8dc2', '9778397bd097c36b0b6fc9274c91aa', '97b6b7f0e47f531b0723b0b6fb0721',
- '7f0e27f1487f595b0b0bb0b6fb0722', '7f0e397bd097c35b0b6fc920fb0722', '9778397bd097c36b0b6fc9274c91aa',
- '97b6b7f0e47f531b0723b0b6fb0721', '7f0e27f1487f531b0b0bb0b6fb0722', '7f0e397bd097c35b0b6fc920fb0722',
- '9778397bd097c36b0b6fc9274c91aa', '97b6b7f0e47f531b0723b0b6fb0721', '7f0e27f1487f531b0b0bb0b6fb0722',
- '7f0e397bd097c35b0b6fc920fb0722', '9778397bd097c36b0b6fc9274c91aa', '97b6b7f0e47f531b0723b0b6fb0721',
- '7f0e27f1487f531b0b0bb0b6fb0722', '7f0e397bd07f595b0b0bc920fb0722', '9778397bd097c36b0b6fc9274c91aa',
- '97b6b7f0e47f531b0723b0787b0721', '7f0e27f0e47f531b0b0bb0b6fb0722', '7f0e397bd07f595b0b0bc920fb0722',
- '9778397bd097c36b0b6fc9210c91aa', '97b6b7f0e47f149b0723b0787b0721', '7f0e27f0e47f531b0723b0b6fb0722',
- '7f0e397bd07f595b0b0bc920fb0722', '9778397bd097c36b0b6fc9210c8dc2', '977837f0e37f149b0723b0787b0721',
- '7f07e7f0e47f531b0723b0b6fb0722', '7f0e37f5307f595b0b0bc920fb0722', '7f0e397bd097c35b0b6fc9210c8dc2',
- '977837f0e37f14998082b0787b0721', '7f07e7f0e47f531b0723b0b6fb0721', '7f0e37f1487f595b0b0bb0b6fb0722',
- '7f0e397bd097c35b0b6fc9210c8dc2', '977837f0e37f14998082b0787b06bd', '7f07e7f0e47f531b0723b0b6fb0721',
- '7f0e27f1487f531b0b0bb0b6fb0722', '7f0e397bd097c35b0b6fc920fb0722', '977837f0e37f14998082b0787b06bd',
- '7f07e7f0e47f531b0723b0b6fb0721', '7f0e27f1487f531b0b0bb0b6fb0722', '7f0e397bd097c35b0b6fc920fb0722',
- '977837f0e37f14998082b0787b06bd', '7f07e7f0e47f531b0723b0b6fb0721', '7f0e27f1487f531b0b0bb0b6fb0722',
- '7f0e397bd07f595b0b0bc920fb0722', '977837f0e37f14998082b0787b06bd', '7f07e7f0e47f531b0723b0b6fb0721',
- '7f0e27f1487f531b0b0bb0b6fb0722', '7f0e397bd07f595b0b0bc920fb0722', '977837f0e37f14998082b0787b06bd',
- '7f07e7f0e47f149b0723b0787b0721', '7f0e27f0e47f531b0b0bb0b6fb0722', '7f0e397bd07f595b0b0bc920fb0722',
- '977837f0e37f14998082b0723b06bd', '7f07e7f0e37f149b0723b0787b0721', '7f0e27f0e47f531b0723b0b6fb0722',
- '7f0e397bd07f595b0b0bc920fb0722', '977837f0e37f14898082b0723b02d5', '7ec967f0e37f14998082b0787b0721',
- '7f07e7f0e47f531b0723b0b6fb0722', '7f0e37f1487f595b0b0bb0b6fb0722', '7f0e37f0e37f14898082b0723b02d5',
- '7ec967f0e37f14998082b0787b0721', '7f07e7f0e47f531b0723b0b6fb0722', '7f0e37f1487f531b0b0bb0b6fb0722',
- '7f0e37f0e37f14898082b0723b02d5', '7ec967f0e37f14998082b0787b06bd', '7f07e7f0e47f531b0723b0b6fb0721',
- '7f0e37f1487f531b0b0bb0b6fb0722', '7f0e37f0e37f14898082b072297c35', '7ec967f0e37f14998082b0787b06bd',
- '7f07e7f0e47f531b0723b0b6fb0721', '7f0e27f1487f531b0b0bb0b6fb0722', '7f0e37f0e37f14898082b072297c35',
- '7ec967f0e37f14998082b0787b06bd', '7f07e7f0e47f531b0723b0b6fb0721', '7f0e27f1487f531b0b0bb0b6fb0722',
- '7f0e37f0e366aa89801eb072297c35', '7ec967f0e37f14998082b0787b06bd', '7f07e7f0e47f149b0723b0787b0721',
- '7f0e27f1487f531b0b0bb0b6fb0722', '7f0e37f0e366aa89801eb072297c35', '7ec967f0e37f14998082b0723b06bd',
- '7f07e7f0e47f149b0723b0787b0721', '7f0e27f0e47f531b0723b0b6fb0722', '7f0e37f0e366aa89801eb072297c35',
- '7ec967f0e37f14998082b0723b06bd', '7f07e7f0e37f14998083b0787b0721', '7f0e27f0e47f531b0723b0b6fb0722',
- '7f0e37f0e366aa89801eb072297c35', '7ec967f0e37f14898082b0723b02d5', '7f07e7f0e37f14998082b0787b0721',
- '7f07e7f0e47f531b0723b0b6fb0722', '7f0e36665b66aa89801e9808297c35', '665f67f0e37f14898082b0723b02d5',
- '7ec967f0e37f14998082b0787b0721', '7f07e7f0e47f531b0723b0b6fb0722', '7f0e36665b66a449801e9808297c35',
- '665f67f0e37f14898082b0723b02d5', '7ec967f0e37f14998082b0787b06bd', '7f07e7f0e47f531b0723b0b6fb0721',
- '7f0e36665b66a449801e9808297c35', '665f67f0e37f14898082b072297c35', '7ec967f0e37f14998082b0787b06bd',
- '7f07e7f0e47f531b0723b0b6fb0721', '7f0e26665b66a449801e9808297c35', '665f67f0e37f1489801eb072297c35',
- '7ec967f0e37f14998082b0787b06bd', '7f07e7f0e47f531b0723b0b6fb0721', '7f0e27f1487f531b0b0bb0b6fb0722'],
-
- /**
- * 鏁板瓧杞腑鏂囬�熸煡琛�
- * @Array Of Property
- * @trans ['鏃�','涓�','浜�','涓�','鍥�','浜�','鍏�','涓�','鍏�','涔�','鍗�']
- * @return Cn string
- */
- nStr1: ['\u65e5', '\u4e00', '\u4e8c', '\u4e09', '\u56db', '\u4e94', '\u516d', '\u4e03', '\u516b', '\u4e5d', '\u5341'],
-
- /**
- * 鏃ユ湡杞啘鍘嗙О鍛奸�熸煡琛�
- * @Array Of Property
- * @trans ['鍒�','鍗�','寤�','鍗�']
- * @return Cn string
- */
- nStr2: ['\u521d', '\u5341', '\u5eff', '\u5345'],
-
- /**
- * 鏈堜唤杞啘鍘嗙О鍛奸�熸煡琛�
- * @Array Of Property
- * @trans ['姝�','涓�','浜�','涓�','鍥�','浜�','鍏�','涓�','鍏�','涔�','鍗�','鍐�','鑵�']
- * @return Cn string
- */
- nStr3: ['\u6b63', '\u4e8c', '\u4e09', '\u56db', '\u4e94', '\u516d', '\u4e03', '\u516b', '\u4e5d', '\u5341', '\u51ac', '\u814a'],
-
- /**
- * 杩斿洖鍐滃巻y骞翠竴鏁村勾鐨勬�诲ぉ鏁�
- * @param lunar Year
- * @return Number
- * @eg:var count = calendar.lYearDays(1987) ;//count=387
- */
- lYearDays: function (y) {
- var i; var sum = 348
- for (i = 0x8000; i > 0x8; i >>= 1) { sum += (this.lunarInfo[y - 1900] & i) ? 1 : 0 }
- return (sum + this.leapDays(y))
- },
-
- /**
- * 杩斿洖鍐滃巻y骞撮棸鏈堟槸鍝釜鏈堬紱鑻骞存病鏈夐棸鏈� 鍒欒繑鍥�0
- * @param lunar Year
- * @return Number (0-12)
- * @eg:var leapMonth = calendar.leapMonth(1987) ;//leapMonth=6
- */
- leapMonth: function (y) { // 闂板瓧缂栫爜 \u95f0
- return (this.lunarInfo[y - 1900] & 0xf)
- },
-
- /**
- * 杩斿洖鍐滃巻y骞撮棸鏈堢殑澶╂暟 鑻ヨ骞存病鏈夐棸鏈堝垯杩斿洖0
- * @param lunar Year
- * @return Number (0銆�29銆�30)
- * @eg:var leapMonthDay = calendar.leapDays(1987) ;//leapMonthDay=29
- */
- leapDays: function (y) {
- if (this.leapMonth(y)) {
- return ((this.lunarInfo[y - 1900] & 0x10000) ? 30 : 29)
- }
- return (0)
- },
-
- /**
- * 杩斿洖鍐滃巻y骞磎鏈堬紙闈為棸鏈堬級鐨勬�诲ぉ鏁帮紝璁$畻m涓洪棸鏈堟椂鐨勫ぉ鏁拌浣跨敤leapDays鏂规硶
- * @param lunar Year
- * @return Number (-1銆�29銆�30)
- * @eg:var MonthDay = calendar.monthDays(1987,9) ;//MonthDay=29
- */
- monthDays: function (y, m) {
- if (m > 12 || m < 1) { return -1 }// 鏈堜唤鍙傛暟浠�1鑷�12锛屽弬鏁伴敊璇繑鍥�-1
- return ((this.lunarInfo[y - 1900] & (0x10000 >> m)) ? 30 : 29)
- },
-
- /**
- * 杩斿洖鍏巻(!)y骞磎鏈堢殑澶╂暟
- * @param solar Year
- * @return Number (-1銆�28銆�29銆�30銆�31)
- * @eg:var solarMonthDay = calendar.leapDays(1987) ;//solarMonthDay=30
- */
- solarDays: function (y, m) {
- if (m > 12 || m < 1) { return -1 } // 鑻ュ弬鏁伴敊璇� 杩斿洖-1
- var ms = m - 1
- if (ms == 1) { // 2鏈堜唤鐨勯棸骞宠寰嬫祴绠楀悗纭杩斿洖28鎴�29
- return (((y % 4 == 0) && (y % 100 != 0) || (y % 400 == 0)) ? 29 : 28)
- } else {
- return (this.solarMonth[ms])
- }
- },
-
- /**
- * 鍐滃巻骞翠唤杞崲涓哄共鏀邯骞�
- * @param lYear 鍐滃巻骞寸殑骞翠唤鏁�
- * @return Cn string
- */
- toGanZhiYear: function (lYear) {
- var ganKey = (lYear - 3) % 10
- var zhiKey = (lYear - 3) % 12
- if (ganKey == 0) ganKey = 10// 濡傛灉浣欐暟涓�0鍒欎负鏈�鍚庝竴涓ぉ骞�
- if (zhiKey == 0) zhiKey = 12// 濡傛灉浣欐暟涓�0鍒欎负鏈�鍚庝竴涓湴鏀�
- return this.Gan[ganKey - 1] + this.Zhi[zhiKey - 1]
- },
-
- /**
- * 鍏巻鏈堛�佹棩鍒ゆ柇鎵�灞炴槦搴�
- * @param cMonth [description]
- * @param cDay [description]
- * @return Cn string
- */
- toAstro: function (cMonth, cDay) {
- var s = '\u9b54\u7faf\u6c34\u74f6\u53cc\u9c7c\u767d\u7f8a\u91d1\u725b\u53cc\u5b50\u5de8\u87f9\u72ee\u5b50\u5904\u5973\u5929\u79e4\u5929\u874e\u5c04\u624b\u9b54\u7faf'
- var arr = [20, 19, 21, 21, 21, 22, 23, 23, 23, 23, 22, 22]
- return s.substr(cMonth * 2 - (cDay < arr[cMonth - 1] ? 2 : 0), 2) + '\u5ea7'// 搴�
- },
-
- /**
- * 浼犲叆offset鍋忕Щ閲忚繑鍥炲共鏀�
- * @param offset 鐩稿鐢插瓙鐨勫亸绉婚噺
- * @return Cn string
- */
- toGanZhi: function (offset) {
- return this.Gan[offset % 10] + this.Zhi[offset % 12]
- },
-
- /**
- * 浼犲叆鍏巻(!)y骞磋幏寰楄骞寸n涓妭姘旂殑鍏巻鏃ユ湡
- * @param y鍏巻骞�(1900-2100)锛沶浜屽崄鍥涜妭姘斾腑鐨勭鍑犱釜鑺傛皵(1~24)锛涗粠n=1(灏忓瘨)绠楄捣
- * @return day Number
- * @eg:var _24 = calendar.getTerm(1987,3) ;//_24=4;鎰忓嵆1987骞�2鏈�4鏃ョ珛鏄�
- */
- getTerm: function (y, n) {
- if (y < 1900 || y > 2100) { return -1 }
- if (n < 1 || n > 24) { return -1 }
- var _table = this.sTermInfo[y - 1900]
- var _info = [
- parseInt('0x' + _table.substr(0, 5)).toString(),
- parseInt('0x' + _table.substr(5, 5)).toString(),
- parseInt('0x' + _table.substr(10, 5)).toString(),
- parseInt('0x' + _table.substr(15, 5)).toString(),
- parseInt('0x' + _table.substr(20, 5)).toString(),
- parseInt('0x' + _table.substr(25, 5)).toString()
- ]
- var _calday = [
- _info[0].substr(0, 1),
- _info[0].substr(1, 2),
- _info[0].substr(3, 1),
- _info[0].substr(4, 2),
-
- _info[1].substr(0, 1),
- _info[1].substr(1, 2),
- _info[1].substr(3, 1),
- _info[1].substr(4, 2),
-
- _info[2].substr(0, 1),
- _info[2].substr(1, 2),
- _info[2].substr(3, 1),
- _info[2].substr(4, 2),
-
- _info[3].substr(0, 1),
- _info[3].substr(1, 2),
- _info[3].substr(3, 1),
- _info[3].substr(4, 2),
-
- _info[4].substr(0, 1),
- _info[4].substr(1, 2),
- _info[4].substr(3, 1),
- _info[4].substr(4, 2),
-
- _info[5].substr(0, 1),
- _info[5].substr(1, 2),
- _info[5].substr(3, 1),
- _info[5].substr(4, 2)
- ]
- return parseInt(_calday[n - 1])
- },
-
- /**
- * 浼犲叆鍐滃巻鏁板瓧鏈堜唤杩斿洖姹夎閫氫織琛ㄧず娉�
- * @param lunar month
- * @return Cn string
- * @eg:var cnMonth = calendar.toChinaMonth(12) ;//cnMonth='鑵婃湀'
- */
- toChinaMonth: function (m) { // 鏈� => \u6708
- if (m > 12 || m < 1) { return -1 } // 鑻ュ弬鏁伴敊璇� 杩斿洖-1
- var s = this.nStr3[m - 1]
- s += '\u6708'// 鍔犱笂鏈堝瓧
- return s
- },
-
- /**
- * 浼犲叆鍐滃巻鏃ユ湡鏁板瓧杩斿洖姹夊瓧琛ㄧず娉�
- * @param lunar day
- * @return Cn string
- * @eg:var cnDay = calendar.toChinaDay(21) ;//cnMonth='寤夸竴'
- */
- toChinaDay: function (d) { // 鏃� => \u65e5
- var s
- switch (d) {
- case 10:
- s = '\u521d\u5341'; break
- case 20:
- s = '\u4e8c\u5341'; break
- break
- case 30:
- s = '\u4e09\u5341'; break
- break
- default :
- s = this.nStr2[Math.floor(d / 10)]
- s += this.nStr1[d % 10]
- }
- return (s)
- },
-
- /**
- * 骞翠唤杞敓鑲朳!浠呰兘澶ц嚧杞崲] => 绮剧‘鍒掑垎鐢熻倴鍒嗙晫绾挎槸鈥滅珛鏄モ��
- * @param y year
- * @return Cn string
- * @eg:var animal = calendar.getAnimal(1987) ;//animal='鍏�'
- */
- getAnimal: function (y) {
- return this.Animals[(y - 4) % 12]
- },
-
- /**
- * 浼犲叆闃冲巻骞存湀鏃ヨ幏寰楄缁嗙殑鍏巻銆佸啘鍘唎bject淇℃伅 <=>JSON
- * @param y solar year
- * @param m solar month
- * @param d solar day
- * @return JSON object
- * @eg:console.log(calendar.solar2lunar(1987,11,01));
- */
- solar2lunar: function (y, m, d) { // 鍙傛暟鍖洪棿1900.1.31~2100.12.31
- // 骞翠唤闄愬畾銆佷笂闄�
- if (y < 1900 || y > 2100) {
- return -1// undefined杞崲涓烘暟瀛楀彉涓篘aN
- }
- // 鍏巻浼犲弬鏈�涓嬮檺
- if (y == 1900 && m == 1 && d < 31) {
- return -1
- }
- // 鏈紶鍙� 鑾峰緱褰撳ぉ
- if (!y) {
- var objDate = new Date()
- } else {
- var objDate = new Date(y, parseInt(m) - 1, d)
- }
- var i; var leap = 0; var temp = 0
- // 淇ymd鍙傛暟
- var y = objDate.getFullYear()
- var m = objDate.getMonth() + 1
- var d = objDate.getDate()
- var offset = (Date.UTC(objDate.getFullYear(), objDate.getMonth(), objDate.getDate()) - Date.UTC(1900, 0, 31)) / 86400000
- for (i = 1900; i < 2101 && offset > 0; i++) {
- temp = this.lYearDays(i)
- offset -= temp
- }
- if (offset < 0) {
- offset += temp; i--
- }
-
- // 鏄惁浠婂ぉ
- var isTodayObj = new Date()
- var isToday = false
- if (isTodayObj.getFullYear() == y && isTodayObj.getMonth() + 1 == m && isTodayObj.getDate() == d) {
- isToday = true
- }
- // 鏄熸湡鍑�
- var nWeek = objDate.getDay()
- var cWeek = this.nStr1[nWeek]
- // 鏁板瓧琛ㄧず鍛ㄥ嚑椤哄簲澶╂湞鍛ㄤ竴寮�濮嬬殑鎯緥
- if (nWeek == 0) {
- nWeek = 7
- }
- // 鍐滃巻骞�
- var year = i
- var leap = this.leapMonth(i) // 闂板摢涓湀
- var isLeap = false
-
- // 鏁堥獙闂版湀
- for (i = 1; i < 13 && offset > 0; i++) {
- // 闂版湀
- if (leap > 0 && i == (leap + 1) && isLeap == false) {
- --i
- isLeap = true; temp = this.leapDays(year) // 璁$畻鍐滃巻闂版湀澶╂暟
- } else {
- temp = this.monthDays(year, i)// 璁$畻鍐滃巻鏅�氭湀澶╂暟
- }
- // 瑙i櫎闂版湀
- if (isLeap == true && i == (leap + 1)) { isLeap = false }
- offset -= temp
- }
- // 闂版湀瀵艰嚧鏁扮粍涓嬫爣閲嶅彔鍙栧弽
- if (offset == 0 && leap > 0 && i == leap + 1) {
- if (isLeap) {
- isLeap = false
- } else {
- isLeap = true; --i
- }
- }
- if (offset < 0) {
- offset += temp; --i
- }
- // 鍐滃巻鏈�
- var month = i
- // 鍐滃巻鏃�
- var day = offset + 1
- // 澶╁共鍦版敮澶勭悊
- var sm = m - 1
- var gzY = this.toGanZhiYear(year)
-
- // 褰撴湀鐨勪袱涓妭姘�
- // bugfix-2017-7-24 11:03:38 use lunar Year Param `y` Not `year`
- var firstNode = this.getTerm(y, (m * 2 - 1))// 杩斿洖褰撴湀銆岃妭銆嶄负鍑犳棩寮�濮�
- var secondNode = this.getTerm(y, (m * 2))// 杩斿洖褰撴湀銆岃妭銆嶄负鍑犳棩寮�濮�
-
- // 渚濇嵁12鑺傛皵淇骞叉敮鏈�
- var gzM = this.toGanZhi((y - 1900) * 12 + m + 11)
- if (d >= firstNode) {
- gzM = this.toGanZhi((y - 1900) * 12 + m + 12)
- }
-
- // 浼犲叆鐨勬棩鏈熺殑鑺傛皵涓庡惁
- var isTerm = false
- var Term = null
- if (firstNode == d) {
- isTerm = true
- Term = this.solarTerm[m * 2 - 2]
- }
- if (secondNode == d) {
- isTerm = true
- Term = this.solarTerm[m * 2 - 1]
- }
- // 鏃ユ煴 褰撴湀涓�鏃ヤ笌 1900/1/1 鐩稿樊澶╂暟
- var dayCyclical = Date.UTC(y, sm, 1, 0, 0, 0, 0) / 86400000 + 25567 + 10
- var gzD = this.toGanZhi(dayCyclical + d - 1)
- // 璇ユ棩鏈熸墍灞炵殑鏄熷骇
- var astro = this.toAstro(m, d)
-
- return { 'lYear': year, 'lMonth': month, 'lDay': day, 'Animal': this.getAnimal(year), 'IMonthCn': (isLeap ? '\u95f0' : '') + this.toChinaMonth(month), 'IDayCn': this.toChinaDay(day), 'cYear': y, 'cMonth': m, 'cDay': d, 'gzYear': gzY, 'gzMonth': gzM, 'gzDay': gzD, 'isToday': isToday, 'isLeap': isLeap, 'nWeek': nWeek, 'ncWeek': '\u661f\u671f' + cWeek, 'isTerm': isTerm, 'Term': Term, 'astro': astro }
- },
-
- /**
- * 浼犲叆鍐滃巻骞存湀鏃ヤ互鍙婁紶鍏ョ殑鏈堜唤鏄惁闂版湀鑾峰緱璇︾粏鐨勫叕鍘嗐�佸啘鍘唎bject淇℃伅 <=>JSON
- * @param y lunar year
- * @param m lunar month
- * @param d lunar day
- * @param isLeapMonth lunar month is leap or not.[濡傛灉鏄啘鍘嗛棸鏈堢鍥涗釜鍙傛暟璧嬪�紅rue鍗冲彲]
- * @return JSON object
- * @eg:console.log(calendar.lunar2solar(1987,9,10));
- */
- lunar2solar: function (y, m, d, isLeapMonth) { // 鍙傛暟鍖洪棿1900.1.31~2100.12.1
- var isLeapMonth = !!isLeapMonth
- var leapOffset = 0
- var leapMonth = this.leapMonth(y)
- var leapDay = this.leapDays(y)
- if (isLeapMonth && (leapMonth != m)) { return -1 }// 浼犲弬瑕佹眰璁$畻璇ラ棸鏈堝叕鍘� 浣嗚骞村緱鍑虹殑闂版湀涓庝紶鍙傜殑鏈堜唤骞朵笉鍚�
- if (y == 2100 && m == 12 && d > 1 || y == 1900 && m == 1 && d < 31) { return -1 }// 瓒呭嚭浜嗘渶澶ф瀬闄愬��
- var day = this.monthDays(y, m)
- var _day = day
- // bugFix 2016-9-25
- // if month is leap, _day use leapDays method
- if (isLeapMonth) {
- _day = this.leapDays(y, m)
- }
- if (y < 1900 || y > 2100 || d > _day) { return -1 }// 鍙傛暟鍚堟硶鎬ф晥楠�
-
- // 璁$畻鍐滃巻鐨勬椂闂村樊
- var offset = 0
- for (var i = 1900; i < y; i++) {
- offset += this.lYearDays(i)
- }
- var leap = 0; var isAdd = false
- for (var i = 1; i < m; i++) {
- leap = this.leapMonth(y)
- if (!isAdd) { // 澶勭悊闂版湀
- if (leap <= i && leap > 0) {
- offset += this.leapDays(y); isAdd = true
- }
- }
- offset += this.monthDays(y, i)
- }
- // 杞崲闂版湀鍐滃巻 闇�琛ュ厖璇ュ勾闂版湀鐨勫墠涓�涓湀鐨勬椂宸�
- if (isLeapMonth) { offset += day }
- // 1900骞村啘鍘嗘鏈堜竴鏃ョ殑鍏巻鏃堕棿涓�1900骞�1鏈�30鏃�0鏃�0鍒�0绉�(璇ユ椂闂翠篃鏄湰鍐滃巻鐨勬渶寮�濮嬭捣濮嬬偣)
- var stmap = Date.UTC(1900, 1, 30, 0, 0, 0)
- var calObj = new Date((offset + d - 31) * 86400000 + stmap)
- var cY = calObj.getUTCFullYear()
- var cM = calObj.getUTCMonth() + 1
- var cD = calObj.getUTCDate()
-
- return this.solar2lunar(cY, cM, cD)
- }
-}
-
-export default calendar
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
deleted file mode 100644
index c48a096..0000000
--- a/uni_modules/uni-datetime-picker/components/uni-datetime-picker/calendar.vue
+++ /dev/null
@@ -1,898 +0,0 @@
-<template>
- <view class="uni-calendar" @mouseleave="leaveCale">
- <view v-if="!insert&&show" class="uni-calendar__mask" :class="{'uni-calendar--mask-show':aniMaskShow}"
- @click="clean"></view>
- <view v-if="insert || show" class="uni-calendar__content"
- :class="{'uni-calendar--fixed':!insert,'uni-calendar--ani-show':aniMaskShow, 'uni-calendar__content-mobile': aniMaskShow}">
- <view class="uni-calendar__header" :class="{'uni-calendar__header-mobile' :!insert}">
- <view v-if="left" class="uni-calendar__header-btn-box" @click.stop="pre">
- <view class="uni-calendar__header-btn uni-calendar--left"></view>
- </view>
- <picker mode="date" :value="date" fields="month" @change="bindDateChange">
- <text
- class="uni-calendar__header-text">{{ (nowDate.year||'') + ' 骞� ' + ( nowDate.month||'') +' 鏈�'}}</text>
- </picker>
- <view v-if="right" class="uni-calendar__header-btn-box" @click.stop="next">
- <view class="uni-calendar__header-btn uni-calendar--right"></view>
- </view>
- <view v-if="!insert" class="dialog-close" @click="clean">
- <view class="dialog-close-plus" data-id="close"></view>
- <view class="dialog-close-plus dialog-close-rotate" data-id="close"></view>
- </view>
-
- <!-- <text class="uni-calendar__backtoday" @click="backtoday">鍥炲埌浠婂ぉ</text> -->
- </view>
- <view class="uni-calendar__box">
- <view v-if="showMonth" class="uni-calendar__box-bg">
- <text class="uni-calendar__box-bg-text">{{nowDate.month}}</text>
- </view>
- <view class="uni-calendar__weeks" style="padding-bottom: 7px;">
- <view class="uni-calendar__weeks-day">
- <text class="uni-calendar__weeks-day-text">{{SUNText}}</text>
- </view>
- <view class="uni-calendar__weeks-day">
- <text class="uni-calendar__weeks-day-text">{{monText}}</text>
- </view>
- <view class="uni-calendar__weeks-day">
- <text class="uni-calendar__weeks-day-text">{{TUEText}}</text>
- </view>
- <view class="uni-calendar__weeks-day">
- <text class="uni-calendar__weeks-day-text">{{WEDText}}</text>
- </view>
- <view class="uni-calendar__weeks-day">
- <text class="uni-calendar__weeks-day-text">{{THUText}}</text>
- </view>
- <view class="uni-calendar__weeks-day">
- <text class="uni-calendar__weeks-day-text">{{FRIText}}</text>
- </view>
- <view class="uni-calendar__weeks-day">
- <text class="uni-calendar__weeks-day-text">{{SATText}}</text>
- </view>
- </view>
- <view class="uni-calendar__weeks" v-for="(item,weekIndex) in weeks" :key="weekIndex">
- <view class="uni-calendar__weeks-item" v-for="(weeks,weeksIndex) in item" :key="weeksIndex">
- <calendar-item class="uni-calendar-item--hook" :weeks="weeks" :calendar="calendar"
- :selected="selected" :lunar="lunar" :checkHover="range" @change="choiceDate"
- @handleMouse="handleMouse">
- </calendar-item>
- </view>
- </view>
- </view>
- <view v-if="!insert && !range && typeHasTime" class="uni-date-changed uni-calendar--fixed-top"
- style="padding: 0 80px;">
- <view class="uni-date-changed--time-date">{{tempSingleDate ? tempSingleDate : selectDateText}}</view>
- <time-picker type="time" :start="reactStartTime" :end="reactEndTime" v-model="time"
- :disabled="!tempSingleDate" :border="false" :hide-second="hideSecond" class="time-picker-style">
- </time-picker>
- </view>
-
- <view v-if="!insert && range && typeHasTime" class="uni-date-changed uni-calendar--fixed-top">
- <view class="uni-date-changed--time-start">
- <view class="uni-date-changed--time-date">{{tempRange.before ? tempRange.before : startDateText}}
- </view>
- <time-picker type="time" :start="reactStartTime" v-model="timeRange.startTime" :border="false"
- :hide-second="hideSecond" :disabled="!tempRange.before" class="time-picker-style">
- </time-picker>
- </view>
- <uni-icons type="arrowthinright" color="#999" style="line-height: 50px;"></uni-icons>
- <view class="uni-date-changed--time-end">
- <view class="uni-date-changed--time-date">{{tempRange.after ? tempRange.after : endDateText}}</view>
- <time-picker type="time" :end="reactEndTime" v-model="timeRange.endTime" :border="false"
- :hide-second="hideSecond" :disabled="!tempRange.after" class="time-picker-style">
- </time-picker>
- </view>
- </view>
- <view v-if="!insert" class="uni-date-changed uni-date-btn--ok">
- <!-- <view class="uni-calendar__header-btn-box">
- <text class="uni-calendar__button-text uni-calendar--fixed-width">{{okText}}</text>
- </view> -->
- <view class="uni-datetime-picker--btn" @click="confirm">纭</view>
- </view>
- </view>
- </view>
-</template>
-
-<script>
- import Calendar from './util.js';
- import calendarItem from './calendar-item.vue'
- import timePicker from './time-picker.vue'
- import {
- initVueI18n
- } from '@dcloudio/uni-i18n'
- import messages from './i18n/index.js'
- const {
- t
- } = initVueI18n(messages)
- /**
- * Calendar 鏃ュ巻
- * @description 鏃ュ巻缁勪欢鍙互鏌ョ湅鏃ユ湡锛岄�夋嫨浠绘剰鑼冨洿鍐呯殑鏃ユ湡锛屾墦鐐规搷浣溿�傚父鐢ㄥ満鏅锛氶厭搴楁棩鏈熼璁€�佺伀杞︽満绁ㄩ�夋嫨璐拱鏃ユ湡銆佷笂涓嬬彮鎵撳崱绛�
- * @tutorial https://ext.dcloud.net.cn/plugin?id=56
- * @property {String} date 鑷畾涔夊綋鍓嶆椂闂达紝榛樿涓轰粖澶�
- * @property {Boolean} lunar 鏄剧ず鍐滃巻
- * @property {String} startDate 鏃ユ湡閫夋嫨鑼冨洿-寮�濮嬫棩鏈�
- * @property {String} endDate 鏃ユ湡閫夋嫨鑼冨洿-缁撴潫鏃ユ湡
- * @property {Boolean} range 鑼冨洿閫夋嫨
- * @property {Boolean} insert = [true|false] 鎻掑叆妯″紡,榛樿涓篺alse
- * @value true 寮圭獥妯″紡
- * @value false 鎻掑叆妯″紡
- * @property {Boolean} clearDate = [true|false] 寮圭獥妯″紡鏄惁娓呯┖涓婃閫夋嫨鍐呭
- * @property {Array} selected 鎵撶偣锛屾湡寰呮牸寮廩{date: '2019-06-27', info: '绛惧埌', data: { custom: '鑷畾涔変俊鎭�', name: '鑷畾涔夋秷鎭ご',xxx:xxx... }}]
- * @property {Boolean} showMonth 鏄惁閫夋嫨鏈堜唤涓鸿儗鏅�
- * @event {Function} change 鏃ユ湡鏀瑰彉锛宍insert :ture` 鏃剁敓鏁�
- * @event {Function} confirm 纭閫夋嫨`insert :false` 鏃剁敓鏁�
- * @event {Function} monthSwitch 鍒囨崲鏈堜唤鏃惰Е鍙�
- * @example <uni-calendar :insert="true":lunar="true" :start-date="'2019-3-2'":end-date="'2019-5-20'"@change="change" />
- */
- export default {
- components: {
- calendarItem,
- timePicker
- },
- props: {
- date: {
- type: String,
- default: ''
- },
- defTime: {
- type: [String, Object],
- default: ''
- },
- selectableTimes: {
- type: [Object],
- default () {
- return {}
- }
- },
- selected: {
- type: Array,
- default () {
- return []
- }
- },
- lunar: {
- type: Boolean,
- default: false
- },
- startDate: {
- type: String,
- default: ''
- },
- endDate: {
- type: String,
- default: ''
- },
- range: {
- type: Boolean,
- default: false
- },
- typeHasTime: {
- type: Boolean,
- default: false
- },
- insert: {
- type: Boolean,
- default: true
- },
- showMonth: {
- type: Boolean,
- default: true
- },
- clearDate: {
- type: Boolean,
- default: true
- },
- left: {
- type: Boolean,
- default: true
- },
- right: {
- type: Boolean,
- default: true
- },
- checkHover: {
- type: Boolean,
- default: true
- },
- hideSecond: {
- type: [Boolean],
- default: false
- },
- pleStatus: {
- type: Object,
- default () {
- return {
- before: '',
- after: '',
- data: [],
- fulldate: ''
- }
- }
- }
- },
- data() {
- return {
- show: false,
- weeks: [],
- calendar: {},
- nowDate: '',
- aniMaskShow: false,
- firstEnter: true,
- time: '',
- timeRange: {
- startTime: '',
- endTime: ''
- },
- tempSingleDate: '',
- tempRange: {
- before: '',
- after: ''
- }
- }
- },
- watch: {
- date: {
- immediate: true,
- handler(newVal, oldVal) {
- if (!this.range) {
- this.tempSingleDate = newVal
- setTimeout(() => {
- this.init(newVal)
- }, 100)
- }
- }
- },
- defTime: {
- immediate: true,
- handler(newVal, oldVal) {
- if (!this.range) {
- this.time = newVal
- } else {
- // console.log('-----', newVal);
- this.timeRange.startTime = newVal.start
- this.timeRange.endTime = newVal.end
- }
- }
- },
- startDate(val) {
- this.cale.resetSatrtDate(val)
- this.cale.setDate(this.nowDate.fullDate)
- this.weeks = this.cale.weeks
- },
- endDate(val) {
- this.cale.resetEndDate(val)
- this.cale.setDate(this.nowDate.fullDate)
- this.weeks = this.cale.weeks
- },
- selected(newVal) {
- this.cale.setSelectInfo(this.nowDate.fullDate, newVal)
- this.weeks = this.cale.weeks
- },
- pleStatus: {
- immediate: true,
- handler(newVal, oldVal) {
- const {
- before,
- after,
- fulldate,
- which
- } = newVal
- this.tempRange.before = before
- this.tempRange.after = after
- setTimeout(() => {
- if (fulldate) {
- this.cale.setHoverMultiple(fulldate)
- if (before && after) {
- this.cale.lastHover = true
- if (this.rangeWithinMonth(after, before)) return
- this.setDate(before)
- } else {
- this.cale.setMultiple(fulldate)
- this.setDate(this.nowDate.fullDate)
- this.calendar.fullDate = ''
- this.cale.lastHover = false
- }
- } else {
- this.cale.setDefaultMultiple(before, after)
- if (which === 'left') {
- this.setDate(before)
- this.weeks = this.cale.weeks
- } else {
- this.setDate(after)
- this.weeks = this.cale.weeks
- }
- this.cale.lastHover = true
- }
- }, 16)
- }
- }
- },
- computed: {
- reactStartTime() {
- const activeDate = this.range ? this.tempRange.before : this.calendar.fullDate
- const res = activeDate === this.startDate ? this.selectableTimes.start : ''
- return res
- },
- reactEndTime() {
- const activeDate = this.range ? this.tempRange.after : this.calendar.fullDate
- const res = activeDate === this.endDate ? this.selectableTimes.end : ''
- return res
- },
- /**
- * for i18n
- */
- selectDateText() {
- return t("uni-datetime-picker.selectDate")
- },
- startDateText() {
- return this.startPlaceholder || t("uni-datetime-picker.startDate")
- },
- endDateText() {
- return this.endPlaceholder || t("uni-datetime-picker.endDate")
- },
- okText() {
- return t("uni-datetime-picker.ok")
- },
- monText() {
- return t("uni-calender.MON")
- },
- TUEText() {
- return t("uni-calender.TUE")
- },
- WEDText() {
- return t("uni-calender.WED")
- },
- THUText() {
- return t("uni-calender.THU")
- },
- FRIText() {
- return t("uni-calender.FRI")
- },
- SATText() {
- return t("uni-calender.SAT")
- },
- SUNText() {
- return t("uni-calender.SUN")
- },
- },
- created() {
- // 鑾峰彇鏃ュ巻鏂规硶瀹炰緥
- this.cale = new Calendar({
- // date: new Date(),
- selected: this.selected,
- startDate: this.startDate,
- endDate: this.endDate,
- range: this.range,
- // multipleStatus: this.pleStatus
- })
- // 閫変腑鏌愪竴澶�
- // this.cale.setDate(this.date)
- this.init(this.date)
- // this.setDay
- },
- methods: {
- leaveCale() {
- this.firstEnter = true
- },
- handleMouse(weeks) {
- if (weeks.disable) return
- if (this.cale.lastHover) return
- let {
- before,
- after
- } = this.cale.multipleStatus
- if (!before) return
- this.calendar = weeks
- // 璁剧疆鑼冨洿閫�
- this.cale.setHoverMultiple(this.calendar.fullDate)
- this.weeks = this.cale.weeks
- // hover鏃讹紝杩涘叆涓�涓棩鍘嗭紝鏇存柊鍙︿竴涓�
- if (this.firstEnter) {
- this.$emit('firstEnterCale', this.cale.multipleStatus)
- this.firstEnter = false
- }
- },
- rangeWithinMonth(A, B) {
- const [yearA, monthA] = A.split('-')
- const [yearB, monthB] = B.split('-')
- return yearA === yearB && monthA === monthB
- },
-
- // 鍙栨秷绌块��
- clean() {
- this.close()
- },
-
- clearCalender() {
- if (this.range) {
- this.timeRange.startTime = ''
- this.timeRange.endTime = ''
- this.tempRange.before = ''
- this.tempRange.after = ''
- this.cale.multipleStatus.before = ''
- this.cale.multipleStatus.after = ''
- this.cale.multipleStatus.data = []
- this.cale.lastHover = false
- } else {
- this.time = ''
- this.tempSingleDate = ''
- }
- this.calendar.fullDate = ''
- this.setDate()
- },
-
- bindDateChange(e) {
- const value = e.detail.value + '-1'
- this.init(value)
- },
- /**
- * 鍒濆鍖栨棩鏈熸樉绀�
- * @param {Object} date
- */
- init(date) {
- this.cale.setDate(date)
- this.weeks = this.cale.weeks
- this.nowDate = this.calendar = this.cale.getInfo(date)
- },
- // choiceDate(weeks) {
- // if (weeks.disable) return
- // this.calendar = weeks
- // // 璁剧疆澶氶��
- // this.cale.setMultiple(this.calendar.fullDate, true)
- // this.weeks = this.cale.weeks
- // this.tempSingleDate = this.calendar.fullDate
- // this.tempRange.before = this.cale.multipleStatus.before
- // this.tempRange.after = this.cale.multipleStatus.after
- // this.change()
- // },
- /**
- * 鎵撳紑鏃ュ巻寮圭獥
- */
- open() {
- // 寮圭獥妯″紡骞朵笖娓呯悊鏁版嵁
- if (this.clearDate && !this.insert) {
- this.cale.cleanMultipleStatus()
- // this.cale.setDate(this.date)
- this.init(this.date)
- }
- this.show = true
- this.$nextTick(() => {
- setTimeout(() => {
- this.aniMaskShow = true
- }, 50)
- })
- },
- /**
- * 鍏抽棴鏃ュ巻寮圭獥
- */
- close() {
- this.aniMaskShow = false
- this.$nextTick(() => {
- setTimeout(() => {
- this.show = false
- this.$emit('close')
- }, 300)
- })
- },
- /**
- * 纭鎸夐挳
- */
- confirm() {
- this.setEmit('confirm')
- this.close()
- },
- /**
- * 鍙樺寲瑙﹀彂
- */
- change() {
- if (!this.insert) return
- this.setEmit('change')
- },
- /**
- * 閫夋嫨鏈堜唤瑙﹀彂
- */
- monthSwitch() {
- let {
- year,
- month
- } = this.nowDate
- this.$emit('monthSwitch', {
- year,
- month: Number(month)
- })
- },
- /**
- * 娲惧彂浜嬩欢
- * @param {Object} name
- */
- setEmit(name) {
- let {
- year,
- month,
- date,
- fullDate,
- lunar,
- extraInfo
- } = this.calendar
- this.$emit(name, {
- range: this.cale.multipleStatus,
- year,
- month,
- date,
- time: this.time,
- timeRange: this.timeRange,
- fulldate: fullDate,
- lunar,
- extraInfo: extraInfo || {}
- })
- },
- /**
- * 閫夋嫨澶╄Е鍙�
- * @param {Object} weeks
- */
- choiceDate(weeks) {
- if (weeks.disable) return
- this.calendar = weeks
- this.calendar.userChecked = true
- // 璁剧疆澶氶��
- this.cale.setMultiple(this.calendar.fullDate, true)
- this.weeks = this.cale.weeks
- this.tempSingleDate = this.calendar.fullDate
- this.tempRange.before = this.cale.multipleStatus.before
- this.tempRange.after = this.cale.multipleStatus.after
- this.change()
- },
- /**
- * 鍥炲埌浠婂ぉ
- */
- backtoday() {
- let date = this.cale.getDate(new Date()).fullDate
- // this.cale.setDate(date)
- this.init(date)
- this.change()
- },
- /**
- * 姣旇緝鏃堕棿澶у皬
- */
- dateCompare(startDate, endDate) {
- // 璁$畻鎴鏃堕棿
- startDate = new Date(startDate.replace('-', '/').replace('-', '/'))
- // 璁$畻璇︾粏椤圭殑鎴鏃堕棿
- endDate = new Date(endDate.replace('-', '/').replace('-', '/'))
- if (startDate <= endDate) {
- return true
- } else {
- return false
- }
- },
- /**
- * 涓婁釜鏈�
- */
- pre() {
- const preDate = this.cale.getDate(this.nowDate.fullDate, -1, 'month').fullDate
- this.setDate(preDate)
- this.monthSwitch()
-
- },
- /**
- * 涓嬩釜鏈�
- */
- next() {
- const nextDate = this.cale.getDate(this.nowDate.fullDate, +1, 'month').fullDate
- this.setDate(nextDate)
- this.monthSwitch()
- },
- /**
- * 璁剧疆鏃ユ湡
- * @param {Object} date
- */
- setDate(date) {
- this.cale.setDate(date)
- this.weeks = this.cale.weeks
- this.nowDate = this.cale.getInfo(date)
- }
- }
- }
-</script>
-
-<style lang="scss" scoped>
- .uni-calendar {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex-direction: column;
- }
-
- .uni-calendar__mask {
- position: fixed;
- bottom: 0;
- top: 0;
- left: 0;
- right: 0;
- background-color: rgba(0, 0, 0, 0.4);
- transition-property: opacity;
- transition-duration: 0.3s;
- opacity: 0;
- /* #ifndef APP-NVUE */
- z-index: 99;
- /* #endif */
- }
-
- .uni-calendar--mask-show {
- opacity: 1
- }
-
- .uni-calendar--fixed {
- position: fixed;
- bottom: calc(var(--window-bottom));
- left: 0;
- right: 0;
- transition-property: transform;
- transition-duration: 0.3s;
- transform: translateY(460px);
- /* #ifndef APP-NVUE */
- z-index: 99;
- /* #endif */
- }
-
- .uni-calendar--ani-show {
- transform: translateY(0);
- }
-
- .uni-calendar__content {
- background-color: #fff;
- }
-
- .uni-calendar__content-mobile {
- border-top-left-radius: 10px;
- border-top-right-radius: 10px;
- box-shadow: 0px 0px 5px 3px rgba(0, 0, 0, 0.1);
- }
-
- .uni-calendar__header {
- position: relative;
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex-direction: row;
- justify-content: center;
- align-items: center;
- height: 50px;
- }
-
- .uni-calendar__header-mobile {
- padding: 10px;
- padding-bottom: 0;
- }
-
- .uni-calendar--fixed-top {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex-direction: row;
- justify-content: space-between;
- border-top-color: rgba(0, 0, 0, 0.4);
- border-top-style: solid;
- border-top-width: 1px;
- }
-
- .uni-calendar--fixed-width {
- width: 50px;
- }
-
- .uni-calendar__backtoday {
- position: absolute;
- right: 0;
- top: 25rpx;
- padding: 0 5px;
- padding-left: 10px;
- height: 25px;
- line-height: 25px;
- font-size: 12px;
- border-top-left-radius: 25px;
- border-bottom-left-radius: 25px;
- color: #fff;
- background-color: #f1f1f1;
- }
-
- .uni-calendar__header-text {
- text-align: center;
- width: 100px;
- font-size: 15px;
- color: #666;
- }
-
- .uni-calendar__button-text {
- text-align: center;
- width: 100px;
- font-size: 14px;
- color: #007aff;
- /* #ifndef APP-NVUE */
- letter-spacing: 3px;
- /* #endif */
- }
-
- .uni-calendar__header-btn-box {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex-direction: row;
- align-items: center;
- justify-content: center;
- width: 50px;
- height: 50px;
- }
-
- .uni-calendar__header-btn {
- width: 9px;
- height: 9px;
- border-left-color: #808080;
- border-left-style: solid;
- border-left-width: 1px;
- border-top-color: #555555;
- border-top-style: solid;
- border-top-width: 1px;
- }
-
- .uni-calendar--left {
- transform: rotate(-45deg);
- }
-
- .uni-calendar--right {
- transform: rotate(135deg);
- }
-
-
- .uni-calendar__weeks {
- position: relative;
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex-direction: row;
- }
-
- .uni-calendar__weeks-item {
- flex: 1;
- }
-
- .uni-calendar__weeks-day {
- flex: 1;
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex-direction: column;
- justify-content: center;
- align-items: center;
- height: 40px;
- border-bottom-color: #F5F5F5;
- border-bottom-style: solid;
- border-bottom-width: 1px;
- }
-
- .uni-calendar__weeks-day-text {
- font-size: 12px;
- color: #B2B2B2;
- }
-
- .uni-calendar__box {
- position: relative;
- // padding: 0 10px;
- padding-bottom: 7px;
- }
-
- .uni-calendar__box-bg {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- justify-content: center;
- align-items: center;
- position: absolute;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- }
-
- .uni-calendar__box-bg-text {
- font-size: 200px;
- font-weight: bold;
- color: #999;
- opacity: 0.1;
- text-align: center;
- /* #ifndef APP-NVUE */
- line-height: 1;
- /* #endif */
- }
-
- .uni-date-changed {
- padding: 0 10px;
- // line-height: 50px;
- text-align: center;
- color: #333;
- border-top-color: #DCDCDC;
- ;
- border-top-style: solid;
- border-top-width: 1px;
- flex: 1;
- }
-
- .uni-date-btn--ok {
- padding: 20px 15px;
- }
-
- .uni-date-changed--time-start {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- align-items: center;
- }
-
- .uni-date-changed--time-end {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- align-items: center;
- }
-
- .uni-date-changed--time-date {
- color: #999;
- line-height: 50px;
- margin-right: 5px;
- // opacity: 0.6;
- }
-
- .time-picker-style {
- // width: 62px;
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- justify-content: center;
- align-items: center
- }
-
- .mr-10 {
- margin-right: 10px;
- }
-
- .dialog-close {
- position: absolute;
- top: 0;
- right: 0;
- bottom: 0;
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex-direction: row;
- align-items: center;
- padding: 0 25px;
- margin-top: 10px;
- }
-
- .dialog-close-plus {
- width: 16px;
- height: 2px;
- background-color: #737987;
- border-radius: 2px;
- transform: rotate(45deg);
- }
-
- .dialog-close-rotate {
- position: absolute;
- transform: rotate(-45deg);
- }
-
- .uni-datetime-picker--btn {
- border-radius: 100px;
- height: 40px;
- line-height: 40px;
- background-color: #007aff;
- color: #fff;
- font-size: 16px;
- letter-spacing: 5px;
- }
-
- /* #ifndef APP-NVUE */
- .uni-datetime-picker--btn:active {
- opacity: 0.7;
- }
- /* #endif */
-</style>
diff --git a/uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/en.json b/uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/en.json
deleted file mode 100644
index cc76311..0000000
--- a/uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/en.json
+++ /dev/null
@@ -1,19 +0,0 @@
-{
- "uni-datetime-picker.selectDate": "select date",
- "uni-datetime-picker.selectTime": "select time",
- "uni-datetime-picker.selectDateTime": "select datetime",
- "uni-datetime-picker.startDate": "start date",
- "uni-datetime-picker.endDate": "end date",
- "uni-datetime-picker.startTime": "start time",
- "uni-datetime-picker.endTime": "end time",
- "uni-datetime-picker.ok": "ok",
- "uni-datetime-picker.clear": "clear",
- "uni-datetime-picker.cancel": "cancel",
- "uni-calender.MON": "MON",
- "uni-calender.TUE": "TUE",
- "uni-calender.WED": "WED",
- "uni-calender.THU": "THU",
- "uni-calender.FRI": "FRI",
- "uni-calender.SAT": "SAT",
- "uni-calender.SUN": "SUN"
-}
diff --git a/uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/index.js b/uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/index.js
deleted file mode 100644
index de7509c..0000000
--- a/uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/index.js
+++ /dev/null
@@ -1,8 +0,0 @@
-import en from './en.json'
-import zhHans from './zh-Hans.json'
-import zhHant from './zh-Hant.json'
-export default {
- en,
- 'zh-Hans': zhHans,
- 'zh-Hant': zhHant
-}
diff --git a/uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/zh-Hans.json b/uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/zh-Hans.json
deleted file mode 100644
index 7bc7405..0000000
--- a/uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/zh-Hans.json
+++ /dev/null
@@ -1,19 +0,0 @@
-{
- "uni-datetime-picker.selectDate": "閫夋嫨鏃ユ湡",
- "uni-datetime-picker.selectTime": "閫夋嫨鏃堕棿",
- "uni-datetime-picker.selectDateTime": "閫夋嫨鏃ユ湡鏃堕棿",
- "uni-datetime-picker.startDate": "寮�濮嬫棩鏈�",
- "uni-datetime-picker.endDate": "缁撴潫鏃ユ湡",
- "uni-datetime-picker.startTime": "寮�濮嬫椂闂�",
- "uni-datetime-picker.endTime": "缁撴潫鏃堕棿",
- "uni-datetime-picker.ok": "纭畾",
- "uni-datetime-picker.clear": "娓呴櫎",
- "uni-datetime-picker.cancel": "鍙栨秷",
- "uni-calender.SUN": "鏃�",
- "uni-calender.MON": "涓�",
- "uni-calender.TUE": "浜�",
- "uni-calender.WED": "涓�",
- "uni-calender.THU": "鍥�",
- "uni-calender.FRI": "浜�",
- "uni-calender.SAT": "鍏�"
-}
diff --git a/uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/zh-Hant.json b/uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/zh-Hant.json
deleted file mode 100644
index 7d37043..0000000
--- a/uni_modules/uni-datetime-picker/components/uni-datetime-picker/i18n/zh-Hant.json
+++ /dev/null
@@ -1,19 +0,0 @@
-{
- "uni-datetime-picker.selectDate": "閬告搰鏃ユ湡",
- "uni-datetime-picker.selectTime": "閬告搰鏅傞枔",
- "uni-datetime-picker.selectDateTime": "閬告搰鏃ユ湡鏅傞枔",
- "uni-datetime-picker.startDate": "闁嬪鏃ユ湡",
- "uni-datetime-picker.endDate": "绲愭潫鏃ユ湡",
- "uni-datetime-picker.startTime": "闁嬪鏃堕棿",
- "uni-datetime-picker.endTime": "绲愭潫鏃堕棿",
- "uni-datetime-picker.ok": "纰哄畾",
- "uni-datetime-picker.clear": "娓呴櫎",
- "uni-datetime-picker.cancel": "鍙栨秷",
- "uni-calender.SUN": "鏃�",
- "uni-calender.MON": "涓�",
- "uni-calender.TUE": "浜�",
- "uni-calender.WED": "涓�",
- "uni-calender.THU": "鍥�",
- "uni-calender.FRI": "浜�",
- "uni-calender.SAT": "鍏�"
-}
diff --git a/uni_modules/uni-datetime-picker/components/uni-datetime-picker/keypress.js b/uni_modules/uni-datetime-picker/components/uni-datetime-picker/keypress.js
deleted file mode 100644
index 9601aba..0000000
--- a/uni_modules/uni-datetime-picker/components/uni-datetime-picker/keypress.js
+++ /dev/null
@@ -1,45 +0,0 @@
-// #ifdef H5
-export default {
- name: 'Keypress',
- props: {
- disable: {
- type: Boolean,
- default: false
- }
- },
- mounted () {
- const keyNames = {
- esc: ['Esc', 'Escape'],
- tab: 'Tab',
- enter: 'Enter',
- space: [' ', 'Spacebar'],
- up: ['Up', 'ArrowUp'],
- left: ['Left', 'ArrowLeft'],
- right: ['Right', 'ArrowRight'],
- down: ['Down', 'ArrowDown'],
- delete: ['Backspace', 'Delete', 'Del']
- }
- const listener = ($event) => {
- if (this.disable) {
- return
- }
- const keyName = Object.keys(keyNames).find(key => {
- const keyName = $event.key
- const value = keyNames[key]
- return value === keyName || (Array.isArray(value) && value.includes(keyName))
- })
- if (keyName) {
- // 閬垮厤鍜屽叾浠栨寜閿簨浠跺啿绐�
- setTimeout(() => {
- this.$emit(keyName, {})
- }, 0)
- }
- }
- document.addEventListener('keyup', listener)
- this.$once('hook:beforeDestroy', () => {
- document.removeEventListener('keyup', listener)
- })
- },
- render: () => {}
-}
-// #endif
\ No newline at end of file
diff --git a/uni_modules/uni-datetime-picker/components/uni-datetime-picker/time-picker.vue b/uni_modules/uni-datetime-picker/components/uni-datetime-picker/time-picker.vue
deleted file mode 100644
index 699aa63..0000000
--- a/uni_modules/uni-datetime-picker/components/uni-datetime-picker/time-picker.vue
+++ /dev/null
@@ -1,927 +0,0 @@
-<template>
- <view class="uni-datetime-picker">
- <view @click="initTimePicker">
- <slot>
- <view class="uni-datetime-picker-timebox-pointer"
- :class="{'uni-datetime-picker-disabled': disabled, 'uni-datetime-picker-timebox': border}">
- <text class="uni-datetime-picker-text">{{time}}</text>
- <view v-if="!time" class="uni-datetime-picker-time">
- <text class="uni-datetime-picker-text">{{selectTimeText}}</text>
- </view>
- </view>
- </slot>
- </view>
- <view v-if="visible" id="mask" class="uni-datetime-picker-mask" @click="tiggerTimePicker"></view>
- <view v-if="visible" class="uni-datetime-picker-popup" :class="[dateShow && timeShow ? '' : 'fix-nvue-height']"
- :style="fixNvueBug">
- <view class="uni-title">
- <text class="uni-datetime-picker-text">{{selectTimeText}}</text>
- </view>
- <view v-if="dateShow" class="uni-datetime-picker__container-box">
- <picker-view class="uni-datetime-picker-view" :indicator-style="indicatorStyle" :value="ymd"
- @change="bindDateChange">
- <picker-view-column>
- <view class="uni-datetime-picker-item" v-for="(item,index) in years" :key="index">
- <text class="uni-datetime-picker-item">{{lessThanTen(item)}}</text>
- </view>
- </picker-view-column>
- <picker-view-column>
- <view class="uni-datetime-picker-item" v-for="(item,index) in months" :key="index">
- <text class="uni-datetime-picker-item">{{lessThanTen(item)}}</text>
- </view>
- </picker-view-column>
- <picker-view-column>
- <view class="uni-datetime-picker-item" v-for="(item,index) in days" :key="index">
- <text class="uni-datetime-picker-item">{{lessThanTen(item)}}</text>
- </view>
- </picker-view-column>
- </picker-view>
- <!-- 鍏煎 nvue 涓嶆敮鎸佷吉绫� -->
- <text class="uni-datetime-picker-sign sign-left">-</text>
- <text class="uni-datetime-picker-sign sign-right">-</text>
- </view>
- <view v-if="timeShow" class="uni-datetime-picker__container-box">
- <picker-view class="uni-datetime-picker-view" :class="[hideSecond ? 'time-hide-second' : '']"
- :indicator-style="indicatorStyle" :value="hms" @change="bindTimeChange">
- <picker-view-column>
- <view class="uni-datetime-picker-item" v-for="(item,index) in hours" :key="index">
- <text class="uni-datetime-picker-item">{{lessThanTen(item)}}</text>
- </view>
- </picker-view-column>
- <picker-view-column>
- <view class="uni-datetime-picker-item" v-for="(item,index) in minutes" :key="index">
- <text class="uni-datetime-picker-item">{{lessThanTen(item)}}</text>
- </view>
- </picker-view-column>
- <picker-view-column v-if="!hideSecond">
- <view class="uni-datetime-picker-item" v-for="(item,index) in seconds" :key="index">
- <text class="uni-datetime-picker-item">{{lessThanTen(item)}}</text>
- </view>
- </picker-view-column>
- </picker-view>
- <!-- 鍏煎 nvue 涓嶆敮鎸佷吉绫� -->
- <text class="uni-datetime-picker-sign" :class="[hideSecond ? 'sign-center' : 'sign-left']">:</text>
- <text v-if="!hideSecond" class="uni-datetime-picker-sign sign-right">:</text>
- </view>
- <view class="uni-datetime-picker-btn">
- <view @click="clearTime">
- <text class="uni-datetime-picker-btn-text">{{clearText}}</text>
- </view>
- <view class="uni-datetime-picker-btn-group">
- <view class="uni-datetime-picker-cancel" @click="tiggerTimePicker">
- <text class="uni-datetime-picker-btn-text">{{cancelText}}</text>
- </view>
- <view @click="setTime">
- <text class="uni-datetime-picker-btn-text">{{okText}}</text>
- </view>
- </view>
- </view>
- </view>
- <!-- #ifdef H5 -->
- <!-- <keypress v-if="visible" @esc="tiggerTimePicker" @enter="setTime" /> -->
- <!-- #endif -->
- </view>
-</template>
-
-<script>
- // #ifdef H5
- import keypress from './keypress'
- // #endif
- import {
- initVueI18n
- } from '@dcloudio/uni-i18n'
- import messages from './i18n/index.js'
- const { t } = initVueI18n(messages)
-
- /**
- * DatetimePicker 鏃堕棿閫夋嫨鍣�
- * @description 鍙互鍚屾椂閫夋嫨鏃ユ湡鍜屾椂闂寸殑閫夋嫨鍣�
- * @tutorial https://ext.dcloud.net.cn/plugin?id=xxx
- * @property {String} type = [datetime | date | time] 鏄剧ず妯″紡
- * @property {Boolean} multiple = [true|false] 鏄惁澶氶��
- * @property {String|Number} value 榛樿鍊�
- * @property {String|Number} start 璧峰鏃ユ湡鎴栨椂闂�
- * @property {String|Number} end 璧峰鏃ユ湡鎴栨椂闂�
- * @property {String} return-type = [timestamp | string]
- * @event {Function} change 閫変腑鍙戠敓鍙樺寲瑙﹀彂
- */
-
- export default {
- name: 'UniDatetimePicker',
- components: {
- // #ifdef H5
- keypress
- // #endif
- },
- data() {
- return {
- indicatorStyle: `height: 50px;`,
- visible: false,
- fixNvueBug: {},
- dateShow: true,
- timeShow: true,
- title: '鏃ユ湡鍜屾椂闂�',
- // 杈撳叆妗嗗綋鍓嶆椂闂�
- time: '',
- // 褰撳墠鐨勫勾鏈堟棩鏃跺垎绉�
- year: 1920,
- month: 0,
- day: 0,
- hour: 0,
- minute: 0,
- second: 0,
- // 璧峰鏃堕棿
- startYear: 1920,
- startMonth: 1,
- startDay: 1,
- startHour: 0,
- startMinute: 0,
- startSecond: 0,
- // 缁撴潫鏃堕棿
- endYear: 2120,
- endMonth: 12,
- endDay: 31,
- endHour: 23,
- endMinute: 59,
- endSecond: 59,
- }
- },
- props: {
- type: {
- type: String,
- default: 'datetime'
- },
- value: {
- type: [String, Number],
- default: ''
- },
- modelValue: {
- type: [String, Number],
- default: ''
- },
- start: {
- type: [Number, String],
- default: ''
- },
- end: {
- type: [Number, String],
- default: ''
- },
- returnType: {
- type: String,
- default: 'string'
- },
- disabled: {
- type: [Boolean, String],
- default: false
- },
- border: {
- type: [Boolean, String],
- default: true
- },
- hideSecond: {
- type: [Boolean, String],
- default: false
- }
- },
- watch: {
- value: {
- handler(newVal, oldVal) {
- if (newVal) {
- this.parseValue(this.fixIosDateFormat(newVal)) //鍏煎 iOS銆乻afari 鏃ユ湡鏍煎紡
- this.initTime(false)
- } else {
- this.time = ''
- this.parseValue(Date.now())
- }
- },
- immediate: true
- },
- type: {
- handler(newValue) {
- if (newValue === 'date') {
- this.dateShow = true
- this.timeShow = false
- this.title = '鏃ユ湡'
- } else if (newValue === 'time') {
- this.dateShow = false
- this.timeShow = true
- this.title = '鏃堕棿'
- } else {
- this.dateShow = true
- this.timeShow = true
- this.title = '鏃ユ湡鍜屾椂闂�'
- }
- },
- immediate: true
- },
- start: {
- handler(newVal) {
- this.parseDatetimeRange(this.fixIosDateFormat(newVal), 'start') //鍏煎 iOS銆乻afari 鏃ユ湡鏍煎紡
- },
- immediate: true
- },
- end: {
- handler(newVal) {
- this.parseDatetimeRange(this.fixIosDateFormat(newVal), 'end') //鍏煎 iOS銆乻afari 鏃ユ湡鏍煎紡
- },
- immediate: true
- },
-
- // 鏈堛�佹棩銆佹椂銆佸垎銆佺鍙�夎寖鍥村彉鍖栧悗锛屾鏌ュ綋鍓嶅�兼槸鍚﹀湪鑼冨洿鍐咃紝涓嶅湪鍒欏綋鍓嶅�奸噸缃负鍙�夎寖鍥寸涓�椤�
- months(newVal) {
- this.checkValue('month', this.month, newVal)
- },
- days(newVal) {
- this.checkValue('day', this.day, newVal)
- },
- hours(newVal) {
- this.checkValue('hour', this.hour, newVal)
- },
- minutes(newVal) {
- this.checkValue('minute', this.minute, newVal)
- },
- seconds(newVal) {
- this.checkValue('second', this.second, newVal)
- }
- },
- computed: {
- // 褰撳墠骞淬�佹湀銆佹棩銆佹椂銆佸垎銆佺閫夋嫨鑼冨洿
- years() {
- return this.getCurrentRange('year')
- },
-
- months() {
- return this.getCurrentRange('month')
- },
-
- days() {
- return this.getCurrentRange('day')
- },
-
- hours() {
- return this.getCurrentRange('hour')
- },
-
- minutes() {
- return this.getCurrentRange('minute')
- },
-
- seconds() {
- return this.getCurrentRange('second')
- },
-
- // picker 褰撳墠鍊兼暟缁�
- ymd() {
- return [this.year - this.minYear, this.month - this.minMonth, this.day - this.minDay]
- },
- hms() {
- return [this.hour - this.minHour, this.minute - this.minMinute, this.second - this.minSecond]
- },
-
- // 褰撳墠 date 鏄� start
- currentDateIsStart() {
- return this.year === this.startYear && this.month === this.startMonth && this.day === this.startDay
- },
-
- // 褰撳墠 date 鏄� end
- currentDateIsEnd() {
- return this.year === this.endYear && this.month === this.endMonth && this.day === this.endDay
- },
-
- // 褰撳墠骞淬�佹湀銆佹棩銆佹椂銆佸垎銆佺鐨勬渶灏忓�煎拰鏈�澶у��
- minYear() {
- return this.startYear
- },
- maxYear() {
- return this.endYear
- },
- minMonth() {
- if (this.year === this.startYear) {
- return this.startMonth
- } else {
- return 1
- }
- },
- maxMonth() {
- if (this.year === this.endYear) {
- return this.endMonth
- } else {
- return 12
- }
- },
- minDay() {
- if (this.year === this.startYear && this.month === this.startMonth) {
- return this.startDay
- } else {
- return 1
- }
- },
- maxDay() {
- if (this.year === this.endYear && this.month === this.endMonth) {
- return this.endDay
- } else {
- return this.daysInMonth(this.year, this.month)
- }
- },
- minHour() {
- if (this.type === 'datetime') {
- if (this.currentDateIsStart) {
- return this.startHour
- } else {
- return 0
- }
- }
- if (this.type === 'time') {
- return this.startHour
- }
- },
- maxHour() {
- if (this.type === 'datetime') {
- if (this.currentDateIsEnd) {
- return this.endHour
- } else {
- return 23
- }
- }
- if (this.type === 'time') {
- return this.endHour
- }
- },
- minMinute() {
- if (this.type === 'datetime') {
- if (this.currentDateIsStart && this.hour === this.startHour) {
- return this.startMinute
- } else {
- return 0
- }
- }
- if (this.type === 'time') {
- if (this.hour === this.startHour) {
- return this.startMinute
- } else {
- return 0
- }
- }
- },
- maxMinute() {
- if (this.type === 'datetime') {
- if (this.currentDateIsEnd && this.hour === this.endHour) {
- return this.endMinute
- } else {
- return 59
- }
- }
- if (this.type === 'time') {
- if (this.hour === this.endHour) {
- return this.endMinute
- } else {
- return 59
- }
- }
- },
- minSecond() {
- if (this.type === 'datetime') {
- if (this.currentDateIsStart && this.hour === this.startHour && this.minute === this.startMinute) {
- return this.startSecond
- } else {
- return 0
- }
- }
- if (this.type === 'time') {
- if (this.hour === this.startHour && this.minute === this.startMinute) {
- return this.startSecond
- } else {
- return 0
- }
- }
- },
- maxSecond() {
- if (this.type === 'datetime') {
- if (this.currentDateIsEnd && this.hour === this.endHour && this.minute === this.endMinute) {
- return this.endSecond
- } else {
- return 59
- }
- }
- if (this.type === 'time') {
- if (this.hour === this.endHour && this.minute === this.endMinute) {
- return this.endSecond
- } else {
- return 59
- }
- }
- },
-
- /**
- * for i18n
- */
- selectTimeText() {
- return t("uni-datetime-picker.selectTime")
- },
- okText() {
- return t("uni-datetime-picker.ok")
- },
- clearText() {
- return t("uni-datetime-picker.clear")
- },
- cancelText() {
- return t("uni-datetime-picker.cancel")
- }
- },
-
- mounted() {
- // #ifdef APP-NVUE
- const res = uni.getSystemInfoSync();
- this.fixNvueBug = {
- top: res.windowHeight / 2,
- left: res.windowWidth / 2
- }
- // #endif
- },
-
- methods: {
- /**
- * @param {Object} item
- * 灏忎簬 10 鍦ㄥ墠闈㈠姞涓� 0
- */
-
- lessThanTen(item) {
- return item < 10 ? '0' + item : item
- },
-
- /**
- * 瑙f瀽鏃跺垎绉掑瓧绗︿覆锛屼緥濡傦細00:00:00
- * @param {String} timeString
- */
- parseTimeType(timeString) {
- if (timeString) {
- let timeArr = timeString.split(':')
- this.hour = Number(timeArr[0])
- this.minute = Number(timeArr[1])
- this.second = Number(timeArr[2])
- }
- },
-
- /**
- * 瑙f瀽閫夋嫨鍣ㄥ垵濮嬪�硷紝绫诲瀷鍙互鏄瓧绗︿覆銆佹椂闂存埑锛屼緥濡傦細2000-10-02銆�'08:30:00'銆� 1610695109000
- * @param {String | Number} datetime
- */
- initPickerValue(datetime) {
- let defaultValue = null
- if (datetime) {
- defaultValue = this.compareValueWithStartAndEnd(datetime, this.start, this.end)
- } else {
- defaultValue = Date.now()
- defaultValue = this.compareValueWithStartAndEnd(defaultValue, this.start, this.end)
- }
- this.parseValue(defaultValue)
- },
-
- /**
- * 鍒濆鍊艰鍒欙細
- * - 鐢ㄦ埛璁剧疆鍒濆鍊� value
- * - 璁剧疆浜嗚捣濮嬫椂闂� start銆佺粓姝㈡椂闂� end锛屽苟 start < value < end锛屽垵濮嬪�间负 value锛� 鍚﹀垯鍒濆鍊间负 start
- * - 鍙缃簡璧峰鏃堕棿 start锛屽苟 start < value锛屽垵濮嬪�间负 value锛屽惁鍒欏垵濮嬪�间负 start
- * - 鍙缃簡缁堟鏃堕棿 end锛屽苟 value < end锛屽垵濮嬪�间负 value锛屽惁鍒欏垵濮嬪�间负 end
- * - 鏃犺捣濮嬬粓姝㈡椂闂达紝鍒欏垵濮嬪�间负 value
- * - 鏃犲垵濮嬪�� value锛屽垯鍒濆鍊间负褰撳墠鏈湴鏃堕棿 Date.now()
- * @param {Object} value
- * @param {Object} dateBase
- */
- compareValueWithStartAndEnd(value, start, end) {
- let winner = null
- value = this.superTimeStamp(value)
- start = this.superTimeStamp(start)
- end = this.superTimeStamp(end)
-
- if (start && end) {
- if (value < start) {
- winner = new Date(start)
- } else if (value > end) {
- winner = new Date(end)
- } else {
- winner = new Date(value)
- }
- } else if (start && !end) {
- winner = start <= value ? new Date(value) : new Date(start)
- } else if (!start && end) {
- winner = value <= end ? new Date(value) : new Date(end)
- } else {
- winner = new Date(value)
- }
-
- return winner
- },
-
- /**
- * 杞崲涓哄彲姣旇緝鐨勬椂闂存埑锛屾帴鍙楁棩鏈熴�佹椂鍒嗙銆佹椂闂存埑
- * @param {Object} value
- */
- superTimeStamp(value) {
- let dateBase = ''
- if (this.type === 'time' && value && typeof value === 'string') {
- const now = new Date()
- const year = now.getFullYear()
- const month = now.getMonth() + 1
- const day = now.getDate()
- dateBase = year + '/' + month + '/' + day + ' '
- }
- if (Number(value) && typeof value !== NaN) {
- value = parseInt(value)
- dateBase = 0
- }
- return this.createTimeStamp(dateBase + value)
- },
-
- /**
- * 瑙f瀽榛樿鍊� value锛屽瓧绗︿覆銆佹椂闂存埑
- * @param {Object} defaultTime
- */
- parseValue(value) {
- if (!value) {
- return
- }
- if (this.type === 'time' && typeof value === "string") {
- this.parseTimeType(value)
- } else {
- let defaultDate = null
- defaultDate = new Date(value)
- if (this.type !== 'time') {
- this.year = defaultDate.getFullYear()
- this.month = defaultDate.getMonth() + 1
- this.day = defaultDate.getDate()
- }
- if (this.type !== 'date') {
- this.hour = defaultDate.getHours()
- this.minute = defaultDate.getMinutes()
- this.second = defaultDate.getSeconds()
- }
- }
- if (this.hideSecond) {
- this.second = 0
- }
- },
-
- /**
- * 瑙f瀽鍙�夋嫨鏃堕棿鑼冨洿 start銆乪nd锛屽勾鏈堟棩瀛楃涓层�佹椂闂存埑
- * @param {Object} defaultTime
- */
- parseDatetimeRange(point, pointType) {
- // 鏃堕棿涓虹┖锛屽垯閲嶇疆涓哄垵濮嬪��
- if (!point) {
- if (pointType === 'start') {
- this.startYear = 1920
- this.startMonth = 1
- this.startDay = 1
- this.startHour = 0
- this.startMinute = 0
- this.startSecond = 0
- }
- if (pointType === 'end') {
- this.endYear = 2120
- this.endMonth = 12
- this.endDay = 31
- this.endHour = 23
- this.endMinute = 59
- this.endSecond = 59
- }
- return
- }
- if (this.type === 'time') {
- const pointArr = point.split(':')
- this[pointType + 'Hour'] = Number(pointArr[0])
- this[pointType + 'Minute'] = Number(pointArr[1])
- this[pointType + 'Second'] = Number(pointArr[2])
- } else {
- if (!point) {
- pointType === 'start' ? this.startYear = this.year - 60 : this.endYear = this.year + 60
- return
- }
- if (Number(point) && Number(point) !== NaN) {
- point = parseInt(point)
- }
- // datetime 鐨� end 娌℃湁鏃跺垎绉�, 鍒欎笉闄愬埗
- const hasTime = /[0-9]:[0-9]/
- if (this.type === 'datetime' && pointType === 'end' && typeof point === 'string' && !hasTime.test(
- point)) {
- point = point + ' 23:59:59'
- }
- const pointDate = new Date(point)
- this[pointType + 'Year'] = pointDate.getFullYear()
- this[pointType + 'Month'] = pointDate.getMonth() + 1
- this[pointType + 'Day'] = pointDate.getDate()
- if (this.type === 'datetime') {
- this[pointType + 'Hour'] = pointDate.getHours()
- this[pointType + 'Minute'] = pointDate.getMinutes()
- this[pointType + 'Second'] = pointDate.getSeconds()
- }
- }
- },
-
- // 鑾峰彇 骞淬�佹湀銆佹棩銆佹椂銆佸垎銆佺 褰撳墠鍙�夎寖鍥�
- getCurrentRange(value) {
- const range = []
- for (let i = this['min' + this.capitalize(value)]; i <= this['max' + this.capitalize(value)]; i++) {
- range.push(i)
- }
- return range
- },
-
- // 瀛楃涓查瀛楁瘝澶у啓
- capitalize(str) {
- return str.charAt(0).toUpperCase() + str.slice(1)
- },
-
- // 妫�鏌ュ綋鍓嶅�兼槸鍚﹀湪鑼冨洿鍐咃紝涓嶅湪鍒欏綋鍓嶅�奸噸缃负鍙�夎寖鍥寸涓�椤�
- checkValue(name, value, values) {
- if (values.indexOf(value) === -1) {
- this[name] = values[0]
- }
- },
-
- // 姣忎釜鏈堢殑瀹為檯澶╂暟
- daysInMonth(year, month) { // Use 1 for January, 2 for February, etc.
- return new Date(year, month, 0).getDate();
- },
-
- //鍏煎 iOS銆乻afari 鏃ユ湡鏍煎紡
- fixIosDateFormat(value) {
- if (typeof value === 'string') {
- value = value.replace(/-/g, '/')
- }
- return value
- },
-
- /**
- * 鐢熸垚鏃堕棿鎴�
- * @param {Object} time
- */
- createTimeStamp(time) {
- if (!time) return
- if (typeof time === "number") {
- return time
- } else {
- time = time.replace(/-/g, '/')
- if (this.type === 'date') {
- time = time + ' ' + '00:00:00'
- }
- return Date.parse(time)
- }
- },
-
- /**
- * 鐢熸垚鏃ユ湡鎴栨椂闂寸殑瀛楃涓�
- */
- createDomSting() {
- const yymmdd = this.year +
- '-' +
- this.lessThanTen(this.month) +
- '-' +
- this.lessThanTen(this.day)
-
- let hhmmss = this.lessThanTen(this.hour) +
- ':' +
- this.lessThanTen(this.minute)
-
- if (!this.hideSecond) {
- hhmmss = hhmmss + ':' + this.lessThanTen(this.second)
- }
-
- if (this.type === 'date') {
- return yymmdd
- } else if (this.type === 'time') {
- return hhmmss
- } else {
- return yymmdd + ' ' + hhmmss
- }
- },
-
- /**
- * 鍒濆鍖栬繑鍥炲�硷紝骞舵姏鍑� change 浜嬩欢
- */
- initTime(emit = true) {
- this.time = this.createDomSting()
- if (!emit) return
- if (this.returnType === 'timestamp' && this.type !== 'time') {
- this.$emit('change', this.createTimeStamp(this.time))
- this.$emit('input', this.createTimeStamp(this.time))
- this.$emit('update:modelValue', this.createTimeStamp(this.time))
- } else {
- this.$emit('change', this.time)
- this.$emit('input', this.time)
- this.$emit('update:modelValue', this.time)
- }
- },
-
- /**
- * 鐢ㄦ埛閫夋嫨鏃ユ湡鎴栨椂闂存洿鏂� data
- * @param {Object} e
- */
- bindDateChange(e) {
- const val = e.detail.value
- this.year = this.years[val[0]]
- this.month = this.months[val[1]]
- this.day = this.days[val[2]]
- },
- bindTimeChange(e) {
- const val = e.detail.value
- this.hour = this.hours[val[0]]
- this.minute = this.minutes[val[1]]
- this.second = this.seconds[val[2]]
- },
-
- /**
- * 鍒濆鍖栧脊鍑哄眰
- */
- initTimePicker() {
- if (this.disabled) return
- const value = this.fixIosDateFormat(this.value)
- this.initPickerValue(value)
- this.visible = !this.visible
- },
-
- /**
- * 瑙﹀彂鎴栧叧闂脊妗�
- */
- tiggerTimePicker(e) {
- this.visible = !this.visible
- },
-
- /**
- * 鐢ㄦ埛鐐瑰嚮鈥滄竻绌衡�濇寜閽紝娓呯┖褰撳墠鍊�
- */
- clearTime() {
- this.time = ''
- this.$emit('change', this.time)
- this.$emit('input', this.time)
- this.$emit('update:modelValue', this.time)
- this.tiggerTimePicker()
- },
-
- /**
- * 鐢ㄦ埛鐐瑰嚮鈥滅‘瀹氣�濇寜閽�
- */
- setTime() {
- this.initTime()
- this.tiggerTimePicker()
- }
- }
- }
-</script>
-
-<style>
- .uni-datetime-picker {
- /* #ifndef APP-NVUE */
- /* width: 100%; */
- /* #endif */
- }
-
- .uni-datetime-picker-view {
- height: 130px;
- width: 270px;
- /* #ifndef APP-NVUE */
- cursor: pointer;
- /* #endif */
- }
-
- .uni-datetime-picker-item {
- height: 50px;
- line-height: 50px;
- text-align: center;
- font-size: 14px;
- }
-
- .uni-datetime-picker-btn {
- margin-top: 60px;
- /* #ifndef APP-NVUE */
- display: flex;
- cursor: pointer;
- /* #endif */
- flex-direction: row;
- justify-content: space-between;
- }
-
- .uni-datetime-picker-btn-text {
- font-size: 14px;
- color: #007AFF;
- }
-
- .uni-datetime-picker-btn-group {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex-direction: row;
- }
-
- .uni-datetime-picker-cancel {
- margin-right: 30px;
- }
-
- .uni-datetime-picker-mask {
- position: fixed;
- bottom: 0px;
- top: 0px;
- left: 0px;
- right: 0px;
- background-color: rgba(0, 0, 0, 0.4);
- transition-duration: 0.3s;
- z-index: 998;
- }
-
- .uni-datetime-picker-popup {
- border-radius: 8px;
- padding: 30px;
- width: 270px;
- /* #ifdef APP-NVUE */
- height: 500px;
- /* #endif */
- /* #ifdef APP-NVUE */
- width: 330px;
- /* #endif */
- background-color: #fff;
- position: fixed;
- top: 50%;
- left: 50%;
- transform: translate(-50%, -50%);
- transition-duration: 0.3s;
- z-index: 999;
- }
-
- .fix-nvue-height {
- /* #ifdef APP-NVUE */
- height: 330px;
- /* #endif */
- }
-
- .uni-datetime-picker-time {
- color: grey;
- }
-
- .uni-datetime-picker-column {
- height: 50px;
- }
-
- .uni-datetime-picker-timebox {
-
- border: 1px solid #E5E5E5;
- border-radius: 5px;
- padding: 7px 10px;
- /* #ifndef APP-NVUE */
- box-sizing: border-box;
- cursor: pointer;
- /* #endif */
- }
-
- .uni-datetime-picker-timebox-pointer {
- /* #ifndef APP-NVUE */
- cursor: pointer;
- /* #endif */
- }
-
-
- .uni-datetime-picker-disabled {
- opacity: 0.4;
- /* #ifdef H5 */
- cursor: not-allowed !important;
- /* #endif */
- }
-
- .uni-datetime-picker-text {
- font-size: 14px;
- }
-
- .uni-datetime-picker-sign {
- position: absolute;
- top: 53px;
- /* 鍑忔帀 10px 鐨勫厓绱犻珮搴︼紝鍏煎nvue */
- color: #999;
- /* #ifdef APP-NVUE */
- font-size: 16px;
- /* #endif */
- }
-
- .sign-left {
- left: 86px;
- }
-
- .sign-right {
- right: 86px;
- }
-
- .sign-center {
- left: 135px;
- }
-
- .uni-datetime-picker__container-box {
- position: relative;
- display: flex;
- align-items: center;
- justify-content: center;
- margin-top: 40px;
- }
-
- .time-hide-second {
- width: 180px;
- }
-</style>
diff --git a/uni_modules/uni-datetime-picker/components/uni-datetime-picker/uni-datetime-picker.vue b/uni_modules/uni-datetime-picker/components/uni-datetime-picker/uni-datetime-picker.vue
deleted file mode 100644
index e844331..0000000
--- a/uni_modules/uni-datetime-picker/components/uni-datetime-picker/uni-datetime-picker.vue
+++ /dev/null
@@ -1,981 +0,0 @@
-<template>
- <view class="uni-date">
- <view class="uni-date-editor" @click="show">
- <slot>
- <view class="uni-date-editor--x" :class="{'uni-date-editor--x__disabled': disabled,
- 'uni-date-x--border': border}">
- <view v-if="!isRange" class="uni-date-x uni-date-single">
- <uni-icons type="calendar" color="#e1e1e1" size="22"></uni-icons>
- <input class="uni-date__x-input" type="text" v-model="singleVal"
- :placeholder="singlePlaceholderText" :disabled="true" />
- </view>
- <view v-else class="uni-date-x uni-date-range">
- <uni-icons type="calendar" color="#e1e1e1" size="22"></uni-icons>
- <input class="uni-date__x-input t-c" type="text" v-model="range.startDate"
- :placeholder="startPlaceholderText" :disabled="true" />
- <slot>
- <view class="">{{rangeSeparator}}</view>
- </slot>
- <input class="uni-date__x-input t-c" type="text" v-model="range.endDate"
- :placeholder="endPlaceholderText" :disabled="true" />
- </view>
- <view v-if="showClearIcon" class="uni-date__icon-clear" @click.stop="clear">
- <uni-icons type="clear" color="#e1e1e1" size="18"></uni-icons>
- </view>
- </view>
- </slot>
- </view>
-
- <view v-show="popup" class="uni-date-mask" @click="close"></view>
- <view v-if="!isPhone" ref="datePicker" v-show="popup" class="uni-date-picker__container">
- <view v-if="!isRange" class="uni-date-single--x" :style="popover">
- <view class="uni-popper__arrow"></view>
- <view v-if="hasTime" class="uni-date-changed popup-x-header">
- <input class="uni-date__input t-c" type="text" v-model="tempSingleDate"
- :placeholder="selectDateText" />
- <time-picker type="time" v-model="time" :border="false" :disabled="!tempSingleDate"
- :start="reactStartTime" :end="reactEndTime" :hideSecond="hideSecond" style="width: 100%;">
- <input class="uni-date__input t-c" type="text" v-model="time" :placeholder="selectTimeText"
- :disabled="!tempSingleDate" />
- </time-picker>
- </view>
- <calendar ref="pcSingle" :showMonth="false"
- :start-date="caleRange.startDate" :end-date="caleRange.endDate" :date="defSingleDate"
- @change="singleChange" style="padding: 0 8px;" />
- <view v-if="hasTime" class="popup-x-footer">
- <!-- <text class="">姝ゅ埢</text> -->
- <text class="confirm" @click="confirmSingleChange">{{okText}}</text>
- </view>
- <view class="uni-date-popper__arrow"></view>
- </view>
-
- <view v-else class="uni-date-range--x" :style="popover">
- <view class="uni-popper__arrow"></view>
- <view v-if="hasTime" class="popup-x-header uni-date-changed">
- <view class="popup-x-header--datetime">
- <input class="uni-date__input uni-date-range__input" type="text" v-model="tempRange.startDate"
- :placeholder="startDateText" />
- <time-picker type="time" v-model="tempRange.startTime" :start="reactStartTime" :border="false"
- :disabled="!tempRange.startDate" :hideSecond="hideSecond">
- <input class="uni-date__input uni-date-range__input" type="text"
- v-model="tempRange.startTime" :placeholder="startTimeText"
- :disabled="!tempRange.startDate" />
- </time-picker>
- </view>
- <uni-icons type="arrowthinright" color="#999" style="line-height: 40px;"></uni-icons>
- <view class="popup-x-header--datetime">
- <input class="uni-date__input uni-date-range__input" type="text" v-model="tempRange.endDate"
- :placeholder="endDateText" />
- <time-picker type="time" v-model="tempRange.endTime" :end="reactEndTime" :border="false"
- :disabled="!tempRange.endDate" :hideSecond="hideSecond">
- <input class="uni-date__input uni-date-range__input" type="text" v-model="tempRange.endTime"
- :placeholder="endTimeText" :disabled="!tempRange.endDate" />
- </time-picker>
- </view>
- </view>
- <view class="popup-x-body">
- <calendar ref="left" :showMonth="false"
- :start-date="caleRange.startDate" :end-date="caleRange.endDate" :range="true"
- @change="leftChange" :pleStatus="endMultipleStatus" @firstEnterCale="updateRightCale"
- @monthSwitch="leftMonthSwitch" style="padding: 0 8px;" />
- <calendar ref="right" :showMonth="false"
- :start-date="caleRange.startDate" :end-date="caleRange.endDate" :range="true"
- @change="rightChange" :pleStatus="startMultipleStatus" @firstEnterCale="updateLeftCale"
- @monthSwitch="rightMonthSwitch" style="padding: 0 8px;border-left: 1px solid #F1F1F1;" />
- </view>
- <view v-if="hasTime" class="popup-x-footer">
- <text class="" @click="clear">{{clearText}}</text>
- <text class="confirm" @click="confirmRangeChange">{{okText}}</text>
- </view>
- </view>
- </view>
- <calendar v-show="isPhone" ref="mobile" :clearDate="false" :date="defSingleDate" :defTime="reactMobDefTime"
- :start-date="caleRange.startDate" :end-date="caleRange.endDate" :selectableTimes="mobSelectableTime"
- :pleStatus="endMultipleStatus" :showMonth="false" :range="isRange" :typeHasTime="hasTime" :insert="false"
- :hideSecond="hideSecond" @confirm="mobileChange" />
- </view>
-</template>
-<script>
- /**
- * DatetimePicker 鏃堕棿閫夋嫨鍣�
- * @description 鍚屾椂鏀寔 PC 鍜岀Щ鍔ㄧ浣跨敤鏃ュ巻閫夋嫨鏃ユ湡鍜屾棩鏈熻寖鍥�
- * @tutorial https://ext.dcloud.net.cn/plugin?id=3962
- * @property {String} type 閫夋嫨鍣ㄧ被鍨�
- * @property {String|Number|Array|Date} value 缁戝畾鍊�
- * @property {String} placeholder 鍗曢�夋嫨鏃剁殑鍗犱綅鍐呭
- * @property {String} start 璧峰鏃堕棿
- * @property {String} end 缁堟鏃堕棿
- * @property {String} start-placeholder 鑼冨洿閫夋嫨鏃跺紑濮嬫棩鏈熺殑鍗犱綅鍐呭
- * @property {String} end-placeholder 鑼冨洿閫夋嫨鏃剁粨鏉熸棩鏈熺殑鍗犱綅鍐呭
- * @property {String} range-separator 閫夋嫨鑼冨洿鏃剁殑鍒嗛殧绗�
- * @property {Boolean} border = [true|false] 鏄惁鏈夎竟妗�
- * @property {Boolean} disabled = [true|false] 鏄惁绂佺敤
- * @property {Boolean} clearIcon = [true|false] 鏄惁鏄剧ず娓呴櫎鎸夐挳锛堜粎PC绔�傜敤锛�
- * @event {Function} change 纭畾鏃ユ湡鏃惰Е鍙戠殑浜嬩欢
- * @event {Function} show 鎵撳紑寮瑰嚭灞�
- * @event {Function} close 鍏抽棴寮瑰嚭灞�
- * @event {Function} clear 娓呴櫎涓婃閫変腑鐨勭姸鎬佸拰鍊�
- **/
- import calendar from './calendar.vue'
- import timePicker from './time-picker.vue'
- import {
- initVueI18n
- } from '@dcloudio/uni-i18n'
- import messages from './i18n/index.js'
- const {
- t
- } = initVueI18n(messages)
-
- export default {
- name: 'UniDatetimePicker',
- components: {
- calendar,
- timePicker
- },
- data() {
- return {
- isRange: false,
- hasTime: false,
- mobileRange: false,
- // 鍗曢��
- singleVal: '',
- tempSingleDate: '',
- defSingleDate: '',
- time: '',
- // 鑼冨洿閫�
- caleRange: {
- startDate: '',
- startTime: '',
- endDate: '',
- endTime: ''
- },
- range: {
- startDate: '',
- // startTime: '',
- endDate: '',
- // endTime: ''
- },
- tempRange: {
- startDate: '',
- startTime: '',
- endDate: '',
- endTime: ''
- },
- // 宸﹀彸鏃ュ巻鍚屾鏁版嵁
- startMultipleStatus: {
- before: '',
- after: '',
- data: [],
- fulldate: ''
- },
- endMultipleStatus: {
- before: '',
- after: '',
- data: [],
- fulldate: ''
- },
- visible: false,
- popup: false,
- popover: null,
- isEmitValue: false,
- isPhone: false,
- isFirstShow: true,
- }
- },
- props: {
- type: {
- type: String,
- default: 'datetime'
- },
- value: {
- type: [String, Number, Array, Date],
- default: ''
- },
- modelValue: {
- type: [String, Number, Array, Date],
- default: ''
- },
- start: {
- type: [Number, String],
- default: ''
- },
- end: {
- type: [Number, String],
- default: ''
- },
- returnType: {
- type: String,
- default: 'string'
- },
- placeholder: {
- type: String,
- default: ''
- },
- startPlaceholder: {
- type: String,
- default: ''
- },
- endPlaceholder: {
- type: String,
- default: ''
- },
- rangeSeparator: {
- type: String,
- default: '-'
- },
- border: {
- type: [Boolean],
- default: true
- },
- disabled: {
- type: [Boolean],
- default: false
- },
- clearIcon: {
- type: [Boolean],
- default: true
- },
- hideSecond: {
- type: [Boolean],
- default: false
- }
- },
- watch: {
- type: {
- immediate: true,
- handler(newVal, oldVal) {
- if (newVal.indexOf('time') !== -1) {
- this.hasTime = true
- } else {
- this.hasTime = false
- }
- if (newVal.indexOf('range') !== -1) {
- this.isRange = true
- } else {
- this.isRange = false
- }
- }
- },
- value: {
- immediate: true,
- handler(newVal, oldVal) {
- if (this.isEmitValue) {
- this.isEmitValue = false
- return
- }
- this.initPicker(newVal)
- }
- },
-
- start: {
- immediate: true,
- handler(newVal, oldVal) {
- if (!newVal) return
- const {
- defDate,
- defTime
- } = this.parseDate(newVal)
- this.caleRange.startDate = defDate
- if (this.hasTime) {
- this.caleRange.startTime = defTime
- }
- }
- },
-
- end: {
- immediate: true,
- handler(newVal, oldVal) {
- if (!newVal) return
- const {
- defDate,
- defTime
- } = this.parseDate(newVal)
- this.caleRange.endDate = defDate
- if (this.hasTime) {
- this.caleRange.endTime = defTime
- }
- }
- },
- },
- computed: {
- reactStartTime() {
- const activeDate = this.isRange ? this.tempRange.startDate : this.tempSingleDate
- const res = activeDate === this.caleRange.startDate ? this.caleRange.startTime : ''
- return res
- },
- reactEndTime() {
- const activeDate = this.isRange ? this.tempRange.endDate : this.tempSingleDate
- const res = activeDate === this.caleRange.endDate ? this.caleRange.endTime : ''
- return res
- },
- reactMobDefTime() {
- const times = {
- start: this.tempRange.startTime,
- end: this.tempRange.endTime
- }
- return this.isRange ? times : this.time
- },
- mobSelectableTime() {
- return {
- start: this.caleRange.startTime,
- end: this.caleRange.endTime
- }
- },
- datePopupWidth() {
- // todo
- return this.isRange ? 653 : 301
- },
-
- /**
- * for i18n
- */
- singlePlaceholderText() {
- return this.placeholder || (this.type === 'date' ? this.selectDateText : t(
- "uni-datetime-picker.selectDateTime"))
- },
- startPlaceholderText() {
- return this.startPlaceholder || this.startDateText
- },
- endPlaceholderText() {
- return this.endPlaceholder || this.endDateText
- },
- selectDateText() {
- return t("uni-datetime-picker.selectDate")
- },
- selectTimeText() {
- return t("uni-datetime-picker.selectTime")
- },
- startDateText() {
- return this.startPlaceholder || t("uni-datetime-picker.startDate")
- },
- startTimeText() {
- return t("uni-datetime-picker.startTime")
- },
- endDateText() {
- return this.endPlaceholder || t("uni-datetime-picker.endDate")
- },
- endTimeText() {
- return t("uni-datetime-picker.endTime")
- },
- okText() {
- return t("uni-datetime-picker.ok")
- },
- clearText() {
- return t("uni-datetime-picker.clear")
- },
- showClearIcon() {
- const { clearIcon, disabled, singleVal, range } = this
- const bool = clearIcon && !disabled && (singleVal || (range.startDate && range.endDate))
- return bool
- }
- },
- created() {
- this.form = this.getForm('uniForms')
- this.formItem = this.getForm('uniFormsItem')
-
- // if (this.formItem) {
- // if (this.formItem.name) {
- // this.rename = this.formItem.name
- // this.form.inputChildrens.push(this)
- // }
- // }
- },
- mounted() {
- this.platform()
- },
- methods: {
- /**
- * 鑾峰彇鐖跺厓绱犲疄渚�
- */
- getForm(name = 'uniForms') {
- let parent = this.$parent;
- let parentName = parent.$options.name;
- while (parentName !== name) {
- parent = parent.$parent;
- if (!parent) return false
- parentName = parent.$options.name;
- }
- return parent;
- },
- initPicker(newVal) {
- if (!newVal || Array.isArray(newVal) && !newVal.length) {
- this.$nextTick(() => {
- this.clear(false)
- })
- return
- }
- if (!Array.isArray(newVal) && !this.isRange) {
- const {
- defDate,
- defTime
- } = this.parseDate(newVal)
- this.singleVal = defDate
- this.tempSingleDate = defDate
- this.defSingleDate = defDate
- if (this.hasTime) {
- this.singleVal = defDate + ' ' + defTime
- this.time = defTime
- }
- } else {
- const [before, after] = newVal
- if (!before && !after) return
- const defBefore = this.parseDate(before)
- const defAfter = this.parseDate(after)
- const startDate = defBefore.defDate
- const endDate = defAfter.defDate
- this.range.startDate = this.tempRange.startDate = startDate
- this.range.endDate = this.tempRange.endDate = endDate
-
- if (this.hasTime) {
- this.range.startDate = defBefore.defDate + ' ' + defBefore.defTime
- this.range.endDate = defAfter.defDate + ' ' + defAfter.defTime
- this.tempRange.startTime = defBefore.defTime
- this.tempRange.endTime = defAfter.defTime
- }
- const defaultRange = {
- before: defBefore.defDate,
- after: defAfter.defDate
- }
- this.startMultipleStatus = Object.assign({}, this.startMultipleStatus, defaultRange, {
- which: 'right'
- })
- this.endMultipleStatus = Object.assign({}, this.endMultipleStatus, defaultRange, {
- which: 'left'
- })
- }
- },
- updateLeftCale(e) {
- const left = this.$refs.left
- // 璁剧疆鑼冨洿閫�
- left.cale.setHoverMultiple(e.after)
- left.setDate(this.$refs.left.nowDate.fullDate)
- },
- updateRightCale(e) {
- const right = this.$refs.right
- // 璁剧疆鑼冨洿閫�
- right.cale.setHoverMultiple(e.after)
- right.setDate(this.$refs.right.nowDate.fullDate)
- },
- platform() {
- const systemInfo = uni.getSystemInfoSync()
- this.isPhone = systemInfo.windowWidth <= 500
- this.windowWidth = systemInfo.windowWidth
- },
- show(event) {
- if (this.disabled) {
- return
- }
- this.platform()
- if (this.isPhone) {
- this.$refs.mobile.open()
- return
- }
- this.popover = {
- top: '10px'
- }
- const dateEditor = uni.createSelectorQuery().in(this).select(".uni-date-editor")
- dateEditor.boundingClientRect(rect => {
- if (this.windowWidth - rect.left < this.datePopupWidth) {
- this.popover.right = 0
- }
- }).exec()
- setTimeout(() => {
- this.popup = !this.popup
- if (!this.isPhone && this.isRange && this.isFirstShow) {
- this.isFirstShow = false
- const {
- startDate,
- endDate
- } = this.range
- if (startDate && endDate) {
- if (this.diffDate(startDate, endDate) < 30) {
- this.$refs.right.next()
- }
- } else {
- this.$refs.right.next()
- this.$refs.right.cale.lastHover = false
- }
- }
-
- }, 50)
- },
-
- close() {
- setTimeout(() => {
- this.popup = false
- this.$emit('maskClick', this.value)
- }, 20)
- },
- setEmit(value) {
- if (this.returnType === "timestamp" || this.returnType === "date") {
- if (!Array.isArray(value)) {
- if (!this.hasTime) {
- value = value + ' ' + '00:00:00'
- }
- value = this.createTimestamp(value)
- if (this.returnType === "date") {
- value = new Date(value)
- }
- } else {
- if (!this.hasTime) {
- value[0] = value[0] + ' ' + '00:00:00'
- value[1] = value[1] + ' ' + '00:00:00'
- }
- value[0] = this.createTimestamp(value[0])
- value[1] = this.createTimestamp(value[1])
- if (this.returnType === "date") {
- value[0] = new Date(value[0])
- value[1] = new Date(value[1])
- }
- }
- }
- this.formItem && this.formItem.setValue(value)
- this.$emit('change', value)
- this.$emit('input', value)
- this.$emit('update:modelValue', value)
- this.isEmitValue = true
- },
- createTimestamp(date) {
- date = this.fixIosDateFormat(date)
- return Date.parse(new Date(date))
- },
- singleChange(e) {
- this.tempSingleDate = e.fulldate
- if (this.hasTime) return
- this.confirmSingleChange()
- },
-
- confirmSingleChange() {
- if (!this.tempSingleDate) {
- this.popup = false
- return
- }
- if (this.hasTime) {
- this.singleVal = this.tempSingleDate + ' ' + (this.time ? this.time : '00:00:00')
- } else {
- this.singleVal = this.tempSingleDate
- }
- this.setEmit(this.singleVal)
- this.popup = false
- },
-
- leftChange(e) {
- const {
- before,
- after
- } = e.range
- this.rangeChange(before, after)
- const obj = {
- before: e.range.before,
- after: e.range.after,
- data: e.range.data,
- fulldate: e.fulldate
- }
- this.startMultipleStatus = Object.assign({}, this.startMultipleStatus, obj)
- },
-
- rightChange(e) {
- const {
- before,
- after
- } = e.range
- this.rangeChange(before, after)
- const obj = {
- before: e.range.before,
- after: e.range.after,
- data: e.range.data,
- fulldate: e.fulldate
- }
- this.endMultipleStatus = Object.assign({}, this.endMultipleStatus, obj)
- },
-
- mobileChange(e) {
- if (this.isRange) {
- const {
- before,
- after
- } = e.range
- this.handleStartAndEnd(before, after, true)
- if (this.hasTime) {
- const {
- startTime,
- endTime
- } = e.timeRange
- this.tempRange.startTime = startTime
- this.tempRange.endTime = endTime
- }
- this.confirmRangeChange()
-
- } else {
- if (this.hasTime) {
- this.singleVal = e.fulldate + ' ' + e.time
- } else {
- this.singleVal = e.fulldate
- }
- this.setEmit(this.singleVal)
- }
- this.$refs.mobile.close()
- },
-
- rangeChange(before, after) {
- if (!(before && after)) return
- this.handleStartAndEnd(before, after, true)
- if (this.hasTime) return
- this.confirmRangeChange()
- },
-
- confirmRangeChange() {
- if (!this.tempRange.startDate && !this.tempRange.endDate) {
- this.popup = false
- return
- }
- let start, end
- if (!this.hasTime) {
- start = this.range.startDate = this.tempRange.startDate
- end = this.range.endDate = this.tempRange.endDate
- } else {
- start = this.range.startDate = this.tempRange.startDate + ' ' +
- (this.tempRange.startTime ? this.tempRange.startTime : '00:00:00')
- end = this.range.endDate = this.tempRange.endDate + ' ' +
- (this.tempRange.endTime ? this.tempRange.endTime : '00:00:00')
- }
- const displayRange = [start, end]
- this.setEmit(displayRange)
- this.popup = false
- },
-
- handleStartAndEnd(before, after, temp = false) {
- if (!(before && after)) return
- const type = temp ? 'tempRange' : 'range'
- if (this.dateCompare(before, after)) {
- this[type].startDate = before
- this[type].endDate = after
- } else {
- this[type].startDate = after
- this[type].endDate = before
- }
- },
-
- /**
- * 姣旇緝鏃堕棿澶у皬
- */
- dateCompare(startDate, endDate) {
- // 璁$畻鎴鏃堕棿
- startDate = new Date(startDate.replace('-', '/').replace('-', '/'))
- // 璁$畻璇︾粏椤圭殑鎴鏃堕棿
- endDate = new Date(endDate.replace('-', '/').replace('-', '/'))
- if (startDate <= endDate) {
- return true
- } else {
- return false
- }
- },
-
- /**
- * 姣旇緝鏃堕棿宸�
- */
- diffDate(startDate, endDate) {
- // 璁$畻鎴鏃堕棿
- startDate = new Date(startDate.replace('-', '/').replace('-', '/'))
- // 璁$畻璇︾粏椤圭殑鎴鏃堕棿
- endDate = new Date(endDate.replace('-', '/').replace('-', '/'))
- const diff = (endDate - startDate) / (24 * 60 * 60 * 1000)
- return Math.abs(diff)
- },
-
- clear(needEmit = true) {
- if (!this.isRange) {
- this.singleVal = ''
- this.tempSingleDate = ''
- this.time = ''
- if (this.isPhone) {
- this.$refs.mobile && this.$refs.mobile.clearCalender()
- } else {
- this.$refs.pcSingle && this.$refs.pcSingle.clearCalender()
- }
- if (needEmit) {
- this.formItem && this.formItem.setValue('')
- this.$emit('change', '')
- this.$emit('input', '')
- this.$emit('update:modelValue', '')
- }
- } else {
- this.range.startDate = ''
- this.range.endDate = ''
- this.tempRange.startDate = ''
- this.tempRange.startTime = ''
- this.tempRange.endDate = ''
- this.tempRange.endTime = ''
- if (this.isPhone) {
- this.$refs.mobile && this.$refs.mobile.clearCalender()
- } else {
- this.$refs.left && this.$refs.left.clearCalender()
- this.$refs.right && this.$refs.right.clearCalender()
- this.$refs.right && this.$refs.right.next()
- }
- if (needEmit) {
- this.formItem && this.formItem.setValue([])
- this.$emit('change', [])
- this.$emit('input', [])
- this.$emit('update:modelValue', [])
- }
- }
- },
-
- parseDate(date) {
- date = this.fixIosDateFormat(date)
- const defVal = new Date(date)
- const year = defVal.getFullYear()
- const month = defVal.getMonth() + 1
- const day = defVal.getDate()
- const hour = defVal.getHours()
- const minute = defVal.getMinutes()
- const second = defVal.getSeconds()
- const defDate = year + '-' + this.lessTen(month) + '-' + this.lessTen(day)
- const defTime = this.lessTen(hour) + ':' + this.lessTen(minute) + (this.hideSecond ? '' : (':' + this
- .lessTen(second)))
- return {
- defDate,
- defTime
- }
- },
-
- lessTen(item) {
- return item < 10 ? '0' + item : item
- },
-
- //鍏煎 iOS銆乻afari 鏃ユ湡鏍煎紡
- fixIosDateFormat(value) {
- if (typeof value === 'string') {
- value = value.replace(/-/g, '/')
- }
- return value
- },
-
- leftMonthSwitch(e) {
- // console.log('leftMonthSwitch 杩斿洖:', e)
- },
- rightMonthSwitch(e) {
- // console.log('rightMonthSwitch 杩斿洖:', e)
- }
- }
- }
-</script>
-
-<style>
- .uni-date-x {
- display: flex;
- flex-direction: row;
- align-items: center;
- justify-content: center;
- padding: 0 10px;
- border-radius: 4px;
- background-color: #fff;
- color: #666;
- font-size: 14px;
- }
-
- .uni-date-x--border {
- box-sizing: border-box;
- border-radius: 4px;
- border: 1px solid #dcdfe6;
- }
-
- .uni-date-editor--x {
- position: relative;
- }
-
- .uni-date-editor--x .uni-date__icon-clear {
- position: absolute;
- top: 0;
- right: 0;
- display: inline-block;
- box-sizing: border-box;
- border: 9px solid transparent;
- /* #ifdef H5 */
- cursor: pointer;
- /* #endif */
- }
-
- .uni-date__x-input {
- padding: 0 8px;
- height: 40px;
- width: 100%;
- line-height: 40px;
- font-size: 14px;
- }
-
- .t-c {
- text-align: center;
- }
-
- .uni-date__input {
- height: 40px;
- width: 100%;
- line-height: 40px;
- font-size: 14px;
- }
-
- .uni-date-range__input {
- text-align: center;
- max-width: 142px;
- }
-
- .uni-date-picker__container {
- position: relative;
- /* position: fixed;
- left: 0;
- right: 0;
- top: 0;
- bottom: 0;
- box-sizing: border-box;
- z-index: 996;
- font-size: 14px; */
- }
-
- .uni-date-mask {
- position: fixed;
- bottom: 0px;
- top: 0px;
- left: 0px;
- right: 0px;
- background-color: rgba(0, 0, 0, 0);
- transition-duration: 0.3s;
- z-index: 996;
- }
-
- .uni-date-single--x {
- /* padding: 0 8px; */
- background-color: #fff;
- position: absolute;
- top: 0;
- z-index: 999;
- border: 1px solid #EBEEF5;
- box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
- border-radius: 4px;
- }
-
- .uni-date-range--x {
- /* padding: 0 8px; */
- background-color: #fff;
- position: absolute;
- top: 0;
- z-index: 999;
- border: 1px solid #EBEEF5;
- box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
- border-radius: 4px;
- }
-
- .uni-date-editor--x__disabled {
- opacity: 0.4;
- cursor: default;
- }
-
- .uni-date-editor--logo {
- width: 16px;
- height: 16px;
- vertical-align: middle;
- }
-
- /* 娣诲姞鏃堕棿 */
- .popup-x-header {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex-direction: row;
- /* justify-content: space-between; */
- }
-
- .popup-x-header--datetime {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex-direction: row;
- flex: 1;
- }
-
- .popup-x-body {
- display: flex;
- }
-
- .popup-x-footer {
- padding: 0 15px;
- border-top-color: #F1F1F1;
- border-top-style: solid;
- border-top-width: 1px;
- /* background-color: #fff; */
- line-height: 40px;
- text-align: right;
- color: #666;
- }
-
- .popup-x-footer text:hover {
- color: #007aff;
- cursor: pointer;
- opacity: 0.8;
- }
-
- .popup-x-footer .confirm {
- margin-left: 20px;
- color: #007aff;
- }
-
- .uni-date-changed {
- /* background-color: #fff; */
- text-align: center;
- color: #333;
- border-bottom-color: #F1F1F1;
- border-bottom-style: solid;
- border-bottom-width: 1px;
- /* padding: 0 50px; */
- }
-
- .uni-date-changed--time text {
- /* padding: 0 20px; */
- height: 50px;
- line-height: 50px;
- }
-
- .uni-date-changed .uni-date-changed--time {
- /* display: flex; */
- flex: 1;
- }
-
- .uni-date-changed--time-date {
- color: #333;
- opacity: 0.6;
- }
-
- .mr-50 {
- margin-right: 50px;
- }
-
- /* picker 寮瑰嚭灞傞�氱敤鐨勬寚绀哄皬涓夎, todo锛氭墿灞曡嚦涓婁笅宸﹀彸鏂瑰悜瀹氫綅 */
- .uni-popper__arrow,
- .uni-popper__arrow::after {
- position: absolute;
- display: block;
- width: 0;
- height: 0;
- border-color: transparent;
- border-style: solid;
- border-width: 6px;
- }
-
- .uni-popper__arrow {
- filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.03));
- top: -6px;
- left: 10%;
- margin-right: 3px;
- border-top-width: 0;
- border-bottom-color: #EBEEF5;
- }
-
- .uni-popper__arrow::after {
- content: " ";
- top: 1px;
- margin-left: -6px;
- border-top-width: 0;
- border-bottom-color: #fff;
- }
-</style>
diff --git a/uni_modules/uni-datetime-picker/components/uni-datetime-picker/util.js b/uni_modules/uni-datetime-picker/components/uni-datetime-picker/util.js
deleted file mode 100644
index efa5773..0000000
--- a/uni_modules/uni-datetime-picker/components/uni-datetime-picker/util.js
+++ /dev/null
@@ -1,410 +0,0 @@
-class Calendar {
- constructor({
- date,
- selected,
- startDate,
- endDate,
- range,
- // multipleStatus
- } = {}) {
- // 褰撳墠鏃ユ湡
- this.date = this.getDate(new Date()) // 褰撳墠鍒濆叆鏃ユ湡
- // 鎵撶偣淇℃伅
- this.selected = selected || [];
- // 鑼冨洿寮�濮�
- this.startDate = startDate
- // 鑼冨洿缁撴潫
- this.endDate = endDate
- this.range = range
- // 澶氶�夌姸鎬�
- this.cleanMultipleStatus()
- // 姣忓懆鏃ユ湡
- this.weeks = {}
- // this._getWeek(this.date.fullDate)
- // this.multipleStatus = multipleStatus
- this.lastHover = false
- }
- /**
- * 璁剧疆鏃ユ湡
- * @param {Object} date
- */
- setDate(date) {
- this.selectDate = this.getDate(date)
- this._getWeek(this.selectDate.fullDate)
- }
-
- /**
- * 娓呯悊澶氶�夌姸鎬�
- */
- cleanMultipleStatus() {
- this.multipleStatus = {
- before: '',
- after: '',
- data: []
- }
- }
-
- /**
- * 閲嶇疆寮�濮嬫棩鏈�
- */
- resetSatrtDate(startDate) {
- // 鑼冨洿寮�濮�
- this.startDate = startDate
-
- }
-
- /**
- * 閲嶇疆缁撴潫鏃ユ湡
- */
- resetEndDate(endDate) {
- // 鑼冨洿缁撴潫
- this.endDate = endDate
- }
-
- /**
- * 鑾峰彇浠绘剰鏃堕棿
- */
- getDate(date, AddDayCount = 0, str = 'day') {
- if (!date) {
- date = new Date()
- }
- if (typeof date !== 'object') {
- date = date.replace(/-/g, '/')
- }
- const dd = new Date(date)
- switch (str) {
- case 'day':
- dd.setDate(dd.getDate() + AddDayCount) // 鑾峰彇AddDayCount澶╁悗鐨勬棩鏈�
- break
- case 'month':
- if (dd.getDate() === 31) {
- dd.setDate(dd.getDate() + AddDayCount)
- } else {
- dd.setMonth(dd.getMonth() + AddDayCount) // 鑾峰彇AddDayCount澶╁悗鐨勬棩鏈�
- }
- break
- case 'year':
- dd.setFullYear(dd.getFullYear() + AddDayCount) // 鑾峰彇AddDayCount澶╁悗鐨勬棩鏈�
- break
- }
- const y = dd.getFullYear()
- const m = dd.getMonth() + 1 < 10 ? '0' + (dd.getMonth() + 1) : dd.getMonth() + 1 // 鑾峰彇褰撳墠鏈堜唤鐨勬棩鏈燂紝涓嶈冻10琛�0
- const d = dd.getDate() < 10 ? '0' + dd.getDate() : dd.getDate() // 鑾峰彇褰撳墠鍑犲彿锛屼笉瓒�10琛�0
- return {
- fullDate: y + '-' + m + '-' + d,
- year: y,
- month: m,
- date: d,
- day: dd.getDay()
- }
- }
-
-
- /**
- * 鑾峰彇涓婃湀鍓╀綑澶╂暟
- */
- _getLastMonthDays(firstDay, full) {
- let dateArr = []
- for (let i = firstDay; i > 0; i--) {
- const beforeDate = new Date(full.year, full.month - 1, -i + 1).getDate()
- dateArr.push({
- date: beforeDate,
- month: full.month - 1,
- disable: true
- })
- }
- return dateArr
- }
- /**
- * 鑾峰彇鏈湀澶╂暟
- */
- _currentMonthDys(dateData, full) {
- let dateArr = []
- let fullDate = this.date.fullDate
- for (let i = 1; i <= dateData; i++) {
- let isinfo = false
- let nowDate = full.year + '-' + (full.month < 10 ?
- full.month : full.month) + '-' + (i < 10 ?
- '0' + i : i)
- // 鏄惁浠婂ぉ
- let isDay = fullDate === nowDate
- // 鑾峰彇鎵撶偣淇℃伅
- let info = this.selected && this.selected.find((item) => {
- if (this.dateEqual(nowDate, item.date)) {
- return item
- }
- })
-
- // 鏃ユ湡绂佺敤
- let disableBefore = true
- let disableAfter = true
- if (this.startDate) {
- // let dateCompBefore = this.dateCompare(this.startDate, fullDate)
- // disableBefore = this.dateCompare(dateCompBefore ? this.startDate : fullDate, nowDate)
- disableBefore = this.dateCompare(this.startDate, nowDate)
- }
-
- if (this.endDate) {
- // let dateCompAfter = this.dateCompare(fullDate, this.endDate)
- // disableAfter = this.dateCompare(nowDate, dateCompAfter ? this.endDate : fullDate)
- disableAfter = this.dateCompare(nowDate, this.endDate)
- }
- let multiples = this.multipleStatus.data
- let checked = false
- let multiplesStatus = -1
- if (this.range) {
- if (multiples) {
- multiplesStatus = multiples.findIndex((item) => {
- return this.dateEqual(item, nowDate)
- })
- }
- if (multiplesStatus !== -1) {
- checked = true
- }
- }
- let data = {
- fullDate: nowDate,
- year: full.year,
- date: i,
- multiple: this.range ? checked : false,
- beforeMultiple: this.isLogicBefore(nowDate, this.multipleStatus.before, this.multipleStatus.after),
- afterMultiple: this.isLogicAfter(nowDate, this.multipleStatus.before, this.multipleStatus.after),
- month: full.month,
- disable: !(disableBefore && disableAfter),
- isDay,
- userChecked: false
- }
- if (info) {
- data.extraInfo = info
- }
-
- dateArr.push(data)
- }
- return dateArr
- }
- /**
- * 鑾峰彇涓嬫湀澶╂暟
- */
- _getNextMonthDays(surplus, full) {
- let dateArr = []
- for (let i = 1; i < surplus + 1; i++) {
- dateArr.push({
- date: i,
- month: Number(full.month) + 1,
- disable: true
- })
- }
- return dateArr
- }
-
- /**
- * 鑾峰彇褰撳墠鏃ユ湡璇︽儏
- * @param {Object} date
- */
- getInfo(date) {
- if (!date) {
- date = new Date()
- }
- const dateInfo = this.canlender.find(item => item.fullDate === this.getDate(date).fullDate)
- return dateInfo
- }
-
- /**
- * 姣旇緝鏃堕棿澶у皬
- */
- dateCompare(startDate, endDate) {
- // 璁$畻鎴鏃堕棿
- startDate = new Date(startDate.replace('-', '/').replace('-', '/'))
- // 璁$畻璇︾粏椤圭殑鎴鏃堕棿
- endDate = new Date(endDate.replace('-', '/').replace('-', '/'))
- if (startDate <= endDate) {
- return true
- } else {
- return false
- }
- }
-
- /**
- * 姣旇緝鏃堕棿鏄惁鐩哥瓑
- */
- dateEqual(before, after) {
- // 璁$畻鎴鏃堕棿
- before = new Date(before.replace('-', '/').replace('-', '/'))
- // 璁$畻璇︾粏椤圭殑鎴鏃堕棿
- after = new Date(after.replace('-', '/').replace('-', '/'))
- if (before.getTime() - after.getTime() === 0) {
- return true
- } else {
- return false
- }
- }
-
- /**
- * 姣旇緝鐪熷疄璧峰鏃ユ湡
- */
-
- isLogicBefore(currentDay, before, after) {
- let logicBefore = before
- if (before && after) {
- logicBefore = this.dateCompare(before, after) ? before : after
- }
- return this.dateEqual(logicBefore, currentDay)
- }
-
- isLogicAfter(currentDay, before, after) {
- let logicAfter = after
- if (before && after) {
- logicAfter = this.dateCompare(before, after) ? after : before
- }
- return this.dateEqual(logicAfter, currentDay)
- }
-
- /**
- * 鑾峰彇鏃ユ湡鑼冨洿鍐呮墍鏈夋棩鏈�
- * @param {Object} begin
- * @param {Object} end
- */
- geDateAll(begin, end) {
- var arr = []
- var ab = begin.split('-')
- var ae = end.split('-')
- var db = new Date()
- db.setFullYear(ab[0], ab[1] - 1, ab[2])
- var de = new Date()
- de.setFullYear(ae[0], ae[1] - 1, ae[2])
- var unixDb = db.getTime() - 24 * 60 * 60 * 1000
- var unixDe = de.getTime() - 24 * 60 * 60 * 1000
- for (var k = unixDb; k <= unixDe;) {
- k = k + 24 * 60 * 60 * 1000
- arr.push(this.getDate(new Date(parseInt(k))).fullDate)
- }
- return arr
- }
-
- /**
- * 鑾峰彇澶氶�夌姸鎬�
- */
- setMultiple(fullDate) {
- let {
- before,
- after
- } = this.multipleStatus
- if (!this.range) return
- if (before && after) {
- if (!this.lastHover) {
- this.lastHover = true
- return
- }
- this.multipleStatus.before = fullDate
- this.multipleStatus.after = ''
- this.multipleStatus.data = []
- this.multipleStatus.fulldate = ''
- this.lastHover = false
- } else {
- if (!before) {
- this.multipleStatus.before = fullDate
- this.lastHover = false
- } else {
- this.multipleStatus.after = fullDate
- if (this.dateCompare(this.multipleStatus.before, this.multipleStatus.after)) {
- this.multipleStatus.data = this.geDateAll(this.multipleStatus.before, this.multipleStatus
- .after);
- } else {
- this.multipleStatus.data = this.geDateAll(this.multipleStatus.after, this.multipleStatus
- .before);
- }
- this.lastHover = true
- }
- }
- this._getWeek(fullDate)
- }
-
- /**
- * 榧犳爣 hover 鏇存柊澶氶�夌姸鎬�
- */
- setHoverMultiple(fullDate) {
- let {
- before,
- after
- } = this.multipleStatus
-
- if (!this.range) return
- if (this.lastHover) return
-
- if (!before) {
- this.multipleStatus.before = fullDate
- } else {
- this.multipleStatus.after = fullDate
- if (this.dateCompare(this.multipleStatus.before, this.multipleStatus.after)) {
- this.multipleStatus.data = this.geDateAll(this.multipleStatus.before, this.multipleStatus.after);
- } else {
- this.multipleStatus.data = this.geDateAll(this.multipleStatus.after, this.multipleStatus.before);
- }
- }
- this._getWeek(fullDate)
- }
-
- /**
- * 鏇存柊榛樿鍊煎閫夌姸鎬�
- */
- setDefaultMultiple(before, after) {
- this.multipleStatus.before = before
- this.multipleStatus.after = after
- if (before && after) {
- if (this.dateCompare(before, after)) {
- this.multipleStatus.data = this.geDateAll(before, after);
- this._getWeek(after)
- } else {
- this.multipleStatus.data = this.geDateAll(after, before);
- this._getWeek(before)
- }
- }
- }
-
- /**
- * 鑾峰彇姣忓懆鏁版嵁
- * @param {Object} dateData
- */
- _getWeek(dateData) {
- const {
- fullDate,
- year,
- month,
- date,
- day
- } = this.getDate(dateData)
- let firstDay = new Date(year, month - 1, 1).getDay()
- let currentDay = new Date(year, month, 0).getDate()
- let dates = {
- lastMonthDays: this._getLastMonthDays(firstDay, this.getDate(dateData)), // 涓婁釜鏈堟湯灏惧嚑澶�
- currentMonthDys: this._currentMonthDys(currentDay, this.getDate(dateData)), // 鏈湀澶╂暟
- nextMonthDays: [], // 涓嬩釜鏈堝紑濮嬪嚑澶�
- weeks: []
- }
- let canlender = []
- const surplus = 42 - (dates.lastMonthDays.length + dates.currentMonthDys.length)
- dates.nextMonthDays = this._getNextMonthDays(surplus, this.getDate(dateData))
- canlender = canlender.concat(dates.lastMonthDays, dates.currentMonthDys, dates.nextMonthDays)
- let weeks = {}
- // 鎷兼帴鏁扮粍 涓婁釜鏈堝紑濮嬪嚑澶� + 鏈湀澶╂暟+ 涓嬩釜鏈堝紑濮嬪嚑澶�
- for (let i = 0; i < canlender.length; i++) {
- if (i % 7 === 0) {
- weeks[parseInt(i / 7)] = new Array(7)
- }
- weeks[parseInt(i / 7)][i % 7] = canlender[i]
- }
- this.canlender = canlender
- this.weeks = weeks
- }
-
- //闈欐�佹柟娉�
- // static init(date) {
- // if (!this.instance) {
- // this.instance = new Calendar(date);
- // }
- // return this.instance;
- // }
-}
-
-
-export default Calendar
diff --git a/uni_modules/uni-datetime-picker/package.json b/uni_modules/uni-datetime-picker/package.json
deleted file mode 100644
index 5e0ff11..0000000
--- a/uni_modules/uni-datetime-picker/package.json
+++ /dev/null
@@ -1,90 +0,0 @@
-{
- "id": "uni-datetime-picker",
- "displayName": "uni-datetime-picker 鏃ユ湡閫夋嫨鍣�",
- "version": "2.2.2",
- "description": "uni-datetime-picker 鏃ユ湡鏃堕棿閫夋嫨鍣紝鏀寔鏃ュ巻锛屾敮鎸佽寖鍥撮�夋嫨",
- "keywords": [
- "uni-datetime-picker",
- "uni-ui",
- "uniui",
- "鏃ユ湡鏃堕棿閫夋嫨鍣�",
- "鏃ユ湡鏃堕棿"
-],
- "repository": "https://github.com/dcloudio/uni-ui",
- "engines": {
- "HBuilderX": ""
- },
- "directories": {
- "example": "../../temps/example_temps"
- },
- "dcloudext": {
- "category": [
- "鍓嶇缁勪欢",
- "閫氱敤缁勪欢"
- ],
- "sale": {
- "regular": {
- "price": "0.00"
- },
- "sourcecode": {
- "price": "0.00"
- }
- },
- "contact": {
- "qq": ""
- },
- "declaration": {
- "ads": "鏃�",
- "data": "鏃�",
- "permissions": "鏃�"
- },
- "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui"
- },
- "uni_modules": {
- "dependencies": [
- "uni-scss",
- "uni-icons"
- ],
- "encrypt": [],
- "platforms": {
- "cloud": {
- "tcb": "y",
- "aliyun": "y"
- },
- "client": {
- "App": {
- "app-vue": "y",
- "app-nvue": "n"
- },
- "H5-mobile": {
- "Safari": "y",
- "Android Browser": "y",
- "寰俊娴忚鍣�(Android)": "y",
- "QQ娴忚鍣�(Android)": "y"
- },
- "H5-pc": {
- "Chrome": "y",
- "IE": "y",
- "Edge": "y",
- "Firefox": "y",
- "Safari": "y"
- },
- "灏忕▼搴�": {
- "寰俊": "y",
- "闃块噷": "y",
- "鐧惧害": "y",
- "瀛楄妭璺冲姩": "y",
- "QQ": "y"
- },
- "蹇簲鐢�": {
- "鍗庝负": "u",
- "鑱旂洘": "u"
- },
- "Vue": {
- "vue2": "y",
- "vue3": "y"
- }
- }
- }
- }
-}
diff --git a/uni_modules/uni-datetime-picker/readme.md b/uni_modules/uni-datetime-picker/readme.md
deleted file mode 100644
index 162fbef..0000000
--- a/uni_modules/uni-datetime-picker/readme.md
+++ /dev/null
@@ -1,21 +0,0 @@
-
-
-> `閲嶈閫氱煡锛氱粍浠跺崌绾ф洿鏂� 2.0.0 鍚庯紝鏀寔鏃ユ湡+鏃堕棿鑼冨洿閫夋嫨锛岀粍浠� ui 灏嗕娇鐢ㄦ棩鍘嗛�夋嫨鏃ユ湡锛寀i 鍙樺寲杈冨ぇ锛屽悓鏃舵敮鎸� PC 鍜� 绉诲姩绔�傛鐗堟湰涓嶅悜鍚庡吋瀹癸紝涓嶅啀鏀寔鍗曠嫭鐨勬椂闂撮�夋嫨锛坱ype=time锛夊強鐩稿叧鐨� hide-second 灞炴�э紙鏃堕棿閫夊彲浣跨敤鍐呯疆缁勪欢 picker锛夈�傝嫢浠嶉渶浣跨敤鏃х増鏈紝鍙湪鎻掍欢甯傚満涓嬭浇*闈瀠ni_modules鐗堟湰*锛屾棫鐗堟湰灏嗕笉鍐嶇淮鎶
-
-## DatetimePicker 鏃堕棿閫夋嫨鍣�
-
-> **缁勪欢鍚嶏細uni-datetime-picker**
-> 浠g爜鍧楋細 `uDatetimePicker`
-
-
-璇ョ粍浠剁殑浼樺娍鏄紝鏀寔**鏃堕棿鎴�**杈撳叆鍜岃緭鍑猴紙璧峰鏃堕棿銆佺粓姝㈡椂闂翠篃鏀寔鏃堕棿鎴筹級锛屽彲**鍚屾椂閫夋嫨**鏃ユ湡鍜屾椂闂淬��
-
-鑻ュ彧鏄渶瑕佸崟鐙�夋嫨鏃ユ湡鍜屾椂闂达紝涓嶉渶瑕佹椂闂存埑杈撳叆鍜岃緭鍑猴紝鍙娇鐢ㄥ師鐢熺殑 picker 缁勪欢銆�
-
-**_鐐瑰嚮 picker 榛樿鍊艰鍒欙細_**
-
-- 鑻ヨ缃垵濮嬪�� value, 浼氭樉绀哄湪 picker 鏄剧ず妗嗕腑
-- 鑻ユ棤鍒濆鍊� value锛屽垯鍒濆鍊� value 涓哄綋鍓嶆湰鍦版椂闂� Date.now()锛� 浣嗕笉浼氭樉绀哄湪 picker 鏄剧ず妗嗕腑
-
-### [鏌ョ湅鏂囨。](https://uniapp.dcloud.io/component/uniui/uni-datetime-picker)
-#### 濡備娇鐢ㄨ繃绋嬩腑鏈変换浣曢棶棰橈紝鎴栬�呮偍瀵箄ni-ui鏈変竴浜涘ソ鐨勫缓璁紝娆㈣繋鍔犲叆 uni-ui 浜ゆ祦缇わ細871950839
\ No newline at end of file
diff --git a/uni_modules/uni-drawer/changelog.md b/uni_modules/uni-drawer/changelog.md
deleted file mode 100644
index 6d2488c..0000000
--- a/uni_modules/uni-drawer/changelog.md
+++ /dev/null
@@ -1,13 +0,0 @@
-## 1.2.1锛�2021-11-22锛�
-- 淇 vue3涓釜鍒玸css鍙橀噺鏃犳硶鎵惧埌鐨勯棶棰�
-## 1.2.0锛�2021-11-19锛�
-- 浼樺寲 缁勪欢UI锛屽苟鎻愪緵璁捐璧勬簮锛岃瑙�:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource)
-- 鏂囨。杩佺Щ锛岃瑙�:[https://uniapp.dcloud.io/component/uniui/uni-drawer](https://uniapp.dcloud.io/component/uniui/uni-drawer)
-## 1.1.1锛�2021-07-30锛�
-- 浼樺寲 vue3涓嬩簨浠惰鍛婄殑闂
-## 1.1.0锛�2021-07-13锛�
-- 缁勪欢鍏煎 vue3锛屽浣曞垱寤簐ue3椤圭洰锛岃瑙� [uni-app 椤圭洰鏀寔 vue3 浠嬬粛](https://ask.dcloud.net.cn/article/37834)
-## 1.0.7锛�2021-05-12锛�
-- 鏂板 缁勪欢绀轰緥鍦板潃
-## 1.0.6锛�2021-02-04锛�
-- 璋冩暣涓簎ni_modules鐩綍瑙勮寖
diff --git a/uni_modules/uni-drawer/components/uni-drawer/keypress.js b/uni_modules/uni-drawer/components/uni-drawer/keypress.js
deleted file mode 100644
index 62dda46..0000000
--- a/uni_modules/uni-drawer/components/uni-drawer/keypress.js
+++ /dev/null
@@ -1,45 +0,0 @@
-// #ifdef H5
-export default {
- name: 'Keypress',
- props: {
- disable: {
- type: Boolean,
- default: false
- }
- },
- mounted () {
- const keyNames = {
- esc: ['Esc', 'Escape'],
- tab: 'Tab',
- enter: 'Enter',
- space: [' ', 'Spacebar'],
- up: ['Up', 'ArrowUp'],
- left: ['Left', 'ArrowLeft'],
- right: ['Right', 'ArrowRight'],
- down: ['Down', 'ArrowDown'],
- delete: ['Backspace', 'Delete', 'Del']
- }
- const listener = ($event) => {
- if (this.disable) {
- return
- }
- const keyName = Object.keys(keyNames).find(key => {
- const keyName = $event.key
- const value = keyNames[key]
- return value === keyName || (Array.isArray(value) && value.includes(keyName))
- })
- if (keyName) {
- // 閬垮厤鍜屽叾浠栨寜閿簨浠跺啿绐�
- setTimeout(() => {
- this.$emit(keyName, {})
- }, 0)
- }
- }
- document.addEventListener('keyup', listener)
- // this.$once('hook:beforeDestroy', () => {
- // document.removeEventListener('keyup', listener)
- // })
- },
- render: () => {}
-}
-// #endif
diff --git a/uni_modules/uni-drawer/components/uni-drawer/uni-drawer.vue b/uni_modules/uni-drawer/components/uni-drawer/uni-drawer.vue
deleted file mode 100644
index 2471521..0000000
--- a/uni_modules/uni-drawer/components/uni-drawer/uni-drawer.vue
+++ /dev/null
@@ -1,183 +0,0 @@
-<template>
- <view v-if="visibleSync" :class="{ 'uni-drawer--visible': showDrawer }" class="uni-drawer" @touchmove.stop.prevent="clear">
- <view class="uni-drawer__mask" :class="{ 'uni-drawer__mask--visible': showDrawer && mask }" @tap="close('mask')" />
- <view class="uni-drawer__content" :class="{'uni-drawer--right': rightMode,'uni-drawer--left': !rightMode, 'uni-drawer__content--visible': showDrawer}" :style="{width:drawerWidth+'px'}">
- <slot />
- </view>
- <!-- #ifdef H5 -->
- <keypress @esc="close('mask')" />
- <!-- #endif -->
- </view>
-</template>
-
-<script>
- // #ifdef H5
- import keypress from './keypress.js'
- // #endif
- /**
- * Drawer 鎶藉眽
- * @description 鎶藉眽渚ф粦鑿滃崟
- * @tutorial https://ext.dcloud.net.cn/plugin?id=26
- * @property {Boolean} mask = [true | false] 鏄惁鏄剧ず閬僵
- * @property {Boolean} maskClick = [true | false] 鐐瑰嚮閬僵鏄惁鍏抽棴
- * @property {Boolean} mode = [left | right] Drawer 婊戝嚭浣嶇疆
- * @value left 浠庡乏渚ф粦鍑�
- * @value right 浠庡彸渚т晶婊戝嚭
- * @property {Number} width 鎶藉眽鐨勫搴� 锛屼粎 vue 椤甸潰鐢熸晥
- * @event {Function} close 缁勪欢鍏抽棴鏃惰Е鍙戜簨浠�
- */
- export default {
- name: 'UniDrawer',
- components: {
- // #ifdef H5
- keypress
- // #endif
- },
- emits:['change'],
- props: {
- /**
- * 鏄剧ず妯″紡锛堝乏銆佸彸锛夛紝鍙湪鍒濆鍖栫敓鏁�
- */
- mode: {
- type: String,
- default: ''
- },
- /**
- * 钂欏眰鏄剧ず鐘舵��
- */
- mask: {
- type: Boolean,
- default: true
- },
- /**
- * 閬僵鏄惁鍙偣鍑诲叧闂�
- */
- maskClick:{
- type: Boolean,
- default: true
- },
- /**
- * 鎶藉眽瀹藉害
- */
- width: {
- type: Number,
- default: 220
- }
- },
- data() {
- return {
- visibleSync: false,
- showDrawer: false,
- rightMode: false,
- watchTimer: null,
- drawerWidth: 220
- }
- },
- created() {
- // #ifndef APP-NVUE
- this.drawerWidth = this.width
- // #endif
- this.rightMode = this.mode === 'right'
- },
- methods: {
- clear(){},
- close(type) {
- // fixed by mehaotian 鎶藉眽灏氭湭瀹屽叏鍏抽棴鎴栭伄缃╃姝㈢偣鍑绘椂涓嶈Е鍙戜互涓嬮�昏緫
- if((type === 'mask' && !this.maskClick) || !this.visibleSync) return
- this._change('showDrawer', 'visibleSync', false)
- },
- open() {
- // fixed by mehaotian 澶勭悊閲嶅鐐瑰嚮鎵撳紑鐨勪簨浠�
- if(this.visibleSync) return
- this._change('visibleSync', 'showDrawer', true)
- },
- _change(param1, param2, status) {
- this[param1] = status
- if (this.watchTimer) {
- clearTimeout(this.watchTimer)
- }
- this.watchTimer = setTimeout(() => {
- this[param2] = status
- this.$emit('change',status)
- }, status ? 50 : 300)
- }
- }
- }
-</script>
-
-<style lang="scss" scoped>
- $uni-mask: rgba($color: #000000, $alpha: 0.4) ;
- // 鎶藉眽瀹藉害
- $drawer-width: 220px;
-
- .uni-drawer {
- /* #ifndef APP-NVUE */
- display: block;
- /* #endif */
- position: fixed;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- overflow: hidden;
- z-index: 999;
- }
-
- .uni-drawer__content {
- /* #ifndef APP-NVUE */
- display: block;
- /* #endif */
- position: absolute;
- top: 0;
- width: $drawer-width;
- bottom: 0;
- background-color: $uni-bg-color;
- transition: transform 0.3s ease;
- }
-
- .uni-drawer--left {
- left: 0;
- /* #ifdef APP-NVUE */
- transform: translateX(-$drawer-width);
- /* #endif */
- /* #ifndef APP-NVUE */
- transform: translateX(-100%);
- /* #endif */
- }
-
- .uni-drawer--right {
- right: 0;
- /* #ifdef APP-NVUE */
- transform: translateX($drawer-width);
- /* #endif */
- /* #ifndef APP-NVUE */
- transform: translateX(100%);
- /* #endif */
- }
-
- .uni-drawer__content--visible {
- transform: translateX(0px);
- }
-
-
- .uni-drawer__mask {
- /* #ifndef APP-NVUE */
- display: block;
- /* #endif */
- opacity: 0;
- position: absolute;
- top: 0;
- left: 0;
- bottom: 0;
- right: 0;
- background-color: $uni-mask;
- transition: opacity 0.3s;
- }
-
- .uni-drawer__mask--visible {
- /* #ifndef APP-NVUE */
- display: block;
- /* #endif */
- opacity: 1;
- }
-</style>
diff --git a/uni_modules/uni-drawer/package.json b/uni_modules/uni-drawer/package.json
deleted file mode 100644
index dd056e4..0000000
--- a/uni_modules/uni-drawer/package.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "id": "uni-drawer",
- "displayName": "uni-drawer 鎶藉眽",
- "version": "1.2.1",
- "description": "鎶藉眽寮忓鑸紝鐢ㄤ簬灞曠ず渚ф粦鑿滃崟锛屼晶婊戝鑸��",
- "keywords": [
- "uni-ui",
- "uniui",
- "drawer",
- "鎶藉眽",
- "渚ф粦瀵艰埅"
-],
- "repository": "https://github.com/dcloudio/uni-ui",
- "engines": {
- "HBuilderX": ""
- },
- "directories": {
- "example": "../../temps/example_temps"
- },
- "dcloudext": {
- "category": [
- "鍓嶇缁勪欢",
- "閫氱敤缁勪欢"
- ],
- "sale": {
- "regular": {
- "price": "0.00"
- },
- "sourcecode": {
- "price": "0.00"
- }
- },
- "contact": {
- "qq": ""
- },
- "declaration": {
- "ads": "鏃�",
- "data": "鏃�",
- "permissions": "鏃�"
- },
- "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui"
- },
- "uni_modules": {
- "dependencies": ["uni-scss"],
- "encrypt": [],
- "platforms": {
- "cloud": {
- "tcb": "y",
- "aliyun": "y"
- },
- "client": {
- "App": {
- "app-vue": "y",
- "app-nvue": "y"
- },
- "H5-mobile": {
- "Safari": "y",
- "Android Browser": "y",
- "寰俊娴忚鍣�(Android)": "y",
- "QQ娴忚鍣�(Android)": "y"
- },
- "H5-pc": {
- "Chrome": "y",
- "IE": "y",
- "Edge": "y",
- "Firefox": "y",
- "Safari": "y"
- },
- "灏忕▼搴�": {
- "寰俊": "y",
- "闃块噷": "y",
- "鐧惧害": "y",
- "瀛楄妭璺冲姩": "y",
- "QQ": "y"
- },
- "蹇簲鐢�": {
- "鍗庝负": "u",
- "鑱旂洘": "u"
- },
- "Vue": {
- "vue2": "y",
- "vue3": "y"
- }
- }
- }
- }
-}
\ No newline at end of file
diff --git a/uni_modules/uni-drawer/readme.md b/uni_modules/uni-drawer/readme.md
deleted file mode 100644
index dcf6e6b..0000000
--- a/uni_modules/uni-drawer/readme.md
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-## Drawer 鎶藉眽
-> **缁勪欢鍚嶏細uni-drawer**
-> 浠g爜鍧楋細 `uDrawer`
-
-鎶藉眽渚ф粦鑿滃崟銆�
-
-### [鏌ョ湅鏂囨。](https://uniapp.dcloud.io/component/uniui/uni-drawer)
-#### 濡備娇鐢ㄨ繃绋嬩腑鏈変换浣曢棶棰橈紝鎴栬�呮偍瀵箄ni-ui鏈変竴浜涘ソ鐨勫缓璁紝娆㈣繋鍔犲叆 uni-ui 浜ゆ祦缇わ細871950839
\ No newline at end of file
diff --git a/uni_modules/uni-easyinput/changelog.md b/uni_modules/uni-easyinput/changelog.md
deleted file mode 100644
index 0bb1663..0000000
--- a/uni_modules/uni-easyinput/changelog.md
+++ /dev/null
@@ -1,31 +0,0 @@
-## 1.0.0锛�2021-11-19锛�
-- 浼樺寲 缁勪欢UI锛屽苟鎻愪緵璁捐璧勬簮锛岃瑙�:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource)
-- 鏂囨。杩佺Щ锛岃瑙�:[https://uniapp.dcloud.io/component/uniui/uni-easyinput](https://uniapp.dcloud.io/component/uniui/uni-easyinput)
-## 0.1.4锛�2021-08-20锛�
-- 淇 鍦� uni-forms 鐨勫姩鎬佽〃鍗曚腑榛樿鍊兼牎楠屼笉閫氳繃鐨� bug
-## 0.1.3锛�2021-08-11锛�
-- 淇 鍦� uni-forms 涓噸缃〃鍗曪紝閿欒淇℃伅鏃犳硶娓呴櫎鐨勯棶棰�
-## 0.1.2锛�2021-07-30锛�
-- 浼樺寲 vue3涓嬩簨浠惰鍛婄殑闂
-## 0.1.1
-- 浼樺寲 errorMessage 灞炴�ф敮鎸� Boolean 绫诲瀷
-## 0.1.0锛�2021-07-13锛�
-- 缁勪欢鍏煎 vue3锛屽浣曞垱寤簐ue3椤圭洰锛岃瑙� [uni-app 椤圭洰鏀寔 vue3 浠嬬粛](https://ask.dcloud.net.cn/article/37834)
-## 0.0.16锛�2021-06-29锛�
-- 淇 confirmType 灞炴�э紙浠� type="text" 鐢熸晥锛夊鑷村琛屾枃鏈鏃犳硶鎹㈣鐨� bug
-## 0.0.15锛�2021-06-21锛�
-- 淇 passwordIcon 灞炴�ф嫾鍐欓敊璇殑 bug
-## 0.0.14锛�2021-06-18锛�
-- 鏂板 passwordIcon 灞炴�э紝褰搕ype=password鏃舵槸鍚︽樉绀哄皬鐪肩潧鍥炬爣
-- 淇 confirmType 灞炴�т笉鐢熸晥鐨勯棶棰�
-## 0.0.13锛�2021-06-04锛�
-- 淇 disabled 鐘舵�佸彲娓呭嚭鍐呭鐨� bug
-## 0.0.12锛�2021-05-12锛�
-- 鏂板 缁勪欢绀轰緥鍦板潃
-## 0.0.11锛�2021-05-07锛�
-- 淇 input-border 灞炴�т笉鐢熸晥鐨勯棶棰�
-## 0.0.10锛�2021-04-30锛�
-- 淇 ios 閬尅鏂囧瓧銆佹樉绀轰竴鍗婄殑闂
-## 0.0.9锛�2021-02-05锛�
-- 璋冩暣涓簎ni_modules鐩綍瑙勮寖
-- 浼樺寲 鍏煎 nvue 椤甸潰
diff --git a/uni_modules/uni-easyinput/components/uni-easyinput/common.js b/uni_modules/uni-easyinput/components/uni-easyinput/common.js
deleted file mode 100644
index df9abe1..0000000
--- a/uni_modules/uni-easyinput/components/uni-easyinput/common.js
+++ /dev/null
@@ -1,56 +0,0 @@
-/**
- * @desc 鍑芥暟闃叉姈
- * @param func 鐩爣鍑芥暟
- * @param wait 寤惰繜鎵ц姣鏁�
- * @param immediate true - 绔嬪嵆鎵ц锛� false - 寤惰繜鎵ц
- */
-export const debounce = function(func, wait = 1000, immediate = true) {
- let timer;
- console.log(1);
- return function() {
- console.log(123);
- let context = this,
- args = arguments;
- if (timer) clearTimeout(timer);
- if (immediate) {
- let callNow = !timer;
- timer = setTimeout(() => {
- timer = null;
- }, wait);
- if (callNow) func.apply(context, args);
- } else {
- timer = setTimeout(() => {
- func.apply(context, args);
- }, wait)
- }
- }
-}
-/**
- * @desc 鍑芥暟鑺傛祦
- * @param func 鍑芥暟
- * @param wait 寤惰繜鎵ц姣鏁�
- * @param type 1 浣跨敤琛ㄦ椂闂存埑锛屽湪鏃堕棿娈靛紑濮嬬殑鏃跺�欒Е鍙� 2 浣跨敤琛ㄥ畾鏃跺櫒锛屽湪鏃堕棿娈电粨鏉熺殑鏃跺�欒Е鍙�
- */
-export const throttle = (func, wait = 1000, type = 1) => {
- let previous = 0;
- let timeout;
- return function() {
- let context = this;
- let args = arguments;
- if (type === 1) {
- let now = Date.now();
-
- if (now - previous > wait) {
- func.apply(context, args);
- previous = now;
- }
- } else if (type === 2) {
- if (!timeout) {
- timeout = setTimeout(() => {
- timeout = null;
- func.apply(context, args)
- }, wait)
- }
- }
- }
-}
diff --git a/uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput.vue b/uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput.vue
deleted file mode 100644
index a5bac54..0000000
--- a/uni_modules/uni-easyinput/components/uni-easyinput/uni-easyinput.vue
+++ /dev/null
@@ -1,461 +0,0 @@
-<template>
- <view class="uni-easyinput" :class="{'uni-easyinput-error':msg}" :style="{color:inputBorder && msg?'#e43d33':styles.color}">
- <view class="uni-easyinput__content" :class="{'is-input-border':inputBorder ,'is-input-error-border':inputBorder && msg,'is-textarea':type==='textarea','is-disabled':disabled}"
- :style="{'border-color':inputBorder && msg?'#dd524d':styles.borderColor,'background-color':disabled?styles.disableColor:''}">
- <uni-icons v-if="prefixIcon" class="content-clear-icon" :type="prefixIcon" color="#c0c4cc" @click="onClickIcon('prefix')"></uni-icons>
- <textarea v-if="type === 'textarea'" class="uni-easyinput__content-textarea" :class="{'input-padding':inputBorder}"
- :name="name" :value="val" :placeholder="placeholder" :placeholderStyle="placeholderStyle" :disabled="disabled" placeholder-class="uni-easyinput__placeholder-class"
- :maxlength="inputMaxlength" :focus="focused" :autoHeight="autoHeight" @input="onInput" @blur="onBlur" @focus="onFocus"
- @confirm="onConfirm"></textarea>
- <input v-else :type="type === 'password'?'text':type" class="uni-easyinput__content-input" :style="{
- 'padding-right':type === 'password' ||clearable || prefixIcon?'':'10px',
- 'padding-left':prefixIcon?'':'10px'
- }"
- :name="name" :value="val" :password="!showPassword && type === 'password'" :placeholder="placeholder"
- :placeholderStyle="placeholderStyle" placeholder-class="uni-easyinput__placeholder-class" :disabled="disabled" :maxlength="inputMaxlength" :focus="focused" :confirmType="confirmType" @focus="onFocus"
- @blur="onBlur" @input="onInput" @confirm="onConfirm" />
- <template v-if="type === 'password' && passwordIcon" >
- <uni-icons v-if="val != '' " class="content-clear-icon" :class="{'is-textarea-icon':type==='textarea'}" :type="showPassword?'eye-slash-filled':'eye-filled'"
- :size="18" color="#c0c4cc" @click="onEyes"></uni-icons>
- </template>
- <template v-else-if="suffixIcon">
- <uni-icons v-if="suffixIcon" class="content-clear-icon" :type="suffixIcon" color="#c0c4cc" @click="onClickIcon('suffix')"></uni-icons>
- </template>
- <template v-else>
- <uni-icons class="content-clear-icon" :class="{'is-textarea-icon':type==='textarea'}" type="clear" :size="clearSize"
- v-if="clearable && val && !disabled" color="#c0c4cc" @click="onClear"></uni-icons>
- </template>
- <slot name="right"></slot>
- </view>
- </view>
-</template>
-
-<script>
- // import {
- // debounce,
- // throttle
- // } from './common.js'
- /**
- * Easyinput 杈撳叆妗�
- * @description 姝ょ粍浠跺彲浠ュ疄鐜拌〃鍗曠殑杈撳叆涓庢牎楠岋紝鍖呮嫭 "text" 鍜� "textarea" 绫诲瀷銆�
- * @tutorial https://ext.dcloud.net.cn/plugin?id=3455
- * @property {String} value 杈撳叆鍐呭
- * @property {String } type 杈撳叆妗嗙殑绫诲瀷锛堥粯璁ext锛� password/text/textarea/..
- * @value text 鏂囨湰杈撳叆閿洏
- * @value textarea 澶氳鏂囨湰杈撳叆閿洏
- * @value password 瀵嗙爜杈撳叆閿洏
- * @value number 鏁板瓧杈撳叆閿洏锛屾敞鎰廼OS涓奱pp-vue寮瑰嚭鐨勬暟瀛楅敭鐩樺苟闈�9瀹牸鏂瑰紡
- * @value idcard 韬唤璇佽緭鍏ラ敭鐩橈紝淇°�佹敮浠樺疂銆佺櫨搴︺�丵Q灏忕▼搴�
- * @value digit 甯﹀皬鏁扮偣鐨勬暟瀛楅敭鐩� 锛孉pp鐨刵vue椤甸潰銆佸井淇°�佹敮浠樺疂銆佺櫨搴︺�佸ご鏉°�丵Q灏忕▼搴忔敮鎸�
- * @property {Boolean} clearable 鏄惁鏄剧ず鍙充晶娓呯┖鍐呭鐨勫浘鏍囨帶浠讹紝鐐瑰嚮鍙竻绌鸿緭鍏ユ鍐呭锛堥粯璁rue锛�
- * @property {Boolean} autoHeight 鏄惁鑷姩澧為珮杈撳叆鍖哄煙锛宼ype涓簍extarea鏃舵湁鏁堬紙榛樿true锛�
- * @property {String } placeholder 杈撳叆妗嗙殑鎻愮ず鏂囧瓧
- * @property {String } placeholderStyle placeholder鐨勬牱寮�(鍐呰仈鏍峰紡锛屽瓧绗︿覆)锛屽"color: #ddd"
- * @property {Boolean} focus 鏄惁鑷姩鑾峰緱鐒︾偣锛堥粯璁alse锛�
- * @property {Boolean} disabled 鏄惁绂佺敤锛堥粯璁alse锛�
- * @property {Number } maxlength 鏈�澶ц緭鍏ラ暱搴︼紝璁剧疆涓� -1 鐨勬椂鍊欎笉闄愬埗鏈�澶ч暱搴︼紙榛樿140锛�
- * @property {String } confirmType 璁剧疆閿洏鍙充笅瑙掓寜閽殑鏂囧瓧锛屼粎鍦╰ype="text"鏃剁敓鏁堬紙榛樿done锛�
- * @property {Number } clearSize 娓呴櫎鍥炬爣鐨勫ぇ灏忥紝鍗曚綅px锛堥粯璁�15锛�
- * @property {String} prefixIcon 杈撳叆妗嗗ご閮ㄥ浘鏍�
- * @property {String} suffixIcon 杈撳叆妗嗗熬閮ㄥ浘鏍�
- * @property {Boolean} trim 鏄惁鑷姩鍘婚櫎涓ょ鐨勭┖鏍�
- * @value both 鍘婚櫎涓ょ绌烘牸
- * @value left 鍘婚櫎宸︿晶绌烘牸
- * @value right 鍘婚櫎鍙充晶绌烘牸
- * @value start 鍘婚櫎宸︿晶绌烘牸
- * @value end 鍘婚櫎鍙充晶绌烘牸
- * @value all 鍘婚櫎鍏ㄩ儴绌烘牸
- * @value none 涓嶅幓闄ょ┖鏍�
- * @property {Boolean} inputBorder 鏄惁鏄剧ずinput杈撳叆妗嗙殑杈规锛堥粯璁rue锛�
- * @property {Boolean} passwordIcon type=password鏃舵槸鍚︽樉绀哄皬鐪肩潧鍥炬爣
- * @property {Object} styles 鑷畾涔夐鑹�
- * @event {Function} input 杈撳叆妗嗗唴瀹瑰彂鐢熷彉鍖栨椂瑙﹀彂
- * @event {Function} focus 杈撳叆妗嗚幏寰楃劍鐐规椂瑙﹀彂
- * @event {Function} blur 杈撳叆妗嗗け鍘荤劍鐐规椂瑙﹀彂
- * @event {Function} confirm 鐐瑰嚮瀹屾垚鎸夐挳鏃惰Е鍙�
- * @event {Function} iconClick 鐐瑰嚮鍥炬爣鏃惰Е鍙�
- * @example <uni-easyinput v-model="mobile"></uni-easyinput>
- */
-
- export default {
- name: 'uni-easyinput',
- emits:['click','iconClick','update:modelValue','input','focus','blur','confirm'],
- model:{
- prop:'modelValue',
- event:'update:modelValue'
- },
- props: {
- name: String,
- value: [Number, String],
- modelValue: [Number, String],
- type: {
- type: String,
- default: 'text'
- },
- clearable: {
- type: Boolean,
- default: true
- },
- autoHeight: {
- type: Boolean,
- default: false
- },
- placeholder: String,
- placeholderStyle: String,
- focus: {
- type: Boolean,
- default: false
- },
- disabled: {
- type: Boolean,
- default: false
- },
- maxlength: {
- type: [Number, String],
- default: 140
- },
- confirmType: {
- type: String,
- default: 'done'
- },
- clearSize: {
- type: [Number, String],
- default: 15
- },
- inputBorder: {
- type: Boolean,
- default: true
- },
- prefixIcon: {
- type: String,
- default: ''
- },
- suffixIcon: {
- type: String,
- default: ''
- },
- trim: {
- type: [Boolean, String],
- default: true
- },
- passwordIcon:{
- type: Boolean,
- default: true
- },
- styles: {
- type: Object,
- default () {
- return {
- color: '#333',
- disableColor: '#F7F6F6',
- borderColor: '#e5e5e5'
- }
- }
- },
- errorMessage:{
- type:[String,Boolean],
- default:''
- }
- },
- data() {
- return {
- focused: false,
- errMsg: '',
- val: '',
- showMsg: '',
- border: false,
- isFirstBorder: false,
- showClearIcon: false,
- showPassword: false
- };
- },
- computed: {
- msg() {
- return this.errorMessage || this.errMsg;
- },
- // 鍥犱负uniapp鐨刬nput缁勪欢鐨刴axlength缁勪欢蹇呴』瑕佹暟鍊硷紝杩欓噷杞负鏁板�硷紝鐢ㄦ埛鍙互浼犲叆瀛楃涓叉暟鍊�
- inputMaxlength() {
- return Number(this.maxlength);
- },
- },
- watch: {
- value(newVal) {
- if (this.errMsg) this.errMsg = ''
- this.val = newVal
- // fix by mehaotian is_reset 鍦� uni-forms 涓畾涔�
- if (this.form && this.formItem &&!this.is_reset) {
- this.is_reset = false
- this.formItem.setValue(newVal)
- }
- },
- modelValue(newVal) {
- if (this.errMsg) this.errMsg = ''
- this.val = newVal
- if (this.form && this.formItem &&!this.is_reset) {
- this.is_reset = false
- this.formItem.setValue(newVal)
- }
- },
- focus(newVal) {
- this.$nextTick(() => {
- this.focused = this.focus
- })
- }
- },
- created() {
- if(!this.value){
- this.val = this.modelValue
- }
- if(!this.modelValue){
- this.val = this.value
- }
- this.form = this.getForm('uniForms')
- this.formItem = this.getForm('uniFormsItem')
- if (this.form && this.formItem) {
- if (this.formItem.name) {
- if(!this.is_reset){
- this.is_reset = false
- this.formItem.setValue(this.val)
- }
- this.rename = this.formItem.name
- this.form.inputChildrens.push(this)
- }
- }
- },
- mounted() {
- this.$nextTick(() => {
- this.focused = this.focus
- })
- },
- methods: {
- /**
- * 鍒濆鍖栧彉閲忓��
- */
- init() {
-
- },
- onClickIcon(type) {
- this.$emit('iconClick', type)
- },
- /**
- * 鑾峰彇鐖跺厓绱犲疄渚�
- */
- getForm(name = 'uniForms') {
- let parent = this.$parent;
- let parentName = parent.$options.name;
- while (parentName !== name) {
- parent = parent.$parent;
- if (!parent) return false;
- parentName = parent.$options.name;
- }
- return parent;
- },
-
- onEyes() {
- this.showPassword = !this.showPassword
- },
- onInput(event) {
- let value = event.detail.value;
- // 鍒ゆ柇鏄惁鍘婚櫎绌烘牸
- if (this.trim) {
- if (typeof(this.trim) === 'boolean' && this.trim) {
- value = this.trimStr(value)
- }
- if (typeof(this.trim) === 'string') {
- value = this.trimStr(value, this.trim)
- }
- };
- if (this.errMsg) this.errMsg = ''
- this.val = value
- // TODO 鍏煎 vue2
- this.$emit('input', value);
- // TODO銆�鍏煎銆�vue3
- this.$emit('update:modelValue',value)
- },
-
- onFocus(event) {
- this.$emit('focus', event);
- },
- onBlur(event) {
- let value = event.detail.value;
- this.$emit('blur', event);
- },
- onConfirm(e) {
- this.$emit('confirm', e.detail.value);
- },
- onClear(event) {
- this.val = '';
- // TODO 鍏煎 vue2
- this.$emit('input', '');
- // TODO 鍏煎 vue2
- // TODO銆�鍏煎銆�vue3
- this.$emit('update:modelValue','')
- },
- fieldClick() {
- this.$emit('click');
- },
- trimStr(str, pos = 'both') {
- if (pos === 'both') {
- return str.trim();
- } else if (pos === 'left') {
- return str.trimLeft();
- } else if (pos === 'right') {
- return str.trimRight();
- } else if (pos === 'start') {
- return str.trimStart()
- } else if (pos === 'end') {
- return str.trimEnd()
- } else if (pos === 'all') {
- return str.replace(/\s+/g, '');
- } else if (pos === 'none') {
- return str;
- }
- return str;
- }
- }
- };
-</script>
-
-<style lang="scss" scoped>
- $uni-error: #e43d33;
- $uni-border-1: #DCDFE6 !default;
- .uni-easyinput {
- /* #ifndef APP-NVUE */
- width: 100%;
- /* #endif */
- flex: 1;
- position: relative;
- text-align: left;
- color: #333;
- font-size: 14px;
- }
-
- .uni-easyinput__content {
- flex: 1;
- /* #ifndef APP-NVUE */
- width: 100%;
- display: flex;
- box-sizing: border-box;
- min-height: 36px;
- /* #endif */
- flex-direction: row;
- align-items: center;
- }
-
- .uni-easyinput__content-input {
- /* #ifndef APP-NVUE */
- width: auto;
- /* #endif */
- position: relative;
- overflow: hidden;
- flex: 1;
- line-height: 1;
- font-size: 14px;
- }
- .uni-easyinput__placeholder-class {
- color: #999;
- font-size: 12px;
- font-weight: 200;
- }
- .is-textarea {
- align-items: flex-start;
- }
-
- .is-textarea-icon {
- margin-top: 5px;
- }
-
- .uni-easyinput__content-textarea {
- position: relative;
- overflow: hidden;
- flex: 1;
- line-height: 1.5;
- font-size: 14px;
- padding-top: 6px;
- padding-bottom: 10px;
- height: 80px;
- /* #ifndef APP-NVUE */
- min-height: 80px;
- width: auto;
- /* #endif */
- }
-
- .input-padding {
- padding-left: 10px;
- }
-
- .content-clear-icon {
- padding: 0 5px;
- }
-
- .label-icon {
- margin-right: 5px;
- margin-top: -1px;
- }
-
- // 鏄剧ず杈规
- .is-input-border {
- /* #ifndef APP-NVUE */
- display: flex;
- box-sizing: border-box;
- /* #endif */
- flex-direction: row;
- align-items: center;
- border: 1px solid $uni-border-1;
- border-radius: 4px;
- }
-
- .uni-error-message {
- position: absolute;
- bottom: -17px;
- left: 0;
- line-height: 12px;
- color: $uni-error;
- font-size: 12px;
- text-align: left;
- }
-
- .uni-error-msg--boeder {
- position: relative;
- bottom: 0;
- line-height: 22px;
- }
-
- .is-input-error-border {
- border-color: $uni-error;
- .uni-easyinput__placeholder-class {
- color: mix(#fff, $uni-error, 50%);;
- }
- }
-
-
- .uni-easyinput--border {
- margin-bottom: 0;
- padding: 10px 15px;
- // padding-bottom: 0;
- border-top: 1px #eee solid;
- }
-
- .uni-easyinput-error {
- padding-bottom: 0;
- }
-
- .is-first-border {
- /* #ifndef APP-NVUE */
- border: none;
- /* #endif */
- /* #ifdef APP-NVUE */
- border-width: 0;
- /* #endif */
- }
-
- .is-disabled {
- border-color: red;
- background-color: #F7F6F6;
- color: #D5D5D5;
- .uni-easyinput__placeholder-class {
- color: #D5D5D5;
- font-size: 12px;
- }
- }
-</style>
diff --git a/uni_modules/uni-easyinput/package.json b/uni_modules/uni-easyinput/package.json
deleted file mode 100644
index 84022db..0000000
--- a/uni_modules/uni-easyinput/package.json
+++ /dev/null
@@ -1,90 +0,0 @@
-{
- "id": "uni-easyinput",
- "displayName": "uni-easyinput 澧炲己杈撳叆妗�",
- "version": "1.0.0",
- "description": "Easyinput 缁勪欢鏄鍘熺敓input缁勪欢鐨勫寮�",
- "keywords": [
- "uni-ui",
- "uniui",
- "input",
- "uni-easyinput",
- "杈撳叆妗�"
-],
- "repository": "https://github.com/dcloudio/uni-ui",
- "engines": {
- "HBuilderX": ""
- },
- "directories": {
- "example": "../../temps/example_temps"
- },
- "dcloudext": {
- "category": [
- "鍓嶇缁勪欢",
- "閫氱敤缁勪欢"
- ],
- "sale": {
- "regular": {
- "price": "0.00"
- },
- "sourcecode": {
- "price": "0.00"
- }
- },
- "contact": {
- "qq": ""
- },
- "declaration": {
- "ads": "鏃�",
- "data": "鏃�",
- "permissions": "鏃�"
- },
- "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui"
- },
- "uni_modules": {
- "dependencies": [
- "uni-scss",
- "uni-icons"
- ],
- "encrypt": [],
- "platforms": {
- "cloud": {
- "tcb": "y",
- "aliyun": "y"
- },
- "client": {
- "App": {
- "app-vue": "y",
- "app-nvue": "y"
- },
- "H5-mobile": {
- "Safari": "y",
- "Android Browser": "y",
- "寰俊娴忚鍣�(Android)": "y",
- "QQ娴忚鍣�(Android)": "y"
- },
- "H5-pc": {
- "Chrome": "y",
- "IE": "y",
- "Edge": "y",
- "Firefox": "y",
- "Safari": "y"
- },
- "灏忕▼搴�": {
- "寰俊": "y",
- "闃块噷": "y",
- "鐧惧害": "y",
- "瀛楄妭璺冲姩": "y",
- "QQ": "y"
- },
- "蹇簲鐢�": {
- "鍗庝负": "u",
- "鑱旂洘": "u"
- },
- "Vue": {
- "vue2": "y",
- "vue3": "y"
- }
- }
- }
- }
-}
\ No newline at end of file
diff --git a/uni_modules/uni-easyinput/readme.md b/uni_modules/uni-easyinput/readme.md
deleted file mode 100644
index f1faf8f..0000000
--- a/uni_modules/uni-easyinput/readme.md
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
-### Easyinput 澧炲己杈撳叆妗�
-> **缁勪欢鍚嶏細uni-easyinput**
-> 浠g爜鍧楋細 `uEasyinput`
-
-
-easyinput 缁勪欢鏄鍘熺敓input缁勪欢鐨勫寮� 锛屾槸涓撻棬涓洪厤鍚堣〃鍗曠粍浠禰uni-forms](https://ext.dcloud.net.cn/plugin?id=2773)鑰岃璁$殑锛宔asyinput 鍐呯疆浜嗚竟妗嗭紝鍥炬爣绛夛紝鍚屾椂鍖呭惈 input 鎵�鏈夊姛鑳�
-
-### [鏌ョ湅鏂囨。](https://uniapp.dcloud.io/component/uniui/uni-easyinput)
-#### 濡備娇鐢ㄨ繃绋嬩腑鏈変换浣曢棶棰橈紝鎴栬�呮偍瀵箄ni-ui鏈変竴浜涘ソ鐨勫缓璁紝娆㈣繋鍔犲叆 uni-ui 浜ゆ祦缇わ細871950839
\ No newline at end of file
diff --git a/uni_modules/uni-fab/changelog.md b/uni_modules/uni-fab/changelog.md
deleted file mode 100644
index 24e26b1..0000000
--- a/uni_modules/uni-fab/changelog.md
+++ /dev/null
@@ -1,17 +0,0 @@
-## 1.2.2锛�2021-12-29锛�
-- 鏇存柊 缁勪欢渚濊禆
-## 1.2.1锛�2021-11-19锛�
-- 淇 闃村奖棰滆壊涓嶆纭殑bug
-## 1.2.0锛�2021-11-19锛�
-- 浼樺寲 缁勪欢UI锛屽苟鎻愪緵璁捐璧勬簮锛岃瑙�:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource)
-- 鏂囨。杩佺Щ锛岃瑙�:[https://uniapp.dcloud.io/component/uniui/uni-fab](https://uniapp.dcloud.io/component/uniui/uni-fab)
-## 1.1.1锛�2021-11-09锛�
-- 鏂板 鎻愪緵缁勪欢璁捐璧勬簮锛岀粍浠舵牱寮忚皟鏁�
-## 1.1.0锛�2021-07-30锛�
-- 缁勪欢鍏煎 vue3锛屽浣曞垱寤簐ue3椤圭洰锛岃瑙� [uni-app 椤圭洰鏀寔 vue3 浠嬬粛](https://ask.dcloud.net.cn/article/37834)
-## 1.0.7锛�2021-05-12锛�
-- 鏂板 缁勪欢绀轰緥鍦板潃
-## 1.0.6锛�2021-02-05锛�
-- 璋冩暣涓簎ni_modules鐩綍瑙勮寖
-- 浼樺寲 鎸夐挳鑳屾櫙鑹茶皟鏁�
-- 浼樺寲 鍏煎pc绔�
diff --git a/uni_modules/uni-fab/components/uni-fab/uni-fab.vue b/uni_modules/uni-fab/components/uni-fab/uni-fab.vue
deleted file mode 100644
index bef97f1..0000000
--- a/uni_modules/uni-fab/components/uni-fab/uni-fab.vue
+++ /dev/null
@@ -1,475 +0,0 @@
-<template>
- <view class="uni-cursor-point">
- <view v-if="popMenu && (leftBottom||rightBottom||leftTop||rightTop) && content.length > 0" :class="{
- 'uni-fab--leftBottom': leftBottom,
- 'uni-fab--rightBottom': rightBottom,
- 'uni-fab--leftTop': leftTop,
- 'uni-fab--rightTop': rightTop
- }" class="uni-fab">
- <view :class="{
- 'uni-fab__content--left': horizontal === 'left',
- 'uni-fab__content--right': horizontal === 'right',
- 'uni-fab__content--flexDirection': direction === 'vertical',
- 'uni-fab__content--flexDirectionStart': flexDirectionStart,
- 'uni-fab__content--flexDirectionEnd': flexDirectionEnd,
- 'uni-fab__content--other-platform': !isAndroidNvue
- }" :style="{ width: boxWidth, height: boxHeight, backgroundColor: styles.backgroundColor }"
- class="uni-fab__content" elevation="5">
- <view v-if="flexDirectionStart || horizontalLeft" class="uni-fab__item uni-fab__item--first" />
- <view v-for="(item, index) in content" :key="index" :class="{ 'uni-fab__item--active': isShow }"
- class="uni-fab__item" @click="_onItemClick(index, item)">
- <image :src="item.active ? item.selectedIconPath : item.iconPath" class="uni-fab__item-image"
- mode="aspectFit" />
- <text class="uni-fab__item-text"
- :style="{ color: item.active ? styles.selectedColor : styles.color }">{{ item.text }}</text>
- </view>
- <view v-if="flexDirectionEnd || horizontalRight" class="uni-fab__item uni-fab__item--first" />
- </view>
- </view>
- <view :class="{
- 'uni-fab__circle--leftBottom': leftBottom,
- 'uni-fab__circle--rightBottom': rightBottom,
- 'uni-fab__circle--leftTop': leftTop,
- 'uni-fab__circle--rightTop': rightTop,
- 'uni-fab__content--other-platform': !isAndroidNvue
- }" class="uni-fab__circle uni-fab__plus" :style="{ 'background-color': styles.buttonColor }" @click="_onClick">
- <uni-icons class="fab-circle-icon" type="plusempty" :color="styles.iconColor" size="32"
- :class="{'uni-fab__plus--active': isShow && content.length > 0}"></uni-icons>
- <!-- <view class="fab-circle-v" :class="{'uni-fab__plus--active': isShow && content.length > 0}"></view>
- <view class="fab-circle-h" :class="{'uni-fab__plus--active': isShow && content.length > 0}"></view> -->
- </view>
- </view>
-</template>
-
-<script>
- let platform = 'other'
- // #ifdef APP-NVUE
- platform = uni.getSystemInfoSync().platform
- // #endif
-
- /**
- * Fab 鎮诞鎸夐挳
- * @description 鐐瑰嚮鍙睍寮�涓�涓浘褰㈡寜閽彍鍗�
- * @tutorial https://ext.dcloud.net.cn/plugin?id=144
- * @property {Object} pattern 鍙�夋牱寮忛厤缃」
- * @property {Object} horizontal = [left | right] 姘村钩瀵归綈鏂瑰紡
- * @value left 宸﹀榻�
- * @value right 鍙冲榻�
- * @property {Object} vertical = [bottom | top] 鍨傜洿瀵归綈鏂瑰紡
- * @value bottom 涓嬪榻�
- * @value top 涓婂榻�
- * @property {Object} direction = [horizontal | vertical] 灞曞紑鑿滃崟鏄剧ず鏂瑰紡
- * @value horizontal 姘村钩鏄剧ず
- * @value vertical 鍨傜洿鏄剧ず
- * @property {Array} content 灞曞紑鑿滃崟鍐呭閰嶇疆椤�
- * @property {Boolean} popMenu 鏄惁浣跨敤寮瑰嚭鑿滃崟
- * @event {Function} trigger 灞曞紑鑿滃崟鐐瑰嚮浜嬩欢锛岃繑鍥炵偣鍑讳俊鎭�
- * @event {Function} fabClick 鎮诞鎸夐挳鐐瑰嚮浜嬩欢
- */
- export default {
- name: 'UniFab',
- emits: ['fabClick', 'trigger'],
- props: {
- pattern: {
- type: Object,
- default () {
- return {}
- }
- },
- horizontal: {
- type: String,
- default: 'left'
- },
- vertical: {
- type: String,
- default: 'bottom'
- },
- direction: {
- type: String,
- default: 'horizontal'
- },
- content: {
- type: Array,
- default () {
- return []
- }
- },
- show: {
- type: Boolean,
- default: false
- },
- popMenu: {
- type: Boolean,
- default: true
- }
- },
- data() {
- return {
- fabShow: false,
- isShow: false,
- isAndroidNvue: platform === 'android',
- styles: {
- color: '#3c3e49',
- selectedColor: '#007AFF',
- backgroundColor: '#fff',
- buttonColor: '#007AFF',
- iconColor: '#fff'
- }
- }
- },
- computed: {
- contentWidth(e) {
- return (this.content.length + 1) * 55 + 15 + 'px'
- },
- contentWidthMin() {
- return '55px'
- },
- // 鍔ㄦ�佽绠楀搴�
- boxWidth() {
- return this.getPosition(3, 'horizontal')
- },
- // 鍔ㄦ�佽绠楅珮搴�
- boxHeight() {
- return this.getPosition(3, 'vertical')
- },
- // 璁$畻宸︿笅浣嶇疆
- leftBottom() {
- return this.getPosition(0, 'left', 'bottom')
- },
- // 璁$畻鍙充笅浣嶇疆
- rightBottom() {
- return this.getPosition(0, 'right', 'bottom')
- },
- // 璁$畻宸︿笂浣嶇疆
- leftTop() {
- return this.getPosition(0, 'left', 'top')
- },
- rightTop() {
- return this.getPosition(0, 'right', 'top')
- },
- flexDirectionStart() {
- return this.getPosition(1, 'vertical', 'top')
- },
- flexDirectionEnd() {
- return this.getPosition(1, 'vertical', 'bottom')
- },
- horizontalLeft() {
- return this.getPosition(2, 'horizontal', 'left')
- },
- horizontalRight() {
- return this.getPosition(2, 'horizontal', 'right')
- }
- },
- watch: {
- pattern: {
- handler(val, oldVal) {
- this.styles = Object.assign({}, this.styles, val)
- },
- deep: true
- }
- },
- created() {
- this.isShow = this.show
- if (this.top === 0) {
- this.fabShow = true
- }
- // 鍒濆鍖栨牱寮�
- this.styles = Object.assign({}, this.styles, this.pattern)
- },
- methods: {
- _onClick() {
- this.$emit('fabClick')
- if (!this.popMenu) {
- return
- }
- this.isShow = !this.isShow
- },
- open() {
- this.isShow = true
- },
- close() {
- this.isShow = false
- },
- /**
- * 鎸夐挳鐐瑰嚮浜嬩欢
- */
- _onItemClick(index, item) {
- this.$emit('trigger', {
- index,
- item
- })
- },
- /**
- * 鑾峰彇 浣嶇疆淇℃伅
- */
- getPosition(types, paramA, paramB) {
- if (types === 0) {
- return this.horizontal === paramA && this.vertical === paramB
- } else if (types === 1) {
- return this.direction === paramA && this.vertical === paramB
- } else if (types === 2) {
- return this.direction === paramA && this.horizontal === paramB
- } else {
- return this.isShow && this.direction === paramA ? this.contentWidth : this.contentWidthMin
- }
- }
- }
- }
-</script>
-
-<style lang="scss" >
- $uni-shadow-base:0 1px 5px 2px rgba($color: #000000, $alpha: 0.3) !default;
-
- .uni-fab {
- position: fixed;
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- justify-content: center;
- align-items: center;
- z-index: 10;
- border-radius: 45px;
- box-shadow: $uni-shadow-base;
- }
-
- .uni-cursor-point {
- /* #ifdef H5 */
- cursor: pointer;
- /* #endif */
- }
-
- .uni-fab--active {
- opacity: 1;
- }
-
- .uni-fab--leftBottom {
- left: 15px;
- bottom: 30px;
- /* #ifdef H5 */
- left: calc(15px + var(--window-left));
- bottom: calc(30px + var(--window-bottom));
- /* #endif */
- // padding: 10px;
- }
-
- .uni-fab--leftTop {
- left: 15px;
- top: 30px;
- /* #ifdef H5 */
- left: calc(15px + var(--window-left));
- top: calc(30px + var(--window-top));
- /* #endif */
- // padding: 10px;
- }
-
- .uni-fab--rightBottom {
- right: 15px;
- bottom: 30px;
- /* #ifdef H5 */
- right: calc(15px + var(--window-right));
- bottom: calc(30px + var(--window-bottom));
- /* #endif */
- // padding: 10px;
- }
-
- .uni-fab--rightTop {
- right: 15px;
- top: 30px;
- /* #ifdef H5 */
- right: calc(15px + var(--window-right));
- top: calc(30px + var(--window-top));
- /* #endif */
- // padding: 10px;
- }
-
- .uni-fab__circle {
- position: fixed;
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- justify-content: center;
- align-items: center;
- width: 55px;
- height: 55px;
- background-color: #3c3e49;
- border-radius: 45px;
- z-index: 11;
- // box-shadow: $uni-shadow-base;
- }
-
- .uni-fab__circle--leftBottom {
- left: 15px;
- bottom: 30px;
- /* #ifdef H5 */
- left: calc(15px + var(--window-left));
- bottom: calc(30px + var(--window-bottom));
- /* #endif */
- }
-
- .uni-fab__circle--leftTop {
- left: 15px;
- top: 30px;
- /* #ifdef H5 */
- left: calc(15px + var(--window-left));
- top: calc(30px + var(--window-top));
- /* #endif */
- }
-
- .uni-fab__circle--rightBottom {
- right: 15px;
- bottom: 30px;
- /* #ifdef H5 */
- right: calc(15px + var(--window-right));
- bottom: calc(30px + var(--window-bottom));
- /* #endif */
- }
-
- .uni-fab__circle--rightTop {
- right: 15px;
- top: 30px;
- /* #ifdef H5 */
- right: calc(15px + var(--window-right));
- top: calc(30px + var(--window-top));
- /* #endif */
- }
-
- .uni-fab__circle--left {
- left: 0;
- }
-
- .uni-fab__circle--right {
- right: 0;
- }
-
- .uni-fab__circle--top {
- top: 0;
- }
-
- .uni-fab__circle--bottom {
- bottom: 0;
- }
-
- .uni-fab__plus {
- font-weight: bold;
- }
-
- // .fab-circle-v {
- // position: absolute;
- // width: 2px;
- // height: 24px;
- // left: 0;
- // top: 0;
- // right: 0;
- // bottom: 0;
- // /* #ifndef APP-NVUE */
- // margin: auto;
- // /* #endif */
- // background-color: white;
- // transform: rotate(0deg);
- // transition: transform 0.3s;
- // }
-
- // .fab-circle-h {
- // position: absolute;
- // width: 24px;
- // height: 2px;
- // left: 0;
- // top: 0;
- // right: 0;
- // bottom: 0;
- // /* #ifndef APP-NVUE */
- // margin: auto;
- // /* #endif */
- // background-color: white;
- // transform: rotate(0deg);
- // transition: transform 0.3s;
- // }
-
- .fab-circle-icon {
- transform: rotate(0deg);
- transition: transform 0.3s;
- font-weight: 200;
- }
-
- .uni-fab__plus--active {
- transform: rotate(135deg);
- }
-
- .uni-fab__content {
- /* #ifndef APP-NVUE */
- box-sizing: border-box;
- display: flex;
- /* #endif */
- flex-direction: row;
- border-radius: 55px;
- overflow: hidden;
- transition-property: width, height;
- transition-duration: 0.2s;
- width: 55px;
- border-color: #DDDDDD;
- border-width: 1rpx;
- border-style: solid;
- }
-
- .uni-fab__content--other-platform {
- border-width: 0px;
- box-shadow: $uni-shadow-base;
- }
-
- .uni-fab__content--left {
- justify-content: flex-start;
- }
-
- .uni-fab__content--right {
- justify-content: flex-end;
- }
-
- .uni-fab__content--flexDirection {
- flex-direction: column;
- justify-content: flex-end;
- }
-
- .uni-fab__content--flexDirectionStart {
- flex-direction: column;
- justify-content: flex-start;
- }
-
- .uni-fab__content--flexDirectionEnd {
- flex-direction: column;
- justify-content: flex-end;
- }
-
- .uni-fab__item {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex-direction: column;
- justify-content: center;
- align-items: center;
- width: 55px;
- height: 55px;
- opacity: 0;
- transition: opacity 0.2s;
- }
-
- .uni-fab__item--active {
- opacity: 1;
- }
-
- .uni-fab__item-image {
- width: 20px;
- height: 20px;
- margin-bottom: 4px;
- }
-
- .uni-fab__item-text {
- color: #FFFFFF;
- font-size: 12px;
- line-height: 12px;
- margin-top: 2px;
- }
-
- .uni-fab__item--first {
- width: 55px;
- }
-</style>
diff --git a/uni_modules/uni-fab/components/uni-fab/uni-fab.vue.bak b/uni_modules/uni-fab/components/uni-fab/uni-fab.vue.bak
deleted file mode 100644
index 5adc72a..0000000
--- a/uni_modules/uni-fab/components/uni-fab/uni-fab.vue.bak
+++ /dev/null
@@ -1,379 +0,0 @@
-<template>
- <view>
- <view :class="{
- leftBottom: leftBottom,
- rightBottom: rightBottom,
- leftTop: leftTop,
- rightTop: rightTop
- }" v-if="leftBottom||rightBottom||leftTop||rightTop" class="fab-box fab">
- <view :class="{
- left: horizontal === 'left' && direction === 'horizontal',
- top: vertical === 'top' && direction === 'vertical',
- bottom: vertical === 'bottom' && direction === 'vertical',
- right: horizontal === 'right' && direction === 'horizontal'
- }" :style="{ 'background-color': styles.buttonColor }" class="fab-circle" @click="_onClick">
- <view class="fab-circle-box" :class="{ active: isShow }">
- <view class="fab-circle-v"></view>
- <view class="fab-circle-h"></view>
- </view>
- </view>
- <view :class="{
- left: horizontal === 'left',
- right: horizontal === 'right',
- flexDirection: direction === 'vertical',
- flexDirectionStart: flexDirectionStart,
- flexDirectionEnd: flexDirectionEnd
- }" :style="{ width: boxWidth, height: boxHeight, background: styles.backgroundColor }" class="fab-content">
- <view v-if="flexDirectionStart || horizontalLeft" class="fab-item first" />
- <view v-for="(item, index) in content" :key="index" :class="{ active: isShow }" :style="{
- color: item.active ? styles.selectedColor : styles.color
- }" class="fab-item" @click="_onItemClick(index, item)">
- <image :src="item.active ? item.selectedIconPath : item.iconPath" class="content-image" mode="widthFix" />
- <text class="text">{{ item.text }}</text>
- </view>
- <view v-if="flexDirectionEnd || horizontalRight" class="fab-item first" />
- </view>
- </view>
- </view>
-</template>
-
-<script>
- export default {
- name: 'UniFab',
- props: {
- pattern: {
- type: Object,
- default () {
- return {}
- }
- },
- horizontal: {
- type: String,
- default: 'left'
- },
- vertical: {
- type: String,
- default: 'bottom'
- },
- direction: {
- type: String,
- default: 'horizontal'
- },
- content: {
- type: Array,
- default () {
- return []
- }
- },
- show: {
- type: Boolean,
- default: false
- }
- },
- data() {
- return {
- fabShow: false,
- flug: true,
- isShow: false,
- styles: {
- color: '#3c3e49',
- selectedColor: '#007AFF',
- backgroundColor: '#fff',
- buttonColor: '#3c3e49'
- }
- }
- },
- computed: {
- contentWidth(e) {
- return uni.upx2px((this.content.length + 1) * 110 + 20) + 'px'
- },
- contentWidthMin() {
- return uni.upx2px(110) + 'px'
- },
- // 鍔ㄦ�佽绠楀搴�
- boxWidth() {
- return this.getPosition(3, 'horizontal')
- },
- // 鍔ㄦ�佽绠楅珮搴�
- boxHeight() {
- return this.getPosition(3, 'vertical')
- },
- // 璁$畻宸︿笅浣嶇疆
- leftBottom() {
- return this.getPosition(0, 'left', 'bottom')
- },
- // 璁$畻鍙充笅浣嶇疆
- rightBottom() {
- return this.getPosition(0, 'right', 'bottom')
- },
- // 璁$畻宸︿笂浣嶇疆
- leftTop() {
- return this.getPosition(0, 'left', 'top')
- },
- rightTop() {
- return this.getPosition(0, 'right', 'top')
- },
- flexDirectionStart() {
- return this.getPosition(1, 'vertical', 'top')
- },
- flexDirectionEnd() {
- return this.getPosition(1, 'vertical', 'bottom')
- },
- horizontalLeft() {
- return this.getPosition(2, 'horizontal', 'left')
- },
- horizontalRight() {
- return this.getPosition(2, 'horizontal', 'right')
- }
- },
- watch: {
- pattern(newValue, oldValue) {
- //console.log(JSON.stringify(newValue))
- this.styles = Object.assign({}, this.styles, newValue)
- }
- },
- created() {
- this.isShow = this.show
- if (this.top === 0) {
- this.fabShow = true
- }
- // 鍒濆鍖栨牱寮�
- this.styles = Object.assign({}, this.styles, this.pattern)
- },
- methods: {
- _onClick() {
- this.isShow = !this.isShow
- },
- open() {
- this.isShow = true
- },
- close() {
- this.isShow = false
- },
- /**
- * 鎸夐挳鐐瑰嚮浜嬩欢
- */
- _onItemClick(index, item) {
- this.$emit('trigger', {
- index,
- item
- })
- },
- /**
- * 鑾峰彇 浣嶇疆淇℃伅
- */
- getPosition(types, paramA, paramB) {
- if (types === 0) {
- return this.horizontal === paramA && this.vertical === paramB
- } else if (types === 1) {
- return this.direction === paramA && this.vertical === paramB
- } else if (types === 2) {
- return this.direction === paramA && this.horizontal === paramB
- } else {
- return this.isShow && this.direction === paramA ? this.contentWidth : this.contentWidthMin
- }
- }
- }
- }
-</script>
-
-<style lang="scss" scoped>
-
- .uni-icon {
- font-family: uniicons;
- font-size: 30px;
- font-weight: normal;
- font-style: normal;
- line-height: 1;
- display: inline-block;
- text-decoration: none;
- -webkit-font-smoothing: antialiased;
- }
-
- .fab-box {
- position: fixed;
- display: flex;
- justify-content: center;
- align-items: center;
- z-index: 2;
- }
-
- .fab-box.top {
- width: 60rpx;
- height: 60rpx;
- right: 30rpx;
- bottom: 60rpx;
- border: 1px #5989b9 solid;
- background: #6699cc;
- border-radius: 10rpx;
- color: #fff;
- transition: all 0.3;
- opacity: 0;
- }
-
- .fab-box.active {
- opacity: 1;
- }
-
- .fab-box.fab {
- z-index: 10;
- }
-
- .fab-box.fab.leftBottom {
- left: 30rpx;
- bottom: 60rpx;
- }
-
- .fab-box.fab.leftTop {
- left: 30rpx;
- top: 80rpx;
- /* #ifdef H5 */
- top: calc(80rpx + var(--window-top));
- /* #endif */
- }
-
- .fab-box.fab.rightBottom {
- right: 30rpx;
- bottom: 60rpx;
- }
-
- .fab-box.fab.rightTop {
- right: 30rpx;
- top: 80rpx;
- /* #ifdef H5 */
- top: calc(80rpx + var(--window-top));
- /* #endif */
- }
-
- .fab-circle {
- display: flex;
- justify-content: center;
- align-items: center;
- position: absolute;
- width: 110rpx;
- height: 110rpx;
- background: #3c3e49;
- /* background: #5989b9; */
- border-radius: 50%;
- box-shadow: 0 0 5px 2px rgba(0, 0, 0, 0.2);
- z-index: 11;
- }
-
- .fab-circle-box {
- position: absolute;
- left: 0;
- top: 0;
- right: 0;
- bottom: 0;
- transition: all 0.3s;
- }
-
- .fab-circle-v {
- position: absolute;
- width: 8rpx;
- height: 60rpx;
- left: 50%;
- top: 50%;
- margin: -30rpx 0 0 -4rpx;
- background-color: white;
- }
-
- .fab-circle-h {
- position: absolute;
- width: 60rpx;
- height: 8rpx;
- left: 50%;
- top: 50%;
- margin: -4rpx 0 0 -30rpx;
- background-color: white;
- }
-
- .fab-circle.left {
- left: 0;
- }
-
- .fab-circle.right {
- right: 0;
- }
-
- .fab-circle.top {
- top: 0;
- }
-
- .fab-circle.bottom {
- bottom: 0;
- }
-
- .fab-circle .uni-icon-plusempty {
- color: #ffffff;
- font-size: 80rpx;
- transition: all 0.3s;
- font-weight: bold;
- }
-
- .fab-circle-box.active {
- transform: rotate(135deg);
- font-size: 80rpx;
- }
-
- .fab-content {
- background: #6699cc;
- box-sizing: border-box;
- display: flex;
- border-radius: 100rpx;
- overflow: hidden;
- box-shadow: 0 0 5px 2px rgba(0, 0, 0, 0.1);
- transition: all 0.2s;
- width: 110rpx;
- }
-
- .fab-content.left {
- justify-content: flex-start;
- }
-
- .fab-content.right {
- justify-content: flex-end;
- }
-
- .fab-content.flexDirection {
- flex-direction: column;
- justify-content: flex-end;
- }
-
- .fab-content.flexDirectionStart {
- flex-direction: column;
- justify-content: flex-start;
- }
-
- .fab-content.flexDirectionEnd {
- flex-direction: column;
- justify-content: flex-end;
- }
-
- .fab-content .fab-item {
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- width: 110rpx;
- height: 110rpx;
- font-size: 24rpx;
- color: #fff;
- opacity: 0;
- transition: opacity 0.2s;
- }
-
- .fab-content .fab-item.active {
- opacity: 1;
- }
-
- .fab-content .fab-item .content-image {
- width: 50rpx;
- height: 50rpx;
- margin-bottom: 5rpx;
- }
-
- .fab-content .fab-item.first {
- width: 110rpx;
- }
-</style>
diff --git a/uni_modules/uni-fab/package.json b/uni_modules/uni-fab/package.json
deleted file mode 100644
index 0f27daa..0000000
--- a/uni_modules/uni-fab/package.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "id": "uni-fab",
- "displayName": "uni-fab 鎮诞鎸夐挳",
- "version": "1.2.2",
- "description": "鎮诞鎸夐挳 fab button 锛岀偣鍑诲彲灞曞紑涓�涓浘鏍囨寜閽彍鍗曘��",
- "keywords": [
- "uni-ui",
- "uniui",
- "鎸夐挳",
- "鎮诞鎸夐挳",
- "fab"
-],
- "repository": "https://github.com/dcloudio/uni-ui",
- "engines": {
- "HBuilderX": ""
- },
- "directories": {
- "example": "../../temps/example_temps"
- },
- "dcloudext": {
- "category": [
- "鍓嶇缁勪欢",
- "閫氱敤缁勪欢"
- ],
- "sale": {
- "regular": {
- "price": "0.00"
- },
- "sourcecode": {
- "price": "0.00"
- }
- },
- "contact": {
- "qq": ""
- },
- "declaration": {
- "ads": "鏃�",
- "data": "鏃�",
- "permissions": "鏃�"
- },
- "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui"
- },
- "uni_modules": {
- "dependencies": ["uni-scss","uni-icons"],
- "encrypt": [],
- "platforms": {
- "cloud": {
- "tcb": "y",
- "aliyun": "y"
- },
- "client": {
- "App": {
- "app-vue": "y",
- "app-nvue": "y"
- },
- "H5-mobile": {
- "Safari": "y",
- "Android Browser": "y",
- "寰俊娴忚鍣�(Android)": "y",
- "QQ娴忚鍣�(Android)": "y"
- },
- "H5-pc": {
- "Chrome": "y",
- "IE": "y",
- "Edge": "y",
- "Firefox": "y",
- "Safari": "y"
- },
- "灏忕▼搴�": {
- "寰俊": "y",
- "闃块噷": "y",
- "鐧惧害": "y",
- "瀛楄妭璺冲姩": "y",
- "QQ": "y"
- },
- "蹇簲鐢�": {
- "鍗庝负": "u",
- "鑱旂洘": "u"
- },
- "Vue": {
- "vue2": "y",
- "vue3": "y"
- }
- }
- }
- }
-}
diff --git a/uni_modules/uni-fab/readme.md b/uni_modules/uni-fab/readme.md
deleted file mode 100644
index 9a444e8..0000000
--- a/uni_modules/uni-fab/readme.md
+++ /dev/null
@@ -1,9 +0,0 @@
-## Fab 鎮诞鎸夐挳
-> **缁勪欢鍚嶏細uni-fab**
-> 浠g爜鍧楋細 `uFab`
-
-
-鐐瑰嚮鍙睍寮�涓�涓浘褰㈡寜閽彍鍗�
-
-### [鏌ョ湅鏂囨。](https://uniapp.dcloud.io/component/uniui/uni-fab)
-#### 濡備娇鐢ㄨ繃绋嬩腑鏈変换浣曢棶棰橈紝鎴栬�呮偍瀵箄ni-ui鏈変竴浜涘ソ鐨勫缓璁紝娆㈣繋鍔犲叆 uni-ui 浜ゆ祦缇わ細871950839
\ No newline at end of file
diff --git a/uni_modules/uni-fav/changelog.md b/uni_modules/uni-fav/changelog.md
deleted file mode 100644
index 4b3f8c2..0000000
--- a/uni_modules/uni-fav/changelog.md
+++ /dev/null
@@ -1,17 +0,0 @@
-## 1.2.0锛�2021-11-19锛�
-- 浼樺寲 缁勪欢UI锛屽苟鎻愪緵璁捐璧勬簮锛岃瑙�:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource)
-- 鏂囨。杩佺Щ锛岃瑙�:[https://uniapp.dcloud.io/component/uniui/uni-fav](https://uniapp.dcloud.io/component/uniui/uni-fav)
-## 1.1.1锛�2021-08-24锛�
-- 鏂板 鏀寔鍥介檯鍖�
-## 1.1.0锛�2021-07-13锛�
-- 缁勪欢鍏煎 vue3锛屽浣曞垱寤簐ue3椤圭洰锛岃瑙� [uni-app 椤圭洰鏀寔 vue3 浠嬬粛](https://ask.dcloud.net.cn/article/37834)
-## 1.0.6锛�2021-05-12锛�
-- 鏂板 缁勪欢绀轰緥鍦板潃
-## 1.0.5锛�2021-04-21锛�
-- 浼樺寲 娣诲姞渚濊禆 uni-icons, 瀵煎叆鍚庤嚜鍔ㄤ笅杞戒緷璧�
-## 1.0.4锛�2021-02-05锛�
-- 浼樺寲 缁勪欢寮曠敤鍏崇郴锛岄�氳繃uni_modules寮曠敤缁勪欢
-## 1.0.3锛�2021-02-05锛�
-- 浼樺寲 缁勪欢寮曠敤鍏崇郴锛岄�氳繃uni_modules寮曠敤缁勪欢
-## 1.0.2锛�2021-02-05锛�
-- 璋冩暣涓簎ni_modules鐩綍瑙勮寖
diff --git a/uni_modules/uni-fav/components/uni-fav/i18n/en.json b/uni_modules/uni-fav/components/uni-fav/i18n/en.json
deleted file mode 100644
index 9a0759e..0000000
--- a/uni_modules/uni-fav/components/uni-fav/i18n/en.json
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "uni-fav.collect": "collect",
- "uni-fav.collected": "collected"
-}
diff --git a/uni_modules/uni-fav/components/uni-fav/i18n/index.js b/uni_modules/uni-fav/components/uni-fav/i18n/index.js
deleted file mode 100644
index de7509c..0000000
--- a/uni_modules/uni-fav/components/uni-fav/i18n/index.js
+++ /dev/null
@@ -1,8 +0,0 @@
-import en from './en.json'
-import zhHans from './zh-Hans.json'
-import zhHant from './zh-Hant.json'
-export default {
- en,
- 'zh-Hans': zhHans,
- 'zh-Hant': zhHant
-}
diff --git a/uni_modules/uni-fav/components/uni-fav/i18n/zh-Hans.json b/uni_modules/uni-fav/components/uni-fav/i18n/zh-Hans.json
deleted file mode 100644
index 67c89bf..0000000
--- a/uni_modules/uni-fav/components/uni-fav/i18n/zh-Hans.json
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "uni-fav.collect": "鏀惰棌",
- "uni-fav.collected": "宸叉敹钘�"
-}
diff --git a/uni_modules/uni-fav/components/uni-fav/i18n/zh-Hant.json b/uni_modules/uni-fav/components/uni-fav/i18n/zh-Hant.json
deleted file mode 100644
index 67c89bf..0000000
--- a/uni_modules/uni-fav/components/uni-fav/i18n/zh-Hant.json
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "uni-fav.collect": "鏀惰棌",
- "uni-fav.collected": "宸叉敹钘�"
-}
diff --git a/uni_modules/uni-fav/components/uni-fav/uni-fav.vue b/uni_modules/uni-fav/components/uni-fav/uni-fav.vue
deleted file mode 100644
index f753ee7..0000000
--- a/uni_modules/uni-fav/components/uni-fav/uni-fav.vue
+++ /dev/null
@@ -1,156 +0,0 @@
-<template>
- <view :class="[circle === true || circle === 'true' ? 'uni-fav--circle' : '']" :style="[{ backgroundColor: checked ? bgColorChecked : bgColor }]"
- @click="onClick" class="uni-fav">
- <!-- #ifdef MP-ALIPAY -->
- <view class="uni-fav-star" v-if="!checked && (star === true || star === 'true')">
- <uni-icons :color="fgColor" :style="{color: checked ? fgColorChecked : fgColor}" size="14" type="star-filled" />
- </view>
- <!-- #endif -->
- <!-- #ifndef MP-ALIPAY -->
- <uni-icons :color="fgColor" :style="{color: checked ? fgColorChecked : fgColor}" class="uni-fav-star" size="14" type="star-filled"
- v-if="!checked && (star === true || star === 'true')" />
- <!-- #endif -->
- <text :style="{color: checked ? fgColorChecked : fgColor}" class="uni-fav-text">{{ checked ? contentFav : contentDefault }}</text>
- </view>
-</template>
-
-<script>
-
- /**
- * Fav 鏀惰棌鎸夐挳
- * @description 鐢ㄤ簬鏀惰棌鍔熻兘锛屽彲鐐瑰嚮鍒囨崲閫変腑銆佷笉閫変腑鐨勭姸鎬�
- * @tutorial https://ext.dcloud.net.cn/plugin?id=864
- * @property {Boolean} star = [true|false] 鎸夐挳鏄惁甯︽槦鏄�
- * @property {String} bgColor 鏈敹钘忔椂鐨勮儗鏅壊
- * @property {String} bgColorChecked 宸叉敹钘忔椂鐨勮儗鏅壊
- * @property {String} fgColor 鏈敹钘忔椂鐨勬枃瀛楅鑹�
- * @property {String} fgColorChecked 宸叉敹钘忔椂鐨勬枃瀛楅鑹�
- * @property {Boolean} circle = [true|false] 鏄惁涓哄渾瑙�
- * @property {Boolean} checked = [true|false] 鏄惁涓哄凡鏀惰棌
- * @property {Object} contentText = [true|false] 鏀惰棌鎸夐挳鏂囧瓧
- * @event {Function} click 鐐瑰嚮 fav鎸夐挳瑙﹀彂浜嬩欢
- * @example <uni-fav :checked="true"/>
- */
-
- import {
- initVueI18n
- } from '@dcloudio/uni-i18n'
- import messages from './i18n/index.js'
- const { t } = initVueI18n(messages)
-
- export default {
- name: "UniFav",
- // TODO 鍏煎 vue3锛岄渶瑕佹敞鍐屼簨浠�
- emits: ['click'],
- props: {
- star: {
- type: [Boolean, String],
- default: true
- },
- bgColor: {
- type: String,
- default: "#eeeeee"
- },
- fgColor: {
- type: String,
- default: "#666666"
- },
- bgColorChecked: {
- type: String,
- default: "#007aff"
- },
- fgColorChecked: {
- type: String,
- default: "#FFFFFF"
- },
- circle: {
- type: [Boolean, String],
- default: false
- },
- checked: {
- type: Boolean,
- default: false
- },
- contentText: {
- type: Object,
- default () {
- return {
- contentDefault: "",
- contentFav: ""
- };
- }
- }
- },
- computed: {
- contentDefault() {
- return this.contentText.contentDefault || t("uni-fav.collect")
- },
- contentFav() {
- return this.contentText.contentFav || t("uni-fav.collected")
- },
- },
- watch: {
- checked() {
- if (uni.report) {
- if (this.checked) {
- uni.report("鏀惰棌", "鏀惰棌");
- } else {
- uni.report("鍙栨秷鏀惰棌", "鍙栨秷鏀惰棌");
- }
- }
- }
- },
- methods: {
- onClick() {
- this.$emit("click");
- }
- }
- };
-</script>
-
-<style lang="scss" scoped>
- $fav-height: 25px;
-
- .uni-fav {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex-direction: row;
- align-items: center;
- justify-content: center;
- width: 60px;
- height: $fav-height;
- line-height: $fav-height;
- text-align: center;
- border-radius: 3px;
- /* #ifdef H5 */
- cursor: pointer;
- /* #endif */
- }
-
- .uni-fav--circle {
- border-radius: 30px;
- }
-
- .uni-fav-star {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- height: $fav-height;
- line-height: 24px;
- margin-right: 3px;
- align-items: center;
- justify-content: center;
- }
-
- .uni-fav-text {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- height: $fav-height;
- line-height: $fav-height;
- align-items: center;
- justify-content: center;
- font-size: 12px;
- }
-</style>
diff --git a/uni_modules/uni-fav/package.json b/uni_modules/uni-fav/package.json
deleted file mode 100644
index 39e4f33..0000000
--- a/uni_modules/uni-fav/package.json
+++ /dev/null
@@ -1,89 +0,0 @@
-{
- "id": "uni-fav",
- "displayName": "uni-fav 鏀惰棌鎸夐挳",
- "version": "1.2.0",
- "description": " Fav 鏀惰棌缁勪欢锛屽彲鑷畾涔夐鑹层�佸ぇ灏忋��",
- "keywords": [
- "fav",
- "uni-ui",
- "uniui",
- "鏀惰棌"
-],
- "repository": "https://github.com/dcloudio/uni-ui",
- "engines": {
- "HBuilderX": ""
- },
- "directories": {
- "example": "../../temps/example_temps"
- },
- "dcloudext": {
- "category": [
- "鍓嶇缁勪欢",
- "閫氱敤缁勪欢"
- ],
- "sale": {
- "regular": {
- "price": "0.00"
- },
- "sourcecode": {
- "price": "0.00"
- }
- },
- "contact": {
- "qq": ""
- },
- "declaration": {
- "ads": "鏃�",
- "data": "鏃�",
- "permissions": "鏃�"
- },
- "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui"
- },
- "uni_modules": {
- "dependencies": [
- "uni-scss",
- "uni-icons"
- ],
- "encrypt": [],
- "platforms": {
- "cloud": {
- "tcb": "y",
- "aliyun": "y"
- },
- "client": {
- "App": {
- "app-vue": "y",
- "app-nvue": "y"
- },
- "H5-mobile": {
- "Safari": "y",
- "Android Browser": "y",
- "寰俊娴忚鍣�(Android)": "y",
- "QQ娴忚鍣�(Android)": "y"
- },
- "H5-pc": {
- "Chrome": "y",
- "IE": "y",
- "Edge": "y",
- "Firefox": "y",
- "Safari": "y"
- },
- "灏忕▼搴�": {
- "寰俊": "y",
- "闃块噷": "y",
- "鐧惧害": "y",
- "瀛楄妭璺冲姩": "y",
- "QQ": "y"
- },
- "蹇簲鐢�": {
- "鍗庝负": "u",
- "鑱旂洘": "u"
- },
- "Vue": {
- "vue2": "y",
- "vue3": "y"
- }
- }
- }
- }
-}
diff --git a/uni_modules/uni-fav/readme.md b/uni_modules/uni-fav/readme.md
deleted file mode 100644
index 4de125d..0000000
--- a/uni_modules/uni-fav/readme.md
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-## Fav 鏀惰棌鎸夐挳
-> **缁勪欢鍚嶏細uni-fav**
-> 浠g爜鍧楋細 `uFav`
-
-鐢ㄤ簬鏀惰棌鍔熻兘锛屽彲鐐瑰嚮鍒囨崲閫変腑銆佷笉閫変腑鐨勭姸鎬併��
-
-### [鏌ョ湅鏂囨。](https://uniapp.dcloud.io/component/uniui/uni-fav)
-#### 濡備娇鐢ㄨ繃绋嬩腑鏈変换浣曢棶棰橈紝鎴栬�呮偍瀵箄ni-ui鏈変竴浜涘ソ鐨勫缓璁紝娆㈣繋鍔犲叆 uni-ui 浜ゆ祦缇わ細871950839
\ No newline at end of file
diff --git a/uni_modules/uni-file-picker/changelog.md b/uni_modules/uni-file-picker/changelog.md
deleted file mode 100644
index 840a9e6..0000000
--- a/uni_modules/uni-file-picker/changelog.md
+++ /dev/null
@@ -1,61 +0,0 @@
-## 1.0.1锛�2021-11-23锛�
-- 淇 鍙傛暟涓哄璞$殑鎯呭喌涓嬶紝url鍦ㄦ煇浜涙儏鍐垫樉绀洪敊璇殑bug
-## 1.0.0锛�2021-11-19锛�
-- 浼樺寲 缁勪欢UI锛屽苟鎻愪緵璁捐璧勬簮锛岃瑙�:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource)
-- 鏂囨。杩佺Щ锛岃瑙�:[https://uniapp.dcloud.io/component/uniui/uni-file-picker](https://uniapp.dcloud.io/component/uniui/uni-file-picker)
-## 0.2.16锛�2021-11-08锛�
-- 淇 浼犲叆绌哄璞� 锛屾樉绀洪敊璇殑Bug
-## 0.2.15锛�2021-08-30锛�
-- 淇 return-type="object" 鏃朵笖瀛樺湪v-model鏃讹紝鏃犳硶鍒犻櫎鏂囦欢鐨凚ug
-## 0.2.14锛�2021-08-23锛�
-- 鏂板 鍙傛暟涓繑鍥� fileID 瀛楁
-## 0.2.13锛�2021-08-23锛�
-- 淇 鑵捐浜戜紶鍏ileID 涓嶈兘鍥炴樉鐨刡ug
-- 淇 閫夋嫨鍥剧墖鍚庯紝涓嶈兘鏀惧ぇ鐨勯棶棰�
-## 0.2.12锛�2021-08-17锛�
-- 淇 鐢变簬 0.2.11 鐗堟湰寮曡捣鐨勪笉鑳藉洖鏄惧浘鐗囩殑Bug
-## 0.2.11锛�2021-08-16锛�
-- 鏂板 clearFiles(index) 鏂规硶锛屽彲浠ユ墜鍔ㄥ垹闄ゆ寚瀹氭枃浠�
-- 淇 v-model 鍊艰涓� null 鎶ラ敊鐨凚ug
-## 0.2.10锛�2021-08-13锛�
-- 淇 return-type="object" 鏃讹紝鏃犳硶鍒犻櫎鏂囦欢鐨凚ug
-## 0.2.9锛�2021-08-03锛�
-- 淇 auto-upload 灞炴�уけ鏁堢殑Bug
-## 0.2.8锛�2021-07-31锛�
-- 淇 fileExtname灞炴�т笉鎸囧畾鍊兼姤閿欑殑Bug
-## 0.2.7锛�2021-07-31锛�
-- 淇 鍦ㄦ煇绉嶅満鏅笅鍥剧墖涓嶅洖鏄剧殑Bug
-## 0.2.6锛�2021-07-30锛�
-- 淇 return-type涓簅bject涓嬶紝杩斿洖鍊间笉姝g‘鐨凚ug
-## 0.2.5锛�2021-07-30锛�
-- 淇锛堥噸瑕侊級 H5 骞冲彴涓嬪鏋滃拰uni-forms缁勪欢涓�鍚屼娇鐢ㄥ鑷撮〉闈㈠崱姝荤殑闂
-## 0.2.3锛�2021-07-28锛�
-- 浼樺寲 璋冩暣绀轰緥浠g爜
-## 0.2.2锛�2021-07-27锛�
-- 淇 vue3 涓嬭祴鍊奸敊璇殑Bug
-- 浼樺寲 h5骞冲彴涓嬩笂浼犳枃浠跺鑷撮〉闈㈠崱姝荤殑闂
-## 0.2.0锛�2021-07-13锛�
-- 缁勪欢鍏煎 vue3锛屽浣曞垱寤簐ue3椤圭洰锛岃瑙� [uni-app 椤圭洰鏀寔 vue3 浠嬬粛](https://ask.dcloud.net.cn/article/37834)
-## 0.1.1锛�2021-07-02锛�
-- 淇 sourceType 缂哄皯榛樿鍊煎鑷� ios 鏃犳硶閫夋嫨鏂囦欢
-## 0.1.0锛�2021-06-30锛�
-- 浼樺寲 瑙h�︿笌uniCloud鐨勫己缁戝畾鍏崇郴 锛屽涓嶇粦瀹氭湇鍔$┖闂达紝榛樿autoUpload涓篺alse涓斾笉鍙洿鏀�
-## 0.0.11锛�2021-06-30锛�
-- 淇 鐢� 0.0.10 鐗堟湰寮曞彂鐨� returnType 灞炴�уけ鏁堢殑闂
-## 0.0.10锛�2021-06-29锛�
-- 浼樺寲 鏂囦欢涓婁紶鍚庤繘搴︽潯娑堝け鏃舵満
-## 0.0.9锛�2021-06-29锛�
-- 淇 鍦╱ni-forms 涓紝鍒犻櫎鏂囦欢 锛岃幏鍙栫殑鍊间笉瀵圭殑Bug
-## 0.0.8锛�2021-06-15锛�
-- 淇 鍒犻櫎鏂囦欢鏃舵棤娉曡Е鍙� v-model 鐨凚ug
-## 0.0.7锛�2021-05-12锛�
-- 鏂板 缁勪欢绀轰緥鍦板潃
-## 0.0.6锛�2021-04-09锛�
-- 淇 閫夋嫨鐨勬枃浠堕潪 file-extname 瀛楁鎸囧畾鐨勬墿灞曞悕鎶ラ敊鐨凚ug
-## 0.0.5锛�2021-04-09锛�
-- 浼樺寲 鏇存柊缁勪欢绀轰緥
-## 0.0.4锛�2021-04-09锛�
-- 浼樺寲 file-extname 瀛楁鏀寔瀛楃涓插啓娉曪紝澶氫釜鎵╁睍鍚嶉渶瑕佺敤閫楀彿鍒嗛殧
-## 0.0.3锛�2021-02-05锛�
-- 璋冩暣涓簎ni_modules鐩綍瑙勮寖
-- 淇 寰俊灏忕▼搴忎笉鎸囧畾 fileExtname 灞炴�ч�夋嫨澶辫触鐨凚ug
diff --git a/uni_modules/uni-file-picker/components/uni-file-picker/choose-and-upload-file.js b/uni_modules/uni-file-picker/components/uni-file-picker/choose-and-upload-file.js
deleted file mode 100644
index 24a07f5..0000000
--- a/uni_modules/uni-file-picker/components/uni-file-picker/choose-and-upload-file.js
+++ /dev/null
@@ -1,224 +0,0 @@
-'use strict';
-
-const ERR_MSG_OK = 'chooseAndUploadFile:ok';
-const ERR_MSG_FAIL = 'chooseAndUploadFile:fail';
-
-function chooseImage(opts) {
- const {
- count,
- sizeType = ['original', 'compressed'],
- sourceType = ['album', 'camera'],
- extension
- } = opts
- return new Promise((resolve, reject) => {
- uni.chooseImage({
- count,
- sizeType,
- sourceType,
- extension,
- success(res) {
- resolve(normalizeChooseAndUploadFileRes(res, 'image'));
- },
- fail(res) {
- reject({
- errMsg: res.errMsg.replace('chooseImage:fail', ERR_MSG_FAIL),
- });
- },
- });
- });
-}
-
-function chooseVideo(opts) {
- const {
- camera,
- compressed,
- maxDuration,
- sourceType = ['album', 'camera'],
- extension
- } = opts;
- return new Promise((resolve, reject) => {
- uni.chooseVideo({
- camera,
- compressed,
- maxDuration,
- sourceType,
- extension,
- success(res) {
- const {
- tempFilePath,
- duration,
- size,
- height,
- width
- } = res;
- resolve(normalizeChooseAndUploadFileRes({
- errMsg: 'chooseVideo:ok',
- tempFilePaths: [tempFilePath],
- tempFiles: [
- {
- name: (res.tempFile && res.tempFile.name) || '',
- path: tempFilePath,
- size,
- type: (res.tempFile && res.tempFile.type) || '',
- width,
- height,
- duration,
- fileType: 'video',
- cloudPath: '',
- }, ],
- }, 'video'));
- },
- fail(res) {
- reject({
- errMsg: res.errMsg.replace('chooseVideo:fail', ERR_MSG_FAIL),
- });
- },
- });
- });
-}
-
-function chooseAll(opts) {
- const {
- count,
- extension
- } = opts;
- return new Promise((resolve, reject) => {
- let chooseFile = uni.chooseFile;
- if (typeof wx !== 'undefined' &&
- typeof wx.chooseMessageFile === 'function') {
- chooseFile = wx.chooseMessageFile;
- }
- if (typeof chooseFile !== 'function') {
- return reject({
- errMsg: ERR_MSG_FAIL + ' 璇锋寚瀹� type 绫诲瀷锛岃骞冲彴浠呮敮鎸侀�夋嫨 image 鎴� video銆�',
- });
- }
- chooseFile({
- type: 'all',
- count,
- extension,
- success(res) {
- resolve(normalizeChooseAndUploadFileRes(res));
- },
- fail(res) {
- reject({
- errMsg: res.errMsg.replace('chooseFile:fail', ERR_MSG_FAIL),
- });
- },
- });
- });
-}
-
-function normalizeChooseAndUploadFileRes(res, fileType) {
- res.tempFiles.forEach((item, index) => {
- if (!item.name) {
- item.name = item.path.substring(item.path.lastIndexOf('/') + 1);
- }
- if (fileType) {
- item.fileType = fileType;
- }
- item.cloudPath =
- Date.now() + '_' + index + item.name.substring(item.name.lastIndexOf('.'));
- });
- if (!res.tempFilePaths) {
- res.tempFilePaths = res.tempFiles.map((file) => file.path);
- }
- return res;
-}
-
-function uploadCloudFiles(files, max = 5, onUploadProgress) {
- files = JSON.parse(JSON.stringify(files))
- const len = files.length
- let count = 0
- let self = this
- return new Promise(resolve => {
- while (count < max) {
- next()
- }
-
- function next() {
- let cur = count++
- if (cur >= len) {
- !files.find(item => !item.url && !item.errMsg) && resolve(files)
- return
- }
- const fileItem = files[cur]
- const index = self.files.findIndex(v => v.uuid === fileItem.uuid)
- fileItem.url = ''
- delete fileItem.errMsg
-
- uniCloud
- .uploadFile({
- filePath: fileItem.path,
- cloudPath: fileItem.cloudPath,
- fileType: fileItem.fileType,
- onUploadProgress: res => {
- res.index = index
- onUploadProgress && onUploadProgress(res)
- }
- })
- .then(res => {
- fileItem.url = res.fileID
- fileItem.index = index
- if (cur < len) {
- next()
- }
- })
- .catch(res => {
- fileItem.errMsg = res.errMsg || res.message
- fileItem.index = index
- if (cur < len) {
- next()
- }
- })
- }
- })
-}
-
-
-
-
-
-function uploadFiles(choosePromise, {
- onChooseFile,
- onUploadProgress
-}) {
- return choosePromise
- .then((res) => {
- if (onChooseFile) {
- const customChooseRes = onChooseFile(res);
- if (typeof customChooseRes !== 'undefined') {
- return Promise.resolve(customChooseRes).then((chooseRes) => typeof chooseRes === 'undefined' ?
- res : chooseRes);
- }
- }
- return res;
- })
- .then((res) => {
- if (res === false) {
- return {
- errMsg: ERR_MSG_OK,
- tempFilePaths: [],
- tempFiles: [],
- };
- }
- return res
- })
-}
-
-function chooseAndUploadFile(opts = {
- type: 'all'
-}) {
- if (opts.type === 'image') {
- return uploadFiles(chooseImage(opts), opts);
- }
- else if (opts.type === 'video') {
- return uploadFiles(chooseVideo(opts), opts);
- }
- return uploadFiles(chooseAll(opts), opts);
-}
-
-export {
- chooseAndUploadFile,
- uploadCloudFiles
-};
diff --git a/uni_modules/uni-file-picker/components/uni-file-picker/uni-file-picker.vue b/uni_modules/uni-file-picker/components/uni-file-picker/uni-file-picker.vue
deleted file mode 100644
index f63b0cf..0000000
--- a/uni_modules/uni-file-picker/components/uni-file-picker/uni-file-picker.vue
+++ /dev/null
@@ -1,650 +0,0 @@
-<template>
- <view class="uni-file-picker">
- <view v-if="title" class="uni-file-picker__header">
- <text class="file-title">{{ title }}</text>
- <text class="file-count">{{ filesList.length }}/{{ limitLength }}</text>
- </view>
- <upload-image v-if="fileMediatype === 'image' && showType === 'grid'" :readonly="readonly"
- :image-styles="imageStyles" :files-list="filesList" :limit="limitLength" :disablePreview="disablePreview"
- :delIcon="delIcon" @uploadFiles="uploadFiles" @choose="choose" @delFile="delFile">
- <slot>
- <view class="is-add">
- <view class="icon-add"></view>
- <view class="icon-add rotate"></view>
- </view>
- </slot>
- </upload-image>
- <upload-file v-if="fileMediatype !== 'image' || showType !== 'grid'" :readonly="readonly"
- :list-styles="listStyles" :files-list="filesList" :showType="showType" :delIcon="delIcon"
- @uploadFiles="uploadFiles" @choose="choose" @delFile="delFile">
- <slot><button type="primary" size="mini">閫夋嫨鏂囦欢</button></slot>
- </upload-file>
- </view>
-</template>
-
-<script>
- import {
- chooseAndUploadFile,
- uploadCloudFiles
- } from './choose-and-upload-file.js'
- import {
- get_file_ext,
- get_extname,
- get_files_and_is_max,
- get_file_info,
- get_file_data
- } from './utils.js'
- import uploadImage from './upload-image.vue'
- import uploadFile from './upload-file.vue'
- let fileInput = null
- /**
- * FilePicker 鏂囦欢閫夋嫨涓婁紶
- * @description 鏂囦欢閫夋嫨涓婁紶缁勪欢锛屽彲浠ラ�夋嫨鍥剧墖銆佽棰戠瓑浠绘剰鏂囦欢骞朵笂浼犲埌褰撳墠缁戝畾鐨勬湇鍔$┖闂�
- * @tutorial https://ext.dcloud.net.cn/plugin?id=4079
- * @property {Object|Array} value 缁勪欢鏁版嵁锛岄�氬父鐢ㄦ潵鍥炴樉 ,绫诲瀷鐢眗eturn-type灞炴�у喅瀹�
- * @property {Boolean} disabled = [true|false] 缁勪欢绂佺敤
- * @value true 绂佺敤
- * @value false 鍙栨秷绂佺敤
- * @property {Boolean} readonly = [true|false] 缁勪欢鍙锛屼笉鍙�夋嫨锛屼笉鏄剧ず杩涘害锛屼笉鏄剧ず鍒犻櫎鎸夐挳
- * @value true 鍙
- * @value false 鍙栨秷鍙
- * @property {String} return-type = [array|object] 闄愬埗 value 鏍煎紡锛屽綋涓� object 鏃� 锛岀粍浠跺彧鑳藉崟閫夛紝涓斾細瑕嗙洊
- * @value array 瑙勫畾 value 灞炴�х殑绫诲瀷涓烘暟缁�
- * @value object 瑙勫畾 value 灞炴�х殑绫诲瀷涓哄璞�
- * @property {Boolean} disable-preview = [true|false] 绂佺敤鍥剧墖棰勮锛屼粎 mode:grid 鏃剁敓鏁�
- * @value true 绂佺敤鍥剧墖棰勮
- * @value false 鍙栨秷绂佺敤鍥剧墖棰勮
- * @property {Boolean} del-icon = [true|false] 鏄惁鏄剧ず鍒犻櫎鎸夐挳
- * @value true 鏄剧ず鍒犻櫎鎸夐挳
- * @value false 涓嶆樉绀哄垹闄ゆ寜閽�
- * @property {Boolean} auto-upload = [true|false] 鏄惁鑷姩涓婁紶锛屽�间负true鍒欏彧瑙﹀彂@select,鍙嚜琛屼笂浼�
- * @value true 鑷姩涓婁紶
- * @value false 鍙栨秷鑷姩涓婁紶
- * @property {Number|String} limit 鏈�澶ч�夋嫨涓暟 锛宧5 浼氳嚜鍔ㄥ拷鐣ュ閫夌殑閮ㄥ垎
- * @property {String} title 缁勪欢鏍囬锛屽彸渚ф樉绀轰笂浼犺鏁�
- * @property {String} mode = [list|grid] 閫夋嫨鏂囦欢鍚庣殑鏂囦欢鍒楄〃鏍峰紡
- * @value list 鍒楄〃鏄剧ず
- * @value grid 瀹牸鏄剧ず
- * @property {String} file-mediatype = [image|video|all] 閫夋嫨鏂囦欢绫诲瀷
- * @value image 鍙�夋嫨鍥剧墖
- * @value video 鍙�夋嫨瑙嗛
- * @value all 閫夋嫨鎵�鏈夋枃浠�
- * @property {Array} file-extname 閫夋嫨鏂囦欢鍚庣紑锛屾牴鎹� file-mediatype 灞炴�ц�屼笉鍚�
- * @property {Object} list-style mode:list 鏃剁殑鏍峰紡
- * @property {Object} image-styles 閫夋嫨鏂囦欢鍚庣紑锛屾牴鎹� file-mediatype 灞炴�ц�屼笉鍚�
- * @event {Function} select 閫夋嫨鏂囦欢鍚庤Е鍙�
- * @event {Function} progress 鏂囦欢涓婁紶鏃惰Е鍙�
- * @event {Function} success 涓婁紶鎴愬姛瑙﹀彂
- * @event {Function} fail 涓婁紶澶辫触瑙﹀彂
- * @event {Function} delete 鏂囦欢浠庡垪琛ㄧЩ闄ゆ椂瑙﹀彂
- */
- export default {
- name: 'uniFilePicker',
- components: {
- uploadImage,
- uploadFile
- },
- emits: ['select', 'success', 'fail', 'progress', 'delete', 'update:modelValue', 'input'],
- props: {
- // #ifdef VUE3
- modelValue: {
- type: [Array, Object],
- default () {
- return []
- }
- },
- // #endif
-
- // #ifndef VUE3
- value: {
- type: [Array, Object],
- default () {
- return []
- }
- },
- // #endif
-
- disabled: {
- type: Boolean,
- default: false
- },
- disablePreview: {
- type: Boolean,
- default: false
- },
- delIcon: {
- type: Boolean,
- default: true
- },
- // 鑷姩涓婁紶
- autoUpload: {
- type: Boolean,
- default: true
- },
- // 鏈�澶ч�夋嫨涓暟 锛宧5鍙兘闄愬埗鍗曢�夋垨鏄閫�
- limit: {
- type: [Number, String],
- default: 9
- },
- // 鍒楄〃鏍峰紡 grid | list | list-card
- mode: {
- type: String,
- default: 'grid'
- },
- // 閫夋嫨鏂囦欢绫诲瀷 image/video/all
- fileMediatype: {
- type: String,
- default: 'image'
- },
- // 鏂囦欢绫诲瀷绛涢��
- fileExtname: {
- type: [Array, String],
- default () {
- return []
- }
- },
- title: {
- type: String,
- default: ''
- },
- listStyles: {
- type: Object,
- default () {
- return {
- // 鏄惁鏄剧ず杈规
- border: true,
- // 鏄惁鏄剧ず鍒嗛殧绾�
- dividline: true,
- // 绾挎潯鏍峰紡
- borderStyle: {}
- }
- }
- },
- imageStyles: {
- type: Object,
- default () {
- return {
- width: 'auto',
- height: 'auto'
- }
- }
- },
- readonly: {
- type: Boolean,
- default: false
- },
- returnType: {
- type: String,
- default: 'array'
- },
- sizeType: {
- type: Array,
- default () {
- return ['original', 'compressed']
- }
- }
- },
- data() {
- return {
- files: [],
- localValue: []
- }
- },
- watch: {
- // #ifndef VUE3
- value: {
- handler(newVal, oldVal) {
- this.setValue(newVal, oldVal)
- },
- immediate: true
- },
- // #endif
- // #ifdef VUE3
- modelValue: {
- handler(newVal, oldVal) {
- this.setValue(newVal, oldVal)
- },
- immediate: true
- },
- // #endif
- },
- computed: {
- filesList() {
- let files = []
- this.files.forEach(v => {
- files.push(v)
- })
- return files
- },
- showType() {
- if (this.fileMediatype === 'image') {
- return this.mode
- }
- return 'list'
- },
- limitLength() {
- if (this.returnType === 'object') {
- return 1
- }
- if (!this.limit) {
- return 1
- }
- if (this.limit >= 9) {
- return 9
- }
- return this.limit
- }
- },
- created() {
- // TODO 鍏煎涓嶅紑閫氭湇鍔$┖闂寸殑鎯呭喌
- if (!(uniCloud.config && uniCloud.config.provider)) {
- this.noSpace = true
- uniCloud.chooseAndUploadFile = chooseAndUploadFile
- }
- this.form = this.getForm('uniForms')
- this.formItem = this.getForm('uniFormsItem')
- if (this.form && this.formItem) {
- if (this.formItem.name) {
- this.rename = this.formItem.name
- this.form.inputChildrens.push(this)
- }
- }
- },
- methods: {
- /**
- * 鍏紑鐢ㄦ埛浣跨敤锛屾竻绌烘枃浠�
- * @param {Object} index
- */
- clearFiles(index) {
- if (index !== 0 && !index) {
- this.files = []
- this.$nextTick(() => {
- this.setEmit()
- })
- } else {
- this.files.splice(index, 1)
- }
- this.$nextTick(() => {
- this.setEmit()
- })
- },
- /**
- * 鍏紑鐢ㄦ埛浣跨敤锛岀户缁笂浼�
- */
- upload() {
- let files = []
- this.files.forEach((v, index) => {
- if (v.status === 'ready' || v.status === 'error') {
- files.push(Object.assign({}, v))
- }
- })
- this.uploadFiles(files)
- },
- async setValue(newVal, oldVal) {
- const newData = async (v) => {
- const reg = /cloud:\/\/([\w.]+\/?)\S*/
- let url = ''
- if(v.fileID){
- url = v.fileID
- }else{
- url = v.url
- }
- if (reg.test(url)) {
- v.fileID = url
- v.url = await this.getTempFileURL(url)
- }
- if(v.url) v.path = v.url
- return v
- }
- if (this.returnType === 'object') {
- if (newVal) {
- await newData(newVal)
- } else {
- newVal = {}
- }
- } else {
- if (!newVal) newVal = []
- for(let i =0 ;i < newVal.length ;i++){
- let v = newVal[i]
- await newData(v)
- }
- }
- this.localValue = newVal
- if (this.form && this.formItem &&!this.is_reset) {
- this.is_reset = false
- this.formItem.setValue(this.localValue)
- }
- let filesData = Object.keys(newVal).length > 0 ? newVal : [];
- this.files = [].concat(filesData)
- },
-
- /**
- * 閫夋嫨鏂囦欢
- */
- choose() {
-
- if (this.disabled) return
- if (this.files.length >= Number(this.limitLength) && this.showType !== 'grid' && this.returnType ===
- 'array') {
- uni.showToast({
- title: `鎮ㄦ渶澶氶�夋嫨 ${this.limitLength} 涓枃浠禶,
- icon: 'none'
- })
- return
- }
- this.chooseFiles()
- },
-
- /**
- * 閫夋嫨鏂囦欢骞朵笂浼�
- */
- chooseFiles() {
- const _extname = get_extname(this.fileExtname)
- // 鑾峰彇鍚庣紑
- uniCloud
- .chooseAndUploadFile({
- type: this.fileMediatype,
- compressed: false,
- sizeType: this.sizeType,
- // TODO 濡傛灉涓虹┖锛寁ideo 鏈夐棶棰�
- extension: _extname.length > 0 ? _extname : undefined,
- count: this.limitLength - this.files.length, //榛樿9
- onChooseFile: this.chooseFileCallback,
- onUploadProgress: progressEvent => {
- this.setProgress(progressEvent, progressEvent.index)
- }
- })
- .then(result => {
- this.setSuccessAndError(result.tempFiles)
- })
- .catch(err => {
- console.log('閫夋嫨澶辫触', err)
- })
- },
-
- /**
- * 閫夋嫨鏂囦欢鍥炶皟
- * @param {Object} res
- */
- async chooseFileCallback(res) {
- const _extname = get_extname(this.fileExtname)
- const is_one = (Number(this.limitLength) === 1 &&
- this.disablePreview &&
- !this.disabled) ||
- this.returnType === 'object'
- // 濡傛灉杩欐湁涓�涓枃浠� 锛岄渶瑕佹竻绌烘湰鍦扮紦瀛樻暟鎹�
- if (is_one) {
- this.files = []
- }
-
- let {
- filePaths,
- files
- } = get_files_and_is_max(res, _extname)
- if (!(_extname && _extname.length > 0)) {
- filePaths = res.tempFilePaths
- files = res.tempFiles
- }
-
- let currentData = []
- for (let i = 0; i < files.length; i++) {
- if (this.limitLength - this.files.length <= 0) break
- files[i].uuid = Date.now()
- let filedata = await get_file_data(files[i], this.fileMediatype)
- filedata.progress = 0
- filedata.status = 'ready'
- this.files.push(filedata)
- currentData.push({
- ...filedata,
- file: files[i]
- })
- }
- this.$emit('select', {
- tempFiles: currentData,
- tempFilePaths: filePaths
- })
- res.tempFiles = files
- // 鍋滄鑷姩涓婁紶
- if (!this.autoUpload || this.noSpace) {
- res.tempFiles = []
- }
- },
-
- /**
- * 鎵逛紶
- * @param {Object} e
- */
- uploadFiles(files) {
- files = [].concat(files)
- uploadCloudFiles.call(this, files, 5, res => {
- this.setProgress(res, res.index, true)
- })
- .then(result => {
- this.setSuccessAndError(result)
- })
- .catch(err => {
- console.log(err)
- })
- },
-
- /**
- * 鎴愬姛鎴栧け璐�
- */
- async setSuccessAndError(res, fn) {
- let successData = []
- let errorData = []
- let tempFilePath = []
- let errorTempFilePath = []
- for (let i = 0; i < res.length; i++) {
- const item = res[i]
- const index = item.uuid ? this.files.findIndex(p => p.uuid === item.uuid) : item.index
-
- if (index === -1 || !this.files) break
- if (item.errMsg === 'request:fail') {
- this.files[index].url = item.path
- this.files[index].status = 'error'
- this.files[index].errMsg = item.errMsg
- // this.files[index].progress = -1
- errorData.push(this.files[index])
- errorTempFilePath.push(this.files[index].url)
- } else {
- this.files[index].errMsg = ''
- this.files[index].fileID = item.url
- const reg = /cloud:\/\/([\w.]+\/?)\S*/
- if (reg.test(item.url)) {
- this.files[index].url = await this.getTempFileURL(item.url)
- }else{
- this.files[index].url = item.url
- }
-
- this.files[index].status = 'success'
- this.files[index].progress += 1
- successData.push(this.files[index])
- tempFilePath.push(this.files[index].fileID)
- }
- }
-
- if (successData.length > 0) {
- this.setEmit()
- // 鐘舵�佹敼鍙樿繑鍥�
- this.$emit('success', {
- tempFiles: this.backObject(successData),
- tempFilePaths: tempFilePath
- })
- }
-
- if (errorData.length > 0) {
- this.$emit('fail', {
- tempFiles: this.backObject(errorData),
- tempFilePaths: errorTempFilePath
- })
- }
- },
-
- /**
- * 鑾峰彇杩涘害
- * @param {Object} progressEvent
- * @param {Object} index
- * @param {Object} type
- */
- setProgress(progressEvent, index, type) {
- const fileLenth = this.files.length
- const percentNum = (index / fileLenth) * 100
- const percentCompleted = Math.round((progressEvent.loaded * 100) / progressEvent.total)
- let idx = index
- if (!type) {
- idx = this.files.findIndex(p => p.uuid === progressEvent.tempFile.uuid)
- }
- if (idx === -1 || !this.files[idx]) return
- // fix by mehaotian 100 灏变細娑堝け锛�-1 鏄负浜嗚杩涘害鏉℃秷澶�
- this.files[idx].progress = percentCompleted - 1
- // 涓婁紶涓�
- this.$emit('progress', {
- index: idx,
- progress: parseInt(percentCompleted),
- tempFile: this.files[idx]
- })
- },
-
- /**
- * 鍒犻櫎鏂囦欢
- * @param {Object} index
- */
- delFile(index) {
- this.$emit('delete', {
- tempFile: this.files[index],
- tempFilePath: this.files[index].url
- })
- this.files.splice(index, 1)
- this.$nextTick(() => {
- this.setEmit()
- })
- },
-
- /**
- * 鑾峰彇鏂囦欢鍚嶅拰鍚庣紑
- * @param {Object} name
- */
- getFileExt(name) {
- const last_len = name.lastIndexOf('.')
- const len = name.length
- return {
- name: name.substring(0, last_len),
- ext: name.substring(last_len + 1, len)
- }
- },
-
- /**
- * 澶勭悊杩斿洖浜嬩欢
- */
- setEmit() {
- let data = []
- if (this.returnType === 'object') {
- data = this.backObject(this.files)[0]
- this.localValue = data?data:null
- } else {
- data = this.backObject(this.files)
- if (!this.localValue) {
- this.localValue = []
- }
- this.localValue = [...data]
- }
- // #ifdef VUE3
- this.$emit('update:modelValue', this.localValue)
- // #endif
- // #ifndef VUE3
- this.$emit('input', this.localValue)
- // #endif
- },
-
- /**
- * 澶勭悊杩斿洖鍙傛暟
- * @param {Object} files
- */
- backObject(files) {
- let newFilesData = []
- files.forEach(v => {
- newFilesData.push({
- extname: v.extname,
- fileType: v.fileType,
- image: v.image,
- name: v.name,
- path: v.path,
- size: v.size,
- fileID:v.fileID,
- url: v.url
- })
- })
- return newFilesData
- },
- async getTempFileURL(fileList) {
- fileList = {
- fileList: [].concat(fileList)
- }
- const urls = await uniCloud.getTempFileURL(fileList)
- return urls.fileList[0].tempFileURL || ''
- },
- /**
- * 鑾峰彇鐖跺厓绱犲疄渚�
- */
- getForm(name = 'uniForms') {
- let parent = this.$parent;
- let parentName = parent.$options.name;
- while (parentName !== name) {
- parent = parent.$parent;
- if (!parent) return false;
- parentName = parent.$options.name;
- }
- return parent;
- }
- }
- }
-</script>
-
-<style>
- .uni-file-picker {
- /* #ifndef APP-NVUE */
- box-sizing: border-box;
- overflow: hidden;
- /* #endif */
- }
-
- .uni-file-picker__header {
- padding-top: 5px;
- padding-bottom: 10px;
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- justify-content: space-between;
- }
-
- .file-title {
- font-size: 14px;
- color: #333;
- }
-
- .file-count {
- font-size: 14px;
- color: #999;
- }
-
- .is-add {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- align-items: center;
- justify-content: center;
- }
-
- .icon-add {
- width: 50px;
- height: 5px;
- background-color: #f1f1f1;
- border-radius: 2px;
- }
-
- .rotate {
- position: absolute;
- transform: rotate(90deg);
- }
-</style>
diff --git a/uni_modules/uni-file-picker/components/uni-file-picker/upload-file.vue b/uni_modules/uni-file-picker/components/uni-file-picker/upload-file.vue
deleted file mode 100644
index 625d92e..0000000
--- a/uni_modules/uni-file-picker/components/uni-file-picker/upload-file.vue
+++ /dev/null
@@ -1,325 +0,0 @@
-<template>
- <view class="uni-file-picker__files">
- <view v-if="!readonly" class="files-button" @click="choose">
- <slot></slot>
- </view>
- <!-- :class="{'is-text-box':showType === 'list'}" -->
- <view v-if="list.length > 0" class="uni-file-picker__lists is-text-box" :style="borderStyle">
- <!-- ,'is-list-card':showType === 'list-card' -->
-
- <view class="uni-file-picker__lists-box" v-for="(item ,index) in list" :key="index" :class="{
- 'files-border':index !== 0 && styles.dividline}"
- :style="index !== 0 && styles.dividline &&borderLineStyle">
- <view class="uni-file-picker__item">
- <!-- :class="{'is-text-image':showType === 'list'}" -->
- <!-- <view class="files__image is-text-image">
- <image class="header-image" :src="item.logo" mode="aspectFit"></image>
- </view> -->
- <view class="files__name">{{item.name}}</view>
- <view v-if="delIcon&&!readonly" class="icon-del-box icon-files" @click="delFile(index)">
- <view class="icon-del icon-files"></view>
- <view class="icon-del rotate"></view>
- </view>
- </view>
- <view v-if="(item.progress && item.progress !== 100) ||item.progress===0 " class="file-picker__progress">
- <progress class="file-picker__progress-item" :percent="item.progress === -1?0:item.progress" stroke-width="4"
- :backgroundColor="item.errMsg?'#ff5a5f':'#EBEBEB'" />
- </view>
- <view v-if="item.status === 'error'" class="file-picker__mask" @click.stop="uploadFiles(item,index)">
- 鐐瑰嚮閲嶈瘯
- </view>
- </view>
-
- </view>
- </view>
-</template>
-
-<script>
- export default {
- name: "uploadFile",
- emits:['uploadFiles','choose','delFile'],
- props: {
- filesList: {
- type: Array,
- default () {
- return []
- }
- },
- delIcon: {
- type: Boolean,
- default: true
- },
- limit: {
- type: [Number, String],
- default: 9
- },
- showType: {
- type: String,
- default: ''
- },
- listStyles: {
- type: Object,
- default () {
- return {
- // 鏄惁鏄剧ず杈规
- border: true,
- // 鏄惁鏄剧ず鍒嗛殧绾�
- dividline: true,
- // 绾挎潯鏍峰紡
- borderStyle: {}
- }
- }
- },
- readonly:{
- type:Boolean,
- default:false
- }
- },
- computed: {
- list() {
- let files = []
- this.filesList.forEach(v => {
- files.push(v)
- })
- return files
- },
- styles() {
- let styles = {
- border: true,
- dividline: true,
- 'border-style': {}
- }
- return Object.assign(styles, this.listStyles)
- },
- borderStyle() {
- let {
- borderStyle,
- border
- } = this.styles
- let obj = {}
- if (!border) {
- obj.border = 'none'
- } else {
- let width = (borderStyle && borderStyle.width) || 1
- width = this.value2px(width)
- let radius = (borderStyle && borderStyle.radius) || 5
- radius = this.value2px(radius)
- obj = {
- 'border-width': width,
- 'border-style': (borderStyle && borderStyle.style) || 'solid',
- 'border-color': (borderStyle && borderStyle.color) || '#eee',
- 'border-radius': radius
- }
- }
- let classles = ''
- for (let i in obj) {
- classles += `${i}:${obj[i]};`
- }
- return classles
- },
- borderLineStyle() {
- let obj = {}
- let {
- borderStyle
- } = this.styles
- if (borderStyle && borderStyle.color) {
- obj['border-color'] = borderStyle.color
- }
- if (borderStyle && borderStyle.width) {
- let width = borderStyle && borderStyle.width || 1
- let style = borderStyle && borderStyle.style || 0
- if (typeof width === 'number') {
- width += 'px'
- } else {
- width = width.indexOf('px') ? width : width + 'px'
- }
- obj['border-width'] = width
-
- if (typeof style === 'number') {
- style += 'px'
- } else {
- style = style.indexOf('px') ? style : style + 'px'
- }
- obj['border-top-style'] = style
- }
- let classles = ''
- for (let i in obj) {
- classles += `${i}:${obj[i]};`
- }
- return classles
- }
- },
-
- methods: {
- uploadFiles(item, index) {
- this.$emit("uploadFiles", {
- item,
- index
- })
- },
- choose() {
- this.$emit("choose")
- },
- delFile(index) {
- this.$emit('delFile', index)
- },
- value2px(value) {
- if (typeof value === 'number') {
- value += 'px'
- } else {
- value = value.indexOf('px') !== -1 ? value : value + 'px'
- }
- return value
- }
- }
- }
-</script>
-
-<style lang="scss">
- .uni-file-picker__files {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex-direction: column;
- justify-content: flex-start;
- }
-
- .files-button {
- // border: 1px red solid;
- }
-
- .uni-file-picker__lists {
- position: relative;
- margin-top: 5px;
- overflow: hidden;
- }
-
- .file-picker__mask {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- justify-content: center;
- align-items: center;
- position: absolute;
- right: 0;
- top: 0;
- bottom: 0;
- left: 0;
- color: #fff;
- font-size: 14px;
- background-color: rgba(0, 0, 0, 0.4);
- }
-
- .uni-file-picker__lists-box {
- position: relative;
- }
-
- .uni-file-picker__item {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- align-items: center;
- padding: 8px 10px;
- padding-right: 5px;
- padding-left: 10px;
- }
-
- .files-border {
- border-top: 1px #eee solid;
- }
-
- .files__name {
- flex: 1;
- font-size: 14px;
- color: #666;
- margin-right: 25px;
- /* #ifndef APP-NVUE */
- word-break: break-all;
- word-wrap: break-word;
- /* #endif */
- }
-
- .icon-files {
- /* #ifndef APP-NVUE */
- position: static;
- background-color: initial;
- /* #endif */
- }
-
- // .icon-files .icon-del {
- // background-color: #333;
- // width: 12px;
- // height: 1px;
- // }
-
-
- .is-list-card {
- border: 1px #eee solid;
- margin-bottom: 5px;
- border-radius: 5px;
- box-shadow: 0 0 2px 0px rgba(0, 0, 0, 0.1);
- padding: 5px;
- }
-
- .files__image {
- width: 40px;
- height: 40px;
- margin-right: 10px;
- }
-
- .header-image {
- width: 100%;
- height: 100%;
- }
-
- .is-text-box {
- border: 1px #eee solid;
- border-radius: 5px;
- }
-
- .is-text-image {
- width: 25px;
- height: 25px;
- margin-left: 5px;
- }
-
- .rotate {
- position: absolute;
- transform: rotate(90deg);
- }
-
- .icon-del-box {
- /* #ifndef APP-NVUE */
- display: flex;
- margin: auto 0;
- /* #endif */
- align-items: center;
- justify-content: center;
- position: absolute;
- top: 0px;
- bottom: 0;
- right: 5px;
- height: 26px;
- width: 26px;
- // border-radius: 50%;
- // background-color: rgba(0, 0, 0, 0.5);
- z-index: 2;
- transform: rotate(-45deg);
- }
-
- .icon-del {
- width: 15px;
- height: 1px;
- background-color: #333;
- // border-radius: 1px;
- }
-
- /* #ifdef H5 */
- @media all and (min-width: 768px) {
- .uni-file-picker__files {
- max-width: 375px;
- }
- }
-
- /* #endif */
-</style>
diff --git a/uni_modules/uni-file-picker/components/uni-file-picker/upload-image.vue b/uni_modules/uni-file-picker/components/uni-file-picker/upload-image.vue
deleted file mode 100644
index 2a29bc2..0000000
--- a/uni_modules/uni-file-picker/components/uni-file-picker/upload-image.vue
+++ /dev/null
@@ -1,292 +0,0 @@
-<template>
- <view class="uni-file-picker__container">
- <view class="file-picker__box" v-for="(item,index) in filesList" :key="index" :style="boxStyle">
- <view class="file-picker__box-content" :style="borderStyle">
- <image class="file-image" :src="item.url" mode="aspectFill" @click.stop="prviewImage(item,index)"></image>
- <view v-if="delIcon && !readonly" class="icon-del-box" @click.stop="delFile(index)">
- <view class="icon-del"></view>
- <view class="icon-del rotate"></view>
- </view>
- <view v-if="(item.progress && item.progress !== 100) ||item.progress===0 " class="file-picker__progress">
- <progress class="file-picker__progress-item" :percent="item.progress === -1?0:item.progress" stroke-width="4"
- :backgroundColor="item.errMsg?'#ff5a5f':'#EBEBEB'" />
- </view>
- <view v-if="item.errMsg" class="file-picker__mask" @click.stop="uploadFiles(item,index)">
- 鐐瑰嚮閲嶈瘯
- </view>
- </view>
- </view>
- <view v-if="filesList.length < limit && !readonly" class="file-picker__box" :style="boxStyle">
- <view class="file-picker__box-content is-add" :style="borderStyle" @click="choose">
- <slot>
- <view class="icon-add"></view>
- <view class="icon-add rotate"></view>
- </slot>
- </view>
- </view>
- </view>
-</template>
-
-<script>
- export default {
- name: "uploadImage",
- emits:['uploadFiles','choose','delFile'],
- props: {
- filesList: {
- type: Array,
- default () {
- return []
- }
- },
- disabled:{
- type: Boolean,
- default: false
- },
- disablePreview: {
- type: Boolean,
- default: false
- },
- limit: {
- type: [Number, String],
- default: 9
- },
- imageStyles: {
- type: Object,
- default () {
- return {
- width: 'auto',
- height: 'auto',
- border: {}
- }
- }
- },
- delIcon: {
- type: Boolean,
- default: true
- },
- readonly:{
- type:Boolean,
- default:false
- }
- },
- computed: {
- styles() {
- let styles = {
- width: 'auto',
- height: 'auto',
- border: {}
- }
- return Object.assign(styles, this.imageStyles)
- },
- boxStyle() {
- const {
- width = 'auto',
- height = 'auto'
- } = this.styles
- let obj = {}
- if (height === 'auto') {
- if (width !== 'auto') {
- obj.height = this.value2px(width)
- obj['padding-top'] = 0
- } else {
- obj.height = 0
- }
- } else {
- obj.height = this.value2px(height)
- obj['padding-top'] = 0
- }
-
- if (width === 'auto') {
- if (height !== 'auto') {
- obj.width = this.value2px(height)
- } else {
- obj.width = '33.3%'
- }
- } else {
- obj.width = this.value2px(width)
- }
-
- let classles = ''
- for(let i in obj){
- classles+= `${i}:${obj[i]};`
- }
- return classles
- },
- borderStyle() {
- let {
- border
- } = this.styles
- let obj = {}
- const widthDefaultValue = 1
- const radiusDefaultValue = 3
- if (typeof border === 'boolean') {
- obj.border = border ? '1px #eee solid' : 'none'
- } else {
- let width = (border && border.width) || widthDefaultValue
- width = this.value2px(width)
- let radius = (border && border.radius) || radiusDefaultValue
- radius = this.value2px(radius)
- obj = {
- 'border-width': width,
- 'border-style': (border && border.style) || 'solid',
- 'border-color': (border && border.color) || '#eee',
- 'border-radius': radius
- }
- }
- let classles = ''
- for(let i in obj){
- classles+= `${i}:${obj[i]};`
- }
- return classles
- }
- },
- methods: {
- uploadFiles(item, index) {
- this.$emit("uploadFiles", item)
- },
- choose() {
- this.$emit("choose")
- },
- delFile(index) {
- this.$emit('delFile', index)
- },
- prviewImage(img, index) {
- let urls = []
- if(Number(this.limit) === 1&&this.disablePreview&&!this.disabled){
- this.$emit("choose")
- }
- if(this.disablePreview) return
- this.filesList.forEach(i => {
- urls.push(i.url)
- })
-
- uni.previewImage({
- urls: urls,
- current: index
- });
- },
- value2px(value) {
- if (typeof value === 'number') {
- value += 'px'
- } else {
- if (value.indexOf('%') === -1) {
- value = value.indexOf('px') !== -1 ? value : value + 'px'
- }
- }
- return value
- }
- }
- }
-</script>
-
-<style lang="scss">
- .uni-file-picker__container {
- /* #ifndef APP-NVUE */
- display: flex;
- box-sizing: border-box;
- /* #endif */
- flex-wrap: wrap;
- margin: -5px;
- }
-
- .file-picker__box {
- position: relative;
- // flex: 0 0 33.3%;
- width: 33.3%;
- height: 0;
- padding-top: 33.33%;
- /* #ifndef APP-NVUE */
- box-sizing: border-box;
- /* #endif */
- }
-
- .file-picker__box-content {
- position: absolute;
- top: 0;
- right: 0;
- bottom: 0;
- left: 0;
- margin: 5px;
- border: 1px #eee solid;
- border-radius: 5px;
- overflow: hidden;
- }
-
- .file-picker__progress {
- position: absolute;
- bottom: 0;
- left: 0;
- right: 0;
- /* border: 1px red solid; */
- z-index: 2;
- }
-
- .file-picker__progress-item {
- width: 100%;
- }
-
- .file-picker__mask {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- justify-content: center;
- align-items: center;
- position: absolute;
- right: 0;
- top: 0;
- bottom: 0;
- left: 0;
- color: #fff;
- font-size: 12px;
- background-color: rgba(0, 0, 0, 0.4);
- }
-
- .file-image {
- width: 100%;
- height: 100%;
- }
-
- .is-add {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- align-items: center;
- justify-content: center;
- }
-
- .icon-add {
- width: 50px;
- height: 5px;
- background-color: #f1f1f1;
- border-radius: 2px;
- }
-
- .rotate {
- position: absolute;
- transform: rotate(90deg);
- }
-
- .icon-del-box {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- align-items: center;
- justify-content: center;
- position: absolute;
- top: 3px;
- right: 3px;
- height: 26px;
- width: 26px;
- border-radius: 50%;
- background-color: rgba(0, 0, 0, 0.5);
- z-index: 2;
- transform: rotate(-45deg);
- }
-
- .icon-del {
- width: 15px;
- height: 2px;
- background-color: #fff;
- border-radius: 2px;
- }
-</style>
diff --git a/uni_modules/uni-file-picker/components/uni-file-picker/utils.js b/uni_modules/uni-file-picker/components/uni-file-picker/utils.js
deleted file mode 100644
index 60aaa3e..0000000
--- a/uni_modules/uni-file-picker/components/uni-file-picker/utils.js
+++ /dev/null
@@ -1,109 +0,0 @@
-/**
- * 鑾峰彇鏂囦欢鍚嶅拰鍚庣紑
- * @param {String} name
- */
-export const get_file_ext = (name) => {
- const last_len = name.lastIndexOf('.')
- const len = name.length
- return {
- name: name.substring(0, last_len),
- ext: name.substring(last_len + 1, len)
- }
-}
-
-/**
- * 鑾峰彇鎵╁睍鍚�
- * @param {Array} fileExtname
- */
-export const get_extname = (fileExtname) => {
- if (!Array.isArray(fileExtname)) {
- let extname = fileExtname.replace(/(\[|\])/g, '')
- return extname.split(',')
- } else {
- return fileExtname
- }
- return []
-}
-
-/**
- * 鑾峰彇鏂囦欢鍜屾娴嬫槸鍚﹀彲閫�
- */
-export const get_files_and_is_max = (res, _extname) => {
- let filePaths = []
- let files = []
- if(!_extname || _extname.length === 0){
- return {
- filePaths,
- files
- }
- }
- res.tempFiles.forEach(v => {
- let fileFullName = get_file_ext(v.name)
- const extname = fileFullName.ext.toLowerCase()
- if (_extname.indexOf(extname) !== -1) {
- files.push(v)
- filePaths.push(v.path)
- }
- })
- if (files.length !== res.tempFiles.length) {
- uni.showToast({
- title: `褰撳墠閫夋嫨浜�${res.tempFiles.length}涓枃浠� 锛�${res.tempFiles.length - files.length} 涓枃浠舵牸寮忎笉姝g‘`,
- icon: 'none',
- duration: 5000
- })
- }
-
- return {
- filePaths,
- files
- }
-}
-
-
-/**
- * 鑾峰彇鍥剧墖淇℃伅
- * @param {Object} filepath
- */
-export const get_file_info = (filepath) => {
- return new Promise((resolve, reject) => {
- uni.getImageInfo({
- src: filepath,
- success(res) {
- resolve(res)
- },
- fail(err) {
- reject(err)
- }
- })
- })
-}
-/**
- * 鑾峰彇灏佽鏁版嵁
- */
-export const get_file_data = async (files, type = 'image') => {
- // 鏈�缁堥渶瑕佷笂浼犳暟鎹簱鐨勬暟鎹�
- let fileFullName = get_file_ext(files.name)
- const extname = fileFullName.ext.toLowerCase()
- let filedata = {
- name: files.name,
- uuid: files.uuid,
- extname: extname || '',
- cloudPath: files.cloudPath,
- fileType: files.fileType,
- url: files.path || files.path,
- size: files.size, //鍗曚綅鏄瓧鑺�
- image: {},
- path: files.path,
- video: {}
- }
- if (type === 'image') {
- const imageinfo = await get_file_info(files.path)
- delete filedata.video
- filedata.image.width = imageinfo.width
- filedata.image.height = imageinfo.height
- filedata.image.location = imageinfo.path
- } else {
- delete filedata.image
- }
- return filedata
-}
diff --git a/uni_modules/uni-file-picker/package.json b/uni_modules/uni-file-picker/package.json
deleted file mode 100644
index d659bb5..0000000
--- a/uni_modules/uni-file-picker/package.json
+++ /dev/null
@@ -1,86 +0,0 @@
-{
- "id": "uni-file-picker",
- "displayName": "uni-file-picker 鏂囦欢閫夋嫨涓婁紶",
- "version": "1.0.1",
- "description": "鏂囦欢閫夋嫨涓婁紶缁勪欢锛屽彲浠ラ�夋嫨鍥剧墖銆佽棰戠瓑浠绘剰鏂囦欢骞朵笂浼犲埌褰撳墠缁戝畾鐨勬湇鍔$┖闂�",
- "keywords": [
- "uni-ui",
- "uniui",
- "鍥剧墖涓婁紶",
- "鏂囦欢涓婁紶"
-],
- "repository": "https://github.com/dcloudio/uni-ui",
- "engines": {
- "HBuilderX": ""
- },
- "directories": {
- "example": "../../temps/example_temps"
- },
- "dcloudext": {
- "category": [
- "鍓嶇缁勪欢",
- "閫氱敤缁勪欢"
- ],
- "sale": {
- "regular": {
- "price": "0.00"
- },
- "sourcecode": {
- "price": "0.00"
- }
- },
- "contact": {
- "qq": ""
- },
- "declaration": {
- "ads": "鏃�",
- "data": "鏃�",
- "permissions": "鏃�"
- },
- "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui"
- },
- "uni_modules": {
- "dependencies": ["uni-scss"],
- "encrypt": [],
- "platforms": {
- "cloud": {
- "tcb": "y",
- "aliyun": "y"
- },
- "client": {
- "App": {
- "app-vue": "y",
- "app-nvue": "n"
- },
- "H5-mobile": {
- "Safari": "y",
- "Android Browser": "y",
- "寰俊娴忚鍣�(Android)": "y",
- "QQ娴忚鍣�(Android)": "y"
- },
- "H5-pc": {
- "Chrome": "y",
- "IE": "y",
- "Edge": "y",
- "Firefox": "y",
- "Safari": "y"
- },
- "灏忕▼搴�": {
- "寰俊": "y",
- "闃块噷": "y",
- "鐧惧害": "y",
- "瀛楄妭璺冲姩": "y",
- "QQ": "y"
- },
- "蹇簲鐢�": {
- "鍗庝负": "u",
- "鑱旂洘": "u"
- },
- "Vue": {
- "vue2": "y",
- "vue3": "y"
- }
- }
- }
- }
-}
diff --git a/uni_modules/uni-file-picker/readme.md b/uni_modules/uni-file-picker/readme.md
deleted file mode 100644
index c8399a5..0000000
--- a/uni_modules/uni-file-picker/readme.md
+++ /dev/null
@@ -1,11 +0,0 @@
-
-## FilePicker 鏂囦欢閫夋嫨涓婁紶
-
-> **缁勪欢鍚嶏細uni-file-picker**
-> 浠g爜鍧楋細 `uFilePicker`
-
-
-鏂囦欢閫夋嫨涓婁紶缁勪欢锛屽彲浠ラ�夋嫨鍥剧墖銆佽棰戠瓑浠绘剰鏂囦欢骞朵笂浼犲埌褰撳墠缁戝畾鐨勬湇鍔$┖闂�
-
-### [鏌ョ湅鏂囨。](https://uniapp.dcloud.io/component/uniui/uni-file-picker)
-#### 濡備娇鐢ㄨ繃绋嬩腑鏈変换浣曢棶棰橈紝鎴栬�呮偍瀵箄ni-ui鏈変竴浜涘ソ鐨勫缓璁紝娆㈣繋鍔犲叆 uni-ui 浜ゆ祦缇わ細871950839
\ No newline at end of file
diff --git a/uni_modules/uni-forms/changelog.md b/uni_modules/uni-forms/changelog.md
deleted file mode 100644
index 26e120b..0000000
--- a/uni_modules/uni-forms/changelog.md
+++ /dev/null
@@ -1,60 +0,0 @@
-## 1.3.2锛�2021-12-09锛�
--
-## 1.3.1锛�2021-11-19锛�
-- 淇 label 鎻掓Ы涓嶇敓鏁堢殑bug
-## 1.3.0锛�2021-11-19锛�
-- 浼樺寲 缁勪欢UI锛屽苟鎻愪緵璁捐璧勬簮锛岃瑙�:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource)
-- 鏂囨。杩佺Щ锛岃瑙�:[https://uniapp.dcloud.io/component/uniui/uni-forms](https://uniapp.dcloud.io/component/uniui/uni-forms)
-## 1.2.7锛�2021-08-13锛�
-- 淇 娌℃湁娣诲姞鏍¢獙瑙勫垯鐨勫瓧娈典緷鐒舵姤閿欑殑Bug
-## 1.2.6锛�2021-08-11锛�
-- 淇 閲嶇疆琛ㄥ崟閿欒淇℃伅鏃犳硶娓呴櫎鐨勯棶棰�
-## 1.2.5锛�2021-08-11锛�
-- 浼樺寲 缁勪欢鏂囨。
-## 1.2.4锛�2021-08-11锛�
-- 淇 琛ㄥ崟楠岃瘉鍙敓鏁堜竴娆$殑闂
-## 1.2.3锛�2021-07-30锛�
-- 浼樺寲 vue3涓嬩簨浠惰鍛婄殑闂
-## 1.2.2锛�2021-07-26锛�
-- 淇 vue2 涓嬫潯浠剁紪璇戝鑷磀estroyed鐢熷懡鍛ㄦ湡澶辨晥鐨凚ug
-- 淇 1.2.1 寮曡捣鐨勭ず渚嬪湪灏忕▼搴忓钩鍙版姤閿欑殑Bug
-## 1.2.1锛�2021-07-22锛�
-- 淇 鍔ㄦ�佹牎楠岃〃鍗曪紝榛樿鍊间负绌虹殑鎯呭喌涓嬫牎楠屽け鏁堢殑Bug
-- 淇 涓嶆寚瀹歯ame灞炴�ф椂锛岃繍琛屾姤閿欑殑Bug
-- 浼樺寲 label榛樿瀹藉害浠�65璋冩暣鑷�70锛屼娇required涓簍rue涓斿洓瀛楁椂涓嶆崲琛�
-- 浼樺寲 缁勪欢绀轰緥锛屾柊澧炲姩鎬佹牎楠岀ず渚嬩唬鐮�
-- 浼樺寲 缁勪欢鏂囨。锛屼娇鐢ㄦ柟寮忔洿娓呮櫚
-## 1.2.0锛�2021-07-13锛�
-- 缁勪欢鍏煎 vue3锛屽浣曞垱寤簐ue3椤圭洰锛岃瑙� [uni-app 椤圭洰鏀寔 vue3 浠嬬粛](https://ask.dcloud.net.cn/article/37834)
-## 1.1.2锛�2021-06-25锛�
-- 淇 pattern 灞炴�у湪寰俊灏忕▼搴忓钩鍙版棤鏁堢殑闂
-## 1.1.1锛�2021-06-22锛�
-- 淇 validate-trigger灞炴�т负submit涓攅rr-show-type灞炴�т负toast鏃朵笉鑳藉脊鍑虹殑Bug
-## 1.1.0锛�2021-06-22锛�
-- 淇 鍙啓setRules鏂规硶鑰屽鑷存牎楠屼笉鐢熸晥鐨凚ug
-- 淇 鐢变笂涓姙娉曞紩鍙戠殑閿欒鎻愮ず鏂囧瓧閿欎綅鐨凚ug
-## 1.0.48锛�2021-06-21锛�
-- 淇 涓嶈缃� label 灞炴�� 锛屾棤娉曡缃甽abel鎻掓Ы鐨勯棶棰�
-## 1.0.47锛�2021-06-21锛�
-- 淇 涓嶈缃甽abel灞炴�э紝label-width灞炴�т笉鐢熸晥鐨刡ug
-- 淇 setRules 鏂规硶涓巖ules灞炴�у啿绐佺殑闂
-## 1.0.46锛�2021-06-04锛�
-- 淇 鍔ㄦ�佸垹鍑忔暟鎹鑷存姤閿欑殑闂
-## 1.0.45锛�2021-06-04锛�
-- 鏂板 modelValue 灞炴�� 锛寁alue 鍗冲皢搴熷純
-## 1.0.44锛�2021-06-02锛�
-- 鏂板 uni-forms-item 鍙互璁剧疆鍗曠嫭鐨� rules
-- 鏂板 validate 浜嬩欢澧炲姞 keepitem 鍙傛暟锛屽彲浠ラ�夋嫨閭d簺瀛楁涓嶈繃婊�
-- 浼樺寲 submit 浜嬩欢閲嶅懡鍚嶄负 validate
-## 1.0.43锛�2021-05-12锛�
-- 鏂板 缁勪欢绀轰緥鍦板潃
-## 1.0.42锛�2021-04-30锛�
-- 淇 鑷畾涔夋楠屽櫒澶辨晥鐨勯棶棰�
-## 1.0.41锛�2021-03-05锛�
-- 鏇存柊 鏍¢獙鍣�
-- 淇 琛ㄥ崟瑙勫垯璁剧疆绫诲瀷涓� number 鐨勬儏鍐典笅锛屽�间负0鏍¢獙澶辫触鐨凚ug
-## 1.0.40锛�2021-03-04锛�
-- 淇 鍔ㄦ�佹樉绀簎ni-forms-item鐨勬儏鍐典笅锛宻ubmit 鏂规硶鑾峰彇鍊奸敊璇殑Bug
-## 1.0.39锛�2021-02-05锛�
-- 璋冩暣涓簎ni_modules鐩綍瑙勮寖
-- 淇 鏍¢獙鍣ㄤ紶鍏� int 绛夌被鍨� 锛岃繑鍥濻tring绫诲瀷鐨凚ug
diff --git a/uni_modules/uni-forms/components/uni-forms-item/uni-forms-item.vue b/uni_modules/uni-forms/components/uni-forms-item/uni-forms-item.vue
deleted file mode 100644
index a5ae8ab..0000000
--- a/uni_modules/uni-forms/components/uni-forms-item/uni-forms-item.vue
+++ /dev/null
@@ -1,509 +0,0 @@
-<template>
- <view class="uni-forms-item" :class="{ 'uni-forms-item--border': border, 'is-first-border': border && isFirstBorder, 'uni-forms-item-error': msg }">
- <view class="uni-forms-item__box">
- <view class="uni-forms-item__inner" :class="['is-direction-' + labelPos]">
- <view class="uni-forms-item__label" :style="{ width: labelWid , justifyContent: justifyContent }">
- <slot name="label">
- <text v-if="required" class="is-required">*</text>
- <uni-icons v-if="leftIcon" class="label-icon" size="16" :type="leftIcon" :color="iconColor" />
- <text class="label-text">{{ label }}</text>
-
- <view v-if="label" class="label-seat"></view>
- </slot>
- </view>
- <view class="uni-forms-item__content" :class="{ 'is-input-error-border': msg }"><slot></slot></view>
- </view>
- <view
- v-if="msg"
- class="uni-error-message"
- :class="{ 'uni-error-msg--boeder': border }"
- :style="{
- paddingLeft: labelLeft
- }"
- >
- <text class="uni-error-message-text">{{ showMsg === 'undertext' ? msg : '' }}</text>
- </view>
- </view>
- </view>
-</template>
-
-<script>
-/**
- * Field 杈撳叆妗�
- * @description 姝ょ粍浠跺彲浠ュ疄鐜拌〃鍗曠殑杈撳叆涓庢牎楠岋紝鍖呮嫭 "text" 鍜� "textarea" 绫诲瀷銆�
- * @tutorial https://ext.dcloud.net.cn/plugin?id=21001
- * @property {Boolean} required 鏄惁蹇呭~锛屽乏杈规樉绀虹孩鑹�"*"鍙凤紙榛樿false锛�
- * @property {String} validateTrigger = [bind|submit] 鏍¢獙瑙﹀彂鍣ㄦ柟寮� 榛樿 submit 鍙��
- * @value bind 鍙戠敓鍙樺寲鏃惰Е鍙�
- * @value submit 鎻愪氦鏃惰Е鍙�
- * @property {String } leftIcon label宸﹁竟鐨勫浘鏍囷紝闄� uni-ui 鐨勫浘鏍囧悕绉�
- * @property {String } iconColor 宸﹁竟閫氳繃icon閰嶇疆鐨勫浘鏍囩殑棰滆壊锛堥粯璁�#606266锛�
- * @property {String } label 杈撳叆妗嗗乏杈圭殑鏂囧瓧鎻愮ず
- * @property {Number } labelWidth label鐨勫搴︼紝鍗曚綅px锛堥粯璁�65锛�
- * @property {String } labelAlign = [left|center|right] label鐨勬枃瀛楀榻愭柟寮忥紙榛樿left锛�
- * @value left label 宸︿晶鏄剧ず
- * @value center label 灞呬腑
- * @value right label 鍙充晶瀵归綈
- * @property {String } labelPosition = [top|left] label鐨勬枃瀛楃殑浣嶇疆锛堥粯璁eft锛�
- * @value top 椤堕儴鏄剧ず label
- * @value left 宸︿晶鏄剧ず label
- * @property {String } errorMessage 鏄剧ず鐨勯敊璇彁绀哄唴瀹癸紝濡傛灉涓虹┖瀛楃涓叉垨鑰協alse锛屽垯涓嶆樉绀洪敊璇俊鎭�
- * @property {String } name 琛ㄥ崟鍩熺殑灞炴�у悕锛屽湪浣跨敤鏍¢獙瑙勫垯鏃跺繀濉�
- */
-
-export default {
- name: 'uniFormsItem',
- props: {
- // 鑷畾涔夊唴瀹�
- custom: {
- type: Boolean,
- default: false
- },
- // 鏄惁鏄剧ず鎶ラ敊淇℃伅
- showMessage: {
- type: Boolean,
- default: true
- },
- name: String,
- required: Boolean,
- validateTrigger: {
- type: String,
- default: ''
- },
- leftIcon: String,
- iconColor: {
- type: String,
- default: '#606266'
- },
- label: String,
- // 宸﹁竟鏍囬鐨勫搴﹀崟浣峱x
- labelWidth: {
- type: [Number, String],
- default: ''
- },
- // 瀵归綈鏂瑰紡锛宭eft|center|right
- labelAlign: {
- type: String,
- default: ''
- },
- // lable鐨勪綅缃紝鍙�変负 left-宸﹁竟锛宼op-涓婅竟
- labelPosition: {
- type: String,
- default: ''
- },
- errorMessage: {
- type: [String, Boolean],
- default: ''
- },
- // 琛ㄥ崟鏍¢獙瑙勫垯
- rules: {
- type: Array,
- default() {
- return [];
- }
- }
- },
- data() {
- return {
- errorTop: false,
- errorBottom: false,
- labelMarginBottom: '',
- errorWidth: '',
- errMsg: '',
- val: '',
- labelPos: '',
- labelWid: '',
- labelAli: '',
- showMsg: 'undertext',
- border: false,
- isFirstBorder: false,
- isArray: false,
- arrayField: ''
- };
- },
- computed: {
- msg() {
- return this.errorMessage || this.errMsg;
- },
- fieldStyle() {
- let style = {};
- if (this.labelPos == 'top') {
- style.padding = '0 0';
- this.labelMarginBottom = '6px';
- }
- if (this.labelPos == 'left' && this.msg !== false && this.msg != '') {
- style.paddingBottom = '0px';
- this.errorBottom = true;
- this.errorTop = false;
- } else if (this.labelPos == 'top' && this.msg !== false && this.msg != '') {
- this.errorBottom = false;
- this.errorTop = true;
- } else {
- // style.paddingBottom = ''
- this.errorTop = false;
- this.errorBottom = false;
- }
- return style;
- },
-
- // uni涓嶆敮鎸佸湪computed涓啓style.justifyContent = 'center'鐨勫舰寮忥紝鏁呯敤姝ゆ柟娉�
- justifyContent() {
- if (this.labelAli === 'left') return 'flex-start';
- if (this.labelAli === 'center') return 'center';
- if (this.labelAli === 'right') return 'flex-end';
- },
- labelLeft(){
- return (this.labelPos === 'left' ? parseInt(this.labelWid) : 0) + 'px'
- }
- },
- watch: {
- validateTrigger(trigger) {
- this.formTrigger = trigger;
- }
- },
- created() {
- this.form = this.getForm();
- this.group = this.getForm('uniGroup');
- this.formRules = [];
- this.formTrigger = this.validateTrigger;
- // 澶勭悊 name锛屾槸鍚︽暟缁�
- if (this.name && this.name.indexOf('[') !== -1 && this.name.indexOf(']') !== -1) {
- this.isArray = true;
- this.arrayField = this.name
- // fix by mehaotian 淇敼涓嶄慨鏀圭殑鎯呭喌锛屽姩鎬佸�间笉妫�楠岀殑闂
- this.form.formData[this.name] = this.form._getValue(this.name, '')
- }
- },
- mounted() {
- if (this.form) {
- this.form.childrens.push(this);
- }
- this.init();
- },
- // #ifndef VUE3
- destroyed() {
- if(this.__isUnmounted) return
- this.unInit()
- },
- // #endif
- // #ifdef VUE3
- unmounted(){
- this.__isUnmounted = true
- this.unInit()
- },
- // #endif
- methods: {
- init() {
- if (this.form) {
- let { formRules, validator, formData, value, labelPosition, labelWidth, labelAlign, errShowType } = this.form;
- this.labelPos = this.labelPosition ? this.labelPosition : labelPosition;
-
- if(this.label){
- this.labelWid = (this.labelWidth ? this.labelWidth : (labelWidth||70))
- }else{
- this.labelWid =( this.labelWidth ? this.labelWidth : (labelWidth||'auto'))
- }
- if(this.labelWid && this.labelWid !=='auto') {
- this.labelWid +='px'
- }
- this.labelAli = this.labelAlign ? this.labelAlign : labelAlign;
-
- // 鍒ゆ柇绗竴涓� item
- if (!this.form.isFirstBorder) {
- this.form.isFirstBorder = true;
- this.isFirstBorder = true;
- }
-
- // 鍒ゆ柇 group 閲岀殑绗竴涓� item
- if (this.group) {
- if (!this.group.isFirstBorder) {
- this.group.isFirstBorder = true;
- this.isFirstBorder = true;
- }
- }
-
- this.border = this.form.border;
- this.showMsg = errShowType;
- let name = this.isArray ? this.arrayField : this.name;
- if(!name) return
- if (formRules && this.rules.length > 0) {
- if (!formRules[name]) {
- formRules[name] = {
- rules: this.rules
- }
- }
- validator.updateSchema(formRules);
- }
- this.formRules = formRules[name] || {};
- this.validator = validator;
- } else {
- this.labelPos = this.labelPosition || 'left';
- this.labelWid = this.labelWidth || 65;
- this.labelAli = this.labelAlign || 'left';
- }
- },
- unInit(){
- if (this.form) {
- this.form.childrens.forEach((item, index) => {
- if (item === this) {
- this.form.childrens.splice(index, 1)
- delete this.form.formData[item.name]
- }
- })
- }
- },
- /**
- * 鑾峰彇鐖跺厓绱犲疄渚�
- */
- getForm(name = 'uniForms') {
- let parent = this.$parent;
- let parentName = parent.$options.name;
- while (parentName !== name) {
- parent = parent.$parent;
- if (!parent) return false;
- parentName = parent.$options.name;
- }
- return parent;
- },
-
- /**
- * 绉婚櫎璇ヨ〃鍗曢」鐨勬牎楠岀粨鏋�
- */
- clearValidate() {
- this.errMsg = '';
- },
- /**
- * 瀛愮粍浠惰皟鐢紝濡� easyinput
- * @param {Object} value
- */
- setValue(value) {
- let name = this.isArray ? this.arrayField : this.name;
- if (name) {
- if (this.errMsg) this.errMsg = '';
- // 缁欑粍浠惰祴鍊�
- this.form.formData[name] = this.form._getValue(name, value);
- if (!this.formRules || (typeof this.formRules && JSON.stringify(this.formRules) === '{}')) return;
- this.triggerCheck(this.form._getValue(this.name, value));
- }
- },
-
- /**
- * 鏍¢獙瑙勫垯
- * @param {Object} value
- */
- async triggerCheck(value,formTrigger) {
- let promise = null;
- this.errMsg = '';
- // fix by mehaotian 瑙e喅娌℃湁妫�楠岃鍒欑殑鎯呭喌涓嬶紝鎶涘嚭閿欒鐨勯棶棰�
- if (!this.validator || Object.keys(this.formRules).length === 0) return;
- const isNoField = this.isRequired(this.formRules.rules || []);
- let isTrigger = this.isTrigger(this.formRules.validateTrigger, this.validateTrigger, this.form.validateTrigger);
- let result = null;
- if (!!isTrigger || formTrigger) {
- let name = this.isArray ? this.arrayField : this.name;
- result = await this.validator.validateUpdate(
- {
- [name]: value
- },
- this.form.formData
- );
- }
- // 鍒ゆ柇鏄惁蹇呭~,闈炲繀濉紝涓嶅~涓嶆牎楠岋紝濉啓鎵嶆牎楠�
- if (!isNoField && (value === undefined || value === '')) {
- result = null;
- }
- const inputComp = this.form.inputChildrens.find(child => child.rename === this.name);
- if ((isTrigger ||銆�formTrigger) && result && result.errorMessage) {
- if (inputComp) {
- inputComp.errMsg = result.errorMessage;
- }
- if (this.form.errShowType === 'toast') {
- uni.showToast({
- title: result.errorMessage || '鏍¢獙閿欒',
- icon: 'none'
- });
- }
- if (this.form.errShowType === 'modal') {
- uni.showModal({
- title: '鎻愮ず',
- content: result.errorMessage || '鏍¢獙閿欒'
- });
- }
- } else {
- if (inputComp) {
- inputComp.errMsg = '';
- }
- }
-
- this.errMsg = !result ? '' : result.errorMessage;
- // 瑙﹀彂validate浜嬩欢
- this.form.validateCheck(result ? result : null);
- // typeof callback === 'function' && callback(result ? result : null);
- // if (promise) return promise
- return result ? result : null;
- },
- /**
- * 瑙﹀彂鏃舵満
- * @param {Object} event
- */
- isTrigger(rule, itemRlue, parentRule) {
- let rl = true;
- // bind submit
- if (rule === 'submit' || !rule) {
- if (rule === undefined) {
- if (itemRlue !== 'bind') {
- if (!itemRlue) {
- return parentRule === 'bind' ? true : false;
- }
- return false;
- }
- return true;
- }
- return false;
- }
- return true;
- },
- // 鏄惁鏈夊繀濉瓧娈�
- isRequired(rules) {
- let isNoField = false;
- for (let i = 0; i < rules.length; i++) {
- const ruleData = rules[i];
- if (ruleData.required) {
- isNoField = true;
- break;
- }
- }
- return isNoField;
- }
- }
-};
-</script>
-
-<style lang="scss" >
-.uni-forms-item {
- position: relative;
- padding: 0px;
- text-align: left;
- color: #333;
- font-size: 14px;
- // margin-bottom: 22px;
-}
-
-.uni-forms-item__box {
- position: relative;
-}
-
-.uni-forms-item__inner {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- // flex-direction: row;
- // align-items: center;
- padding-bottom: 22px;
- // margin-bottom: 22px;
-}
-
-.is-direction-left {
- flex-direction: row;
-}
-
-.is-direction-top {
- flex-direction: column;
-}
-
-.uni-forms-item__label {
- /* #ifndef APP-NVUE */
- display: flex;
- flex-shrink: 0;
- box-sizing: border-box;
- /* #endif */
- flex-direction: row;
- align-items: center;
- width: 65px;
- // line-height: 2;
- // margin-top: 3px;
- padding: 5px 0;
- height: 36px;
- // margin-right: 5px;
-
- .label-text {
- font-size: 13px;
- color: #666666;
- }
- .label-seat {
- margin-right: 5px;
- }
-}
-
-.uni-forms-item__content {
- /* #ifndef APP-NVUE */
- width: 100%;
- box-sizing: border-box;
- min-height: 36px;
- /* #endif */
- flex: 1;
-}
-
-.label-icon {
- margin-right: 5px;
- margin-top: -1px;
-}
-
-// 蹇呭~
-.is-required {
- // color: $uni-color-error;
- color: #dd524d;
- font-weight: bold;
-}
-
-.uni-error-message {
- position: absolute;
- bottom: 0px;
- left: 0;
- text-align: left;
-}
-
-.uni-error-message-text {
- line-height: 22px;
- color: #dd524d;
- font-size: 12px;
-}
-
-.uni-error-msg--boeder {
- position: relative;
- bottom: 0;
- line-height: 22px;
-}
-
-.is-input-error-border {
- border-color: #dd524d;
-}
-
-.uni-forms-item--border {
- margin-bottom: 0;
- padding: 10px 0;
- // padding-bottom: 0;
- border-top: 1px #eee solid;
-
- .uni-forms-item__inner {
- padding: 0;
- }
-}
-
-.uni-forms-item-error {
- // padding-bottom: 0;
-}
-
-.is-first-border {
- /* #ifndef APP-NVUE */
- border: none;
- /* #endif */
- /* #ifdef APP-NVUE */
- border-width: 0;
- /* #endif */
-}
-
-.uni-forms--no-padding {
- padding: 0;
-}
-</style>
diff --git a/uni_modules/uni-forms/components/uni-forms/uni-forms.vue b/uni_modules/uni-forms/components/uni-forms/uni-forms.vue
deleted file mode 100644
index d8b4e66..0000000
--- a/uni_modules/uni-forms/components/uni-forms/uni-forms.vue
+++ /dev/null
@@ -1,472 +0,0 @@
-<template>
- <view class="uni-forms" :class="{ 'uni-forms--top': !border }">
- <form @submit.stop="submitForm" @reset="resetForm">
- <slot></slot>
- </form>
- </view>
-</template>
-
-<script>
- // #ifndef VUE3
- import Vue from 'vue';
- Vue.prototype.binddata = function(name, value, formName) {
- if (formName) {
- this.$refs[formName].setValue(name, value);
- } else {
- let formVm;
- for (let i in this.$refs) {
- const vm = this.$refs[i];
- if (vm && vm.$options && vm.$options.name === 'uniForms') {
- formVm = vm;
- break;
- }
- }
- if (!formVm) return console.error('褰撳墠 uni-froms 缁勪欢缂哄皯 ref 灞炴��');
- formVm.setValue(name, value);
- }
- };
- // #endif
-
-
-
- import Validator from './validate.js';
- /**
- * Forms 琛ㄥ崟
- * @description 鐢辫緭鍏ユ銆侀�夋嫨鍣ㄣ�佸崟閫夋銆佸閫夋绛夋帶浠剁粍鎴愶紝鐢ㄤ互鏀堕泦銆佹牎楠屻�佹彁浜ゆ暟鎹�
- * @tutorial https://ext.dcloud.net.cn/plugin?id=2773
- * @property {Object} rules 琛ㄥ崟鏍¢獙瑙勫垯
- * @property {String} validateTrigger = [bind|submit] 鏍¢獙瑙﹀彂鍣ㄦ柟寮� 榛樿 submit
- * @value bind 鍙戠敓鍙樺寲鏃惰Е鍙�
- * @value submit 鎻愪氦鏃惰Е鍙�
- * @property {String} labelPosition = [top|left] label 浣嶇疆 榛樿 left
- * @value top 椤堕儴鏄剧ず label
- * @value left 宸︿晶鏄剧ず label
- * @property {String} labelWidth label 瀹藉害锛岄粯璁� 65px
- * @property {String} labelAlign = [left|center|right] label 灞呬腑鏂瑰紡 榛樿 left
- * @value left label 宸︿晶鏄剧ず
- * @value center label 灞呬腑
- * @value right label 鍙充晶瀵归綈
- * @property {String} errShowType = [undertext|toast|modal] 鏍¢獙閿欒淇℃伅鎻愮ず鏂瑰紡
- * @value undertext 閿欒淇℃伅鍦ㄥ簳閮ㄦ樉绀�
- * @value toast 閿欒淇℃伅toast鏄剧ず
- * @value modal 閿欒淇℃伅modal鏄剧ず
- * @event {Function} submit 鎻愪氦鏃惰Е鍙�
- */
-
- export default {
- name: 'uniForms',
- components: {},
- emits:['input','reset','validate','submit'],
- props: {
- // 鍗冲皢寮冪敤
- value: {
- type: Object,
- default () {
- return {};
- }
- },
- // 鏇挎崲 value 灞炴��
- modelValue: {
- type: Object,
- default () {
- return {};
- }
- },
- // 琛ㄥ崟鏍¢獙瑙勫垯
- rules: {
- type: Object,
- default () {
- return {};
- }
- },
- // 鏍¢獙瑙﹀彂鍣ㄦ柟寮忥紝榛樿 鍏抽棴
- validateTrigger: {
- type: String,
- default: ''
- },
- // label 浣嶇疆锛屽彲閫夊�� top/left
- labelPosition: {
- type: String,
- default: 'left'
- },
- // label 瀹藉害锛屽崟浣� px
- labelWidth: {
- type: [String, Number],
- default: ''
- },
- // label 灞呬腑鏂瑰紡锛屽彲閫夊�� left/center/right
- labelAlign: {
- type: String,
- default: 'left'
- },
- errShowType: {
- type: String,
- default: 'undertext'
- },
- border: {
- type: Boolean,
- default: false
- }
- },
- data() {
- return {
- formData: {}
- };
- },
- computed: {
- dataValue() {
- if (JSON.stringify(this.modelValue) === '{}') {
- return this.value
- } else {
- return this.modelValue
- }
- }
- },
- watch: {
- rules(newVal) {
- // 濡傛灉瑙勫垯鍙戠敓鍙樺寲锛岃鍒濆鍖栫粍浠�
- this.init(newVal);
- },
- labelPosition() {
- this.childrens.forEach(vm => {
- vm.init()
- })
- }
- },
- created() {
- // #ifdef VUE3
- let getbinddata = getApp().$vm.$.appContext.config.globalProperties.binddata
- if (!getbinddata) {
- getApp().$vm.$.appContext.config.globalProperties.binddata = function(name, value, formName) {
- if (formName) {
- this.$refs[formName].setValue(name, value);
- } else {
- let formVm;
- for (let i in this.$refs) {
- const vm = this.$refs[i];
- if (vm && vm.$options && vm.$options.name === 'uniForms') {
- formVm = vm;
- break;
- }
- }
- if (!formVm) return console.error('褰撳墠 uni-froms 缁勪欢缂哄皯 ref 灞炴��');
- formVm.setValue(name, value);
- }
- }
- }
- // #endif
-
- // 瀛樻斁watch 鐩戝惉鏁扮粍
- this.unwatchs = [];
- // 瀛樻斁瀛愮粍浠舵暟缁�
- this.childrens = [];
- // 瀛樻斁 easyInput 缁勪欢
- this.inputChildrens = [];
- // 瀛樻斁 dataCheckbox 缁勪欢
- this.checkboxChildrens = [];
- // 瀛樻斁瑙勫垯
- this.formRules = [];
- this.init(this.rules);
- },
- // mounted() {
- // this.init(this.rules)
- // },
- methods: {
- init(formRules) {
- // 鍒ゆ柇鏄惁鏈夎鍒�
- if (Object.keys(formRules).length === 0) {
- this.formData = this.dataValue
- return
- };
- this.formRules = formRules;
- this.validator = new Validator(formRules);
- this.registerWatch();
- },
- // 鐩戝惉 watch
- registerWatch() {
- // 鍙栨秷鐩戝惉,閬垮厤澶氭璋冪敤 init 閲嶅鎵ц $watch
- this.unwatchs.forEach(v => v());
- this.childrens.forEach((v) => {
- v.init()
- })
- // watch 姣忎釜灞炴�� 锛岄渶瑕佺煡閬撳叿浣撻偅涓睘鎬у彂鍙樺寲
- Object.keys(this.dataValue).forEach(key => {
- let watch = this.$watch(
- 'dataValue.' + key,
- value => {
- if (!value) return
- // 濡傛灉鏄璞� 锛屽垯骞抽摵鍐呭
- if (value.toString() === '[object Object]') {
- for (let i in value) {
- let name = `${key}[${i}]`;
- this.formData[name] = this._getValue(name, value[i]);
- }
- } else {
- this.formData[key] = this._getValue(key, value);
- }
- },
- {
- deep: true,
- immediate: true
- }
- );
- this.unwatchs.push(watch);
- });
- },
- /**
- * 鍏紑缁欑敤鎴蜂娇鐢�
- * 璁剧疆鏍¢獙瑙勫垯
- * @param {Object} formRules
- */
- setRules(formRules) {
- this.init(formRules);
- },
- /**
- * 鍏紑缁欑敤鎴蜂娇鐢�
- * 璁剧疆鑷畾涔夎〃鍗曠粍浠� value 鍊�
- * @param {String} name 瀛楁鍚嶇О
- * @param {String} value 瀛楁鍊�
- */
- setValue(name, value, callback) {
- let example = this.childrens.find(child => child.name === name);
- if (!example) return null;
- value = this._getValue(example.name, value);
- this.formData[name] = value;
- example.val = value;
- return example.triggerCheck(value, callback);
- },
-
- /**
- * 琛ㄥ崟閲嶇疆
- * @param {Object} event
- */
- resetForm(event) {
- this.childrens.forEach(item => {
- item.errMsg = '';
- const inputComp = this.inputChildrens.find(child => child.rename === item.name);
- if (inputComp) {
- inputComp.errMsg = '';
- // fix by mehaotian 涓嶈Е鍙戝叾浠栫粍浠剁殑 setValue
- inputComp.is_reset = true
- inputComp.$emit('input', inputComp.multiple ? [] : '');
- inputComp.$emit('update:modelValue', inputComp.multiple ? [] : '');
- }
- });
-
- this.childrens.forEach(item => {
- if (item.name) {
- this.formData[item.name] = this._getValue(item.name, '');
- }
- });
-
- this.$emit('reset', event);
- },
-
- /**
- * 瑙﹀彂琛ㄥ崟鏍¢獙锛岄�氳繃 @validate 鑾峰彇
- * @param {Object} validate
- */
- validateCheck(validate) {
- if (validate === null) validate = null;
- this.$emit('validate', validate);
- },
- /**
- * 鏍¢獙鎵�鏈夋垨鑰呴儴鍒嗚〃鍗�
- */
- async validateAll(invalidFields, type, keepitem, callback) {
- let childrens = []
- for (let i in invalidFields) {
- const item = this.childrens.find(v => v.name === i)
- if (item) {
- childrens.push(item)
- }
- }
-
- if (!callback && typeof keepitem === 'function') {
- callback = keepitem;
- }
-
- let promise;
- if (!callback && typeof callback !== 'function' && Promise) {
- promise = new Promise((resolve, reject) => {
- callback = function(valid, invalidFields) {
- !valid ? resolve(invalidFields) : reject(valid);
- };
- });
- }
-
- let results = [];
- let newFormData = {};
- if (this.validator) {
- for (let key in childrens) {
- const child = childrens[key];
- let name = child.isArray ? child.arrayField : child.name;
- if (child.isArray) {
- if (child.name.indexOf('[') !== -1 && child.name.indexOf(']') !== -1) {
- const fieldData = child.name.split('[');
- const fieldName = fieldData[0];
- const fieldValue = fieldData[1].replace(']', '');
- if (!newFormData[fieldName]) {
- newFormData[fieldName] = {};
- }
- newFormData[fieldName][fieldValue] = this._getValue(name, invalidFields[name]);
- }
- } else {
- newFormData[name] = this._getValue(name, invalidFields[name]);
- }
- const result = await child.triggerCheck(invalidFields[name], true);
- if (result) {
- results.push(result);
- if (this.errShowType === 'toast' || this.errShowType === 'modal') break;
- }
- }
- } else {
- newFormData = invalidFields
- }
- if (Array.isArray(results)) {
- if (results.length === 0) results = null;
- }
-
- if (Array.isArray(keepitem)) {
- keepitem.forEach(v => {
- newFormData[v] = this.dataValue[v];
- });
- }
-
- if (type === 'submit') {
- this.$emit('submit', {
- detail: {
- value: newFormData,
- errors: results
- }
- });
- } else {
- this.$emit('validate', results);
- }
-
- callback && typeof callback === 'function' && callback(results, newFormData);
-
- if (promise && callback) {
- return promise;
- } else {
- return null;
- }
- },
- submitForm() {},
- /**
- * 澶栭儴璋冪敤鏂规硶
- * 鎵嬪姩鎻愪氦鏍¢獙琛ㄥ崟
- * 瀵规暣涓〃鍗曡繘琛屾牎楠岀殑鏂规硶锛屽弬鏁颁负涓�涓洖璋冨嚱鏁般��
- */
- submit(keepitem, callback, type) {
- for (let i in this.dataValue) {
- const itemData = this.childrens.find(v => v.name === i);
- if (itemData) {
- if (this.formData[i] === undefined) {
- this.formData[i] = this._getValue(i, this.dataValue[i]);
- }
- }
- }
- if (!type) {
- console.warn('submit 鏂规硶鍗冲皢搴熷純锛岃浣跨敤validate鏂规硶浠f浛锛�');
- }
- return this.validateAll(this.formData, 'submit', keepitem, callback);
- },
-
- /**
- * 澶栭儴璋冪敤鏂规硶
- * 鏍¢獙琛ㄥ崟
- * 瀵规暣涓〃鍗曡繘琛屾牎楠岀殑鏂规硶锛屽弬鏁颁负涓�涓洖璋冨嚱鏁般��
- */
- validate(keepitem, callback) {
- return this.submit(keepitem, callback, true);
- },
-
- /**
- * 閮ㄥ垎琛ㄥ崟鏍¢獙
- * @param {Object} props
- * @param {Object} cb
- */
- validateField(props, callback) {
- props = [].concat(props);
- let invalidFields = {};
- this.childrens.forEach(item => {
- if (props.indexOf(item.name) !== -1) {
- invalidFields = Object.assign({}, invalidFields, {
- [item.name]: this.formData[item.name]
- });
- }
- });
- return this.validateAll(invalidFields, 'submit', [], callback);
- },
-
- /**
- * 瀵规暣涓〃鍗曡繘琛岄噸缃紝灏嗘墍鏈夊瓧娈靛�奸噸缃负鍒濆鍊煎苟绉婚櫎鏍¢獙缁撴灉
- */
- resetFields() {
- this.resetForm();
- },
-
- /**
- * 绉婚櫎琛ㄥ崟椤圭殑鏍¢獙缁撴灉銆備紶鍏ュ緟绉婚櫎鐨勮〃鍗曢」鐨� prop 灞炴�ф垨鑰� prop 缁勬垚鐨勬暟缁勶紝濡備笉浼犲垯绉婚櫎鏁翠釜琛ㄥ崟鐨勬牎楠岀粨鏋�
- */
- clearValidate(props) {
- props = [].concat(props);
- this.childrens.forEach(item => {
- const inputComp = this.inputChildrens.find(child => child.rename === item.name);
- if (props.length === 0) {
- item.errMsg = '';
- if (inputComp) {
- inputComp.errMsg = '';
- }
- } else {
- if (props.indexOf(item.name) !== -1) {
- item.errMsg = '';
- if (inputComp) {
- inputComp.errMsg = '';
- }
- }
- }
- });
- },
- /**
- * 鎶� value 杞崲鎴愭寚瀹氱殑绫诲瀷
- * @param {Object} key
- * @param {Object} value
- */
- _getValue(key, value) {
- const rules = (this.formRules[key] && this.formRules[key].rules) || [];
- const isRuleNum = rules.find(val => val.format && this.type_filter(val.format));
- const isRuleBool = rules.find(val => (val.format && val.format === 'boolean') || val.format === 'bool');
- // 杈撳叆鍊间负 number
- if (isRuleNum) {
- value = isNaN(value) ? value : value === '' || value === null ? null : Number(value);
- }
- // 绠�鍗曞垽鏂湡鍋囧��
- if (isRuleBool) {
- value = !value ? false : true;
- }
- return value;
- },
- /**
- * 杩囨护鏁板瓧绫诲瀷
- * @param {Object} format
- */
- type_filter(format) {
- return format === 'int' || format === 'double' || format === 'number' || format === 'timestamp';
- }
- }
- };
-</script>
-
-<style lang="scss" >
- .uni-forms {
- // overflow: hidden;
- // padding: 10px 15px;
- }
-
- .uni-forms--top {
- // padding: 10px 15px;
- // padding-top: 22px;
- }
-</style>
diff --git a/uni_modules/uni-forms/components/uni-forms/validate.js b/uni_modules/uni-forms/components/uni-forms/validate.js
deleted file mode 100644
index 1834c6c..0000000
--- a/uni_modules/uni-forms/components/uni-forms/validate.js
+++ /dev/null
@@ -1,486 +0,0 @@
-var pattern = {
- email: /^\S+?@\S+?\.\S+?$/,
- idcard: /^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/,
- url: new RegExp(
- "^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$",
- 'i')
-};
-
-const FORMAT_MAPPING = {
- "int": 'integer',
- "bool": 'boolean',
- "double": 'number',
- "long": 'number',
- "password": 'string'
- // "fileurls": 'array'
-}
-
-function formatMessage(args, resources = '') {
- var defaultMessage = ['label']
- defaultMessage.forEach((item) => {
- if (args[item] === undefined) {
- args[item] = ''
- }
- })
-
- let str = resources
- for (let key in args) {
- let reg = new RegExp('{' + key + '}')
- str = str.replace(reg, args[key])
- }
- return str
-}
-
-function isEmptyValue(value, type) {
- if (value === undefined || value === null) {
- return true;
- }
-
- if (typeof value === 'string' && !value) {
- return true;
- }
-
- if (Array.isArray(value) && !value.length) {
- return true;
- }
-
- if (type === 'object' && !Object.keys(value).length) {
- return true;
- }
-
- return false;
-}
-
-const types = {
- integer(value) {
- return types.number(value) && parseInt(value, 10) === value;
- },
- string(value) {
- return typeof value === 'string';
- },
- number(value) {
- if (isNaN(value)) {
- return false;
- }
- return typeof value === 'number';
- },
- "boolean": function(value) {
- return typeof value === 'boolean';
- },
- "float": function(value) {
- return types.number(value) && !types.integer(value);
- },
- array(value) {
- return Array.isArray(value);
- },
- object(value) {
- return typeof value === 'object' && !types.array(value);
- },
- date(value) {
- return value instanceof Date;
- },
- timestamp(value) {
- if (!this.integer(value) || Math.abs(value).toString().length > 16) {
- return false
- }
- return true;
- },
- file(value) {
- return typeof value.url === 'string';
- },
- email(value) {
- return typeof value === 'string' && !!value.match(pattern.email) && value.length < 255;
- },
- url(value) {
- return typeof value === 'string' && !!value.match(pattern.url);
- },
- pattern(reg, value) {
- try {
- return new RegExp(reg).test(value);
- } catch (e) {
- return false;
- }
- },
- method(value) {
- return typeof value === 'function';
- },
- idcard(value) {
- return typeof value === 'string' && !!value.match(pattern.idcard);
- },
- 'url-https'(value) {
- return this.url(value) && value.startsWith('https://');
- },
- 'url-scheme'(value) {
- return value.startsWith('://');
- },
- 'url-web'(value) {
- return false;
- }
-}
-
-class RuleValidator {
-
- constructor(message) {
- this._message = message
- }
-
- async validateRule(fieldKey, fieldValue, value, data, allData) {
- var result = null
-
- let rules = fieldValue.rules
-
- let hasRequired = rules.findIndex((item) => {
- return item.required
- })
- if (hasRequired < 0) {
- if (value === null || value === undefined) {
- return result
- }
- if (typeof value === 'string' && !value.length) {
- return result
- }
- }
-
- var message = this._message
-
- if (rules === undefined) {
- return message['default']
- }
-
- for (var i = 0; i < rules.length; i++) {
- let rule = rules[i]
- let vt = this._getValidateType(rule)
-
- Object.assign(rule, {
- label: fieldValue.label || `["${fieldKey}"]`
- })
-
- if (RuleValidatorHelper[vt]) {
- result = RuleValidatorHelper[vt](rule, value, message)
- if (result != null) {
- break
- }
- }
-
- if (rule.validateExpr) {
- let now = Date.now()
- let resultExpr = rule.validateExpr(value, allData, now)
- if (resultExpr === false) {
- result = this._getMessage(rule, rule.errorMessage || this._message['default'])
- break
- }
- }
-
- if (rule.validateFunction) {
- result = await this.validateFunction(rule, value, data, allData, vt)
- if (result !== null) {
- break
- }
- }
- }
-
- if (result !== null) {
- result = message.TAG + result
- }
-
- return result
- }
-
- async validateFunction(rule, value, data, allData, vt) {
- let result = null
- try {
- let callbackMessage = null
- const res = await rule.validateFunction(rule, value, allData || data, (message) => {
- callbackMessage = message
- })
- if (callbackMessage || (typeof res === 'string' && res) || res === false) {
- result = this._getMessage(rule, callbackMessage || res, vt)
- }
- } catch (e) {
- result = this._getMessage(rule, e.message, vt)
- }
- return result
- }
-
- _getMessage(rule, message, vt) {
- return formatMessage(rule, message || rule.errorMessage || this._message[vt] || message['default'])
- }
-
- _getValidateType(rule) {
- var result = ''
- if (rule.required) {
- result = 'required'
- } else if (rule.format) {
- result = 'format'
- } else if (rule.arrayType) {
- result = 'arrayTypeFormat'
- } else if (rule.range) {
- result = 'range'
- } else if (rule.maximum !== undefined || rule.minimum !== undefined) {
- result = 'rangeNumber'
- } else if (rule.maxLength !== undefined || rule.minLength !== undefined) {
- result = 'rangeLength'
- } else if (rule.pattern) {
- result = 'pattern'
- } else if (rule.validateFunction) {
- result = 'validateFunction'
- }
- return result
- }
-}
-
-const RuleValidatorHelper = {
- required(rule, value, message) {
- if (rule.required && isEmptyValue(value, rule.format || typeof value)) {
- return formatMessage(rule, rule.errorMessage || message.required);
- }
-
- return null
- },
-
- range(rule, value, message) {
- const {
- range,
- errorMessage
- } = rule;
-
- let list = new Array(range.length);
- for (let i = 0; i < range.length; i++) {
- const item = range[i];
- if (types.object(item) && item.value !== undefined) {
- list[i] = item.value;
- } else {
- list[i] = item;
- }
- }
-
- let result = false
- if (Array.isArray(value)) {
- result = (new Set(value.concat(list)).size === list.length);
- } else {
- if (list.indexOf(value) > -1) {
- result = true;
- }
- }
-
- if (!result) {
- return formatMessage(rule, errorMessage || message['enum']);
- }
-
- return null
- },
-
- rangeNumber(rule, value, message) {
- if (!types.number(value)) {
- return formatMessage(rule, rule.errorMessage || message.pattern.mismatch);
- }
-
- let {
- minimum,
- maximum,
- exclusiveMinimum,
- exclusiveMaximum
- } = rule;
- let min = exclusiveMinimum ? value <= minimum : value < minimum;
- let max = exclusiveMaximum ? value >= maximum : value > maximum;
-
- if (minimum !== undefined && min) {
- return formatMessage(rule, rule.errorMessage || message['number'][exclusiveMinimum ?
- 'exclusiveMinimum' : 'minimum'
- ])
- } else if (maximum !== undefined && max) {
- return formatMessage(rule, rule.errorMessage || message['number'][exclusiveMaximum ?
- 'exclusiveMaximum' : 'maximum'
- ])
- } else if (minimum !== undefined && maximum !== undefined && (min || max)) {
- return formatMessage(rule, rule.errorMessage || message['number'].range)
- }
-
- return null
- },
-
- rangeLength(rule, value, message) {
- if (!types.string(value) && !types.array(value)) {
- return formatMessage(rule, rule.errorMessage || message.pattern.mismatch);
- }
-
- let min = rule.minLength;
- let max = rule.maxLength;
- let val = value.length;
-
- if (min !== undefined && val < min) {
- return formatMessage(rule, rule.errorMessage || message['length'].minLength)
- } else if (max !== undefined && val > max) {
- return formatMessage(rule, rule.errorMessage || message['length'].maxLength)
- } else if (min !== undefined && max !== undefined && (val < min || val > max)) {
- return formatMessage(rule, rule.errorMessage || message['length'].range)
- }
-
- return null
- },
-
- pattern(rule, value, message) {
- if (!types['pattern'](rule.pattern, value)) {
- return formatMessage(rule, rule.errorMessage || message.pattern.mismatch);
- }
-
- return null
- },
-
- format(rule, value, message) {
- var customTypes = Object.keys(types);
- var format = FORMAT_MAPPING[rule.format] ? FORMAT_MAPPING[rule.format] : (rule.format || rule.arrayType);
-
- if (customTypes.indexOf(format) > -1) {
- if (!types[format](value)) {
- return formatMessage(rule, rule.errorMessage || message.typeError);
- }
- }
-
- return null
- },
-
- arrayTypeFormat(rule, value, message) {
- if (!Array.isArray(value)) {
- return formatMessage(rule, rule.errorMessage || message.typeError);
- }
-
- for (let i = 0; i < value.length; i++) {
- const element = value[i];
- let formatResult = this.format(rule, element, message)
- if (formatResult !== null) {
- return formatResult
- }
- }
-
- return null
- }
-}
-
-class SchemaValidator extends RuleValidator {
-
- constructor(schema, options) {
- super(SchemaValidator.message);
-
- this._schema = schema
- this._options = options || null
- }
-
- updateSchema(schema) {
- this._schema = schema
- }
-
- async validate(data, allData) {
- let result = this._checkFieldInSchema(data)
- if (!result) {
- result = await this.invokeValidate(data, false, allData)
- }
- return result.length ? result[0] : null
- }
-
- async validateAll(data, allData) {
- let result = this._checkFieldInSchema(data)
- if (!result) {
- result = await this.invokeValidate(data, true, allData)
- }
- return result
- }
-
- async validateUpdate(data, allData) {
- let result = this._checkFieldInSchema(data)
- if (!result) {
- result = await this.invokeValidateUpdate(data, false, allData)
- }
- return result.length ? result[0] : null
- }
-
- async invokeValidate(data, all, allData) {
- let result = []
- let schema = this._schema
- for (let key in schema) {
- let value = schema[key]
- let errorMessage = await this.validateRule(key, value, data[key], data, allData)
- if (errorMessage != null) {
- result.push({
- key,
- errorMessage
- })
- if (!all) break
- }
- }
- return result
- }
-
- async invokeValidateUpdate(data, all, allData) {
- let result = []
- for (let key in data) {
- let errorMessage = await this.validateRule(key, this._schema[key], data[key], data, allData)
- if (errorMessage != null) {
- result.push({
- key,
- errorMessage
- })
- if (!all) break
- }
- }
- return result
- }
-
- _checkFieldInSchema(data) {
- var keys = Object.keys(data)
- var keys2 = Object.keys(this._schema)
- if (new Set(keys.concat(keys2)).size === keys2.length) {
- return ''
- }
-
- var noExistFields = keys.filter((key) => {
- return keys2.indexOf(key) < 0;
- })
- var errorMessage = formatMessage({
- field: JSON.stringify(noExistFields)
- }, SchemaValidator.message.TAG + SchemaValidator.message['defaultInvalid'])
- return [{
- key: 'invalid',
- errorMessage
- }]
- }
-}
-
-function Message() {
- return {
- TAG: "",
- default: '楠岃瘉閿欒',
- defaultInvalid: '鎻愪氦鐨勫瓧娈祘field}鍦ㄦ暟鎹簱涓苟涓嶅瓨鍦�',
- validateFunction: '楠岃瘉鏃犳晥',
- required: '{label}蹇呭~',
- 'enum': '{label}瓒呭嚭鑼冨洿',
- timestamp: '{label}鏍煎紡鏃犳晥',
- whitespace: '{label}涓嶈兘涓虹┖',
- typeError: '{label}绫诲瀷鏃犳晥',
- date: {
- format: '{label}鏃ユ湡{value}鏍煎紡鏃犳晥',
- parse: '{label}鏃ユ湡鏃犳硶瑙f瀽,{value}鏃犳晥',
- invalid: '{label}鏃ユ湡{value}鏃犳晥'
- },
- length: {
- minLength: '{label}闀垮害涓嶈兘灏戜簬{minLength}',
- maxLength: '{label}闀垮害涓嶈兘瓒呰繃{maxLength}',
- range: '{label}蹇呴』浠嬩簬{minLength}鍜寋maxLength}涔嬮棿'
- },
- number: {
- minimum: '{label}涓嶈兘灏忎簬{minimum}',
- maximum: '{label}涓嶈兘澶т簬{maximum}',
- exclusiveMinimum: '{label}涓嶈兘灏忎簬绛変簬{minimum}',
- exclusiveMaximum: '{label}涓嶈兘澶т簬绛変簬{maximum}',
- range: '{label}蹇呴』浠嬩簬{minimum}and{maximum}涔嬮棿'
- },
- pattern: {
- mismatch: '{label}鏍煎紡涓嶅尮閰�'
- }
- };
-}
-
-
-SchemaValidator.message = new Message();
-
-export default SchemaValidator
diff --git a/uni_modules/uni-forms/package.json b/uni_modules/uni-forms/package.json
deleted file mode 100644
index dfa7af4..0000000
--- a/uni_modules/uni-forms/package.json
+++ /dev/null
@@ -1,90 +0,0 @@
-{
- "id": "uni-forms",
- "displayName": "uni-forms 琛ㄥ崟",
- "version": "1.3.2",
- "description": "鐢辫緭鍏ユ銆侀�夋嫨鍣ㄣ�佸崟閫夋銆佸閫夋绛夋帶浠剁粍鎴愶紝鐢ㄤ互鏀堕泦銆佹牎楠屻�佹彁浜ゆ暟鎹�",
- "keywords": [
- "uni-ui",
- "琛ㄥ崟",
- "鏍¢獙",
- "琛ㄥ崟鏍¢獙",
- "琛ㄥ崟楠岃瘉"
-],
- "repository": "https://github.com/dcloudio/uni-ui",
- "engines": {
- "HBuilderX": ""
- },
- "directories": {
- "example": "../../temps/example_temps"
- },
- "dcloudext": {
- "category": [
- "鍓嶇缁勪欢",
- "閫氱敤缁勪欢"
- ],
- "sale": {
- "regular": {
- "price": "0.00"
- },
- "sourcecode": {
- "price": "0.00"
- }
- },
- "contact": {
- "qq": ""
- },
- "declaration": {
- "ads": "鏃�",
- "data": "鏃�",
- "permissions": "鏃�"
- },
- "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui"
- },
- "uni_modules": {
- "dependencies": [
- "uni-scss",
- "uni-icons"
- ],
- "encrypt": [],
- "platforms": {
- "cloud": {
- "tcb": "y",
- "aliyun": "y"
- },
- "client": {
- "App": {
- "app-vue": "y",
- "app-nvue": "y"
- },
- "H5-mobile": {
- "Safari": "y",
- "Android Browser": "y",
- "寰俊娴忚鍣�(Android)": "y",
- "QQ娴忚鍣�(Android)": "y"
- },
- "H5-pc": {
- "Chrome": "y",
- "IE": "y",
- "Edge": "y",
- "Firefox": "y",
- "Safari": "y"
- },
- "灏忕▼搴�": {
- "寰俊": "y",
- "闃块噷": "y",
- "鐧惧害": "y",
- "瀛楄妭璺冲姩": "y",
- "QQ": "y"
- },
- "蹇簲鐢�": {
- "鍗庝负": "u",
- "鑱旂洘": "u"
- },
- "Vue": {
- "vue2": "y",
- "vue3": "y"
- }
- }
- }
- }
-}
diff --git a/uni_modules/uni-forms/readme.md b/uni_modules/uni-forms/readme.md
deleted file mode 100644
index 63d5a04..0000000
--- a/uni_modules/uni-forms/readme.md
+++ /dev/null
@@ -1,23 +0,0 @@
-
-
-## Forms 琛ㄥ崟
-
-> **缁勪欢鍚嶏細uni-forms**
-> 浠g爜鍧楋細 `uForms`銆乣uni-forms-item`
-> 鍏宠仈缁勪欢锛歚uni-forms-item`銆乣uni-easyinput`銆乣uni-data-checkbox`銆乣uni-group`銆�
-
-
-uni-app鐨勫唴缃粍浠跺凡缁忔湁浜� `<form>`缁勪欢锛岀敤浜庢彁浜よ〃鍗曞唴瀹广��
-
-鐒惰�屽嚑涔庢瘡涓〃鍗曢兘闇�瑕佸仛琛ㄥ崟楠岃瘉锛屼负浜嗘柟渚垮仛琛ㄥ崟楠岃瘉锛屽噺灏戦噸澶嶅紑鍙戯紝`uni ui` 鍙堝熀浜� `<form>`缁勪欢灏佽浜� `<uni-forms>`缁勪欢锛屽唴缃簡琛ㄥ崟楠岃瘉鍔熻兘銆�
-
-`<uni-forms>` 鎻愪緵浜� `rules`灞炴�ф潵鎻忚堪鏍¢獙瑙勫垯銆乣<uni-forms-item>`瀛愮粍浠舵潵鍖呰9鍏蜂綋鐨勮〃鍗曢」锛屼互鍙婄粰鍘熺敓鎴栦笁鏂圭粍浠舵彁渚涗簡 `binddata()` 鏉ヨ缃〃鍗曞�笺��
-
-姣忎釜瑕佹牎楠岀殑琛ㄥ崟椤癸紝涓嶇input杩樻槸checkbox锛岄兘蹇呴』鏀惧湪`<uni-forms-item>`缁勪欢涓紝涓斾竴涓猔<uni-forms-item>`缁勪欢鍙兘鏀剧疆涓�涓〃鍗曢」銆�
-
-`<uni-forms-item>`缁勪欢鍐呴儴棰勭暀浜嗘樉绀篹rror message鐨勫尯鍩燂紝榛樿鏄湪琛ㄥ崟椤圭殑搴曢儴銆�
-
-鍙﹀锛宍<uni-forms>`缁勪欢涓嬮潰鐨勫悇涓〃鍗曢」锛屽彲浠ラ�氳繃`<uni-group>`鍖呰9涓轰笉鍚岀殑鍒嗙粍銆傚悓涓�`<uni-group>`涓嬬殑涓嶅悓琛ㄥ崟椤圭洰灏嗚仛鎷㈠湪涓�璧凤紝鍚屽叾浠杇roup淇濇寔鍨傜洿闂磋窛銆俙<uni-group>`浠呭奖鍝嶈瑙夋晥鏋溿��
-
-### [鏌ョ湅鏂囨。](https://uniapp.dcloud.io/component/uniui/uni-forms)
-#### 濡備娇鐢ㄨ繃绋嬩腑鏈変换浣曢棶棰橈紝鎴栬�呮偍瀵箄ni-ui鏈変竴浜涘ソ鐨勫缓璁紝娆㈣繋鍔犲叆 uni-ui 浜ゆ祦缇わ細871950839
\ No newline at end of file
diff --git a/uni_modules/uni-goods-nav/changelog.md b/uni_modules/uni-goods-nav/changelog.md
deleted file mode 100644
index d970649..0000000
--- a/uni_modules/uni-goods-nav/changelog.md
+++ /dev/null
@@ -1,16 +0,0 @@
-## 1.2.0锛�2021-11-19锛�
-- 浼樺寲 缁勪欢UI锛屽苟鎻愪緵璁捐璧勬簮锛岃瑙�:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource)
-- 鏂囨。杩佺Щ锛岃瑙�:[https://uniapp.dcloud.io/component/uniui/uni-goods-nav](https://uniapp.dcloud.io/component/uniui/uni-goods-nav)
-## 1.1.1锛�2021-08-24锛�
-- 鏂板 鏀寔鍥介檯鍖�
-## 1.1.0锛�2021-07-13锛�
-- 缁勪欢鍏煎 vue3锛屽浣曞垱寤簐ue3椤圭洰锛岃瑙� [uni-app 椤圭洰鏀寔 vue3 浠嬬粛](https://ask.dcloud.net.cn/article/37834)
-## 1.0.7锛�2021-05-12锛�
-- 鏂板 缁勪欢绀轰緥鍦板潃
-## 1.0.6锛�2021-04-21锛�
-- 浼樺寲 娣诲姞渚濊禆 uni-icons, 瀵煎叆鍚庤嚜鍔ㄤ笅杞戒緷璧�
-## 1.0.5锛�2021-02-05锛�
-- 浼樺寲 缁勪欢寮曠敤鍏崇郴锛岄�氳繃uni_modules寮曠敤缁勪欢
-
-## 1.0.4锛�2021-02-05锛�
-- 璋冩暣涓簎ni_modules鐩綍瑙勮寖
diff --git a/uni_modules/uni-goods-nav/components/uni-goods-nav/i18n/en.json b/uni_modules/uni-goods-nav/components/uni-goods-nav/i18n/en.json
deleted file mode 100644
index dcdba41..0000000
--- a/uni_modules/uni-goods-nav/components/uni-goods-nav/i18n/en.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "uni-goods-nav.options.shop": "shop",
- "uni-goods-nav.options.cart": "cart",
- "uni-goods-nav.buttonGroup.addToCart": "add to cart",
- "uni-goods-nav.buttonGroup.buyNow": "buy now"
-}
diff --git a/uni_modules/uni-goods-nav/components/uni-goods-nav/i18n/index.js b/uni_modules/uni-goods-nav/components/uni-goods-nav/i18n/index.js
deleted file mode 100644
index de7509c..0000000
--- a/uni_modules/uni-goods-nav/components/uni-goods-nav/i18n/index.js
+++ /dev/null
@@ -1,8 +0,0 @@
-import en from './en.json'
-import zhHans from './zh-Hans.json'
-import zhHant from './zh-Hant.json'
-export default {
- en,
- 'zh-Hans': zhHans,
- 'zh-Hant': zhHant
-}
diff --git a/uni_modules/uni-goods-nav/components/uni-goods-nav/i18n/zh-Hans.json b/uni_modules/uni-goods-nav/components/uni-goods-nav/i18n/zh-Hans.json
deleted file mode 100644
index 48ee344..0000000
--- a/uni_modules/uni-goods-nav/components/uni-goods-nav/i18n/zh-Hans.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "uni-goods-nav.options.shop": "搴楅摵",
- "uni-goods-nav.options.cart": "璐墿杞�",
- "uni-goods-nav.buttonGroup.addToCart": "鍔犲叆璐墿杞�",
- "uni-goods-nav.buttonGroup.buyNow": "绔嬪嵆璐拱"
-}
diff --git a/uni_modules/uni-goods-nav/components/uni-goods-nav/i18n/zh-Hant.json b/uni_modules/uni-goods-nav/components/uni-goods-nav/i18n/zh-Hant.json
deleted file mode 100644
index d0a0255..0000000
--- a/uni_modules/uni-goods-nav/components/uni-goods-nav/i18n/zh-Hant.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "uni-goods-nav.options.shop": "搴楅嫪",
- "uni-goods-nav.options.cart": "璩肩墿杌�",
- "uni-goods-nav.buttonGroup.addToCart": "鍔犲叆璩肩墿杌�",
- "uni-goods-nav.buttonGroup.buyNow": "绔嬪嵆璩艰卜"
-}
diff --git a/uni_modules/uni-goods-nav/components/uni-goods-nav/uni-goods-nav.vue b/uni_modules/uni-goods-nav/components/uni-goods-nav/uni-goods-nav.vue
deleted file mode 100644
index 97ed633..0000000
--- a/uni_modules/uni-goods-nav/components/uni-goods-nav/uni-goods-nav.vue
+++ /dev/null
@@ -1,224 +0,0 @@
-<template>
- <view class="uni-goods-nav">
- <!-- 搴曢儴鍗犱綅 -->
- <view class="uni-tab__seat" />
- <view class="uni-tab__cart-box flex">
- <view class="flex uni-tab__cart-sub-left">
- <view v-for="(item,index) in options" :key="index" class="flex uni-tab__cart-button-left uni-tab__shop-cart" @click="onClick(index,item)">
- <view class="uni-tab__icon">
- <uni-icons :type="item.icon" size="20" color="#646566"></uni-icons>
- <!-- <image class="image" :src="item.icon" mode="widthFix" /> -->
- </view>
- <text class="uni-tab__text">{{ item.text }}</text>
- <view class="flex uni-tab__dot-box">
- <text v-if="item.info" :class="{ 'uni-tab__dots': item.info > 9 }" class="uni-tab__dot " :style="{'backgroundColor':item.infoBackgroundColor?item.infoBackgroundColor:'#ff0000',
- color:item.infoColor?item.infoColor:'#fff'
- }">{{ item.info }}</text>
- </view>
- </view>
- </view>
- <view :class="{'uni-tab__right':fill}" class="flex uni-tab__cart-sub-right ">
- <view v-for="(item,index) in buttonGroup" :key="index" :style="{background:item.backgroundColor,color:item.color}"
- class="flex uni-tab__cart-button-right" @click="buttonClick(index,item)"><text :style="{color:item.color}" class="uni-tab__cart-button-right-text">{{ item.text }}</text></view>
- </view>
- </view>
- </view>
-</template>
-
-<script>
- import {
- initVueI18n
- } from '@dcloudio/uni-i18n'
- import messages from './i18n/index.js'
- const { t } = initVueI18n(messages)
- /**
- * GoodsNav 鍟嗗搧瀵艰埅
- * @description 鍟嗗搧鍔犲叆璐墿杞︺�佺珛鍗宠喘涔扮瓑
- * @tutorial https://ext.dcloud.net.cn/plugin?id=865
- * @property {Array} options 缁勪欢鍙傛暟
- * @property {Array} buttonGroup 缁勪欢鎸夐挳缁勫弬鏁�
- * @property {Boolean} fill = [true | false] 缁勪欢鎸夐挳缁勫弬鏁�
- * @event {Function} click 宸︿晶鐐瑰嚮浜嬩欢
- * @event {Function} buttonClick 鍙充晶鎸夐挳缁勭偣鍑讳簨浠�
- * @example <uni-goods-nav :fill="true" options="" buttonGroup="buttonGroup" @click="" @buttonClick="" />
- */
- export default {
- name: 'UniGoodsNav',
- emits:['click','buttonClick'],
- props: {
- options: {
- type: Array,
- default () {
- return [{
- icon: 'shop',
- text: t("uni-goods-nav.options.shop"),
- }, {
- icon: 'cart',
- text: t("uni-goods-nav.options.cart")
- }]
- }
- },
- buttonGroup: {
- type: Array,
- default () {
- return [{
- text: t("uni-goods-nav.buttonGroup.addToCart"),
- backgroundColor: 'linear-gradient(90deg, #FFCD1E, #FF8A18)',
- color: '#fff'
- },
- {
- text: t("uni-goods-nav.buttonGroup.buyNow"),
- backgroundColor: 'linear-gradient(90deg, #FE6035, #EF1224)',
- color: '#fff'
- }
- ]
- }
- },
- fill: {
- type: Boolean,
- default: false
- }
- },
- methods: {
- onClick(index, item) {
- this.$emit('click', {
- index,
- content: item,
- })
- },
- buttonClick(index, item) {
- if (uni.report) {
- uni.report(item.text, item.text)
- }
- this.$emit('buttonClick', {
- index,
- content: item
- })
- }
- }
- }
-</script>
-
-<style lang="scss" scoped>
- .flex {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex-direction: row;
- }
-
- .uni-goods-nav {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex: 1;
- flex-direction: row;
- }
-
- .uni-tab__cart-box {
- flex: 1;
- height: 50px;
- background-color: #fff;
- z-index: 900;
- }
-
- .uni-tab__cart-sub-left {
- padding: 0 5px;
- }
-
- .uni-tab__cart-sub-right {
- flex: 1;
- }
-
- .uni-tab__right {
- margin: 5px 0;
- margin-right: 10px;
- border-radius: 100px;
- overflow: hidden;
- }
-
- .uni-tab__cart-button-left {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- // flex: 1;
- position: relative;
- justify-content: center;
- align-items: center;
- flex-direction: column;
- margin: 0 10px;
- /* #ifdef H5 */
- cursor: pointer;
- /* #endif */
- }
-
- .uni-tab__icon {
- width: 18px;
- height: 18px;
- }
-
- .image {
- width: 18px;
- height: 18px;
- }
-
- .uni-tab__text {
- margin-top: 3px;
- font-size: 12px;
- color: #646566;
- }
-
- .uni-tab__cart-button-right {
- /* #ifndef APP-NVUE */
- display: flex;
- flex-direction: column;
- /* #endif */
- flex: 1;
- justify-content: center;
- align-items: center;
- /* #ifdef H5 */
- cursor: pointer;
- /* #endif */
- }
-
- .uni-tab__cart-button-right-text {
- font-size: 14px;
- color: #fff;
- }
-
- .uni-tab__cart-button-right:active {
- opacity: 0.7;
- }
-
- .uni-tab__dot-box {
- /* #ifndef APP-NVUE */
- display: flex;
- flex-direction: column;
- /* #endif */
- position: absolute;
- right: -2px;
- top: 2px;
- justify-content: center;
- align-items: center;
- // width: 0;
- // height: 0;
- }
-
- .uni-tab__dot {
- // width: 30rpx;
- // height: 30rpx;
- padding: 0 4px;
- line-height: 15px;
- color: #ffffff;
- text-align: center;
- font-size: 12px;
- background-color: #ff0000;
- border-radius: 15px;
- }
-
- .uni-tab__dots {
- padding: 0 4px;
- // width: auto;
- border-radius: 15px;
- }
-</style>
diff --git a/uni_modules/uni-goods-nav/package.json b/uni_modules/uni-goods-nav/package.json
deleted file mode 100644
index 99cd567..0000000
--- a/uni_modules/uni-goods-nav/package.json
+++ /dev/null
@@ -1,88 +0,0 @@
-{
- "id": "uni-goods-nav",
- "displayName": "uni-goods-nav 鍟嗗搧瀵艰埅",
- "version": "1.2.0",
- "description": "鍟嗗搧瀵艰埅缁勪欢涓昏鐢ㄤ簬鐢靛晢绫诲簲鐢ㄥ簳閮ㄥ鑸紝鍙嚜瀹氫箟鍔犲叆璐墿杞︼紝璐拱绛夋搷浣�",
- "keywords": [
- "uni-ui",
- "uniui",
- "鍟嗗搧瀵艰埅"
-],
- "repository": "https://github.com/dcloudio/uni-ui",
- "engines": {
- "HBuilderX": ""
- },
- "directories": {
- "example": "../../temps/example_temps"
- },
- "dcloudext": {
- "category": [
- "鍓嶇缁勪欢",
- "閫氱敤缁勪欢"
- ],
- "sale": {
- "regular": {
- "price": "0.00"
- },
- "sourcecode": {
- "price": "0.00"
- }
- },
- "contact": {
- "qq": ""
- },
- "declaration": {
- "ads": "鏃�",
- "data": "鏃�",
- "permissions": "鏃�"
- },
- "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui"
- },
- "uni_modules": {
- "dependencies": [
- "uni-scss",
- "uni-icons"
- ],
- "encrypt": [],
- "platforms": {
- "cloud": {
- "tcb": "y",
- "aliyun": "y"
- },
- "client": {
- "App": {
- "app-vue": "y",
- "app-nvue": "y"
- },
- "H5-mobile": {
- "Safari": "y",
- "Android Browser": "y",
- "寰俊娴忚鍣�(Android)": "y",
- "QQ娴忚鍣�(Android)": "y"
- },
- "H5-pc": {
- "Chrome": "y",
- "IE": "y",
- "Edge": "y",
- "Firefox": "y",
- "Safari": "y"
- },
- "灏忕▼搴�": {
- "寰俊": "y",
- "闃块噷": "y",
- "鐧惧害": "y",
- "瀛楄妭璺冲姩": "y",
- "QQ": "y"
- },
- "蹇簲鐢�": {
- "鍗庝负": "u",
- "鑱旂洘": "u"
- },
- "Vue": {
- "vue2": "y",
- "vue3": "y"
- }
- }
- }
- }
-}
diff --git a/uni_modules/uni-goods-nav/readme.md b/uni_modules/uni-goods-nav/readme.md
deleted file mode 100644
index 07df93f..0000000
--- a/uni_modules/uni-goods-nav/readme.md
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-## GoodsNav 鍟嗗搧瀵艰埅
-> **缁勪欢鍚嶏細uni-goods-nav**
-> 浠g爜鍧楋細 `uGoodsNav`
-
-鍟嗗搧鍔犲叆璐墿杞︼紝绔嬪嵆璐拱绛夈��
-
-### [鏌ョ湅鏂囨。](https://uniapp.dcloud.io/component/uniui/uni-goods-nav)
-#### 濡備娇鐢ㄨ繃绋嬩腑鏈変换浣曢棶棰橈紝鎴栬�呮偍瀵箄ni-ui鏈変竴浜涘ソ鐨勫缓璁紝娆㈣繋鍔犲叆 uni-ui 浜ゆ祦缇わ細871950839
\ No newline at end of file
diff --git a/uni_modules/uni-grid/changelog.md b/uni_modules/uni-grid/changelog.md
deleted file mode 100644
index d301166..0000000
--- a/uni_modules/uni-grid/changelog.md
+++ /dev/null
@@ -1,13 +0,0 @@
-## 1.4.0锛�2021-11-19锛�
-- 浼樺寲 缁勪欢UI锛屽苟鎻愪緵璁捐璧勬簮锛岃瑙�:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource)
-- 鏂囨。杩佺Щ锛岃瑙�:[https://uniapp.dcloud.io/component/uniui/uni-grid](https://uniapp.dcloud.io/component/uniui/uni-grid)
-## 1.3.2锛�2021-11-09锛�
-- 鏂板 鎻愪緵缁勪欢璁捐璧勬簮锛岀粍浠舵牱寮忚皟鏁�
-## 1.3.1锛�2021-07-30锛�
-- 浼樺寲 vue3涓嬩簨浠惰鍛婄殑闂
-## 1.3.0锛�2021-07-13锛�
-- 缁勪欢鍏煎 vue3锛屽浣曞垱寤簐ue3椤圭洰锛岃瑙� [uni-app 椤圭洰鏀寔 vue3 浠嬬粛](https://ask.dcloud.net.cn/article/37834)
-## 1.2.4锛�2021-05-12锛�
-- 鏂板 缁勪欢绀轰緥鍦板潃
-## 1.2.3锛�2021-02-05锛�
-- 璋冩暣涓簎ni_modules鐩綍瑙勮寖
diff --git a/uni_modules/uni-grid/components/uni-grid-item/uni-grid-item.vue b/uni_modules/uni-grid/components/uni-grid-item/uni-grid-item.vue
deleted file mode 100644
index 19c08d7..0000000
--- a/uni_modules/uni-grid/components/uni-grid-item/uni-grid-item.vue
+++ /dev/null
@@ -1,127 +0,0 @@
-<template>
- <view v-if="width" :style="'width:'+width+';'+(square?'height:'+width:'')" class="uni-grid-item">
- <view :class="{ 'uni-grid-item--border': showBorder, 'uni-grid-item--border-top': showBorder && index < column, 'uni-highlight': highlight }"
- :style="{'border-right-color': borderColor ,'border-bottom-color': borderColor ,'border-top-color': borderColor }"
- class="uni-grid-item__box" @click="_onClick">
- <slot />
- </view>
- </view>
-</template>
-
-<script>
- /**
- * GridItem 瀹牸
- * @description 瀹牸缁勪欢
- * @tutorial https://ext.dcloud.net.cn/plugin?id=27
- * @property {Number} index 瀛愮粍浠剁殑鍞竴鏍囪瘑 锛岀偣鍑籫ird浼氳繑鍥炲綋鍓嶇殑鏍囪瘑
- */
- export default {
- name: 'UniGridItem',
- inject: ['grid'],
- props: {
- index: {
- type: Number,
- default: 0
- }
- },
- data() {
- return {
- column: 0,
- showBorder: true,
- square: true,
- highlight: true,
- left: 0,
- top: 0,
- openNum: 2,
- width: 0,
- borderColor: '#e5e5e5'
- }
- },
- created() {
- this.column = this.grid.column
- this.showBorder = this.grid.showBorder
- this.square = this.grid.square
- this.highlight = this.grid.highlight
- this.top = this.hor === 0 ? this.grid.hor : this.hor
- this.left = this.ver === 0 ? this.grid.ver : this.ver
- this.borderColor = this.grid.borderColor
- this.grid.children.push(this)
- // this.grid.init()
- this.width = this.grid.width
- },
- beforeDestroy() {
- this.grid.children.forEach((item, index) => {
- if (item === this) {
- this.grid.children.splice(index, 1)
- }
- })
- },
- methods: {
- _onClick() {
- this.grid.change({
- detail: {
- index: this.index
- }
- })
- }
- }
- }
-</script>
-
-<style lang="scss" scoped>
- .uni-grid-item {
- /* #ifndef APP-NVUE */
- height: 100%;
- display: flex;
- /* #endif */
- /* #ifdef H5 */
- cursor: pointer;
- /* #endif */
- }
-
- .uni-grid-item__box {
- /* #ifndef APP-NVUE */
- display: flex;
- width: 100%;
- /* #endif */
- position: relative;
- flex: 1;
- flex-direction: column;
- // justify-content: center;
- // align-items: center;
- }
-
- .uni-grid-item--border {
- position: relative;
- /* #ifdef APP-NVUE */
- border-bottom-color: #D2D2D2;
- border-bottom-style: solid;
- border-bottom-width: 0.5px;
- border-right-color: #D2D2D2;
- border-right-style: solid;
- border-right-width: 0.5px;
- /* #endif */
- /* #ifndef APP-NVUE */
- z-index: 0;
- border-bottom: 1px #D2D2D2 solid;
- border-right: 1px #D2D2D2 solid;
- /* #endif */
- }
- .uni-grid-item--border-top {
- position: relative;
- /* #ifdef APP-NVUE */
- border-top-color: #D2D2D2;
- border-top-style: solid;
- border-top-width: 0.5px;
- /* #endif */
- /* #ifndef APP-NVUE */
- border-top: 1px #D2D2D2 solid;
- z-index: 0;
- /* #endif */
- }
-
-
- .uni-highlight:active {
- background-color: #f1f1f1;
- }
-</style>
diff --git a/uni_modules/uni-grid/components/uni-grid/uni-grid.vue b/uni_modules/uni-grid/components/uni-grid/uni-grid.vue
deleted file mode 100644
index 0edc7ff..0000000
--- a/uni_modules/uni-grid/components/uni-grid/uni-grid.vue
+++ /dev/null
@@ -1,142 +0,0 @@
-<template>
- <view class="uni-grid-wrap">
- <view :id="elId" ref="uni-grid" class="uni-grid" :class="{ 'uni-grid--border': showBorder }" :style="{ 'border-left-color':borderColor}">
- <slot />
- </view>
- </view>
-</template>
-
-<script>
- // #ifdef APP-NVUE
- const dom = uni.requireNativePlugin('dom');
- // #endif
-
- /**
- * Grid 瀹牸
- * @description 瀹牸缁勪欢
- * @tutorial https://ext.dcloud.net.cn/plugin?id=27
- * @property {Number} column 姣忓垪鏄剧ず涓暟
- * @property {String} borderColor 杈规棰滆壊
- * @property {Boolean} showBorder 鏄惁鏄剧ず杈规
- * @property {Boolean} square 鏄惁鏂瑰舰鏄剧ず
- * @property {Boolean} Boolean 鐐瑰嚮鑳屾櫙鏄惁楂樹寒
- * @event {Function} change 鐐瑰嚮 grid 瑙﹀彂锛宔={detail:{index:0}}锛宨ndex 涓哄綋鍓嶇偣鍑� gird 涓嬫爣
- */
- export default {
- name: 'UniGrid',
- emits:['change'],
- props: {
- // 姣忓垪鏄剧ず涓暟
- column: {
- type: Number,
- default: 3
- },
- // 鏄惁鏄剧ず杈规
- showBorder: {
- type: Boolean,
- default: true
- },
- // 杈规棰滆壊
- borderColor: {
- type: String,
- default: '#D2D2D2'
- },
- // 鏄惁姝f柟褰㈡樉绀�,榛樿涓� true
- square: {
- type: Boolean,
- default: true
- },
- highlight: {
- type: Boolean,
- default: true
- }
- },
- provide() {
- return {
- grid: this
- }
- },
- data() {
- const elId = `Uni_${Math.ceil(Math.random() * 10e5).toString(36)}`
- return {
- elId,
- width: 0
- }
- },
- created() {
- this.children = []
- },
- mounted() {
- this.$nextTick(()=>{
- this.init()
- })
- },
- methods: {
- init() {
- setTimeout(() => {
- this._getSize((width) => {
- this.children.forEach((item, index) => {
- item.width = width
- })
- })
- }, 50)
- },
- change(e) {
- this.$emit('change', e)
- },
- _getSize(fn) {
- // #ifndef APP-NVUE
- uni.createSelectorQuery()
- .in(this)
- .select(`#${this.elId}`)
- .boundingClientRect()
- .exec(ret => {
- this.width = parseInt((ret[0].width - 1) / this.column) + 'px'
- fn(this.width)
- })
- // #endif
- // #ifdef APP-NVUE
- dom.getComponentRect(this.$refs['uni-grid'], (ret) => {
- this.width = parseInt((ret.size.width - 1) / this.column) + 'px'
- fn(this.width)
- })
- // #endif
- }
- }
- }
-</script>
-
-<style lang="scss" scoped>
- .uni-grid-wrap {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex: 1;
- flex-direction: column;
- /* #ifdef H5 */
- width: 100%;
- /* #endif */
- }
-
- .uni-grid {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- // flex: 1;
- flex-direction: row;
- flex-wrap: wrap;
- }
-
- .uni-grid--border {
- position: relative;
- /* #ifdef APP-NVUE */
- border-left-color: #D2D2D2;
- border-left-style: solid;
- border-left-width: 0.5px;
- /* #endif */
- /* #ifndef APP-NVUE */
- z-index: 1;
- border-left: 1px #D2D2D2 solid;
- /* #endif */
- }
-</style>
diff --git a/uni_modules/uni-grid/package.json b/uni_modules/uni-grid/package.json
deleted file mode 100644
index ccb2c91..0000000
--- a/uni_modules/uni-grid/package.json
+++ /dev/null
@@ -1,86 +0,0 @@
-{
- "id": "uni-grid",
- "displayName": "uni-grid 瀹牸",
- "version": "1.4.0",
- "description": "Grid 瀹牸缁勪欢锛屾彁渚涚Щ鍔ㄧ甯歌鐨勫鏍煎竷灞�锛屽涔濆鏍笺��",
- "keywords": [
- "uni-ui",
- "uniui",
- "涔濆鏍�",
- "琛ㄦ牸"
-],
- "repository": "https://github.com/dcloudio/uni-ui",
- "engines": {
- "HBuilderX": ""
- },
- "directories": {
- "example": "../../temps/example_temps"
- },
- "dcloudext": {
- "category": [
- "鍓嶇缁勪欢",
- "閫氱敤缁勪欢"
- ],
- "sale": {
- "regular": {
- "price": "0.00"
- },
- "sourcecode": {
- "price": "0.00"
- }
- },
- "contact": {
- "qq": ""
- },
- "declaration": {
- "ads": "鏃�",
- "data": "鏃�",
- "permissions": "鏃�"
- },
- "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui"
- },
- "uni_modules": {
- "dependencies": ["uni-scss","uni-icons"],
- "encrypt": [],
- "platforms": {
- "cloud": {
- "tcb": "y",
- "aliyun": "y"
- },
- "client": {
- "App": {
- "app-vue": "y",
- "app-nvue": "y"
- },
- "H5-mobile": {
- "Safari": "y",
- "Android Browser": "y",
- "寰俊娴忚鍣�(Android)": "y",
- "QQ娴忚鍣�(Android)": "y"
- },
- "H5-pc": {
- "Chrome": "y",
- "IE": "y",
- "Edge": "y",
- "Firefox": "y",
- "Safari": "y"
- },
- "灏忕▼搴�": {
- "寰俊": "y",
- "闃块噷": "y",
- "鐧惧害": "y",
- "瀛楄妭璺冲姩": "y",
- "QQ": "y"
- },
- "蹇簲鐢�": {
- "鍗庝负": "u",
- "鑱旂洘": "u"
- },
- "Vue": {
- "vue2": "y",
- "vue3": "y"
- }
- }
- }
- }
-}
diff --git a/uni_modules/uni-grid/readme.md b/uni_modules/uni-grid/readme.md
deleted file mode 100644
index 0aa44cc..0000000
--- a/uni_modules/uni-grid/readme.md
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
-## Grid 瀹牸
-> **缁勪欢鍚嶏細uni-grid**
-> 浠g爜鍧楋細 `uGrid`
-
-
-瀹牸缁勪欢銆�
-
-### [鏌ョ湅鏂囨。](https://uniapp.dcloud.io/component/uniui/uni-grid)
-#### 濡備娇鐢ㄨ繃绋嬩腑鏈変换浣曢棶棰橈紝鎴栬�呮偍瀵箄ni-ui鏈変竴浜涘ソ鐨勫缓璁紝娆㈣繋鍔犲叆 uni-ui 浜ゆ祦缇わ細871950839
\ No newline at end of file
diff --git a/uni_modules/uni-group/changelog.md b/uni_modules/uni-group/changelog.md
deleted file mode 100644
index 5bb3559..0000000
--- a/uni_modules/uni-group/changelog.md
+++ /dev/null
@@ -1,14 +0,0 @@
-## 1.2.1锛�2021-11-22锛�
-- 淇 vue3涓煇浜泂css鍙橀噺鏃犳硶鎵惧埌鐨勯棶棰�
-## 1.2.0锛�2021-11-19锛�
-- 浼樺寲 缁勪欢UI锛屽苟鎻愪緵璁捐璧勬簮锛岃瑙�:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource)
-- 鏂囨。杩佺Щ锛岃瑙�:[https://uniapp.dcloud.io/component/uniui/uni-group](https://uniapp.dcloud.io/component/uniui/uni-group)
-## 1.1.7锛�2021-11-08锛�
-## 1.1.0锛�2021-07-30锛�
-- 缁勪欢鍏煎 vue3锛屽浣曞垱寤簐ue3椤圭洰锛岃瑙� [uni-app 椤圭洰鏀寔 vue3 浠嬬粛](https://ask.dcloud.net.cn/article/37834)
-- 浼樺寲 缁勪欢鏂囨。
-## 1.0.3锛�2021-05-12锛�
-- 鏂板 缁勪欢绀轰緥鍦板潃
-## 1.0.2锛�2021-02-05锛�
-- 璋冩暣涓簎ni_modules鐩綍瑙勮寖
-- 浼樺寲 鍏煎 nvue 椤甸潰
diff --git a/uni_modules/uni-group/components/uni-group/uni-group.vue b/uni_modules/uni-group/components/uni-group/uni-group.vue
deleted file mode 100644
index 0ddd41f..0000000
--- a/uni_modules/uni-group/components/uni-group/uni-group.vue
+++ /dev/null
@@ -1,130 +0,0 @@
-<template>
- <view class="uni-group" :class="['uni-group--'+mode ,margin?'group-margin':'']" :style="{marginTop: `${top}px` }">
- <slot name="title">
- <view v-if="title" class="uni-group__title" :style="{'padding-left':border?'30px':'15px'}">
- <text class="uni-group__title-text">{{ title }}</text>
- </view>
- </slot>
- <view class="uni-group__content" :class="{'group-conent-padding':border}">
- <slot />
- </view>
- </view>
-</template>
-
-<script>
- /**
- * Group 鍒嗙粍
- * @description 琛ㄥ崟瀛楁鍒嗙粍
- * @tutorial https://ext.dcloud.net.cn/plugin?id=3281
- * @property {String} title 涓绘爣棰�
- * @property {Number} top 鍒嗙粍闂撮殧
- * @property {Number} mode 妯″紡
- */
- export default {
- name: 'uniGroup',
- emits:['click'],
- props: {
- title: {
- type: String,
- default: ''
- },
- top: {
- type: [Number, String],
- default: 10
- },
- mode: {
- type: String,
- default: 'default'
- }
- },
- data() {
- return {
- margin: false,
- border: false
- }
- },
- watch: {
- title(newVal) {
- if (uni.report && newVal !== '') {
- uni.report('title', newVal)
- }
- }
- },
- created() {
- this.form = this.getForm()
- if (this.form) {
- this.margin = true
- this.border = this.form.border
- }
- },
- methods: {
- /**
- * 鑾峰彇鐖跺厓绱犲疄渚�
- */
- getForm() {
- let parent = this.$parent;
- let parentName = parent.$options.name;
- while (parentName !== 'uniForms') {
- parent = parent.$parent;
- if (!parent) return false
- parentName = parent.$options.name;
- }
- return parent;
- },
- onClick() {
- this.$emit('click')
- }
- }
- }
-</script>
-<style lang="scss" scoped>
- .uni-group {
- background: #fff;
- margin-top: 10px;
- // border: 1px red solid;
- }
-
- .group-margin {
- // margin: 0 -15px;
- }
-
- .uni-group__title {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex-direction: row;
- align-items: center;
- padding-left: 15px;
- height: 40px;
- background-color: #eee;
- font-weight: normal;
- color: #666;
- }
-
- .uni-group__content {
- padding: 15px;
- // padding-bottom: 5px;
- // background-color: #FFF;
- }
-
- .group-conent-padding {
- padding: 0 15px;
- }
-
- .uni-group__title-text {
- font-size: 14px;
- color: #666;
- }
-
- .distraction {
- flex-direction: row;
- align-items: center;
- }
-
- .uni-group--card {
- margin: 10px;
- border-radius: 5px;
- overflow: hidden;
- box-shadow: 0 0 5px 1px rgba($color: #000000, $alpha: 0.08);
- }
-</style>
diff --git a/uni_modules/uni-group/package.json b/uni_modules/uni-group/package.json
deleted file mode 100644
index 532dd15..0000000
--- a/uni_modules/uni-group/package.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "id": "uni-group",
- "displayName": "uni-group 鍒嗙粍",
- "version": "1.2.1",
- "description": "鍒嗙粍缁勪欢鍙敤浜庡皢缁勪欢鐢ㄤ簬鍒嗙粍锛屾坊鍔犻棿闅旓紝浠ヤ骇鐢熸槑鏄剧殑鍖哄潡",
- "keywords": [
- "uni-ui",
- "uniui",
- "group",
- "鍒嗙粍",
- ""
-],
- "repository": "https://github.com/dcloudio/uni-ui",
- "engines": {
- "HBuilderX": ""
- },
- "directories": {
- "example": "../../temps/example_temps"
- },
- "dcloudext": {
- "category": [
- "鍓嶇缁勪欢",
- "閫氱敤缁勪欢"
- ],
- "sale": {
- "regular": {
- "price": "0.00"
- },
- "sourcecode": {
- "price": "0.00"
- }
- },
- "contact": {
- "qq": ""
- },
- "declaration": {
- "ads": "鏃�",
- "data": "鏃�",
- "permissions": "鏃�"
- },
- "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui"
- },
- "uni_modules": {
- "dependencies": ["uni-scss"],
- "encrypt": [],
- "platforms": {
- "cloud": {
- "tcb": "y",
- "aliyun": "y"
- },
- "client": {
- "App": {
- "app-vue": "y",
- "app-nvue": "y"
- },
- "H5-mobile": {
- "Safari": "y",
- "Android Browser": "y",
- "寰俊娴忚鍣�(Android)": "y",
- "QQ娴忚鍣�(Android)": "y"
- },
- "H5-pc": {
- "Chrome": "y",
- "IE": "y",
- "Edge": "y",
- "Firefox": "y",
- "Safari": "y"
- },
- "灏忕▼搴�": {
- "寰俊": "y",
- "闃块噷": "y",
- "鐧惧害": "y",
- "瀛楄妭璺冲姩": "y",
- "QQ": "y"
- },
- "蹇簲鐢�": {
- "鍗庝负": "u",
- "鑱旂洘": "u"
- },
- "Vue": {
- "vue2": "y",
- "vue3": "y"
- }
- }
- }
- }
-}
\ No newline at end of file
diff --git a/uni_modules/uni-group/readme.md b/uni_modules/uni-group/readme.md
deleted file mode 100644
index bae67f4..0000000
--- a/uni_modules/uni-group/readme.md
+++ /dev/null
@@ -1,9 +0,0 @@
-
-## Group 鍒嗙粍
-> **缁勪欢鍚嶏細uni-group**
-> 浠g爜鍧楋細 `uGroup`
-
-鍒嗙粍缁勪欢鍙敤浜庡皢缁勪欢鍒嗙粍锛屾坊鍔犻棿闅旓紝浠ヤ骇鐢熸槑鏄剧殑鍖哄潡銆�
-
-### [鏌ョ湅鏂囨。](https://uniapp.dcloud.io/component/uniui/uni-group)
-#### 濡備娇鐢ㄨ繃绋嬩腑鏈変换浣曢棶棰橈紝鎴栬�呮偍瀵箄ni-ui鏈変竴浜涘ソ鐨勫缓璁紝娆㈣繋鍔犲叆 uni-ui 浜ゆ祦缇わ細871950839
\ No newline at end of file
diff --git a/uni_modules/uni-icons/changelog.md b/uni_modules/uni-icons/changelog.md
deleted file mode 100644
index 6449885..0000000
--- a/uni_modules/uni-icons/changelog.md
+++ /dev/null
@@ -1,22 +0,0 @@
-## 1.3.5锛�2022-01-24锛�
-- 浼樺寲 size 灞炴�у彲浠ヤ紶鍏ヤ笉甯﹀崟浣嶇殑瀛楃涓叉暟鍊�
-## 1.3.4锛�2022-01-24锛�
-- 浼樺寲 size 鏀寔鍏朵粬鍗曚綅
-## 1.3.3锛�2022-01-17锛�
-- 淇 nvue 鏈変簺鍥炬爣涓嶆樉绀虹殑bug锛屽吋瀹硅�佺増鏈浘鏍�
-## 1.3.2锛�2021-12-01锛�
-- 浼樺寲 绀轰緥鍙鍒跺浘鏍囧悕绉�
-## 1.3.1锛�2021-11-23锛�
-- 浼樺寲 鍏煎鏃х粍浠� type 鍊�
-## 1.3.0锛�2021-11-19锛�
-- 鏂板 鏇村鍥炬爣
-- 浼樺寲 鑷畾涔夊浘鏍囦娇鐢ㄦ柟寮�
-- 浼樺寲 缁勪欢UI锛屽苟鎻愪緵璁捐璧勬簮锛岃瑙�:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource)
-- 鏂囨。杩佺Щ锛岃瑙�:[https://uniapp.dcloud.io/component/uniui/uni-icons](https://uniapp.dcloud.io/component/uniui/uni-icons)
-## 1.1.7锛�2021-11-08锛�
-## 1.2.0锛�2021-07-30锛�
-- 缁勪欢鍏煎 vue3锛屽浣曞垱寤簐ue3椤圭洰锛岃瑙� [uni-app 椤圭洰鏀寔 vue3 浠嬬粛](https://ask.dcloud.net.cn/article/37834)
-## 1.1.5锛�2021-05-12锛�
-- 鏂板 缁勪欢绀轰緥鍦板潃
-## 1.1.4锛�2021-02-05锛�
-- 璋冩暣涓簎ni_modules鐩綍瑙勮寖
diff --git a/uni_modules/uni-icons/components/uni-icons/icons.js b/uni_modules/uni-icons/components/uni-icons/icons.js
deleted file mode 100644
index 7889936..0000000
--- a/uni_modules/uni-icons/components/uni-icons/icons.js
+++ /dev/null
@@ -1,1169 +0,0 @@
-export default {
- "id": "2852637",
- "name": "uniui鍥炬爣搴�",
- "font_family": "uniicons",
- "css_prefix_text": "uniui-",
- "description": "",
- "glyphs": [
- {
- "icon_id": "25027049",
- "name": "yanse",
- "font_class": "color",
- "unicode": "e6cf",
- "unicode_decimal": 59087
- },
- {
- "icon_id": "25027048",
- "name": "wallet",
- "font_class": "wallet",
- "unicode": "e6b1",
- "unicode_decimal": 59057
- },
- {
- "icon_id": "25015720",
- "name": "settings-filled",
- "font_class": "settings-filled",
- "unicode": "e6ce",
- "unicode_decimal": 59086
- },
- {
- "icon_id": "25015434",
- "name": "shimingrenzheng-filled",
- "font_class": "auth-filled",
- "unicode": "e6cc",
- "unicode_decimal": 59084
- },
- {
- "icon_id": "24934246",
- "name": "shop-filled",
- "font_class": "shop-filled",
- "unicode": "e6cd",
- "unicode_decimal": 59085
- },
- {
- "icon_id": "24934159",
- "name": "staff-filled-01",
- "font_class": "staff-filled",
- "unicode": "e6cb",
- "unicode_decimal": 59083
- },
- {
- "icon_id": "24932461",
- "name": "VIP-filled",
- "font_class": "vip-filled",
- "unicode": "e6c6",
- "unicode_decimal": 59078
- },
- {
- "icon_id": "24932462",
- "name": "plus_circle_fill",
- "font_class": "plus-filled",
- "unicode": "e6c7",
- "unicode_decimal": 59079
- },
- {
- "icon_id": "24932463",
- "name": "folder_add-filled",
- "font_class": "folder-add-filled",
- "unicode": "e6c8",
- "unicode_decimal": 59080
- },
- {
- "icon_id": "24932464",
- "name": "yanse-filled",
- "font_class": "color-filled",
- "unicode": "e6c9",
- "unicode_decimal": 59081
- },
- {
- "icon_id": "24932465",
- "name": "tune-filled",
- "font_class": "tune-filled",
- "unicode": "e6ca",
- "unicode_decimal": 59082
- },
- {
- "icon_id": "24932455",
- "name": "a-rilidaka-filled",
- "font_class": "calendar-filled",
- "unicode": "e6c0",
- "unicode_decimal": 59072
- },
- {
- "icon_id": "24932456",
- "name": "notification-filled",
- "font_class": "notification-filled",
- "unicode": "e6c1",
- "unicode_decimal": 59073
- },
- {
- "icon_id": "24932457",
- "name": "wallet-filled",
- "font_class": "wallet-filled",
- "unicode": "e6c2",
- "unicode_decimal": 59074
- },
- {
- "icon_id": "24932458",
- "name": "paihangbang-filled",
- "font_class": "medal-filled",
- "unicode": "e6c3",
- "unicode_decimal": 59075
- },
- {
- "icon_id": "24932459",
- "name": "gift-filled",
- "font_class": "gift-filled",
- "unicode": "e6c4",
- "unicode_decimal": 59076
- },
- {
- "icon_id": "24932460",
- "name": "fire-filled",
- "font_class": "fire-filled",
- "unicode": "e6c5",
- "unicode_decimal": 59077
- },
- {
- "icon_id": "24928001",
- "name": "refreshempty",
- "font_class": "refreshempty",
- "unicode": "e6bf",
- "unicode_decimal": 59071
- },
- {
- "icon_id": "24926853",
- "name": "location-ellipse",
- "font_class": "location-filled",
- "unicode": "e6af",
- "unicode_decimal": 59055
- },
- {
- "icon_id": "24926735",
- "name": "person-filled",
- "font_class": "person-filled",
- "unicode": "e69d",
- "unicode_decimal": 59037
- },
- {
- "icon_id": "24926703",
- "name": "personadd-filled",
- "font_class": "personadd-filled",
- "unicode": "e698",
- "unicode_decimal": 59032
- },
- {
- "icon_id": "24923351",
- "name": "back",
- "font_class": "back",
- "unicode": "e6b9",
- "unicode_decimal": 59065
- },
- {
- "icon_id": "24923352",
- "name": "forward",
- "font_class": "forward",
- "unicode": "e6ba",
- "unicode_decimal": 59066
- },
- {
- "icon_id": "24923353",
- "name": "arrowthinright",
- "font_class": "arrow-right",
- "unicode": "e6bb",
- "unicode_decimal": 59067
- },
- {
- "icon_id": "24923353",
- "name": "arrowthinright",
- "font_class": "arrowthinright",
- "unicode": "e6bb",
- "unicode_decimal": 59067
- },
- {
- "icon_id": "24923354",
- "name": "arrowthinleft",
- "font_class": "arrow-left",
- "unicode": "e6bc",
- "unicode_decimal": 59068
- },
- {
- "icon_id": "24923354",
- "name": "arrowthinleft",
- "font_class": "arrowthinleft",
- "unicode": "e6bc",
- "unicode_decimal": 59068
- },
- {
- "icon_id": "24923355",
- "name": "arrowthinup",
- "font_class": "arrow-up",
- "unicode": "e6bd",
- "unicode_decimal": 59069
- },
- {
- "icon_id": "24923355",
- "name": "arrowthinup",
- "font_class": "arrowthinup",
- "unicode": "e6bd",
- "unicode_decimal": 59069
- },
- {
- "icon_id": "24923356",
- "name": "arrowthindown",
- "font_class": "arrow-down",
- "unicode": "e6be",
- "unicode_decimal": 59070
- },{
- "icon_id": "24923356",
- "name": "arrowthindown",
- "font_class": "arrowthindown",
- "unicode": "e6be",
- "unicode_decimal": 59070
- },
- {
- "icon_id": "24923349",
- "name": "arrowdown",
- "font_class": "bottom",
- "unicode": "e6b8",
- "unicode_decimal": 59064
- },{
- "icon_id": "24923349",
- "name": "arrowdown",
- "font_class": "arrowdown",
- "unicode": "e6b8",
- "unicode_decimal": 59064
- },
- {
- "icon_id": "24923346",
- "name": "arrowright",
- "font_class": "right",
- "unicode": "e6b5",
- "unicode_decimal": 59061
- },
- {
- "icon_id": "24923346",
- "name": "arrowright",
- "font_class": "arrowright",
- "unicode": "e6b5",
- "unicode_decimal": 59061
- },
- {
- "icon_id": "24923347",
- "name": "arrowup",
- "font_class": "top",
- "unicode": "e6b6",
- "unicode_decimal": 59062
- },
- {
- "icon_id": "24923347",
- "name": "arrowup",
- "font_class": "arrowup",
- "unicode": "e6b6",
- "unicode_decimal": 59062
- },
- {
- "icon_id": "24923348",
- "name": "arrowleft",
- "font_class": "left",
- "unicode": "e6b7",
- "unicode_decimal": 59063
- },
- {
- "icon_id": "24923348",
- "name": "arrowleft",
- "font_class": "arrowleft",
- "unicode": "e6b7",
- "unicode_decimal": 59063
- },
- {
- "icon_id": "24923334",
- "name": "eye",
- "font_class": "eye",
- "unicode": "e651",
- "unicode_decimal": 58961
- },
- {
- "icon_id": "24923335",
- "name": "eye-filled",
- "font_class": "eye-filled",
- "unicode": "e66a",
- "unicode_decimal": 58986
- },
- {
- "icon_id": "24923336",
- "name": "eye-slash",
- "font_class": "eye-slash",
- "unicode": "e6b3",
- "unicode_decimal": 59059
- },
- {
- "icon_id": "24923337",
- "name": "eye-slash-filled",
- "font_class": "eye-slash-filled",
- "unicode": "e6b4",
- "unicode_decimal": 59060
- },
- {
- "icon_id": "24923305",
- "name": "info-filled",
- "font_class": "info-filled",
- "unicode": "e649",
- "unicode_decimal": 58953
- },
- {
- "icon_id": "24923299",
- "name": "reload-01",
- "font_class": "reload",
- "unicode": "e6b2",
- "unicode_decimal": 59058
- },
- {
- "icon_id": "24923195",
- "name": "mic_slash_fill",
- "font_class": "micoff-filled",
- "unicode": "e6b0",
- "unicode_decimal": 59056
- },
- {
- "icon_id": "24923165",
- "name": "map-pin-ellipse",
- "font_class": "map-pin-ellipse",
- "unicode": "e6ac",
- "unicode_decimal": 59052
- },
- {
- "icon_id": "24923166",
- "name": "map-pin",
- "font_class": "map-pin",
- "unicode": "e6ad",
- "unicode_decimal": 59053
- },
- {
- "icon_id": "24923167",
- "name": "location",
- "font_class": "location",
- "unicode": "e6ae",
- "unicode_decimal": 59054
- },
- {
- "icon_id": "24923064",
- "name": "starhalf",
- "font_class": "starhalf",
- "unicode": "e683",
- "unicode_decimal": 59011
- },
- {
- "icon_id": "24923065",
- "name": "star",
- "font_class": "star",
- "unicode": "e688",
- "unicode_decimal": 59016
- },
- {
- "icon_id": "24923066",
- "name": "star-filled",
- "font_class": "star-filled",
- "unicode": "e68f",
- "unicode_decimal": 59023
- },
- {
- "icon_id": "24899646",
- "name": "a-rilidaka",
- "font_class": "calendar",
- "unicode": "e6a0",
- "unicode_decimal": 59040
- },
- {
- "icon_id": "24899647",
- "name": "fire",
- "font_class": "fire",
- "unicode": "e6a1",
- "unicode_decimal": 59041
- },
- {
- "icon_id": "24899648",
- "name": "paihangbang",
- "font_class": "medal",
- "unicode": "e6a2",
- "unicode_decimal": 59042
- },
- {
- "icon_id": "24899649",
- "name": "font",
- "font_class": "font",
- "unicode": "e6a3",
- "unicode_decimal": 59043
- },
- {
- "icon_id": "24899650",
- "name": "gift",
- "font_class": "gift",
- "unicode": "e6a4",
- "unicode_decimal": 59044
- },
- {
- "icon_id": "24899651",
- "name": "link",
- "font_class": "link",
- "unicode": "e6a5",
- "unicode_decimal": 59045
- },
- {
- "icon_id": "24899652",
- "name": "notification",
- "font_class": "notification",
- "unicode": "e6a6",
- "unicode_decimal": 59046
- },
- {
- "icon_id": "24899653",
- "name": "staff",
- "font_class": "staff",
- "unicode": "e6a7",
- "unicode_decimal": 59047
- },
- {
- "icon_id": "24899654",
- "name": "VIP",
- "font_class": "vip",
- "unicode": "e6a8",
- "unicode_decimal": 59048
- },
- {
- "icon_id": "24899655",
- "name": "folder_add",
- "font_class": "folder-add",
- "unicode": "e6a9",
- "unicode_decimal": 59049
- },
- {
- "icon_id": "24899656",
- "name": "tune",
- "font_class": "tune",
- "unicode": "e6aa",
- "unicode_decimal": 59050
- },
- {
- "icon_id": "24899657",
- "name": "shimingrenzheng",
- "font_class": "auth",
- "unicode": "e6ab",
- "unicode_decimal": 59051
- },
- {
- "icon_id": "24899565",
- "name": "person",
- "font_class": "person",
- "unicode": "e699",
- "unicode_decimal": 59033
- },
- {
- "icon_id": "24899566",
- "name": "email-filled",
- "font_class": "email-filled",
- "unicode": "e69a",
- "unicode_decimal": 59034
- },
- {
- "icon_id": "24899567",
- "name": "phone-filled",
- "font_class": "phone-filled",
- "unicode": "e69b",
- "unicode_decimal": 59035
- },
- {
- "icon_id": "24899568",
- "name": "phone",
- "font_class": "phone",
- "unicode": "e69c",
- "unicode_decimal": 59036
- },
- {
- "icon_id": "24899570",
- "name": "email",
- "font_class": "email",
- "unicode": "e69e",
- "unicode_decimal": 59038
- },
- {
- "icon_id": "24899571",
- "name": "personadd",
- "font_class": "personadd",
- "unicode": "e69f",
- "unicode_decimal": 59039
- },
- {
- "icon_id": "24899558",
- "name": "chatboxes-filled",
- "font_class": "chatboxes-filled",
- "unicode": "e692",
- "unicode_decimal": 59026
- },
- {
- "icon_id": "24899559",
- "name": "contact",
- "font_class": "contact",
- "unicode": "e693",
- "unicode_decimal": 59027
- },
- {
- "icon_id": "24899560",
- "name": "chatbubble-filled",
- "font_class": "chatbubble-filled",
- "unicode": "e694",
- "unicode_decimal": 59028
- },
- {
- "icon_id": "24899561",
- "name": "contact-filled",
- "font_class": "contact-filled",
- "unicode": "e695",
- "unicode_decimal": 59029
- },
- {
- "icon_id": "24899562",
- "name": "chatboxes",
- "font_class": "chatboxes",
- "unicode": "e696",
- "unicode_decimal": 59030
- },
- {
- "icon_id": "24899563",
- "name": "chatbubble",
- "font_class": "chatbubble",
- "unicode": "e697",
- "unicode_decimal": 59031
- },
- {
- "icon_id": "24881290",
- "name": "upload-filled",
- "font_class": "upload-filled",
- "unicode": "e68e",
- "unicode_decimal": 59022
- },
- {
- "icon_id": "24881292",
- "name": "upload",
- "font_class": "upload",
- "unicode": "e690",
- "unicode_decimal": 59024
- },
- {
- "icon_id": "24881293",
- "name": "weixin",
- "font_class": "weixin",
- "unicode": "e691",
- "unicode_decimal": 59025
- },
- {
- "icon_id": "24881274",
- "name": "compose",
- "font_class": "compose",
- "unicode": "e67f",
- "unicode_decimal": 59007
- },
- {
- "icon_id": "24881275",
- "name": "qq",
- "font_class": "qq",
- "unicode": "e680",
- "unicode_decimal": 59008
- },
- {
- "icon_id": "24881276",
- "name": "download-filled",
- "font_class": "download-filled",
- "unicode": "e681",
- "unicode_decimal": 59009
- },
- {
- "icon_id": "24881277",
- "name": "pengyouquan",
- "font_class": "pyq",
- "unicode": "e682",
- "unicode_decimal": 59010
- },
- {
- "icon_id": "24881279",
- "name": "sound",
- "font_class": "sound",
- "unicode": "e684",
- "unicode_decimal": 59012
- },
- {
- "icon_id": "24881280",
- "name": "trash-filled",
- "font_class": "trash-filled",
- "unicode": "e685",
- "unicode_decimal": 59013
- },
- {
- "icon_id": "24881281",
- "name": "sound-filled",
- "font_class": "sound-filled",
- "unicode": "e686",
- "unicode_decimal": 59014
- },
- {
- "icon_id": "24881282",
- "name": "trash",
- "font_class": "trash",
- "unicode": "e687",
- "unicode_decimal": 59015
- },
- {
- "icon_id": "24881284",
- "name": "videocam-filled",
- "font_class": "videocam-filled",
- "unicode": "e689",
- "unicode_decimal": 59017
- },
- {
- "icon_id": "24881285",
- "name": "spinner-cycle",
- "font_class": "spinner-cycle",
- "unicode": "e68a",
- "unicode_decimal": 59018
- },
- {
- "icon_id": "24881286",
- "name": "weibo",
- "font_class": "weibo",
- "unicode": "e68b",
- "unicode_decimal": 59019
- },
- {
- "icon_id": "24881288",
- "name": "videocam",
- "font_class": "videocam",
- "unicode": "e68c",
- "unicode_decimal": 59020
- },
- {
- "icon_id": "24881289",
- "name": "download",
- "font_class": "download",
- "unicode": "e68d",
- "unicode_decimal": 59021
- },
- {
- "icon_id": "24879601",
- "name": "help",
- "font_class": "help",
- "unicode": "e679",
- "unicode_decimal": 59001
- },
- {
- "icon_id": "24879602",
- "name": "navigate-filled",
- "font_class": "navigate-filled",
- "unicode": "e67a",
- "unicode_decimal": 59002
- },
- {
- "icon_id": "24879603",
- "name": "plusempty",
- "font_class": "plusempty",
- "unicode": "e67b",
- "unicode_decimal": 59003
- },
- {
- "icon_id": "24879604",
- "name": "smallcircle",
- "font_class": "smallcircle",
- "unicode": "e67c",
- "unicode_decimal": 59004
- },
- {
- "icon_id": "24879605",
- "name": "minus-filled",
- "font_class": "minus-filled",
- "unicode": "e67d",
- "unicode_decimal": 59005
- },
- {
- "icon_id": "24879606",
- "name": "micoff",
- "font_class": "micoff",
- "unicode": "e67e",
- "unicode_decimal": 59006
- },
- {
- "icon_id": "24879588",
- "name": "closeempty",
- "font_class": "closeempty",
- "unicode": "e66c",
- "unicode_decimal": 58988
- },
- {
- "icon_id": "24879589",
- "name": "clear",
- "font_class": "clear",
- "unicode": "e66d",
- "unicode_decimal": 58989
- },
- {
- "icon_id": "24879590",
- "name": "navigate",
- "font_class": "navigate",
- "unicode": "e66e",
- "unicode_decimal": 58990
- },
- {
- "icon_id": "24879591",
- "name": "minus",
- "font_class": "minus",
- "unicode": "e66f",
- "unicode_decimal": 58991
- },
- {
- "icon_id": "24879592",
- "name": "image",
- "font_class": "image",
- "unicode": "e670",
- "unicode_decimal": 58992
- },
- {
- "icon_id": "24879593",
- "name": "mic",
- "font_class": "mic",
- "unicode": "e671",
- "unicode_decimal": 58993
- },
- {
- "icon_id": "24879594",
- "name": "paperplane",
- "font_class": "paperplane",
- "unicode": "e672",
- "unicode_decimal": 58994
- },
- {
- "icon_id": "24879595",
- "name": "close",
- "font_class": "close",
- "unicode": "e673",
- "unicode_decimal": 58995
- },
- {
- "icon_id": "24879596",
- "name": "help-filled",
- "font_class": "help-filled",
- "unicode": "e674",
- "unicode_decimal": 58996
- },
- {
- "icon_id": "24879597",
- "name": "plus-filled",
- "font_class": "paperplane-filled",
- "unicode": "e675",
- "unicode_decimal": 58997
- },
- {
- "icon_id": "24879598",
- "name": "plus",
- "font_class": "plus",
- "unicode": "e676",
- "unicode_decimal": 58998
- },
- {
- "icon_id": "24879599",
- "name": "mic-filled",
- "font_class": "mic-filled",
- "unicode": "e677",
- "unicode_decimal": 58999
- },
- {
- "icon_id": "24879600",
- "name": "image-filled",
- "font_class": "image-filled",
- "unicode": "e678",
- "unicode_decimal": 59000
- },
- {
- "icon_id": "24855900",
- "name": "locked-filled",
- "font_class": "locked-filled",
- "unicode": "e668",
- "unicode_decimal": 58984
- },
- {
- "icon_id": "24855901",
- "name": "info",
- "font_class": "info",
- "unicode": "e669",
- "unicode_decimal": 58985
- },
- {
- "icon_id": "24855903",
- "name": "locked",
- "font_class": "locked",
- "unicode": "e66b",
- "unicode_decimal": 58987
- },
- {
- "icon_id": "24855884",
- "name": "camera-filled",
- "font_class": "camera-filled",
- "unicode": "e658",
- "unicode_decimal": 58968
- },
- {
- "icon_id": "24855885",
- "name": "chat-filled",
- "font_class": "chat-filled",
- "unicode": "e659",
- "unicode_decimal": 58969
- },
- {
- "icon_id": "24855886",
- "name": "camera",
- "font_class": "camera",
- "unicode": "e65a",
- "unicode_decimal": 58970
- },
- {
- "icon_id": "24855887",
- "name": "circle",
- "font_class": "circle",
- "unicode": "e65b",
- "unicode_decimal": 58971
- },
- {
- "icon_id": "24855888",
- "name": "checkmarkempty",
- "font_class": "checkmarkempty",
- "unicode": "e65c",
- "unicode_decimal": 58972
- },
- {
- "icon_id": "24855889",
- "name": "chat",
- "font_class": "chat",
- "unicode": "e65d",
- "unicode_decimal": 58973
- },
- {
- "icon_id": "24855890",
- "name": "circle-filled",
- "font_class": "circle-filled",
- "unicode": "e65e",
- "unicode_decimal": 58974
- },
- {
- "icon_id": "24855891",
- "name": "flag",
- "font_class": "flag",
- "unicode": "e65f",
- "unicode_decimal": 58975
- },
- {
- "icon_id": "24855892",
- "name": "flag-filled",
- "font_class": "flag-filled",
- "unicode": "e660",
- "unicode_decimal": 58976
- },
- {
- "icon_id": "24855893",
- "name": "gear-filled",
- "font_class": "gear-filled",
- "unicode": "e661",
- "unicode_decimal": 58977
- },
- {
- "icon_id": "24855894",
- "name": "home",
- "font_class": "home",
- "unicode": "e662",
- "unicode_decimal": 58978
- },
- {
- "icon_id": "24855895",
- "name": "home-filled",
- "font_class": "home-filled",
- "unicode": "e663",
- "unicode_decimal": 58979
- },
- {
- "icon_id": "24855896",
- "name": "gear",
- "font_class": "gear",
- "unicode": "e664",
- "unicode_decimal": 58980
- },
- {
- "icon_id": "24855897",
- "name": "smallcircle-filled",
- "font_class": "smallcircle-filled",
- "unicode": "e665",
- "unicode_decimal": 58981
- },
- {
- "icon_id": "24855898",
- "name": "map-filled",
- "font_class": "map-filled",
- "unicode": "e666",
- "unicode_decimal": 58982
- },
- {
- "icon_id": "24855899",
- "name": "map",
- "font_class": "map",
- "unicode": "e667",
- "unicode_decimal": 58983
- },
- {
- "icon_id": "24855825",
- "name": "refresh-filled",
- "font_class": "refresh-filled",
- "unicode": "e656",
- "unicode_decimal": 58966
- },
- {
- "icon_id": "24855826",
- "name": "refresh",
- "font_class": "refresh",
- "unicode": "e657",
- "unicode_decimal": 58967
- },
- {
- "icon_id": "24855808",
- "name": "cloud-upload",
- "font_class": "cloud-upload",
- "unicode": "e645",
- "unicode_decimal": 58949
- },
- {
- "icon_id": "24855809",
- "name": "cloud-download-filled",
- "font_class": "cloud-download-filled",
- "unicode": "e646",
- "unicode_decimal": 58950
- },
- {
- "icon_id": "24855810",
- "name": "cloud-download",
- "font_class": "cloud-download",
- "unicode": "e647",
- "unicode_decimal": 58951
- },
- {
- "icon_id": "24855811",
- "name": "cloud-upload-filled",
- "font_class": "cloud-upload-filled",
- "unicode": "e648",
- "unicode_decimal": 58952
- },
- {
- "icon_id": "24855813",
- "name": "redo",
- "font_class": "redo",
- "unicode": "e64a",
- "unicode_decimal": 58954
- },
- {
- "icon_id": "24855814",
- "name": "images-filled",
- "font_class": "images-filled",
- "unicode": "e64b",
- "unicode_decimal": 58955
- },
- {
- "icon_id": "24855815",
- "name": "undo-filled",
- "font_class": "undo-filled",
- "unicode": "e64c",
- "unicode_decimal": 58956
- },
- {
- "icon_id": "24855816",
- "name": "more",
- "font_class": "more",
- "unicode": "e64d",
- "unicode_decimal": 58957
- },
- {
- "icon_id": "24855817",
- "name": "more-filled",
- "font_class": "more-filled",
- "unicode": "e64e",
- "unicode_decimal": 58958
- },
- {
- "icon_id": "24855818",
- "name": "undo",
- "font_class": "undo",
- "unicode": "e64f",
- "unicode_decimal": 58959
- },
- {
- "icon_id": "24855819",
- "name": "images",
- "font_class": "images",
- "unicode": "e650",
- "unicode_decimal": 58960
- },
- {
- "icon_id": "24855821",
- "name": "paperclip",
- "font_class": "paperclip",
- "unicode": "e652",
- "unicode_decimal": 58962
- },
- {
- "icon_id": "24855822",
- "name": "settings",
- "font_class": "settings",
- "unicode": "e653",
- "unicode_decimal": 58963
- },
- {
- "icon_id": "24855823",
- "name": "search",
- "font_class": "search",
- "unicode": "e654",
- "unicode_decimal": 58964
- },
- {
- "icon_id": "24855824",
- "name": "redo-filled",
- "font_class": "redo-filled",
- "unicode": "e655",
- "unicode_decimal": 58965
- },
- {
- "icon_id": "24841702",
- "name": "list",
- "font_class": "list",
- "unicode": "e644",
- "unicode_decimal": 58948
- },
- {
- "icon_id": "24841489",
- "name": "mail-open-filled",
- "font_class": "mail-open-filled",
- "unicode": "e63a",
- "unicode_decimal": 58938
- },
- {
- "icon_id": "24841491",
- "name": "hand-thumbsdown-filled",
- "font_class": "hand-down-filled",
- "unicode": "e63c",
- "unicode_decimal": 58940
- },
- {
- "icon_id": "24841492",
- "name": "hand-thumbsdown",
- "font_class": "hand-down",
- "unicode": "e63d",
- "unicode_decimal": 58941
- },
- {
- "icon_id": "24841493",
- "name": "hand-thumbsup-filled",
- "font_class": "hand-up-filled",
- "unicode": "e63e",
- "unicode_decimal": 58942
- },
- {
- "icon_id": "24841494",
- "name": "hand-thumbsup",
- "font_class": "hand-up",
- "unicode": "e63f",
- "unicode_decimal": 58943
- },
- {
- "icon_id": "24841496",
- "name": "heart-filled",
- "font_class": "heart-filled",
- "unicode": "e641",
- "unicode_decimal": 58945
- },
- {
- "icon_id": "24841498",
- "name": "mail-open",
- "font_class": "mail-open",
- "unicode": "e643",
- "unicode_decimal": 58947
- },
- {
- "icon_id": "24841488",
- "name": "heart",
- "font_class": "heart",
- "unicode": "e639",
- "unicode_decimal": 58937
- },
- {
- "icon_id": "24839963",
- "name": "loop",
- "font_class": "loop",
- "unicode": "e633",
- "unicode_decimal": 58931
- },
- {
- "icon_id": "24839866",
- "name": "pulldown",
- "font_class": "pulldown",
- "unicode": "e632",
- "unicode_decimal": 58930
- },
- {
- "icon_id": "24813798",
- "name": "scan",
- "font_class": "scan",
- "unicode": "e62a",
- "unicode_decimal": 58922
- },
- {
- "icon_id": "24813786",
- "name": "bars",
- "font_class": "bars",
- "unicode": "e627",
- "unicode_decimal": 58919
- },
- {
- "icon_id": "24813788",
- "name": "cart-filled",
- "font_class": "cart-filled",
- "unicode": "e629",
- "unicode_decimal": 58921
- },
- {
- "icon_id": "24813790",
- "name": "checkbox",
- "font_class": "checkbox",
- "unicode": "e62b",
- "unicode_decimal": 58923
- },
- {
- "icon_id": "24813791",
- "name": "checkbox-filled",
- "font_class": "checkbox-filled",
- "unicode": "e62c",
- "unicode_decimal": 58924
- },
- {
- "icon_id": "24813794",
- "name": "shop",
- "font_class": "shop",
- "unicode": "e62f",
- "unicode_decimal": 58927
- },
- {
- "icon_id": "24813795",
- "name": "headphones",
- "font_class": "headphones",
- "unicode": "e630",
- "unicode_decimal": 58928
- },
- {
- "icon_id": "24813796",
- "name": "cart",
- "font_class": "cart",
- "unicode": "e631",
- "unicode_decimal": 58929
- }
- ]
-}
diff --git a/uni_modules/uni-icons/components/uni-icons/uni-icons.vue b/uni_modules/uni-icons/components/uni-icons/uni-icons.vue
deleted file mode 100644
index 86e7444..0000000
--- a/uni_modules/uni-icons/components/uni-icons/uni-icons.vue
+++ /dev/null
@@ -1,96 +0,0 @@
-<template>
- <!-- #ifdef APP-NVUE -->
- <text :style="{ color: color, 'font-size': iconSize }" class="uni-icons" @click="_onClick">{{unicode}}</text>
- <!-- #endif -->
- <!-- #ifndef APP-NVUE -->
- <text :style="{ color: color, 'font-size': iconSize }" class="uni-icons" :class="['uniui-'+type,customPrefix,customPrefix?type:'']" @click="_onClick"></text>
- <!-- #endif -->
-</template>
-
-<script>
- import icons from './icons.js';
- const getVal = (val) => {
- const reg = /^[0-9]*$/g
- return (typeof val === 'number' ||銆�reg.test(val) )? val + 'px' : val;
- }
- // #ifdef APP-NVUE
- var domModule = weex.requireModule('dom');
- import iconUrl from './uniicons.ttf'
- domModule.addRule('fontFace', {
- 'fontFamily': "uniicons",
- 'src': "url('"+iconUrl+"')"
- });
- // #endif
-
- /**
- * Icons 鍥炬爣
- * @description 鐢ㄤ簬灞曠ず icons 鍥炬爣
- * @tutorial https://ext.dcloud.net.cn/plugin?id=28
- * @property {Number} size 鍥炬爣澶у皬
- * @property {String} type 鍥炬爣鍥炬锛屽弬鑰冪ず渚�
- * @property {String} color 鍥炬爣棰滆壊
- * @property {String} customPrefix 鑷畾涔夊浘鏍�
- * @event {Function} click 鐐瑰嚮 Icon 瑙﹀彂浜嬩欢
- */
- export default {
- name: 'UniIcons',
- emits:['click'],
- props: {
- type: {
- type: String,
- default: ''
- },
- color: {
- type: String,
- default: '#333333'
- },
- size: {
- type: [Number, String],
- default: 16
- },
- customPrefix:{
- type: String,
- default: ''
- }
- },
- data() {
- return {
- icons: icons.glyphs
- }
- },
- computed:{
- unicode(){
- let code = this.icons.find(v=>v.font_class === this.type)
- if(code){
- return unescape(`%u${code.unicode}`)
- }
- return ''
- },
- iconSize(){
- return getVal(this.size)
- }
- },
- methods: {
- _onClick() {
- this.$emit('click')
- }
- }
- }
-</script>
-
-<style lang="scss">
- /* #ifndef APP-NVUE */
- @import './uniicons.css';
- @font-face {
- font-family: uniicons;
- src: url('./uniicons.ttf') format('truetype');
- }
-
- /* #endif */
- .uni-icons {
- font-family: uniicons;
- text-decoration: none;
- text-align: center;
- }
-
-</style>
diff --git a/uni_modules/uni-icons/components/uni-icons/uni.ttf b/uni_modules/uni-icons/components/uni-icons/uni.ttf
deleted file mode 100644
index 60a1968..0000000
--- a/uni_modules/uni-icons/components/uni-icons/uni.ttf
+++ /dev/null
Binary files differ
diff --git a/uni_modules/uni-icons/components/uni-icons/uniicons.css b/uni_modules/uni-icons/components/uni-icons/uniicons.css
deleted file mode 100644
index 2f56eab..0000000
--- a/uni_modules/uni-icons/components/uni-icons/uniicons.css
+++ /dev/null
@@ -1,663 +0,0 @@
-.uniui-color:before {
- content: "\e6cf";
-}
-
-.uniui-wallet:before {
- content: "\e6b1";
-}
-
-.uniui-settings-filled:before {
- content: "\e6ce";
-}
-
-.uniui-auth-filled:before {
- content: "\e6cc";
-}
-
-.uniui-shop-filled:before {
- content: "\e6cd";
-}
-
-.uniui-staff-filled:before {
- content: "\e6cb";
-}
-
-.uniui-vip-filled:before {
- content: "\e6c6";
-}
-
-.uniui-plus-filled:before {
- content: "\e6c7";
-}
-
-.uniui-folder-add-filled:before {
- content: "\e6c8";
-}
-
-.uniui-color-filled:before {
- content: "\e6c9";
-}
-
-.uniui-tune-filled:before {
- content: "\e6ca";
-}
-
-.uniui-calendar-filled:before {
- content: "\e6c0";
-}
-
-.uniui-notification-filled:before {
- content: "\e6c1";
-}
-
-.uniui-wallet-filled:before {
- content: "\e6c2";
-}
-
-.uniui-medal-filled:before {
- content: "\e6c3";
-}
-
-.uniui-gift-filled:before {
- content: "\e6c4";
-}
-
-.uniui-fire-filled:before {
- content: "\e6c5";
-}
-
-.uniui-refreshempty:before {
- content: "\e6bf";
-}
-
-.uniui-location-filled:before {
- content: "\e6af";
-}
-
-.uniui-person-filled:before {
- content: "\e69d";
-}
-
-.uniui-personadd-filled:before {
- content: "\e698";
-}
-
-.uniui-back:before {
- content: "\e6b9";
-}
-
-.uniui-forward:before {
- content: "\e6ba";
-}
-
-.uniui-arrow-right:before {
- content: "\e6bb";
-}
-
-.uniui-arrowthinright:before {
- content: "\e6bb";
-}
-
-.uniui-arrow-left:before {
- content: "\e6bc";
-}
-
-.uniui-arrowthinleft:before {
- content: "\e6bc";
-}
-
-.uniui-arrow-up:before {
- content: "\e6bd";
-}
-
-.uniui-arrowthinup:before {
- content: "\e6bd";
-}
-
-.uniui-arrow-down:before {
- content: "\e6be";
-}
-
-.uniui-arrowthindown:before {
- content: "\e6be";
-}
-
-.uniui-bottom:before {
- content: "\e6b8";
-}
-
-.uniui-arrowdown:before {
- content: "\e6b8";
-}
-
-.uniui-right:before {
- content: "\e6b5";
-}
-
-.uniui-arrowright:before {
- content: "\e6b5";
-}
-
-.uniui-top:before {
- content: "\e6b6";
-}
-
-.uniui-arrowup:before {
- content: "\e6b6";
-}
-
-.uniui-left:before {
- content: "\e6b7";
-}
-
-.uniui-arrowleft:before {
- content: "\e6b7";
-}
-
-.uniui-eye:before {
- content: "\e651";
-}
-
-.uniui-eye-filled:before {
- content: "\e66a";
-}
-
-.uniui-eye-slash:before {
- content: "\e6b3";
-}
-
-.uniui-eye-slash-filled:before {
- content: "\e6b4";
-}
-
-.uniui-info-filled:before {
- content: "\e649";
-}
-
-.uniui-reload:before {
- content: "\e6b2";
-}
-
-.uniui-micoff-filled:before {
- content: "\e6b0";
-}
-
-.uniui-map-pin-ellipse:before {
- content: "\e6ac";
-}
-
-.uniui-map-pin:before {
- content: "\e6ad";
-}
-
-.uniui-location:before {
- content: "\e6ae";
-}
-
-.uniui-starhalf:before {
- content: "\e683";
-}
-
-.uniui-star:before {
- content: "\e688";
-}
-
-.uniui-star-filled:before {
- content: "\e68f";
-}
-
-.uniui-calendar:before {
- content: "\e6a0";
-}
-
-.uniui-fire:before {
- content: "\e6a1";
-}
-
-.uniui-medal:before {
- content: "\e6a2";
-}
-
-.uniui-font:before {
- content: "\e6a3";
-}
-
-.uniui-gift:before {
- content: "\e6a4";
-}
-
-.uniui-link:before {
- content: "\e6a5";
-}
-
-.uniui-notification:before {
- content: "\e6a6";
-}
-
-.uniui-staff:before {
- content: "\e6a7";
-}
-
-.uniui-vip:before {
- content: "\e6a8";
-}
-
-.uniui-folder-add:before {
- content: "\e6a9";
-}
-
-.uniui-tune:before {
- content: "\e6aa";
-}
-
-.uniui-auth:before {
- content: "\e6ab";
-}
-
-.uniui-person:before {
- content: "\e699";
-}
-
-.uniui-email-filled:before {
- content: "\e69a";
-}
-
-.uniui-phone-filled:before {
- content: "\e69b";
-}
-
-.uniui-phone:before {
- content: "\e69c";
-}
-
-.uniui-email:before {
- content: "\e69e";
-}
-
-.uniui-personadd:before {
- content: "\e69f";
-}
-
-.uniui-chatboxes-filled:before {
- content: "\e692";
-}
-
-.uniui-contact:before {
- content: "\e693";
-}
-
-.uniui-chatbubble-filled:before {
- content: "\e694";
-}
-
-.uniui-contact-filled:before {
- content: "\e695";
-}
-
-.uniui-chatboxes:before {
- content: "\e696";
-}
-
-.uniui-chatbubble:before {
- content: "\e697";
-}
-
-.uniui-upload-filled:before {
- content: "\e68e";
-}
-
-.uniui-upload:before {
- content: "\e690";
-}
-
-.uniui-weixin:before {
- content: "\e691";
-}
-
-.uniui-compose:before {
- content: "\e67f";
-}
-
-.uniui-qq:before {
- content: "\e680";
-}
-
-.uniui-download-filled:before {
- content: "\e681";
-}
-
-.uniui-pyq:before {
- content: "\e682";
-}
-
-.uniui-sound:before {
- content: "\e684";
-}
-
-.uniui-trash-filled:before {
- content: "\e685";
-}
-
-.uniui-sound-filled:before {
- content: "\e686";
-}
-
-.uniui-trash:before {
- content: "\e687";
-}
-
-.uniui-videocam-filled:before {
- content: "\e689";
-}
-
-.uniui-spinner-cycle:before {
- content: "\e68a";
-}
-
-.uniui-weibo:before {
- content: "\e68b";
-}
-
-.uniui-videocam:before {
- content: "\e68c";
-}
-
-.uniui-download:before {
- content: "\e68d";
-}
-
-.uniui-help:before {
- content: "\e679";
-}
-
-.uniui-navigate-filled:before {
- content: "\e67a";
-}
-
-.uniui-plusempty:before {
- content: "\e67b";
-}
-
-.uniui-smallcircle:before {
- content: "\e67c";
-}
-
-.uniui-minus-filled:before {
- content: "\e67d";
-}
-
-.uniui-micoff:before {
- content: "\e67e";
-}
-
-.uniui-closeempty:before {
- content: "\e66c";
-}
-
-.uniui-clear:before {
- content: "\e66d";
-}
-
-.uniui-navigate:before {
- content: "\e66e";
-}
-
-.uniui-minus:before {
- content: "\e66f";
-}
-
-.uniui-image:before {
- content: "\e670";
-}
-
-.uniui-mic:before {
- content: "\e671";
-}
-
-.uniui-paperplane:before {
- content: "\e672";
-}
-
-.uniui-close:before {
- content: "\e673";
-}
-
-.uniui-help-filled:before {
- content: "\e674";
-}
-
-.uniui-paperplane-filled:before {
- content: "\e675";
-}
-
-.uniui-plus:before {
- content: "\e676";
-}
-
-.uniui-mic-filled:before {
- content: "\e677";
-}
-
-.uniui-image-filled:before {
- content: "\e678";
-}
-
-.uniui-locked-filled:before {
- content: "\e668";
-}
-
-.uniui-info:before {
- content: "\e669";
-}
-
-.uniui-locked:before {
- content: "\e66b";
-}
-
-.uniui-camera-filled:before {
- content: "\e658";
-}
-
-.uniui-chat-filled:before {
- content: "\e659";
-}
-
-.uniui-camera:before {
- content: "\e65a";
-}
-
-.uniui-circle:before {
- content: "\e65b";
-}
-
-.uniui-checkmarkempty:before {
- content: "\e65c";
-}
-
-.uniui-chat:before {
- content: "\e65d";
-}
-
-.uniui-circle-filled:before {
- content: "\e65e";
-}
-
-.uniui-flag:before {
- content: "\e65f";
-}
-
-.uniui-flag-filled:before {
- content: "\e660";
-}
-
-.uniui-gear-filled:before {
- content: "\e661";
-}
-
-.uniui-home:before {
- content: "\e662";
-}
-
-.uniui-home-filled:before {
- content: "\e663";
-}
-
-.uniui-gear:before {
- content: "\e664";
-}
-
-.uniui-smallcircle-filled:before {
- content: "\e665";
-}
-
-.uniui-map-filled:before {
- content: "\e666";
-}
-
-.uniui-map:before {
- content: "\e667";
-}
-
-.uniui-refresh-filled:before {
- content: "\e656";
-}
-
-.uniui-refresh:before {
- content: "\e657";
-}
-
-.uniui-cloud-upload:before {
- content: "\e645";
-}
-
-.uniui-cloud-download-filled:before {
- content: "\e646";
-}
-
-.uniui-cloud-download:before {
- content: "\e647";
-}
-
-.uniui-cloud-upload-filled:before {
- content: "\e648";
-}
-
-.uniui-redo:before {
- content: "\e64a";
-}
-
-.uniui-images-filled:before {
- content: "\e64b";
-}
-
-.uniui-undo-filled:before {
- content: "\e64c";
-}
-
-.uniui-more:before {
- content: "\e64d";
-}
-
-.uniui-more-filled:before {
- content: "\e64e";
-}
-
-.uniui-undo:before {
- content: "\e64f";
-}
-
-.uniui-images:before {
- content: "\e650";
-}
-
-.uniui-paperclip:before {
- content: "\e652";
-}
-
-.uniui-settings:before {
- content: "\e653";
-}
-
-.uniui-search:before {
- content: "\e654";
-}
-
-.uniui-redo-filled:before {
- content: "\e655";
-}
-
-.uniui-list:before {
- content: "\e644";
-}
-
-.uniui-mail-open-filled:before {
- content: "\e63a";
-}
-
-.uniui-hand-down-filled:before {
- content: "\e63c";
-}
-
-.uniui-hand-down:before {
- content: "\e63d";
-}
-
-.uniui-hand-up-filled:before {
- content: "\e63e";
-}
-
-.uniui-hand-up:before {
- content: "\e63f";
-}
-
-.uniui-heart-filled:before {
- content: "\e641";
-}
-
-.uniui-mail-open:before {
- content: "\e643";
-}
-
-.uniui-heart:before {
- content: "\e639";
-}
-
-.uniui-loop:before {
- content: "\e633";
-}
-
-.uniui-pulldown:before {
- content: "\e632";
-}
-
-.uniui-scan:before {
- content: "\e62a";
-}
-
-.uniui-bars:before {
- content: "\e627";
-}
-
-.uniui-cart-filled:before {
- content: "\e629";
-}
-
-.uniui-checkbox:before {
- content: "\e62b";
-}
-
-.uniui-checkbox-filled:before {
- content: "\e62c";
-}
-
-.uniui-shop:before {
- content: "\e62f";
-}
-
-.uniui-headphones:before {
- content: "\e630";
-}
-
-.uniui-cart:before {
- content: "\e631";
-}
diff --git a/uni_modules/uni-icons/components/uni-icons/uniicons.ttf b/uni_modules/uni-icons/components/uni-icons/uniicons.ttf
deleted file mode 100644
index 835f33b..0000000
--- a/uni_modules/uni-icons/components/uni-icons/uniicons.ttf
+++ /dev/null
Binary files differ
diff --git a/uni_modules/uni-icons/package.json b/uni_modules/uni-icons/package.json
deleted file mode 100644
index d1c4e77..0000000
--- a/uni_modules/uni-icons/package.json
+++ /dev/null
@@ -1,86 +0,0 @@
-{
- "id": "uni-icons",
- "displayName": "uni-icons 鍥炬爣",
- "version": "1.3.5",
- "description": "鍥炬爣缁勪欢锛岀敤浜庡睍绀虹Щ鍔ㄧ甯歌鐨勫浘鏍囷紝鍙嚜瀹氫箟棰滆壊銆佸ぇ灏忋��",
- "keywords": [
- "uni-ui",
- "uniui",
- "icon",
- "鍥炬爣"
-],
- "repository": "https://github.com/dcloudio/uni-ui",
- "engines": {
- "HBuilderX": "^3.2.14"
- },
- "directories": {
- "example": "../../temps/example_temps"
- },
- "dcloudext": {
- "category": [
- "鍓嶇缁勪欢",
- "閫氱敤缁勪欢"
- ],
- "sale": {
- "regular": {
- "price": "0.00"
- },
- "sourcecode": {
- "price": "0.00"
- }
- },
- "contact": {
- "qq": ""
- },
- "declaration": {
- "ads": "鏃�",
- "data": "鏃�",
- "permissions": "鏃�"
- },
- "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui"
- },
- "uni_modules": {
- "dependencies": ["uni-scss"],
- "encrypt": [],
- "platforms": {
- "cloud": {
- "tcb": "y",
- "aliyun": "y"
- },
- "client": {
- "App": {
- "app-vue": "y",
- "app-nvue": "y"
- },
- "H5-mobile": {
- "Safari": "y",
- "Android Browser": "y",
- "寰俊娴忚鍣�(Android)": "y",
- "QQ娴忚鍣�(Android)": "y"
- },
- "H5-pc": {
- "Chrome": "y",
- "IE": "y",
- "Edge": "y",
- "Firefox": "y",
- "Safari": "y"
- },
- "灏忕▼搴�": {
- "寰俊": "y",
- "闃块噷": "y",
- "鐧惧害": "y",
- "瀛楄妭璺冲姩": "y",
- "QQ": "y"
- },
- "蹇簲鐢�": {
- "鍗庝负": "u",
- "鑱旂洘": "u"
- },
- "Vue": {
- "vue2": "y",
- "vue3": "y"
- }
- }
- }
- }
-}
\ No newline at end of file
diff --git a/uni_modules/uni-icons/readme.md b/uni_modules/uni-icons/readme.md
deleted file mode 100644
index 86234ba..0000000
--- a/uni_modules/uni-icons/readme.md
+++ /dev/null
@@ -1,8 +0,0 @@
-## Icons 鍥炬爣
-> **缁勪欢鍚嶏細uni-icons**
-> 浠g爜鍧楋細 `uIcons`
-
-鐢ㄤ簬灞曠ず icons 鍥炬爣 銆�
-
-### [鏌ョ湅鏂囨。](https://uniapp.dcloud.io/component/uniui/uni-icons)
-#### 濡備娇鐢ㄨ繃绋嬩腑鏈変换浣曢棶棰橈紝鎴栬�呮偍瀵箄ni-ui鏈変竴浜涘ソ鐨勫缓璁紝娆㈣繋鍔犲叆 uni-ui 浜ゆ祦缇わ細871950839
diff --git a/uni_modules/uni-indexed-list/changelog.md b/uni_modules/uni-indexed-list/changelog.md
deleted file mode 100644
index 08fa71c..0000000
--- a/uni_modules/uni-indexed-list/changelog.md
+++ /dev/null
@@ -1,17 +0,0 @@
-## 1.2.1锛�2021-11-22锛�
-- 淇 vue3涓煇浜泂css鍙橀噺鏃犳硶鎵惧埌鐨勯棶棰�
-## 1.2.0锛�2021-11-19锛�
-- 浼樺寲 缁勪欢UI锛屽苟鎻愪緵璁捐璧勬簮锛岃瑙�:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource)
-- 鏂囨。杩佺Щ锛岃瑙�:[https://uniapp.dcloud.io/component/uniui/uni-indexed-list](https://uniapp.dcloud.io/component/uniui/uni-indexed-list)
-## 1.1.0锛�2021-07-30锛�
-- 缁勪欢鍏煎 vue3锛屽浣曞垱寤簐ue3椤圭洰锛岃瑙� [uni-app 椤圭洰鏀寔 vue3 浠嬬粛](https://ask.dcloud.net.cn/article/37834)
-## 1.0.11锛�2021-05-12锛�
-- 鏂板 缁勪欢绀轰緥鍦板潃
-## 1.0.10锛�2021-04-21锛�
-- 浼樺寲 娣诲姞渚濊禆 uni-icons, 瀵煎叆鍚庤嚜鍔ㄤ笅杞戒緷璧�
-## 1.0.9锛�2021-02-05锛�
-- 浼樺寲 缁勪欢寮曠敤鍏崇郴锛岄�氳繃uni_modules寮曠敤缁勪欢
-
-## 1.0.8锛�2021-02-05锛�
-- 璋冩暣涓簎ni_modules鐩綍瑙勮寖
-- 鏂板 鏀寔 PC 绔�
diff --git a/uni_modules/uni-indexed-list/components/uni-indexed-list/uni-indexed-list-item.vue b/uni_modules/uni-indexed-list/components/uni-indexed-list/uni-indexed-list-item.vue
deleted file mode 100644
index 19284bd..0000000
--- a/uni_modules/uni-indexed-list/components/uni-indexed-list/uni-indexed-list-item.vue
+++ /dev/null
@@ -1,144 +0,0 @@
-<template>
- <view>
- <view v-if="loaded || list.itemIndex < 15" class="uni-indexed-list__title-wrapper">
- <text v-if="list.items && list.items.length > 0" class="uni-indexed-list__title">{{ list.key }}</text>
- </view>
- <view v-if="(loaded || list.itemIndex < 15) && list.items && list.items.length > 0" class="uni-indexed-list__list">
- <view v-for="(item, index) in list.items" :key="index" class="uni-indexed-list__item" hover-class="uni-indexed-list__item--hover">
- <view class="uni-indexed-list__item-container" @click="onClick(idx, index)">
- <view class="uni-indexed-list__item-border" :class="{'uni-indexed-list__item-border--last':index===list.items.length-1}">
- <view v-if="showSelect" style="margin-right: 20rpx;">
- <uni-icons :type="item.checked ? 'checkbox-filled' : 'circle'" :color="item.checked ? '#007aff' : '#C0C0C0'" size="24" />
- </view>
- <text class="uni-indexed-list__item-content">{{ item.name }}</text>
- </view>
- </view>
- </view>
- </view>
- </view>
-</template>
-
-<script>
- export default {
- name: 'UniIndexedList',
- emits:['itemClick'],
- props: {
- loaded: {
- type: Boolean,
- default: false
- },
- idx: {
- type: Number,
- default: 0
- },
- list: {
- type: Object,
- default () {
- return {}
- }
- },
- showSelect: {
- type: Boolean,
- default: false
- }
- },
- methods: {
- onClick(idx, index) {
- this.$emit("itemClick", {
- idx,
- index
- })
- }
- }
- }
-</script>
-
-<style lang="scss" scoped>
- .uni-indexed-list__list {
- background-color: $uni-bg-color;
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex-direction: column;
- border-top-style: solid;
- border-top-width: 1px;
- border-top-color: #DEDEDE;
- }
-
- .uni-indexed-list__item {
- font-size: 14px;
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex: 1;
- flex-direction: row;
- justify-content: space-between;
- align-items: center;
- }
-
- .uni-indexed-list__item-container {
- padding-left: 15px;
- flex: 1;
- position: relative;
- /* #ifndef APP-NVUE */
- display: flex;
- box-sizing: border-box;
- /* #endif */
- flex-direction: row;
- justify-content: space-between;
- align-items: center;
- /* #ifdef H5 */
- cursor: pointer;
- /* #endif */
- }
-
- .uni-indexed-list__item-border {
- flex: 1;
- position: relative;
- /* #ifndef APP-NVUE */
- display: flex;
- box-sizing: border-box;
- /* #endif */
- flex-direction: row;
- justify-content: space-between;
- align-items: center;
- height: 50px;
- padding: 25px;
- padding-left: 0;
- border-bottom-style: solid;
- border-bottom-width: 1px;
- border-bottom-color: #DEDEDE;
- }
-
- .uni-indexed-list__item-border--last {
- border-bottom-width: 0px;
- }
-
- .uni-indexed-list__item-content {
- flex: 1;
- font-size: 14px;
- color: #191919;
- }
-
- .uni-indexed-list {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex-direction: row;
- }
-
- .uni-indexed-list__title-wrapper {
- /* #ifndef APP-NVUE */
- display: flex;
- width: 100%;
- /* #endif */
- background-color: #f7f7f7;
- }
-
- .uni-indexed-list__title {
- padding: 6px 12px;
- line-height: 24px;
- font-size: 16px;
- font-weight: 500;
- }
-</style>
diff --git a/uni_modules/uni-indexed-list/components/uni-indexed-list/uni-indexed-list.vue b/uni_modules/uni-indexed-list/components/uni-indexed-list/uni-indexed-list.vue
deleted file mode 100644
index ee3a7ec..0000000
--- a/uni_modules/uni-indexed-list/components/uni-indexed-list/uni-indexed-list.vue
+++ /dev/null
@@ -1,367 +0,0 @@
-<template>
- <view class="uni-indexed-list" ref="list" id="list">
- <!-- #ifdef APP-NVUE -->
- <list class="uni-indexed-list__scroll" scrollable="true" show-scrollbar="false">
- <cell v-for="(list, idx) in lists" :key="idx" :ref="'uni-indexed-list-' + idx">
- <!-- #endif -->
- <!-- #ifndef APP-NVUE -->
- <scroll-view :scroll-into-view="scrollViewId" class="uni-indexed-list__scroll" scroll-y>
- <view v-for="(list, idx) in lists" :key="idx" :id="'uni-indexed-list-' + idx">
- <!-- #endif -->
- <indexed-list-item :list="list" :loaded="loaded" :idx="idx" :showSelect="showSelect"
- @itemClick="onClick"></indexed-list-item>
- <!-- #ifndef APP-NVUE -->
- </view>
- </scroll-view>
- <!-- #endif -->
- <!-- #ifdef APP-NVUE -->
- </cell>
- </list>
- <!-- #endif -->
- <view class="uni-indexed-list__menu" @touchstart="touchStart" @touchmove.stop.prevent="touchMove"
- @touchend="touchEnd" @mousedown.stop="mousedown" @mousemove.stop.prevent="mousemove"
- @mouseleave.stop="mouseleave">
- <view v-for="(list, key) in lists" :key="key" class="uni-indexed-list__menu-item"
- :class="touchmoveIndex == key ? 'uni-indexed-list__menu--active' : ''">
- <text class="uni-indexed-list__menu-text"
- :class="touchmoveIndex == key ? 'uni-indexed-list__menu-text--active' : ''">{{ list.key }}</text>
- </view>
- </view>
- <view v-if="touchmove" class="uni-indexed-list__alert-wrapper">
- <text class="uni-indexed-list__alert">{{ lists[touchmoveIndex].key }}</text>
- </view>
- </view>
-</template>
-<script>
- import indexedListItem from './uni-indexed-list-item.vue'
- // #ifdef APP-NVUE
- const dom = weex.requireModule('dom');
- // #endif
- // #ifdef APP-PLUS
- function throttle(func, delay) {
- var prev = Date.now();
- return function() {
- var context = this;
- var args = arguments;
- var now = Date.now();
- if (now - prev >= delay) {
- func.apply(context, args);
- prev = Date.now();
- }
- }
- }
-
- function touchMove(e) {
- let pageY = e.touches[0].pageY
- let index = Math.floor((pageY - this.winOffsetY) / this.itemHeight)
- if (this.touchmoveIndex === index) {
- return false
- }
- let item = this.lists[index]
- if (item) {
- // #ifndef APP-NVUE
- this.scrollViewId = 'uni-indexed-list-' + index
- this.touchmoveIndex = index
- // #endif
- // #ifdef APP-NVUE
- dom.scrollToElement(this.$refs['uni-indexed-list-' + index][0], {
- animated: false
- })
- this.touchmoveIndex = index
- // #endif
- }
- }
- const throttleTouchMove = throttle(touchMove, 40)
- // #endif
-
- /**
- * IndexedList 绱㈠紩鍒楄〃
- * @description 鐢ㄤ簬灞曠ず绱㈠紩鍒楄〃
- * @tutorial https://ext.dcloud.net.cn/plugin?id=375
- * @property {Boolean} showSelect = [true|false] 灞曠ず妯″紡
- * @value true 灞曠ず妯″紡
- * @value false 閫夋嫨妯″紡
- * @property {Object} options 绱㈠紩鍒楄〃闇�瑕佺殑鏁版嵁瀵硅薄
- * @event {Function} click 鐐瑰嚮鍒楄〃浜嬩欢 锛岃繑鍥炲綋鍓嶉�夋嫨椤圭殑浜嬩欢瀵硅薄
- * @example <uni-indexed-list options="" showSelect="false" @click=""></uni-indexed-list>
- */
- export default {
- name: 'UniIndexedList',
- components: {
- indexedListItem
- },
- emits: ['click'],
- props: {
- options: {
- type: Array,
- default () {
- return []
- }
- },
- showSelect: {
- type: Boolean,
- default: false
- }
- },
- data() {
- return {
- lists: [],
- winHeight: 0,
- itemHeight: 0,
- winOffsetY: 0,
- touchmove: false,
- touchmoveIndex: -1,
- scrollViewId: '',
- touchmovable: true,
- loaded: false,
- isPC: false
- }
- },
- watch: {
- options: {
- handler: function() {
- this.setList()
- },
- deep: true
- }
- },
- mounted() {
- // #ifdef H5
- this.isPC = this.IsPC()
- // #endif
- setTimeout(() => {
- this.setList()
- }, 50)
- setTimeout(() => {
- this.loaded = true
- }, 300);
- },
- methods: {
- setList() {
- let index = 0;
- this.lists = []
- this.options.forEach((value, index) => {
- if (value.data.length === 0) {
- return
- }
- let indexBefore = index
- let items = value.data.map(item => {
- let obj = {}
- obj['key'] = value.letter
- obj['name'] = item
- obj['itemIndex'] = index
- index++
- obj.checked = item.checked ? item.checked : false
- return obj
- })
- this.lists.push({
- title: value.letter,
- key: value.letter,
- items: items,
- itemIndex: indexBefore
- })
- })
- // #ifndef APP-NVUE
- uni.createSelectorQuery()
- .in(this)
- .select('#list')
- .boundingClientRect()
- .exec(ret => {
- this.winOffsetY = ret[0].top
- this.winHeight = ret[0].height
- this.itemHeight = this.winHeight / this.lists.length
- })
- // #endif
- // #ifdef APP-NVUE
- dom.getComponentRect(this.$refs['list'], (res) => {
- this.winOffsetY = res.size.top
- this.winHeight = res.size.height
- this.itemHeight = this.winHeight / this.lists.length
- })
- // #endif
- },
- touchStart(e) {
- this.touchmove = true
- let pageY = this.isPC ? e.pageY : e.touches[0].pageY
- let index = Math.floor((pageY - this.winOffsetY) / this.itemHeight)
- let item = this.lists[index]
- if (item) {
- this.scrollViewId = 'uni-indexed-list-' + index
- this.touchmoveIndex = index
- // #ifdef APP-NVUE
- dom.scrollToElement(this.$refs['uni-indexed-list-' + index][0], {
- animated: false
- })
- // #endif
- }
- },
- touchMove(e) {
- // #ifndef APP-PLUS
- let pageY = this.isPC ? e.pageY : e.touches[0].pageY
- let index = Math.floor((pageY - this.winOffsetY) / this.itemHeight)
- if (this.touchmoveIndex === index) {
- return false
- }
- let item = this.lists[index]
- if (item) {
- this.scrollViewId = 'uni-indexed-list-' + index
- this.touchmoveIndex = index
- }
- // #endif
- // #ifdef APP-PLUS
- throttleTouchMove.call(this, e)
- // #endif
- },
- touchEnd() {
- this.touchmove = false
- // this.touchmoveIndex = -1
- },
-
- /**
- * 鍏煎 PC @tian
- */
-
- mousedown(e) {
- if (!this.isPC) return
- this.touchStart(e)
- },
- mousemove(e) {
- if (!this.isPC) return
- this.touchMove(e)
- },
- mouseleave(e) {
- if (!this.isPC) return
- this.touchEnd(e)
- },
-
- // #ifdef H5
- IsPC() {
- var userAgentInfo = navigator.userAgent;
- var Agents = ["Android", "iPhone", "SymbianOS", "Windows Phone", "iPad", "iPod"];
- var flag = true;
- for (let v = 0; v < Agents.length - 1; v++) {
- if (userAgentInfo.indexOf(Agents[v]) > 0) {
- flag = false;
- break;
- }
- }
- return flag;
- },
- // #endif
-
-
- onClick(e) {
- let {
- idx,
- index
- } = e
- let obj = {}
- for (let key in this.lists[idx].items[index]) {
- obj[key] = this.lists[idx].items[index][key]
- }
- let select = []
- if (this.showSelect) {
- this.lists[idx].items[index].checked = !this.lists[idx].items[index].checked
- this.lists.forEach((value, idx) => {
- value.items.forEach((item, index) => {
- if (item.checked) {
- let obj = {}
- for (let key in this.lists[idx].items[index]) {
- obj[key] = this.lists[idx].items[index][key]
- }
- select.push(obj)
- }
- })
- })
- }
- this.$emit('click', {
- item: obj,
- select: select
- })
- }
- }
- }
-</script>
-<style lang="scss" scoped>
- .uni-indexed-list {
- position: absolute;
- left: 0;
- top: 0;
- right: 0;
- bottom: 0;
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex-direction: row;
- }
-
- .uni-indexed-list__scroll {
- flex: 1;
- }
-
- .uni-indexed-list__menu {
- width: 24px;
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex-direction: column;
- }
-
- .uni-indexed-list__menu-item {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex: 1;
- align-items: center;
- justify-content: center;
- /* #ifdef H5 */
- cursor: pointer;
- /* #endif */
- }
-
- .uni-indexed-list__menu-text {
- font-size: 12px;
- text-align: center;
- color: #aaa;
- }
-
- .uni-indexed-list__menu--active {
- // background-color: rgb(200, 200, 200);
- }
-
- .uni-indexed-list__menu--active {}
-
- .uni-indexed-list__menu-text--active {
- border-radius: 16px;
- width: 16px;
- height: 16px;
- line-height: 16px;
- background-color: #007aff;
- color: #fff;
- }
-
- .uni-indexed-list__alert-wrapper {
- position: absolute;
- left: 0;
- top: 0;
- right: 0;
- bottom: 0;
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex-direction: row;
- align-items: center;
- justify-content: center;
- }
-
- .uni-indexed-list__alert {
- width: 80px;
- height: 80px;
- border-radius: 80px;
- text-align: center;
- line-height: 80px;
- font-size: 35px;
- color: #fff;
- background-color: rgba(0, 0, 0, 0.5);
- }
-</style>
diff --git a/uni_modules/uni-indexed-list/package.json b/uni_modules/uni-indexed-list/package.json
deleted file mode 100644
index 125c0e7..0000000
--- a/uni_modules/uni-indexed-list/package.json
+++ /dev/null
@@ -1,89 +0,0 @@
-{
- "id": "uni-indexed-list",
- "displayName": "uni-indexed-list 绱㈠紩鍒楄〃",
- "version": "1.2.1",
- "description": "绱㈠紩鍒楄〃缁勪欢锛屽彸渚у甫绱㈠紩鐨勫垪琛紝鏂逛究蹇�熷畾浣嶅埌鍏蜂綋鍐呭锛岄�氬父鐢ㄤ簬鍩庡競/鏈哄満閫夋嫨绛夊満鏅�",
- "keywords": [
- "uni-ui",
- "绱㈠紩鍒楄〃",
- "绱㈠紩",
- "鍒楄〃"
-],
- "repository": "https://github.com/dcloudio/uni-ui",
- "engines": {
- "HBuilderX": ""
- },
- "directories": {
- "example": "../../temps/example_temps"
- },
- "dcloudext": {
- "category": [
- "鍓嶇缁勪欢",
- "閫氱敤缁勪欢"
- ],
- "sale": {
- "regular": {
- "price": "0.00"
- },
- "sourcecode": {
- "price": "0.00"
- }
- },
- "contact": {
- "qq": ""
- },
- "declaration": {
- "ads": "鏃�",
- "data": "鏃�",
- "permissions": "鏃�"
- },
- "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui"
- },
- "uni_modules": {
- "dependencies": [
- "uni-scss",
- "uni-icons"
- ],
- "encrypt": [],
- "platforms": {
- "cloud": {
- "tcb": "y",
- "aliyun": "y"
- },
- "client": {
- "App": {
- "app-vue": "y",
- "app-nvue": "y"
- },
- "H5-mobile": {
- "Safari": "y",
- "Android Browser": "y",
- "寰俊娴忚鍣�(Android)": "y",
- "QQ娴忚鍣�(Android)": "y"
- },
- "H5-pc": {
- "Chrome": "y",
- "IE": "y",
- "Edge": "y",
- "Firefox": "y",
- "Safari": "y"
- },
- "灏忕▼搴�": {
- "寰俊": "y",
- "闃块噷": "y",
- "鐧惧害": "y",
- "瀛楄妭璺冲姩": "y",
- "QQ": "y"
- },
- "蹇簲鐢�": {
- "鍗庝负": "u",
- "鑱旂洘": "u"
- },
- "Vue": {
- "vue2": "y",
- "vue3": "y"
- }
- }
- }
- }
-}
diff --git a/uni_modules/uni-indexed-list/readme.md b/uni_modules/uni-indexed-list/readme.md
deleted file mode 100644
index 44ad84b..0000000
--- a/uni_modules/uni-indexed-list/readme.md
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
-## IndexedList 绱㈠紩鍒楄〃
-> **缁勪欢鍚嶏細uni-indexed-list**
-> 浠g爜鍧楋細 `uIndexedList`
-
-
-鐢ㄤ簬灞曠ず绱㈠紩鍒楄〃銆�
-
-### [鏌ョ湅鏂囨。](https://uniapp.dcloud.io/component/uniui/uni-indexed-list)
-#### 濡備娇鐢ㄨ繃绋嬩腑鏈変换浣曢棶棰橈紝鎴栬�呮偍瀵箄ni-ui鏈変竴浜涘ソ鐨勫缓璁紝娆㈣繋鍔犲叆 uni-ui 浜ゆ祦缇わ細871950839
diff --git a/uni_modules/uni-link/changelog.md b/uni_modules/uni-link/changelog.md
deleted file mode 100644
index 2cfbf59..0000000
--- a/uni_modules/uni-link/changelog.md
+++ /dev/null
@@ -1,17 +0,0 @@
-## 1.0.0锛�2021-11-19锛�
-- 浼樺寲 缁勪欢UI锛屽苟鎻愪緵璁捐璧勬簮锛岃瑙�:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource)
-- 鏂囨。杩佺Щ锛岃瑙�:[https://uniapp.dcloud.io/component/uniui/uni-link](https://uniapp.dcloud.io/component/uniui/uni-link)
-## 1.1.7锛�2021-11-08锛�
-## 0.0.7锛�2021-09-03锛�
-- 淇 鍦� nvue 涓嬩笉鏄剧ず鐨� bug
-## 0.0.6锛�2021-07-30锛�
-- 鏂板 鏀寔鑷畾涔夋彃妲�
-## 0.0.5锛�2021-06-21锛�
-- 鏂板 download 灞炴�э紝H5骞冲彴涓嬭浇鏂囦欢鍚�
-## 0.0.4锛�2021-05-12锛�
-- 鏂板 缁勪欢绀轰緥鍦板潃
-## 0.0.3锛�2021-03-09锛�
-- 鏂板 href 灞炴�ф敮鎸� tel:|mailto:
-
-## 0.0.2锛�2021-02-05锛�
-- 璋冩暣涓簎ni_modules鐩綍瑙勮寖
diff --git a/uni_modules/uni-link/components/uni-link/uni-link.vue b/uni_modules/uni-link/components/uni-link/uni-link.vue
deleted file mode 100644
index 27c5468..0000000
--- a/uni_modules/uni-link/components/uni-link/uni-link.vue
+++ /dev/null
@@ -1,128 +0,0 @@
-<template>
- <a v-if="isShowA" class="uni-link" :href="href"
- :class="{'uni-link--withline':showUnderLine===true||showUnderLine==='true'}"
- :style="{color,fontSize:fontSize+'px'}" :download="download">
- <slot>{{text}}</slot>
- </a>
- <!-- #ifndef APP-NVUE -->
- <text v-else class="uni-link" :class="{'uni-link--withline':showUnderLine===true||showUnderLine==='true'}"
- :style="{color,fontSize:fontSize+'px'}" @click="openURL">
- <slot>{{text}}</slot>
- </text>
- <!-- #endif -->
- <!-- #ifdef APP-NVUE -->
- <text v-else class="uni-link" :class="{'uni-link--withline':showUnderLine===true||showUnderLine==='true'}"
- :style="{color,fontSize:fontSize+'px'}" @click="openURL">
- {{text}}
- </text>
- <!-- #endif -->
-</template>
-
-<script>
- /**
- * Link 澶栭儴缃戦〉瓒呴摼鎺ョ粍浠�
- * @description uni-link鏄竴涓閮ㄧ綉椤佃秴閾炬帴缁勪欢锛屽湪灏忕▼搴忓唴澶嶅埗url锛屽湪app鍐呮墦寮�澶栭儴娴忚鍣紝鍦╤5绔墦寮�鏂扮綉椤�
- * @tutorial https://ext.dcloud.net.cn/plugin?id=1182
- * @property {String} href 鐐瑰嚮鍚庢墦寮�鐨勫閮ㄧ綉椤祏rl
- * @property {String} text 鏄剧ず鐨勬枃瀛�
- * @property {String} downlaod H5骞冲彴涓嬭浇鏂囦欢鍚�
- * @property {Boolean} showUnderLine 鏄惁鏄剧ず涓嬪垝绾�
- * @property {String} copyTips 鍦ㄥ皬绋嬪簭绔鍒堕摼鎺ユ椂鏄剧ず鐨勬彁绀鸿
- * @property {String} color 閾炬帴鏂囧瓧棰滆壊
- * @property {String} fontSize 閾炬帴鏂囧瓧澶у皬
- * @example * <uni-link href="https://ext.dcloud.net.cn" text="https://ext.dcloud.net.cn"></uni-link>
- */
- export default {
- name: 'uniLink',
- props: {
- href: {
- type: String,
- default: ''
- },
- text: {
- type: String,
- default: ''
- },
- download: {
- type: String,
- default: ''
- },
- showUnderLine: {
- type: [Boolean, String],
- default: true
- },
- copyTips: {
- type: String,
- default: '宸茶嚜鍔ㄥ鍒剁綉鍧�锛岃鍦ㄦ墜鏈烘祻瑙堝櫒閲岀矘璐磋缃戝潃'
- },
- color: {
- type: String,
- default: '#999999'
- },
- fontSize: {
- type: [Number, String],
- default: 14
- }
- },
- computed: {
- isShowA() {
- // #ifdef H5
- this._isH5 = true;
- // #endif
- if ((this.isMail() || this.isTel()) && this._isH5 === true) {
- return true;
- }
- return false;
- }
- },
- created() {
- this._isH5 = null;
- },
- methods: {
- isMail() {
- return this.href.startsWith('mailto:');
- },
- isTel() {
- return this.href.startsWith('tel:');
- },
- openURL() {
- // #ifdef APP-PLUS
- if (this.isTel()) {
- this.makePhoneCall(this.href.replace('tel:', ''));
- } else {
- plus.runtime.openURL(this.href);
- }
- // #endif
- // #ifdef H5
- window.open(this.href)
- // #endif
- // #ifdef MP
- uni.setClipboardData({
- data: this.href
- });
- uni.showModal({
- content: this.copyTips,
- showCancel: false
- });
- // #endif
- },
- makePhoneCall(phoneNumber) {
- uni.makePhoneCall({
- phoneNumber
- })
- }
- }
- }
-</script>
-
-<style>
- /* #ifndef APP-NVUE */
- .uni-link {
- cursor: pointer;
- }
-
- /* #endif */
- .uni-link--withline {
- text-decoration: underline;
- }
-</style>
diff --git a/uni_modules/uni-link/package.json b/uni_modules/uni-link/package.json
deleted file mode 100644
index 77b1986..0000000
--- a/uni_modules/uni-link/package.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "id": "uni-link",
- "displayName": "uni-link 瓒呴摼鎺�",
- "version": "1.0.0",
- "description": "uni-link鏄竴涓閮ㄧ綉椤佃秴閾炬帴缁勪欢锛屽湪灏忕▼搴忓唴澶嶅埗url锛屽湪app鍐呮墦寮�澶栭儴娴忚鍣紝鍦╤5绔墦",
- "keywords": [
- "uni-ui",
- "uniui",
- "link",
- "瓒呴摼鎺�",
- ""
-],
- "repository": "https://github.com/dcloudio/uni-ui",
- "engines": {
- "HBuilderX": ""
- },
- "directories": {
- "example": "../../temps/example_temps"
- },
- "dcloudext": {
- "category": [
- "鍓嶇缁勪欢",
- "閫氱敤缁勪欢"
- ],
- "sale": {
- "regular": {
- "price": "0.00"
- },
- "sourcecode": {
- "price": "0.00"
- }
- },
- "contact": {
- "qq": ""
- },
- "declaration": {
- "ads": "鏃�",
- "data": "鏃�",
- "permissions": "鏃�"
- },
- "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui"
- },
- "uni_modules": {
- "dependencies": ["uni-scss"],
- "encrypt": [],
- "platforms": {
- "cloud": {
- "tcb": "y",
- "aliyun": "y"
- },
- "client": {
- "App": {
- "app-vue": "y",
- "app-nvue": "y"
- },
- "H5-mobile": {
- "Safari": "y",
- "Android Browser": "y",
- "寰俊娴忚鍣�(Android)": "y",
- "QQ娴忚鍣�(Android)": "y"
- },
- "H5-pc": {
- "Chrome": "y",
- "IE": "y",
- "Edge": "y",
- "Firefox": "y",
- "Safari": "y"
- },
- "灏忕▼搴�": {
- "寰俊": "y",
- "闃块噷": "y",
- "鐧惧害": "y",
- "瀛楄妭璺冲姩": "y",
- "QQ": "y"
- },
- "蹇簲鐢�": {
- "鍗庝负": "y",
- "鑱旂洘": "y"
- },
- "Vue": {
- "vue2": "y",
- "vue3": "y"
- }
- }
- }
- }
-}
\ No newline at end of file
diff --git a/uni_modules/uni-link/readme.md b/uni_modules/uni-link/readme.md
deleted file mode 100644
index 7f09e94..0000000
--- a/uni_modules/uni-link/readme.md
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
-## Link 閾炬帴
-> **缁勪欢鍚嶏細uni-link**
-> 浠g爜鍧楋細 `uLink`
-
-
-uni-link鏄竴涓閮ㄧ綉椤佃秴閾炬帴缁勪欢锛屽湪灏忕▼搴忓唴澶嶅埗url锛屽湪app鍐呮墦寮�澶栭儴娴忚鍣紝鍦╤5绔墦寮�鏂扮綉椤点��
-
-### [鏌ョ湅鏂囨。](https://uniapp.dcloud.io/component/uniui/uni-link)
-#### 濡備娇鐢ㄨ繃绋嬩腑鏈変换浣曢棶棰橈紝鎴栬�呮偍瀵箄ni-ui鏈変竴浜涘ソ鐨勫缓璁紝娆㈣繋鍔犲叆 uni-ui 浜ゆ祦缇わ細871950839
\ No newline at end of file
diff --git a/uni_modules/uni-list/changelog.md b/uni_modules/uni-list/changelog.md
deleted file mode 100644
index 64513ef..0000000
--- a/uni_modules/uni-list/changelog.md
+++ /dev/null
@@ -1,18 +0,0 @@
-## 1.2.0锛�2021-11-23锛�
-- 浼樺寲 缁勪欢UI锛屽苟鎻愪緵璁捐璧勬簮锛岃瑙�:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource)
-- 鏂囨。杩佺Щ锛岃瑙�:[https://uniapp.dcloud.io/component/uniui/uni-list](https://uniapp.dcloud.io/component/uniui/uni-list)
-## 1.1.3锛�2021-08-30锛�
-- 淇 鍦╲ue3涓璽o灞炴�у湪鍙戣搴旂敤鐨勬椂鍊欐姤閿欑殑bug
-## 1.1.2锛�2021-07-30锛�
-- 浼樺寲 vue3涓嬩簨浠惰鍛婄殑闂
-## 1.1.1锛�2021-07-21锛�
-- 淇 涓庡叾浠栫粍浠跺祵濂椾娇鐢ㄦ椂锛岀偣鍑诲け鏁堢殑Bug
-## 1.1.0锛�2021-07-13锛�
-- 缁勪欢鍏煎 vue3锛屽浣曞垱寤簐ue3椤圭洰锛岃瑙� [uni-app 椤圭洰鏀寔 vue3 浠嬬粛](https://ask.dcloud.net.cn/article/37834)
-## 1.0.17锛�2021-05-12锛�
-- 鏂板 缁勪欢绀轰緥鍦板潃
-## 1.0.16锛�2021-02-05锛�
-- 浼樺寲 缁勪欢寮曠敤鍏崇郴锛岄�氳繃uni_modules寮曠敤缁勪欢
-## 1.0.15锛�2021-02-05锛�
-- 璋冩暣涓簎ni_modules鐩綍瑙勮寖
-- 淇 uni-list-chat 瑙掓爣鏄剧ず涓嶆甯哥殑闂
diff --git a/uni_modules/uni-list/components/uni-list-ad/uni-list-ad.vue b/uni_modules/uni-list/components/uni-list-ad/uni-list-ad.vue
deleted file mode 100644
index e256e4c..0000000
--- a/uni_modules/uni-list/components/uni-list-ad/uni-list-ad.vue
+++ /dev/null
@@ -1,107 +0,0 @@
-<template>
- <!-- #ifdef APP-NVUE -->
- <cell>
- <!-- #endif -->
- <view class="uni-list-ad">
- <view v-if="borderShow" :class="{'uni-list--border':border,'uni-list-item--first':isFirstChild}"></view>
- <ad style="width: 200px;height: 300px;border-width: 1px;border-color: red;border-style: solid;" adpid="1111111111"
- unit-id="" appid="" apid="" type="feed" @error="aderror" @close="closeAd"></ad>
- </view>
- <!-- #ifdef APP-NVUE -->
- </cell>
- <!-- #endif -->
-
-</template>
-
-<script>
- // #ifdef APP-NVUE
- const dom = uni.requireNativePlugin('dom');
- // #endif
- export default {
- name: 'UniListAd',
- props: {
- title: {
- type: String,
- default: '',
-
- }
- },
- // inject: ['list'],
- data() {
- return {
- isFirstChild: false,
- border: false,
- borderShow: true,
- }
- },
-
- mounted() {
- this.list = this.getForm()
- if (this.list) {
- if (!this.list.firstChildAppend) {
- this.list.firstChildAppend = true
- this.isFirstChild = true
- }
- this.border = this.list.border
- }
- },
- methods: {
- /**
- * 鑾峰彇鐖跺厓绱犲疄渚�
- */
- getForm(name = 'uniList') {
- let parent = this.$parent;
- let parentName = parent.$options.name;
- while (parentName !== name) {
- parent = parent.$parent;
- if (!parent) return false
- parentName = parent.$options.name;
- }
- return parent;
- },
- aderror(e) {
- console.log("aderror: " + JSON.stringify(e.detail));
- },
- closeAd(e) {
- this.borderShow = false
- }
- }
- }
-</script>
-
-<style lang="scss" scoped>
- .uni-list-ad {
- position: relative;
- border: 1px red solid;
- }
-
- .uni-list--border {
- position: relative;
- padding-bottom: 1px;
- /* #ifdef APP-PLUS */
- border-top-color: $uni-border-color;
- border-top-style: solid;
- border-top-width: 0.5px;
- /* #endif */
- margin-left: $uni-spacing-row-lg;
- }
-
- /* #ifndef APP-NVUE */
- .uni-list--border:after {
- position: absolute;
- top: 0;
- right: 0;
- left: 0;
- height: 1px;
- content: '';
- -webkit-transform: scaleY(.5);
- transform: scaleY(.5);
- background-color: $uni-border-color;
- }
-
- .uni-list-item--first:after {
- height: 0px;
- }
-
- /* #endif */
-</style>
diff --git a/uni_modules/uni-list/components/uni-list-chat/uni-list-chat.scss b/uni_modules/uni-list/components/uni-list-chat/uni-list-chat.scss
deleted file mode 100644
index 311f8d9..0000000
--- a/uni_modules/uni-list/components/uni-list-chat/uni-list-chat.scss
+++ /dev/null
@@ -1,58 +0,0 @@
-/**
- * 杩欓噷鏄� uni-list 缁勪欢鍐呯疆鐨勫父鐢ㄦ牱寮忓彉閲�
- * 濡傛灉闇�瑕佽鐩栨牱寮忥紝杩欓噷鎻愪緵浜嗗熀鏈殑缁勪欢鏍峰紡鍙橀噺锛屾偍鍙互灏濊瘯淇敼杩欓噷鐨勫彉閲忥紝鍘诲畬鎴愭牱寮忔浛鎹紝鑰屼笉鐢ㄥ幓淇敼婧愮爜
- *
- */
-
-// 鑳屾櫙鑹�
-$background-color : #fff;
-// 鍒嗗壊绾块鑹�
-$divide-line-color : #e5e5e5;
-
-// 榛樿澶村儚澶у皬锛屽闇�瑕佷慨鏀规鍊硷紝娉ㄦ剰鍚屾淇敼 js 涓殑鍊� const avatarWidth = xx 锛岀洰鍓嶅彧鏀寔鏂瑰舰澶村儚
-// nvue 椤甸潰涓嶆敮鎸佷慨鏀瑰ご鍍忓ぇ灏�
-$avatar-width : 45px ;
-
-// 澶村儚杈规
-$avatar-border-radius: 5px;
-$avatar-border-color: #eee;
-$avatar-border-width: 1px;
-
-// 鏍囬鏂囧瓧鏍峰紡
-$title-size : 16px;
-$title-color : #3b4144;
-$title-weight : normal;
-
-// 鎻忚堪鏂囧瓧鏍峰紡
-$note-size : 12px;
-$note-color : #999;
-$note-weight : normal;
-
-// 鍙充晶棰濆鍐呭榛樿鏍峰紡
-$right-text-size : 12px;
-$right-text-color : #999;
-$right-text-weight : normal;
-
-// 瑙掓爣鏍峰紡
-// nvue 椤甸潰涓嶆敮鎸佷慨鏀瑰渾鐐逛綅缃互鍙婂ぇ灏�
-// 瑙掓爣鍦ㄥ乏渚ф椂锛岃鏍囩殑浣嶇疆锛岄粯璁や负 0 锛岃礋鏁板乏/涓嬬Щ鍔紝姝f暟鍙�/涓婄Щ鍔�
-$badge-left: 0px;
-$badge-top: 0px;
-
-// 鏄剧ず鍦嗙偣鏃讹紝鍦嗙偣澶у皬
-$dot-width: 10px;
-$dot-height: 10px;
-
-// 鏄剧ず瑙掓爣鏃讹紝瑙掓爣澶у皬鍜屽瓧浣撳ぇ灏�
-$badge-size : 18px;
-$badge-font : 12px;
-// 鏄剧ず瑙掓爣鏃讹紝瑙掓爣鍓嶆櫙鑹�
-$badge-color : #fff;
-// 鏄剧ず瑙掓爣鏃讹紝瑙掓爣鑳屾櫙鑹�
-$badge-background-color : #ff5a5f;
-// 鏄剧ず瑙掓爣鏃讹紝瑙掓爣宸﹀彸闂磋窛
-$badge-space : 6px;
-
-// 鐘舵�佹牱寮�
-// 閫変腑棰滆壊
-$hover : #f5f5f5;
diff --git a/uni_modules/uni-list/components/uni-list-chat/uni-list-chat.vue b/uni_modules/uni-list/components/uni-list-chat/uni-list-chat.vue
deleted file mode 100644
index 0c8519e..0000000
--- a/uni_modules/uni-list/components/uni-list-chat/uni-list-chat.vue
+++ /dev/null
@@ -1,538 +0,0 @@
-<template>
- <!-- #ifdef APP-NVUE -->
- <cell>
- <!-- #endif -->
- <view :hover-class="!clickable && !link ? '' : 'uni-list-chat--hover'" class="uni-list-chat" @click.stop="onClick">
- <view :class="{ 'uni-list--border': border, 'uni-list-chat--first': isFirstChild }"></view>
- <view class="uni-list-chat__container">
- <view class="uni-list-chat__header-warp">
- <view v-if="avatarCircle || avatarList.length === 0" class="uni-list-chat__header" :class="{ 'header--circle': avatarCircle }">
- <image class="uni-list-chat__header-image" :src="avatar" mode="aspectFill"></image>
- </view>
- <!-- 澶村儚缁� -->
- <view v-else class="uni-list-chat__header">
- <view v-for="(item, index) in avatarList" :key="index" class="uni-list-chat__header-box" :class="computedAvatar"
- :style="{ width: imageWidth + 'px', height: imageWidth + 'px' }">
- <image class="uni-list-chat__header-image" :style="{ width: imageWidth + 'px', height: imageWidth + 'px' }" :src="item.url"
- mode="aspectFill"></image>
- </view>
- </view>
- </view>
- <view v-if="badgeText && badgePositon === 'left'" class="uni-list-chat__badge uni-list-chat__badge-pos" :class="[isSingle]">
- <text class="uni-list-chat__badge-text">{{ badgeText === 'dot' ? '' : badgeText }}</text>
- </view>
- <view class="uni-list-chat__content">
- <view class="uni-list-chat__content-main">
- <text class="uni-list-chat__content-title uni-ellipsis">{{ title }}</text>
- <text class="uni-list-chat__content-note uni-ellipsis">{{ note }}</text>
- </view>
- <view class="uni-list-chat__content-extra">
- <slot>
- <text class="uni-list-chat__content-extra-text">{{ time }}</text>
- <view v-if="badgeText && badgePositon === 'right'" class="uni-list-chat__badge" :class="[isSingle, badgePositon === 'right' ? 'uni-list-chat--right' : '']">
- <text class="uni-list-chat__badge-text">{{ badgeText === 'dot' ? '' : badgeText }}</text>
- </view>
- </slot>
- </view>
- </view>
- </view>
- </view>
- <!-- #ifdef APP-NVUE -->
- </cell>
- <!-- #endif -->
-</template>
-
-<script>
- // 澶村儚澶у皬
- const avatarWidth = 45;
-
- /**
- * ListChat 鑱婂ぉ鍒楄〃
- * @description 鑱婂ぉ鍒楄〃,鐢ㄤ簬鍒涘缓鑱婂ぉ绫诲垪琛�
- * @tutorial https://ext.dcloud.net.cn/plugin?id=24
- * @property {String} title 鏍囬
- * @property {String} note 鎻忚堪
- * @property {Boolean} clickable = [true|false] 鏄惁寮�鍚偣鍑诲弽棣堬紝榛樿涓篺alse
- * @property {String} badgeText 鏁板瓧瑙掓爣鍐呭
- * @property {String} badgePositon = [left|right] 瑙掓爣浣嶇疆锛岄粯璁や负 right
- * @property {String} link = [false锝渘avigateTo|redirectTo|reLaunch|switchTab] 鏄惁灞曠ず鍙充晶绠ご骞跺紑鍚偣鍑诲弽棣堬紝榛樿涓篺alse
- * @value false 涓嶅紑鍚�
- * @value navigateTo 鍚� uni.navigateTo()
- * @value redirectTo 鍚� uni.redirectTo()
- * @value reLaunch 鍚� uni.reLaunch()
- * @value switchTab 鍚� uni.switchTab()
- * @property {String | PageURIString} to 璺宠浆鐩爣椤甸潰
- * @property {String} time 鍙充晶鏃堕棿鏄剧ず
- * @property {Boolean} avatarCircle = [true|false] 鏄惁鏄剧ず鍦嗗舰澶村儚锛岄粯璁や负false
- * @property {String} avatar 澶村儚鍦板潃锛宎vatarCircle 涓嶅~鏃剁敓鏁�
- * @property {Array} avatarList 澶村儚缁勶紝鏍煎紡涓� [{url:''}]
- * @event {Function} click 鐐瑰嚮 uniListChat 瑙﹀彂浜嬩欢
- */
- export default {
- name: 'UniListChat',
- emits:['click'],
- props: {
- title: {
- type: String,
- default: ''
- },
- note: {
- type: String,
- default: ''
- },
- clickable: {
- type: Boolean,
- default: false
- },
- link: {
- type: [Boolean, String],
- default: false
- },
- to: {
- type: String,
- default: ''
- },
- badgeText: {
- type: [String, Number],
- default: ''
- },
- badgePositon: {
- type: String,
- default: 'right'
- },
- time: {
- type: String,
- default: ''
- },
- avatarCircle: {
- type: Boolean,
- default: false
- },
- avatar: {
- type: String,
- default: ''
- },
- avatarList: {
- type: Array,
- default () {
- return [];
- }
- }
- },
- // inject: ['list'],
- computed: {
- isSingle() {
- if (this.badgeText === 'dot') {
- return 'uni-badge--dot';
- } else {
- const badgeText = this.badgeText.toString();
- if (badgeText.length > 1) {
- return 'uni-badge--complex';
- } else {
- return 'uni-badge--single';
- }
- }
- },
- computedAvatar() {
- if (this.avatarList.length > 4) {
- this.imageWidth = avatarWidth * 0.31;
- return 'avatarItem--3';
- } else if (this.avatarList.length > 1) {
- this.imageWidth = avatarWidth * 0.47;
- return 'avatarItem--2';
- } else {
- this.imageWidth = avatarWidth;
- return 'avatarItem--1';
- }
- }
- },
- data() {
- return {
- isFirstChild: false,
- border: true,
- // avatarList: 3,
- imageWidth: 50
- };
- },
- mounted() {
- this.list = this.getForm()
- if (this.list) {
- if (!this.list.firstChildAppend) {
- this.list.firstChildAppend = true;
- this.isFirstChild = true;
- }
- this.border = this.list.border;
- }
- },
- methods: {
- /**
- * 鑾峰彇鐖跺厓绱犲疄渚�
- */
- getForm(name = 'uniList') {
- let parent = this.$parent;
- let parentName = parent.$options.name;
- while (parentName !== name) {
- parent = parent.$parent;
- if (!parent) return false
- parentName = parent.$options.name;
- }
- return parent;
- },
- onClick() {
- if (this.to !== '') {
- this.openPage();
- return;
- }
-
- if (this.clickable || this.link) {
- this.$emit('click', {
- data: {}
- });
- }
- },
- openPage() {
- if (['navigateTo', 'redirectTo', 'reLaunch', 'switchTab'].indexOf(this.link) !== -1) {
- this.pageApi(this.link);
- } else {
- this.pageApi('navigateTo');
- }
- },
- pageApi(api) {
- uni[api]({
- url: this.to,
- success: res => {
- this.$emit('click', {
- data: res
- });
- },
- fail: err => {
- this.$emit('click', {
- data: err
- });
- console.error(err.errMsg);
- }
- });
- }
- }
- };
-</script>
-
-<style lang="scss" scoped>
- $uni-font-size-lg:16px;
- $uni-spacing-row-sm: 5px;
- $uni-spacing-row-base: 10px;
- $uni-spacing-row-lg: 15px;
- $background-color: #fff;
- $divide-line-color: #e5e5e5;
- $avatar-width: 45px;
- $avatar-border-radius: 5px;
- $avatar-border-color: #eee;
- $avatar-border-width: 1px;
- $title-size: 16px;
- $title-color: #3b4144;
- $title-weight: normal;
- $note-size: 12px;
- $note-color: #999;
- $note-weight: normal;
- $right-text-size: 12px;
- $right-text-color: #999;
- $right-text-weight: normal;
- $badge-left: 0px;
- $badge-top: 0px;
- $dot-width: 10px;
- $dot-height: 10px;
- $badge-size: 18px;
- $badge-font: 12px;
- $badge-color: #fff;
- $badge-background-color: #ff5a5f;
- $badge-space: 6px;
- $hover: #f5f5f5;
-
- .uni-list-chat {
- font-size: $uni-font-size-lg;
- position: relative;
- flex-direction: column;
- justify-content: space-between;
- background-color: $background-color;
- }
-
- // .uni-list-chat--disabled {
- // opacity: 0.3;
- // }
-
- .uni-list-chat--hover {
- background-color: $hover;
- }
-
- .uni-list--border {
- position: relative;
- margin-left: $uni-spacing-row-lg;
- /* #ifdef APP-PLUS */
- border-top-color: $divide-line-color;
- border-top-style: solid;
- border-top-width: 0.5px;
- /* #endif */
- }
-
- /* #ifndef APP-NVUE */
- .uni-list--border:after {
- position: absolute;
- top: 0;
- right: 0;
- left: 0;
- height: 1px;
- content: '';
- -webkit-transform: scaleY(0.5);
- transform: scaleY(0.5);
- background-color: $divide-line-color;
- }
-
- .uni-list-item--first:after {
- height: 0px;
- }
-
- /* #endif */
-
- .uni-list-chat--first {
- border-top-width: 0px;
- }
-
- .uni-ellipsis {
- /* #ifndef APP-NVUE */
- overflow: hidden;
- white-space: nowrap;
- text-overflow: ellipsis;
- /* #endif */
- /* #ifdef APP-NVUE */
- lines: 1;
- /* #endif */
- }
-
- .uni-ellipsis-2 {
- /* #ifndef APP-NVUE */
- overflow: hidden;
- text-overflow: ellipsis;
- display: -webkit-box;
- -webkit-line-clamp: 2;
- -webkit-box-orient: vertical;
- /* #endif */
-
- /* #ifdef APP-NVUE */
- lines: 2;
- /* #endif */
- }
-
- .uni-list-chat__container {
- position: relative;
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex-direction: row;
- flex: 1;
- padding: $uni-spacing-row-base $uni-spacing-row-lg;
- position: relative;
- overflow: hidden;
- }
-
- .uni-list-chat__header-warp {
- position: relative;
- }
-
- .uni-list-chat__header {
- /* #ifndef APP-NVUE */
- display: flex;
- align-content: center;
- /* #endif */
- flex-direction: row;
- justify-content: center;
- align-items: center;
- flex-wrap: wrap-reverse;
- /* #ifdef APP-NVUE */
- width: 50px;
- height: 50px;
- /* #endif */
- /* #ifndef APP-NVUE */
- width: $avatar-width;
- height: $avatar-width;
- /* #endif */
-
- border-radius: $avatar-border-radius;
- border-color: $avatar-border-color;
- border-width: $avatar-border-width;
- border-style: solid;
- overflow: hidden;
- }
-
- .uni-list-chat__header-box {
- /* #ifndef APP-PLUS */
- box-sizing: border-box;
- display: flex;
- width: $avatar-width;
- height: $avatar-width;
- /* #endif */
- /* #ifdef APP-NVUE */
- width: 50px;
- height: 50px;
- /* #endif */
- overflow: hidden;
- border-radius: 2px;
- }
-
- .uni-list-chat__header-image {
- margin: 1px;
- /* #ifdef APP-NVUE */
- width: 50px;
- height: 50px;
- /* #endif */
- /* #ifndef APP-NVUE */
- width: $avatar-width;
- height: $avatar-width;
- /* #endif */
- }
-
- /* #ifndef APP-NVUE */
- .uni-list-chat__header-image {
- display: block;
- width: 100%;
- height: 100%;
- }
-
- .avatarItem--1 {
- width: 100%;
- height: 100%;
- }
-
- .avatarItem--2 {
- width: 47%;
- height: 47%;
- }
-
- .avatarItem--3 {
- width: 32%;
- height: 32%;
- }
-
- /* #endif */
- .header--circle {
- border-radius: 50%;
- }
-
- .uni-list-chat__content {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex-direction: row;
- flex: 1;
- overflow: hidden;
- padding: 2px 0;
- }
-
- .uni-list-chat__content-main {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex-direction: column;
- justify-content: space-between;
- padding-left: $uni-spacing-row-base;
- flex: 1;
- overflow: hidden;
- }
-
- .uni-list-chat__content-title {
- font-size: $title-size;
- color: $title-color;
- font-weight: $title-weight;
- overflow: hidden;
- }
-
- .uni-list-chat__content-note {
- margin-top: 3px;
- color: $note-color;
- font-size: $note-size;
- font-weight: $title-weight;
- overflow: hidden;
- }
-
- .uni-list-chat__content-extra {
- /* #ifndef APP-NVUE */
- flex-shrink: 0;
- display: flex;
- /* #endif */
- flex-direction: column;
- justify-content: space-between;
- align-items: flex-end;
- margin-left: 5px;
- }
-
- .uni-list-chat__content-extra-text {
- color: $right-text-color;
- font-size: $right-text-size;
- font-weight: $right-text-weight;
- overflow: hidden;
- }
-
- .uni-list-chat__badge-pos {
- position: absolute;
- /* #ifdef APP-NVUE */
- left: 55px;
- top: 3px;
- /* #endif */
- /* #ifndef APP-NVUE */
- left: calc(#{$avatar-width} + 10px - #{$badge-space} + #{$badge-left});
- top: calc(#{$uni-spacing-row-base}/ 2 + 1px + #{$badge-top});
- /* #endif */
- }
-
- .uni-list-chat__badge {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- justify-content: center;
- align-items: center;
- border-radius: 100px;
- background-color: $badge-background-color;
- }
-
- .uni-list-chat__badge-text {
- color: $badge-color;
- font-size: $badge-font;
- }
-
- .uni-badge--single {
- /* #ifndef APP-NVUE */
- // left: calc(#{$avatar-width} + 7px + #{$badge-left});
- /* #endif */
- width: $badge-size;
- height: $badge-size;
- }
-
- .uni-badge--complex {
- /* #ifdef APP-NVUE */
- left: 50px;
- /* #endif */
- /* #ifndef APP-NVUE */
- width: auto;
- /* #endif */
- height: $badge-size;
- padding: 0 $badge-space;
- }
-
- .uni-badge--dot {
- /* #ifdef APP-NVUE */
- left: 60px;
- top: 6px;
- /* #endif */
- /* #ifndef APP-NVUE */
- left: calc(#{$avatar-width} + 15px - #{$dot-width}/ 2 + 1px + #{$badge-left});
- /* #endif */
- width: $dot-width;
- height: $dot-height;
- padding: 0;
- }
-
- .uni-list-chat--right {
- /* #ifdef APP-NVUE */
- left: 0;
- /* #endif */
- }
-</style>
diff --git a/uni_modules/uni-list/components/uni-list-item/uni-list-item.vue b/uni_modules/uni-list/components/uni-list-item/uni-list-item.vue
deleted file mode 100644
index c3a942a..0000000
--- a/uni_modules/uni-list/components/uni-list-item/uni-list-item.vue
+++ /dev/null
@@ -1,474 +0,0 @@
-<template>
- <!-- #ifdef APP-NVUE -->
- <cell>
- <!-- #endif -->
-
- <view :class="{ 'uni-list-item--disabled': disabled }"
- :hover-class="(!clickable && !link) || disabled || showSwitch ? '' : 'uni-list-item--hover'"
- class="uni-list-item" @click="onClick">
- <view v-if="!isFirstChild" class="border--left" :class="{ 'uni-list--border': border }"></view>
- <view class="uni-list-item__container"
- :class="{ 'container--right': showArrow || link, 'flex--direction': direction === 'column' }">
- <slot name="header">
- <view class="uni-list-item__header">
- <view v-if="thumb" class="uni-list-item__icon">
- <image :src="thumb" class="uni-list-item__icon-img" :class="['uni-list--' + thumbSize]" />
- </view>
- <view v-else-if="showExtraIcon" class="uni-list-item__icon">
- <uni-icons :color="extraIcon.color" :size="extraIcon.size" :type="extraIcon.type" />
- </view>
- </view>
- </slot>
- <slot name="body">
- <view class="uni-list-item__content"
- :class="{ 'uni-list-item__content--center': thumb || showExtraIcon || showBadge || showSwitch }">
- <text v-if="title" class="uni-list-item__content-title"
- :class="[ellipsis !== 0 && ellipsis <= 2 ? 'uni-ellipsis-' + ellipsis : '']">{{ title }}</text>
- <text v-if="note" class="uni-list-item__content-note">{{ note }}</text>
- </view>
- </slot>
- <slot name="footer">
- <view v-if="rightText || showBadge || showSwitch" class="uni-list-item__extra"
- :class="{ 'flex--justify': direction === 'column' }">
- <text v-if="rightText" class="uni-list-item__extra-text">{{ rightText }}</text>
- <uni-badge v-if="showBadge" :type="badgeType" :text="badgeText" />
- <switch v-if="showSwitch" :disabled="disabled" :checked="switchChecked"
- @change="onSwitchChange" />
- </view>
- </slot>
- </view>
- <uni-icons v-if="showArrow || link" :size="16" class="uni-icon-wrapper" color="#bbb" type="arrowright" />
- </view>
- <!-- #ifdef APP-NVUE -->
- </cell>
- <!-- #endif -->
-</template>
-
-<script>
- /**
- * ListItem 鍒楄〃瀛愮粍浠�
- * @description 鍒楄〃瀛愮粍浠�
- * @tutorial https://ext.dcloud.net.cn/plugin?id=24
- * @property {String} title 鏍囬
- * @property {String} note 鎻忚堪
- * @property {String} thumb 宸︿晶缂╃暐鍥撅紝鑻humb鏈夊�硷紝鍒欎笉浼氭樉绀烘墿灞曞浘鏍�
- * @property {String} thumbSize = [lg|base|sm] 鐣ョ缉鍥惧ぇ灏�
- * @value lg 澶у浘
- * @value base 涓�鑸�
- * @value sm 灏忓浘
- * @property {String} badgeText 鏁板瓧瑙掓爣鍐呭
- * @property {String} badgeType 鏁板瓧瑙掓爣绫诲瀷锛屽弬鑰僛uni-icons](https://ext.dcloud.net.cn/plugin?id=21)
- * @property {String} rightText 鍙充晶鏂囧瓧鍐呭
- * @property {Boolean} disabled = [true|false] 鏄惁绂佺敤
- * @property {Boolean} clickable = [true|false] 鏄惁寮�鍚偣鍑诲弽棣�
- * @property {String} link = [navigateTo|redirectTo|reLaunch|switchTab] 鏄惁灞曠ず鍙充晶绠ご骞跺紑鍚偣鍑诲弽棣�
- * @value navigateTo 鍚� uni.navigateTo()
- * @value redirectTo 鍚� uni.redirectTo()
- * @value reLaunch 鍚� uni.reLaunch()
- * @value switchTab 鍚� uni.switchTab()
- * @property {String | PageURIString} to 璺宠浆鐩爣椤甸潰
- * @property {Boolean} showBadge = [true|false] 鏄惁鏄剧ず鏁板瓧瑙掓爣
- * @property {Boolean} showSwitch = [true|false] 鏄惁鏄剧ずSwitch
- * @property {Boolean} switchChecked = [true|false] Switch鏄惁琚�変腑
- * @property {Boolean} showExtraIcon = [true|false] 宸︿晶鏄惁鏄剧ず鎵╁睍鍥炬爣
- * @property {Object} extraIcon 鎵╁睍鍥炬爣鍙傛暟锛屾牸寮忎负 {color: '#4cd964',size: '22',type: 'spinner'}
- * @property {String} direction = [row|column] 鎺掔増鏂瑰悜
- * @value row 姘村钩鎺掑垪
- * @value column 鍨傜洿鎺掑垪
- * @event {Function} click 鐐瑰嚮 uniListItem 瑙﹀彂浜嬩欢
- * @event {Function} switchChange 鐐瑰嚮鍒囨崲 Switch 鏃惰Е鍙�
- */
- export default {
- name: 'UniListItem',
- emits: ['click', 'switchChange'],
- props: {
- direction: {
- type: String,
- default: 'row'
- },
- title: {
- type: String,
- default: ''
- },
- note: {
- type: String,
- default: ''
- },
- ellipsis: {
- type: [Number,String],
- default: 0
- },
- disabled: {
- type: [Boolean, String],
- default: false
- },
- clickable: {
- type: Boolean,
- default: false
- },
- showArrow: {
- type: [Boolean, String],
- default: false
- },
- link: {
- type: [Boolean, String],
- default: false
- },
- to: {
- type: String,
- default: ''
- },
- showBadge: {
- type: [Boolean, String],
- default: false
- },
- showSwitch: {
- type: [Boolean, String],
- default: false
- },
- switchChecked: {
- type: [Boolean, String],
- default: false
- },
- badgeText: {
- type: String,
- default: ''
- },
- badgeType: {
- type: String,
- default: 'success'
- },
- rightText: {
- type: String,
- default: ''
- },
- thumb: {
- type: String,
- default: ''
- },
- thumbSize: {
- type: String,
- default: 'base'
- },
- showExtraIcon: {
- type: [Boolean, String],
- default: false
- },
- extraIcon: {
- type: Object,
- default () {
- return {
- type: 'contact',
- color: '#000000',
- size: 20
- };
- }
- },
- border: {
- type: Boolean,
- default: true
- }
- },
- // inject: ['list'],
- data() {
- return {
- isFirstChild: false
- };
- },
- mounted() {
- this.list = this.getForm()
- // 鍒ゆ柇鏄惁瀛樺湪 uni-list 缁勪欢
- if (this.list) {
- if (!this.list.firstChildAppend) {
- this.list.firstChildAppend = true;
- this.isFirstChild = true;
- }
- }
- },
- methods: {
- /**
- * 鑾峰彇鐖跺厓绱犲疄渚�
- */
- getForm(name = 'uniList') {
- let parent = this.$parent;
- let parentName = parent.$options.name;
- while (parentName !== name) {
- parent = parent.$parent;
- if (!parent) return false
- parentName = parent.$options.name;
- }
- return parent;
- },
- onClick() {
- if (this.to !== '') {
- this.openPage();
- return;
- }
- if (this.clickable || this.link) {
- this.$emit('click', {
- data: {}
- });
- }
- },
- onSwitchChange(e) {
- this.$emit('switchChange', e.detail);
- },
- openPage() {
- if (['navigateTo', 'redirectTo', 'reLaunch', 'switchTab'].indexOf(this.link) !== -1) {
- this.pageApi(this.link);
- } else {
- this.pageApi('navigateTo');
- }
- },
- pageApi(api) {
- let callback = {
- url: this.to,
- success: res => {
- this.$emit('click', {
- data: res
- });
- },
- fail: err => {
- this.$emit('click', {
- data: err
- });
- }
- }
- switch (api) {
- case 'navigateTo':
- uni.navigateTo(callback)
- break
- case 'redirectTo':
- uni.redirectTo(callback)
- break
- case 'reLaunch':
- uni.reLaunch(callback)
- break
- case 'switchTab':
- uni.switchTab(callback)
- break
- default:
- uni.navigateTo(callback)
- }
- }
- }
- };
-</script>
-
-<style lang="scss">
- $uni-font-size-sm:12px;
- $uni-font-size-base:14px;
- $uni-font-size-lg:16px;
- $uni-spacing-col-lg: 12px;
- $uni-spacing-row-lg: 15px;
- $uni-img-size-sm:20px;
- $uni-img-size-base:26px;
- $uni-img-size-lg:40px;
- $uni-border-color:#e5e5e5;
- $uni-bg-color-hover:#f1f1f1;
- $uni-text-color-grey:#999;
- $list-item-pd: $uni-spacing-col-lg $uni-spacing-row-lg;
-
- .uni-list-item {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- font-size: $uni-font-size-lg;
- position: relative;
- justify-content: space-between;
- align-items: center;
- background-color: #fff;
- flex-direction: row;
- /* #ifdef H5 */
- cursor: pointer;
- /* #endif */
- }
-
- .uni-list-item--disabled {
- opacity: 0.3;
- }
-
- .uni-list-item--hover {
- background-color: $uni-bg-color-hover;
- }
-
- .uni-list-item__container {
- position: relative;
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex-direction: row;
- padding: $list-item-pd;
- padding-left: $uni-spacing-row-lg;
- flex: 1;
- overflow: hidden;
- // align-items: center;
- }
-
- .container--right {
- padding-right: 0;
- }
-
- // .border--left {
- // margin-left: $uni-spacing-row-lg;
- // }
-
- .uni-list--border {
- position: absolute;
- top: 0;
- right: 0;
- left: 0;
- /* #ifdef APP-NVUE */
- border-top-color: $uni-border-color;
- border-top-style: solid;
- border-top-width: 0.5px;
- /* #endif */
- }
-
- /* #ifndef APP-NVUE */
- .uni-list--border:after {
- position: absolute;
- top: 0;
- right: 0;
- left: 0;
- height: 1px;
- content: '';
- -webkit-transform: scaleY(0.5);
- transform: scaleY(0.5);
- background-color: $uni-border-color;
- }
-
- /* #endif */
-
- .uni-list-item__content {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- padding-right: 8px;
- flex: 1;
- color: #3b4144;
- // overflow: hidden;
- flex-direction: column;
- justify-content: space-between;
- overflow: hidden;
- }
-
- .uni-list-item__content--center {
- justify-content: center;
- }
-
- .uni-list-item__content-title {
- font-size: $uni-font-size-base;
- color: #3b4144;
- overflow: hidden;
- }
-
- .uni-list-item__content-note {
- margin-top: 6rpx;
- color: $uni-text-color-grey;
- font-size: $uni-font-size-sm;
- overflow: hidden;
- }
-
- .uni-list-item__extra {
- // width: 25%;
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex-direction: row;
- justify-content: flex-end;
- align-items: center;
- }
-
- .uni-list-item__header {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex-direction: row;
- align-items: center;
- }
-
- .uni-list-item__icon {
- margin-right: 18rpx;
- flex-direction: row;
- justify-content: center;
- align-items: center;
- }
-
- .uni-list-item__icon-img {
- /* #ifndef APP-NVUE */
- display: block;
- /* #endif */
- height: $uni-img-size-base;
- width: $uni-img-size-base;
- margin-right: 10px;
- }
-
- .uni-icon-wrapper {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- align-items: center;
- padding: 0 10px;
- }
-
- .flex--direction {
- flex-direction: column;
- /* #ifndef APP-NVUE */
- align-items: initial;
- /* #endif */
- }
-
- .flex--justify {
- /* #ifndef APP-NVUE */
- justify-content: initial;
- /* #endif */
- }
-
- .uni-list--lg {
- height: $uni-img-size-lg;
- width: $uni-img-size-lg;
- }
-
- .uni-list--base {
- height: $uni-img-size-base;
- width: $uni-img-size-base;
- }
-
- .uni-list--sm {
- height: $uni-img-size-sm;
- width: $uni-img-size-sm;
- }
-
- .uni-list-item__extra-text {
- color: $uni-text-color-grey;
- font-size: $uni-font-size-sm;
- }
-
- .uni-ellipsis-1 {
- /* #ifndef APP-NVUE */
- overflow: hidden;
- white-space: nowrap;
- text-overflow: ellipsis;
- /* #endif */
- /* #ifdef APP-NVUE */
- lines: 1;
- text-overflow:ellipsis;
- /* #endif */
- }
-
- .uni-ellipsis-2 {
- /* #ifndef APP-NVUE */
- overflow: hidden;
- text-overflow: ellipsis;
- display: -webkit-box;
- -webkit-line-clamp: 2;
- -webkit-box-orient: vertical;
- /* #endif */
-
- /* #ifdef APP-NVUE */
- lines: 2;
- text-overflow:ellipsis;
- /* #endif */
- }
-</style>
diff --git "a/uni_modules/uni-list/components/uni-list/uni-list - \345\211\257\346\234\254.vue" "b/uni_modules/uni-list/components/uni-list/uni-list - \345\211\257\346\234\254.vue"
deleted file mode 100644
index 1c85003..0000000
--- "a/uni_modules/uni-list/components/uni-list/uni-list - \345\211\257\346\234\254.vue"
+++ /dev/null
@@ -1,106 +0,0 @@
-<template>
- <!-- #ifndef APP-NVUE -->
- <view class="uni-list uni-border-top-bottom">
- <view v-if="border" class="uni-list--border-top"></view>
- <slot />
- <view v-if="border" class="uni-list--border-bottom"></view>
- </view>
- <!-- #endif -->
- <!-- #ifdef APP-NVUE -->
- <list class="uni-list" :class="{ 'uni-list--border': border }" :enableBackToTop="enableBackToTop" loadmoreoffset="15"><slot /></list>
- <!-- #endif -->
-</template>
-
-<script>
-/**
- * List 鍒楄〃
- * @description 鍒楄〃缁勪欢
- * @tutorial https://ext.dcloud.net.cn/plugin?id=24
- * @property {String} border = [true|false] 鏍囬
- */
-export default {
- name: 'uniList',
- 'mp-weixin': {
- options: {
- multipleSlots: false
- }
- },
- props: {
- enableBackToTop: {
- type: [Boolean, String],
- default: false
- },
- scrollY: {
- type: [Boolean, String],
- default: false
- },
- border: {
- type: Boolean,
- default: true
- }
- },
- // provide() {
- // return {
- // list: this
- // };
- // },
- created() {
- this.firstChildAppend = false;
- },
- methods: {
- loadMore(e) {
- this.$emit('scrolltolower');
- }
- }
-};
-</script>
-<style lang="scss" scoped>
-.uni-list {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- background-color: $uni-bg-color;
- position: relative;
- flex-direction: column;
-}
-
-.uni-list--border {
- position: relative;
- /* #ifdef APP-NVUE */
- border-top-color: $uni-border-color;
- border-top-style: solid;
- border-top-width: 0.5px;
- border-bottom-color: $uni-border-color;
- border-bottom-style: solid;
- border-bottom-width: 0.5px;
- /* #endif */
- z-index: -1;
-}
-
-/* #ifndef APP-NVUE */
-
-.uni-list--border-top {
- position: absolute;
- top: 0;
- right: 0;
- left: 0;
- height: 1px;
- -webkit-transform: scaleY(0.5);
- transform: scaleY(0.5);
- background-color: $uni-border-color;
- z-index: 1;
-}
-
-.uni-list--border-bottom {
- position: absolute;
- bottom: 0;
- right: 0;
- left: 0;
- height: 1px;
- -webkit-transform: scaleY(0.5);
- transform: scaleY(0.5);
- background-color: $uni-border-color;
-}
-
-/* #endif */
-</style>
diff --git a/uni_modules/uni-list/components/uni-list/uni-list.vue b/uni_modules/uni-list/components/uni-list/uni-list.vue
deleted file mode 100644
index 976a80d..0000000
--- a/uni_modules/uni-list/components/uni-list/uni-list.vue
+++ /dev/null
@@ -1,108 +0,0 @@
-<template>
- <!-- #ifndef APP-NVUE -->
- <view class="uni-list uni-border-top-bottom">
- <view v-if="border" class="uni-list--border-top"></view>
- <slot />
- <view v-if="border" class="uni-list--border-bottom"></view>
- </view>
- <!-- #endif -->
- <!-- #ifdef APP-NVUE -->
- <list class="uni-list" :class="{ 'uni-list--border': border }" :enableBackToTop="enableBackToTop" loadmoreoffset="15"><slot /></list>
- <!-- #endif -->
-</template>
-
-<script>
-/**
- * List 鍒楄〃
- * @description 鍒楄〃缁勪欢
- * @tutorial https://ext.dcloud.net.cn/plugin?id=24
- * @property {String} border = [true|false] 鏍囬
- */
-export default {
- name: 'uniList',
- 'mp-weixin': {
- options: {
- multipleSlots: false
- }
- },
- props: {
- enableBackToTop: {
- type: [Boolean, String],
- default: false
- },
- scrollY: {
- type: [Boolean, String],
- default: false
- },
- border: {
- type: Boolean,
- default: true
- }
- },
- // provide() {
- // return {
- // list: this
- // };
- // },
- created() {
- this.firstChildAppend = false;
- },
- methods: {
- loadMore(e) {
- this.$emit('scrolltolower');
- }
- }
-};
-</script>
-<style lang="scss" scoped>
-$uni-bg-color:#ffffff;
-$uni-border-color:#e5e5e5;
-.uni-list {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- background-color: $uni-bg-color;
- position: relative;
- flex-direction: column;
-}
-
-.uni-list--border {
- position: relative;
- /* #ifdef APP-NVUE */
- border-top-color: $uni-border-color;
- border-top-style: solid;
- border-top-width: 0.5px;
- border-bottom-color: $uni-border-color;
- border-bottom-style: solid;
- border-bottom-width: 0.5px;
- /* #endif */
- z-index: -1;
-}
-
-/* #ifndef APP-NVUE */
-
-.uni-list--border-top {
- position: absolute;
- top: 0;
- right: 0;
- left: 0;
- height: 1px;
- -webkit-transform: scaleY(0.5);
- transform: scaleY(0.5);
- background-color: $uni-border-color;
- z-index: 1;
-}
-
-.uni-list--border-bottom {
- position: absolute;
- bottom: 0;
- right: 0;
- left: 0;
- height: 1px;
- -webkit-transform: scaleY(0.5);
- transform: scaleY(0.5);
- background-color: $uni-border-color;
-}
-
-/* #endif */
-</style>
diff --git a/uni_modules/uni-list/components/uni-list/uni-refresh.vue b/uni_modules/uni-list/components/uni-list/uni-refresh.vue
deleted file mode 100644
index 3b4c5a2..0000000
--- a/uni_modules/uni-list/components/uni-list/uni-refresh.vue
+++ /dev/null
@@ -1,65 +0,0 @@
-<template>
- <!-- #ifdef APP-NVUE -->
- <refresh :display="display" @refresh="onrefresh" @pullingdown="onpullingdown">
- <slot />
- </refresh>
- <!-- #endif -->
- <!-- #ifndef APP-NVUE -->
- <view ref="uni-refresh" class="uni-refresh" v-show="isShow">
- <slot />
- </view>
- <!-- #endif -->
-</template>
-
-<script>
- export default {
- name: 'UniRefresh',
- props: {
- display: {
- type: [String],
- default: "hide"
- }
- },
- data() {
- return {
- pulling: false
- }
- },
- computed: {
- isShow() {
- if (this.display === "show" || this.pulling === true) {
- return true;
- }
- return false;
- }
- },
- created() {},
- methods: {
- onchange(value) {
- this.pulling = value;
- },
- onrefresh(e) {
- this.$emit("refresh", e);
- },
- onpullingdown(e) {
- // #ifdef APP-NVUE
- this.$emit("pullingdown", e);
- // #endif
- // #ifndef APP-NVUE
- var detail = {
- viewHeight: 90,
- pullingDistance: e.height
- }
- this.$emit("pullingdown", detail);
- // #endif
- }
- }
- }
-</script>
-
-<style>
- .uni-refresh {
- height: 0;
- overflow: hidden;
- }
-</style>
diff --git a/uni_modules/uni-list/components/uni-list/uni-refresh.wxs b/uni_modules/uni-list/components/uni-list/uni-refresh.wxs
deleted file mode 100644
index 818a6b7..0000000
--- a/uni_modules/uni-list/components/uni-list/uni-refresh.wxs
+++ /dev/null
@@ -1,87 +0,0 @@
-var pullDown = {
- threshold: 95,
- maxHeight: 200,
- callRefresh: 'onrefresh',
- callPullingDown: 'onpullingdown',
- refreshSelector: '.uni-refresh'
-};
-
-function ready(newValue, oldValue, ownerInstance, instance) {
- var state = instance.getState()
- state.canPullDown = newValue;
- // console.log(newValue);
-}
-
-function touchStart(e, instance) {
- var state = instance.getState();
- state.refreshInstance = instance.selectComponent(pullDown.refreshSelector);
- state.canPullDown = (state.refreshInstance != null && state.refreshInstance != undefined);
- if (!state.canPullDown) {
- return
- }
-
- // console.log("touchStart");
-
- state.height = 0;
- state.touchStartY = e.touches[0].pageY || e.changedTouches[0].pageY;
- state.refreshInstance.setStyle({
- 'height': 0
- });
- state.refreshInstance.callMethod("onchange", true);
-}
-
-function touchMove(e, ownerInstance) {
- var instance = e.instance;
- var state = instance.getState();
- if (!state.canPullDown) {
- return
- }
-
- var oldHeight = state.height;
- var endY = e.touches[0].pageY || e.changedTouches[0].pageY;
- var height = endY - state.touchStartY;
- if (height > pullDown.maxHeight) {
- return;
- }
-
- var refreshInstance = state.refreshInstance;
- refreshInstance.setStyle({
- 'height': height + 'px'
- });
-
- height = height < pullDown.maxHeight ? height : pullDown.maxHeight;
- state.height = height;
- refreshInstance.callMethod(pullDown.callPullingDown, {
- height: height
- });
-}
-
-function touchEnd(e, ownerInstance) {
- var state = e.instance.getState();
- if (!state.canPullDown) {
- return
- }
-
- state.refreshInstance.callMethod("onchange", false);
-
- var refreshInstance = state.refreshInstance;
- if (state.height > pullDown.threshold) {
- refreshInstance.callMethod(pullDown.callRefresh);
- return;
- }
-
- refreshInstance.setStyle({
- 'height': 0
- });
-}
-
-function propObserver(newValue, oldValue, instance) {
- pullDown = newValue;
-}
-
-module.exports = {
- touchmove: touchMove,
- touchstart: touchStart,
- touchend: touchEnd,
- propObserver: propObserver
-}
diff --git a/uni_modules/uni-list/package.json b/uni_modules/uni-list/package.json
deleted file mode 100644
index 9d20a73..0000000
--- a/uni_modules/uni-list/package.json
+++ /dev/null
@@ -1,91 +0,0 @@
-{
- "id": "uni-list",
- "displayName": "uni-list 鍒楄〃",
- "version": "1.2.0",
- "description": "List 缁勪欢 锛屽府鍔╀娇鐢ㄨ�呭揩閫熸瀯寤哄垪琛ㄣ��",
- "keywords": [
- "",
- "uni-ui",
- "uniui",
- "鍒楄〃",
- "",
- "list"
-],
- "repository": "https://github.com/dcloudio/uni-ui",
- "engines": {
- "HBuilderX": ""
- },
- "directories": {
- "example": "../../temps/example_temps"
- },
- "dcloudext": {
- "category": [
- "鍓嶇缁勪欢",
- "閫氱敤缁勪欢"
- ],
- "sale": {
- "regular": {
- "price": "0.00"
- },
- "sourcecode": {
- "price": "0.00"
- }
- },
- "contact": {
- "qq": ""
- },
- "declaration": {
- "ads": "鏃�",
- "data": "鏃�",
- "permissions": "鏃�"
- },
- "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui"
- },
- "uni_modules": {
- "dependencies": [
- "uni-badge",
- "uni-icons"
- ],
- "encrypt": [],
- "platforms": {
- "cloud": {
- "tcb": "y",
- "aliyun": "y"
- },
- "client": {
- "App": {
- "app-vue": "y",
- "app-nvue": "y"
- },
- "H5-mobile": {
- "Safari": "y",
- "Android Browser": "y",
- "寰俊娴忚鍣�(Android)": "y",
- "QQ娴忚鍣�(Android)": "y"
- },
- "H5-pc": {
- "Chrome": "y",
- "IE": "y",
- "Edge": "y",
- "Firefox": "y",
- "Safari": "y"
- },
- "灏忕▼搴�": {
- "寰俊": "y",
- "闃块噷": "y",
- "鐧惧害": "y",
- "瀛楄妭璺冲姩": "y",
- "QQ": "y"
- },
- "蹇簲鐢�": {
- "鍗庝负": "u",
- "鑱旂洘": "u"
- },
- "Vue": {
- "vue2": "y",
- "vue3": "y"
- }
- }
- }
- }
-}
\ No newline at end of file
diff --git a/uni_modules/uni-list/readme.md b/uni_modules/uni-list/readme.md
deleted file mode 100644
index e4a5d73..0000000
--- a/uni_modules/uni-list/readme.md
+++ /dev/null
@@ -1,347 +0,0 @@
-
-
-## List 鍒楄〃
-> **缁勪欢鍚嶏細uni-list**
-> 浠g爜鍧楋細 `uList`銆乣uListItem`
-> 鍏宠仈缁勪欢锛歚uni-list-item`銆乣uni-badge`銆乣uni-icons`銆乣uni-list-chat`銆乣uni-list-ad`
-
-
-List 鍒楄〃缁勪欢锛屽寘鍚熀鏈垪琛ㄦ牱寮忋�佸彲鎵╁睍鎻掓Ы鏈哄埗銆侀暱鍒楄〃鎬ц兘浼樺寲銆佸绔吋瀹广��
-
-鍦╲ue椤甸潰閲岋紝瀹冮粯璁や娇鐢ㄩ〉闈㈢骇婊氬姩銆傚湪app-nvue椤甸潰閲岋紝瀹冮粯璁や娇鐢ㄥ師鐢焞ist缁勪欢婊氬姩銆傝繖鏍风殑闀垮垪琛紝鍦ㄦ粴鍔ㄥ嚭灞忓箷澶栧悗锛岀郴缁熶細鍥炴敹涓嶅彲瑙佸尯鍩熺殑娓叉煋鍐呭瓨璧勬簮锛屼笉浼氶�犳垚婊氬姩瓒婇暱鎵嬫満瓒婂崱鐨勯棶棰樸��
-
-uni-list缁勪欢鏄埗瀹瑰櫒锛岄噷闈㈢殑鏍稿績鏄痷ni-list-item瀛愮粍浠讹紝瀹冧唬琛ㄥ垪琛ㄤ腑鐨勪竴涓彲閲嶅琛岋紝瀛愮粍浠跺彲浠ユ棤闄愬惊鐜��
-
-uni-list-item鏈夊緢澶氶鏍硷紝uni-list-item缁勪欢閫氳繃鍐呯疆鐨勫睘鎬э紝婊¤冻涓�浜涘父鐢ㄧ殑鍦烘櫙銆傚綋鍐呯疆灞炴�т笉婊¤冻闇�姹傛椂锛屽彲浠ラ�氳繃鎵╁睍鎻掓Ы鏉ヨ嚜瀹氫箟鍒楄〃鍐呭銆�
-
-鍐呯疆灞炴�у彲浠ヨ鐩栫殑鍦烘櫙鍖呮嫭锛氬鑸垪琛ㄣ�佽缃垪琛ㄣ�佸皬鍥炬爣鍒楄〃銆侀�氫俊褰曞垪琛ㄣ�佽亰澶╄褰曞垪琛ㄣ��
-
-娑夊強寰堝澶у浘鎴栦赴瀵屽唴瀹圭殑鍒楄〃锛屾瘮濡傜被浠婃棩澶存潯鐨勬柊闂诲垪琛ㄣ�佺被娣樺疂鐨勭數鍟嗗垪琛紝闇�瑕侀�氳繃鎵╁睍鎻掓Ы瀹炵幇銆�
-
-涓嬫枃鍧囨湁鏍蜂緥缁欏嚭銆�
-
-uni-list涓嶅寘鍚笅鎷夊埛鏂板拰涓婃媺缈婚〉銆備笂鎷夌炕椤靛彟瑙佺粍浠讹細[uni-load-more](https://ext.dcloud.net.cn/plugin?id=29)
-
-
-### 瀹夎鏂瑰紡
-
-鏈粍浠剁鍚圼easycom](https://uniapp.dcloud.io/collocation/pages?id=easycom)瑙勮寖锛宍HBuilderX 2.5.5`璧凤紝鍙渶灏嗘湰缁勪欢瀵煎叆椤圭洰锛屽湪椤甸潰`template`涓嵆鍙洿鎺ヤ娇鐢紝鏃犻渶鍦ㄩ〉闈腑`import`鍜屾敞鍐宍components`銆�
-
-濡傞渶閫氳繃`npm`鏂瑰紡浣跨敤`uni-ui`缁勪欢锛屽彟瑙佹枃妗o細[https://ext.dcloud.net.cn/plugin?id=55](https://ext.dcloud.net.cn/plugin?id=55)
-
-> **娉ㄦ剰浜嬮」**
-> 涓轰簡閬垮厤閿欒浣跨敤锛岀粰澶у甯︽潵涓嶅ソ鐨勫紑鍙戜綋楠岋紝璇峰湪浣跨敤缁勪欢鍓嶄粩缁嗛槄璇讳笅闈㈢殑娉ㄦ剰浜嬮」锛屽彲浠ュ府浣犻伩鍏嶄竴浜涢敊璇��
-> - 缁勪欢闇�瑕佷緷璧� `sass` 鎻掍欢 锛岃鑷鎵嬪姩瀹夎
-> - 缁勪欢鍐呴儴渚濊禆 `'uni-icons'` 銆乣uni-badge` 缁勪欢
-> - `uni-list` 鍜� `uni-list-item` 闇�瑕侀厤濂椾娇鐢紝鏆備笉鏀寔鍗曠嫭浣跨敤 `uni-list-item`
-> - 鍙湁寮�鍚偣鍑诲弽棣堝悗锛屼細鏈夌偣鍑婚�変腑鏁堟灉
-> - 浣跨敤鎻掓Ы鏃讹紝鍙互瀹屽叏鑷畾涔夊唴瀹�
-> - note 銆乺ightText 灞炴�ф殏鏃舵病鍋氶檺鍒讹紝涓嶆敮鎸佹枃瀛楁孩鍑洪殣钘忥紝浣跨敤鏃跺簲璇ユ帶鍒堕暱搴︽樉绀烘垨閫氳繃榛樿鎻掓Ы鑷鎵╁睍
-> - 鏀粯瀹濆皬绋嬪簭骞冲彴闇�瑕佸湪鏀粯瀹濆皬绋嬪簭寮�鍙戣�呭伐鍏烽噷寮�鍚� component2 缂栬瘧妯″紡锛屽紑鍚柟寮忥細 璇︽儏 --> 椤圭洰閰嶇疆 --> 鍚敤 component2 缂栬瘧
-> - 濡傛灉闇�瑕佷慨鏀� `switch`銆乣badge` 鏍峰紡锛岃浣跨敤鎻掓Ы鑷畾涔�
-> - 鍦� `HBuilderX` 浣庣増鏈腑锛屽彲鑳戒細鍑虹幇缁勪欢鏄剧ず `undefined` 鐨勯棶棰橈紝璇峰崌绾ф渶鏂扮殑 `HBuilderX` 鎴栬�� `cli`
-> - 濡備娇鐢ㄨ繃绋嬩腑鏈変换浣曢棶棰橈紝鎴栬�呮偍瀵箄ni-ui鏈変竴浜涘ソ鐨勫缓璁紝娆㈣繋鍔犲叆 uni-ui 浜ゆ祦缇わ細871950839
-
-
-### 鍩烘湰鐢ㄦ硶
-
-- 璁剧疆 `title` 灞炴�э紝鍙互鏄剧ず鍒楄〃鏍囬
-- 璁剧疆 `disabled` 灞炴�э紝鍙互绂佺敤褰撳墠椤�
-
-```html
-<uni-list>
- <uni-list-item title="鍒楄〃鏂囧瓧" ></uni-list-item>
- <uni-list-item :disabled="true" title="鍒楄〃绂佺敤鐘舵��" ></uni-list-item>
-</uni-list>
-
-```
-
-### 澶氳鍐呭鏄剧ず
-
-- 璁剧疆 `note` 灞炴�� 锛屽彲浠ュ湪绗簩琛屾樉绀烘弿杩版枃鏈俊鎭�
-
-```html
-<uni-list>
- <uni-list-item title="鍒楄〃鏂囧瓧" note="鍒楄〃鎻忚堪淇℃伅"></uni-list-item>
- <uni-list-item :disabled="true" title="鍒楄〃鏂囧瓧" note="鍒楄〃绂佺敤鐘舵��"></uni-list-item>
-</uni-list>
-
-```
-
-### 鍙充晶鏄剧ず瑙掓爣銆乻witch
-
-- 璁剧疆 `show-badge` 灞炴�� 锛屽彲浠ユ樉绀鸿鏍囧唴瀹�
-- 璁剧疆 `show-switch` 灞炴�э紝鍙互鏄剧ず switch 寮�鍏�
-
-```html
-<uni-list>
- <uni-list-item title="鍒楄〃鍙充晶鏄剧ず瑙掓爣" :show-badge="true" badge-text="12" ></uni-list-item>
- <uni-list-item title="鍒楄〃鍙充晶鏄剧ず switch" :show-switch="true" @switchChange="switchChange" ></uni-list-item>
-</uni-list>
-
-```
-
-### 宸︿晶鏄剧ず鐣ョ缉鍥俱�佸浘鏍�
-
-- 璁剧疆 `thumb` 灞炴�� 锛屽彲浠ュ湪鍒楄〃宸︿晶鏄剧ず鐣ョ缉鍥�
-- 璁剧疆 `show-extra-icon` 灞炴�э紝骞舵寚瀹� `extra-icon` 鍙互鍦ㄥ乏渚ф樉绀哄浘鏍�
-
-```html
- <uni-list>
- <uni-list-item title="鍒楄〃宸︿晶甯︾暐缂╁浘" note="鍒楄〃鎻忚堪淇℃伅" thumb="https://vkceyugu.cdn.bspapp.com/VKCEYUGU-dc-site/460d46d0-4fcc-11eb-8ff1-d5dcf8779628.png"
- thumb-size="lg" rightText="鍙充晶鏂囧瓧"></uni-list-item>
- <uni-list-item :show-extra-icon="true" :extra-icon="extraIcon1" title="鍒楄〃宸︿晶甯︽墿灞曞浘鏍�" ></uni-list-item>
-</uni-list>
-```
-
-### 寮�鍚偣鍑诲弽棣堝拰鍙充晶绠ご
-- 璁剧疆 `clickable` 涓� `true` 锛屽垯琛ㄧず杩欐槸涓�涓彲鐐瑰嚮鐨勫垪琛紝浼氶粯璁ょ粰涓�涓偣鍑绘晥鏋滐紝骞跺彲浠ョ洃鍚� `click` 浜嬩欢
-- 璁剧疆 `link` 灞炴�э紝浼氳嚜鍔ㄥ紑鍚偣鍑诲弽棣堬紝骞剁粰鍒楄〃鍙充晶娣诲姞涓�涓澶�
-- 璁剧疆 `to` 灞炴�э紝鍙互璺宠浆椤甸潰锛宍link` 鐨勫�艰〃绀鸿烦杞柟寮忥紝濡傛灉涓嶆寚瀹氾紝榛樿涓� `navigateTo`
-
-```html
-
-<uni-list>
- <uni-list-item title="寮�鍚偣鍑诲弽棣�" clickable @click="onClick" ></uni-list-item>
- <uni-list-item title="榛樿 navigateTo 鏂瑰紡璺宠浆椤甸潰" link to="/pages/vue/index/index" @click="onClick($event,1)" ></uni-list-item>
- <uni-list-item title="reLaunch 鏂瑰紡璺宠浆椤甸潰" link="reLaunch" to="/pages/vue/index/index" @click="onClick($event,1)" ></uni-list-item>
-</uni-list>
-
-```
-
-
-### 鑱婂ぉ鍒楄〃绀轰緥
-- 璁剧疆 `clickable` 涓� `true` 锛屽垯琛ㄧず杩欐槸涓�涓彲鐐瑰嚮鐨勫垪琛紝浼氶粯璁ょ粰涓�涓偣鍑绘晥鏋滐紝骞跺彲浠ョ洃鍚� `click` 浜嬩欢
-- 璁剧疆 `link` 灞炴�э紝浼氳嚜鍔ㄥ紑鍚偣鍑诲弽棣堬紝`link` 鐨勫�艰〃绀鸿烦杞柟寮忥紝濡傛灉涓嶆寚瀹氾紝榛樿涓� `navigateTo`
-- 璁剧疆 `to` 灞炴�э紝鍙互璺宠浆椤甸潰
-- `time` 灞炴�э紝閫氬父浼氳缃垚鏃堕棿鏄剧ず锛屼絾鏄繖涓睘鎬т笉浠呬粎鍙互璁剧疆鏃堕棿锛屼綘鍙互浼犲叆浠讳綍鏂囨湰锛屾敞鎰忔枃鏈暱搴﹀彲鑳戒細褰卞搷鏄剧ず
-- `avatar` 鍜� `avatarList` 灞炴�у悓鏃跺彧浼氭湁涓�涓敓鏁堬紝鍚屾椂璁剧疆鐨勮瘽锛宍avatarList` 灞炴�х殑闀垮害澶т簬1 锛宍avatar` 灞炴�у皢澶辨晥
-- 鍙互閫氳繃榛樿鎻掓Ы鑷畾涔夊垪琛ㄥ彸渚у唴瀹�
-
-```html
-
-<uni-list>
- <uni-list :border="true">
- <!-- 鏄剧ず鍦嗗舰澶村儚 -->
- <uni-list-chat :avatar-circle="true" title="uni-app" avatar="https://vkceyugu.cdn.bspapp.com/VKCEYUGU-dc-site/460d46d0-4fcc-11eb-8ff1-d5dcf8779628.png" note="鎮ㄦ敹鍒颁竴鏉℃柊鐨勬秷鎭�" time="2020-02-02 20:20" ></uni-list-chat>
- <!-- 鍙充晶甯﹁鏍� -->
- <uni-list-chat title="uni-app" avatar="https://vkceyugu.cdn.bspapp.com/VKCEYUGU-dc-site/460d46d0-4fcc-11eb-8ff1-d5dcf8779628.png" note="鎮ㄦ敹鍒颁竴鏉℃柊鐨勬秷鎭�" time="2020-02-02 20:20" badge-text="12"></uni-list-chat>
- <!-- 澶村儚鏄剧ず鍦嗙偣 -->
- <uni-list-chat title="uni-app" avatar="https://vkceyugu.cdn.bspapp.com/VKCEYUGU-dc-site/460d46d0-4fcc-11eb-8ff1-d5dcf8779628.png" note="鎮ㄦ敹鍒颁竴鏉℃柊鐨勬秷鎭�" time="2020-02-02 20:20" badge-positon="left" badge-text="dot"></uni-list-chat>
- <!-- 澶村儚鏄剧ず瑙掓爣 -->
- <uni-list-chat title="uni-app" avatar="https://vkceyugu.cdn.bspapp.com/VKCEYUGU-dc-site/460d46d0-4fcc-11eb-8ff1-d5dcf8779628.png" note="鎮ㄦ敹鍒颁竴鏉℃柊鐨勬秷鎭�" time="2020-02-02 20:20" badge-positon="left" badge-text="99"></uni-list-chat>
- <!-- 鏄剧ず澶氬ご鍍� -->
- <uni-list-chat title="uni-app" :avatar-list="avatarList" note="鎮ㄦ敹鍒颁竴鏉℃柊鐨勬秷鎭�" time="2020-02-02 20:20" badge-positon="left" badge-text="dot"></uni-list-chat>
- <!-- 鑷畾涔夊彸渚у唴瀹� -->
- <uni-list-chat title="uni-app" :avatar-list="avatarList" note="鎮ㄦ敹鍒颁竴鏉℃柊鐨勬秷鎭�" time="2020-02-02 20:20" badge-positon="left" badge-text="dot">
- <view class="chat-custom-right">
- <text class="chat-custom-text">鍒氬垰</text>
- <!-- 闇�瑕佷娇鐢� uni-icons 璇疯嚜琛屽紩鍏� -->
- <uni-icons type="star-filled" color="#999" size="18"></uni-icons>
- </view>
- </uni-list-chat>
- </uni-list>
-</uni-list>
-
-```
-
-```javascript
-
-export default {
- components: {},
- data() {
- return {
- avatarList: [{
- url: 'https://vkceyugu.cdn.bspapp.com/VKCEYUGU-dc-site/460d46d0-4fcc-11eb-8ff1-d5dcf8779628.png'
- }, {
- url: 'https://vkceyugu.cdn.bspapp.com/VKCEYUGU-dc-site/460d46d0-4fcc-11eb-8ff1-d5dcf8779628.png'
- }, {
- url: 'https://vkceyugu.cdn.bspapp.com/VKCEYUGU-dc-site/460d46d0-4fcc-11eb-8ff1-d5dcf8779628.png'
- }]
- }
- }
-}
-
-```
-
-
-```css
-
-.chat-custom-right {
- flex: 1;
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex-direction: column;
- justify-content: space-between;
- align-items: flex-end;
-}
-
-.chat-custom-text {
- font-size: 12px;
- color: #999;
-}
-
-```
-
-## API
-
-### List Props
-
-灞炴�у悕 |绫诲瀷 |榛樿鍊� | 璇存槑
-:-: |:-: |:-: | :-:
-border |Boolean |true | 鏄惁鏄剧ず杈规
-
-
-### ListItem Props
-
-灞炴�у悕 |绫诲瀷 |榛樿鍊� | 璇存槑
-:-: |:-: |:-: | :-:
-title |String |- | 鏍囬
-note |String |- | 鎻忚堪
-ellipsis |Number |0 | title 鏄惁婧㈠嚭闅愯棌锛屽彲閫夊�硷紝0:榛樿; 1:鏄剧ず涓�琛�; 2:鏄剧ず涓よ;銆恘vue 鏆備笉鏀寔銆�
-thumb |String |- | 宸︿晶缂╃暐鍥撅紝鑻humb鏈夊�硷紝鍒欎笉浼氭樉绀烘墿灞曞浘鏍�
-thumbSize |String |medium | 鐣ョ缉鍥惧昂瀵革紝鍙�夊�硷紝lg:澶у浘; medium:涓�鑸�; sm:灏忓浘;
-showBadge |Boolean |false | 鏄惁鏄剧ず鏁板瓧瑙掓爣
-badgeText |String |- | 鏁板瓧瑙掓爣鍐呭
-badgeType |String |- | 鏁板瓧瑙掓爣绫诲瀷锛屽弬鑰僛uni-icons](https://ext.dcloud.net.cn/plugin?id=21)
-rightText |String |- | 鍙充晶鏂囧瓧鍐呭
-disabled |Boolean |false | 鏄惁绂佺敤
-showArrow |Boolean |true | 鏄惁鏄剧ず绠ご鍥炬爣
-link |String |navigateTo | 鏂伴〉闈㈣烦杞柟寮忥紝鍙�夊�艰涓嬭〃
-to |String |- | 鏂伴〉闈㈣烦杞湴鍧�锛屽濉啓姝ゅ睘鎬э紝click 浼氳繑鍥為〉闈㈡槸鍚﹁烦杞垚鍔�
-clickable |Boolean |false | 鏄惁寮�鍚偣鍑诲弽棣�
-showSwitch |Boolean |false | 鏄惁鏄剧ずSwitch
-switchChecked |Boolean |false | Switch鏄惁琚�変腑
-showExtraIcon |Boolean |false | 宸︿晶鏄惁鏄剧ず鎵╁睍鍥炬爣
-extraIcon |Object |- | 鎵╁睍鍥炬爣鍙傛暟锛屾牸寮忎负 ``{color: '#4cd964',size: '22',type: 'spinner'}``锛屽弬鑰� [uni-icons](https://ext.dcloud.net.cn/plugin?id=28)
-direction | String |row | 鎺掔増鏂瑰悜锛屽彲閫夊�硷紝row:姘村钩鎺掑垪; column:鍨傜洿鎺掑垪; 3涓彃妲芥槸姘村钩鎺掕繕鏄瀭鐩存帓锛屼篃鍙楁灞炴�ф帶鍒�
-
-
-#### Link Options
-
-灞炴�у悕 | 璇存槑
-:-: | :-:
-navigateTo | 鍚� uni.navigateTo()
-redirectTo | 鍚� uni.reLaunch()
-reLaunch | 鍚� uni.reLaunch()
-switchTab | 鍚� uni.switchTab()
-
-### ListItem Events
-
-浜嬩欢绉板悕 |璇存槑 |杩斿洖鍙傛暟
-:-: |:-: |:-:
-click |鐐瑰嚮 uniListItem 瑙﹀彂浜嬩欢锛岄渶寮�鍚偣鍑诲弽棣� |-
-switchChange |鐐瑰嚮鍒囨崲 Switch 鏃惰Е鍙戯紝闇�鏄剧ず switch |e={value:checked}
-
-
-
-### ListItem Slots
-
-鍚嶇О | 璇存槑
-:-: | :-:
-header | 宸�/涓婂唴瀹规彃妲斤紝鍙畬鍏ㄨ嚜瀹氫箟榛樿鏄剧ず
-body | 涓棿鍐呭鎻掓Ы锛屽彲瀹屽叏鑷畾涔変腑闂村唴瀹�
-footer | 鍙�/涓嬪唴瀹规彃妲斤紝鍙畬鍏ㄨ嚜瀹氫箟鍙充晶鍐呭
-
-
-> **閫氳繃鎻掓Ы鎵╁睍**
-> 闇�瑕佹敞鎰忕殑鏄綋浣跨敤鎻掓Ы鏃讹紝鍐呯疆鏍峰紡灏嗕細澶辨晥锛屽彧淇濈暀鎺掔増鏍峰紡锛屾鏃剁殑鏍峰紡闇�瑕佸紑鍙戣�呰嚜宸卞疄鐜�
-> 濡傛灉 `uni-list-item` 缁勪欢鍐呯疆灞炴�ф牱寮忔棤娉曟弧瓒抽渶姹傦紝鍙互浣跨敤鎻掓Ы鏉ヨ嚜瀹氫箟uni-list-item閲岀殑鍐呭銆�
-> uni-list-item鎻愪緵浜�3涓彲鎵╁睍鐨勬彃妲斤細`header`銆乣body`銆乣footer`
-> - 褰� `direction` 灞炴�т负 `row` 鏃惰〃绀烘按骞虫帓鍒楋紝姝ゆ椂 `header` 琛ㄧず鍒楄〃鐨勫乏杈归儴鍒嗭紝`body` 琛ㄧず鍒楄〃鐨勪腑闂撮儴鍒嗭紝`footer` 琛ㄧず鍒楄〃鐨勫彸杈归儴鍒�
-> - 褰� `direction` 灞炴�т负 `column` 鏃惰〃绀哄瀭鐩存帓鍒楋紝姝ゆ椂 `header` 琛ㄧず鍒楄〃鐨勪笂杈归儴鍒嗭紝`body` 琛ㄧず鍒楄〃鐨勪腑闂撮儴鍒嗭紝`footer` 琛ㄧず鍒楄〃鐨勪笅杈归儴鍒�
-> 寮�鍙戣�呭彲浠ュ彧鐢�1涓彃妲斤紝涔熷彲浠�3涓竴璧蜂娇鐢ㄣ�傚湪鎻掓Ы涓彲鑷富缂栧啓view鏍囩锛屽疄鐜拌嚜宸辨墍闇�鐨勬晥鏋溿��
-
-
-**绀轰緥**
-
-```html
-<uni-list>
- <uni-list-item title="鑷畾涔夊彸渚ф彃妲�" note="鍒楄〃鎻忚堪淇℃伅" link>
- <template slot="header">
- <image class="slot-image" src="/static/logo.png" mode="widthFix"></image>
- </template>
- </uni-list-item>
- <uni-list-item>
- <!-- 鑷畾涔� header -->
- <view slot="header" class="slot-box"><image class="slot-image" src="/static/logo.png" mode="widthFix"></image></view>
- <!-- 鑷畾涔� body -->
- <text slot="body" class="slot-box slot-text">鑷畾涔夋彃妲�</text>
- <!-- 鑷畾涔� footer-->
- <template slot="footer">
- <image class="slot-image" src="/static/logo.png" mode="widthFix"></image>
- </template>
- </uni-list-item>
-</uni-list>
-```
-
-
-
-
-
-### ListItemChat Props
-
-灞炴�у悕 |绫诲瀷 |榛樿鍊� | 璇存槑
-:-: |:-: |:-: | :-:
-title |String |- | 鏍囬
-note |String |- | 鎻忚堪
-clickable |Boolean |false | 鏄惁寮�鍚偣鍑诲弽棣�
-badgeText |String |- | 鏁板瓧瑙掓爣鍐呭锛岃缃负 `dot` 灏嗘樉绀哄渾鐐�
-badgePositon |String |right | 瑙掓爣浣嶇疆
-link |String |navigateTo | 鏄惁灞曠ず鍙充晶绠ご骞跺紑鍚偣鍑诲弽棣堬紝鍙�夊�艰涓嬭〃
-clickable |Boolean |false | 鏄惁寮�鍚偣鍑诲弽棣�
-to |String |- | 璺宠浆椤甸潰鍦板潃锛屽濉啓姝ゅ睘鎬э紝click 浼氳繑鍥為〉闈㈡槸鍚﹁烦杞垚鍔�
-time |String |- | 鍙充晶鏃堕棿鏄剧ず
-avatarCircle |Boolean |false | 鏄惁鏄剧ず鍦嗗舰澶村儚
-avatar |String |- | 澶村儚鍦板潃锛宎vatarCircle 涓嶅~鏃剁敓鏁�
-avatarList |Array |- | 澶村儚缁勶紝鏍煎紡涓� [{url:''}]
-
-#### Link Options
-
-灞炴�у悕 | 璇存槑
-:-: | :-:
-navigateTo | 鍚� uni.navigateTo()
-redirectTo | 鍚� uni.reLaunch()
-reLaunch | 鍚� uni.reLaunch()
-switchTab | 鍚� uni.switchTab()
-
-### ListItemChat Slots
-
-鍚嶇О | 璇存槑
-:- | :-
-default | 鑷畾涔夊垪琛ㄥ彸渚у唴瀹癸紙鍖呮嫭鏃堕棿鍜岃鏍囨樉绀猴級
-
-### ListItemChat Events
-浜嬩欢绉板悕 | 璇存槑 | 杩斿洖鍙傛暟
-:-: | :-: | :-:
-@click | 鐐瑰嚮 uniListChat 瑙﹀彂浜嬩欢 | {data:{}} 锛屽鏈� to 灞炴�э紝浼氳繑鍥為〉闈㈣烦杞俊鎭�
-
-
-
-
-
-
-## 鍩轰簬uni-list鎵╁睍鐨勯〉闈㈡ā鏉�
-
-閫氳繃鎵╁睍鎻掓Ы锛屽彲瀹炵幇澶氱甯歌鏍峰紡鐨勫垪琛�
-
-**鏂伴椈鍒楄〃绫�**
-
-1. 浜戠涓�浣撴贩鍚堝竷灞�锛歔https://ext.dcloud.net.cn/plugin?id=2546](https://ext.dcloud.net.cn/plugin?id=2546)
-2. 浜戠涓�浣撳瀭鐩村竷灞�锛屽ぇ鍥炬ā寮忥細[https://ext.dcloud.net.cn/plugin?id=2583](https://ext.dcloud.net.cn/plugin?id=2583)
-3. 浜戠涓�浣撳瀭鐩村竷灞�锛屽琛屽浘鏂囨贩鎺掞細[https://ext.dcloud.net.cn/plugin?id=2584](https://ext.dcloud.net.cn/plugin?id=2584)
-4. 浜戠涓�浣撳瀭鐩村竷灞�锛屽鍥炬ā寮忥細[https://ext.dcloud.net.cn/plugin?id=2585](https://ext.dcloud.net.cn/plugin?id=2585)
-5. 浜戠涓�浣撴按骞冲竷灞�锛屽乏鍥惧彸鏂囷細[https://ext.dcloud.net.cn/plugin?id=2586](https://ext.dcloud.net.cn/plugin?id=2586)
-6. 浜戠涓�浣撴按骞冲竷灞�锛屽乏鏂囧彸鍥撅細[https://ext.dcloud.net.cn/plugin?id=2587](https://ext.dcloud.net.cn/plugin?id=2587)
-7. 浜戠涓�浣撳瀭鐩村竷灞�锛屾棤鍥炬ā寮忥紝涓绘爣棰�+鍓爣棰橈細[https://ext.dcloud.net.cn/plugin?id=2588](https://ext.dcloud.net.cn/plugin?id=2588)
-
-**鍟嗗搧鍒楄〃绫�**
-
-1. 浜戠涓�浣撳垪琛�/瀹牸瑙嗗浘浜掑垏锛歔https://ext.dcloud.net.cn/plugin?id=2651](https://ext.dcloud.net.cn/plugin?id=2651)
-2. 浜戠涓�浣撳垪琛紙瀹牸妯″紡锛夛細[https://ext.dcloud.net.cn/plugin?id=2671](https://ext.dcloud.net.cn/plugin?id=2671)
-3. 浜戠涓�浣撳垪琛紙鍒楄〃妯″紡锛夛細[https://ext.dcloud.net.cn/plugin?id=2672](https://ext.dcloud.net.cn/plugin?id=2672)
-
-## 缁勪欢绀轰緥
-
-鐐瑰嚮鏌ョ湅锛歔https://hellouniapp.dcloud.net.cn/pages/extUI/list/list](https://hellouniapp.dcloud.net.cn/pages/extUI/list/list)
\ No newline at end of file
diff --git a/uni_modules/uni-load-more/changelog.md b/uni_modules/uni-load-more/changelog.md
deleted file mode 100644
index 8f03f1d..0000000
--- a/uni_modules/uni-load-more/changelog.md
+++ /dev/null
@@ -1,19 +0,0 @@
-## 1.3.3锛�2022-01-20锛�
-- 鏂板 showText灞炴�� 锛屾槸鍚︽樉绀烘枃鏈�
-## 1.3.2锛�2022-01-19锛�
-- 淇 nvue 骞冲彴涓嬩笉鏄剧ず鏂囨湰鐨刡ug
-## 1.3.1锛�2022-01-19锛�
-- 淇 寰俊灏忕▼搴忓钩鍙版牱寮忛�夋嫨鍣ㄦ姤璀﹀憡鐨勯棶棰�
-## 1.3.0锛�2021-11-19锛�
-- 浼樺寲 缁勪欢UI锛屽苟鎻愪緵璁捐璧勬簮锛岃瑙�:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource)
-- 鏂囨。杩佺Щ锛岃瑙�:[https://uniapp.dcloud.io/component/uniui/uni-load-more](https://uniapp.dcloud.io/component/uniui/uni-load-more)
-## 1.2.1锛�2021-08-24锛�
-- 鏂板 鏀寔鍥介檯鍖�
-## 1.2.0锛�2021-07-30锛�
-- 缁勪欢鍏煎 vue3锛屽浣曞垱寤簐ue3椤圭洰锛岃瑙� [uni-app 椤圭洰鏀寔 vue3 浠嬬粛](https://ask.dcloud.net.cn/article/37834)
-## 1.1.8锛�2021-05-12锛�
-- 鏂板 缁勪欢绀轰緥鍦板潃
-## 1.1.7锛�2021-03-30锛�
-- 淇 uni-load-more 鍦ㄩ椤典娇鐢ㄦ椂锛宧5 骞冲彴鎶� 'uni is not defined' 鐨� bug
-## 1.1.6锛�2021-02-05锛�
-- 璋冩暣涓簎ni_modules鐩綍瑙勮寖
diff --git a/uni_modules/uni-load-more/components/uni-load-more/i18n/en.json b/uni_modules/uni-load-more/components/uni-load-more/i18n/en.json
deleted file mode 100644
index a4f14a5..0000000
--- a/uni_modules/uni-load-more/components/uni-load-more/i18n/en.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "uni-load-more.contentdown": "Pull up to show more",
- "uni-load-more.contentrefresh": "loading...",
- "uni-load-more.contentnomore": "No more data"
-}
diff --git a/uni_modules/uni-load-more/components/uni-load-more/i18n/index.js b/uni_modules/uni-load-more/components/uni-load-more/i18n/index.js
deleted file mode 100644
index de7509c..0000000
--- a/uni_modules/uni-load-more/components/uni-load-more/i18n/index.js
+++ /dev/null
@@ -1,8 +0,0 @@
-import en from './en.json'
-import zhHans from './zh-Hans.json'
-import zhHant from './zh-Hant.json'
-export default {
- en,
- 'zh-Hans': zhHans,
- 'zh-Hant': zhHant
-}
diff --git a/uni_modules/uni-load-more/components/uni-load-more/i18n/zh-Hans.json b/uni_modules/uni-load-more/components/uni-load-more/i18n/zh-Hans.json
deleted file mode 100644
index f15d510..0000000
--- a/uni_modules/uni-load-more/components/uni-load-more/i18n/zh-Hans.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "uni-load-more.contentdown": "涓婃媺鏄剧ず鏇村",
- "uni-load-more.contentrefresh": "姝e湪鍔犺浇...",
- "uni-load-more.contentnomore": "娌℃湁鏇村鏁版嵁浜�"
-}
diff --git a/uni_modules/uni-load-more/components/uni-load-more/i18n/zh-Hant.json b/uni_modules/uni-load-more/components/uni-load-more/i18n/zh-Hant.json
deleted file mode 100644
index a255c6d..0000000
--- a/uni_modules/uni-load-more/components/uni-load-more/i18n/zh-Hant.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "uni-load-more.contentdown": "涓婃媺椤ず鏇村",
- "uni-load-more.contentrefresh": "姝e湪鍔犺級...",
- "uni-load-more.contentnomore": "娌掓湁鏇村鏁告摎浜�"
-}
diff --git a/uni_modules/uni-load-more/components/uni-load-more/uni-load-more.vue b/uni_modules/uni-load-more/components/uni-load-more/uni-load-more.vue
deleted file mode 100644
index e5eff4d..0000000
--- a/uni_modules/uni-load-more/components/uni-load-more/uni-load-more.vue
+++ /dev/null
@@ -1,399 +0,0 @@
-<template>
- <view class="uni-load-more" @click="onClick">
- <!-- #ifdef APP-NVUE -->
- <loading-indicator v-if="!webviewHide && status === 'loading' && showIcon"
- :style="{color: color,width:iconSize+'px',height:iconSize+'px'}" :animating="true"
- class="uni-load-more__img uni-load-more__img--nvue"></loading-indicator>
- <!-- #endif -->
- <!-- #ifdef H5 -->
- <svg width="24" height="24" viewBox="25 25 50 50"
- v-if="!webviewHide && (iconType==='circle' || iconType==='auto' && platform === 'android') && status === 'loading' && showIcon"
- :style="{width:iconSize+'px',height:iconSize+'px'}"
- class="uni-load-more__img uni-load-more__img--android-H5">
- <circle cx="50" cy="50" r="20" fill="none" :style="{color:color}" :stroke-width="3"></circle>
- </svg>
- <!-- #endif -->
- <!-- #ifndef APP-NVUE || H5 -->
- <view
- v-if="!webviewHide && (iconType==='circle' || iconType==='auto' && platform === 'android') && status === 'loading' && showIcon"
- :style="{width:iconSize+'px',height:iconSize+'px'}"
- class="uni-load-more__img uni-load-more__img--android-MP">
- <view class="uni-load-more__img-icon" :style="{borderTopColor:color,borderTopWidth:iconSize/12}"></view>
- <view class="uni-load-more__img-icon" :style="{borderTopColor:color,borderTopWidth:iconSize/12}"></view>
- <view class="uni-load-more__img-icon" :style="{borderTopColor:color,borderTopWidth:iconSize/12}"></view>
- </view>
- <!-- #endif -->
- <!-- #ifndef APP-NVUE -->
- <view v-else-if="!webviewHide && status === 'loading' && showIcon"
- :style="{width:iconSize+'px',height:iconSize+'px'}" class="uni-load-more__img uni-load-more__img--ios-H5">
- <image :src="imgBase64" mode="widthFix"></image>
- </view>
- <!-- #endif -->
- <text v-if="showText" class="uni-load-more__text"
- :style="{color: color}">{{ status === 'more' ? contentdownText : status === 'loading' ? contentrefreshText : contentnomoreText }}</text>
- </view>
-</template>
-
-<script>
- let platform
- setTimeout(() => {
- platform = uni.getSystemInfoSync().platform
- }, 16)
-
- import {
- initVueI18n
- } from '@dcloudio/uni-i18n'
- import messages from './i18n/index.js'
- const {
- t
- } = initVueI18n(messages)
-
- /**
- * LoadMore 鍔犺浇鏇村
- * @description 鐢ㄤ簬鍒楄〃涓紝鍋氭粴鍔ㄥ姞杞戒娇鐢紝灞曠ず loading 鐨勫悇绉嶇姸鎬�
- * @tutorial https://ext.dcloud.net.cn/plugin?id=29
- * @property {String} status = [more|loading|noMore] loading 鐨勭姸鎬�
- * @value more loading鍓�
- * @value loading loading涓�
- * @value noMore 娌℃湁鏇村浜�
- * @property {Number} iconSize 鎸囧畾鍥炬爣澶у皬
- * @property {Boolean} iconSize = [true|false] 鏄惁鏄剧ず loading 鍥炬爣
- * @property {String} iconType = [snow|circle|auto] 鎸囧畾鍥炬爣鏍峰紡
- * @value snow ios闆姳鍔犺浇鏍峰紡
- * @value circle 瀹夊崜鍞ら啋鍔犺浇鏍峰紡
- * @value auto 鏍规嵁骞冲彴鑷姩閫夋嫨鍔犺浇鏍峰紡
- * @property {String} color 鍥炬爣鍜屾枃瀛楅鑹�
- * @property {Object} contentText 鍚勭姸鎬佹枃瀛楄鏄庯紝鍊间负锛歿contentdown: "涓婃媺鏄剧ず鏇村",contentrefresh: "姝e湪鍔犺浇...",contentnomore: "娌℃湁鏇村鏁版嵁浜�"}
- * @event {Function} clickLoadMore 鐐瑰嚮鍔犺浇鏇村鏃惰Е鍙�
- */
- export default {
- name: 'UniLoadMore',
- emits: ['clickLoadMore'],
- props: {
- status: {
- // 涓婃媺鐨勭姸鎬侊細more-loading鍓嶏紱loading-loading涓紱noMore-娌℃湁鏇村浜�
- type: String,
- default: 'more'
- },
- showIcon: {
- type: Boolean,
- default: true
- },
- iconType: {
- type: String,
- default: 'auto'
- },
- iconSize: {
- type: Number,
- default: 24
- },
- color: {
- type: String,
- default: '#777777'
- },
- contentText: {
- type: Object,
- default () {
- return {
- contentdown: '',
- contentrefresh: '',
- contentnomore: ''
- }
- }
- },
- showText: {
- type: Boolean,
- default: true
- }
- },
- data() {
- return {
- webviewHide: false,
- platform: platform,
- imgBase64: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6QzlBMzU3OTlEOUM0MTFFOUI0NTZDNERBQURBQzI4RkUiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6QzlBMzU3OUFEOUM0MTFFOUI0NTZDNERBQURBQzI4RkUiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDpDOUEzNTc5N0Q5QzQxMUU5QjQ1NkM0REFBREFDMjhGRSIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpDOUEzNTc5OEQ5QzQxMUU5QjQ1NkM0REFBREFDMjhGRSIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Pt+ALSwAAA6CSURBVHja1FsLkFZV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'
- }
- },
- computed: {
- iconSnowWidth() {
- return (Math.floor(this.iconSize / 24) || 1) * 2
- },
- contentdownText() {
- return this.contentText.contentdown || t("uni-load-more.contentdown")
- },
- contentrefreshText() {
- return this.contentText.contentrefresh || t("uni-load-more.contentrefresh")
- },
- contentnomoreText() {
- return this.contentText.contentnomore || t("uni-load-more.contentnomore")
- }
- },
- mounted() {
- // #ifdef APP-PLUS
- var pages = getCurrentPages();
- var page = pages[pages.length - 1];
- var currentWebview = page.$getAppWebview();
- currentWebview.addEventListener('hide', () => {
- this.webviewHide = true
- })
- currentWebview.addEventListener('show', () => {
- this.webviewHide = false
- })
- // #endif
- },
- methods: {
- onClick() {
- this.$emit('clickLoadMore', {
- detail: {
- status: this.status,
- }
- })
- }
- }
- }
-</script>
-
-<style lang="scss" >
- .uni-load-more {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex-direction: row;
- height: 40px;
- align-items: center;
- justify-content: center;
- }
-
- .uni-load-more__text {
- font-size: 14px;
- margin-left: 8px;
- }
-
- .uni-load-more__img {
- width: 24px;
- height: 24px;
- // margin-right: 8px;
- }
-
- .uni-load-more__img--nvue {
- color: #666666;
- }
-
- .uni-load-more__img--android,
- .uni-load-more__img--ios {
- width: 24px;
- height: 24px;
- transform: rotate(0deg);
- }
-
- /* #ifndef APP-NVUE */
- .uni-load-more__img--android {
- animation: loading-ios 1s 0s linear infinite;
- }
-
- @keyframes loading-android {
- 0% {
- transform: rotate(0deg);
- }
-
- 100% {
- transform: rotate(360deg);
- }
- }
-
- .uni-load-more__img--ios-H5 {
- position: relative;
- animation: loading-ios-H5 1s 0s step-end infinite;
- }
-
- .uni-load-more__img--ios-H5 image {
- position: absolute;
- width: 100%;
- height: 100%;
- left: 0;
- top: 0;
- }
-
- @keyframes loading-ios-H5 {
- 0% {
- transform: rotate(0deg);
- }
-
- 8% {
- transform: rotate(30deg);
- }
-
- 16% {
- transform: rotate(60deg);
- }
-
- 24% {
- transform: rotate(90deg);
- }
-
- 32% {
- transform: rotate(120deg);
- }
-
- 40% {
- transform: rotate(150deg);
- }
-
- 48% {
- transform: rotate(180deg);
- }
-
- 56% {
- transform: rotate(210deg);
- }
-
- 64% {
- transform: rotate(240deg);
- }
-
- 73% {
- transform: rotate(270deg);
- }
-
- 82% {
- transform: rotate(300deg);
- }
-
- 91% {
- transform: rotate(330deg);
- }
-
- 100% {
- transform: rotate(360deg);
- }
- }
-
- /* #endif */
-
- /* #ifdef H5 */
- .uni-load-more__img--android-H5 {
- animation: loading-android-H5-rotate 2s linear infinite;
- transform-origin: center center;
- }
-
- .uni-load-more__img--android-H5 circle {
- display: inline-block;
- animation: loading-android-H5-dash 1.5s ease-in-out infinite;
- stroke: currentColor;
- stroke-linecap: round;
- }
-
- @keyframes loading-android-H5-rotate {
- 0% {
- transform: rotate(0deg);
- }
-
- 100% {
- transform: rotate(360deg);
- }
- }
-
- @keyframes loading-android-H5-dash {
- 0% {
- stroke-dasharray: 1, 200;
- stroke-dashoffset: 0;
- }
-
- 50% {
- stroke-dasharray: 90, 150;
- stroke-dashoffset: -40;
- }
-
- 100% {
- stroke-dasharray: 90, 150;
- stroke-dashoffset: -120;
- }
- }
-
- /* #endif */
-
- /* #ifndef APP-NVUE || H5 */
- .uni-load-more__img--android-MP {
- position: relative;
- width: 24px;
- height: 24px;
- transform: rotate(0deg);
- animation: loading-ios 1s 0s ease infinite;
- }
-
- .uni-load-more__img--android-MP .uni-load-more__img-icon {
- position: absolute;
- box-sizing: border-box;
- width: 100%;
- height: 100%;
- border-radius: 50%;
- border: solid 2px transparent;
- border-top: solid 2px #777777;
- transform-origin: center;
- }
-
- .uni-load-more__img--android-MP .uni-load-more__img-icon:nth-child(1) {
- animation: loading-android-MP-1 1s 0s linear infinite;
- }
-
- .uni-load-more__img--android-MP .uni-load-more__img-icon:nth-child(2) {
- animation: loading-android-MP-2 1s 0s linear infinite;
- }
-
- .uni-load-more__img--android-MP .uni-load-more__img-icon:nth-child(3) {
- animation: loading-android-MP-3 1s 0s linear infinite;
- }
-
- @keyframes loading-android {
- 0% {
- transform: rotate(0deg);
- }
-
- 100% {
- transform: rotate(360deg);
- }
- }
-
- @keyframes loading-android-MP-1 {
- 0% {
- transform: rotate(0deg);
- }
-
- 50% {
- transform: rotate(90deg);
- }
-
- 100% {
- transform: rotate(360deg);
- }
- }
-
- @keyframes loading-android-MP-2 {
- 0% {
- transform: rotate(0deg);
- }
-
- 50% {
- transform: rotate(180deg);
- }
-
- 100% {
- transform: rotate(360deg);
- }
- }
-
- @keyframes loading-android-MP-3 {
- 0% {
- transform: rotate(0deg);
- }
-
- 50% {
- transform: rotate(270deg);
- }
-
- 100% {
- transform: rotate(360deg);
- }
- }
-
- /* #endif */
-</style>
diff --git a/uni_modules/uni-load-more/package.json b/uni_modules/uni-load-more/package.json
deleted file mode 100644
index 2fa6f04..0000000
--- a/uni_modules/uni-load-more/package.json
+++ /dev/null
@@ -1,86 +0,0 @@
-{
- "id": "uni-load-more",
- "displayName": "uni-load-more 鍔犺浇鏇村",
- "version": "1.3.3",
- "description": "LoadMore 缁勪欢锛屽父鐢ㄥ湪鍒楄〃閲岄潰锛屽仛婊氬姩鍔犺浇浣跨敤銆�",
- "keywords": [
- "uni-ui",
- "uniui",
- "鍔犺浇鏇村",
- "load-more"
-],
- "repository": "https://github.com/dcloudio/uni-ui",
- "engines": {
- "HBuilderX": ""
- },
- "directories": {
- "example": "../../temps/example_temps"
- },
- "dcloudext": {
- "category": [
- "鍓嶇缁勪欢",
- "閫氱敤缁勪欢"
- ],
- "sale": {
- "regular": {
- "price": "0.00"
- },
- "sourcecode": {
- "price": "0.00"
- }
- },
- "contact": {
- "qq": ""
- },
- "declaration": {
- "ads": "鏃�",
- "data": "鏃�",
- "permissions": "鏃�"
- },
- "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui"
- },
- "uni_modules": {
- "dependencies": ["uni-scss"],
- "encrypt": [],
- "platforms": {
- "cloud": {
- "tcb": "y",
- "aliyun": "y"
- },
- "client": {
- "App": {
- "app-vue": "y",
- "app-nvue": "y"
- },
- "H5-mobile": {
- "Safari": "y",
- "Android Browser": "y",
- "寰俊娴忚鍣�(Android)": "y",
- "QQ娴忚鍣�(Android)": "y"
- },
- "H5-pc": {
- "Chrome": "y",
- "IE": "y",
- "Edge": "y",
- "Firefox": "y",
- "Safari": "y"
- },
- "灏忕▼搴�": {
- "寰俊": "y",
- "闃块噷": "y",
- "鐧惧害": "y",
- "瀛楄妭璺冲姩": "y",
- "QQ": "y"
- },
- "蹇簲鐢�": {
- "鍗庝负": "u",
- "鑱旂洘": "u"
- },
- "Vue": {
- "vue2": "y",
- "vue3": "y"
- }
- }
- }
- }
-}
\ No newline at end of file
diff --git a/uni_modules/uni-load-more/readme.md b/uni_modules/uni-load-more/readme.md
deleted file mode 100644
index 54dc1fa..0000000
--- a/uni_modules/uni-load-more/readme.md
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-### LoadMore 鍔犺浇鏇村
-> **缁勪欢鍚嶏細uni-load-more**
-> 浠g爜鍧楋細 `uLoadMore`
-
-
-鐢ㄤ簬鍒楄〃涓紝鍋氭粴鍔ㄥ姞杞戒娇鐢紝灞曠ず loading 鐨勫悇绉嶇姸鎬併��
-
-
-### [鏌ョ湅鏂囨。](https://uniapp.dcloud.io/component/uniui/uni-load-more)
-#### 濡備娇鐢ㄨ繃绋嬩腑鏈変换浣曢棶棰橈紝鎴栬�呮偍瀵箄ni-ui鏈変竴浜涘ソ鐨勫缓璁紝娆㈣繋鍔犲叆 uni-ui 浜ゆ祦缇わ細871950839
-
-
diff --git a/uni_modules/uni-nav-bar/changelog.md b/uni_modules/uni-nav-bar/changelog.md
deleted file mode 100644
index fbacca4..0000000
--- a/uni_modules/uni-nav-bar/changelog.md
+++ /dev/null
@@ -1,37 +0,0 @@
-## 1.3.4锛�2022-01-24锛�
-- 鏇存柊 缁勪欢绀轰緥
-## 1.3.3锛�2022-01-24锛�
-- 鏂板 left-width/right-width灞炴�� 锛屽彲淇敼宸﹀彸涓や晶鐨勫搴�
-## 1.3.2锛�2022-01-18锛�
-- 淇 鍦╲ue涓嬶紝鏍囬涓嶅瀭鐩村眳涓殑bug
-## 1.3.1锛�2022-01-18锛�
-- 淇 height 灞炴�х被鍨嬮敊璇�
-## 1.3.0锛�2022-01-18锛�
-- 鏂板 height 灞炴��,鍙慨鏀圭粍浠堕珮搴�
-- 鏂板 dark 灞炴�у彲鍙紑鍚殫榛戞ā寮�
-- 浼樺寲 鏍囬瀛楁暟杩囧鏄剧ず鐪佺暐鍙�
-- 浼樺寲 鎻掓Ы锛屾彃鍏ュ唴瀹瑰彲瀹屽叏瑕嗙洊
-## 1.2.1锛�2022-01-10锛�
-- 淇 color 灞炴�т笉鐢熸晥鐨刡ug
-## 1.2.0锛�2021-11-19锛�
-- 浼樺寲 缁勪欢UI锛屽苟鎻愪緵璁捐璧勬簮锛岃瑙�:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource)
-- 鏂囨。杩佺Щ锛岃瑙�:[https://uniapp.dcloud.io/component/uniui/uni-nav-bar](https://uniapp.dcloud.io/component/uniui/uni-nav-bar)
-## 1.1.0锛�2021-07-30锛�
-- 缁勪欢鍏煎 vue3锛屽浣曞垱寤簐ue3椤圭洰锛岃瑙� [uni-app 椤圭洰鏀寔 vue3 浠嬬粛](https://ask.dcloud.net.cn/article/37834)
-## 1.0.11锛�2021-05-12锛�
-- 鏂板 缁勪欢绀轰緥鍦板潃
-## 1.0.10锛�2021-04-30锛�
-- 淇 鍦╪vue涓媐ixed涓簍rue锛屽搴︿笉鑳芥拺婊$殑Bug
-## 1.0.9锛�2021-04-21锛�
-- 浼樺寲 娣诲姞渚濊禆 uni-icons, 瀵煎叆鍚庤嚜鍔ㄤ笅杞戒緷璧�
-## 1.0.8锛�2021-04-14锛�
-- uni-ui 淇 uni-nav-bar 褰� fixed 灞炴�т负 true 鏃堕摵涓嶆弧灞忓箷鐨� bug
-
-## 1.0.7锛�2021-02-25锛�
-- 淇 easycom 涓嬶紝鎵句笉鍒� uni-status-bar 鐨刡ug
-
-## 1.0.6锛�2021-02-05锛�
-- 浼樺寲 缁勪欢寮曠敤鍏崇郴锛岄�氳繃uni_modules寮曠敤缁勪欢
-
-## 1.0.5锛�2021-02-05锛�
-- 璋冩暣涓簎ni_modules鐩綍瑙勮寖
diff --git a/uni_modules/uni-nav-bar/components/uni-nav-bar/uni-nav-bar.vue b/uni_modules/uni-nav-bar/components/uni-nav-bar/uni-nav-bar.vue
deleted file mode 100644
index 08712ab..0000000
--- a/uni_modules/uni-nav-bar/components/uni-nav-bar/uni-nav-bar.vue
+++ /dev/null
@@ -1,343 +0,0 @@
-<template>
- <view class="uni-navbar" :class="{'uni-dark':dark}">
- <view :class="{ 'uni-navbar--fixed': fixed, 'uni-navbar--shadow': shadow, 'uni-navbar--border': border }"
- :style="{ 'background-color': themeBgColor }" class="uni-navbar__content">
- <status-bar v-if="statusBar" />
- <view :style="{ color: themeColor,backgroundColor: themeBgColor ,height:navbarHeight}"
- class="uni-navbar__header">
- <view @tap="onClickLeft" class="uni-navbar__header-btns uni-navbar__header-btns-left"
- :style="{width:leftIconWidth}">
- <slot name="left">
- <view class="uni-navbar__content_view" v-if="leftIcon.length > 0">
- <uni-icons :color="themeColor" :type="leftIcon" size="20" />
- </view>
- <view :class="{ 'uni-navbar-btn-icon-left': !leftIcon.length > 0 }" class="uni-navbar-btn-text"
- v-if="leftText.length">
- <text :style="{ color: themeColor, fontSize: '12px' }">{{ leftText }}</text>
- </view>
- </slot>
- </view>
- <view class="uni-navbar__header-container " @tap="onClickTitle">
- <slot>
- <view class="uni-navbar__header-container-inner" v-if="title.length>0">
- <text class="uni-nav-bar-text uni-ellipsis-1"
- :style="{color: themeColor }">{{ title }}</text>
- </view>
- </slot>
- </view>
- <view @click="onClickRight" class="uni-navbar__header-btns uni-navbar__header-btns-right"
- :style="{width:rightIconWidth}">
- <slot name="right">
- <view v-if="rightIcon.length">
- <uni-icons :color="themeColor" :type="rightIcon" size="22" />
- </view>
- <view class="uni-navbar-btn-text" v-if="rightText.length && !rightIcon.length">
- <text class="uni-nav-bar-right-text" :style="{ color: themeColor}">{{ rightText }}</text>
- </view>
- </slot>
- </view>
- </view>
- </view>
- <view class="uni-navbar__placeholder" v-if="fixed">
- <status-bar v-if="statusBar" />
- <view class="uni-navbar__placeholder-view" :style="{ height:navbarHeight}" />
- </view>
- </view>
-</template>
-
-<script>
- import statusBar from "./uni-status-bar.vue";
- const getVal = (val) => typeof val === 'number' ? val + 'px' : val;
-
- /**
- * NavBar 鑷畾涔夊鑸爮
- * @description 瀵艰埅鏍忕粍浠讹紝涓昏鐢ㄤ簬澶撮儴瀵艰埅
- * @tutorial https://ext.dcloud.net.cn/plugin?id=52
- * @property {Boolean} dark 寮�鍚粦鏆楁ā寮�
- * @property {String} title 鏍囬鏂囧瓧
- * @property {String} leftText 宸︿晶鎸夐挳鏂囨湰
- * @property {String} rightText 鍙充晶鎸夐挳鏂囨湰
- * @property {String} leftIcon 宸︿晶鎸夐挳鍥炬爣锛堝浘鏍囩被鍨嬪弬鑰� [Icon 鍥炬爣](http://ext.dcloud.net.cn/plugin?id=28) type 灞炴�э級
- * @property {String} rightIcon 鍙充晶鎸夐挳鍥炬爣锛堝浘鏍囩被鍨嬪弬鑰� [Icon 鍥炬爣](http://ext.dcloud.net.cn/plugin?id=28) type 灞炴�э級
- * @property {String} color 鍥炬爣鍜屾枃瀛楅鑹�
- * @property {String} backgroundColor 瀵艰埅鏍忚儗鏅鑹�
- * @property {Boolean} fixed = [true|false] 鏄惁鍥哄畾椤堕儴
- * @property {Boolean} statusBar = [true|false] 鏄惁鍖呭惈鐘舵�佹爮
- * @property {Boolean} shadow = [true|false] 瀵艰埅鏍忎笅鏄惁鏈夐槾褰�
- * @event {Function} clickLeft 宸︿晶鎸夐挳鐐瑰嚮鏃惰Е鍙�
- * @event {Function} clickRight 鍙充晶鎸夐挳鐐瑰嚮鏃惰Е鍙�
- * @event {Function} clickTitle 涓棿鏍囬鐐瑰嚮鏃惰Е鍙�
- */
- export default {
- name: "UniNavBar",
- components: {
- statusBar
- },
- emits: ['clickLeft', 'clickRight', 'clickTitle'],
- props: {
- dark: {
- type: Boolean,
- default: false
- },
- title: {
- type: String,
- default: ""
- },
- leftText: {
- type: String,
- default: ""
- },
- rightText: {
- type: String,
- default: ""
- },
- leftIcon: {
- type: String,
- default: ""
- },
- rightIcon: {
- type: String,
- default: ""
- },
- fixed: {
- type: [Boolean, String],
- default: false
- },
- color: {
- type: String,
- default: ""
- },
- backgroundColor: {
- type: String,
- default: ""
- },
- statusBar: {
- type: [Boolean, String],
- default: false
- },
- shadow: {
- type: [Boolean, String],
- default: false
- },
- border: {
- type: [Boolean, String],
- default: true
- },
- height: {
- type: [Number, String],
- default: 44
- },
- leftWidth: {
- type: [Number, String],
- default: 60
- },
- rightWidth: {
- type: [Number, String],
- default: 60
- },
- },
- computed: {
- themeBgColor() {
- if (this.dark) {
- // 榛樿鍊�
- if (this.backgroundColor) {
- return this.backgroundColor
- } else {
- return this.dark ? '#333' : '#FFF'
- }
- }
- return this.backgroundColor || '#FFF'
- },
- themeColor() {
- if (this.dark) {
- // 榛樿鍊�
- if (this.color) {
- return this.color
- } else {
- return this.dark ? '#fff' : '#333'
- }
- }
- return this.color || '#333'
- },
- navbarHeight() {
- return getVal(this.height)
- },
- leftIconWidth() {
- return getVal(this.leftWidth)
- },
- rightIconWidth() {
- return getVal(this.rightWidth)
- }
- },
- mounted() {
- if (uni.report && this.title !== '') {
- uni.report('title', this.title)
- }
- },
- methods: {
- onClickLeft() {
- this.$emit("clickLeft");
- },
- onClickRight() {
- this.$emit("clickRight");
- },
- onClickTitle() {
- this.$emit("clickTitle");
- }
- }
- };
-</script>
-
-<style lang="scss" scoped>
- $nav-height: 44px;
-
- .uni-navbar {
- // box-sizing: border-box;
- }
-
- .uni-nav-bar-text {
- /* #ifdef APP-PLUS */
- font-size: 34rpx;
- /* #endif */
- /* #ifndef APP-PLUS */
- font-size: 14px;
- /* #endif */
- }
-
- .uni-nav-bar-right-text {
- font-size: 12px;
- }
-
- .uni-navbar__content {
- position: relative;
- // background-color: #fff;
- // box-sizing: border-box;
- background-color: transparent;
- }
-
- .uni-navbar__content_view {
- // box-sizing: border-box;
- }
-
- .uni-navbar-btn-text {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex-direction: column;
- justify-content: flex-start;
- align-items: center;
- line-height: 12px;
- }
-
- .uni-navbar__header {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- padding: 0 10px;
- flex-direction: row;
- height: $nav-height;
- font-size: 12px;
- }
-
- .uni-navbar__header-btns {
- /* #ifndef APP-NVUE */
- overflow: hidden;
- display: flex;
- /* #endif */
- flex-wrap: nowrap;
- flex-direction: row;
- width: 120rpx;
- // padding: 0 6px;
- justify-content: center;
- align-items: center;
- /* #ifdef H5 */
- cursor: pointer;
- /* #endif */
- }
-
- .uni-navbar__header-btns-left {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- width: 120rpx;
- justify-content: flex-start;
- align-items: center;
- }
-
- .uni-navbar__header-btns-right {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex-direction: row;
- // width: 150rpx;
- // padding-right: 30rpx;
- justify-content: flex-end;
- align-items: center;
- }
-
- .uni-navbar__header-container {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex: 1;
- padding: 0 10px;
- overflow: hidden;
- }
-
- .uni-navbar__header-container-inner {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex: 1;
- flex-direction: row;
- align-items: center;
- justify-content: center;
- font-size: 12px;
- overflow: hidden;
- // box-sizing: border-box;
- }
-
-
- .uni-navbar__placeholder-view {
- height: $nav-height;
- }
-
- .uni-navbar--fixed {
- position: fixed;
- z-index: 998;
- /* #ifdef H5 */
- left: var(--window-left);
- right: var(--window-right);
- /* #endif */
- /* #ifndef H5 */
- left: 0;
- right: 0;
- /* #endif */
-
- }
-
- .uni-navbar--shadow {
- box-shadow: 0 1px 6px #ccc;
- }
-
- .uni-navbar--border {
- border-bottom-width: 1rpx;
- border-bottom-style: solid;
- border-bottom-color: #eee;
- }
-
- .uni-ellipsis-1 {
- overflow: hidden;
- /* #ifndef APP-NVUE */
- white-space: nowrap;
- text-overflow: ellipsis;
- /* #endif */
- /* #ifdef APP-NVUE */
- lines: 1;
- text-overflow: ellipsis;
- /* #endif */
- }
-
- // 鏆椾富棰橀厤缃�
- .uni-dark {}
-</style>
diff --git a/uni_modules/uni-nav-bar/components/uni-nav-bar/uni-status-bar.vue b/uni_modules/uni-nav-bar/components/uni-nav-bar/uni-status-bar.vue
deleted file mode 100644
index 6a68874..0000000
--- a/uni_modules/uni-nav-bar/components/uni-nav-bar/uni-status-bar.vue
+++ /dev/null
@@ -1,27 +0,0 @@
-<template>
- <view :style="{ height: statusBarHeight }" class="uni-status-bar">
- <slot />
- </view>
-</template>
-
-<script>
- export default {
- name: 'UniStatusBar',
- data() {
- return {
- statusBarHeight: 20
- }
- },
- mounted() {
- this.statusBarHeight = uni.getSystemInfoSync().statusBarHeight + 'px'
- }
- }
-</script>
-
-<style lang="scss" >
- .uni-status-bar {
- // width: 750rpx;
- height: 20px;
- // height: var(--status-bar-height);
- }
-</style>
diff --git a/uni_modules/uni-nav-bar/package.json b/uni_modules/uni-nav-bar/package.json
deleted file mode 100644
index e1473ca..0000000
--- a/uni_modules/uni-nav-bar/package.json
+++ /dev/null
@@ -1,89 +0,0 @@
-{
- "id": "uni-nav-bar",
- "displayName": "uni-nav-bar 鑷畾涔夊鑸爮",
- "version": "1.3.4",
- "description": "鑷畾涔夊鑸爮缁勪欢锛屼富瑕佺敤浜庡ご閮ㄥ鑸��",
- "keywords": [
- "uni-ui",
- "瀵艰埅",
- "瀵艰埅鏍�",
- "鑷畾涔夊鑸爮"
-],
- "repository": "https://github.com/dcloudio/uni-ui",
- "engines": {
- "HBuilderX": ""
- },
- "directories": {
- "example": "../../temps/example_temps"
- },
- "dcloudext": {
- "category": [
- "鍓嶇缁勪欢",
- "閫氱敤缁勪欢"
- ],
- "sale": {
- "regular": {
- "price": "0.00"
- },
- "sourcecode": {
- "price": "0.00"
- }
- },
- "contact": {
- "qq": ""
- },
- "declaration": {
- "ads": "鏃�",
- "data": "鏃�",
- "permissions": "鏃�"
- },
- "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui"
- },
- "uni_modules": {
- "dependencies": [
- "uni-scss",
- "uni-icons"
- ],
- "encrypt": [],
- "platforms": {
- "cloud": {
- "tcb": "y",
- "aliyun": "y"
- },
- "client": {
- "App": {
- "app-vue": "y",
- "app-nvue": "y"
- },
- "H5-mobile": {
- "Safari": "y",
- "Android Browser": "y",
- "寰俊娴忚鍣�(Android)": "y",
- "QQ娴忚鍣�(Android)": "y"
- },
- "H5-pc": {
- "Chrome": "y",
- "IE": "y",
- "Edge": "y",
- "Firefox": "y",
- "Safari": "y"
- },
- "灏忕▼搴�": {
- "寰俊": "y",
- "闃块噷": "y",
- "鐧惧害": "y",
- "瀛楄妭璺冲姩": "y",
- "QQ": "y"
- },
- "蹇簲鐢�": {
- "鍗庝负": "u",
- "鑱旂洘": "u"
- },
- "Vue": {
- "vue2": "y",
- "vue3": "y"
- }
- }
- }
- }
-}
\ No newline at end of file
diff --git a/uni_modules/uni-nav-bar/readme.md b/uni_modules/uni-nav-bar/readme.md
deleted file mode 100644
index 3934b32..0000000
--- a/uni_modules/uni-nav-bar/readme.md
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
-## NavBar 瀵艰埅鏍�
-> **缁勪欢鍚嶏細uni-nav-bar**
-> 浠g爜鍧楋細 `uNavBar`
-
-瀵艰埅鏍忕粍浠讹紝涓昏鐢ㄤ簬澶撮儴瀵艰埅銆�
-
-### [鏌ョ湅鏂囨。](https://uniapp.dcloud.io/component/uniui/uni-nav-bar)
-#### 濡備娇鐢ㄨ繃绋嬩腑鏈変换浣曢棶棰橈紝鎴栬�呮偍瀵箄ni-ui鏈変竴浜涘ソ鐨勫缓璁紝娆㈣繋鍔犲叆 uni-ui 浜ゆ祦缇わ細871950839
-
-
-
-
-
diff --git a/uni_modules/uni-notice-bar/changelog.md b/uni_modules/uni-notice-bar/changelog.md
deleted file mode 100644
index 9ee75a0..0000000
--- a/uni_modules/uni-notice-bar/changelog.md
+++ /dev/null
@@ -1,16 +0,0 @@
-## 1.2.0锛�2021-11-19锛�
-- 浼樺寲 缁勪欢UI锛屽苟鎻愪緵璁捐璧勬簮锛岃瑙�:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource)
-- 鏂囨。杩佺Щ锛岃瑙�:[https://uniapp.dcloud.io/component/uniui/uni-notice-bar](https://uniapp.dcloud.io/component/uniui/uni-notice-bar)
-## 1.1.1锛�2021-11-09锛�
-- 鏂板 鎻愪緵缁勪欢璁捐璧勬簮锛岀粍浠舵牱寮忚皟鏁�
-## 1.1.0锛�2021-07-30锛�
-- 缁勪欢鍏煎 vue3锛屽浣曞垱寤簐ue3椤圭洰锛岃瑙� [uni-app 椤圭洰鏀寔 vue3 浠嬬粛](https://ask.dcloud.net.cn/article/37834)
-## 1.0.9锛�2021-05-12锛�
-- 鏂板 缁勪欢绀轰緥鍦板潃
-## 1.0.8锛�2021-04-21锛�
-- 浼樺寲 娣诲姞渚濊禆 uni-icons, 瀵煎叆鍚庤嚜鍔ㄤ笅杞戒緷璧�
-## 1.0.7锛�2021-02-05锛�
-- 浼樺寲 缁勪欢寮曠敤鍏崇郴锛岄�氳繃uni_modules寮曠敤缁勪欢
-
-## 1.0.6锛�2021-02-05锛�
-- 璋冩暣涓簎ni_modules鐩綍瑙勮寖
diff --git a/uni_modules/uni-notice-bar/components/uni-notice-bar/uni-notice-bar.vue b/uni_modules/uni-notice-bar/components/uni-notice-bar/uni-notice-bar.vue
deleted file mode 100644
index 424430d..0000000
--- a/uni_modules/uni-notice-bar/components/uni-notice-bar/uni-notice-bar.vue
+++ /dev/null
@@ -1,395 +0,0 @@
-<template>
- <view v-if="show" class="uni-noticebar" :style="{ backgroundColor: backgroundColor }" @click="onClick">
- <uni-icons v-if="showIcon === true || showIcon === 'true'" class="uni-noticebar-icon" type="sound"
- :color="color" size="22" />
- <view ref="textBox" class="uni-noticebar__content-wrapper"
- :class="{'uni-noticebar__content-wrapper--scrollable':scrollable, 'uni-noticebar__content-wrapper--single':!scrollable && (single || moreText)}">
- <view :id="elIdBox" class="uni-noticebar__content"
- :class="{'uni-noticebar__content--scrollable':scrollable, 'uni-noticebar__content--single':!scrollable && (single || moreText)}">
- <text :id="elId" ref="animationEle" class="uni-noticebar__content-text"
- :class="{'uni-noticebar__content-text--scrollable':scrollable,'uni-noticebar__content-text--single':!scrollable && (single || showGetMore)}"
- :style="{color:color, width:wrapWidth+'px', 'animationDuration': animationDuration, '-webkit-animationDuration': animationDuration ,animationPlayState: webviewHide?'paused':animationPlayState,'-webkit-animationPlayState':webviewHide?'paused':animationPlayState, animationDelay: animationDelay, '-webkit-animationDelay':animationDelay}">{{text}}</text>
- </view>
- </view>
- <view v-if="showGetMore === true || showGetMore === 'true'" class="uni-noticebar__more uni-cursor-point"
- @click="clickMore">
- <text v-if="moreText.length > 0" :style="{ color: moreColor }" class="uni-noticebar__more-text">{{ moreText }}</text>
- <uni-icons v-else type="right" :color="moreColor" size="16" />
- </view>
- <view class="uni-noticebar-close uni-cursor-point" v-if="(showClose === true || showClose === 'true') && (showGetMore === false || showGetMore === 'false')">
- <uni-icons
- type="closeempty" :color="color" size="16" @click="close" />
- </view>
- </view>
-</template>
-
-<script>
- // #ifdef APP-NVUE
- const dom = weex.requireModule('dom');
- const animation = weex.requireModule('animation');
- // #endif
-
- /**
- * NoticeBar 鑷畾涔夊鑸爮
- * @description 閫氬憡鏍忕粍浠�
- * @tutorial https://ext.dcloud.net.cn/plugin?id=30
- * @property {Number} speed 鏂囧瓧婊氬姩鐨勯�熷害锛岄粯璁�100px/绉�
- * @property {String} text 鏄剧ず鏂囧瓧
- * @property {String} backgroundColor 鑳屾櫙棰滆壊
- * @property {String} color 鏂囧瓧棰滆壊
- * @property {String} moreColor 鏌ョ湅鏇村鏂囧瓧鐨勯鑹�
- * @property {String} moreText 璁剧疆鈥滄煡鐪嬫洿澶氣�濈殑鏂囨湰
- * @property {Boolean} single = [true|false] 鏄惁鍗曡
- * @property {Boolean} scrollable = [true|false] 鏄惁婊氬姩锛屼负true鏃讹紝NoticeBar涓哄崟琛�
- * @property {Boolean} showIcon = [true|false] 鏄惁鏄剧ず宸︿晶鍠囧彮鍥炬爣
- * @property {Boolean} showClose = [true|false] 鏄惁鏄剧ず宸︿晶鍏抽棴鎸夐挳
- * @property {Boolean} showGetMore = [true|false] 鏄惁鏄剧ず鍙充晶鏌ョ湅鏇村鍥炬爣锛屼负true鏃讹紝NoticeBar涓哄崟琛�
- * @event {Function} click 鐐瑰嚮 NoticeBar 瑙﹀彂浜嬩欢
- * @event {Function} close 鍏抽棴 NoticeBar 瑙﹀彂浜嬩欢
- * @event {Function} getmore 鐐瑰嚮鈥濇煡鐪嬫洿澶氣�滄椂瑙﹀彂浜嬩欢
- */
-
- export default {
- name: 'UniNoticeBar',
- emits: ['click', 'getmore', 'close'],
- props: {
- text: {
- type: String,
- default: ''
- },
- moreText: {
- type: String,
- default: ''
- },
- backgroundColor: {
- type: String,
- default: '#FFF9EA'
- },
- speed: {
- // 榛樿1s婊氬姩100px
- type: Number,
- default: 100
- },
- color: {
- type: String,
- default: '#FF9A43'
- },
- moreColor: {
- type: String,
- default: '#FF9A43'
- },
- single: {
- // 鏄惁鍗曡
- type: [Boolean, String],
- default: false
- },
- scrollable: {
- // 鏄惁婊氬姩锛屾坊鍔犲悗鎺у埗鍗曡鏁堟灉鍙栨秷
- type: [Boolean, String],
- default: false
- },
- showIcon: {
- // 鏄惁鏄剧ず宸︿晶icon
- type: [Boolean, String],
- default: false
- },
- showGetMore: {
- // 鏄惁鏄剧ず鍙充晶鏌ョ湅鏇村
- type: [Boolean, String],
- default: false
- },
- showClose: {
- // 鏄惁鏄剧ず宸︿晶鍏抽棴鎸夐挳
- type: [Boolean, String],
- default: false
- }
- },
- data() {
- const elId = `Uni_${Math.ceil(Math.random() * 10e5).toString(36)}`
- const elIdBox = `Uni_${Math.ceil(Math.random() * 10e5).toString(36)}`
- return {
- textWidth: 0,
- boxWidth: 0,
- wrapWidth: '',
- webviewHide: false,
- // #ifdef APP-NVUE
- stopAnimation: false,
- // #endif
- elId: elId,
- elIdBox: elIdBox,
- show: true,
- animationDuration: 'none',
- animationPlayState: 'paused',
- animationDelay: '0s'
- }
- },
- mounted() {
- // #ifdef APP-PLUS
- var pages = getCurrentPages();
- var page = pages[pages.length - 1];
- var currentWebview = page.$getAppWebview();
- currentWebview.addEventListener('hide', () => {
- this.webviewHide = true
- })
- currentWebview.addEventListener('show', () => {
- this.webviewHide = false
- })
- // #endif
- this.$nextTick(() => {
- this.initSize()
- })
- },
- // #ifdef APP-NVUE
- beforeDestroy() {
- this.stopAnimation = true
- },
- // #endif
- methods: {
- initSize() {
- if (this.scrollable) {
- // #ifndef APP-NVUE
- let query = [],
- boxWidth = 0,
- textWidth = 0;
- let textQuery = new Promise((resolve, reject) => {
- uni.createSelectorQuery()
- // #ifndef MP-ALIPAY
- .in(this)
- // #endif
- .select(`#${this.elId}`)
- .boundingClientRect()
- .exec(ret => {
- this.textWidth = ret[0].width
- resolve()
- })
- })
- let boxQuery = new Promise((resolve, reject) => {
- uni.createSelectorQuery()
- // #ifndef MP-ALIPAY
- .in(this)
- // #endif
- .select(`#${this.elIdBox}`)
- .boundingClientRect()
- .exec(ret => {
- this.boxWidth = ret[0].width
- resolve()
- })
- })
- query.push(textQuery)
- query.push(boxQuery)
- Promise.all(query).then(() => {
- this.animationDuration = `${this.textWidth / this.speed}s`
- this.animationDelay = `-${this.boxWidth / this.speed}s`
- setTimeout(() => {
- this.animationPlayState = 'running'
- }, 1000)
- })
- // #endif
- // #ifdef APP-NVUE
- dom.getComponentRect(this.$refs['animationEle'], (res) => {
- let winWidth = uni.getSystemInfoSync().windowWidth
- this.textWidth = res.size.width
- animation.transition(this.$refs['animationEle'], {
- styles: {
- transform: `translateX(-${winWidth}px)`
- },
- duration: 0,
- timingFunction: 'linear',
- delay: 0
- }, () => {
- if (!this.stopAnimation) {
- animation.transition(this.$refs['animationEle'], {
- styles: {
- transform: `translateX(-${this.textWidth}px)`
- },
- timingFunction: 'linear',
- duration: (this.textWidth - winWidth) / this.speed * 1000,
- delay: 1000
- }, () => {
- if (!this.stopAnimation) {
- this.loopAnimation()
- }
- });
- }
- });
- })
- // #endif
- }
- // #ifdef APP-NVUE
- if (!this.scrollable && (this.single || this.moreText)) {
- dom.getComponentRect(this.$refs['textBox'], (res) => {
- this.wrapWidth = res.size.width
- })
- }
- // #endif
- },
- loopAnimation() {
- // #ifdef APP-NVUE
- animation.transition(this.$refs['animationEle'], {
- styles: {
- transform: `translateX(0px)`
- },
- duration: 0
- }, () => {
- if (!this.stopAnimation) {
- animation.transition(this.$refs['animationEle'], {
- styles: {
- transform: `translateX(-${this.textWidth}px)`
- },
- duration: this.textWidth / this.speed * 1000,
- timingFunction: 'linear',
- delay: 0
- }, () => {
- if (!this.stopAnimation) {
- this.loopAnimation()
- }
- });
- }
- });
- // #endif
- },
- clickMore() {
- this.$emit('getmore')
- },
- close() {
- this.show = false;
- this.$emit('close')
- },
- onClick() {
- this.$emit('click')
- }
- }
- }
-</script>
-
-<style lang="scss" scoped>
- .uni-noticebar {
- /* #ifndef APP-NVUE */
- display: flex;
- width: 100%;
- box-sizing: border-box;
- /* #endif */
- flex-direction: row;
- align-items: center;
- padding: 10px 12px;
- margin-bottom: 10px;
- }
-
- .uni-cursor-point {
- /* #ifdef H5 */
- cursor: pointer;
- /* #endif */
- }
-
- .uni-noticebar-close {
- margin-left: 8px;
- margin-right: 5px;
- }
-
- .uni-noticebar-icon {
- margin-right: 5px;
- }
-
- .uni-noticebar__content-wrapper {
- flex: 1;
- flex-direction: column;
- overflow: hidden;
- }
-
- .uni-noticebar__content-wrapper--single {
- /* #ifndef APP-NVUE */
- line-height: 18px;
- /* #endif */
- }
-
- .uni-noticebar__content-wrapper--single,
- .uni-noticebar__content-wrapper--scrollable {
- flex-direction: row;
- }
-
- /* #ifndef APP-NVUE */
- .uni-noticebar__content-wrapper--scrollable {
- position: relative;
- height: 18px;
- }
-
- /* #endif */
-
- .uni-noticebar__content--scrollable {
- /* #ifdef APP-NVUE */
- flex: 0;
- /* #endif */
- /* #ifndef APP-NVUE */
- flex: 1;
- display: block;
- overflow: hidden;
- /* #endif */
- }
-
- .uni-noticebar__content--single {
- /* #ifndef APP-NVUE */
- display: flex;
- flex: none;
- width: 100%;
- justify-content: center;
- /* #endif */
- }
-
- .uni-noticebar__content-text {
- font-size: 14px;
- line-height: 18px;
- /* #ifndef APP-NVUE */
- word-break: break-all;
- /* #endif */
- }
-
- .uni-noticebar__content-text--single {
- /* #ifdef APP-NVUE */
- lines: 1;
- /* #endif */
- /* #ifndef APP-NVUE */
- display: block;
- width: 100%;
- white-space: nowrap;
- /* #endif */
- overflow: hidden;
- text-overflow: ellipsis;
- }
-
- .uni-noticebar__content-text--scrollable {
- /* #ifdef APP-NVUE */
- lines: 1;
- padding-left: 750rpx;
- /* #endif */
- /* #ifndef APP-NVUE */
- position: absolute;
- display: block;
- height: 18px;
- line-height: 18px;
- white-space: nowrap;
- padding-left: 100%;
- animation: notice 10s 0s linear infinite both;
- animation-play-state: paused;
- /* #endif */
- }
-
- .uni-noticebar__more {
- /* #ifndef APP-NVUE */
- display: inline-flex;
- /* #endif */
- flex-direction: row;
- flex-wrap: nowrap;
- align-items: center;
- padding-left: 5px;
- }
-
- .uni-noticebar__more-text {
- font-size: 14px;
- }
-
- @keyframes notice {
- 100% {
- transform: translate3d(-100%, 0, 0);
- }
- }
-</style>
diff --git a/uni_modules/uni-notice-bar/package.json b/uni_modules/uni-notice-bar/package.json
deleted file mode 100644
index 97719a0..0000000
--- a/uni_modules/uni-notice-bar/package.json
+++ /dev/null
@@ -1,90 +0,0 @@
-{
- "id": "uni-notice-bar",
- "displayName": "uni-notice-bar 閫氬憡鏍�",
- "version": "1.2.0",
- "description": "NoticeBar 閫氬憡鏍忕粍浠讹紝甯哥敤浜庡睍绀哄叕鍛婁俊鎭紝鍙涓烘粴鍔ㄥ叕鍛�",
- "keywords": [
- "uni-ui",
- "uniui",
- "閫氬憡鏍�",
- "鍏憡",
- "璺戦┈鐏�"
-],
- "repository": "https://github.com/dcloudio/uni-ui",
- "engines": {
- "HBuilderX": ""
- },
- "directories": {
- "example": "../../temps/example_temps"
- },
- "dcloudext": {
- "category": [
- "鍓嶇缁勪欢",
- "閫氱敤缁勪欢"
- ],
- "sale": {
- "regular": {
- "price": "0.00"
- },
- "sourcecode": {
- "price": "0.00"
- }
- },
- "contact": {
- "qq": ""
- },
- "declaration": {
- "ads": "鏃�",
- "data": "鏃�",
- "permissions": "鏃�"
- },
- "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui"
- },
- "uni_modules": {
- "dependencies": [
- "uni-scss",
- "uni-icons"
- ],
- "encrypt": [],
- "platforms": {
- "cloud": {
- "tcb": "y",
- "aliyun": "y"
- },
- "client": {
- "App": {
- "app-vue": "y",
- "app-nvue": "y"
- },
- "H5-mobile": {
- "Safari": "y",
- "Android Browser": "y",
- "寰俊娴忚鍣�(Android)": "y",
- "QQ娴忚鍣�(Android)": "y"
- },
- "H5-pc": {
- "Chrome": "y",
- "IE": "y",
- "Edge": "y",
- "Firefox": "y",
- "Safari": "y"
- },
- "灏忕▼搴�": {
- "寰俊": "y",
- "闃块噷": "y",
- "鐧惧害": "y",
- "瀛楄妭璺冲姩": "y",
- "QQ": "y"
- },
- "蹇簲鐢�": {
- "鍗庝负": "u",
- "鑱旂洘": "u"
- },
- "Vue": {
- "vue2": "y",
- "vue3": "y"
- }
- }
- }
- }
-}
diff --git a/uni_modules/uni-notice-bar/readme.md b/uni_modules/uni-notice-bar/readme.md
deleted file mode 100644
index fb2ede2..0000000
--- a/uni_modules/uni-notice-bar/readme.md
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-## NoticeBar 閫氬憡鏍�
-> **缁勪欢鍚嶏細uni-notice-bar**
-> 浠g爜鍧楋細 `uNoticeBar`
-
-
-閫氬憡鏍忕粍浠� 銆�
-
-### [鏌ョ湅鏂囨。](https://uniapp.dcloud.io/component/uniui/uni-notice-bar)
-#### 濡備娇鐢ㄨ繃绋嬩腑鏈変换浣曢棶棰橈紝鎴栬�呮偍瀵箄ni-ui鏈変竴浜涘ソ鐨勫缓璁紝娆㈣繋鍔犲叆 uni-ui 浜ゆ祦缇わ細871950839
-
-
diff --git a/uni_modules/uni-number-box/changelog.md b/uni_modules/uni-number-box/changelog.md
deleted file mode 100644
index 5925c32..0000000
--- a/uni_modules/uni-number-box/changelog.md
+++ /dev/null
@@ -1,25 +0,0 @@
-## 1.2.1锛�2021-11-22锛�
-- 淇 vue3涓煇浜泂css鍙橀噺鏃犳硶鎵惧埌鐨勯棶棰�
-## 1.2.0锛�2021-11-19锛�
-- 浼樺寲 缁勪欢UI锛屽苟鎻愪緵璁捐璧勬簮锛岃瑙�:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource)
-- 鏂囨。杩佺Щ锛岃瑙�:[https://uniapp.dcloud.io/component/uniui/uni-number-box](https://uniapp.dcloud.io/component/uniui/uni-number-box)
-## 1.1.2锛�2021-11-09锛�
-- 鏂板 鎻愪緵缁勪欢璁捐璧勬簮锛岀粍浠舵牱寮忚皟鏁�
-## 1.1.1锛�2021-07-30锛�
-- 浼樺寲 vue3涓嬩簨浠惰鍛婄殑闂
-## 1.1.0锛�2021-07-13锛�
-- 缁勪欢鍏煎 vue3锛屽浣曞垱寤簐ue3椤圭洰锛岃瑙� [uni-app 椤圭洰鏀寔 vue3 浠嬬粛](https://ask.dcloud.net.cn/article/37834)
-## 1.0.7锛�2021-05-12锛�
-- 鏂板 缁勪欢绀轰緥鍦板潃
-## 1.0.6锛�2021-04-20锛�
-- 淇 uni-number-box 娴偣鏁拌繍绠椾笉绮剧‘鐨� bug
-- 淇 uni-number-box change 浜嬩欢瑙﹀彂涓嶆纭殑 bug
-- 鏂板 uni-number-box v-model 鍙屽悜缁戝畾
-## 1.0.5锛�2021-02-05锛�
-- 璋冩暣涓簎ni_modules鐩綍瑙勮寖
-
-## 1.0.7锛�2021-02-05锛�
-- 璋冩暣涓簎ni_modules鐩綍瑙勮寖
-- 鏂板 鏀寔 v-model
-- 鏂板 鏀寔 focus銆乥lur 浜嬩欢
-- 鏂板 鏀寔 PC 绔�
diff --git a/uni_modules/uni-number-box/components/uni-number-box/uni-number-box.vue b/uni_modules/uni-number-box/components/uni-number-box/uni-number-box.vue
deleted file mode 100644
index 8d255fb..0000000
--- a/uni_modules/uni-number-box/components/uni-number-box/uni-number-box.vue
+++ /dev/null
@@ -1,220 +0,0 @@
-<template>
- <view class="uni-numbox">
- <view @click="_calcValue('minus')" class="uni-numbox__minus uni-numbox-btns" :style="{background}">
- <text class="uni-numbox--text" :class="{ 'uni-numbox--disabled': inputValue <= min || disabled }" :style="{color}">-</text>
- </view>
- <input :disabled="disabled" @focus="_onFocus" @blur="_onBlur" class="uni-numbox__value" type="number"
- v-model="inputValue" :style="{background, color}" />
- <view @click="_calcValue('plus')" class="uni-numbox__plus uni-numbox-btns" :style="{background}">
- <text class="uni-numbox--text" :class="{ 'uni-numbox--disabled': inputValue >= max || disabled }" :style="{color}">+</text>
- </view>
- </view>
-</template>
-<script>
- /**
- * NumberBox 鏁板瓧杈撳叆妗�
- * @description 甯﹀姞鍑忔寜閽殑鏁板瓧杈撳叆妗�
- * @tutorial https://ext.dcloud.net.cn/plugin?id=31
- * @property {Number} value 杈撳叆妗嗗綋鍓嶅��
- * @property {Number} min 鏈�灏忓��
- * @property {Number} max 鏈�澶у��
- * @property {Number} step 姣忔鐐瑰嚮鏀瑰彉鐨勯棿闅斿ぇ灏�
- * @property {String} background 鑳屾櫙鑹�
- * @property {String} color 瀛椾綋棰滆壊锛堝墠鏅壊锛�
- * @property {Boolean} disabled = [true|false] 鏄惁涓虹鐢ㄧ姸鎬�
- * @event {Function} change 杈撳叆妗嗗�兼敼鍙樻椂瑙﹀彂鐨勪簨浠讹紝鍙傛暟涓鸿緭鍏ユ褰撳墠鐨� value
- * @event {Function} focus 杈撳叆妗嗚仛鐒︽椂瑙﹀彂鐨勪簨浠讹紝鍙傛暟涓� event 瀵硅薄
- * @event {Function} blur 杈撳叆妗嗗け鐒︽椂瑙﹀彂鐨勪簨浠讹紝鍙傛暟涓� event 瀵硅薄
- */
-
- export default {
- name: "UniNumberBox",
- emits: ['change', 'input', 'update:modelValue', 'blur', 'focus'],
- props: {
- value: {
- type: [Number, String],
- default: 1
- },
- modelValue: {
- type: [Number, String],
- default: 1
- },
- min: {
- type: Number,
- default: 0
- },
- max: {
- type: Number,
- default: 100
- },
- step: {
- type: Number,
- default: 1
- },
- background: {
- type: String,
- default: '#f5f5f5'
- },
- color: {
- type: String,
- default: '#333'
- },
- disabled: {
- type: Boolean,
- default: false
- }
- },
- data() {
- return {
- inputValue: 0
- };
- },
- watch: {
- value(val) {
- this.inputValue = +val;
- },
- modelValue(val) {
- this.inputValue = +val;
- }
- },
- created() {
- if (this.value === 1) {
- this.inputValue = +this.modelValue;
- }
- if (this.modelValue === 1) {
- this.inputValue = +this.value;
- }
- },
- methods: {
- _calcValue(type) {
- if (this.disabled) {
- return;
- }
- const scale = this._getDecimalScale();
- let value = this.inputValue * scale;
- let step = this.step * scale;
- if (type === "minus") {
- value -= step;
- if (value < (this.min * scale)) {
- return;
- }
- if (value > (this.max * scale)) {
- value = this.max * scale
- }
- }
-
- if (type === "plus") {
- value += step;
- if (value > (this.max * scale)) {
- return;
- }
- if (value < (this.min * scale)) {
- value = this.min * scale
- }
- }
-
- this.inputValue = (value / scale).toFixed(String(scale).length - 1);
- this.$emit("change", +this.inputValue);
- // TODO vue2 鍏煎
- this.$emit("input", +this.inputValue);
- // TODO vue3 鍏煎
- this.$emit("update:modelValue", +this.inputValue);
- },
- _getDecimalScale() {
-
- let scale = 1;
- // 娴偣鍨�
- if (~~this.step !== this.step) {
- scale = Math.pow(10, String(this.step).split(".")[1].length);
- }
- return scale;
- },
- _onBlur(event) {
- this.$emit('blur', event)
- let value = event.detail.value;
- if (!value) {
- // this.inputValue = 0;
- return;
- }
- value = +value;
- if (value > this.max) {
- value = this.max;
- } else if (value < this.min) {
- value = this.min;
- }
- const scale = this._getDecimalScale();
- this.inputValue = value.toFixed(String(scale).length - 1);
- this.$emit("change", +this.inputValue);
- this.$emit("input", +this.inputValue);
- },
- _onFocus(event) {
- this.$emit('focus', event)
- }
- }
- };
-</script>
-<style lang="scss" scoped>
- $box-height: 26px;
- $bg: #f5f5f5;
- $br: 2px;
- $color: #333;
-
- .uni-numbox {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex-direction: row;
- }
-
- .uni-numbox-btns {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex-direction: row;
- align-items: center;
- justify-content: center;
- padding: 0 8px;
- background-color: $bg;
- /* #ifdef H5 */
- cursor: pointer;
- /* #endif */
- }
-
- .uni-numbox__value {
- margin: 0 2px;
- background-color: $bg;
- width: 40px;
- height: $box-height;
- text-align: center;
- font-size: 14px;
- border-left-width: 0;
- border-right-width: 0;
- color: $color;
- }
-
- .uni-numbox__minus {
- border-top-left-radius: $br;
- border-bottom-left-radius: $br;
- }
-
- .uni-numbox__plus {
- border-top-right-radius: $br;
- border-bottom-right-radius: $br;
- }
-
- .uni-numbox--text {
- // fix nvue
- line-height: 20px;
-
- font-size: 20px;
- font-weight: 300;
- color: $color;
- }
-
- .uni-numbox .uni-numbox--disabled {
- color: #c0c0c0 !important;
- /* #ifdef H5 */
- cursor: not-allowed;
- /* #endif */
- }
-</style>
diff --git a/uni_modules/uni-number-box/package.json b/uni_modules/uni-number-box/package.json
deleted file mode 100644
index ad82336..0000000
--- a/uni_modules/uni-number-box/package.json
+++ /dev/null
@@ -1,85 +0,0 @@
-{
- "id": "uni-number-box",
- "displayName": "uni-number-box 鏁板瓧杈撳叆妗�",
- "version": "1.2.1",
- "description": "NumberBox 甯﹀姞鍑忔寜閽殑鏁板瓧杈撳叆妗嗙粍浠讹紝鐢ㄦ埛鍙互鎺у埗姣忔鐐瑰嚮澧炲姞鐨勬暟鍊硷紝鏀寔灏忔暟銆�",
- "keywords": [
- "uni-ui",
- "uniui",
- "鏁板瓧杈撳叆妗�"
-],
- "repository": "https://github.com/dcloudio/uni-ui",
- "engines": {
- "HBuilderX": ""
- },
- "directories": {
- "example": "../../temps/example_temps"
- },
- "dcloudext": {
- "category": [
- "鍓嶇缁勪欢",
- "閫氱敤缁勪欢"
- ],
- "sale": {
- "regular": {
- "price": "0.00"
- },
- "sourcecode": {
- "price": "0.00"
- }
- },
- "contact": {
- "qq": ""
- },
- "declaration": {
- "ads": "鏃�",
- "data": "鏃�",
- "permissions": "鏃�"
- },
- "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui"
- },
- "uni_modules": {
- "dependencies": ["uni-scss"],
- "encrypt": [],
- "platforms": {
- "cloud": {
- "tcb": "y",
- "aliyun": "y"
- },
- "client": {
- "App": {
- "app-vue": "y",
- "app-nvue": "y"
- },
- "H5-mobile": {
- "Safari": "y",
- "Android Browser": "y",
- "寰俊娴忚鍣�(Android)": "y",
- "QQ娴忚鍣�(Android)": "y"
- },
- "H5-pc": {
- "Chrome": "y",
- "IE": "y",
- "Edge": "y",
- "Firefox": "y",
- "Safari": "y"
- },
- "灏忕▼搴�": {
- "寰俊": "y",
- "闃块噷": "y",
- "鐧惧害": "y",
- "瀛楄妭璺冲姩": "y",
- "QQ": "y"
- },
- "蹇簲鐢�": {
- "鍗庝负": "u",
- "鑱旂洘": "u"
- },
- "Vue": {
- "vue2": "y",
- "vue3": "y"
- }
- }
- }
- }
-}
\ No newline at end of file
diff --git a/uni_modules/uni-number-box/readme.md b/uni_modules/uni-number-box/readme.md
deleted file mode 100644
index affc56f..0000000
--- a/uni_modules/uni-number-box/readme.md
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-## NumberBox 鏁板瓧杈撳叆妗�
-> **缁勪欢鍚嶏細uni-number-box**
-> 浠g爜鍧楋細 `uNumberBox`
-
-
-甯﹀姞鍑忔寜閽殑鏁板瓧杈撳叆妗嗐��
-
-### [鏌ョ湅鏂囨。](https://uniapp.dcloud.io/component/uniui/uni-number-box)
-#### 濡備娇鐢ㄨ繃绋嬩腑鏈変换浣曢棶棰橈紝鎴栬�呮偍瀵箄ni-ui鏈変竴浜涘ソ鐨勫缓璁紝娆㈣繋鍔犲叆 uni-ui 浜ゆ祦缇わ細871950839
-
-
diff --git a/uni_modules/uni-pagination/changelog.md b/uni_modules/uni-pagination/changelog.md
deleted file mode 100644
index 336c2ba..0000000
--- a/uni_modules/uni-pagination/changelog.md
+++ /dev/null
@@ -1,20 +0,0 @@
-## 1.2.1锛�2021-11-22锛�
-- 淇 vue3涓煇浜泂css鍙橀噺鏃犳硶鎵惧埌鐨勯棶棰�
-## 1.2.0锛�2021-11-19锛�
-- 浼樺寲 缁勪欢UI锛屽苟鎻愪緵璁捐璧勬簮锛岃瑙�:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource)
-- 鏂囨。杩佺Щ锛岃瑙�:[https://uniapp.dcloud.io/component/uniui/uni-pagination](https://uniapp.dcloud.io/component/uniui/uni-pagination)
-## 1.1.2锛�2021-10-08锛�
-- 淇 current 銆乿alue 灞炴�ф湭鐩戝惉锛屽鑷撮珮浜牱寮忓け鏁堢殑 bug
-## 1.1.1锛�2021-08-20锛�
-- 鏂板 鏀寔鍥介檯鍖�
-## 1.1.0锛�2021-07-30锛�
-- 缁勪欢鍏煎 vue3锛屽浣曞垱寤簐ue3椤圭洰锛岃瑙� [uni-app 椤圭洰鏀寔 vue3 浠嬬粛](https://ask.dcloud.net.cn/article/37834)
-## 1.0.7锛�2021-05-12锛�
-- 鏂板 缁勪欢绀轰緥鍦板潃
-## 1.0.6锛�2021-04-12锛�
-- 鏂板 PC 鍜� 绉诲姩绔�傞厤涓嶅悓鐨� ui
-## 1.0.5锛�2021-02-05锛�
-- 浼樺寲 缁勪欢寮曠敤鍏崇郴锛岄�氳繃uni_modules寮曠敤缁勪欢
-
-## 1.0.4锛�2021-02-05锛�
-- 璋冩暣涓簎ni_modules鐩綍瑙勮寖
diff --git a/uni_modules/uni-pagination/components/uni-pagination/i18n/en.json b/uni_modules/uni-pagination/components/uni-pagination/i18n/en.json
deleted file mode 100644
index a57becd..0000000
--- a/uni_modules/uni-pagination/components/uni-pagination/i18n/en.json
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "uni-pagination.prevText": "prev",
- "uni-pagination.nextText": "next"
-}
diff --git a/uni_modules/uni-pagination/components/uni-pagination/i18n/es.json b/uni_modules/uni-pagination/components/uni-pagination/i18n/es.json
deleted file mode 100644
index ccbba2f..0000000
--- a/uni_modules/uni-pagination/components/uni-pagination/i18n/es.json
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "uni-pagination.prevText": "anterior",
- "uni-pagination.nextText": "pr贸xima"
-}
diff --git a/uni_modules/uni-pagination/components/uni-pagination/i18n/fr.json b/uni_modules/uni-pagination/components/uni-pagination/i18n/fr.json
deleted file mode 100644
index 9b5f2d9..0000000
--- a/uni_modules/uni-pagination/components/uni-pagination/i18n/fr.json
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "uni-pagination.prevText": "pr茅c茅dente",
- "uni-pagination.nextText": "suivante"
-}
diff --git a/uni_modules/uni-pagination/components/uni-pagination/i18n/index.js b/uni_modules/uni-pagination/components/uni-pagination/i18n/index.js
deleted file mode 100644
index 2469dd0..0000000
--- a/uni_modules/uni-pagination/components/uni-pagination/i18n/index.js
+++ /dev/null
@@ -1,12 +0,0 @@
-import en from './en.json'
-import es from './es.json'
-import fr from './fr.json'
-import zhHans from './zh-Hans.json'
-import zhHant from './zh-Hant.json'
-export default {
- en,
- es,
- fr,
- 'zh-Hans': zhHans,
- 'zh-Hant': zhHant
-}
diff --git a/uni_modules/uni-pagination/components/uni-pagination/i18n/zh-Hans.json b/uni_modules/uni-pagination/components/uni-pagination/i18n/zh-Hans.json
deleted file mode 100644
index fedbe82..0000000
--- a/uni_modules/uni-pagination/components/uni-pagination/i18n/zh-Hans.json
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "uni-pagination.prevText": "涓婁竴椤�",
- "uni-pagination.nextText": "涓嬩竴椤�"
-}
diff --git a/uni_modules/uni-pagination/components/uni-pagination/i18n/zh-Hant.json b/uni_modules/uni-pagination/components/uni-pagination/i18n/zh-Hant.json
deleted file mode 100644
index 133b340..0000000
--- a/uni_modules/uni-pagination/components/uni-pagination/i18n/zh-Hant.json
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "uni-pagination.prevText": "涓婁竴闋�",
- "uni-pagination.nextText": "涓嬩竴闋�"
-}
diff --git a/uni_modules/uni-pagination/components/uni-pagination/uni-pagination.vue b/uni_modules/uni-pagination/components/uni-pagination/uni-pagination.vue
deleted file mode 100644
index c62150e..0000000
--- a/uni_modules/uni-pagination/components/uni-pagination/uni-pagination.vue
+++ /dev/null
@@ -1,409 +0,0 @@
-<template>
- <view class="uni-pagination">
- <!-- #ifndef APP-NVUE -->
- <view class="uni-pagination__total is-phone-hide">鍏� {{ total }} 鏉�</view>
- <!-- #endif -->
- <view class="uni-pagination__btn"
- :class="currentIndex === 1 ? 'uni-pagination--disabled' : 'uni-pagination--enabled'"
- :hover-class="currentIndex === 1 ? '' : 'uni-pagination--hover'" :hover-start-time="20"
- :hover-stay-time="70" @click="clickLeft">
- <template v-if="showIcon === true || showIcon === 'true'">
- <uni-icons color="#666" size="16" type="left" />
- </template>
- <template v-else>
- <text class="uni-pagination__child-btn">{{ prevPageText }}</text>
- </template>
- </view>
- <view class="uni-pagination__num uni-pagination__num-flex-none">
- <view class="uni-pagination__num-current">
- <text class="uni-pagination__num-current-text is-pc-hide"
- style="color:#409EFF">{{ currentIndex }}</text>
- <text class="uni-pagination__num-current-text is-pc-hide">/{{ maxPage || 0 }}</text>
- <!-- #ifndef APP-NVUE -->
- <view v-for="(item, index) in paper" :key="index" :class="{ 'page--active': item === currentIndex }"
- class="uni-pagination__num-tag tag--active is-phone-hide" @click.top="selectPage(item, index)">
- <text>{{ item }}</text>
- </view>
- <!-- #endif -->
-
- </view>
- </view>
- <view class="uni-pagination__btn"
- :class="currentIndex >= maxPage ? 'uni-pagination--disabled' : 'uni-pagination--enabled'"
- :hover-class="currentIndex === maxPage ? '' : 'uni-pagination--hover'" :hover-start-time="20"
- :hover-stay-time="70" @click="clickRight">
- <template v-if="showIcon === true || showIcon === 'true'">
- <uni-icons color="#666" size="16" type="right" />
- </template>
- <template v-else>
- <text class="uni-pagination__child-btn">{{ nextPageText }}</text>
- </template>
- </view>
- </view>
-</template>
-
-<script>
- /**
- * Pagination 鍒嗛〉鍣�
- * @description 鍒嗛〉鍣ㄧ粍浠讹紝鐢ㄤ簬灞曠ず椤电爜銆佽姹傛暟鎹瓑
- * @tutorial https://ext.dcloud.net.cn/plugin?id=32
- * @property {String} prevText 宸︿晶鎸夐挳鏂囧瓧
- * @property {String} nextText 鍙充晶鎸夐挳鏂囧瓧
- * @property {Number} current 褰撳墠椤�
- * @property {Number} total 鏁版嵁鎬婚噺
- * @property {Number} pageSize 姣忛〉鏁版嵁閲�
- * @property {Number} showIcon = [true|false] 鏄惁浠� icon 褰㈠紡灞曠ず鎸夐挳
- * @event {Function} change 鐐瑰嚮椤电爜鎸夐挳鏃惰Е鍙� ,e={type,current} current涓哄綋鍓嶉〉锛宼ype鍊间负锛歯ext/prev锛岃〃绀虹偣鍑荤殑鏄笂涓�椤佃繕鏄笅涓�涓�
- */
-
- import {
- initVueI18n
- } from '@dcloudio/uni-i18n'
- import messages from './i18n/index.js'
- const {
- t
- } = initVueI18n(messages)
- export default {
- name: 'UniPagination',
- emits: ['update:modelValue', 'input', 'change'],
- props: {
- value: {
- type: [Number, String],
- default: 1
- },
- modelValue: {
- type: [Number, String],
- default: 1
- },
- prevText: {
- type: String,
- },
- nextText: {
- type: String,
- },
- current: {
- type: [Number, String],
- default: 1
- },
- total: {
- // 鏁版嵁鎬婚噺
- type: [Number, String],
- default: 0
- },
- pageSize: {
- // 姣忛〉鏁版嵁閲�
- type: [Number, String],
- default: 10
- },
- showIcon: {
- // 鏄惁浠� icon 褰㈠紡灞曠ず鎸夐挳
- type: [Boolean, String],
- default: false
- },
- pagerCount: {
- type: Number,
- default: 7
- }
- },
- data() {
- return {
- currentIndex: 1,
- paperData: []
- }
- },
- computed: {
- prevPageText() {
- return this.prevText || t('uni-pagination.prevText')
- },
- nextPageText() {
- return this.nextText || t('uni-pagination.nextText')
- },
- maxPage() {
- let maxPage = 1
- let total = Number(this.total)
- let pageSize = Number(this.pageSize)
- if (total && pageSize) {
- maxPage = Math.ceil(total / pageSize)
- }
- return maxPage
- },
- paper() {
- const num = this.currentIndex
- // TODO 鏈�澶ч〉鏁�
- const pagerCount = this.pagerCount
- // const total = 181
- const total = this.total
- const pageSize = this.pageSize
- let totalArr = []
- let showPagerArr = []
- let pagerNum = Math.ceil(total / pageSize)
- for (let i = 0; i < pagerNum; i++) {
- totalArr.push(i + 1)
- }
- showPagerArr.push(1)
- const totalNum = totalArr[totalArr.length - (pagerCount + 1) / 2]
- totalArr.forEach((item, index) => {
- if ((pagerCount + 1) / 2 >= num) {
- if (item < pagerCount + 1 && item > 1) {
- showPagerArr.push(item)
- }
- } else if (num + 2 <= totalNum) {
- if (item > num - (pagerCount + 1) / 2 && item < num + (pagerCount + 1) / 2) {
- showPagerArr.push(item)
- }
- } else {
- if ((item > num - (pagerCount + 1) / 2 || pagerNum - pagerCount < item) && item < totalArr[
- totalArr.length - 1]) {
- showPagerArr.push(item)
- }
- }
- })
- if (pagerNum > pagerCount) {
- if ((pagerCount + 1) / 2 >= num) {
- showPagerArr[showPagerArr.length - 1] = '...'
- } else if (num + 2 <= totalNum) {
- showPagerArr[1] = '...'
- showPagerArr[showPagerArr.length - 1] = '...'
- } else {
- showPagerArr[1] = '...'
- }
- showPagerArr.push(totalArr[totalArr.length - 1])
- } else {
- if ((pagerCount + 1) / 2 >= num) {} else if (num + 2 <= totalNum) {} else {
- showPagerArr.shift()
- showPagerArr.push(totalArr[totalArr.length - 1])
- }
- }
-
- return showPagerArr
- }
- },
- watch: {
- current: {
- immediate: true,
- handler(val, old) {
- if (val < 1) {
- this.currentIndex = 1
- } else {
- this.currentIndex = val
- }
- }
- },
- value: {
- immediate: true,
- handler(val) {
- if (Number(this.current) !== 1) return
- if (val < 1) {
- this.currentIndex = 1
- } else {
- this.currentIndex = val
- }
- }
- }
- },
- methods: {
- // 閫夋嫨鏍囩
- selectPage(e, index) {
- if (parseInt(e)) {
- this.currentIndex = e
- this.change('current')
- } else {
- let pagerNum = Math.ceil(this.total / this.pageSize)
- // let pagerNum = Math.ceil(181 / this.pageSize)
- // 涓婁竴椤�
- if (index <= 1) {
- if (this.currentIndex - 5 > 1) {
- this.currentIndex -= 5
- } else {
- this.currentIndex = 1
- }
- return
- }
- // 涓嬩竴椤�
- if (index >= 6) {
- if (this.currentIndex + 5 > pagerNum) {
- this.currentIndex = pagerNum
- } else {
- this.currentIndex += 5
- }
- return
- }
- }
- },
- clickLeft() {
- if (Number(this.currentIndex) === 1) {
- return
- }
- this.currentIndex -= 1
- this.change('prev')
- },
- clickRight() {
- if (Number(this.currentIndex) >= this.maxPage) {
- return
- }
- this.currentIndex += 1
- this.change('next')
- },
- change(e) {
- this.$emit('input', this.currentIndex)
- this.$emit('update:modelValue', this.currentIndex)
- this.$emit('change', {
- type: e,
- current: this.currentIndex
- })
- }
- }
- }
-</script>
-
-<style lang="scss" scoped>
- $uni-primary: #2979ff;
- .uni-pagination {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- position: relative;
- overflow: hidden;
- flex-direction: row;
- justify-content: center;
- align-items: center;
- }
-
- .uni-pagination__total {
- font-size: 14px;
- color: #999;
- margin-right: 15px;
- }
-
- .uni-pagination__btn {
- /* #ifndef APP-NVUE */
- display: flex;
- cursor: pointer;
- /* #endif */
- padding: 0 8px;
- line-height: 30px;
- font-size: 12px;
- position: relative;
- background-color: #F0F0F0;
- flex-direction: row;
- justify-content: center;
- align-items: center;
- text-align: center;
- border-radius: 5px;
- // border-width: 1px;
- // border-style: solid;
- // border-color: $uni-border-color;
- }
-
- .uni-pagination__child-btn {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- font-size: 12px;
- position: relative;
- flex-direction: row;
- justify-content: center;
- align-items: center;
- text-align: center;
- color: #666;
- font-size: 12px;
- }
-
- .uni-pagination__num {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex: 1;
- flex-direction: row;
- justify-content: center;
- align-items: center;
- height: 30px;
- line-height: 30px;
- font-size: 12px;
- color: #666;
- margin: 0 5px;
- }
-
- .uni-pagination__num-tag {
- /* #ifdef H5 */
- cursor: pointer;
- min-width: 30px;
- /* #endif */
- margin: 0 5px;
- height: 30px;
- text-align: center;
- line-height: 30px;
- // border: 1px red solid;
- color: #999;
- border-radius: 4px;
- // border-width: 1px;
- // border-style: solid;
- // border-color: $uni-border-color;
- }
-
- .uni-pagination__num-current {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex-direction: row;
- }
-
- .uni-pagination__num-current-text {
- font-size: 15px;
- }
-
- .uni-pagination--enabled {
- color: #333333;
- opacity: 1;
- }
-
- .uni-pagination--disabled {
- opacity: 0.5;
- /* #ifdef H5 */
- cursor: default;
- /* #endif */
- }
-
- .uni-pagination--hover {
- color: rgba(0, 0, 0, 0.6);
- background-color: #eee;
- }
-
- .tag--active:hover {
- color: $uni-primary;
- }
-
- .page--active {
- color: #fff;
- background-color: $uni-primary;
- }
-
- .page--active:hover {
- color: #fff;
- }
-
- /* #ifndef APP-NVUE */
- .is-pc-hide {
- display: block;
- }
-
- .is-phone-hide {
- display: none;
- }
-
- @media screen and (min-width: 450px) {
- .is-pc-hide {
- display: none;
- }
-
- .is-phone-hide {
- display: block;
- }
-
- .uni-pagination__num-flex-none {
- flex: none;
- }
- }
-
- /* #endif */
-</style>
diff --git a/uni_modules/uni-pagination/package.json b/uni_modules/uni-pagination/package.json
deleted file mode 100644
index adce670..0000000
--- a/uni_modules/uni-pagination/package.json
+++ /dev/null
@@ -1,86 +0,0 @@
-{
- "id": "uni-pagination",
- "displayName": "uni-pagination 鍒嗛〉鍣�",
- "version": "1.2.1",
- "description": "Pagination 鍒嗛〉鍣ㄧ粍浠讹紝鐢ㄤ簬灞曠ず椤电爜銆佽姹傛暟鎹瓑銆�",
- "keywords": [
- "uni-ui",
- "uniui",
- "鍒嗛〉鍣�",
- "椤电爜"
-],
- "repository": "https://github.com/dcloudio/uni-ui",
- "engines": {
- "HBuilderX": ""
- },
- "directories": {
- "example": "../../temps/example_temps"
- },
- "dcloudext": {
- "category": [
- "鍓嶇缁勪欢",
- "閫氱敤缁勪欢"
- ],
- "sale": {
- "regular": {
- "price": "0.00"
- },
- "sourcecode": {
- "price": "0.00"
- }
- },
- "contact": {
- "qq": ""
- },
- "declaration": {
- "ads": "鏃�",
- "data": "鏃�",
- "permissions": "鏃�"
- },
- "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui"
- },
- "uni_modules": {
- "dependencies": ["uni-scss","uni-icons"],
- "encrypt": [],
- "platforms": {
- "cloud": {
- "tcb": "y",
- "aliyun": "y"
- },
- "client": {
- "App": {
- "app-vue": "y",
- "app-nvue": "y"
- },
- "H5-mobile": {
- "Safari": "y",
- "Android Browser": "y",
- "寰俊娴忚鍣�(Android)": "y",
- "QQ娴忚鍣�(Android)": "y"
- },
- "H5-pc": {
- "Chrome": "y",
- "IE": "y",
- "Edge": "y",
- "Firefox": "y",
- "Safari": "y"
- },
- "灏忕▼搴�": {
- "寰俊": "y",
- "闃块噷": "y",
- "鐧惧害": "y",
- "瀛楄妭璺冲姩": "y",
- "QQ": "y"
- },
- "蹇簲鐢�": {
- "鍗庝负": "u",
- "鑱旂洘": "u"
- },
- "Vue": {
- "vue2": "y",
- "vue3": "y"
- }
- }
- }
- }
-}
\ No newline at end of file
diff --git a/uni_modules/uni-pagination/readme.md b/uni_modules/uni-pagination/readme.md
deleted file mode 100644
index eefa263..0000000
--- a/uni_modules/uni-pagination/readme.md
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-## Pagination 鍒嗛〉鍣�
-> **缁勪欢鍚嶏細uni-pagination**
-> 浠g爜鍧楋細 `uPagination`
-
-
-鍒嗛〉鍣ㄧ粍浠讹紝鐢ㄤ簬灞曠ず椤电爜銆佽姹傛暟鎹瓑銆�
-
-### [鏌ョ湅鏂囨。](https://uniapp.dcloud.io/component/uniui/uni-pagination)
-#### 濡備娇鐢ㄨ繃绋嬩腑鏈変换浣曢棶棰橈紝鎴栬�呮偍瀵箄ni-ui鏈変竴浜涘ソ鐨勫缓璁紝娆㈣繋鍔犲叆 uni-ui 浜ゆ祦缇わ細871950839
-
-
diff --git a/uni_modules/uni-popup/changelog.md b/uni_modules/uni-popup/changelog.md
deleted file mode 100644
index f2224b7..0000000
--- a/uni_modules/uni-popup/changelog.md
+++ /dev/null
@@ -1,52 +0,0 @@
-## 1.7.5锛�2022-01-19锛�
-- 淇 isMaskClick 澶辨晥鐨刡ug
-## 1.7.4锛�2022-01-19锛�
-- 鏂板 cancelText \ confirmText 灞炴�� 锛屽彲鑷畾涔夋枃鏈�
-- 鏂板 maskBackgroundColor 灞炴�� 锛屽彲浠ヤ慨鏀硅挋鐗堥鑹�
-- 浼樺寲 maskClick灞炴�� 鏇存柊涓� isMaskClick 锛岃В鍐冲井淇″皬绋嬪簭璀﹀憡鐨勯棶棰�
-## 1.7.3锛�2022-01-13锛�
-- 淇 璁剧疆 safeArea 灞炴�т笉鐢熸晥鐨刡ug
-## 1.7.2锛�2021-11-26锛�
-- 浼樺寲 缁勪欢绀轰緥
-## 1.7.1锛�2021-11-26锛�
-- 淇 vuedoc 鏂囧瓧閿欒
-## 1.7.0锛�2021-11-19锛�
-- 浼樺寲 缁勪欢UI锛屽苟鎻愪緵璁捐璧勬簮锛岃瑙�:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource)
-- 鏂囨。杩佺Щ锛岃瑙�:[https://uniapp.dcloud.io/component/uniui/uni-popup](https://uniapp.dcloud.io/component/uniui/uni-popup)
-## 1.6.2锛�2021-08-24锛�
-- 鏂板 鏀寔鍥介檯鍖�
-## 1.6.1锛�2021-07-30锛�
-- 浼樺寲 vue3涓嬩簨浠惰鍛婄殑闂
-## 1.6.0锛�2021-07-13锛�
-- 缁勪欢鍏煎 vue3锛屽浣曞垱寤簐ue3椤圭洰锛岃瑙� [uni-app 椤圭洰鏀寔 vue3 浠嬬粛](https://ask.dcloud.net.cn/article/37834)
-## 1.5.0锛�2021-06-23锛�
-- 鏂板 mask-click 閬僵灞傜偣鍑讳簨浠�
-## 1.4.5锛�2021-06-22锛�
-- 淇 nvue 骞冲彴涓棿寮瑰嚭鍚庯紝鐐瑰嚮鍐呭锛屽啀鐐瑰嚮閬僵鏃犳硶鍏抽棴鐨凚ug
-## 1.4.4锛�2021-06-18锛�
-- 淇 H5骞冲彴涓棿寮瑰嚭鍚庯紝鐐瑰嚮鍐呭锛屽啀鐐瑰嚮閬僵鏃犳硶鍏抽棴鐨凚ug
-## 1.4.3锛�2021-06-08锛�
-- 淇 閿欒鐨� watch 瀛楁
-- 淇 safeArea 灞炴�т笉鐢熸晥鐨勯棶棰�
-- 淇 鐐瑰嚮鍐呭锛屽啀鐐瑰嚮閬僵鏃犳硶鍏抽棴鐨凚ug
-## 1.4.2锛�2021-05-12锛�
-- 鏂板 缁勪欢绀轰緥鍦板潃
-## 1.4.1锛�2021-04-29锛�
-- 淇 缁勪欢鍐呮斁缃� input 銆乼extarea 缁勪欢锛屾棤娉曡仛鐒︾殑闂
-## 1.4.0 锛�2021-04-29锛�
-- 鏂板 type 灞炴�х殑 left\right 鍊硷紝鏀寔宸﹀彸寮瑰嚭
-- 鏂板 open(String:type) 鏂规硶鍙傛暟 锛屽彲浠ョ渷鐣� type 灞炴�� 锛岀洿鎺ヤ紶鍏ョ被鍨嬫墦寮�鎸囧畾寮圭獥
-- 鏂板 backgroundColor 灞炴�э紝鍙畾涔変富绐楀彛鑳屾櫙鑹�,榛樿涓嶆樉绀鸿儗鏅壊
-- 鏂板 safeArea 灞炴�э紝鏄惁閫傞厤搴曢儴瀹夊叏鍖�
-- 淇 App\h5\寰俊灏忕▼搴忓簳閮ㄥ畨鍏ㄥ尯鍗犱綅涓嶅鐨凚ug
-- 淇 App 绔脊鍑虹瓑寰呯殑Bug
-- 浼樺寲 鎻愬崌浣庨厤璁惧鎬ц兘锛屼紭鍖栧姩鐢诲崱椤块棶棰�
-- 浼樺寲 鏇寸畝鍗曠殑缁勪欢鑷畾涔夋柟寮�
-## 1.2.9锛�2021-02-05锛�
-- 浼樺寲 缁勪欢寮曠敤鍏崇郴锛岄�氳繃uni_modules寮曠敤缁勪欢
-## 1.2.8锛�2021-02-05锛�
-- 璋冩暣涓簎ni_modules鐩綍瑙勮寖
-## 1.2.7锛�2021-02-05锛�
-- 璋冩暣涓簎ni_modules鐩綍瑙勮寖
-- 鏂板 鏀寔 PC 绔�
-- 鏂板 uni-popup-message 銆乽ni-popup-dialog鎵╁睍缁勪欢鏀寔 PC 绔�
diff --git a/uni_modules/uni-popup/components/uni-popup-dialog/keypress.js b/uni_modules/uni-popup/components/uni-popup-dialog/keypress.js
deleted file mode 100644
index 6ef26a2..0000000
--- a/uni_modules/uni-popup/components/uni-popup-dialog/keypress.js
+++ /dev/null
@@ -1,45 +0,0 @@
-// #ifdef H5
-export default {
- name: 'Keypress',
- props: {
- disable: {
- type: Boolean,
- default: false
- }
- },
- mounted () {
- const keyNames = {
- esc: ['Esc', 'Escape'],
- tab: 'Tab',
- enter: 'Enter',
- space: [' ', 'Spacebar'],
- up: ['Up', 'ArrowUp'],
- left: ['Left', 'ArrowLeft'],
- right: ['Right', 'ArrowRight'],
- down: ['Down', 'ArrowDown'],
- delete: ['Backspace', 'Delete', 'Del']
- }
- const listener = ($event) => {
- if (this.disable) {
- return
- }
- const keyName = Object.keys(keyNames).find(key => {
- const keyName = $event.key
- const value = keyNames[key]
- return value === keyName || (Array.isArray(value) && value.includes(keyName))
- })
- if (keyName) {
- // 閬垮厤鍜屽叾浠栨寜閿簨浠跺啿绐�
- setTimeout(() => {
- this.$emit(keyName, {})
- }, 0)
- }
- }
- document.addEventListener('keyup', listener)
- this.$once('hook:beforeDestroy', () => {
- document.removeEventListener('keyup', listener)
- })
- },
- render: () => {}
-}
-// #endif
diff --git a/uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog.vue b/uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog.vue
deleted file mode 100644
index a5d0f2a..0000000
--- a/uni_modules/uni-popup/components/uni-popup-dialog/uni-popup-dialog.vue
+++ /dev/null
@@ -1,271 +0,0 @@
-<template>
- <view class="uni-popup-dialog">
- <view class="uni-dialog-title">
- <text class="uni-dialog-title-text" :class="['uni-popup__'+dialogType]">{{titleText}}</text>
- </view>
- <view v-if="mode === 'base'" class="uni-dialog-content">
- <slot>
- <text class="uni-dialog-content-text">{{content}}</text>
- </slot>
- </view>
- <view v-else class="uni-dialog-content">
- <slot>
- <input class="uni-dialog-input" v-model="val" type="text" :placeholder="placeholderText" :focus="focus" >
- </slot>
- </view>
- <view class="uni-dialog-button-group">
- <view class="uni-dialog-button" @click="closeDialog">
- <text class="uni-dialog-button-text">{{closeText}}</text>
- </view>
- <view class="uni-dialog-button uni-border-left" @click="onOk">
- <text class="uni-dialog-button-text uni-button-color">{{okText}}</text>
- </view>
- </view>
-
- </view>
-</template>
-
-<script>
- import popup from '../uni-popup/popup.js'
- import {
- initVueI18n
- } from '@dcloudio/uni-i18n'
- import messages from '../uni-popup/i18n/index.js'
- const { t } = initVueI18n(messages)
- /**
- * PopUp 寮瑰嚭灞�-瀵硅瘽妗嗘牱寮�
- * @description 寮瑰嚭灞�-瀵硅瘽妗嗘牱寮�
- * @tutorial https://ext.dcloud.net.cn/plugin?id=329
- * @property {String} value input 妯″紡涓嬬殑榛樿鍊�
- * @property {String} placeholder input 妯″紡涓嬭緭鍏ユ彁绀�
- * @property {String} type = [success|warning|info|error] 涓婚鏍峰紡
- * @value success 鎴愬姛
- * @value warning 鎻愮ず
- * @value info 娑堟伅
- * @value error 閿欒
- * @property {String} mode = [base|input] 妯″紡銆�
- * @value base 鍩虹瀵硅瘽妗�
- * @value input 鍙緭鍏ュ璇濇
- * @property {String} content 瀵硅瘽妗嗗唴瀹�
- * @property {Boolean} beforeClose 鏄惁鎷︽埅鍙栨秷浜嬩欢
- * @event {Function} confirm 鐐瑰嚮纭鎸夐挳瑙﹀彂
- * @event {Function} close 鐐瑰嚮鍙栨秷鎸夐挳瑙﹀彂
- */
-
- export default {
- name: "uniPopupDialog",
- mixins: [popup],
- emits:['confirm','close'],
- props: {
- value: {
- type: [String, Number],
- default: ''
- },
- placeholder: {
- type: [String, Number],
- default: ''
- },
- type: {
- type: String,
- default: 'error'
- },
- mode: {
- type: String,
- default: 'base'
- },
- title: {
- type: String,
- default: ''
- },
- content: {
- type: String,
- default: ''
- },
- beforeClose: {
- type: Boolean,
- default: false
- },
- cancelText:{
- type: String,
- default: ''
- },
- confirmText:{
- type: String,
- default: ''
- }
- },
- data() {
- return {
- dialogType: 'error',
- focus: false,
- val: ""
- }
- },
- computed: {
- okText() {
- return this.confirmText || t("uni-popup.ok")
- },
- closeText() {
- return this.cancelText || t("uni-popup.cancel")
- },
- placeholderText() {
- return this.placeholder || t("uni-popup.placeholder")
- },
- titleText() {
- return this.title || t("uni-popup.title")
- }
- },
- watch: {
- type(val) {
- this.dialogType = val
- },
- mode(val) {
- if (val === 'input') {
- this.dialogType = 'info'
- }
- },
- value(val) {
- this.val = val
- }
- },
- created() {
- // 瀵硅瘽妗嗛伄缃╀笉鍙偣鍑�
- this.popup.disableMask()
- // this.popup.closeMask()
- if (this.mode === 'input') {
- this.dialogType = 'info'
- this.val = this.value
- } else {
- this.dialogType = this.type
- }
- },
- mounted() {
- this.focus = true
- },
- methods: {
- /**
- * 鐐瑰嚮纭鎸夐挳
- */
- onOk() {
- if (this.mode === 'input'){
- this.$emit('confirm', this.val)
- }else{
- this.$emit('confirm')
- }
- if(this.beforeClose) return
- this.popup.close()
- },
- /**
- * 鐐瑰嚮鍙栨秷鎸夐挳
- */
- closeDialog() {
- this.$emit('close')
- if(this.beforeClose) return
- this.popup.close()
- },
- close(){
- this.popup.close()
- }
- }
- }
-</script>
-
-<style lang="scss" >
- .uni-popup-dialog {
- width: 300px;
- border-radius: 11px;
- background-color: #fff;
- }
-
- .uni-dialog-title {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex-direction: row;
- justify-content: center;
- padding-top: 25px;
- }
-
- .uni-dialog-title-text {
- font-size: 16px;
- font-weight: 500;
- }
-
- .uni-dialog-content {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex-direction: row;
- justify-content: center;
- align-items: center;
- padding: 20px;
- }
-
- .uni-dialog-content-text {
- font-size: 14px;
- color: #6C6C6C;
- }
-
- .uni-dialog-button-group {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex-direction: row;
- border-top-color: #f5f5f5;
- border-top-style: solid;
- border-top-width: 1px;
- }
-
- .uni-dialog-button {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
-
- flex: 1;
- flex-direction: row;
- justify-content: center;
- align-items: center;
- height: 45px;
- }
-
- .uni-border-left {
- border-left-color: #f0f0f0;
- border-left-style: solid;
- border-left-width: 1px;
- }
-
- .uni-dialog-button-text {
- font-size: 16px;
- color: #333;
- }
-
- .uni-button-color {
- color: #007aff;
- }
-
- .uni-dialog-input {
- flex: 1;
- font-size: 14px;
- border: 1px #eee solid;
- height: 40px;
- padding: 0 10px;
- border-radius: 5px;
- color: #555;
- }
-
- .uni-popup__success {
- color: #4cd964;
- }
-
- .uni-popup__warn {
- color: #f0ad4e;
- }
-
- .uni-popup__error {
- color: #dd524d;
- }
-
- .uni-popup__info {
- color: #909399;
- }
-</style>
diff --git a/uni_modules/uni-popup/components/uni-popup-message/uni-popup-message.vue b/uni_modules/uni-popup/components/uni-popup-message/uni-popup-message.vue
deleted file mode 100644
index 91370a8..0000000
--- a/uni_modules/uni-popup/components/uni-popup-message/uni-popup-message.vue
+++ /dev/null
@@ -1,143 +0,0 @@
-<template>
- <view class="uni-popup-message">
- <view class="uni-popup-message__box fixforpc-width" :class="'uni-popup__'+type">
- <slot>
- <text class="uni-popup-message-text" :class="'uni-popup__'+type+'-text'">{{message}}</text>
- </slot>
- </view>
- </view>
-</template>
-
-<script>
- import popup from '../uni-popup/popup.js'
- /**
- * PopUp 寮瑰嚭灞�-娑堟伅鎻愮ず
- * @description 寮瑰嚭灞�-娑堟伅鎻愮ず
- * @tutorial https://ext.dcloud.net.cn/plugin?id=329
- * @property {String} type = [success|warning|info|error] 涓婚鏍峰紡
- * @value success 鎴愬姛
- * @value warning 鎻愮ず
- * @value info 娑堟伅
- * @value error 閿欒
- * @property {String} message 娑堟伅鎻愮ず鏂囧瓧
- * @property {String} duration 鏄剧ず鏃堕棿锛岃缃负 0 鍒欎笉浼氳嚜鍔ㄥ叧闂�
- */
-
- export default {
- name: 'uniPopupMessage',
- mixins:[popup],
- props: {
- /**
- * 涓婚 success/warning/info/error 榛樿 success
- */
- type: {
- type: String,
- default: 'success'
- },
- /**
- * 娑堟伅鏂囧瓧
- */
- message: {
- type: String,
- default: ''
- },
- /**
- * 鏄剧ず鏃堕棿锛岃缃负 0 鍒欎笉浼氳嚜鍔ㄥ叧闂�
- */
- duration: {
- type: Number,
- default: 3000
- },
- maskShow:{
- type:Boolean,
- default:false
- }
- },
- data() {
- return {}
- },
- created() {
- this.popup.maskShow = this.maskShow
- this.popup.messageChild = this
- },
- methods: {
- timerClose(){
- if(this.duration === 0) return
- clearTimeout(this.timer)
- this.timer = setTimeout(()=>{
- this.popup.close()
- },this.duration)
- }
- }
- }
-</script>
-<style lang="scss" >
- .uni-popup-message {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex-direction: row;
- justify-content: center;
- }
-
- .uni-popup-message__box {
- background-color: #e1f3d8;
- padding: 10px 15px;
- border-color: #eee;
- border-style: solid;
- border-width: 1px;
- flex: 1;
- }
-
- @media screen and (min-width: 500px) {
- .fixforpc-width {
- margin-top: 20px;
- border-radius: 4px;
- flex: none;
- min-width: 380px;
- /* #ifndef APP-NVUE */
- max-width: 50%;
- /* #endif */
- /* #ifdef APP-NVUE */
- max-width: 500px;
- /* #endif */
- }
- }
-
- .uni-popup-message-text {
- font-size: 14px;
- padding: 0;
- }
-
- .uni-popup__success {
- background-color: #e1f3d8;
- }
-
- .uni-popup__success-text {
- color: #67C23A;
- }
-
- .uni-popup__warn {
- background-color: #faecd8;
- }
-
- .uni-popup__warn-text {
- color: #E6A23C;
- }
-
- .uni-popup__error {
- background-color: #fde2e2;
- }
-
- .uni-popup__error-text {
- color: #F56C6C;
- }
-
- .uni-popup__info {
- background-color: #F2F6FC;
- }
-
- .uni-popup__info-text {
- color: #909399;
- }
-</style>
diff --git a/uni_modules/uni-popup/components/uni-popup-share/uni-popup-share.vue b/uni_modules/uni-popup/components/uni-popup-share/uni-popup-share.vue
deleted file mode 100644
index 5be7624..0000000
--- a/uni_modules/uni-popup/components/uni-popup-share/uni-popup-share.vue
+++ /dev/null
@@ -1,187 +0,0 @@
-<template>
- <view class="uni-popup-share">
- <view class="uni-share-title"><text class="uni-share-title-text">{{shareTitleText}}</text></view>
- <view class="uni-share-content">
- <view class="uni-share-content-box">
- <view class="uni-share-content-item" v-for="(item,index) in bottomData" :key="index" @click.stop="select(item,index)">
- <image class="uni-share-image" :src="item.icon" mode="aspectFill"></image>
- <text class="uni-share-text">{{item.text}}</text>
- </view>
-
- </view>
- </view>
- <view class="uni-share-button-box">
- <button class="uni-share-button" @click="close">{{cancelText}}</button>
- </view>
- </view>
-</template>
-
-<script>
- import popup from '../uni-popup/popup.js'
- import {
- initVueI18n
- } from '@dcloudio/uni-i18n'
- import messages from '../uni-popup/i18n/index.js'
- const { t } = initVueI18n(messages)
- export default {
- name: 'UniPopupShare',
- mixins:[popup],
- emits:['select'],
- props: {
- title: {
- type: String,
- default: ''
- },
- beforeClose: {
- type: Boolean,
- default: false
- }
- },
- data() {
- return {
- bottomData: [{
- text: '寰俊',
- icon: 'https://vkceyugu.cdn.bspapp.com/VKCEYUGU-dc-site/c2b17470-50be-11eb-b680-7980c8a877b8.png',
- name: 'wx'
- },
- {
- text: '鏀粯瀹�',
- icon: 'https://vkceyugu.cdn.bspapp.com/VKCEYUGU-dc-site/d684ae40-50be-11eb-8ff1-d5dcf8779628.png',
- name: 'wx'
- },
- {
- text: 'QQ',
- icon: 'https://vkceyugu.cdn.bspapp.com/VKCEYUGU-dc-site/e7a79520-50be-11eb-b997-9918a5dda011.png',
- name: 'qq'
- },
- {
- text: '鏂版氮',
- icon: 'https://vkceyugu.cdn.bspapp.com/VKCEYUGU-dc-site/0dacdbe0-50bf-11eb-8ff1-d5dcf8779628.png',
- name: 'sina'
- },
- // {
- // text: '鐧惧害',
- // icon: 'https://vkceyugu.cdn.bspapp.com/VKCEYUGU-dc-site/1ec6e920-50bf-11eb-8a36-ebb87efcf8c0.png',
- // name: 'copy'
- // },
- // {
- // text: '鍏朵粬',
- // icon: 'https://vkceyugu.cdn.bspapp.com/VKCEYUGU-dc-site/2e0fdfe0-50bf-11eb-b997-9918a5dda011.png',
- // name: 'more'
- // }
- ]
- }
- },
- created() {},
- computed: {
- cancelText() {
- return t("uni-popup.cancel")
- },
- shareTitleText() {
- return this.title || t("uni-popup.shareTitle")
- }
- },
- methods: {
- /**
- * 閫夋嫨鍐呭
- */
- select(item, index) {
- this.$emit('select', {
- item,
- index
- })
- this.close()
-
- },
- /**
- * 鍏抽棴绐楀彛
- */
- close() {
- if(this.beforeClose) return
- this.popup.close()
- }
- }
- }
-</script>
-<style lang="scss" >
- .uni-popup-share {
- background-color: #fff;
- border-top-left-radius: 11px;
- border-top-right-radius: 11px;
- }
- .uni-share-title {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex-direction: row;
- align-items: center;
- justify-content: center;
- height: 40px;
- }
- .uni-share-title-text {
- font-size: 14px;
- color: #666;
- }
- .uni-share-content {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex-direction: row;
- justify-content: center;
- padding-top: 10px;
- }
-
- .uni-share-content-box {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex-direction: row;
- flex-wrap: wrap;
- width: 360px;
- }
-
- .uni-share-content-item {
- width: 90px;
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex-direction: column;
- justify-content: center;
- padding: 10px 0;
- align-items: center;
- }
-
- .uni-share-content-item:active {
- background-color: #f5f5f5;
- }
-
- .uni-share-image {
- width: 30px;
- height: 30px;
- }
-
- .uni-share-text {
- margin-top: 10px;
- font-size: 14px;
- color: #3B4144;
- }
-
- .uni-share-button-box {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex-direction: row;
- padding: 10px 15px;
- }
-
- .uni-share-button {
- flex: 1;
- border-radius: 50px;
- color: #666;
- font-size: 16px;
- }
-
- .uni-share-button::after {
- border-radius: 50px;
- }
-</style>
diff --git a/uni_modules/uni-popup/components/uni-popup/i18n/en.json b/uni_modules/uni-popup/components/uni-popup/i18n/en.json
deleted file mode 100644
index 7f1bd06..0000000
--- a/uni_modules/uni-popup/components/uni-popup/i18n/en.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "uni-popup.cancel": "cancel",
- "uni-popup.ok": "ok",
- "uni-popup.placeholder": "pleace enter",
- "uni-popup.title": "Hint",
- "uni-popup.shareTitle": "Share to"
-}
diff --git a/uni_modules/uni-popup/components/uni-popup/i18n/index.js b/uni_modules/uni-popup/components/uni-popup/i18n/index.js
deleted file mode 100644
index de7509c..0000000
--- a/uni_modules/uni-popup/components/uni-popup/i18n/index.js
+++ /dev/null
@@ -1,8 +0,0 @@
-import en from './en.json'
-import zhHans from './zh-Hans.json'
-import zhHant from './zh-Hant.json'
-export default {
- en,
- 'zh-Hans': zhHans,
- 'zh-Hant': zhHant
-}
diff --git a/uni_modules/uni-popup/components/uni-popup/i18n/zh-Hans.json b/uni_modules/uni-popup/components/uni-popup/i18n/zh-Hans.json
deleted file mode 100644
index 5e3003c..0000000
--- a/uni_modules/uni-popup/components/uni-popup/i18n/zh-Hans.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "uni-popup.cancel": "鍙栨秷",
- "uni-popup.ok": "纭畾",
- "uni-popup.placeholder": "璇疯緭鍏�",
- "uni-popup.title": "鎻愮ず",
- "uni-popup.shareTitle": "鍒嗕韩鍒�"
-}
diff --git a/uni_modules/uni-popup/components/uni-popup/i18n/zh-Hant.json b/uni_modules/uni-popup/components/uni-popup/i18n/zh-Hant.json
deleted file mode 100644
index 13e39eb..0000000
--- a/uni_modules/uni-popup/components/uni-popup/i18n/zh-Hant.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "uni-popup.cancel": "鍙栨秷",
- "uni-popup.ok": "纰哄畾",
- "uni-popup.placeholder": "璜嬭几鍏�",
- "uni-popup.title": "鎻愮ず",
- "uni-popup.shareTitle": "鍒嗕韩鍒�"
-}
diff --git a/uni_modules/uni-popup/components/uni-popup/keypress.js b/uni_modules/uni-popup/components/uni-popup/keypress.js
deleted file mode 100644
index 62dda46..0000000
--- a/uni_modules/uni-popup/components/uni-popup/keypress.js
+++ /dev/null
@@ -1,45 +0,0 @@
-// #ifdef H5
-export default {
- name: 'Keypress',
- props: {
- disable: {
- type: Boolean,
- default: false
- }
- },
- mounted () {
- const keyNames = {
- esc: ['Esc', 'Escape'],
- tab: 'Tab',
- enter: 'Enter',
- space: [' ', 'Spacebar'],
- up: ['Up', 'ArrowUp'],
- left: ['Left', 'ArrowLeft'],
- right: ['Right', 'ArrowRight'],
- down: ['Down', 'ArrowDown'],
- delete: ['Backspace', 'Delete', 'Del']
- }
- const listener = ($event) => {
- if (this.disable) {
- return
- }
- const keyName = Object.keys(keyNames).find(key => {
- const keyName = $event.key
- const value = keyNames[key]
- return value === keyName || (Array.isArray(value) && value.includes(keyName))
- })
- if (keyName) {
- // 閬垮厤鍜屽叾浠栨寜閿簨浠跺啿绐�
- setTimeout(() => {
- this.$emit(keyName, {})
- }, 0)
- }
- }
- document.addEventListener('keyup', listener)
- // this.$once('hook:beforeDestroy', () => {
- // document.removeEventListener('keyup', listener)
- // })
- },
- render: () => {}
-}
-// #endif
diff --git a/uni_modules/uni-popup/components/uni-popup/popup.js b/uni_modules/uni-popup/components/uni-popup/popup.js
deleted file mode 100644
index c4e5781..0000000
--- a/uni_modules/uni-popup/components/uni-popup/popup.js
+++ /dev/null
@@ -1,26 +0,0 @@
-
-export default {
- data() {
- return {
-
- }
- },
- created(){
- this.popup = this.getParent()
- },
- methods:{
- /**
- * 鑾峰彇鐖跺厓绱犲疄渚�
- */
- getParent(name = 'uniPopup') {
- let parent = this.$parent;
- let parentName = parent.$options.name;
- while (parentName !== name) {
- parent = parent.$parent;
- if (!parent) return false
- parentName = parent.$options.name;
- }
- return parent;
- },
- }
-}
diff --git a/uni_modules/uni-popup/components/uni-popup/uni-popup.vue b/uni_modules/uni-popup/components/uni-popup/uni-popup.vue
deleted file mode 100644
index bd12076..0000000
--- a/uni_modules/uni-popup/components/uni-popup/uni-popup.vue
+++ /dev/null
@@ -1,437 +0,0 @@
-<template>
- <view v-if="showPopup" class="uni-popup" :class="[popupstyle, isDesktop ? 'fixforpc-z-index' : '']" @touchmove.stop.prevent="clear">
- <view @touchstart="touchstart" >
- <uni-transition key="1" v-if="maskShow" name="mask" mode-class="fade" :styles="maskClass" :duration="duration" :show="showTrans" @click="onTap" />
- <uni-transition key="2" :mode-class="ani" name="content" :styles="transClass" :duration="duration" :show="showTrans" @click="onTap">
- <view class="uni-popup__wrapper" :style="{ backgroundColor: bg }" :class="[popupstyle]" @click="clear"><slot /></view>
- </uni-transition>
- </view>
- <!-- #ifdef H5 -->
- <keypress v-if="maskShow" @esc="onTap" />
- <!-- #endif -->
- </view>
-</template>
-
-<script>
-// #ifdef H5
-import keypress from './keypress.js'
-// #endif
-
-/**
- * PopUp 寮瑰嚭灞�
- * @description 寮瑰嚭灞傜粍浠讹紝涓轰簡瑙e喅閬僵寮瑰眰鐨勯棶棰�
- * @tutorial https://ext.dcloud.net.cn/plugin?id=329
- * @property {String} type = [top|center|bottom|left|right|message|dialog|share] 寮瑰嚭鏂瑰紡
- * @value top 椤堕儴寮瑰嚭
- * @value center 涓棿寮瑰嚭
- * @value bottom 搴曢儴寮瑰嚭
- * @value left 宸︿晶寮瑰嚭
- * @value right 鍙充晶寮瑰嚭
- * @value message 娑堟伅鎻愮ず
- * @value dialog 瀵硅瘽妗�
- * @value share 搴曢儴鍒嗕韩绀轰緥
- * @property {Boolean} animation = [true|false] 鏄惁寮�鍚姩鐢�
- * @property {Boolean} maskClick = [true|false] 钂欑増鐐瑰嚮鏄惁鍏抽棴寮圭獥(搴熷純)
- * @property {Boolean} isMaskClick = [true|false] 钂欑増鐐瑰嚮鏄惁鍏抽棴寮圭獥
- * @property {String} backgroundColor 涓荤獥鍙h儗鏅壊
- * @property {String} maskBackgroundColor 钂欑増棰滆壊
- * @property {Boolean} safeArea 鏄惁閫傞厤搴曢儴瀹夊叏鍖�
- * @event {Function} change 鎵撳紑鍏抽棴寮圭獥瑙﹀彂锛宔={show: false}
- * @event {Function} maskClick 鐐瑰嚮閬僵瑙﹀彂
- */
-
-export default {
- name: 'uniPopup',
- components: {
- // #ifdef H5
- keypress
- // #endif
- },
- emits:['change','maskClick'],
- props: {
- // 寮�鍚姩鐢�
- animation: {
- type: Boolean,
- default: true
- },
- // 寮瑰嚭灞傜被鍨嬶紝鍙�夊�硷紝top: 椤堕儴寮瑰嚭灞傦紱bottom锛氬簳閮ㄥ脊鍑哄眰锛沜enter锛氬叏灞忓脊鍑哄眰
- // message: 娑堟伅鎻愮ず ; dialog : 瀵硅瘽妗�
- type: {
- type: String,
- default: 'center'
- },
- // maskClick
- isMaskClick: {
- type: Boolean,
- default: null
- },
- // TODO 2 涓増鏈悗搴熷純灞炴�� 锛屼娇鐢� isMaskClick
- maskClick: {
- type: Boolean,
- default: null
- },
- backgroundColor: {
- type: String,
- default: 'none'
- },
- safeArea:{
- type: Boolean,
- default: true
- },
- maskBackgroundColor: {
- type: String,
- default: 'rgba(0, 0, 0, 0.4)'
- },
- },
-
- watch: {
- /**
- * 鐩戝惉type绫诲瀷
- */
- type: {
- handler: function(type) {
- if (!this.config[type]) return
- this[this.config[type]](true)
- },
- immediate: true
- },
- isDesktop: {
- handler: function(newVal) {
- if (!this.config[newVal]) return
- this[this.config[this.type]](true)
- },
- immediate: true
- },
- /**
- * 鐩戝惉閬僵鏄惁鍙偣鍑�
- * @param {Object} val
- */
- maskClick: {
- handler: function(val) {
- this.mkclick = val
- },
- immediate: true
- },
- isMaskClick: {
- handler: function(val) {
- this.mkclick = val
- },
- immediate: true
- },
- // H5 涓嬬姝㈠簳閮ㄦ粴鍔�
- showPopup(show) {
- // #ifdef H5
- // fix by mehaotian 澶勭悊 h5 婊氬姩绌块�忕殑闂
- document.getElementsByTagName('body')[0].style.overflow = show ? 'hidden' : 'visible'
- // #endif
- }
- },
- data() {
- return {
- duration: 300,
- ani: [],
- showPopup: false,
- showTrans: false,
- popupWidth: 0,
- popupHeight: 0,
- config: {
- top: 'top',
- bottom: 'bottom',
- center: 'center',
- left: 'left',
- right: 'right',
- message: 'top',
- dialog: 'center',
- share: 'bottom'
- },
- maskClass: {
- position: 'fixed',
- bottom: 0,
- top: 0,
- left: 0,
- right: 0,
- backgroundColor: 'rgba(0, 0, 0, 0.4)'
- },
- transClass: {
- position: 'fixed',
- left: 0,
- right: 0
- },
- maskShow: true,
- mkclick: true,
- popupstyle: this.isDesktop ? 'fixforpc-top' : 'top'
- }
- },
- computed: {
- isDesktop() {
- return this.popupWidth >= 500 && this.popupHeight >= 500
- },
- bg() {
- if (this.backgroundColor === '' || this.backgroundColor === 'none') {
- return 'transparent'
- }
- return this.backgroundColor
- }
- },
- mounted() {
- const fixSize = () => {
- const { windowWidth, windowHeight, windowTop, safeArea,screenHeight ,safeAreaInsets } = uni.getSystemInfoSync()
- this.popupWidth = windowWidth
- this.popupHeight = windowHeight + windowTop
- // TODO fix by mehaotian 鏄惁閫傞厤搴曢儴瀹夊叏鍖� ,鐩墠寰俊ios 銆佸拰 app ios 璁$畻鏈夊樊寮傦紝闇�瑕佹鏋朵慨澶�
- if(safeArea){
- // #ifdef MP-WEIXIN
- this.safeAreaInsets = screenHeight - safeArea.bottom
- // #endif
- // #ifndef MP-WEIXIN
- this.safeAreaInsets = safeAreaInsets.bottom
- // #endif
- }else{
- this.safeAreaInsets = 0
- }
- }
- fixSize()
- // #ifdef H5
- // window.addEventListener('resize', fixSize)
- // this.$once('hook:beforeDestroy', () => {
- // window.removeEventListener('resize', fixSize)
- // })
- // #endif
- },
- created() {
- // this.mkclick = this.isMaskClick || this.maskClick
- if(this.isMaskClick === null && this.maskClick === null){
- this.mkclick = true
- }else{
- this.mkclick = this.isMaskClick !== null ? this.isMaskClick : this.maskClick
- }
- if (this.animation) {
- this.duration = 300
- } else {
- this.duration = 0
- }
- // TODO 澶勭悊 message 缁勪欢鐢熷懡鍛ㄦ湡寮傚父鐨勯棶棰�
- this.messageChild = null
- // TODO 瑙e喅澶存潯鍐掓场鐨勯棶棰�
- this.clearPropagation = false
- this.maskClass.backgroundColor = this.maskBackgroundColor
- },
- methods: {
- /**
- * 鍏敤鏂规硶锛屼笉鏄剧ず閬僵灞�
- */
- closeMask() {
- this.maskShow = false
- },
- /**
- * 鍏敤鏂规硶锛岄伄缃╁眰绂佹鐐瑰嚮
- */
- disableMask() {
- this.mkclick = false
- },
- // TODO nvue 鍙栨秷鍐掓场
- clear(e) {
- // #ifndef APP-NVUE
- e.stopPropagation()
- // #endif
- this.clearPropagation = true
- },
-
- open(direction) {
- let innerType = ['top', 'center', 'bottom', 'left', 'right', 'message', 'dialog', 'share']
- if (!(direction && innerType.indexOf(direction) !== -1)) {
- direction = this.type
- }
- if (!this.config[direction]) {
- console.error('缂哄皯绫诲瀷锛�', direction)
- return
- }
- this[this.config[direction]]()
- this.$emit('change', {
- show: true,
- type: direction
- })
- },
- close(type) {
- this.showTrans = false
- this.$emit('change', {
- show: false,
- type: this.type
- })
- clearTimeout(this.timer)
- // // 鑷畾涔夊叧闂簨浠�
- // this.customOpen && this.customClose()
- this.timer = setTimeout(() => {
- this.showPopup = false
- }, 300)
- },
- // TODO 澶勭悊鍐掓场浜嬩欢锛屽ご鏉$殑鍐掓场浜嬩欢鏈夐棶棰� 锛屽厛杩欐牱鍏煎
- touchstart(){
- this.clearPropagation = false
- },
-
- onTap() {
- if (this.clearPropagation) {
- // fix by mehaotian 鍏煎 nvue
- this.clearPropagation = false
- return
- }
- this.$emit('maskClick')
- if (!this.mkclick) return
- this.close()
- },
- /**
- * 椤堕儴寮瑰嚭鏍峰紡澶勭悊
- */
- top(type) {
- this.popupstyle = this.isDesktop ? 'fixforpc-top' : 'top'
- this.ani = ['slide-top']
- this.transClass = {
- position: 'fixed',
- left: 0,
- right: 0,
- backgroundColor: this.bg
- }
- // TODO 鍏煎 type 灞炴�� 锛屽悗缁細搴熷純
- if (type) return
- this.showPopup = true
- this.showTrans = true
- this.$nextTick(() => {
- if (this.messageChild && this.type === 'message') {
- this.messageChild.timerClose()
- }
- })
- },
- /**
- * 搴曢儴寮瑰嚭鏍峰紡澶勭悊
- */
- bottom(type) {
- this.popupstyle = 'bottom'
- this.ani = ['slide-bottom']
- this.transClass = {
- position: 'fixed',
- left: 0,
- right: 0,
- bottom: 0,
- paddingBottom: this.safeAreaInsets+'px',
- backgroundColor: this.bg
- }
- // TODO 鍏煎 type 灞炴�� 锛屽悗缁細搴熷純
- if (type) return
- this.showPopup = true
- this.showTrans = true
- },
- /**
- * 涓棿寮瑰嚭鏍峰紡澶勭悊
- */
- center(type) {
- this.popupstyle = 'center'
- this.ani = ['zoom-out', 'fade']
- this.transClass = {
- position: 'fixed',
- /* #ifndef APP-NVUE */
- display: 'flex',
- flexDirection: 'column',
- /* #endif */
- bottom: 0,
- left: 0,
- right: 0,
- top: 0,
- justifyContent: 'center',
- alignItems: 'center'
- }
- // TODO 鍏煎 type 灞炴�� 锛屽悗缁細搴熷純
- if (type) return
- this.showPopup = true
- this.showTrans = true
- },
- left(type) {
- this.popupstyle = 'left'
- this.ani = ['slide-left']
- this.transClass = {
- position: 'fixed',
- left: 0,
- bottom: 0,
- top: 0,
- backgroundColor: this.bg,
- /* #ifndef APP-NVUE */
- display: 'flex',
- flexDirection: 'column'
- /* #endif */
- }
- // TODO 鍏煎 type 灞炴�� 锛屽悗缁細搴熷純
- if (type) return
- this.showPopup = true
- this.showTrans = true
- },
- right(type) {
- this.popupstyle = 'right'
- this.ani = ['slide-right']
- this.transClass = {
- position: 'fixed',
- bottom: 0,
- right: 0,
- top: 0,
- backgroundColor: this.bg,
- /* #ifndef APP-NVUE */
- display: 'flex',
- flexDirection: 'column'
- /* #endif */
- }
- // TODO 鍏煎 type 灞炴�� 锛屽悗缁細搴熷純
- if (type) return
- this.showPopup = true
- this.showTrans = true
- }
- }
-}
-</script>
-<style lang="scss" >
-.uni-popup {
- position: fixed;
- /* #ifndef APP-NVUE */
- z-index: 99;
- /* #endif */
- &.top,
- &.left,
- &.right {
- /* #ifdef H5 */
- top: var(--window-top);
- /* #endif */
- /* #ifndef H5 */
- top: 0;
- /* #endif */
- }
- .uni-popup__wrapper {
- /* #ifndef APP-NVUE */
- display: block;
- /* #endif */
- position: relative;
- /* iphonex 绛夊畨鍏ㄥ尯璁剧疆锛屽簳閮ㄥ畨鍏ㄥ尯閫傞厤 */
- /* #ifndef APP-NVUE */
- // padding-bottom: constant(safe-area-inset-bottom);
- // padding-bottom: env(safe-area-inset-bottom);
- /* #endif */
- &.left,
- &.right {
- /* #ifdef H5 */
- padding-top: var(--window-top);
- /* #endif */
- /* #ifndef H5 */
- padding-top: 0;
- /* #endif */
- flex: 1;
- }
- }
-}
-
-.fixforpc-z-index {
- /* #ifndef APP-NVUE */
- z-index: 999;
- /* #endif */
-}
-
-.fixforpc-top {
- top: 0;
-}
-</style>
diff --git a/uni_modules/uni-popup/package.json b/uni_modules/uni-popup/package.json
deleted file mode 100644
index a5cc743..0000000
--- a/uni_modules/uni-popup/package.json
+++ /dev/null
@@ -1,90 +0,0 @@
-{
- "id": "uni-popup",
- "displayName": "uni-popup 寮瑰嚭灞�",
- "version": "1.7.5",
- "description": " Popup 缁勪欢锛屾彁渚涘父鐢ㄧ殑寮瑰眰",
- "keywords": [
- "uni-ui",
- "寮瑰嚭灞�",
- "寮圭獥",
- "popup",
- "寮规"
- ],
- "repository": "https://github.com/dcloudio/uni-ui",
- "engines": {
- "HBuilderX": ""
- },
- "directories": {
- "example": "../../temps/example_temps"
- },
- "dcloudext": {
- "category": [
- "鍓嶇缁勪欢",
- "閫氱敤缁勪欢"
- ],
- "sale": {
- "regular": {
- "price": "0.00"
- },
- "sourcecode": {
- "price": "0.00"
- }
- },
- "contact": {
- "qq": ""
- },
- "declaration": {
- "ads": "鏃�",
- "data": "鏃�",
- "permissions": "鏃�"
- },
- "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui"
- },
- "uni_modules": {
- "dependencies": [
- "uni-scss",
- "uni-transition"
- ],
- "encrypt": [],
- "platforms": {
- "cloud": {
- "tcb": "y",
- "aliyun": "y"
- },
- "client": {
- "App": {
- "app-vue": "y",
- "app-nvue": "y"
- },
- "H5-mobile": {
- "Safari": "y",
- "Android Browser": "y",
- "寰俊娴忚鍣�(Android)": "y",
- "QQ娴忚鍣�(Android)": "y"
- },
- "H5-pc": {
- "Chrome": "y",
- "IE": "y",
- "Edge": "y",
- "Firefox": "y",
- "Safari": "y"
- },
- "灏忕▼搴�": {
- "寰俊": "y",
- "闃块噷": "y",
- "鐧惧害": "y",
- "瀛楄妭璺冲姩": "y",
- "QQ": "y"
- },
- "蹇簲鐢�": {
- "鍗庝负": "u",
- "鑱旂洘": "u"
- },
- "Vue": {
- "vue2": "y",
- "vue3": "y"
- }
- }
- }
- }
-}
diff --git a/uni_modules/uni-popup/readme.md b/uni_modules/uni-popup/readme.md
deleted file mode 100644
index fdad4b3..0000000
--- a/uni_modules/uni-popup/readme.md
+++ /dev/null
@@ -1,17 +0,0 @@
-
-
-## Popup 寮瑰嚭灞�
-> **缁勪欢鍚嶏細uni-popup**
-> 浠g爜鍧楋細 `uPopup`
-> 鍏宠仈缁勪欢锛歚uni-transition`
-
-
-寮瑰嚭灞傜粍浠讹紝鍦ㄥ簲鐢ㄤ腑寮瑰嚭涓�涓秷鎭彁绀虹獥鍙c�佹彁绀烘绛�
-
-### [鏌ョ湅鏂囨。](https://uniapp.dcloud.io/component/uniui/uni-popup)
-#### 濡備娇鐢ㄨ繃绋嬩腑鏈変换浣曢棶棰橈紝鎴栬�呮偍瀵箄ni-ui鏈変竴浜涘ソ鐨勫缓璁紝娆㈣繋鍔犲叆 uni-ui 浜ゆ祦缇わ細871950839
-
-
-
-
-
diff --git a/uni_modules/uni-rate/changelog.md b/uni_modules/uni-rate/changelog.md
deleted file mode 100644
index 8a98a61..0000000
--- a/uni_modules/uni-rate/changelog.md
+++ /dev/null
@@ -1,25 +0,0 @@
-## 1.3.1锛�2022-02-25锛�
-- 淇 鏉′欢鍒ゆ柇 `NaN` 閿欒鐨� bug
-## 1.3.0锛�2021-11-19锛�
-- 浼樺寲 缁勪欢UI锛屽苟鎻愪緵璁捐璧勬簮锛岃瑙�:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource)
-- 鏂囨。杩佺Щ锛岃瑙�:[https://uniapp.dcloud.io/component/uniui/uni-rate](https://uniapp.dcloud.io/component/uniui/uni-rate)
-## 1.2.2锛�2021-09-10锛�
-- 浼樺寲 榛樿鍊间慨鏀逛负 0 棰楁槦
-## 1.2.1锛�2021-07-30锛�
-- 浼樺寲 vue3涓嬩簨浠惰鍛婄殑闂
-## 1.2.0锛�2021-07-13锛�
-- 缁勪欢鍏煎 vue3锛屽浣曞垱寤簐ue3椤圭洰锛岃瑙� [uni-app 椤圭洰鏀寔 vue3 浠嬬粛](https://ask.dcloud.net.cn/article/37834)
-## 1.1.2锛�2021-05-12锛�
-- 鏂板 缁勪欢绀轰緥鍦板潃
-## 1.1.1锛�2021-04-21锛�
-- 淇 甯冨眬鍙樺寲鍚� uni-rate 鏄熸槦璁$畻涓嶅噯纭殑 bug
-- 浼樺寲 娣诲姞渚濊禆 uni-icons, 瀵煎叆 uni-rate 鑷姩涓嬭浇渚濊禆
-## 1.1.0锛�2021-04-16锛�
-- 淇 uni-rate 灞炴�� margin 鍊间负 string 缁勪欢澶辨晥鐨� bug
-
-## 1.0.9锛�2021-02-05锛�
-- 浼樺寲 缁勪欢寮曠敤鍏崇郴锛岄�氳繃uni_modules寮曠敤缁勪欢
-
-## 1.0.8锛�2021-02-05锛�
-- 璋冩暣涓簎ni_modules鐩綍瑙勮寖
-- 鏀寔 pc 绔�
diff --git a/uni_modules/uni-rate/components/uni-rate/uni-rate.vue b/uni_modules/uni-rate/components/uni-rate/uni-rate.vue
deleted file mode 100644
index 857f5f9..0000000
--- a/uni_modules/uni-rate/components/uni-rate/uni-rate.vue
+++ /dev/null
@@ -1,361 +0,0 @@
-<template>
- <view>
- <view ref="uni-rate" class="uni-rate">
- <view class="uni-rate__icon" :class="{'uni-cursor-not-allowed': disabled}"
- :style="{ 'margin-right': marginNumber + 'px' }" v-for="(star, index) in stars" :key="index"
- @touchstart.stop="touchstart" @touchmove.stop="touchmove" @mousedown.stop="mousedown"
- @mousemove.stop="mousemove" @mouseleave="mouseleave">
- <uni-icons :color="color" :size="size" :type="isFill ? 'star-filled' : 'star'" />
- <!-- #ifdef APP-NVUE -->
- <view :style="{ width: star.activeWitch.replace('%','')*size/100+'px'}" class="uni-rate__icon-on">
- <uni-icons style="text-align: left;" :color="disabled?'#ccc':activeColor" :size="size"
- type="star-filled" />
- </view>
- <!-- #endif -->
- <!-- #ifndef APP-NVUE -->
- <view :style="{ width: star.activeWitch}" class="uni-rate__icon-on">
- <uni-icons :color="disabled?disabledColor:activeColor" :size="size" type="star-filled" />
- </view>
- <!-- #endif -->
- </view>
- </view>
- </view>
-</template>
-
-<script>
- // #ifdef APP-NVUE
- const dom = uni.requireNativePlugin('dom');
- // #endif
- /**
- * Rate 璇勫垎
- * @description 璇勫垎缁勪欢
- * @tutorial https://ext.dcloud.net.cn/plugin?id=33
- * @property {Boolean} isFill = [true|false] 鏄熸槦鐨勭被鍨嬶紝鏄惁涓哄疄蹇冪被鍨�, 榛樿涓哄疄蹇�
- * @property {String} color 鏈�変腑鐘舵�佺殑鏄熸槦棰滆壊锛岄粯璁や负 "#ececec"
- * @property {String} activeColor 閫変腑鐘舵�佺殑鏄熸槦棰滆壊锛岄粯璁や负 "#ffca3e"
- * @property {String} disabledColor 绂佺敤鐘舵�佺殑鏄熸槦棰滆壊锛岄粯璁や负 "#c0c0c0"
- * @property {Number} size 鏄熸槦鐨勫ぇ灏�
- * @property {Number} value/v-model 褰撳墠璇勫垎
- * @property {Number} max 鏈�澶ц瘎鍒嗚瘎鍒嗘暟閲忥紝鐩墠涓�鍒嗕竴棰楁槦
- * @property {Number} margin 鏄熸槦鐨勯棿璺濓紝鍗曚綅 px
- * @property {Boolean} disabled = [true|false] 鏄惁涓虹鐢ㄧ姸鎬侊紝榛樿涓� false
- * @property {Boolean} readonly = [true|false] 鏄惁涓哄彧璇荤姸鎬侊紝榛樿涓� false
- * @property {Boolean} allowHalf = [true|false] 鏄惁瀹炵幇鍗婃槦锛岄粯璁や负 false
- * @property {Boolean} touchable = [true|false] 鏄惁鏀寔婊戝姩鎵嬪娍锛岄粯璁や负 true
- * @event {Function} change uniRate 鐨� value 鏀瑰彉鏃惰Е鍙戜簨浠讹紝e={value:Number}
- */
-
- export default {
- name: "UniRate",
- props: {
- isFill: {
- // 鏄熸槦鐨勭被鍨嬶紝鏄惁闀傜┖
- type: [Boolean, String],
- default: true
- },
- color: {
- // 鏄熸槦鏈�変腑鐨勯鑹�
- type: String,
- default: "#ececec"
- },
- activeColor: {
- // 鏄熸槦閫変腑鐘舵�侀鑹�
- type: String,
- default: "#ffca3e"
- },
- disabledColor: {
- // 鏄熸槦绂佺敤鐘舵�侀鑹�
- type: String,
- default: "#c0c0c0"
- },
- size: {
- // 鏄熸槦鐨勫ぇ灏�
- type: [Number, String],
- default: 24
- },
- value: {
- // 褰撳墠璇勫垎
- type: [Number, String],
- default: 0
- },
- modelValue: {
- // 褰撳墠璇勫垎
- type: [Number, String],
- default: 0
- },
- max: {
- // 鏈�澶ц瘎鍒�
- type: [Number, String],
- default: 5
- },
- margin: {
- // 鏄熸槦鐨勯棿璺�
- type: [Number, String],
- default: 0
- },
- disabled: {
- // 鏄惁鍙偣鍑�
- type: [Boolean, String],
- default: false
- },
- readonly: {
- // 鏄惁鍙
- type: [Boolean, String],
- default: false
- },
- allowHalf: {
- // 鏄惁鏄剧ず鍗婃槦
- type: [Boolean, String],
- default: false
- },
- touchable: {
- // 鏄惁鏀寔婊戝姩鎵嬪娍
- type: [Boolean, String],
- default: true
- }
- },
- data() {
- return {
- valueSync: "",
- userMouseFristMove: true,
- userRated: false,
- userLastRate: 1
- };
- },
- watch: {
- value(newVal) {
- this.valueSync = Number(newVal);
- },
- modelValue(newVal) {
- this.valueSync = Number(newVal);
- },
- },
- computed: {
- stars() {
- const value = this.valueSync ? this.valueSync : 0;
- const starList = [];
- const floorValue = Math.floor(value);
- const ceilValue = Math.ceil(value);
- for (let i = 0; i < this.max; i++) {
- if (floorValue > i) {
- starList.push({
- activeWitch: "100%"
- });
- } else if (ceilValue - 1 === i) {
- starList.push({
- activeWitch: (value - floorValue) * 100 + "%"
- });
- } else {
- starList.push({
- activeWitch: "0"
- });
- }
- }
- return starList;
- },
-
- marginNumber() {
- return Number(this.margin)
- }
- },
- created() {
- this.valueSync = Number(this.value || this.modelValue);
- this._rateBoxLeft = 0
- this._oldValue = null
- },
- mounted() {
- setTimeout(() => {
- this._getSize()
- }, 100)
- // #ifdef H5
- this.PC = this.IsPC()
- // #endif
- },
- methods: {
- touchstart(e) {
- // #ifdef H5
- if (this.IsPC()) return
- // #endif
- if (this.readonly || this.disabled) return
- const {
- clientX,
- screenX
- } = e.changedTouches[0]
- // TODO 鍋氫竴涓嬪吋瀹癸紝鍙湁 Nvue 涓嬫墠鏈� screenX锛屽叾浠栧钩鍙板紡 clientX
- this._getRateCount(clientX || screenX)
- },
- touchmove(e) {
- // #ifdef H5
- if (this.IsPC()) return
- // #endif
- if (this.readonly || this.disabled || !this.touchable) return
- const {
- clientX,
- screenX
- } = e.changedTouches[0]
- this._getRateCount(clientX || screenX)
- },
-
- /**
- * 鍏煎 PC @tian
- */
-
- mousedown(e) {
- // #ifdef H5
- if (!this.IsPC()) return
- if (this.readonly || this.disabled) return
- const {
- clientX,
- } = e
- this.userLastRate = this.valueSync
- this._getRateCount(clientX)
- this.userRated = true
- // #endif
- },
- mousemove(e) {
- // #ifdef H5
- if (!this.IsPC()) return
- if (this.userRated) return
- if (this.userMouseFristMove) {
- console.log('---mousemove----', this.valueSync);
- this.userLastRate = this.valueSync
- this.userMouseFristMove = false
- }
- if (this.readonly || this.disabled || !this.touchable) return
- const {
- clientX,
- } = e
- this._getRateCount(clientX)
- // #endif
- },
- mouseleave(e) {
- // #ifdef H5
- if (!this.IsPC()) return
- if (this.readonly || this.disabled || !this.touchable) return
- if (this.userRated) {
- this.userRated = false
- return
- }
- this.valueSync = this.userLastRate
- // #endif
- },
- // #ifdef H5
- IsPC() {
- var userAgentInfo = navigator.userAgent;
- var Agents = ["Android", "iPhone", "SymbianOS", "Windows Phone", "iPad", "iPod"];
- var flag = true;
- for (let v = 0; v < Agents.length - 1; v++) {
- if (userAgentInfo.indexOf(Agents[v]) > 0) {
- flag = false;
- break;
- }
- }
- return flag;
- },
- // #endif
-
- /**
- * 鑾峰彇鏄熸槦涓暟
- */
- _getRateCount(clientX) {
- this._getSize()
- const size = Number(this.size)
- if (isNaN(size)) {
- return new Error('size 灞炴�у彧鑳借缃负鏁板瓧')
- }
- const rateMoveRange = clientX - this._rateBoxLeft
- let index = parseInt(rateMoveRange / (size + this.marginNumber))
- index = index < 0 ? 0 : index;
- index = index > this.max ? this.max : index;
- const range = parseInt(rateMoveRange - (size + this.marginNumber) * index);
- let value = 0;
- if (this._oldValue === index && !this.PC) return;
- this._oldValue = index;
- if (this.allowHalf) {
- if (range > (size / 2)) {
- value = index + 1
- } else {
- value = index + 0.5
- }
- } else {
- value = index + 1
- }
-
- value = Math.max(0.5, Math.min(value, this.max))
- this.valueSync = value
- this._onChange()
- },
-
- /**
- * 瑙﹀彂鍔ㄦ�佷慨鏀�
- */
- _onChange() {
-
- this.$emit("input", this.valueSync);
- this.$emit("update:modelValue", this.valueSync);
- this.$emit("change", {
- value: this.valueSync
- });
- },
- /**
- * 鑾峰彇鏄熸槦璺濈灞忓箷宸︿晶璺濈
- */
- _getSize() {
- // #ifndef APP-NVUE
- uni.createSelectorQuery()
- .in(this)
- .select('.uni-rate')
- .boundingClientRect()
- .exec(ret => {
- if (ret) {
- this._rateBoxLeft = ret[0].left
- }
- })
- // #endif
- // #ifdef APP-NVUE
- dom.getComponentRect(this.$refs['uni-rate'], (ret) => {
- const size = ret.size
- if (size) {
- this._rateBoxLeft = size.left
- }
- })
- // #endif
- }
- }
- };
-</script>
-
-<style lang="scss">
- .uni-rate {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- line-height: 1;
- font-size: 0;
- flex-direction: row;
- /* #ifdef H5 */
- cursor: pointer;
- /* #endif */
- }
-
- .uni-rate__icon {
- position: relative;
- line-height: 1;
- font-size: 0;
- }
-
- .uni-rate__icon-on {
- overflow: hidden;
- position: absolute;
- top: 0;
- left: 0;
- line-height: 1;
- text-align: left;
- }
-
- .uni-cursor-not-allowed {
- /* #ifdef H5 */
- cursor: not-allowed !important;
- /* #endif */
- }
-</style>
diff --git a/uni_modules/uni-rate/package.json b/uni_modules/uni-rate/package.json
deleted file mode 100644
index 64e8e33..0000000
--- a/uni_modules/uni-rate/package.json
+++ /dev/null
@@ -1,88 +0,0 @@
-{
- "id": "uni-rate",
- "displayName": "uni-rate 璇勫垎",
- "version": "1.3.1",
- "description": "Rate 璇勫垎缁勪欢锛屽彲鑷畾涔夎瘎鍒嗘槦鏄熷浘鏍囩殑澶у皬銆侀棿闅斻�佽瘎鍒嗘暟銆�",
- "keywords": [
- "uni-ui",
- "uniui",
- "璇勫垎"
-],
- "repository": "https://github.com/dcloudio/uni-ui",
- "engines": {
- "HBuilderX": ""
- },
- "directories": {
- "example": "../../temps/example_temps"
- },
- "dcloudext": {
- "category": [
- "鍓嶇缁勪欢",
- "閫氱敤缁勪欢"
- ],
- "sale": {
- "regular": {
- "price": "0.00"
- },
- "sourcecode": {
- "price": "0.00"
- }
- },
- "contact": {
- "qq": ""
- },
- "declaration": {
- "ads": "鏃�",
- "data": "鏃�",
- "permissions": "鏃�"
- },
- "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui"
- },
- "uni_modules": {
- "dependencies": [
- "uni-scss",
- "uni-icons"
- ],
- "encrypt": [],
- "platforms": {
- "cloud": {
- "tcb": "y",
- "aliyun": "y"
- },
- "client": {
- "App": {
- "app-vue": "y",
- "app-nvue": "y"
- },
- "H5-mobile": {
- "Safari": "y",
- "Android Browser": "y",
- "寰俊娴忚鍣�(Android)": "y",
- "QQ娴忚鍣�(Android)": "y"
- },
- "H5-pc": {
- "Chrome": "y",
- "IE": "y",
- "Edge": "y",
- "Firefox": "y",
- "Safari": "y"
- },
- "灏忕▼搴�": {
- "寰俊": "y",
- "闃块噷": "y",
- "鐧惧害": "y",
- "瀛楄妭璺冲姩": "y",
- "QQ": "y"
- },
- "蹇簲鐢�": {
- "鍗庝负": "u",
- "鑱旂洘": "u"
- },
- "Vue": {
- "vue2": "y",
- "vue3": "y"
- }
- }
- }
- }
-}
diff --git a/uni_modules/uni-rate/readme.md b/uni_modules/uni-rate/readme.md
deleted file mode 100644
index eae7b5c..0000000
--- a/uni_modules/uni-rate/readme.md
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-## Rate 璇勫垎
-> **缁勪欢鍚嶏細uni-rate**
-> 浠g爜鍧楋細 `uRate`
-> 鍏宠仈缁勪欢锛歚uni-icons`
-
-
-璇勫垎缁勪欢锛屽鐢ㄤ簬璐拱鍟嗗搧鍚庯紝瀵瑰晢鍝佽繘琛岃瘎浠风瓑鍦烘櫙
-
-### [鏌ョ湅鏂囨。](https://uniapp.dcloud.io/component/uniui/uni-rate)
-#### 濡備娇鐢ㄨ繃绋嬩腑鏈変换浣曢棶棰橈紝鎴栬�呮偍瀵箄ni-ui鏈変竴浜涘ソ鐨勫缓璁紝娆㈣繋鍔犲叆 uni-ui 浜ゆ祦缇わ細871950839
\ No newline at end of file
diff --git a/uni_modules/uni-row/changelog.md b/uni_modules/uni-row/changelog.md
deleted file mode 100644
index 5b465bc..0000000
--- a/uni_modules/uni-row/changelog.md
+++ /dev/null
@@ -1,10 +0,0 @@
-## 1.0.0锛�2021-11-19锛�
-- 浼樺寲 缁勪欢UI锛屽苟鎻愪緵璁捐璧勬簮锛岃瑙�:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource)
-- 鏂囨。杩佺Щ锛岃瑙�:[https://uniapp.dcloud.io/component/uniui/uni-row](https://uniapp.dcloud.io/component/uniui/uni-row)
-## 0.1.0锛�2021-07-13锛�
-- 缁勪欢鍏煎 vue3锛屽浣曞垱寤簐ue3椤圭洰锛岃瑙� [uni-app 椤圭洰鏀寔 vue3 浠嬬粛](https://ask.dcloud.net.cn/article/37834)
-## 0.0.4锛�2021-05-12锛�
-- 鏂板 缁勪欢绀轰緥鍦板潃
-## 0.0.3锛�2021-02-05锛�
-- 璋冩暣涓簎ni_modules鐩綍瑙勮寖
-- 鏂板uni-row缁勪欢
diff --git a/uni_modules/uni-row/components/uni-col/uni-col.vue b/uni_modules/uni-row/components/uni-col/uni-col.vue
deleted file mode 100644
index 84e2deb..0000000
--- a/uni_modules/uni-row/components/uni-col/uni-col.vue
+++ /dev/null
@@ -1,317 +0,0 @@
-<template>
- <!-- #ifndef APP-NVUE -->
- <view :class="['uni-col', sizeClass, pointClassList]" :style="{
- paddingLeft:`${Number(gutter)}rpx`,
- paddingRight:`${Number(gutter)}rpx`,
- }">
- <slot></slot>
- </view>
- <!-- #endif -->
- <!-- #ifdef APP-NVUE -->
- <!-- 鍦╪vue涓婏紝绫诲悕鏍峰紡涓嶇敓鏁堬紝鎹负style -->
- <!-- 璁剧疆right姝e�煎け鏁堬紝璁剧疆 left 璐熷�� -->
- <view :class="['uni-col']" :style="{
- paddingLeft:`${Number(gutter)}rpx`,
- paddingRight:`${Number(gutter)}rpx`,
- width:`${nvueWidth}rpx`,
- position:'relative',
- marginLeft:`${marginLeft}rpx`,
- left:`${right === 0 ? left : -right}rpx`
- }">
- <slot></slot>
- </view>
- <!-- #endif -->
-</template>
-
-<script>
- /**
- * Col 甯冨眬-鍒�
- * @description 鎼厤uni-row浣跨敤锛屾瀯寤哄竷灞�銆�
- * @tutorial https://ext.dcloud.net.cn/plugin?id=3958
- *
- * @property {span} type = Number 鏍呮牸鍗犳嵁鐨勫垪鏁�
- * 榛樿 24
- * @property {offset} type = Number 鏍呮牸宸︿晶鐨勯棿闅旀牸鏁�
- * @property {push} type = Number 鏍呮牸鍚戝彸绉诲姩鏍兼暟
- * @property {pull} type = Number 鏍呮牸鍚戝乏绉诲姩鏍兼暟
- * @property {xs} type = [Number, Object] <768px 鍝嶅簲寮忔爡鏍兼暟鎴栬�呮爡鏍煎睘鎬у璞�
- * @description Number鏃惰〃绀哄湪姝ゅ睆骞曞搴︿笅锛屾爡鏍煎崰鎹殑鍒楁暟銆侽bject鏃跺彲閰嶇疆澶氫釜鎻忚堪{span: 4, offset: 4}
- * @property {sm} type = [Number, Object] 鈮�768px 鍝嶅簲寮忔爡鏍兼暟鎴栬�呮爡鏍煎睘鎬у璞�
- * @description Number鏃惰〃绀哄湪姝ゅ睆骞曞搴︿笅锛屾爡鏍煎崰鎹殑鍒楁暟銆侽bject鏃跺彲閰嶇疆澶氫釜鎻忚堪{span: 4, offset: 4}
- * @property {md} type = [Number, Object] 鈮�992px 鍝嶅簲寮忔爡鏍兼暟鎴栬�呮爡鏍煎睘鎬у璞�
- * @description Number鏃惰〃绀哄湪姝ゅ睆骞曞搴︿笅锛屾爡鏍煎崰鎹殑鍒楁暟銆侽bject鏃跺彲閰嶇疆澶氫釜鎻忚堪{span: 4, offset: 4}
- * @property {lg} type = [Number, Object] 鈮�1200px 鍝嶅簲寮忔爡鏍兼暟鎴栬�呮爡鏍煎睘鎬у璞�
- * @description Number鏃惰〃绀哄湪姝ゅ睆骞曞搴︿笅锛屾爡鏍煎崰鎹殑鍒楁暟銆侽bject鏃跺彲閰嶇疆澶氫釜鎻忚堪{span: 4, offset: 4}
- * @property {xl} type = [Number, Object] 鈮�1920px 鍝嶅簲寮忔爡鏍兼暟鎴栬�呮爡鏍煎睘鎬у璞�
- * @description Number鏃惰〃绀哄湪姝ゅ睆骞曞搴︿笅锛屾爡鏍煎崰鎹殑鍒楁暟銆侽bject鏃跺彲閰嶇疆澶氫釜鎻忚堪{span: 4, offset: 4}
- */
- const ComponentClass = 'uni-col';
-
- // -1 榛樿鍊硷紝鍥犱负鍦ㄥ井淇″皬绋嬪簭绔彧缁橬umber浼氭湁榛樿鍊�0
- export default {
- name: 'uniCol',
- // #ifdef MP-WEIXIN
- options: {
- virtualHost: true // 鍦ㄥ井淇″皬绋嬪簭涓皢缁勪欢鑺傜偣娓叉煋涓鸿櫄鎷熻妭鐐癸紝鏇村姞鎺ヨ繎Vue缁勪欢鐨勮〃鐜�
- },
- // #endif
- props: {
- span: {
- type: Number,
- default: 24
- },
- offset: {
- type: Number,
- default: -1
- },
- pull: {
- type: Number,
- default: -1
- },
- push: {
- type: Number,
- default: -1
- },
- xs: [Number, Object],
- sm: [Number, Object],
- md: [Number, Object],
- lg: [Number, Object],
- xl: [Number, Object]
- },
- data() {
- return {
- gutter: 0,
- sizeClass: '',
- parentWidth: 0,
- nvueWidth: 0,
- marginLeft: 0,
- right: 0,
- left: 0
- }
- },
- created() {
- // 瀛楄妭灏忕▼搴忎腑锛屽湪computed涓鍙�$parent涓簎ndefined
- let parent = this.$parent;
-
- while (parent && parent.$options.componentName !== 'uniRow') {
- parent = parent.$parent;
- }
-
- this.updateGutter(parent.gutter)
- parent.$watch('gutter', (gutter) => {
- this.updateGutter(gutter)
- })
-
- // #ifdef APP-NVUE
- this.updateNvueWidth(parent.width)
- parent.$watch('width', (width) => {
- this.updateNvueWidth(width)
- })
- // #endif
- },
- computed: {
- sizeList() {
- let {
- span,
- offset,
- pull,
- push
- } = this;
-
- return {
- span,
- offset,
- pull,
- push
- }
- },
- // #ifndef APP-NVUE
- pointClassList() {
- let classList = [];
-
- ['xs', 'sm', 'md', 'lg', 'xl'].forEach(point => {
- const props = this[point];
- if (typeof props === 'number') {
- classList.push(`${ComponentClass}-${point}-${props}`)
- } else if (typeof props === 'object' && props) {
- Object.keys(props).forEach(pointProp => {
- classList.push(
- pointProp === 'span' ?
- `${ComponentClass}-${point}-${props[pointProp]}` :
- `${ComponentClass}-${point}-${pointProp}-${props[pointProp]}`
- )
- })
- }
- });
-
- // 鏀粯瀹濆皬绋嬪簭浣跨敤 :class=[ ['a','b'] ]锛屾覆鏌撻敊璇�
- return classList.join(' ');
- }
- // #endif
- },
- methods: {
- updateGutter(parentGutter) {
- parentGutter = Number(parentGutter);
- if (!isNaN(parentGutter)) {
- this.gutter = parentGutter / 2
- }
- },
- // #ifdef APP-NVUE
- updateNvueWidth(width) {
- // 鐢ㄤ簬鍦╪vue绔紝span锛宱ffset锛宲ull锛宲ush鐨勮绠�
- this.parentWidth = width;
- ['span', 'offset', 'pull', 'push'].forEach(size => {
- const curSize = this[size];
- if ((curSize || curSize === 0) && curSize !== -1) {
- let RPX = 1 / 24 * curSize * width
- RPX = Number(RPX);
- switch (size) {
- case 'span':
- this.nvueWidth = RPX
- break;
- case 'offset':
- this.marginLeft = RPX
- break;
- case 'pull':
- this.right = RPX
- break;
- case 'push':
- this.left = RPX
- break;
- }
- }
- });
- }
- // #endif
- },
- watch: {
- sizeList: {
- immediate: true,
- handler(newVal) {
- // #ifndef APP-NVUE
- let classList = [];
- for (let size in newVal) {
- const curSize = newVal[size];
- if ((curSize || curSize === 0) && curSize !== -1) {
- classList.push(
- size === 'span' ?
- `${ComponentClass}-${curSize}` :
- `${ComponentClass}-${size}-${curSize}`
- )
- }
- }
- // 鏀粯瀹濆皬绋嬪簭浣跨敤 :class=[ ['a','b'] ]锛屾覆鏌撻敊璇�
- this.sizeClass = classList.join(' ');
- // #endif
- // #ifdef APP-NVUE
- this.updateNvueWidth(this.parentWidth);
- // #endif
- }
- }
- }
- }
-</script>
-
-<style lang='scss' scoped>
- /* breakpoints */
- $--sm: 768px !default;
- $--md: 992px !default;
- $--lg: 1200px !default;
- $--xl: 1920px !default;
-
- $breakpoints: ('xs' : (max-width: $--sm - 1),
- 'sm' : (min-width: $--sm),
- 'md' : (min-width: $--md),
- 'lg' : (min-width: $--lg),
- 'xl' : (min-width: $--xl));
-
- $layout-namespace: ".uni-";
- $col: $layout-namespace+"col";
-
- @function getSize($size) {
- /* TODO 1/24 * $size * 100 * 1%; 浣跨敤璁$畻鍚庣殑鍊硷紝涓轰簡瑙e喅 vue3 鎺у埗鍙版姤閿� */
- @return 0.04166666666 * $size * 100 * 1%;
- }
-
- @mixin res($key, $map:$breakpoints) {
- @if map-has-key($map, $key) {
- @media screen and #{inspect(map-get($map,$key))} {
- @content;
- }
- }
-
- @else {
- @warn "Undeinfed point: `#{$key}`";
- }
- }
-
- /* #ifndef APP-NVUE */
- #{$col} {
- float: left;
- box-sizing: border-box;
- }
-
- #{$col}-0 {
- /* #ifdef APP-NVUE */
- width: 0;
- height: 0;
- margin-top: 0;
- margin-right: 0;
- margin-bottom: 0;
- margin-left: 0;
- /* #endif */
- /* #ifndef APP-NVUE */
- display: none;
- /* #endif */
- }
-
- @for $i from 0 through 24 {
- #{$col}-#{$i} {
- width: getSize($i);
- }
-
- #{$col}-offset-#{$i} {
- margin-left: getSize($i);
- }
-
- #{$col}-pull-#{$i} {
- position: relative;
- right: getSize($i);
- }
-
- #{$col}-push-#{$i} {
- position: relative;
- left: getSize($i);
- }
- }
-
- @each $point in map-keys($breakpoints) {
- @include res($point) {
- #{$col}-#{$point}-0 {
- display: none;
- }
-
- @for $i from 0 through 24 {
- #{$col}-#{$point}-#{$i} {
- width: getSize($i);
- }
-
- #{$col}-#{$point}-offset-#{$i} {
- margin-left: getSize($i);
- }
-
- #{$col}-#{$point}-pull-#{$i} {
- position: relative;
- right: getSize($i);
- }
-
- #{$col}-#{$point}-push-#{$i} {
- position: relative;
- left: getSize($i);
- }
- }
- }
- }
-
- /* #endif */
-</style>
diff --git a/uni_modules/uni-row/components/uni-row/uni-row.vue b/uni_modules/uni-row/components/uni-row/uni-row.vue
deleted file mode 100644
index f8e8542..0000000
--- a/uni_modules/uni-row/components/uni-row/uni-row.vue
+++ /dev/null
@@ -1,190 +0,0 @@
-<template>
- <view :class="[ 'uni-row', typeClass , justifyClass, alignClass, ]" :style="{
- marginLeft:`${Number(marginValue)}rpx`,
- marginRight:`${Number(marginValue)}rpx`,
- }">
- <slot></slot>
- </view>
-</template>
-
-<script>
- const ComponentClass = 'uni-row';
- const modifierSeparator = '--';
- /**
- * Row 甯冨眬-琛�
- * @description 娴佸紡鏍呮牸绯荤粺锛岄殢鐫�灞忓箷鎴栬鍙e垎涓� 24 浠斤紝鍙互杩呴�熺畝渚垮湴鍒涘缓甯冨眬銆�
- * @tutorial https://ext.dcloud.net.cn/plugin?id=3958
- *
- * @property {gutter} type = Number 鏍呮牸闂撮殧
- * @property {justify} type = String flex 甯冨眬涓嬬殑姘村钩鎺掑垪鏂瑰紡
- * 鍙�� start/end/center/space-around/space-between start
- * 榛樿鍊� start
- * @property {align} type = String flex 甯冨眬涓嬬殑鍨傜洿鎺掑垪鏂瑰紡
- * 鍙�� top/middle/bottom
- * 榛樿鍊� top
- * @property {width} type = String|Number nvue涓嬮渶瑕佽嚜琛岄厤缃搴︾敤浜庤绠�
- * 榛樿鍊� 750
- */
-
-
- export default {
- name: 'uniRow',
- componentName: 'uniRow',
- // #ifdef MP-WEIXIN
- options: {
- virtualHost: true // 鍦ㄥ井淇″皬绋嬪簭涓皢缁勪欢鑺傜偣娓叉煋涓鸿櫄鎷熻妭鐐癸紝鏇村姞鎺ヨ繎Vue缁勪欢鐨勮〃鐜帮紝鍙娇鐢╢lex甯冨眬
- },
- // #endif
- props: {
- type: String,
- gutter: Number,
- justify: {
- type: String,
- default: 'start'
- },
- align: {
- type: String,
- default: 'top'
- },
- // nvue濡傛灉浣跨敤span绛夊睘鎬э紝闇�瑕侀厤缃搴�
- width: {
- type: [String, Number],
- default: 750
- }
- },
- created() {
- // #ifdef APP-NVUE
- this.type = 'flex';
- // #endif
- },
- computed: {
- marginValue() {
- // #ifndef APP-NVUE
- if (this.gutter) {
- return -(this.gutter / 2);
- }
- // #endif
- return 0;
- },
- typeClass() {
- return this.type === 'flex' ? `${ComponentClass + modifierSeparator}flex` : '';
- },
- justifyClass() {
- return this.justify !== 'start' ? `${ComponentClass + modifierSeparator}flex-justify-${this.justify}` : ''
- },
- alignClass() {
- return this.align !== 'top' ? `${ComponentClass + modifierSeparator}flex-align-${this.align}` : ''
- }
- }
- };
-</script>
-
-<style lang="scss">
- $layout-namespace: ".uni-";
- $row:$layout-namespace+"row";
- $modifier-separator: "--";
-
- @mixin utils-clearfix {
- $selector: &;
-
- @at-root {
-
- /* #ifndef APP-NVUE */
- #{$selector}::before,
- #{$selector}::after {
- display: table;
- content: "";
- }
-
- #{$selector}::after {
- clear: both;
- }
-
- /* #endif */
- }
-
- }
-
- @mixin utils-flex ($direction: row) {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex-direction: $direction;
- }
-
- @mixin set-flex($state) {
- @at-root &-#{$state} {
- @content
- }
- }
-
- #{$row} {
- position: relative;
- flex-direction: row;
-
- /* #ifdef APP-NVUE */
- flex: 1;
- /* #endif */
-
- /* #ifndef APP-NVUE */
- box-sizing: border-box;
- /* #endif */
-
- // 闈瀗vue浣跨敤float甯冨眬
- @include utils-clearfix;
-
- // 鍦≦Q銆佸瓧鑺傘�佺櫨搴﹀皬绋嬪簭骞冲彴锛岀紪璇戝悗浣跨敤shadow dom锛屼笉鍙娇鐢╢lex甯冨眬锛屼娇鐢╢loat
- @at-root {
-
- /* #ifndef MP-QQ || MP-TOUTIAO || MP-BAIDU */
- &#{$modifier-separator}flex {
- @include utils-flex;
- flex-wrap: wrap;
- flex: 1;
-
- &:before,
- &:after {
- /* #ifndef APP-NVUE */
- display: none;
- /* #endif */
- }
-
- @include set-flex(justify-center) {
- justify-content: center;
- }
-
- @include set-flex(justify-end) {
- justify-content: flex-end;
- }
-
- @include set-flex(justify-space-between) {
- justify-content: space-between;
- }
-
- @include set-flex(justify-space-around) {
- justify-content: space-around;
- }
-
- @include set-flex(align-middle) {
- align-items: center;
- }
-
- @include set-flex(align-bottom) {
- align-items: flex-end;
- }
- }
-
- /* #endif */
- }
-
- }
-
- // 瀛楄妭銆丵Q閰嶇疆鍚庝笉鐢熸晥
- // 姝ゅ鐢ㄦ硶鏃犳硶浣跨敤scoped
- /* #ifdef MP-WEIXIN || MP-TOUTIAO || MP-QQ */
- :host {
- display: block;
- }
-
- /* #endif */
-</style>
diff --git a/uni_modules/uni-row/package.json b/uni_modules/uni-row/package.json
deleted file mode 100644
index 3f52fa6..0000000
--- a/uni_modules/uni-row/package.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "id": "uni-row",
- "displayName": "uni-row 甯冨眬-琛�",
- "version": "1.0.0",
- "description": "娴佸紡鏍呮牸绯荤粺锛岄殢鐫�灞忓箷鎴栬鍙e垎涓� 24 浠斤紝鍙互杩呴�熺畝渚垮湴鍒涘缓甯冨眬銆�",
- "keywords": [
- "uni-ui",
- "uniui",
- "鏍呮牸",
- "甯冨眬",
- "layout"
-],
- "repository": "https://github.com/dcloudio/uni-ui",
- "engines": {
- "HBuilderX": ""
- },
- "directories": {
- "example": "../../temps/example_temps"
- },
- "dcloudext": {
- "category": [
- "鍓嶇缁勪欢",
- "閫氱敤缁勪欢"
- ],
- "sale": {
- "regular": {
- "price": "0.00"
- },
- "sourcecode": {
- "price": "0.00"
- }
- },
- "contact": {
- "qq": ""
- },
- "declaration": {
- "ads": "鏃�",
- "data": "鏃�",
- "permissions": "鏃�"
- },
- "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui"
- },
- "uni_modules": {
- "dependencies": ["uni-scss"],
- "encrypt": [],
- "platforms": {
- "cloud": {
- "tcb": "y",
- "aliyun": "y"
- },
- "client": {
- "App": {
- "app-vue": "y",
- "app-nvue": "y"
- },
- "H5-mobile": {
- "Safari": "y",
- "Android Browser": "y",
- "寰俊娴忚鍣�(Android)": "y",
- "QQ娴忚鍣�(Android)": "y"
- },
- "H5-pc": {
- "Chrome": "y",
- "IE": "y",
- "Edge": "y",
- "Firefox": "y",
- "Safari": "y"
- },
- "灏忕▼搴�": {
- "寰俊": "y",
- "闃块噷": "y",
- "鐧惧害": "y",
- "瀛楄妭璺冲姩": "y",
- "QQ": "y"
- },
- "蹇簲鐢�": {
- "鍗庝负": "u",
- "鑱旂洘": "u"
- },
- "Vue": {
- "vue2": "y",
- "vue3": "u"
- }
- }
- }
- }
-}
\ No newline at end of file
diff --git a/uni_modules/uni-row/readme.md b/uni_modules/uni-row/readme.md
deleted file mode 100644
index 3c9c8b9..0000000
--- a/uni_modules/uni-row/readme.md
+++ /dev/null
@@ -1,10 +0,0 @@
-## Layout 甯冨眬
-
-> **缁勪欢鍚� uni-row銆乽ni-col**
-> 浠g爜鍧楋細 `uRow`銆乣uCol`
-
-
-娴佸紡鏍呮牸绯荤粺锛岄殢鐫�灞忓箷鎴栬鍙e垎涓� 24 浠斤紝鍙互杩呴�熺畝渚垮湴鍒涘缓甯冨眬銆�
-
-### [鏌ョ湅鏂囨。](https://uniapp.dcloud.io/component/uniui/uni-row)
-#### 濡備娇鐢ㄨ繃绋嬩腑鏈変换浣曢棶棰橈紝鎴栬�呮偍瀵箄ni-ui鏈変竴浜涘ソ鐨勫缓璁紝娆㈣繋鍔犲叆 uni-ui 浜ゆ祦缇わ細871950839
\ No newline at end of file
diff --git a/uni_modules/uni-scss/changelog.md b/uni_modules/uni-scss/changelog.md
deleted file mode 100644
index b863bb0..0000000
--- a/uni_modules/uni-scss/changelog.md
+++ /dev/null
@@ -1,8 +0,0 @@
-## 1.0.3锛�2022-01-21锛�
-- 浼樺寲 缁勪欢绀轰緥
-## 1.0.2锛�2021-11-22锛�
-- 淇 / 绗﹀彿鍦� vue 涓嶅悓鐗堟湰鍏煎闂寮曡捣鐨勬姤閿欓棶棰�
-## 1.0.1锛�2021-11-22锛�
-- 淇 vue3涓璼css璇硶鍏煎闂
-## 1.0.0锛�2021-11-18锛�
-- init
diff --git a/uni_modules/uni-scss/index.scss b/uni_modules/uni-scss/index.scss
deleted file mode 100644
index 1744a5f..0000000
--- a/uni_modules/uni-scss/index.scss
+++ /dev/null
@@ -1 +0,0 @@
-@import './styles/index.scss';
diff --git a/uni_modules/uni-scss/manifest.json b/uni_modules/uni-scss/manifest.json
deleted file mode 100644
index 9f8baee..0000000
--- a/uni_modules/uni-scss/manifest.json
+++ /dev/null
@@ -1,95 +0,0 @@
-{
- "name" : "",
- "appid" : "",
- "description": "搴旂敤鎻忚堪",
- "versionName": "1.0.0",
- "versionCode": "100",
- "transformPx": false,
- /* 5+App鐗规湁鐩稿叧 */
- "app-plus": {
- "usingComponents": true,
- "splashscreen": {
- "alwaysShowBeforeRender": true,
- "waiting": true,
- "autoclose": true,
- "delay": 0
- },
- "modules": {
- "OAuth": {},
- "Payment": {},
- "Push": {},
- "Share": {},
- "Speech": {},
- "VideoPlayer": {}
- },
- /* 搴旂敤鍙戝竷淇℃伅 */
- "distribute": {
- /* android鎵撳寘閰嶇疆 */
- "android": {
- "permissions": [
- "<uses-feature android:name=\"android.hardware.camera\"/>",
- "<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
- "<uses-permission android:name=\"android.permission.ACCESS_COARSE_LOCATION\"/>",
- "<uses-permission android:name=\"android.permission.VIBRATE\"/>",
- "<uses-permission android:name=\"android.permission.ACCESS_FINE_LOCATION\"/>",
- "<uses-permission android:name=\"android.permission.ACCESS_MOCK_LOCATION\"/>",
- "<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
- "<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>",
- "<uses-permission android:name=\"android.permission.CALL_PHONE\"/>",
- "<uses-permission android:name=\"android.permission.CAMERA\"/>",
- "<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
- "<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>",
- "<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
- "<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>",
- "<uses-permission android:name=\"android.permission.GET_TASKS\"/>",
- "<uses-permission android:name=\"android.permission.INTERNET\"/>",
- "<uses-permission android:name=\"android.permission.MODIFY_AUDIO_SETTINGS\"/>",
- "<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
- "<uses-permission android:name=\"android.permission.READ_CONTACTS\"/>",
- "<uses-permission android:name=\"android.permission.READ_LOGS\"/>",
- "<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>",
- "<uses-permission android:name=\"android.permission.READ_SMS\"/>",
- "<uses-permission android:name=\"android.permission.RECEIVE_BOOT_COMPLETED\"/>",
- "<uses-permission android:name=\"android.permission.RECORD_AUDIO\"/>",
- "<uses-permission android:name=\"android.permission.SEND_SMS\"/>",
- "<uses-permission android:name=\"android.permission.SYSTEM_ALERT_WINDOW\"/>",
- "<uses-permission android:name=\"android.permission.VIBRATE\"/>",
- "<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
- "<uses-permission android:name=\"android.permission.WRITE_CONTACTS\"/>",
- "<uses-permission android:name=\"android.permission.WRITE_EXTERNAL_STORAGE\"/>",
- "<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>",
- "<uses-permission android:name=\"android.permission.WRITE_SMS\"/>",
- "<uses-permission android:name=\"android.permission.RECEIVE_USER_PRESENT\"/>"
- ]
- },
- /* ios鎵撳寘閰嶇疆 */
- "ios": {
- "UIBackgroundModes": ["audio"]
- },
- /* SDK閰嶇疆 */
- "sdkConfigs": {
- "speech": {
- "ifly": {}
- }
- },
- "orientation": ["portrait-primary"]
- }
- },
- /* 蹇簲鐢ㄧ壒鏈夌浉鍏� */
- "quickapp": {},
- /* 灏忕▼搴忕壒鏈夌浉鍏� */
- "mp-weixin": {
- "appid": "",
- "setting": {
- "urlCheck": false
- },
- "usingComponents": true
- },
- "h5": {
- "template": "template.h5.html",
- "router": {
- "mode": "history",
- "base": "/h5/"
- }
- }
-}
diff --git a/uni_modules/uni-scss/package.json b/uni_modules/uni-scss/package.json
deleted file mode 100644
index 7cc0ccb..0000000
--- a/uni_modules/uni-scss/package.json
+++ /dev/null
@@ -1,82 +0,0 @@
-{
- "id": "uni-scss",
- "displayName": "uni-scss 杈呭姪鏍峰紡",
- "version": "1.0.3",
- "description": "uni-sass鏄痷ni-ui鎻愪緵鐨勪竴濂楀叏灞�鏍峰紡 锛岄�氳繃涓�浜涚畝鍗曠殑绫诲悕鍜宻ass鍙橀噺锛屽疄鐜扮畝鍗曠殑椤甸潰甯冨眬鎿嶄綔锛屾瘮濡傞鑹层�佽竟璺濄�佸渾瑙掔瓑銆�",
- "keywords": [
- "uni-scss",
- "uni-ui",
- "杈呭姪鏍峰紡"
-],
- "repository": "https://github.com/dcloudio/uni-ui",
- "engines": {
- "HBuilderX": "^3.1.0"
- },
- "dcloudext": {
- "category": [
- "JS SDK",
- "閫氱敤 SDK"
- ],
- "sale": {
- "regular": {
- "price": "0.00"
- },
- "sourcecode": {
- "price": "0.00"
- }
- },
- "contact": {
- "qq": ""
- },
- "declaration": {
- "ads": "鏃�",
- "data": "鏃�",
- "permissions": "鏃�"
- },
- "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui"
- },
- "uni_modules": {
- "dependencies": [],
- "encrypt": [],
- "platforms": {
- "cloud": {
- "tcb": "y",
- "aliyun": "y"
- },
- "client": {
- "App": {
- "app-vue": "y",
- "app-nvue": "u"
- },
- "H5-mobile": {
- "Safari": "y",
- "Android Browser": "y",
- "寰俊娴忚鍣�(Android)": "y",
- "QQ娴忚鍣�(Android)": "y"
- },
- "H5-pc": {
- "Chrome": "y",
- "IE": "y",
- "Edge": "y",
- "Firefox": "y",
- "Safari": "y"
- },
- "灏忕▼搴�": {
- "寰俊": "y",
- "闃块噷": "y",
- "鐧惧害": "y",
- "瀛楄妭璺冲姩": "y",
- "QQ": "y"
- },
- "蹇簲鐢�": {
- "鍗庝负": "n",
- "鑱旂洘": "n"
- },
- "Vue": {
- "vue2": "y",
- "vue3": "y"
- }
- }
- }
- }
-}
diff --git a/uni_modules/uni-scss/readme.md b/uni_modules/uni-scss/readme.md
deleted file mode 100644
index b7d1c25..0000000
--- a/uni_modules/uni-scss/readme.md
+++ /dev/null
@@ -1,4 +0,0 @@
-`uni-sass` 鏄� `uni-ui`鎻愪緵鐨勪竴濂楀叏灞�鏍峰紡 锛岄�氳繃涓�浜涚畝鍗曠殑绫诲悕鍜宍sass`鍙橀噺锛屽疄鐜扮畝鍗曠殑椤甸潰甯冨眬鎿嶄綔锛屾瘮濡傞鑹层�佽竟璺濄�佸渾瑙掔瓑銆�
-
-### [鏌ョ湅鏂囨。](https://uniapp.dcloud.io/component/uniui/uni-sass)
-#### 濡備娇鐢ㄨ繃绋嬩腑鏈変换浣曢棶棰橈紝鎴栬�呮偍瀵箄ni-ui鏈変竴浜涘ソ鐨勫缓璁紝娆㈣繋鍔犲叆 uni-ui 浜ゆ祦缇わ細871950839
\ No newline at end of file
diff --git a/uni_modules/uni-scss/styles/index.scss b/uni_modules/uni-scss/styles/index.scss
deleted file mode 100644
index ffac4fe..0000000
--- a/uni_modules/uni-scss/styles/index.scss
+++ /dev/null
@@ -1,7 +0,0 @@
-@import './setting/_variables.scss';
-@import './setting/_border.scss';
-@import './setting/_color.scss';
-@import './setting/_space.scss';
-@import './setting/_radius.scss';
-@import './setting/_text.scss';
-@import './setting/_styles.scss';
diff --git a/uni_modules/uni-scss/styles/setting/_border.scss b/uni_modules/uni-scss/styles/setting/_border.scss
deleted file mode 100644
index 12a11c3..0000000
--- a/uni_modules/uni-scss/styles/setting/_border.scss
+++ /dev/null
@@ -1,3 +0,0 @@
-.uni-border {
- border: 1px $uni-border-1 solid;
-}
\ No newline at end of file
diff --git a/uni_modules/uni-scss/styles/setting/_color.scss b/uni_modules/uni-scss/styles/setting/_color.scss
deleted file mode 100644
index 1ededd9..0000000
--- a/uni_modules/uni-scss/styles/setting/_color.scss
+++ /dev/null
@@ -1,66 +0,0 @@
-
-// TODO 鏆傛椂涓嶉渶瑕� class 锛岄渶瑕佺敤鎴蜂娇鐢ㄥ彉閲忓疄鐜� 锛屽鏋滀娇鐢ㄧ被鍚嶅叾瀹炲苟涓嶆帹鑽�
-// @mixin get-styles($k,$c) {
-// @if $k == size or $k == weight{
-// font-#{$k}:#{$c}
-// }@else{
-// #{$k}:#{$c}
-// }
-// }
-$uni-ui-color:(
- // 涓昏壊
- primary: $uni-primary,
- primary-disable: $uni-primary-disable,
- primary-light: $uni-primary-light,
- // 杈呭姪鑹�
- success: $uni-success,
- success-disable: $uni-success-disable,
- success-light: $uni-success-light,
- warning: $uni-warning,
- warning-disable: $uni-warning-disable,
- warning-light: $uni-warning-light,
- error: $uni-error,
- error-disable: $uni-error-disable,
- error-light: $uni-error-light,
- info: $uni-info,
- info-disable: $uni-info-disable,
- info-light: $uni-info-light,
- // 涓�ц壊
- main-color: $uni-main-color,
- base-color: $uni-base-color,
- secondary-color: $uni-secondary-color,
- extra-color: $uni-extra-color,
- // 鑳屾櫙鑹�
- bg-color: $uni-bg-color,
- // 杈规棰滆壊
- border-1: $uni-border-1,
- border-2: $uni-border-2,
- border-3: $uni-border-3,
- border-4: $uni-border-4,
- // 榛戣壊
- black:$uni-black,
- // 鐧借壊
- white:$uni-white,
- // 閫忔槑
- transparent:$uni-transparent
-) !default;
-@each $key, $child in $uni-ui-color {
- .uni-#{"" + $key} {
- color: $child;
- }
- .uni-#{"" + $key}-bg {
- background-color: $child;
- }
-}
-.uni-shadow-sm {
- box-shadow: $uni-shadow-sm;
-}
-.uni-shadow-base {
- box-shadow: $uni-shadow-base;
-}
-.uni-shadow-lg {
- box-shadow: $uni-shadow-lg;
-}
-.uni-mask {
- background-color:$uni-mask;
-}
diff --git a/uni_modules/uni-scss/styles/setting/_radius.scss b/uni_modules/uni-scss/styles/setting/_radius.scss
deleted file mode 100644
index 9a0428b..0000000
--- a/uni_modules/uni-scss/styles/setting/_radius.scss
+++ /dev/null
@@ -1,55 +0,0 @@
-@mixin radius($r,$d:null ,$important: false){
- $radius-value:map-get($uni-radius, $r) if($important, !important, null);
- // Key exists within the $uni-radius variable
- @if (map-has-key($uni-radius, $r) and $d){
- @if $d == t {
- border-top-left-radius:$radius-value;
- border-top-right-radius:$radius-value;
- }@else if $d == r {
- border-top-right-radius:$radius-value;
- border-bottom-right-radius:$radius-value;
- }@else if $d == b {
- border-bottom-left-radius:$radius-value;
- border-bottom-right-radius:$radius-value;
- }@else if $d == l {
- border-top-left-radius:$radius-value;
- border-bottom-left-radius:$radius-value;
- }@else if $d == tl {
- border-top-left-radius:$radius-value;
- }@else if $d == tr {
- border-top-right-radius:$radius-value;
- }@else if $d == br {
- border-bottom-right-radius:$radius-value;
- }@else if $d == bl {
- border-bottom-left-radius:$radius-value;
- }
- }@else{
- border-radius:$radius-value;
- }
-}
-
-@each $key, $child in $uni-radius {
- @if($key){
- .uni-radius-#{"" + $key} {
- @include radius($key)
- }
- }@else{
- .uni-radius {
- @include radius($key)
- }
- }
-}
-
-@each $direction in t, r, b, l,tl, tr, br, bl {
- @each $key, $child in $uni-radius {
- @if($key){
- .uni-radius-#{"" + $direction}-#{"" + $key} {
- @include radius($key,$direction,false)
- }
- }@else{
- .uni-radius-#{$direction} {
- @include radius($key,$direction,false)
- }
- }
- }
-}
diff --git a/uni_modules/uni-scss/styles/setting/_space.scss b/uni_modules/uni-scss/styles/setting/_space.scss
deleted file mode 100644
index 3c89528..0000000
--- a/uni_modules/uni-scss/styles/setting/_space.scss
+++ /dev/null
@@ -1,56 +0,0 @@
-
-@mixin fn($space,$direction,$size,$n) {
- @if $n {
- #{$space}-#{$direction}: #{$size*$uni-space-root}px
- } @else {
- #{$space}-#{$direction}: #{-$size*$uni-space-root}px
- }
-}
-@mixin get-styles($direction,$i,$space,$n){
- @if $direction == t {
- @include fn($space, top,$i,$n);
- }
- @if $direction == r {
- @include fn($space, right,$i,$n);
- }
- @if $direction == b {
- @include fn($space, bottom,$i,$n);
- }
- @if $direction == l {
- @include fn($space, left,$i,$n);
- }
- @if $direction == x {
- @include fn($space, left,$i,$n);
- @include fn($space, right,$i,$n);
- }
- @if $direction == y {
- @include fn($space, top,$i,$n);
- @include fn($space, bottom,$i,$n);
- }
- @if $direction == a {
- @if $n {
- #{$space}:#{$i*$uni-space-root}px;
- } @else {
- #{$space}:#{-$i*$uni-space-root}px;
- }
- }
-}
-
-@each $orientation in m,p {
- $space: margin;
- @if $orientation == m {
- $space: margin;
- } @else {
- $space: padding;
- }
- @for $i from 0 through 16 {
- @each $direction in t, r, b, l, x, y, a {
- .uni-#{$orientation}#{$direction}-#{$i} {
- @include get-styles($direction,$i,$space,true);
- }
- .uni-#{$orientation}#{$direction}-n#{$i} {
- @include get-styles($direction,$i,$space,false);
- }
- }
- }
-}
\ No newline at end of file
diff --git a/uni_modules/uni-scss/styles/setting/_styles.scss b/uni_modules/uni-scss/styles/setting/_styles.scss
deleted file mode 100644
index 689afec..0000000
--- a/uni_modules/uni-scss/styles/setting/_styles.scss
+++ /dev/null
@@ -1,167 +0,0 @@
-/* #ifndef APP-NVUE */
-
-$-color-white:#fff;
-$-color-black:#000;
-@mixin base-style($color) {
- color: #fff;
- background-color: $color;
- border-color: mix($-color-black, $color, 8%);
- &:not([hover-class]):active {
- background: mix($-color-black, $color, 10%);
- border-color: mix($-color-black, $color, 20%);
- color: $-color-white;
- outline: none;
- }
-}
-@mixin is-color($color) {
- @include base-style($color);
- &[loading] {
- @include base-style($color);
- &::before {
- margin-right:5px;
- }
- }
- &[disabled] {
- &,
- &[loading],
- &:not([hover-class]):active {
- color: $-color-white;
- border-color: mix(darken($color,10%), $-color-white);
- background-color: mix($color, $-color-white);
- }
- }
-
-}
-@mixin base-plain-style($color) {
- color:$color;
- background-color: mix($-color-white, $color, 90%);
- border-color: mix($-color-white, $color, 70%);
- &:not([hover-class]):active {
- background: mix($-color-white, $color, 80%);
- color: $color;
- outline: none;
- border-color: mix($-color-white, $color, 50%);
- }
-}
-@mixin is-plain($color){
- &[plain] {
- @include base-plain-style($color);
- &[loading] {
- @include base-plain-style($color);
- &::before {
- margin-right:5px;
- }
- }
- &[disabled] {
- &,
- &:active {
- color: mix($-color-white, $color, 40%);
- background-color: mix($-color-white, $color, 90%);
- border-color: mix($-color-white, $color, 80%);
- }
- }
- }
-}
-
-
-.uni-btn {
- margin: 5px;
- color: #393939;
- border:1px solid #ccc;
- font-size: 16px;
- font-weight: 200;
- background-color: #F9F9F9;
- // TODO 鏆傛椂澶勭悊杈规闅愯棌涓�杈圭殑闂
- overflow: visible;
- &::after{
- border: none;
- }
-
- &:not([type]),&[type=default] {
- color: #999;
- &[loading] {
- background: none;
- &::before {
- margin-right:5px;
- }
- }
-
-
-
- &[disabled]{
- color: mix($-color-white, #999, 60%);
- &,
- &[loading],
- &:active {
- color: mix($-color-white, #999, 60%);
- background-color: mix($-color-white,$-color-black , 98%);
- border-color: mix($-color-white, #999, 85%);
- }
- }
-
- &[plain] {
- color: #999;
- background: none;
- border-color: $uni-border-1;
- &:not([hover-class]):active {
- background: none;
- color: mix($-color-white, $-color-black, 80%);
- border-color: mix($-color-white, $-color-black, 90%);
- outline: none;
- }
- &[disabled]{
- &,
- &[loading],
- &:active {
- background: none;
- color: mix($-color-white, #999, 60%);
- border-color: mix($-color-white, #999, 85%);
- }
- }
- }
- }
-
- &:not([hover-class]):active {
- color: mix($-color-white, $-color-black, 50%);
- }
-
- &[size=mini] {
- font-size: 16px;
- font-weight: 200;
- border-radius: 8px;
- }
-
-
-
- &.uni-btn-small {
- font-size: 14px;
- }
- &.uni-btn-mini {
- font-size: 12px;
- }
-
- &.uni-btn-radius {
- border-radius: 999px;
- }
- &[type=primary] {
- @include is-color($uni-primary);
- @include is-plain($uni-primary)
- }
- &[type=success] {
- @include is-color($uni-success);
- @include is-plain($uni-success)
- }
- &[type=error] {
- @include is-color($uni-error);
- @include is-plain($uni-error)
- }
- &[type=warning] {
- @include is-color($uni-warning);
- @include is-plain($uni-warning)
- }
- &[type=info] {
- @include is-color($uni-info);
- @include is-plain($uni-info)
- }
-}
-/* #endif */
diff --git a/uni_modules/uni-scss/styles/setting/_text.scss b/uni_modules/uni-scss/styles/setting/_text.scss
deleted file mode 100644
index a34d08f..0000000
--- a/uni_modules/uni-scss/styles/setting/_text.scss
+++ /dev/null
@@ -1,24 +0,0 @@
-@mixin get-styles($k,$c) {
- @if $k == size or $k == weight{
- font-#{$k}:#{$c}
- }@else{
- #{$k}:#{$c}
- }
-}
-
-@each $key, $child in $uni-headings {
- /* #ifndef APP-NVUE */
- .uni-#{$key} {
- @each $k, $c in $child {
- @include get-styles($k,$c)
- }
- }
- /* #endif */
- /* #ifdef APP-NVUE */
- .container .uni-#{$key} {
- @each $k, $c in $child {
- @include get-styles($k,$c)
- }
- }
- /* #endif */
-}
diff --git a/uni_modules/uni-scss/styles/setting/_variables.scss b/uni_modules/uni-scss/styles/setting/_variables.scss
deleted file mode 100644
index 557d3d7..0000000
--- a/uni_modules/uni-scss/styles/setting/_variables.scss
+++ /dev/null
@@ -1,146 +0,0 @@
-// @use "sass:math";
-@import '../tools/functions.scss';
-// 闂磋窛鍩虹鍊嶆暟
-$uni-space-root: 2 !default;
-// 杈规鍗婂緞榛樿鍊�
-$uni-radius-root:5px !default;
-$uni-radius: () !default;
-// 杈规鍗婂緞鏂偣
-$uni-radius: map-deep-merge(
- (
- 0: 0,
- // TODO 褰撳墠鐗堟湰鏆傛椂涓嶆敮鎸� sm 灞炴��
- // 'sm': math.div($uni-radius-root, 2),
- null: $uni-radius-root,
- 'lg': $uni-radius-root * 2,
- 'xl': $uni-radius-root * 6,
- 'pill': 9999px,
- 'circle': 50%
- ),
- $uni-radius
-);
-// 瀛椾綋瀹舵棌
-$body-font-family: 'Roboto', sans-serif !default;
-// 鏂囨湰
-$heading-font-family: $body-font-family !default;
-$uni-headings: () !default;
-$letterSpacing: -0.01562em;
-$uni-headings: map-deep-merge(
- (
- 'h1': (
- size: 32px,
- weight: 300,
- line-height: 50px,
- // letter-spacing:-0.01562em
- ),
- 'h2': (
- size: 28px,
- weight: 300,
- line-height: 40px,
- // letter-spacing: -0.00833em
- ),
- 'h3': (
- size: 24px,
- weight: 400,
- line-height: 32px,
- // letter-spacing: normal
- ),
- 'h4': (
- size: 20px,
- weight: 400,
- line-height: 30px,
- // letter-spacing: 0.00735em
- ),
- 'h5': (
- size: 16px,
- weight: 400,
- line-height: 24px,
- // letter-spacing: normal
- ),
- 'h6': (
- size: 14px,
- weight: 500,
- line-height: 18px,
- // letter-spacing: 0.0125em
- ),
- 'subtitle': (
- size: 12px,
- weight: 400,
- line-height: 20px,
- // letter-spacing: 0.00937em
- ),
- 'body': (
- font-size: 14px,
- font-weight: 400,
- line-height: 22px,
- // letter-spacing: 0.03125em
- ),
- 'caption': (
- 'size': 12px,
- 'weight': 400,
- 'line-height': 20px,
- // 'letter-spacing': 0.03333em,
- // 'text-transform': false
- )
- ),
- $uni-headings
-);
-
-
-
-// 涓昏壊
-$uni-primary: #2979ff !default;
-$uni-primary-disable:lighten($uni-primary,20%) !default;
-$uni-primary-light: lighten($uni-primary,25%) !default;
-
-// 杈呭姪鑹�
-// 闄や簡涓昏壊澶栫殑鍦烘櫙鑹诧紝闇�瑕佸湪涓嶅悓鐨勫満鏅腑浣跨敤锛堜緥濡傚嵄闄╄壊琛ㄧず鍗遍櫓鐨勬搷浣滐級銆�
-$uni-success: #18bc37 !default;
-$uni-success-disable:lighten($uni-success,20%) !default;
-$uni-success-light: lighten($uni-success,25%) !default;
-
-$uni-warning: #f3a73f !default;
-$uni-warning-disable:lighten($uni-warning,20%) !default;
-$uni-warning-light: lighten($uni-warning,25%) !default;
-
-$uni-error: #e43d33 !default;
-$uni-error-disable:lighten($uni-error,20%) !default;
-$uni-error-light: lighten($uni-error,25%) !default;
-
-$uni-info: #8f939c !default;
-$uni-info-disable:lighten($uni-info,20%) !default;
-$uni-info-light: lighten($uni-info,25%) !default;
-
-// 涓�ц壊
-// 涓�ц壊鐢ㄤ簬鏂囨湰銆佽儗鏅拰杈规棰滆壊銆傞�氳繃杩愮敤涓嶅悓鐨勪腑鎬ц壊锛屾潵琛ㄧ幇灞傛缁撴瀯銆�
-$uni-main-color: #3a3a3a !default; // 涓昏鏂囧瓧
-$uni-base-color: #6a6a6a !default; // 甯歌鏂囧瓧
-$uni-secondary-color: #909399 !default; // 娆¤鏂囧瓧
-$uni-extra-color: #c7c7c7 !default; // 杈呭姪璇存槑
-
-// 杈规棰滆壊
-$uni-border-1: #F0F0F0 !default;
-$uni-border-2: #EDEDED !default;
-$uni-border-3: #DCDCDC !default;
-$uni-border-4: #B9B9B9 !default;
-
-// 甯歌鑹�
-$uni-black: #000000 !default;
-$uni-white: #ffffff !default;
-$uni-transparent: rgba($color: #000000, $alpha: 0) !default;
-
-// 鑳屾櫙鑹�
-$uni-bg-color: #f7f7f7 !default;
-
-/* 姘村钩闂磋窛 */
-$uni-spacing-sm: 8px !default;
-$uni-spacing-base: 15px !default;
-$uni-spacing-lg: 30px !default;
-
-// 闃村奖
-$uni-shadow-sm:0 0 5px rgba($color: #d8d8d8, $alpha: 0.5) !default;
-$uni-shadow-base:0 1px 8px 1px rgba($color: #a5a5a5, $alpha: 0.2) !default;
-$uni-shadow-lg:0px 1px 10px 2px rgba($color: #a5a4a4, $alpha: 0.5) !default;
-
-// 钂欑増
-$uni-mask: rgba($color: #000000, $alpha: 0.4) !default;
diff --git a/uni_modules/uni-scss/styles/tools/functions.scss b/uni_modules/uni-scss/styles/tools/functions.scss
deleted file mode 100644
index ac6f63e..0000000
--- a/uni_modules/uni-scss/styles/tools/functions.scss
+++ /dev/null
@@ -1,19 +0,0 @@
-// 鍚堝苟 map
-@function map-deep-merge($parent-map, $child-map){
- $result: $parent-map;
- @each $key, $child in $child-map {
- $parent-has-key: map-has-key($result, $key);
- $parent-value: map-get($result, $key);
- $parent-type: type-of($parent-value);
- $child-type: type-of($child);
- $parent-is-map: $parent-type == map;
- $child-is-map: $child-type == map;
-
- @if (not $parent-has-key) or ($parent-type != $child-type) or (not ($parent-is-map and $child-is-map)){
- $result: map-merge($result, ( $key: $child ));
- }@else {
- $result: map-merge($result, ( $key: map-deep-merge($parent-value, $child) ));
- }
- }
- @return $result;
-};
diff --git a/uni_modules/uni-scss/theme.scss b/uni_modules/uni-scss/theme.scss
deleted file mode 100644
index 80ee62f..0000000
--- a/uni_modules/uni-scss/theme.scss
+++ /dev/null
@@ -1,31 +0,0 @@
-// 闂磋窛鍩虹鍊嶆暟
-$uni-space-root: 2;
-// 杈规鍗婂緞榛樿鍊�
-$uni-radius-root:5px;
-// 涓昏壊
-$uni-primary: #2979ff;
-// 杈呭姪鑹�
-$uni-success: #4cd964;
-// 璀﹀憡鑹�
-$uni-warning: #f0ad4e;
-// 閿欒鑹�
-$uni-error: #dd524d;
-// 鎻忚堪鑹�
-$uni-info: #909399;
-// 涓�ц壊
-$uni-main-color: #303133;
-$uni-base-color: #606266;
-$uni-secondary-color: #909399;
-$uni-extra-color: #C0C4CC;
-// 鑳屾櫙鑹�
-$uni-bg-color: #f5f5f5;
-// 杈规棰滆壊
-$uni-border-1: #DCDFE6;
-$uni-border-2: #E4E7ED;
-$uni-border-3: #EBEEF5;
-$uni-border-4: #F2F6FC;
-
-// 甯歌鑹�
-$uni-black: #000000;
-$uni-white: #ffffff;
-$uni-transparent: rgba($color: #000000, $alpha: 0);
diff --git a/uni_modules/uni-scss/variables.scss b/uni_modules/uni-scss/variables.scss
deleted file mode 100644
index 1c062d4..0000000
--- a/uni_modules/uni-scss/variables.scss
+++ /dev/null
@@ -1,62 +0,0 @@
-@import './styles/setting/_variables.scss';
-// 闂磋窛鍩虹鍊嶆暟
-$uni-space-root: 2;
-// 杈规鍗婂緞榛樿鍊�
-$uni-radius-root:5px;
-
-// 涓昏壊
-$uni-primary: #2979ff;
-$uni-primary-disable:mix(#fff,$uni-primary,50%);
-$uni-primary-light: mix(#fff,$uni-primary,80%);
-
-// 杈呭姪鑹�
-// 闄や簡涓昏壊澶栫殑鍦烘櫙鑹诧紝闇�瑕佸湪涓嶅悓鐨勫満鏅腑浣跨敤锛堜緥濡傚嵄闄╄壊琛ㄧず鍗遍櫓鐨勬搷浣滐級銆�
-$uni-success: #18bc37;
-$uni-success-disable:mix(#fff,$uni-success,50%);
-$uni-success-light: mix(#fff,$uni-success,80%);
-
-$uni-warning: #f3a73f;
-$uni-warning-disable:mix(#fff,$uni-warning,50%);
-$uni-warning-light: mix(#fff,$uni-warning,80%);
-
-$uni-error: #e43d33;
-$uni-error-disable:mix(#fff,$uni-error,50%);
-$uni-error-light: mix(#fff,$uni-error,80%);
-
-$uni-info: #8f939c;
-$uni-info-disable:mix(#fff,$uni-info,50%);
-$uni-info-light: mix(#fff,$uni-info,80%);
-
-// 涓�ц壊
-// 涓�ц壊鐢ㄤ簬鏂囨湰銆佽儗鏅拰杈规棰滆壊銆傞�氳繃杩愮敤涓嶅悓鐨勪腑鎬ц壊锛屾潵琛ㄧ幇灞傛缁撴瀯銆�
-$uni-main-color: #3a3a3a; // 涓昏鏂囧瓧
-$uni-base-color: #6a6a6a; // 甯歌鏂囧瓧
-$uni-secondary-color: #909399; // 娆¤鏂囧瓧
-$uni-extra-color: #c7c7c7; // 杈呭姪璇存槑
-
-// 杈规棰滆壊
-$uni-border-1: #F0F0F0;
-$uni-border-2: #EDEDED;
-$uni-border-3: #DCDCDC;
-$uni-border-4: #B9B9B9;
-
-// 甯歌鑹�
-$uni-black: #000000;
-$uni-white: #ffffff;
-$uni-transparent: rgba($color: #000000, $alpha: 0);
-
-// 鑳屾櫙鑹�
-$uni-bg-color: #f7f7f7;
-
-/* 姘村钩闂磋窛 */
-$uni-spacing-sm: 8px;
-$uni-spacing-base: 15px;
-$uni-spacing-lg: 30px;
-
-// 闃村奖
-$uni-shadow-sm:0 0 5px rgba($color: #d8d8d8, $alpha: 0.5);
-$uni-shadow-base:0 1px 8px 1px rgba($color: #a5a5a5, $alpha: 0.2);
-$uni-shadow-lg:0px 1px 10px 2px rgba($color: #a5a4a4, $alpha: 0.5);
-
-// 钂欑増
-$uni-mask: rgba($color: #000000, $alpha: 0.4);
diff --git a/uni_modules/uni-search-bar/changelog.md b/uni_modules/uni-search-bar/changelog.md
deleted file mode 100644
index 0cd8972..0000000
--- a/uni_modules/uni-search-bar/changelog.md
+++ /dev/null
@@ -1,27 +0,0 @@
-## 1.2.0锛�2021-11-19锛�
-- 浼樺寲 缁勪欢UI锛屽苟鎻愪緵璁捐璧勬簮锛岃瑙�:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource)
-- 鏂囨。杩佺Щ锛岃瑙�:[https://uniapp.dcloud.io/component/uniui/uni-search-bar](https://uniapp.dcloud.io/component/uniui/uni-search-bar)
-## 1.1.2锛�2021-08-30锛�
-- 淇 value 灞炴�т笌 modelValue 灞炴�т笉鍏煎鐨凚ug
-## 1.1.1锛�2021-08-24锛�
-- 鏂板 鏀寔鍥介檯鍖�
-## 1.1.0锛�2021-07-30锛�
-- 缁勪欢鍏煎 vue3锛屽浣曞垱寤簐ue3椤圭洰锛岃瑙� [uni-app 椤圭洰鏀寔 vue3 浠嬬粛](https://ask.dcloud.net.cn/article/37834)
-## 1.0.9锛�2021-05-12锛�
-- 鏂板 椤圭洰绀轰緥鍦板潃
-## 1.0.8锛�2021-04-21锛�
-- 浼樺寲 娣诲姞渚濊禆 uni-icons, 瀵煎叆鍚庤嚜鍔ㄤ笅杞戒緷璧�
-## 1.0.7锛�2021-04-15锛�
-- uni-ui 鏂板 uni-search-bar 鐨� focus 浜嬩欢
-
-## 1.0.6锛�2021-02-05锛�
-- 浼樺寲 缁勪欢寮曠敤鍏崇郴锛岄�氳繃uni_modules寮曠敤缁勪欢
-
-## 1.0.5锛�2021-02-05锛�
-- 璋冩暣涓簎ni_modules鐩綍瑙勮寖
-- 鏂板 鏀寔鍙屽悜缁戝畾
-- 鏇存敼 input 浜嬩欢鐨勮繑鍥炲�硷紝e={value:Number} --> e=value
-- 鏂板 鏀寔鍥炬爣鎻掓Ы
-- 鏂板 鏀寔 clear銆乥lur 浜嬩欢
-- 鏂板 鏀寔 focus 灞炴��
-- 鍘绘帀缁勪欢鑳屾櫙鑹�
diff --git a/uni_modules/uni-search-bar/components/uni-search-bar/i18n/en.json b/uni_modules/uni-search-bar/components/uni-search-bar/i18n/en.json
deleted file mode 100644
index dd083a5..0000000
--- a/uni_modules/uni-search-bar/components/uni-search-bar/i18n/en.json
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "uni-search-bar.cancel": "cancel",
- "uni-search-bar.placeholder": "Search enter content"
-}
\ No newline at end of file
diff --git a/uni_modules/uni-search-bar/components/uni-search-bar/i18n/index.js b/uni_modules/uni-search-bar/components/uni-search-bar/i18n/index.js
deleted file mode 100644
index de7509c..0000000
--- a/uni_modules/uni-search-bar/components/uni-search-bar/i18n/index.js
+++ /dev/null
@@ -1,8 +0,0 @@
-import en from './en.json'
-import zhHans from './zh-Hans.json'
-import zhHant from './zh-Hant.json'
-export default {
- en,
- 'zh-Hans': zhHans,
- 'zh-Hant': zhHant
-}
diff --git a/uni_modules/uni-search-bar/components/uni-search-bar/i18n/zh-Hans.json b/uni_modules/uni-search-bar/components/uni-search-bar/i18n/zh-Hans.json
deleted file mode 100644
index d4e5c12..0000000
--- a/uni_modules/uni-search-bar/components/uni-search-bar/i18n/zh-Hans.json
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "uni-search-bar.cancel": "cancel",
- "uni-search-bar.placeholder": "璇疯緭鍏ユ悳绱㈠唴瀹�"
-}
diff --git a/uni_modules/uni-search-bar/components/uni-search-bar/i18n/zh-Hant.json b/uni_modules/uni-search-bar/components/uni-search-bar/i18n/zh-Hant.json
deleted file mode 100644
index 318b6ef..0000000
--- a/uni_modules/uni-search-bar/components/uni-search-bar/i18n/zh-Hant.json
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "uni-search-bar.cancel": "cancel",
- "uni-search-bar.placeholder": "璜嬭几鍏ユ悳绱㈠収瀹�"
-}
diff --git a/uni_modules/uni-search-bar/components/uni-search-bar/uni-search-bar.vue b/uni_modules/uni-search-bar/components/uni-search-bar/uni-search-bar.vue
deleted file mode 100644
index 4b98b08..0000000
--- a/uni_modules/uni-search-bar/components/uni-search-bar/uni-search-bar.vue
+++ /dev/null
@@ -1,287 +0,0 @@
-s<template>
- <view class="uni-searchbar">
- <view :style="{borderRadius:radius+'px',backgroundColor: bgColor}" class="uni-searchbar__box" @click="searchClick">
- <view class="uni-searchbar__box-icon-search">
- <slot name="searchIcon">
- <uni-icons color="#c0c4cc" size="18" type="search" />
- </slot>
- </view>
- <input v-if="show || searchVal" :focus="showSync" :placeholder="placeholderText" :maxlength="maxlength" class="uni-searchbar__box-search-input"
- confirm-type="search" type="text" v-model="searchVal" @confirm="confirm" @blur="blur" @focus="emitFocus" />
- <text v-else class="uni-searchbar__text-placeholder">{{ placeholder }}</text>
- <view v-if="show && (clearButton==='always'||clearButton==='auto'&&searchVal!=='')" class="uni-searchbar__box-icon-clear"
- @click="clear">
- <slot name="clearIcon">
- <uni-icons color="#c0c4cc" size="20" type="clear" />
- </slot>
- </view>
- </view>
- <text @click="cancel" class="uni-searchbar__cancel" v-if="cancelButton ==='always' || show && cancelButton ==='auto'">{{cancelTextI18n}}</text>
- </view>
-</template>
-
-<script>
- import {
- initVueI18n
- } from '@dcloudio/uni-i18n'
- import messages from './i18n/index.js'
- const { t } = initVueI18n(messages)
-
- /**
- * SearchBar 鎼滅储鏍�
- * @description 鎼滅储鏍忕粍浠讹紝閫氬父鐢ㄤ簬鎼滅储鍟嗗搧銆佹枃绔犵瓑
- * @tutorial https://ext.dcloud.net.cn/plugin?id=866
- * @property {Number} radius 鎼滅储鏍忓渾瑙�
- * @property {Number} maxlength 杈撳叆鏈�澶ч暱搴�
- * @property {String} placeholder 鎼滅储鏍廝laceholder
- * @property {String} clearButton = [always|auto|none] 鏄惁鏄剧ず娓呴櫎鎸夐挳
- * @value always 涓�鐩存樉绀�
- * @value auto 杈撳叆妗嗕笉涓虹┖鏃舵樉绀�
- * @value none 涓�鐩翠笉鏄剧ず
- * @property {String} cancelButton = [always|auto|none] 鏄惁鏄剧ず鍙栨秷鎸夐挳
- * @value always 涓�鐩存樉绀�
- * @value auto 杈撳叆妗嗕笉涓虹┖鏃舵樉绀�
- * @value none 涓�鐩翠笉鏄剧ず
- * @property {String} cancelText 鍙栨秷鎸夐挳鐨勬枃瀛�
- * @property {String} bgColor 杈撳叆妗嗚儗鏅鑹�
- * @property {Boolean} focus 鏄惁鑷姩鑱氱劍
- * @event {Function} confirm uniSearchBar 鐨勮緭鍏ユ confirm 浜嬩欢锛岃繑鍥炲弬鏁颁负uniSearchBar鐨剉alue锛宔={value:Number}
- * @event {Function} input uniSearchBar 鐨� value 鏀瑰彉鏃惰Е鍙戜簨浠讹紝杩斿洖鍙傛暟涓簎niSearchBar鐨剉alue锛宔=value
- * @event {Function} cancel 鐐瑰嚮鍙栨秷鎸夐挳鏃惰Е鍙戜簨浠讹紝杩斿洖鍙傛暟涓簎niSearchBar鐨剉alue锛宔={value:Number}
- * @event {Function} clear 鐐瑰嚮娓呴櫎鎸夐挳鏃惰Е鍙戜簨浠讹紝杩斿洖鍙傛暟涓簎niSearchBar鐨剉alue锛宔={value:Number}
- * @event {Function} blur input澶卞幓鐒︾偣鏃惰Е鍙戜簨浠讹紝杩斿洖鍙傛暟涓簎niSearchBar鐨剉alue锛宔={value:Number}
- */
-
- export default {
- name: "UniSearchBar",
- emits:['input','update:modelValue','clear','cancel','confirm','blur','focus'],
- props: {
- placeholder: {
- type: String,
- default: ""
- },
- radius: {
- type: [Number, String],
- default: 5
- },
- clearButton: {
- type: String,
- default: "auto"
- },
- cancelButton: {
- type: String,
- default: "auto"
- },
- cancelText: {
- type: String,
- default: '鍙栨秷'
- },
- bgColor: {
- type: String,
- default: "#F8F8F8"
- },
- maxlength: {
- type: [Number, String],
- default: 100
- },
- value: {
- type: [Number, String],
- default: ""
- },
- modelValue: {
- type: [Number, String],
- default: ""
- },
- focus: {
- type: Boolean,
- default: false
- }
- },
- data() {
- return {
- show: false,
- showSync: false,
- searchVal: ''
- }
- },
- computed:{
- cancelTextI18n() {
- return this.cancelText || t("uni-search-bar.cancel")
- },
- placeholderText() {
- return this.placeholder || t("uni-search-bar.placeholder")
- }
- },
- watch: {
- // #ifndef VUE3
- value: {
- immediate: true,
- handler(newVal) {
- this.searchVal = newVal
- if (newVal) {
- this.show = true
- }
- }
- },
- // #endif
- // #ifdef VUE3
- modelValue: {
- immediate: true,
- handler(newVal) {
- this.searchVal = newVal
- if (newVal) {
- this.show = true
- }
- }
- },
- // #endif
- focus: {
- immediate: true,
- handler(newVal) {
- if (newVal) {
- this.show = true;
- this.$nextTick(() => {
- this.showSync = true
- })
- }
- }
- },
- searchVal(newVal, oldVal) {
- // #ifndef VUE3
- this.$emit("input", newVal)
- // #endif
- // #ifdef VUE3
- this.$emit("update:modelValue", newVal)
- // #endif
- }
- },
- methods: {
- searchClick() {
- if (this.show) {
- return
- }
- this.show = true;
- this.$nextTick(() => {
- this.showSync = true
- })
- },
- clear() {
- this.$emit("clear", {
- value: this.searchVal
- })
- this.searchVal = ""
- },
- cancel() {
- this.$emit("cancel", {
- value: this.searchVal
- });
- this.searchVal = ""
- this.show = false
- this.showSync = false
- // #ifndef APP-PLUS
- uni.hideKeyboard()
- // #endif
- // #ifdef APP-PLUS
- plus.key.hideSoftKeybord()
- // #endif
- },
- confirm() {
- // #ifndef APP-PLUS
- uni.hideKeyboard();
- // #endif
- // #ifdef APP-PLUS
- plus.key.hideSoftKeybord()
- // #endif
- this.$emit("confirm", {
- value: this.searchVal
- })
- },
- blur() {
- // #ifndef APP-PLUS
- uni.hideKeyboard();
- // #endif
- // #ifdef APP-PLUS
- plus.key.hideSoftKeybord()
- // #endif
- this.$emit("blur", {
- value: this.searchVal
- })
- },
- emitFocus(e) {
- this.$emit("focus", e.detail)
- }
- }
- };
-</script>
-
-<style lang="scss" scoped>
- $uni-searchbar-height: 36px;
-
- .uni-searchbar {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex-direction: row;
- position: relative;
- padding: 10px;
- // background-color: #fff;
- }
-
- .uni-searchbar__box {
- /* #ifndef APP-NVUE */
- display: flex;
- box-sizing: border-box;
- /* #endif */
- overflow: hidden;
- position: relative;
- flex: 1;
- justify-content: center;
- flex-direction: row;
- align-items: center;
- height: $uni-searchbar-height;
- padding: 5px 8px 5px 0px;
- }
-
- .uni-searchbar__box-icon-search {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex-direction: row;
- // width: 32px;
- padding: 0 8px;
- justify-content: center;
- align-items: center;
- color: #B3B3B3;
- }
-
- .uni-searchbar__box-search-input {
- flex: 1;
- font-size: 14px;
- color: #333;
- }
-
- .uni-searchbar__box-icon-clear {
- align-items: center;
- line-height: 24px;
- padding-left: 8px;
- /* #ifdef H5 */
- cursor: pointer;
- /* #endif */
- }
-
- .uni-searchbar__text-placeholder {
- font-size: 14px;
- color: #B3B3B3;
- margin-left: 5px;
- }
-
- .uni-searchbar__cancel {
- padding-left: 10px;
- line-height: $uni-searchbar-height;
- font-size: 14px;
- color: #333333;
- /* #ifdef H5 */
- cursor: pointer;
- /* #endif */
- }
-</style>
diff --git a/uni_modules/uni-search-bar/package.json b/uni_modules/uni-search-bar/package.json
deleted file mode 100644
index d76d8b3..0000000
--- a/uni_modules/uni-search-bar/package.json
+++ /dev/null
@@ -1,89 +0,0 @@
-{
- "id": "uni-search-bar",
- "displayName": "uni-search-bar 鎼滅储鏍�",
- "version": "1.2.0",
- "description": "鎼滅储鏍忕粍浠讹紝閫氬父鐢ㄤ簬鎼滅储鍟嗗搧銆佹枃绔犵瓑",
- "keywords": [
- "uni-ui",
- "uniui",
- "鎼滅储妗�",
- "鎼滅储鏍�"
-],
- "repository": "https://github.com/dcloudio/uni-ui",
- "engines": {
- "HBuilderX": ""
- },
- "directories": {
- "example": "../../temps/example_temps"
- },
- "dcloudext": {
- "category": [
- "鍓嶇缁勪欢",
- "閫氱敤缁勪欢"
- ],
- "sale": {
- "regular": {
- "price": "0.00"
- },
- "sourcecode": {
- "price": "0.00"
- }
- },
- "contact": {
- "qq": ""
- },
- "declaration": {
- "ads": "鏃�",
- "data": "鏃�",
- "permissions": "鏃�"
- },
- "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui"
- },
- "uni_modules": {
- "dependencies": [
- "uni-scss",
- "uni-icons"
- ],
- "encrypt": [],
- "platforms": {
- "cloud": {
- "tcb": "y",
- "aliyun": "y"
- },
- "client": {
- "App": {
- "app-vue": "y",
- "app-nvue": "y"
- },
- "H5-mobile": {
- "Safari": "y",
- "Android Browser": "y",
- "寰俊娴忚鍣�(Android)": "y",
- "QQ娴忚鍣�(Android)": "y"
- },
- "H5-pc": {
- "Chrome": "y",
- "IE": "y",
- "Edge": "y",
- "Firefox": "y",
- "Safari": "y"
- },
- "灏忕▼搴�": {
- "寰俊": "y",
- "闃块噷": "y",
- "鐧惧害": "y",
- "瀛楄妭璺冲姩": "y",
- "QQ": "y"
- },
- "蹇簲鐢�": {
- "鍗庝负": "u",
- "鑱旂洘": "u"
- },
- "Vue": {
- "vue2": "y",
- "vue3": "y"
- }
- }
- }
- }
-}
\ No newline at end of file
diff --git a/uni_modules/uni-search-bar/readme.md b/uni_modules/uni-search-bar/readme.md
deleted file mode 100644
index c049a2b..0000000
--- a/uni_modules/uni-search-bar/readme.md
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-## SearchBar 鎼滅储鏍�
-
-> **缁勪欢鍚嶏細uni-search-bar**
-> 浠g爜鍧楋細 `uSearchBar`
-
-
-璇勫垎缁勪欢
-
-### [鏌ョ湅鏂囨。](https://uniapp.dcloud.io/component/uniui/uni-search-bar)
-#### 濡備娇鐢ㄨ繃绋嬩腑鏈変换浣曢棶棰橈紝鎴栬�呮偍瀵箄ni-ui鏈変竴浜涘ソ鐨勫缓璁紝娆㈣繋鍔犲叆 uni-ui 浜ゆ祦缇わ細871950839
-
-
diff --git a/uni_modules/uni-segmented-control/changelog.md b/uni_modules/uni-segmented-control/changelog.md
deleted file mode 100644
index a44385d..0000000
--- a/uni_modules/uni-segmented-control/changelog.md
+++ /dev/null
@@ -1,9 +0,0 @@
-## 1.2.0锛�2021-11-19锛�
-- 浼樺寲 缁勪欢UI锛屽苟鎻愪緵璁捐璧勬簮锛岃瑙�:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource)
-- 鏂囨。杩佺Щ锛岃瑙�:[https://uniapp.dcloud.io/component/uniui/uni-segmented-control](https://uniapp.dcloud.io/component/uniui/uni-segmented-control)
-## 1.1.0锛�2021-07-30锛�
-- 缁勪欢鍏煎 vue3锛屽浣曞垱寤簐ue3椤圭洰锛岃瑙� [uni-app 椤圭洰鏀寔 vue3 浠嬬粛](https://ask.dcloud.net.cn/article/37834)
-## 1.0.5锛�2021-05-12锛�
-- 鏂板 椤圭洰绀轰緥鍦板潃
-## 1.0.4锛�2021-02-05锛�
-- 璋冩暣涓簎ni_modules鐩綍瑙勮寖
diff --git a/uni_modules/uni-segmented-control/components/uni-segmented-control/uni-segmented-control.vue b/uni_modules/uni-segmented-control/components/uni-segmented-control/uni-segmented-control.vue
deleted file mode 100644
index 044a495..0000000
--- a/uni_modules/uni-segmented-control/components/uni-segmented-control/uni-segmented-control.vue
+++ /dev/null
@@ -1,145 +0,0 @@
-<template>
- <view :class="[styleType === 'text'?'segmented-control--text' : 'segmented-control--button' ]"
- :style="{ borderColor: styleType === 'text' ? '' : activeColor }" class="segmented-control">
- <view v-for="(item, index) in values" :class="[ styleType === 'text' ? '': 'segmented-control__item--button',
- index === currentIndex&&styleType === 'button' ? 'segmented-control__item--button--active': '',
- index === 0&&styleType === 'button' ? 'segmented-control__item--button--first': '',
- index === values.length - 1&&styleType === 'button' ? 'segmented-control__item--button--last': '' ]" :key="index"
- :style="{ backgroundColor: index === currentIndex && styleType === 'button' ? activeColor : '',borderColor: index === currentIndex&&styleType === 'text'||styleType === 'button'?activeColor:'transparent' }"
- class="segmented-control__item" @click="_onClick(index)">
- <view>
- <text :style="{color:
- index === currentIndex
- ? styleType === 'text'
- ? activeColor
- : '#fff'
- : styleType === 'text'
- ? '#000'
- : activeColor}" class="segmented-control__text" :class="styleType === 'text' && index === currentIndex ? 'segmented-control__item--text': ''">{{ item }}</text>
- </view>
-
- </view>
- </view>
-</template>
-
-<script>
- /**
- * SegmentedControl 鍒嗘鍣�
- * @description 鐢ㄤ綔涓嶅悓瑙嗗浘鐨勬樉绀�
- * @tutorial https://ext.dcloud.net.cn/plugin?id=54
- * @property {Number} current 褰撳墠閫変腑鐨則ab绱㈠紩鍊硷紝浠�0璁℃暟
- * @property {String} styleType = [button|text] 鍒嗘鍣ㄦ牱寮忕被鍨�
- * @value button 鎸夐挳绫诲瀷
- * @value text 鏂囧瓧绫诲瀷
- * @property {String} activeColor 閫変腑鐨勬爣绛捐儗鏅壊涓庤竟妗嗛鑹�
- * @property {Array} values 閫夐」鏁扮粍
- * @event {Function} clickItem 缁勪欢瑙﹀彂鐐瑰嚮浜嬩欢鏃惰Е鍙戯紝e={currentIndex}
- */
-
- export default {
- name: 'UniSegmentedControl',
- emits: ['clickItem'],
- props: {
- current: {
- type: Number,
- default: 0
- },
- values: {
- type: Array,
- default () {
- return []
- }
- },
- activeColor: {
- type: String,
- default: '#2979FF'
- },
- styleType: {
- type: String,
- default: 'button'
- }
- },
- data() {
- return {
- currentIndex: 0
- }
- },
- watch: {
- current(val) {
- if (val !== this.currentIndex) {
- this.currentIndex = val
- }
- }
- },
- created() {
- this.currentIndex = this.current
- },
- methods: {
- _onClick(index) {
- if (this.currentIndex !== index) {
- this.currentIndex = index
- this.$emit('clickItem', {
- currentIndex: index
- })
- }
- }
- }
- }
-</script>
-
-<style lang="scss" scoped>
- .segmented-control {
- /* #ifndef APP-NVUE */
- display: flex;
- box-sizing: border-box;
- /* #endif */
- flex-direction: row;
- height: 36px;
- overflow: hidden;
- /* #ifdef H5 */
- cursor: pointer;
- /* #endif */
- }
-
- .segmented-control__item {
- /* #ifndef APP-NVUE */
- display: inline-flex;
- box-sizing: border-box;
- /* #endif */
- position: relative;
- flex: 1;
- justify-content: center;
- align-items: center;
- }
-
- .segmented-control__item--button {
- border-style: solid;
- border-top-width: 1px;
- border-bottom-width: 1px;
- border-right-width: 1px;
- border-left-width: 0;
- }
-
- .segmented-control__item--button--first {
- border-left-width: 1px;
- border-top-left-radius: 5px;
- border-bottom-left-radius: 5px;
- }
-
- .segmented-control__item--button--last {
- border-top-right-radius: 5px;
- border-bottom-right-radius: 5px;
- }
-
- .segmented-control__item--text {
- border-bottom-style: solid;
- border-bottom-width: 2px;
- padding: 6px 0;
- }
-
- .segmented-control__text {
- font-size: 14px;
- line-height: 20px;
- text-align: center;
- }
-</style>
diff --git a/uni_modules/uni-segmented-control/package.json b/uni_modules/uni-segmented-control/package.json
deleted file mode 100644
index 6cae41d..0000000
--- a/uni_modules/uni-segmented-control/package.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "id": "uni-segmented-control",
- "displayName": "uni-segmented-control 鍒嗘鍣�",
- "version": "1.2.0",
- "description": "鍒嗘鍣ㄧ敱鑷冲皯 2 涓垎娈垫帶浠剁粍鎴愶紝鐢ㄤ綔涓嶅悓瑙嗗浘鐨勬樉绀�",
- "keywords": [
- "uni-ui",
- "uniui",
- "鍒嗘鍣�",
- "segement",
- "椤堕儴閫夋嫨"
-],
- "repository": "https://github.com/dcloudio/uni-ui",
- "engines": {
- "HBuilderX": ""
- },
- "directories": {
- "example": "../../temps/example_temps"
- },
- "dcloudext": {
- "category": [
- "鍓嶇缁勪欢",
- "閫氱敤缁勪欢"
- ],
- "sale": {
- "regular": {
- "price": "0.00"
- },
- "sourcecode": {
- "price": "0.00"
- }
- },
- "contact": {
- "qq": ""
- },
- "declaration": {
- "ads": "鏃�",
- "data": "鏃�",
- "permissions": "鏃�"
- },
- "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui"
- },
- "uni_modules": {
- "dependencies": ["uni-scss"],
- "encrypt": [],
- "platforms": {
- "cloud": {
- "tcb": "y",
- "aliyun": "y"
- },
- "client": {
- "App": {
- "app-vue": "y",
- "app-nvue": "y"
- },
- "H5-mobile": {
- "Safari": "y",
- "Android Browser": "y",
- "寰俊娴忚鍣�(Android)": "y",
- "QQ娴忚鍣�(Android)": "y"
- },
- "H5-pc": {
- "Chrome": "y",
- "IE": "y",
- "Edge": "y",
- "Firefox": "y",
- "Safari": "y"
- },
- "灏忕▼搴�": {
- "寰俊": "y",
- "闃块噷": "y",
- "鐧惧害": "y",
- "瀛楄妭璺冲姩": "y",
- "QQ": "y"
- },
- "蹇簲鐢�": {
- "鍗庝负": "u",
- "鑱旂洘": "u"
- },
- "Vue": {
- "vue2": "y",
- "vue3": "y"
- }
- }
- }
- }
-}
\ No newline at end of file
diff --git a/uni_modules/uni-segmented-control/readme.md b/uni_modules/uni-segmented-control/readme.md
deleted file mode 100644
index 3527b03..0000000
--- a/uni_modules/uni-segmented-control/readme.md
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-## SegmentedControl 鍒嗘鍣�
-> **缁勪欢鍚嶏細uni-segmented-control**
-> 浠g爜鍧楋細 `uSegmentedControl`
-
-
-鐢ㄤ綔涓嶅悓瑙嗗浘鐨勬樉绀�
-
-### [鏌ョ湅鏂囨。](https://uniapp.dcloud.io/component/uniui/uni-segmented-control)
-#### 濡備娇鐢ㄨ繃绋嬩腑鏈変换浣曢棶棰橈紝鎴栬�呮偍瀵箄ni-ui鏈変竴浜涘ソ鐨勫缓璁紝娆㈣繋鍔犲叆 uni-ui 浜ゆ祦缇わ細871950839
-
-
diff --git a/uni_modules/uni-steps/changelog.md b/uni_modules/uni-steps/changelog.md
deleted file mode 100644
index cb9d367..0000000
--- a/uni_modules/uni-steps/changelog.md
+++ /dev/null
@@ -1,16 +0,0 @@
-## 1.1.1锛�2021-11-22锛�
-- 淇 vue3涓煇浜泂css鍙橀噺鏃犳硶鎵惧埌鐨勯棶棰�
-## 1.1.0锛�2021-11-19锛�
-- 浼樺寲 缁勪欢UI锛屽苟鎻愪緵璁捐璧勬簮锛岃瑙�:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource)
-- 鏂囨。杩佺Щ锛岃瑙�:[https://uniapp.dcloud.io/component/uniui/uni-steps](https://uniapp.dcloud.io/component/uniui/uni-steps)
-## 1.0.8锛�2021-05-12锛�
-- 鏂板 椤圭洰绀轰緥鍦板潃
-## 1.0.7锛�2021-05-06锛�
-- 淇 uni-steps 妯悜甯冨眬鏃讹紝澶氳鏂囧瓧楂樺害涓嶅悎鐞嗙殑 bug
-## 1.0.6锛�2021-04-21锛�
-- 浼樺寲 娣诲姞渚濊禆 uni-icons, 瀵煎叆鍚庤嚜鍔ㄤ笅杞戒緷璧�
-## 1.0.5锛�2021-02-05锛�
-- 浼樺寲 缁勪欢寮曠敤鍏崇郴锛岄�氳繃uni_modules寮曠敤缁勪欢
-
-## 1.0.4锛�2021-02-05锛�
-- 璋冩暣涓簎ni_modules鐩綍瑙勮寖
diff --git a/uni_modules/uni-steps/components/uni-steps/uni-steps.vue b/uni_modules/uni-steps/components/uni-steps/uni-steps.vue
deleted file mode 100644
index a6c8f28..0000000
--- a/uni_modules/uni-steps/components/uni-steps/uni-steps.vue
+++ /dev/null
@@ -1,269 +0,0 @@
-<template>
- <view class="uni-steps">
- <view :class="[direction==='column'?'uni-steps__column':'uni-steps__row']">
- <view :class="[direction==='column'?'uni-steps__column-text-container':'uni-steps__row-text-container']">
- <view v-for="(item,index) in options" :key="index"
- :class="[direction==='column'?'uni-steps__column-text':'uni-steps__row-text']">
- <text :style="{color:index === active?activeColor:deactiveColor}"
- :class="[direction==='column'?'uni-steps__column-title':'uni-steps__row-title']">{{item.title}}</text>
- <text :style="{color: deactiveColor}"
- :class="[direction==='column'?'uni-steps__column-desc':'uni-steps__row-desc']">{{item.desc}}</text>
- </view>
- </view>
- <view :class="[direction==='column'?'uni-steps__column-container':'uni-steps__row-container']">
- <view :class="[direction==='column'?'uni-steps__column-line-item':'uni-steps__row-line-item']"
- v-for="(item,index) in options" :key="index">
- <view
- :class="[direction==='column'?'uni-steps__column-line':'uni-steps__row-line',direction==='column'?'uni-steps__column-line--before':'uni-steps__row-line--before']"
- :style="{backgroundColor:index<=active&&index!==0?activeColor:index===0?'transparent':deactiveColor}">
- </view>
- <view :class="[direction==='column'?'uni-steps__column-check':'uni-steps__row-check']"
- v-if="index === active">
- <uni-icons :color="activeColor" :type="activeIcon" size="14"></uni-icons>
- </view>
- <view v-else :class="[direction==='column'?'uni-steps__column-circle':'uni-steps__row-circle']"
- :style="{backgroundColor:index<active?activeColor:deactiveColor}"></view>
- <view
- :class="[direction==='column'?'uni-steps__column-line':'uni-steps__row-line',direction==='column'?'uni-steps__column-line--after':'uni-steps__row-line--after']"
- :style="{backgroundColor:index<active&&index!==options.length-1?activeColor:index===options.length-1?'transparent':deactiveColor}">
- </view>
- </view>
- </view>
- </view>
- </view>
-</template>
-
-<script>
- /**
- * Steps 姝ラ鏉�
- * @description 璇勫垎缁勪欢
- * @tutorial https://ext.dcloud.net.cn/plugin?id=34
- * @property {Number} active 褰撳墠姝ラ
- * @property {String} direction = [row|column] 褰撳墠姝ラ
- * @value row 妯悜
- * @value column 绾靛悜
- * @property {String} activeColor 閫変腑鐘舵�佺殑棰滆壊
- * @property {Array} options 鏁版嵁婧愶紝鏍煎紡涓猴細[{title:'xxx',desc:'xxx'},{title:'xxx',desc:'xxx'}]
- */
-
- export default {
- name: 'UniSteps',
- props: {
- direction: {
- // 鎺掑垪鏂瑰悜 row column
- type: String,
- default: 'row'
- },
- activeColor: {
- // 婵�娲荤姸鎬侀鑹�
- type: String,
- default: '#2979FF'
- },
- deactiveColor: {
- // 鏈縺娲荤姸鎬侀鑹�
- type: String,
- default: '#B7BDC6'
- },
- active: {
- // 褰撳墠姝ラ
- type: Number,
- default: 0
- },
- activeIcon: {
- // 褰撳墠姝ラ
- type: String,
- default: 'checkbox-filled'
- },
- options: {
- type: Array,
- default () {
- return []
- }
- } // 鏁版嵁
- },
- data() {
- return {}
- }
- }
-</script>
-
-<style lang="scss">
- $uni-primary: #2979ff !default;
- $uni-border-color:#EDEDED;
- .uni-steps {
- /* #ifndef APP-NVUE */
- display: flex;
- width: 100%;
- /* #endif */
- /* #ifdef APP-NVUE */
- flex: 1;
- /* #endif */
- flex-direction: column;
- }
-
- .uni-steps__row {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex-direction: column;
- }
-
- .uni-steps__column {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex-direction: row-reverse;
- }
-
- .uni-steps__row-text-container {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex-direction: row;
- align-items: flex-end;
- margin-bottom: 8px;
- }
-
- .uni-steps__column-text-container {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex-direction: column;
- flex: 1;
- }
-
- .uni-steps__row-text {
- /* #ifndef APP-NVUE */
- display: inline-flex;
- /* #endif */
- flex: 1;
- flex-direction: column;
- }
-
- .uni-steps__column-text {
- padding: 6px 0px;
- border-bottom-style: solid;
- border-bottom-width: 1px;
- border-bottom-color: $uni-border-color;
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex-direction: column;
- }
-
- .uni-steps__row-title {
- font-size: 14px;
- line-height: 16px;
- text-align: center;
- }
-
- .uni-steps__column-title {
- font-size: 14px;
- text-align: left;
- line-height: 18px;
- }
-
- .uni-steps__row-desc {
- font-size: 12px;
- line-height: 14px;
- text-align: center;
- }
-
- .uni-steps__column-desc {
- font-size: 12px;
- text-align: left;
- line-height: 18px;
- }
-
- .uni-steps__row-container {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex-direction: row;
- }
-
- .uni-steps__column-container {
- /* #ifndef APP-NVUE */
- display: inline-flex;
- /* #endif */
- width: 30px;
- flex-direction: column;
- }
-
- .uni-steps__row-line-item {
- /* #ifndef APP-NVUE */
- display: inline-flex;
- /* #endif */
- flex-direction: row;
- flex: 1;
- height: 14px;
- line-height: 14px;
- align-items: center;
- justify-content: center;
- }
-
- .uni-steps__column-line-item {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex-direction: column;
- flex: 1;
- align-items: center;
- justify-content: center;
- }
-
- .uni-steps__row-line {
- flex: 1;
- height: 1px;
- background-color: #B7BDC6;
- }
-
- .uni-steps__column-line {
- width: 1px;
- background-color: #B7BDC6;
- }
-
- .uni-steps__row-line--after {
- transform: translateX(1px);
- }
-
- .uni-steps__column-line--after {
- flex: 1;
- transform: translate(0px, 1px);
- }
-
- .uni-steps__row-line--before {
- transform: translateX(-1px);
- }
-
- .uni-steps__column-line--before {
- height: 6px;
- transform: translate(0px, -13px);
- }
-
- .uni-steps__row-circle {
- width: 5px;
- height: 5px;
- border-radius: 50%;
- background-color: #B7BDC6;
- margin: 0px 3px;
- }
-
- .uni-steps__column-circle {
- width: 5px;
- height: 5px;
- border-radius: 50%;
- background-color: #B7BDC6;
- margin: 4px 0px 5px 0px;
- }
-
- .uni-steps__row-check {
- margin: 0px 6px;
- }
-
- .uni-steps__column-check {
- height: 14px;
- line-height: 14px;
- margin: 2px 0px;
- }
-</style>
diff --git a/uni_modules/uni-steps/package.json b/uni_modules/uni-steps/package.json
deleted file mode 100644
index c687b40..0000000
--- a/uni_modules/uni-steps/package.json
+++ /dev/null
@@ -1,89 +0,0 @@
-{
- "id": "uni-steps",
- "displayName": "uni-steps 姝ラ鏉�",
- "version": "1.1.1",
- "description": "姝ラ鏉$粍浠讹紝鎻愪緵妯悜鍜岀旱鍚戜袱绉嶅竷灞�鏍煎紡銆�",
- "keywords": [
- "uni-ui",
- "uniui",
- "姝ラ鏉�",
- "鏃堕棿杞�"
-],
- "repository": "https://github.com/dcloudio/uni-ui",
- "engines": {
- "HBuilderX": ""
- },
- "directories": {
- "example": "../../temps/example_temps"
- },
- "dcloudext": {
- "category": [
- "鍓嶇缁勪欢",
- "閫氱敤缁勪欢"
- ],
- "sale": {
- "regular": {
- "price": "0.00"
- },
- "sourcecode": {
- "price": "0.00"
- }
- },
- "contact": {
- "qq": ""
- },
- "declaration": {
- "ads": "鏃�",
- "data": "鏃�",
- "permissions": "鏃�"
- },
- "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui"
- },
- "uni_modules": {
- "dependencies": [
- "uni-scss",
- "uni-icons"
- ],
- "encrypt": [],
- "platforms": {
- "cloud": {
- "tcb": "y",
- "aliyun": "y"
- },
- "client": {
- "App": {
- "app-vue": "y",
- "app-nvue": "y"
- },
- "H5-mobile": {
- "Safari": "y",
- "Android Browser": "y",
- "寰俊娴忚鍣�(Android)": "y",
- "QQ娴忚鍣�(Android)": "y"
- },
- "H5-pc": {
- "Chrome": "y",
- "IE": "y",
- "Edge": "y",
- "Firefox": "y",
- "Safari": "y"
- },
- "灏忕▼搴�": {
- "寰俊": "y",
- "闃块噷": "y",
- "鐧惧害": "y",
- "瀛楄妭璺冲姩": "y",
- "QQ": "y"
- },
- "蹇簲鐢�": {
- "鍗庝负": "u",
- "鑱旂洘": "u"
- },
- "Vue": {
- "vue2": "y",
- "vue3": "y"
- }
- }
- }
- }
-}
\ No newline at end of file
diff --git a/uni_modules/uni-steps/readme.md b/uni_modules/uni-steps/readme.md
deleted file mode 100644
index da7a4bf..0000000
--- a/uni_modules/uni-steps/readme.md
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-## Steps 姝ラ鏉�
-> **缁勪欢鍚嶏細uni-steps**
-> 浠g爜鍧楋細 `uSteps`
-
-
-姝ラ鏉★紝甯哥敤浜庢樉绀鸿繘搴�
-
-### [鏌ョ湅鏂囨。](https://uniapp.dcloud.io/component/uniui/uni-steps)
-#### 濡備娇鐢ㄨ繃绋嬩腑鏈変换浣曢棶棰橈紝鎴栬�呮偍瀵箄ni-ui鏈変竴浜涘ソ鐨勫缓璁紝娆㈣繋鍔犲叆 uni-ui 浜ゆ祦缇わ細871950839
-
-
diff --git a/uni_modules/uni-swipe-action/changelog.md b/uni_modules/uni-swipe-action/changelog.md
deleted file mode 100644
index cbaca70..0000000
--- a/uni_modules/uni-swipe-action/changelog.md
+++ /dev/null
@@ -1,27 +0,0 @@
-## 1.3.0锛�2021-11-19锛�
-- 浼樺寲 缁勪欢UI锛屽苟鎻愪緵璁捐璧勬簮锛岃瑙�:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource)
-- 鏂囨。杩佺Щ锛岃瑙�:[https://uniapp.dcloud.io/component/uniui/uni-swipe-action](https://uniapp.dcloud.io/component/uniui/uni-swipe-action)
-## 1.2.4锛�2021-08-20锛�
-- 浼樺寲 close-all 鏂规硶
-## 1.2.3锛�2021-08-20锛�
-- 鏂板 close-all 鏂规硶锛屽叧闂墍鏈夊凡鎵撳紑鐨勭粍浠�
-## 1.2.2锛�2021-08-17锛�
-- 鏂板 resize() 鏂规硶锛屽湪闈炲井淇″皬绋嬪簭銆乭5銆乤pp-vue绔嚭鐜颁笉鑳芥粦鍔ㄧ殑闂鐨勬椂鍊欙紝閲嶇疆缁勪欢
-- 淇 app 绔伓灏斿嚭鐜扮被浼� Page[x][-x,xx;-x,xx,x,x-x] 鐨勯棶棰�
-- 浼樺寲 寰俊灏忕▼搴忋�乭5銆乤pp-vue 婊戝姩閫昏緫锛岄伩鍏嶅嚭鐜板姩鎬佹柊澧炵粍浠跺悗涓嶈兘婊戝姩鐨勯棶棰�
-## 1.2.1锛�2021-07-30锛�
-- 缁勪欢鍏煎 vue3锛屽浣曞垱寤簐ue3椤圭洰锛岃瑙� [uni-app 椤圭洰鏀寔 vue3 浠嬬粛](https://ask.dcloud.net.cn/article/37834)
-- 淇 璺ㄩ〉闈慨鏀圭粍浠舵暟鎹� 锛屽鑷翠笉鑳芥粦鍔ㄧ殑闂
-## 1.1.10锛�2021-06-17锛�
-- 淇 鎸夐挳鐐瑰嚮鎵ц涓ゆ鐨刡ug
-## 1.1.9锛�2021-05-12锛�
-- 鏂板 椤圭洰绀轰緥鍦板潃
-## 1.1.8锛�2021-03-26锛�
-- 淇 寰俊灏忕▼搴� nv_navigator is not defined 鎶ラ敊鐨刡ug
-## 1.1.7锛�2021-02-05锛�
-- 璋冩暣涓簎ni_modules鐩綍瑙勮寖
-- 鏂板 宸︿晶婊戝姩
-- 鏂板 鎻掓Ы浣跨敤鏂瑰紡
-- 鏂板 threshold 灞炴�э紝鍙互鎺у埗婊戝姩缂虹渷鍊�
-- 浼樺寲 闀垮垪琛ㄦ粴鍔ㄦ�ц兘
-- 淇 婊氬姩椤甸潰鏃惰Е鍙戠粍浠舵粦鍔ㄧ殑Bug
diff --git a/uni_modules/uni-swipe-action/components/uni-swipe-action-item/bindingx.js b/uni_modules/uni-swipe-action/components/uni-swipe-action-item/bindingx.js
deleted file mode 100644
index 5b15f7f..0000000
--- a/uni_modules/uni-swipe-action/components/uni-swipe-action-item/bindingx.js
+++ /dev/null
@@ -1,300 +0,0 @@
-let bindIngXMixins = {}
-
-// #ifdef APP-NVUE
-const BindingX = uni.requireNativePlugin('bindingx');
-const dom = uni.requireNativePlugin('dom');
-const animation = uni.requireNativePlugin('animation');
-
-bindIngXMixins = {
- data() {
- return {}
- },
-
- watch: {
- show(newVal) {
- if (this.autoClose) return
- if (this.stop) return
- this.stop = true
- if (newVal) {
- this.open(newVal)
- } else {
- this.close()
- }
- },
- leftOptions() {
- this.getSelectorQuery()
- this.init()
- },
- rightOptions(newVal) {
- this.init()
- }
- },
- created() {
- this.swipeaction = this.getSwipeAction()
- if (this.swipeaction.children !== undefined) {
- this.swipeaction.children.push(this)
- }
- },
- mounted() {
- this.box = this.getEl(this.$refs['selector-box--hock'])
- this.selector = this.getEl(this.$refs['selector-content--hock']);
- this.leftButton = this.getEl(this.$refs['selector-left-button--hock']);
- this.rightButton = this.getEl(this.$refs['selector-right-button--hock']);
- this.init()
- },
- // beforeDestroy() {
- // this.swipeaction.children.forEach((item, index) => {
- // if (item === this) {
- // this.swipeaction.children.splice(index, 1)
- // }
- // })
- // },
- methods: {
- init() {
- this.$nextTick(() => {
- this.x = 0
- this.button = {
- show: false
- }
- setTimeout(() => {
- this.getSelectorQuery()
- }, 200)
- })
- },
- onClick(index, item, position) {
- this.$emit('click', {
- content: item,
- index,
- position
- })
- },
- touchstart(e) {
- // 姣忔鍙Е鍙戜竴娆★紝閬垮厤澶氭鐩戝惉閫犳垚闂儊
- if (this.stop) return
- this.stop = true
- if (this.autoClose) {
- this.swipeaction.closeOther(this)
- }
-
- const leftWidth = this.button.left.width
- const rightWidth = this.button.right.width
- let expression = this.range(this.x, -rightWidth, leftWidth)
- let leftExpression = this.range(this.x - leftWidth, -leftWidth, 0)
- let rightExpression = this.range(this.x + rightWidth, 0, rightWidth)
-
- this.eventpan = BindingX.bind({
- anchor: this.box,
- eventType: 'pan',
- props: [{
- element: this.selector,
- property: 'transform.translateX',
- expression
- }, {
- element: this.leftButton,
- property: 'transform.translateX',
- expression: leftExpression
- }, {
- element: this.rightButton,
- property: 'transform.translateX',
- expression: rightExpression
- }, ]
- }, (e) => {
- // nope
- if (e.state === 'end') {
- this.x = e.deltaX + this.x;
- this.isclick = true
- this.bindTiming(e.deltaX)
- }
- });
- },
- touchend(e) {
- if (this.isopen !== 'none' && !this.isclick) {
- this.open('none')
- }
- },
- bindTiming(x) {
- const left = this.x
- const leftWidth = this.button.left.width
- const rightWidth = this.button.right.width
- const threshold = this.threshold
- if (!this.isopen || this.isopen === 'none') {
- if (left > threshold) {
- this.open('left')
- } else if (left < -threshold) {
- this.open('right')
- } else {
- this.open('none')
- }
- } else {
- if ((x > -leftWidth && x < 0) || x > rightWidth) {
- if ((x > -threshold && x < 0) || (x - rightWidth > threshold)) {
- this.open('left')
- } else {
- this.open('none')
- }
- } else {
- if ((x < threshold && x > 0) || (x + leftWidth < -threshold)) {
- this.open('right')
- } else {
- this.open('none')
- }
- }
- }
- },
-
- /**
- * 绉诲姩鑼冨洿
- * @param {Object} num
- * @param {Object} mix
- * @param {Object} max
- */
- range(num, mix, max) {
- return `min(max(x+${num}, ${mix}), ${max})`
- },
-
- /**
- * 寮�鍚痵wipe
- */
- open(type) {
- this.animation(type)
- },
-
- /**
- * 鍏抽棴swipe
- */
- close() {
- this.animation('none')
- },
-
- /**
- * 寮�鍚叧闂姩鐢�
- * @param {Object} type
- */
- animation(type) {
- const time = 300
- const leftWidth = this.button.left.width
- const rightWidth = this.button.right.width
- if (this.eventpan && this.eventpan.token) {
- BindingX.unbind({
- token: this.eventpan.token,
- eventType: 'pan'
- })
- }
-
- switch (type) {
- case 'left':
- Promise.all([
- this.move(this.selector, leftWidth),
- this.move(this.leftButton, 0),
- this.move(this.rightButton, rightWidth * 2)
- ]).then(() => {
- this.setEmit(leftWidth, type)
- })
- break
- case 'right':
- Promise.all([
- this.move(this.selector, -rightWidth),
- this.move(this.leftButton, -leftWidth * 2),
- this.move(this.rightButton, 0)
- ]).then(() => {
- this.setEmit(-rightWidth, type)
- })
- break
- default:
- Promise.all([
- this.move(this.selector, 0),
- this.move(this.leftButton, -leftWidth),
- this.move(this.rightButton, rightWidth)
- ]).then(() => {
- this.setEmit(0, type)
- })
-
- }
- },
- setEmit(x, type) {
- const leftWidth = this.button.left.width
- const rightWidth = this.button.right.width
- this.isopen = this.isopen || 'none'
- this.stop = false
- this.isclick = false
- // 鍙湁鐘舵�佷笉涓�鑷存墠浼氳繑鍥炵粨鏋�
- if (this.isopen !== type && this.x !== x) {
- if (type === 'left' && leftWidth > 0) {
- this.$emit('change', 'left')
- }
- if (type === 'right' && rightWidth > 0) {
- this.$emit('change', 'right')
- }
- if (type === 'none') {
- this.$emit('change', 'none')
- }
- }
- this.x = x
- this.isopen = type
- },
- move(ref, value) {
- return new Promise((resolve, reject) => {
- animation.transition(ref, {
- styles: {
- transform: `translateX(${value})`,
- },
- duration: 150, //ms
- timingFunction: 'linear',
- needLayout: false,
- delay: 0 //ms
- }, function(res) {
- resolve(res)
- })
- })
-
- },
-
- /**
- * 鑾峰彇ref
- * @param {Object} el
- */
- getEl(el) {
- return el.ref
- },
- /**
- * 鑾峰彇鑺傜偣淇℃伅
- */
- getSelectorQuery() {
- Promise.all([
- this.getDom('left'),
- this.getDom('right'),
- ]).then((data) => {
- let show = 'none'
- if (this.autoClose) {
- show = 'none'
- } else {
- show = this.show
- }
-
- if (show === 'none') {
- // this.close()
- } else {
- this.open(show)
- }
-
- })
-
- },
- getDom(str) {
- return new Promise((resolve, reject) => {
- dom.getComponentRect(this.$refs[`selector-${str}-button--hock`], (data) => {
- if (data) {
- this.button[str] = data.size
- resolve(data)
- } else {
- reject()
- }
- })
- })
- }
- }
-}
-
-// #endif
-
-export default bindIngXMixins
diff --git a/uni_modules/uni-swipe-action/components/uni-swipe-action-item/index.wxs b/uni_modules/uni-swipe-action/components/uni-swipe-action-item/index.wxs
deleted file mode 100644
index 10ddb56..0000000
--- a/uni_modules/uni-swipe-action/components/uni-swipe-action-item/index.wxs
+++ /dev/null
@@ -1,323 +0,0 @@
-var MIN_DISTANCE = 10;
-
-/**
- * 鍒ゆ柇褰撳墠鏄惁涓篐5銆乤pp-vue
- */
-var IS_HTML5 = false
-if (typeof window === 'object') IS_HTML5 = true
-
-/**
- * 鐩戝惉椤甸潰鍐呭�肩殑鍙樺寲,涓昏鐢ㄤ簬鍔ㄦ�佸紑鍏硈wipe-action
- * @param {Object} newValue
- * @param {Object} oldValue
- * @param {Object} ownerInstance
- * @param {Object} instance
- */
-function sizeReady(newValue, oldValue, ownerInstance, instance) {
- var state = instance.getState()
- var buttonPositions = JSON.parse(newValue)
- if (!buttonPositions || !buttonPositions.data || buttonPositions.data.length === 0) return
- state.leftWidth = buttonPositions.data[0].width
- state.rightWidth = buttonPositions.data[1].width
- state.threshold = instance.getDataset().threshold
-
- if (buttonPositions.show && buttonPositions.show !== 'none') {
- openState(buttonPositions.show, instance, ownerInstance)
- return
- }
-
- if (state.left) {
- openState('none', instance, ownerInstance)
- }
- resetTouchStatus(instance)
-}
-
-/**
- * 寮�濮嬭Е鎽告搷浣�
- * @param {Object} e
- * @param {Object} ins
- */
-function touchstart(e, ins) {
- var instance = e.instance;
- var disabled = instance.getDataset().disabled
- var state = instance.getState();
- // fix by mehaotian, TODO 鍏煎 app-vue 鑾峰彇dataset涓哄瓧绗︿覆 , h5 鑾峰彇 涓� undefined 鐨勯棶棰�,寰呮鏋朵慨澶�
- disabled = (typeof(disabled) === 'string' ? JSON.parse(disabled) : disabled) || false;
- if (disabled) return
- // 寮�濮嬭Е鎽告椂绉婚櫎鍔ㄧ敾绫�
- instance.requestAnimationFrame(function() {
- instance.removeClass('ani');
- ins.callMethod('closeSwipe');
- })
-
- // 璁板綍涓婃鐨勪綅缃�
- state.x = state.left || 0
- // 璁$畻婊戝姩寮�濮嬩綅缃�
- stopTouchStart(e, ins)
-}
-
-/**
- * 寮�濮嬫粦鍔ㄦ搷浣�
- * @param {Object} e
- * @param {Object} ownerInstance
- */
-function touchmove(e, ownerInstance) {
- var instance = e.instance;
- var disabled = instance.getDataset().disabled
- var state = instance.getState()
- // fix by mehaotian, TODO 鍏煎 app-vue 鑾峰彇dataset涓哄瓧绗︿覆 , h5 鑾峰彇 涓� undefined 鐨勯棶棰�,寰呮鏋朵慨澶�
- disabled = (typeof(disabled) === 'string' ? JSON.parse(disabled) : disabled) || false;
- if (disabled) return
- // 鏄惁鍙互婊戝姩椤甸潰
- stopTouchMove(e);
- if (state.direction !== 'horizontal') {
- return;
- }
-
- if (e.preventDefault) {
- // 闃绘椤甸潰婊氬姩
- e.preventDefault()
- }
-
- move(state.x + state.deltaX, instance, ownerInstance)
-}
-
-/**
- * 缁撴潫瑙︽懜鎿嶄綔
- * @param {Object} e
- * @param {Object} ownerInstance
- */
-function touchend(e, ownerInstance) {
- var instance = e.instance;
- var disabled = instance.getDataset().disabled
- var state = instance.getState()
- // fix by mehaotian, TODO 鍏煎 app-vue 鑾峰彇dataset涓哄瓧绗︿覆 , h5 鑾峰彇 涓� undefined 鐨勯棶棰�,寰呮鏋朵慨澶�
- disabled = (typeof(disabled) === 'string' ? JSON.parse(disabled) : disabled) || false;
-
- if (disabled) return
- // 婊戝姩杩囩▼涓Е鎽哥粨鏉�,閫氳繃闃欏�煎垽鏂槸寮�鍚繕鏄叧闂�
- // fixed by mehaotian 瀹氭椂鍣ㄨВ鍐崇偣鍑绘寜閽紝touchend 瑙﹀彂姣� click 浜嬩欢鏃舵満鏃╃殑闂 锛屼富瑕佹槸 ios13
- moveDirection(state.left, instance, ownerInstance)
-
-}
-
-/**
- * 璁剧疆绉诲姩璺濈
- * @param {Object} value
- * @param {Object} instance
- * @param {Object} ownerInstance
- */
-function move(value, instance, ownerInstance) {
- value = value || 0
- var state = instance.getState()
- var leftWidth = state.leftWidth
- var rightWidth = state.rightWidth
- // 鑾峰彇鍙粦鍔ㄨ寖鍥�
- state.left = range(value, -rightWidth, leftWidth);
- instance.requestAnimationFrame(function() {
- instance.setStyle({
- transform: 'translateX(' + state.left + 'px)',
- '-webkit-transform': 'translateX(' + state.left + 'px)'
- })
- })
-
-}
-
-/**
- * 鑾峰彇鑼冨洿
- * @param {Object} num
- * @param {Object} min
- * @param {Object} max
- */
-function range(num, min, max) {
- return Math.min(Math.max(num, min), max);
-}
-
-
-/**
- * 绉诲姩鏂瑰悜鍒ゆ柇
- * @param {Object} left
- * @param {Object} value
- * @param {Object} ownerInstance
- * @param {Object} ins
- */
-function moveDirection(left, ins, ownerInstance) {
- var state = ins.getState()
- var threshold = state.threshold
- var position = state.position
- var isopen = state.isopen || 'none'
- var leftWidth = state.leftWidth
- var rightWidth = state.rightWidth
- if (state.deltaX === 0) {
- openState('none', ins, ownerInstance)
- return
- }
- if ((isopen === 'none' && rightWidth > 0 && -left > threshold) || (isopen !== 'none' && rightWidth > 0 &&
- rightWidth +
- left < threshold)) {
- // right
- openState('right', ins, ownerInstance)
- } else if ((isopen === 'none' && leftWidth > 0 && left > threshold) || (isopen !== 'none' && leftWidth > 0 &&
- leftWidth - left < threshold)) {
- // left
- openState('left', ins, ownerInstance)
- } else {
- // default
- openState('none', ins, ownerInstance)
- }
-}
-
-
-/**
- * 寮�鍚姸鎬�
- * @param {Boolean} type
- * @param {Object} ins
- * @param {Object} ownerInstance
- */
-function openState(type, ins, ownerInstance) {
- var state = ins.getState()
- var position = state.position
- var leftWidth = state.leftWidth
- var rightWidth = state.rightWidth
- var left = ''
- state.isopen = state.isopen ? state.isopen : 'none'
- switch (type) {
- case "left":
- left = leftWidth
- break
- case "right":
- left = -rightWidth
- break
- default:
- left = 0
- }
-
- // && !state.throttle
-
- if (state.isopen !== type) {
- state.throttle = true
- ownerInstance.callMethod('change', {
- open: type
- })
-
- }
-
- state.isopen = type
- // 娣诲姞鍔ㄧ敾绫�
- ins.requestAnimationFrame(function() {
- ins.addClass('ani');
- move(left, ins, ownerInstance)
- })
- // 璁剧疆鏈�缁堢Щ鍔ㄤ綅缃�,鐞嗚涓婂彧瑕佽繘鍏ュ埌杩欎釜鍑芥暟锛岃偗瀹氭槸瑕佹墦寮�鐨�
-}
-
-
-function getDirection(x, y) {
- if (x > y && x > MIN_DISTANCE) {
- return 'horizontal';
- }
- if (y > x && y > MIN_DISTANCE) {
- return 'vertical';
- }
- return '';
-}
-
-/**
- * 閲嶇疆婊戝姩鐘舵��
- * @param {Object} event
- */
-function resetTouchStatus(instance) {
- var state = instance.getState();
- state.direction = '';
- state.deltaX = 0;
- state.deltaY = 0;
- state.offsetX = 0;
- state.offsetY = 0;
-}
-
-/**
- * 璁剧疆婊戝姩寮�濮嬩綅缃�
- * @param {Object} event
- */
-function stopTouchStart(event) {
- var instance = event.instance;
- var state = instance.getState();
- resetTouchStatus(instance);
- var touch = event.touches[0];
- if (IS_HTML5 && isPC()) {
- touch = event;
- }
- state.startX = touch.clientX;
- state.startY = touch.clientY;
-}
-
-/**
- * 婊戝姩涓紝鏄惁绂佹鎵撳紑
- * @param {Object} event
- */
-function stopTouchMove(event) {
- var instance = event.instance;
- var state = instance.getState();
- var touch = event.touches[0];
- if (IS_HTML5 && isPC()) {
- touch = event;
- }
- state.deltaX = touch.clientX - state.startX;
- state.deltaY = touch.clientY - state.startY;
- state.offsetY = Math.abs(state.deltaY);
- state.offsetX = Math.abs(state.deltaX);
- state.direction = state.direction || getDirection(state.offsetX, state.offsetY);
-}
-
-function isPC() {
- var userAgentInfo = navigator.userAgent;
- var Agents = ["Android", "iPhone", "SymbianOS", "Windows Phone", "iPad", "iPod"];
- var flag = true;
- for (var v = 0; v < Agents.length - 1; v++) {
- if (userAgentInfo.indexOf(Agents[v]) > 0) {
- flag = false;
- break;
- }
- }
- return flag;
-}
-
-var movable = false
-
-function mousedown(e, ins) {
- if (!IS_HTML5) return
- if (!isPC()) return
- touchstart(e, ins)
- movable = true
-}
-
-function mousemove(e, ins) {
- if (!IS_HTML5) return
- if (!isPC()) return
- if (!movable) return
- touchmove(e, ins)
-}
-
-function mouseup(e, ins) {
- if (!IS_HTML5) return
- if (!isPC()) return
- touchend(e, ins)
- movable = false
-}
-
-function mouseleave(e, ins) {
- if (!IS_HTML5) return
- if (!isPC()) return
- movable = false
-}
-
-module.exports = {
- sizeReady: sizeReady,
- touchstart: touchstart,
- touchmove: touchmove,
- touchend: touchend,
- mousedown: mousedown,
- mousemove: mousemove,
- mouseup: mouseup,
- mouseleave: mouseleave
-}
diff --git a/uni_modules/uni-swipe-action/components/uni-swipe-action-item/isPC.js b/uni_modules/uni-swipe-action/components/uni-swipe-action-item/isPC.js
deleted file mode 100644
index 9a10ece..0000000
--- a/uni_modules/uni-swipe-action/components/uni-swipe-action-item/isPC.js
+++ /dev/null
@@ -1,12 +0,0 @@
-export function isPC() {
- var userAgentInfo = navigator.userAgent;
- var Agents = ["Android", "iPhone", "SymbianOS", "Windows Phone", "iPad", "iPod"];
- var flag = true;
- for (let v = 0; v < Agents.length - 1; v++) {
- if (userAgentInfo.indexOf(Agents[v]) > 0) {
- flag = false;
- break;
- }
- }
- return flag;
-}
\ No newline at end of file
diff --git a/uni_modules/uni-swipe-action/components/uni-swipe-action-item/mpalipay.js b/uni_modules/uni-swipe-action/components/uni-swipe-action-item/mpalipay.js
deleted file mode 100644
index 1a68ef8..0000000
--- a/uni_modules/uni-swipe-action/components/uni-swipe-action-item/mpalipay.js
+++ /dev/null
@@ -1,193 +0,0 @@
-export default {
- data() {
- return {
- x: 0,
- transition: false,
- width: 0,
- viewWidth: 0,
- swipeShow: 0
- }
- },
- watch: {
- show(newVal) {
- if (this.autoClose) return
- if (newVal && newVal !== 'none' ) {
- this.transition = true
- this.open(newVal)
- } else {
- this.close()
- }
- }
- },
- created() {
- this.swipeaction = this.getSwipeAction()
- if (this.swipeaction.children !== undefined) {
- this.swipeaction.children.push(this)
- }
- },
- mounted() {
- this.isopen = false
- setTimeout(() => {
- this.getQuerySelect()
- }, 50)
- },
- methods: {
- appTouchStart(e) {
- const {
- clientX
- } = e.changedTouches[0]
- this.clientX = clientX
- this.timestamp = new Date().getTime()
- },
- appTouchEnd(e, index, item, position) {
- const {
- clientX
- } = e.changedTouches[0]
- // fixed by xxxx 妯℃嫙鐐瑰嚮浜嬩欢锛岃В鍐� ios 13 鐐瑰嚮鍖哄煙閿欎綅鐨勯棶棰�
- let diff = Math.abs(this.clientX - clientX)
- let time = (new Date().getTime()) - this.timestamp
- if (diff < 40 && time < 300) {
- this.$emit('click', {
- content: item,
- index,
- position
- })
- }
- },
- /**
- * 绉诲姩瑙﹀彂
- * @param {Object} e
- */
- onChange(e) {
- this.moveX = e.detail.x
- this.isclose = false
- },
- touchstart(e) {
- this.transition = false
- this.isclose = true
- this.autoClose && this.swipeaction.closeOther(this)
- },
- touchmove(e) {},
- touchend(e) {
- // 0鐨勪綅缃粈涔堥兘涓嶆墽琛�
- if (this.isclose && this.isopen === 'none') return
- if (this.isclose && this.isopen !== 'none') {
- this.transition = true
- this.close()
- } else {
- this.move(this.moveX + this.leftWidth)
- }
- },
-
- /**
- * 绉诲姩
- * @param {Object} moveX
- */
- move(moveX) {
- // 鎵撳紑鍏抽棴鐨勫鐞嗛�昏緫涓嶅お涓�鏍�
- this.transition = true
- // 鏈墦寮�鐘舵��
- if (!this.isopen || this.isopen === 'none') {
- if (moveX > this.threshold) {
- this.open('left')
- } else if (moveX < -this.threshold) {
- this.open('right')
- } else {
- this.close()
- }
- } else {
- if (moveX < 0 && moveX < this.rightWidth) {
- const rightX = this.rightWidth + moveX
- if (rightX < this.threshold) {
- this.open('right')
- } else {
- this.close()
- }
- } else if (moveX > 0 && moveX < this.leftWidth) {
- const leftX = this.leftWidth - moveX
- if (leftX < this.threshold) {
- this.open('left')
- } else {
- this.close()
- }
- }
-
- }
-
- },
-
- /**
- * 鎵撳紑
- */
- open(type) {
- this.x = this.moveX
- this.animation(type)
- },
-
- /**
- * 鍏抽棴
- */
- close() {
- this.x = this.moveX
- // TODO 瑙e喅 x 鍊间笉鏇存柊鐨勯棶棰橈紝鎵�浠ヤ細澶氳Е鍙戜竴娆� nextTick 锛屽緟浼樺寲
- this.$nextTick(() => {
- this.x = -this.leftWidth
- if(this.isopen!=='none'){
- this.$emit('change', 'none')
- }
- this.isopen = 'none'
- })
- },
-
- /**
- * 鎵ц缁撴潫鍔ㄧ敾
- * @param {Object} type
- */
- animation(type) {
- this.$nextTick(() => {
- if (type === 'left') {
- this.x = 0
- } else {
- this.x = -this.rightWidth - this.leftWidth
- }
-
- if(this.isopen!==type){
- this.$emit('change', type)
- }
- this.isopen = type
- })
-
- },
- getSlide(x) {},
- getQuerySelect() {
- const query = uni.createSelectorQuery().in(this);
- query.selectAll('.movable-view--hock').boundingClientRect(data => {
- this.leftWidth = data[1].width
- this.rightWidth = data[2].width
- this.width = data[0].width
- this.viewWidth = this.width + this.rightWidth + this.leftWidth
- if (this.leftWidth === 0) {
- // TODO 鐤戜技bug ,鍒濆鍖栫殑鏃跺�欏鏋渪 鏄�0锛屼細瀵艰嚧绉诲姩浣嶇疆閿欒锛屾墍浠ヨ鍏冪礌瓒呭嚭涓�鐐�
- this.x = -0.1
- } else {
- this.x = -this.leftWidth
- }
- this.moveX = this.x
- this.$nextTick(() => {
- this.swipeShow = 1
- })
-
- if (!this.buttonWidth) {
- this.disabledView = true
- }
-
- if (this.autoClose) return
- if (this.show !== 'none') {
- this.transition = true
- this.open(this.shows)
- }
- }).exec();
-
- }
- }
-}
diff --git a/uni_modules/uni-swipe-action/components/uni-swipe-action-item/mpother.js b/uni_modules/uni-swipe-action/components/uni-swipe-action-item/mpother.js
deleted file mode 100644
index c44adfd..0000000
--- a/uni_modules/uni-swipe-action/components/uni-swipe-action-item/mpother.js
+++ /dev/null
@@ -1,257 +0,0 @@
-let otherMixins = {}
-
-// #ifndef APP-PLUS|| MP-WEIXIN || H5
-const MIN_DISTANCE = 10;
-otherMixins = {
- data() {
- // TODO 闅忔満鐢熺敓鍏冪礌ID锛岃В鍐崇櫨搴﹀皬绋嬪簭鑾峰彇鍚屼竴涓厓绱犱綅缃俊鎭殑bug
- const elClass = `Uni_${Math.ceil(Math.random() * 10e5).toString(36)}`
- return {
- uniShow: false,
- left: 0,
- buttonShow: 'none',
- ani: false,
- moveLeft:'',
- elClass
- }
- },
- watch: {
- show(newVal) {
- if (this.autoClose) return
- this.openState(newVal)
- },
- left(){
- this.moveLeft = `translateX(${this.left}px)`
- },
- buttonShow(newVal){
- if (this.autoClose) return
- this.openState(newVal)
- },
- leftOptions() {
- this.init()
- },
- rightOptions() {
- this.init()
- }
- },
- mounted() {
- this.swipeaction = this.getSwipeAction()
- if (this.swipeaction.children !== undefined) {
- this.swipeaction.children.push(this)
- }
- this.init()
- },
- methods: {
- init(){
- clearTimeout(this.timer)
- this.timer = setTimeout(() => {
- this.getSelectorQuery()
- }, 100)
- // 绉诲姩璺濈
- this.left = 0
- this.x = 0
- },
-
- closeSwipe(e) {
- if (!this.autoClose) return
- this.swipeaction.closeOther(this)
- },
- appTouchStart(e) {
- const {
- clientX
- } = e.changedTouches[0]
- this.clientX = clientX
- this.timestamp = new Date().getTime()
- },
- appTouchEnd(e, index, item, position) {
- const {
- clientX
- } = e.changedTouches[0]
- // fixed by xxxx 妯℃嫙鐐瑰嚮浜嬩欢锛岃В鍐� ios 13 鐐瑰嚮鍖哄煙閿欎綅鐨勯棶棰�
- let diff = Math.abs(this.clientX - clientX)
- let time = (new Date().getTime()) - this.timestamp
- if (diff < 40 && time < 300) {
- this.$emit('click', {
- content: item,
- index,
- position
- })
- }
- },
- touchstart(e) {
- if (this.disabled) return
- this.ani = false
- this.x = this.left || 0
- this.stopTouchStart(e)
- this.autoClose && this.closeSwipe()
- },
- touchmove(e) {
- if (this.disabled) return
- // 鏄惁鍙互婊戝姩椤甸潰
- this.stopTouchMove(e);
- if (this.direction !== 'horizontal') {
- return;
- }
- this.move(this.x + this.deltaX)
- return false
- },
- touchend() {
- if (this.disabled) return
- this.moveDirection(this.left)
- },
- /**
- * 璁剧疆绉诲姩璺濈
- * @param {Object} value
- */
- move(value) {
- value = value || 0
- const leftWidth = this.leftWidth
- const rightWidth = this.rightWidth
- // 鑾峰彇鍙粦鍔ㄨ寖鍥�
- this.left = this.range(value, -rightWidth, leftWidth);
- },
-
- /**
- * 鑾峰彇鑼冨洿
- * @param {Object} num
- * @param {Object} min
- * @param {Object} max
- */
- range(num, min, max) {
- return Math.min(Math.max(num, min), max);
- },
- /**
- * 绉诲姩鏂瑰悜鍒ゆ柇
- * @param {Object} left
- * @param {Object} value
- */
- moveDirection(left) {
- const threshold = this.threshold
- const isopen = this.isopen || 'none'
- const leftWidth = this.leftWidth
- const rightWidth = this.rightWidth
- if (this.deltaX === 0) {
- this.openState('none')
- return
- }
- if ((isopen === 'none' && rightWidth > 0 && -left > threshold) || (isopen !== 'none' && rightWidth > 0 && rightWidth +
- left < threshold)) {
- // right
- this.openState('right')
- } else if ((isopen === 'none' && leftWidth > 0 && left > threshold) || (isopen !== 'none' && leftWidth > 0 &&
- leftWidth - left < threshold)) {
- // left
- this.openState('left')
- } else {
- // default
- this.openState('none')
- }
- },
-
- /**
- * 寮�鍚姸鎬�
- * @param {Boolean} type
- */
- openState(type) {
- const leftWidth = this.leftWidth
- const rightWidth = this.rightWidth
- let left = ''
- this.isopen = this.isopen ? this.isopen : 'none'
- switch (type) {
- case "left":
- left = leftWidth
- break
- case "right":
- left = -rightWidth
- break
- default:
- left = 0
- }
-
-
- if (this.isopen !== type) {
- this.throttle = true
- this.$emit('change', type)
- }
-
- this.isopen = type
- // 娣诲姞鍔ㄧ敾绫�
- this.ani = true
- this.$nextTick(() => {
- this.move(left)
- })
- // 璁剧疆鏈�缁堢Щ鍔ㄤ綅缃�,鐞嗚涓婂彧瑕佽繘鍏ュ埌杩欎釜鍑芥暟锛岃偗瀹氭槸瑕佹墦寮�鐨�
- },
- close() {
- this.openState('none')
- },
- getDirection(x, y) {
- if (x > y && x > MIN_DISTANCE) {
- return 'horizontal';
- }
- if (y > x && y > MIN_DISTANCE) {
- return 'vertical';
- }
- return '';
- },
-
- /**
- * 閲嶇疆婊戝姩鐘舵��
- * @param {Object} event
- */
- resetTouchStatus() {
- this.direction = '';
- this.deltaX = 0;
- this.deltaY = 0;
- this.offsetX = 0;
- this.offsetY = 0;
- },
-
- /**
- * 璁剧疆婊戝姩寮�濮嬩綅缃�
- * @param {Object} event
- */
- stopTouchStart(event) {
- this.resetTouchStatus();
- const touch = event.touches[0];
- this.startX = touch.clientX;
- this.startY = touch.clientY;
- },
-
- /**
- * 婊戝姩涓紝鏄惁绂佹鎵撳紑
- * @param {Object} event
- */
- stopTouchMove(event) {
- const touch = event.touches[0];
- this.deltaX = touch.clientX - this.startX;
- this.deltaY = touch.clientY - this.startY;
- this.offsetX = Math.abs(this.deltaX);
- this.offsetY = Math.abs(this.deltaY);
- this.direction = this.direction || this.getDirection(this.offsetX, this.offsetY);
- },
-
- getSelectorQuery() {
- const views = uni.createSelectorQuery().in(this)
- views
- .selectAll('.'+this.elClass)
- .boundingClientRect(data => {
- if(data.length === 0) return
- let show = 'none'
- if (this.autoClose) {
- show = 'none'
- } else {
- show = this.show
- }
- this.leftWidth = data[0].width || 0
- this.rightWidth = data[1].width || 0
- this.buttonShow = show
- })
- .exec()
- }
- }
-}
-
-// #endif
-
-export default otherMixins
diff --git a/uni_modules/uni-swipe-action/components/uni-swipe-action-item/mpwxs.js b/uni_modules/uni-swipe-action/components/uni-swipe-action-item/mpwxs.js
deleted file mode 100644
index e5e30bb..0000000
--- a/uni_modules/uni-swipe-action/components/uni-swipe-action-item/mpwxs.js
+++ /dev/null
@@ -1,82 +0,0 @@
-let mpMixins = {}
-// #ifdef APP-VUE|| MP-WEIXIN || H5
-import {
- isPC
-} from "./isPC"
-mpMixins = {
- data() {
- return {
- is_show: 'none'
- }
- },
- watch: {
- show(newVal) {
- this.is_show = this.show
- }
- },
- created() {
- this.swipeaction = this.getSwipeAction()
- if (this.swipeaction.children !== undefined) {
- this.swipeaction.children.push(this)
- }
- },
- mounted() {
- this.is_show = this.show
- },
- methods: {
- // wxs 涓皟鐢�
- closeSwipe(e) {
- if (!this.autoClose) return
- this.swipeaction.closeOther(this)
- },
-
- change(e) {
- this.$emit('change', e.open)
- if (this.is_show !== e.open) {
- this.is_show = e.open
- }
- },
-
- appTouchStart(e) {
- // #ifdef H5
- if (isPC()) return
- // #endif
- const {
- clientX
- } = e.changedTouches[0]
- this.clientX = clientX
- this.timestamp = new Date().getTime()
- },
- appTouchEnd(e, index, item, position) {
- // #ifdef H5
- if (isPC()) return
- // #endif
- const {
- clientX
- } = e.changedTouches[0]
- // fixed by xxxx 妯℃嫙鐐瑰嚮浜嬩欢锛岃В鍐� ios 13 鐐瑰嚮鍖哄煙閿欎綅鐨勯棶棰�
- let diff = Math.abs(this.clientX - clientX)
- let time = (new Date().getTime()) - this.timestamp
- if (diff < 40 && time < 300) {
- this.$emit('click', {
- content: item,
- index,
- position
- })
- }
- },
- onClickForPC(index, item, position) {
- // #ifdef H5
- if (!isPC()) return
- this.$emit('click', {
- content: item,
- index,
- position
- })
- // #endif
- }
- }
-}
-
-// #endif
-export default mpMixins
diff --git a/uni_modules/uni-swipe-action/components/uni-swipe-action-item/render.js b/uni_modules/uni-swipe-action/components/uni-swipe-action-item/render.js
deleted file mode 100644
index abaa54d..0000000
--- a/uni_modules/uni-swipe-action/components/uni-swipe-action-item/render.js
+++ /dev/null
@@ -1,265 +0,0 @@
-const MIN_DISTANCE = 10;
-export default {
- showWatch(newVal, oldVal, ownerInstance, instance,self) {
- let state = self.state
- this.getDom(instance, ownerInstance,self)
- if (newVal && newVal !== 'none') {
- this.openState(newVal, instance, ownerInstance,self)
- return
- }
-
- if (state.left) {
- this.openState('none', instance, ownerInstance,self)
- }
- this.resetTouchStatus(instance,self)
- },
-
- /**
- * 寮�濮嬭Е鎽告搷浣�
- * @param {Object} e
- * @param {Object} ins
- */
- touchstart(e, ownerInstance, self) {
- let instance = e.instance;
- let disabled = instance.getDataset().disabled
- let state = self.state;
- this.getDom(instance, ownerInstance, self)
- // fix by mehaotian, TODO 鍏煎 app-vue 鑾峰彇dataset涓哄瓧绗︿覆 , h5 鑾峰彇 涓� undefined 鐨勯棶棰�,寰呮鏋朵慨澶�
- disabled = this.getDisabledType(disabled)
- if (disabled) return
- // 寮�濮嬭Е鎽告椂绉婚櫎鍔ㄧ敾绫�
- instance.requestAnimationFrame(function() {
- instance.removeClass('ani');
- ownerInstance.callMethod('closeSwipe');
- })
-
- // 璁板綍涓婃鐨勪綅缃�
- state.x = state.left || 0
- // 璁$畻婊戝姩寮�濮嬩綅缃�
- this.stopTouchStart(e, ownerInstance, self)
- },
-
- /**
- * 寮�濮嬫粦鍔ㄦ搷浣�
- * @param {Object} e
- * @param {Object} ownerInstance
- */
- touchmove(e, ownerInstance, self) {
- let instance = e.instance;
- let disabled = instance.getDataset().disabled
- let state = self.state
- // fix by mehaotian, TODO 鍏煎 app-vue 鑾峰彇dataset涓哄瓧绗︿覆 , h5 鑾峰彇 涓� undefined 鐨勯棶棰�,寰呮鏋朵慨澶�
- disabled = this.getDisabledType(disabled)
- if (disabled) return
- // 鏄惁鍙互婊戝姩椤甸潰
- this.stopTouchMove(e, self);
- if (state.direction !== 'horizontal') {
- return;
- }
- if (e.preventDefault) {
- // 闃绘椤甸潰婊氬姩
- e.preventDefault()
- }
- let x = state.x + state.deltaX
- this.move(x, instance, ownerInstance, self)
- },
-
- /**
- * 缁撴潫瑙︽懜鎿嶄綔
- * @param {Object} e
- * @param {Object} ownerInstance
- */
- touchend(e, ownerInstance, self) {
- let instance = e.instance;
- let disabled = instance.getDataset().disabled
- let state = self.state
- // fix by mehaotian, TODO 鍏煎 app-vue 鑾峰彇dataset涓哄瓧绗︿覆 , h5 鑾峰彇 涓� undefined 鐨勯棶棰�,寰呮鏋朵慨澶�
- disabled = this.getDisabledType(disabled)
-
- if (disabled) return
- // 婊戝姩杩囩▼涓Е鎽哥粨鏉�,閫氳繃闃欏�煎垽鏂槸寮�鍚繕鏄叧闂�
- // fixed by mehaotian 瀹氭椂鍣ㄨВ鍐崇偣鍑绘寜閽紝touchend 瑙﹀彂姣� click 浜嬩欢鏃舵満鏃╃殑闂 锛屼富瑕佹槸 ios13
- this.moveDirection(state.left, instance, ownerInstance, self)
-
- },
-
- /**
- * 璁剧疆绉诲姩璺濈
- * @param {Object} value
- * @param {Object} instance
- * @param {Object} ownerInstance
- */
- move(value, instance, ownerInstance, self) {
- value = value || 0
- let state = self.state
- let leftWidth = state.leftWidth
- let rightWidth = state.rightWidth
- // 鑾峰彇鍙粦鍔ㄨ寖鍥�
- state.left = this.range(value, -rightWidth, leftWidth);
- instance.requestAnimationFrame(function() {
- instance.setStyle({
- transform: 'translateX(' + state.left + 'px)',
- '-webkit-transform': 'translateX(' + state.left + 'px)'
- })
- })
-
- },
-
- /**
- * 鑾峰彇鍏冪礌淇℃伅
- * @param {Object} instance
- * @param {Object} ownerInstance
- */
- getDom(instance, ownerInstance, self) {
- let state = self.state
- var leftDom = ownerInstance.$el.querySelector('.button-group--left')
- var rightDom = ownerInstance.$el.querySelector('.button-group--right')
-
- state.leftWidth = leftDom.offsetWidth || 0
- state.rightWidth = rightDom.offsetWidth || 0
- state.threshold = instance.getDataset().threshold
- },
-
- getDisabledType(value) {
- return (typeof(value) === 'string' ? JSON.parse(value) : value) || false;
- },
-
- /**
- * 鑾峰彇鑼冨洿
- * @param {Object} num
- * @param {Object} min
- * @param {Object} max
- */
- range(num, min, max) {
- return Math.min(Math.max(num, min), max);
- },
-
-
- /**
- * 绉诲姩鏂瑰悜鍒ゆ柇
- * @param {Object} left
- * @param {Object} value
- * @param {Object} ownerInstance
- * @param {Object} ins
- */
- moveDirection(left, ins, ownerInstance, self) {
- var state = self.state
- var threshold = state.threshold
- var position = state.position
- var isopen = state.isopen || 'none'
- var leftWidth = state.leftWidth
- var rightWidth = state.rightWidth
- if (state.deltaX === 0) {
- this.openState('none', ins, ownerInstance, self)
- return
- }
- if ((isopen === 'none' && rightWidth > 0 && -left > threshold) || (isopen !== 'none' && rightWidth > 0 &&
- rightWidth +
- left < threshold)) {
- // right
- this.openState('right', ins, ownerInstance, self)
- } else if ((isopen === 'none' && leftWidth > 0 && left > threshold) || (isopen !== 'none' && leftWidth > 0 &&
- leftWidth - left < threshold)) {
- // left
- this.openState('left', ins, ownerInstance, self)
- } else {
- // default
- this.openState('none', ins, ownerInstance, self)
- }
- },
-
-
- /**
- * 寮�鍚姸鎬�
- * @param {Boolean} type
- * @param {Object} ins
- * @param {Object} ownerInstance
- */
- openState(type, ins, ownerInstance, self) {
- let state = self.state
- let leftWidth = state.leftWidth
- let rightWidth = state.rightWidth
- let left = ''
- state.isopen = state.isopen ? state.isopen : 'none'
- switch (type) {
- case "left":
- left = leftWidth
- break
- case "right":
- left = -rightWidth
- break
- default:
- left = 0
- }
-
- // && !state.throttle
-
- if (state.isopen !== type) {
- state.throttle = true
- ownerInstance.callMethod('change', {
- open: type
- })
-
- }
-
- state.isopen = type
- // 娣诲姞鍔ㄧ敾绫�
- ins.requestAnimationFrame(()=> {
- ins.addClass('ani');
- this.move(left, ins, ownerInstance, self)
- })
- },
-
-
- getDirection(x, y) {
- if (x > y && x > MIN_DISTANCE) {
- return 'horizontal';
- }
- if (y > x && y > MIN_DISTANCE) {
- return 'vertical';
- }
- return '';
- },
-
- /**
- * 閲嶇疆婊戝姩鐘舵��
- * @param {Object} event
- */
- resetTouchStatus(instance, self) {
- let state = self.state;
- state.direction = '';
- state.deltaX = 0;
- state.deltaY = 0;
- state.offsetX = 0;
- state.offsetY = 0;
- },
-
- /**
- * 璁剧疆婊戝姩寮�濮嬩綅缃�
- * @param {Object} event
- */
- stopTouchStart(event, ownerInstance, self) {
- let instance = event.instance;
- let state = self.state
- this.resetTouchStatus(instance, self);
- var touch = event.touches[0];
- state.startX = touch.clientX;
- state.startY = touch.clientY;
- },
-
- /**
- * 婊戝姩涓紝鏄惁绂佹鎵撳紑
- * @param {Object} event
- */
- stopTouchMove(event, self) {
- let instance = event.instance;
- let state = self.state;
- let touch = event.touches[0];
-
- state.deltaX = touch.clientX - state.startX;
- state.deltaY = touch.clientY - state.startY;
- state.offsetY = Math.abs(state.deltaY);
- state.offsetX = Math.abs(state.deltaX);
- state.direction = state.direction || this.getDirection(state.offsetX, state.offsetY);
- }
-}
diff --git a/uni_modules/uni-swipe-action/components/uni-swipe-action-item/uni-swipe-action-item.vue b/uni_modules/uni-swipe-action/components/uni-swipe-action-item/uni-swipe-action-item.vue
deleted file mode 100644
index 2be1e66..0000000
--- a/uni_modules/uni-swipe-action/components/uni-swipe-action-item/uni-swipe-action-item.vue
+++ /dev/null
@@ -1,348 +0,0 @@
-<template>
- <!-- 鍦ㄥ井淇″皬绋嬪簭 app vue绔� h5 浣跨敤wxs 瀹炵幇-->
- <!-- #ifdef APP-VUE || MP-WEIXIN || H5 -->
- <view class="uni-swipe">
- <!-- #ifdef MP-WEIXIN || VUE3 -->
- <view class="uni-swipe_box" :change:prop="wxsswipe.showWatch"
- :prop="is_show" :data-threshold="threshold" :data-disabled="disabled" @touchstart="wxsswipe.touchstart" @touchmove="wxsswipe.touchmove" @touchend="wxsswipe.touchend">
- <!-- #endif -->
- <!-- #ifndef MP-WEIXIN || VUE3 -->
- <view class="uni-swipe_box" :change:prop="renderswipe.showWatch"
- :prop="is_show" :data-threshold="threshold" :data-disabled="disabled+''" @touchstart="renderswipe.touchstart" @touchmove="renderswipe.touchmove" @touchend="renderswipe.touchend">
- <!-- #endif -->
- <!-- 鍦ㄥ井淇″皬绋嬪簭 app vue绔� h5 浣跨敤wxs 瀹炵幇-->
- <view class="uni-swipe_button-group button-group--left">
- <slot name="left">
- <view v-for="(item,index) in leftOptions" :key="index" :style="{
- backgroundColor: item.style && item.style.backgroundColor ? item.style.backgroundColor : '#C7C6CD',
- fontSize: item.style && item.style.fontSize ? item.style.fontSize : '16px'
- }" class="uni-swipe_button button-hock" @touchstart="appTouchStart"
- @touchend="appTouchEnd($event,index,item,'left')" @click.stop="onClickForPC(index,item,'left')">
- <text class="uni-swipe_button-text"
- :style="{color: item.style && item.style.color ? item.style.color : '#FFFFFF',}">{{ item.text }}</text>
- </view>
- </slot>
- </view>
- <view class="uni-swipe_text--center">
- <slot></slot>
- </view>
- <view class="uni-swipe_button-group button-group--right">
- <slot name="right">
- <view v-for="(item,index) in rightOptions" :key="index" :style="{
- backgroundColor: item.style && item.style.backgroundColor ? item.style.backgroundColor : '#C7C6CD',
- fontSize: item.style && item.style.fontSize ? item.style.fontSize : '16px'
- }" class="uni-swipe_button button-hock" @touchstart="appTouchStart"
- @touchend="appTouchEnd($event,index,item,'right')"
- @click.stop="onClickForPC(index,item,'right')"><text class="uni-swipe_button-text"
- :style="{color: item.style && item.style.color ? item.style.color : '#FFFFFF',}">{{ item.text }}</text>
- </view>
- </slot>
- </view>
- </view>
- </view>
- <!-- #endif -->
- <!-- app nvue绔� 浣跨敤 bindingx -->
- <!-- #ifdef APP-NVUE -->
- <view ref="selector-box--hock" class="uni-swipe" @horizontalpan="touchstart" @touchend="touchend">
- <view ref='selector-left-button--hock' class="uni-swipe_button-group button-group--left">
- <slot name="left">
- <view v-for="(item,index) in leftOptions" :data-button="btn" :key="index" :style="{
- backgroundColor: item.style && item.style.backgroundColor ? item.style.backgroundColor : '#C7C6CD',
- fontSize: item.style && item.style.fontSize ? item.style.fontSize : '16px'
- }" class="uni-swipe_button button-hock" @click.stop="onClick(index,item,'left')"><text
- class="uni-swipe_button-text"
- :style="{color: item.style && item.style.color ? item.style.color : '#FFFFFF',}">{{ item.text }}</text>
- </view>
- </slot>
- </view>
- <view ref='selector-right-button--hock' class="uni-swipe_button-group button-group--right">
- <slot name="right">
- <view v-for="(item,index) in rightOptions" :data-button="btn" :key="index" :style="{
- backgroundColor: item.style && item.style.backgroundColor ? item.style.backgroundColor : '#C7C6CD',
- fontSize: item.style && item.style.fontSize ? item.style.fontSize : '16px'
- }" class="uni-swipe_button button-hock" @click.stop="onClick(index,item,'right')"><text
- class="uni-swipe_button-text"
- :style="{color: item.style && item.style.color ? item.style.color : '#FFFFFF',}">{{ item.text }}</text>
- </view>
- </slot>
- </view>
- <view ref='selector-content--hock' class="uni-swipe_box">
- <slot></slot>
- </view>
- </view>
- <!-- #endif -->
- <!-- 鍏朵粬骞冲彴浣跨敤 js 锛岄暱鍒楄〃鎬ц兘鍙兘浼氭湁褰卞搷-->
- <!-- #ifdef MP-ALIPAY || MP-BAIDU || MP-TOUTIAO || MP-QQ || MP-JD -->
- <view class="uni-swipe">
- <view class="uni-swipe_box" @touchstart="touchstart" @touchmove="touchmove" @touchend="touchend"
- :style="{transform:moveLeft}" :class="{ani:ani}">
- <view class="uni-swipe_button-group button-group--left" :class="[elClass]">
- <slot name="left">
- <view v-for="(item,index) in leftOptions" :data-button="btn" :key="index" :style="{
- backgroundColor: item.style && item.style.backgroundColor ? item.style.backgroundColor : '#C7C6CD',
- fontSize: item.style && item.style.fontSize ? item.style.fontSize : '16px'
- }" class="uni-swipe_button button-hock" @touchstart="appTouchStart"
- @touchend="appTouchEnd($event,index,item,'left')"><text class="uni-swipe_button-text"
- :style="{color: item.style && item.style.color ? item.style.color : '#FFFFFF',}">{{ item.text }}</text>
- </view>
- </slot>
- </view>
- <slot></slot>
- <view class="uni-swipe_button-group button-group--right" :class="[elClass]">
- <slot name="right">
- <view v-for="(item,index) in rightOptions" :data-button="btn" :key="index" :style="{
- backgroundColor: item.style && item.style.backgroundColor ? item.style.backgroundColor : '#C7C6CD',
- fontSize: item.style && item.style.fontSize ? item.style.fontSize : '16px'
- }" @touchstart="appTouchStart" @touchend="appTouchEnd($event,index,item,'right')"
- class="uni-swipe_button button-hock"><text class="uni-swipe_button-text"
- :style="{color: item.style && item.style.color ? item.style.color : '#FFFFFF',}">{{ item.text }}</text>
- </view>
- </slot>
- </view>
- </view>
- </view>
- <!-- #endif -->
-
-</template>
-<script src="./wx.wxs" module="wxsswipe" lang="wxs"></script>
-
-<script module="renderswipe" lang="renderjs">
- import render from './render.js'
- export default {
- mounted(e,ins,owner) {
- this.state = {}
- },
- methods:{
- showWatch(newVal, oldVal, ownerInstance, instance){
- render.showWatch(newVal, oldVal, ownerInstance, instance,this)
- },
- touchstart(e,ownerInstance){
- render.touchstart(e,ownerInstance,this)
- },
- touchmove(e, ownerInstance){
- render.touchmove(e,ownerInstance,this)
- },
- touchend(e,ownerInstance){
- render.touchend(e,ownerInstance,this)
- }
- }
- }
-</script>
-<script>
- import mpwxs from './mpwxs'
- import bindingx from './bindingx.js'
- import mpother from './mpother'
-
- /**
- * SwipeActionItem 婊戝姩鎿嶄綔瀛愮粍浠�
- * @description 閫氳繃婊戝姩瑙﹀彂閫夐」鐨勫鍣�
- * @tutorial https://ext.dcloud.net.cn/plugin?id=181
- * @property {Boolean} show = [left|right锝渘one] 寮�鍚叧闂粍浠讹紝auto-close = false 鏃剁敓鏁�
- * @property {Boolean} disabled = [true|false] 鏄惁绂佹婊戝姩
- * @property {Boolean} autoClose = [true|false] 婊戝姩鎵撳紑褰撳墠缁勪欢锛屾槸鍚﹀叧闂叾浠栫粍浠�
- * @property {Number} threshold 婊戝姩缂虹渷鍊�
- * @property {Array} leftOptions 宸︿晶閫夐」鍐呭鍙婃牱寮�
- * @property {Array} rgihtOptions 鍙充晶閫夐」鍐呭鍙婃牱寮�
- * @event {Function} click 鐐瑰嚮閫夐」鎸夐挳鏃惰Е鍙戜簨浠讹紝e = {content,index} 锛宑ontent锛堢偣鍑诲唴瀹癸級銆乮ndex锛堜笅鏍�)
- * @event {Function} change 缁勪欢鎵撳紑鎴栧叧闂椂瑙﹀彂锛宭eft\right\none
- */
-
- export default {
- mixins: [mpwxs,bindingx,mpother],
- emits:['click','change'],
- props: {
- // 鎺у埗寮�鍏�
- show: {
- type: String,
- default: 'none'
- },
-
- // 绂佺敤
- disabled: {
- type: Boolean,
- default: false
- },
-
- // 鏄惁鑷姩鍏抽棴
- autoClose: {
- type: Boolean,
- default: true
- },
-
- // 婊戝姩缂虹渷璺濈
- threshold: {
- type: Number,
- default: 20
- },
-
- // 宸︿晶鎸夐挳鍐呭
- leftOptions: {
- type: Array,
- default () {
- return []
- }
- },
-
- // 鍙充晶鎸夐挳鍐呭
- rightOptions: {
- type: Array,
- default () {
- return []
- }
- }
-
- },
- // #ifndef VUE3
- // TODO vue2
- destroyed() {
- if (this.__isUnmounted) return
- this.uninstall()
- },
- // #endif
- // #ifdef VUE3
- // TODO vue3
- unmounted() {
- this.__isUnmounted = true
- this.uninstall()
- },
- // #endif
-
- methods: {
- uninstall() {
- if (this.swipeaction) {
- this.swipeaction.children.forEach((item, index) => {
- if (item === this) {
- this.swipeaction.children.splice(index, 1)
- }
- })
- }
- },
- /**
- * 鑾峰彇鐖跺厓绱犲疄渚�
- */
- getSwipeAction(name = 'uniSwipeAction') {
- let parent = this.$parent;
- let parentName = parent.$options.name;
- while (parentName !== name) {
- parent = parent.$parent;
- if (!parent) return false;
- parentName = parent.$options.name;
- }
- return parent;
- }
- }
- }
-</script>
-<style lang="scss" scoped>
- .uni-swipe {
- position: relative;
- /* #ifndef APP-NVUE */
- overflow: hidden;
- /* #endif */
- }
-
- .uni-swipe_box {
- /* #ifndef APP-NVUE */
- display: flex;
- flex-shrink: 0;
- // touch-action: none;
- /* #endif */
- position: relative;
- }
-
- .uni-swipe_content {
- // border: 1px red solid;
- }
-
- .uni-swipe_text--center {
- width: 100%;
- /* #ifndef APP-NVUE */
- cursor: grab;
- /* #endif */
- }
-
- .uni-swipe_button-group {
- /* #ifndef APP-NVUE */
- box-sizing: border-box;
- display: flex;
- /* #endif */
- flex-direction: row;
- position: absolute;
- top: 0;
- bottom: 0;
- /* #ifdef H5 */
- cursor: pointer;
- /* #endif */
- }
-
- .button-group--left {
- left: 0;
- transform: translateX(-100%)
- }
-
- .button-group--right {
- right: 0;
- transform: translateX(100%)
- }
-
- .uni-swipe_button {
- /* #ifdef APP-NVUE */
- flex: 1;
- /* #endif */
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex-direction: row;
- justify-content: center;
- align-items: center;
- padding: 0 20px;
- }
-
- .uni-swipe_button-text {
- /* #ifndef APP-NVUE */
- flex-shrink: 0;
- /* #endif */
- font-size: 14px;
- }
-
- .ani {
- transition-property: transform;
- transition-duration: 0.3s;
- transition-timing-function: cubic-bezier(0.165, 0.84, 0.44, 1);
- }
-
- /* #ifdef MP-ALIPAY */
- .movable-area {
- /* width: 100%; */
- height: 45px;
- }
-
- .movable-view {
- display: flex;
- /* justify-content: center; */
- position: relative;
- flex: 1;
- height: 45px;
- z-index: 2;
- }
-
- .movable-view-button {
- display: flex;
- flex-shrink: 0;
- flex-direction: row;
- height: 100%;
- background: #C0C0C0;
- }
-
- /* .transition {
- transition: all 0.3s;
- } */
-
- .movable-view-box {
- flex-shrink: 0;
- height: 100%;
- background-color: #fff;
- }
-
- /* #endif */
-</style>
diff --git a/uni_modules/uni-swipe-action/components/uni-swipe-action-item/wx.wxs b/uni_modules/uni-swipe-action/components/uni-swipe-action-item/wx.wxs
deleted file mode 100644
index b394244..0000000
--- a/uni_modules/uni-swipe-action/components/uni-swipe-action-item/wx.wxs
+++ /dev/null
@@ -1,341 +0,0 @@
-var MIN_DISTANCE = 10;
-
-/**
- * 鍒ゆ柇褰撳墠鏄惁涓篐5銆乤pp-vue
- */
-var IS_HTML5 = false
-if (typeof window === 'object') IS_HTML5 = true
-
-/**
- * 鐩戝惉椤甸潰鍐呭�肩殑鍙樺寲,涓昏鐢ㄤ簬鍔ㄦ�佸紑鍏硈wipe-action
- * @param {Object} newValue
- * @param {Object} oldValue
- * @param {Object} ownerInstance
- * @param {Object} instance
- */
-function showWatch(newVal, oldVal, ownerInstance, instance) {
- var state = instance.getState()
- getDom(instance, ownerInstance)
- if (newVal && newVal !== 'none') {
- openState(newVal, instance, ownerInstance)
- return
- }
-
- if (state.left) {
- openState('none', instance, ownerInstance)
- }
- resetTouchStatus(instance)
-}
-
-/**
- * 寮�濮嬭Е鎽告搷浣�
- * @param {Object} e
- * @param {Object} ins
- */
-function touchstart(e, ownerInstance) {
- var instance = e.instance;
- var disabled = instance.getDataset().disabled
- var state = instance.getState();
- getDom(instance, ownerInstance)
- // fix by mehaotian, TODO 鍏煎 app-vue 鑾峰彇dataset涓哄瓧绗︿覆 , h5 鑾峰彇 涓� undefined 鐨勯棶棰�,寰呮鏋朵慨澶�
- disabled = (typeof(disabled) === 'string' ? JSON.parse(disabled) : disabled) || false;
- if (disabled) return
- // 寮�濮嬭Е鎽告椂绉婚櫎鍔ㄧ敾绫�
- instance.requestAnimationFrame(function() {
- instance.removeClass('ani');
- ownerInstance.callMethod('closeSwipe');
- })
-
- // 璁板綍涓婃鐨勪綅缃�
- state.x = state.left || 0
- // 璁$畻婊戝姩寮�濮嬩綅缃�
- stopTouchStart(e, ownerInstance)
-}
-
-/**
- * 寮�濮嬫粦鍔ㄦ搷浣�
- * @param {Object} e
- * @param {Object} ownerInstance
- */
-function touchmove(e, ownerInstance) {
- var instance = e.instance;
- var disabled = instance.getDataset().disabled
- var state = instance.getState()
- // fix by mehaotian, TODO 鍏煎 app-vue 鑾峰彇dataset涓哄瓧绗︿覆 , h5 鑾峰彇 涓� undefined 鐨勯棶棰�,寰呮鏋朵慨澶�
- disabled = (typeof(disabled) === 'string' ? JSON.parse(disabled) : disabled) || false;
- if (disabled) return
- // 鏄惁鍙互婊戝姩椤甸潰
- stopTouchMove(e);
- if (state.direction !== 'horizontal') {
- return;
- }
-
- if (e.preventDefault) {
- // 闃绘椤甸潰婊氬姩
- e.preventDefault()
- }
-
- move(state.x + state.deltaX, instance, ownerInstance)
-}
-
-/**
- * 缁撴潫瑙︽懜鎿嶄綔
- * @param {Object} e
- * @param {Object} ownerInstance
- */
-function touchend(e, ownerInstance) {
- var instance = e.instance;
- var disabled = instance.getDataset().disabled
- var state = instance.getState()
- // fix by mehaotian, TODO 鍏煎 app-vue 鑾峰彇dataset涓哄瓧绗︿覆 , h5 鑾峰彇 涓� undefined 鐨勯棶棰�,寰呮鏋朵慨澶�
- disabled = (typeof(disabled) === 'string' ? JSON.parse(disabled) : disabled) || false;
-
- if (disabled) return
- // 婊戝姩杩囩▼涓Е鎽哥粨鏉�,閫氳繃闃欏�煎垽鏂槸寮�鍚繕鏄叧闂�
- // fixed by mehaotian 瀹氭椂鍣ㄨВ鍐崇偣鍑绘寜閽紝touchend 瑙﹀彂姣� click 浜嬩欢鏃舵満鏃╃殑闂 锛屼富瑕佹槸 ios13
- moveDirection(state.left, instance, ownerInstance)
-
-}
-
-/**
- * 璁剧疆绉诲姩璺濈
- * @param {Object} value
- * @param {Object} instance
- * @param {Object} ownerInstance
- */
-function move(value, instance, ownerInstance) {
- value = value || 0
- var state = instance.getState()
- var leftWidth = state.leftWidth
- var rightWidth = state.rightWidth
- // 鑾峰彇鍙粦鍔ㄨ寖鍥�
- state.left = range(value, -rightWidth, leftWidth);
- instance.requestAnimationFrame(function() {
- instance.setStyle({
- transform: 'translateX(' + state.left + 'px)',
- '-webkit-transform': 'translateX(' + state.left + 'px)'
- })
- })
-
-}
-
-/**
- * 鑾峰彇鍏冪礌淇℃伅
- * @param {Object} instance
- * @param {Object} ownerInstance
- */
-function getDom(instance, ownerInstance) {
- var state = instance.getState()
- var leftDom = ownerInstance.selectComponent('.button-group--left')
- var rightDom = ownerInstance.selectComponent('.button-group--right')
- var leftStyles = {
- width: 0
- }
- var rightStyles = {
- width: 0
- }
- leftStyles = leftDom.getBoundingClientRect()
- rightStyles = rightDom.getBoundingClientRect()
-
- state.leftWidth = leftStyles.width || 0
- state.rightWidth = rightStyles.width || 0
- state.threshold = instance.getDataset().threshold
-}
-
-/**
- * 鑾峰彇鑼冨洿
- * @param {Object} num
- * @param {Object} min
- * @param {Object} max
- */
-function range(num, min, max) {
- return Math.min(Math.max(num, min), max);
-}
-
-
-/**
- * 绉诲姩鏂瑰悜鍒ゆ柇
- * @param {Object} left
- * @param {Object} value
- * @param {Object} ownerInstance
- * @param {Object} ins
- */
-function moveDirection(left, ins, ownerInstance) {
- var state = ins.getState()
- var threshold = state.threshold
- var position = state.position
- var isopen = state.isopen || 'none'
- var leftWidth = state.leftWidth
- var rightWidth = state.rightWidth
- if (state.deltaX === 0) {
- openState('none', ins, ownerInstance)
- return
- }
- if ((isopen === 'none' && rightWidth > 0 && -left > threshold) || (isopen !== 'none' && rightWidth > 0 &&
- rightWidth +
- left < threshold)) {
- // right
- openState('right', ins, ownerInstance)
- } else if ((isopen === 'none' && leftWidth > 0 && left > threshold) || (isopen !== 'none' && leftWidth > 0 &&
- leftWidth - left < threshold)) {
- // left
- openState('left', ins, ownerInstance)
- } else {
- // default
- openState('none', ins, ownerInstance)
- }
-}
-
-
-/**
- * 寮�鍚姸鎬�
- * @param {Boolean} type
- * @param {Object} ins
- * @param {Object} ownerInstance
- */
-function openState(type, ins, ownerInstance) {
- var state = ins.getState()
- var leftWidth = state.leftWidth
- var rightWidth = state.rightWidth
- var left = ''
- state.isopen = state.isopen ? state.isopen : 'none'
- switch (type) {
- case "left":
- left = leftWidth
- break
- case "right":
- left = -rightWidth
- break
- default:
- left = 0
- }
-
- // && !state.throttle
-
- if (state.isopen !== type) {
- state.throttle = true
- ownerInstance.callMethod('change', {
- open: type
- })
-
- }
-
- state.isopen = type
- // 娣诲姞鍔ㄧ敾绫�
- ins.requestAnimationFrame(function() {
- ins.addClass('ani');
- move(left, ins, ownerInstance)
- })
- // 璁剧疆鏈�缁堢Щ鍔ㄤ綅缃�,鐞嗚涓婂彧瑕佽繘鍏ュ埌杩欎釜鍑芥暟锛岃偗瀹氭槸瑕佹墦寮�鐨�
-}
-
-
-function getDirection(x, y) {
- if (x > y && x > MIN_DISTANCE) {
- return 'horizontal';
- }
- if (y > x && y > MIN_DISTANCE) {
- return 'vertical';
- }
- return '';
-}
-
-/**
- * 閲嶇疆婊戝姩鐘舵��
- * @param {Object} event
- */
-function resetTouchStatus(instance) {
- var state = instance.getState();
- state.direction = '';
- state.deltaX = 0;
- state.deltaY = 0;
- state.offsetX = 0;
- state.offsetY = 0;
-}
-
-/**
- * 璁剧疆婊戝姩寮�濮嬩綅缃�
- * @param {Object} event
- */
-function stopTouchStart(event) {
- var instance = event.instance;
- var state = instance.getState();
- resetTouchStatus(instance);
- var touch = event.touches[0];
- if (IS_HTML5 && isPC()) {
- touch = event;
- }
- state.startX = touch.clientX;
- state.startY = touch.clientY;
-}
-
-/**
- * 婊戝姩涓紝鏄惁绂佹鎵撳紑
- * @param {Object} event
- */
-function stopTouchMove(event) {
- var instance = event.instance;
- var state = instance.getState();
- var touch = event.touches[0];
- if (IS_HTML5 && isPC()) {
- touch = event;
- }
- state.deltaX = touch.clientX - state.startX;
- state.deltaY = touch.clientY - state.startY;
- state.offsetY = Math.abs(state.deltaY);
- state.offsetX = Math.abs(state.deltaX);
- state.direction = state.direction || getDirection(state.offsetX, state.offsetY);
-}
-
-function isPC() {
- var userAgentInfo = navigator.userAgent;
- var Agents = ["Android", "iPhone", "SymbianOS", "Windows Phone", "iPad", "iPod"];
- var flag = true;
- for (var v = 0; v < Agents.length - 1; v++) {
- if (userAgentInfo.indexOf(Agents[v]) > 0) {
- flag = false;
- break;
- }
- }
- return flag;
-}
-
-var movable = false
-
-function mousedown(e, ins) {
- if (!IS_HTML5) return
- if (!isPC()) return
- touchstart(e, ins)
- movable = true
-}
-
-function mousemove(e, ins) {
- if (!IS_HTML5) return
- if (!isPC()) return
- if (!movable) return
- touchmove(e, ins)
-}
-
-function mouseup(e, ins) {
- if (!IS_HTML5) return
- if (!isPC()) return
- touchend(e, ins)
- movable = false
-}
-
-function mouseleave(e, ins) {
- if (!IS_HTML5) return
- if (!isPC()) return
- movable = false
-}
-
-module.exports = {
- showWatch: showWatch,
- touchstart: touchstart,
- touchmove: touchmove,
- touchend: touchend,
- mousedown: mousedown,
- mousemove: mousemove,
- mouseup: mouseup,
- mouseleave: mouseleave
-}
diff --git a/uni_modules/uni-swipe-action/components/uni-swipe-action/uni-swipe-action.vue b/uni_modules/uni-swipe-action/components/uni-swipe-action/uni-swipe-action.vue
deleted file mode 100644
index 4971782..0000000
--- a/uni_modules/uni-swipe-action/components/uni-swipe-action/uni-swipe-action.vue
+++ /dev/null
@@ -1,60 +0,0 @@
-<template>
- <view>
- <slot></slot>
- </view>
-</template>
-
-<script>
- /**
- * SwipeAction 婊戝姩鎿嶄綔
- * @description 閫氳繃婊戝姩瑙﹀彂閫夐」鐨勫鍣�
- * @tutorial https://ext.dcloud.net.cn/plugin?id=181
- */
- export default {
- name:"uniSwipeAction",
- data() {
- return {};
- },
- created() {
- this.children = [];
- },
- methods: {
- // 鍏紑缁欑敤鎴蜂娇鐢紝閲嶅埗缁勪欢鏍峰紡
- resize(){
- // wxs 浼氳嚜宸辫绠楃粍浠跺ぇ灏忥紝鎵�浠ユ棤闇�鎵ц涓嬮潰浠g爜
- // #ifndef APP-VUE || H5 || MP-WEIXIN
- this.children.forEach(vm=>{
- vm.init()
- })
- // #endif
- },
- // 鍏紑缁欑敤鎴蜂娇鐢紝鍏抽棴鍏ㄩ儴 宸茬粡鎵撳紑鐨勭粍浠�
- closeAll(){
- this.children.forEach(vm=>{
- // #ifdef APP-VUE || H5 || MP-WEIXIN
- vm.is_show = 'none'
- // #endif
-
- // #ifndef APP-VUE || H5 || MP-WEIXIN
- vm.close()
- // #endif
- })
- },
- closeOther(vm) {
- if (this.openItem && this.openItem !== vm) {
- // #ifdef APP-VUE || H5 || MP-WEIXIN
- this.openItem.is_show = 'none'
- // #endif
-
- // #ifndef APP-VUE || H5 || MP-WEIXIN
- this.openItem.close()
- // #endif
- }
- // 璁板綍涓婁竴涓墦寮�鐨� swipe-action-item ,鐢ㄤ簬 auto-close
- this.openItem = vm
- }
- }
- };
-</script>
-
-<style></style>
diff --git a/uni_modules/uni-swipe-action/package.json b/uni_modules/uni-swipe-action/package.json
deleted file mode 100644
index 48bb1a1..0000000
--- a/uni_modules/uni-swipe-action/package.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "id": "uni-swipe-action",
- "displayName": "uni-swipe-action 婊戝姩鎿嶄綔",
- "version": "1.3.0",
- "description": "SwipeAction 婊戝姩鎿嶄綔鎿嶄綔缁勪欢",
- "keywords": [
- "",
- "uni-ui",
- "uniui",
- "婊戝姩鍒犻櫎",
- "渚ф粦鍒犻櫎"
-],
- "repository": "https://github.com/dcloudio/uni-ui",
- "engines": {
- "HBuilderX": ""
- },
- "directories": {
- "example": "../../temps/example_temps"
- },
- "dcloudext": {
- "category": [
- "鍓嶇缁勪欢",
- "閫氱敤缁勪欢"
- ],
- "sale": {
- "regular": {
- "price": "0.00"
- },
- "sourcecode": {
- "price": "0.00"
- }
- },
- "contact": {
- "qq": ""
- },
- "declaration": {
- "ads": "鏃�",
- "data": "鏃�",
- "permissions": "鏃�"
- },
- "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui"
- },
- "uni_modules": {
- "dependencies": ["uni-scss"],
- "encrypt": [],
- "platforms": {
- "cloud": {
- "tcb": "y",
- "aliyun": "y"
- },
- "client": {
- "App": {
- "app-vue": "y",
- "app-nvue": "y"
- },
- "H5-mobile": {
- "Safari": "y",
- "Android Browser": "y",
- "寰俊娴忚鍣�(Android)": "y",
- "QQ娴忚鍣�(Android)": "y"
- },
- "H5-pc": {
- "Chrome": "y",
- "IE": "y",
- "Edge": "y",
- "Firefox": "y",
- "Safari": "y"
- },
- "灏忕▼搴�": {
- "寰俊": "y",
- "闃块噷": "y",
- "鐧惧害": "y",
- "瀛楄妭璺冲姩": "y",
- "QQ": "y"
- },
- "蹇簲鐢�": {
- "鍗庝负": "y",
- "鑱旂洘": "u"
- },
- "Vue": {
- "vue2": "y",
- "vue3": "y"
- }
- }
- }
- }
-}
\ No newline at end of file
diff --git a/uni_modules/uni-swipe-action/readme.md b/uni_modules/uni-swipe-action/readme.md
deleted file mode 100644
index 93a5cac..0000000
--- a/uni_modules/uni-swipe-action/readme.md
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
-## SwipeAction 婊戝姩鎿嶄綔
-> **缁勪欢鍚嶏細uni-swipe-action**
-> 浠g爜鍧楋細 `uSwipeAction`銆乣uSwipeActionItem`
-
-
-閫氳繃婊戝姩瑙﹀彂閫夐」鐨勫鍣�
-
-### [鏌ョ湅鏂囨。](https://uniapp.dcloud.io/component/uniui/uni-swipe-action)
-#### 濡備娇鐢ㄨ繃绋嬩腑鏈変换浣曢棶棰橈紝鎴栬�呮偍瀵箄ni-ui鏈変竴浜涘ソ鐨勫缓璁紝娆㈣繋鍔犲叆 uni-ui 浜ゆ祦缇わ細871950839
\ No newline at end of file
diff --git a/uni_modules/uni-swiper-dot/changelog.md b/uni_modules/uni-swiper-dot/changelog.md
deleted file mode 100644
index 85cf54d..0000000
--- a/uni_modules/uni-swiper-dot/changelog.md
+++ /dev/null
@@ -1,12 +0,0 @@
-## 1.2.0锛�2021-11-19锛�
-- 浼樺寲 缁勪欢UI锛屽苟鎻愪緵璁捐璧勬簮锛岃瑙�:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource)
-- 鏂囨。杩佺Щ锛岃瑙�:[https://uniapp.dcloud.io/component/uniui/uni-swiper-dot](https://uniapp.dcloud.io/component/uniui/uni-swiper-dot)
-## 1.1.0锛�2021-07-30锛�
-- 缁勪欢鍏煎 vue3锛屽浣曞垱寤簐ue3椤圭洰锛岃瑙� [uni-app 椤圭洰鏀寔 vue3 浠嬬粛](https://ask.dcloud.net.cn/article/37834)
-## 1.0.6锛�2021-05-12锛�
-- 鏂板 绀轰緥鍦板潃
-- 淇 绀轰緥椤圭洰缂哄皯缁勪欢鐨凚ug
-## 1.0.5锛�2021-02-05锛�
-- 璋冩暣涓簎ni_modules鐩綍瑙勮寖
-- 鏂板 clickItem 浜嬩欢锛屾敮鎸佹寚绀虹偣鎺у埗杞挱
-- 鏂板 鏀寔 pc 鍙敤
diff --git a/uni_modules/uni-swiper-dot/components/uni-swiper-dot/uni-swiper-dot.vue b/uni_modules/uni-swiper-dot/components/uni-swiper-dot/uni-swiper-dot.vue
deleted file mode 100644
index e66b6c7..0000000
--- a/uni_modules/uni-swiper-dot/components/uni-swiper-dot/uni-swiper-dot.vue
+++ /dev/null
@@ -1,218 +0,0 @@
-<template>
- <view class="uni-swiper__warp">
- <slot />
- <view v-if="mode === 'default'" :style="{'bottom':dots.bottom + 'px'}" class="uni-swiper__dots-box" key='default'>
- <view v-for="(item,index) in info" @click="clickItem(index)" :style="{
- 'width': (index === current? dots.width*2:dots.width ) + 'px','height':dots.width/2 +'px' ,'background-color':index !== current?dots.backgroundColor:dots.selectedBackgroundColor,'border-radius':'0px'}"
- :key="index" class="uni-swiper__dots-item uni-swiper__dots-bar" />
- </view>
- <view v-if="mode === 'dot'" :style="{'bottom':dots.bottom + 'px'}" class="uni-swiper__dots-box" key='dot'>
- <view v-for="(item,index) in info" @click="clickItem(index)" :style="{
- 'width': dots.width + 'px','height':dots.height +'px' ,'background-color':index !== current?dots.backgroundColor:dots.selectedBackgroundColor,'border':index !==current ? dots.border:dots.selectedBorder}"
- :key="index" class="uni-swiper__dots-item" />
- </view>
- <view v-if="mode === 'round'" :style="{'bottom':dots.bottom + 'px'}" class="uni-swiper__dots-box" key='round'>
- <view v-for="(item,index) in info" @click="clickItem(index)" :class="[index === current&&'uni-swiper__dots-long']" :style="{
- 'width':(index === current? dots.width*3:dots.width ) + 'px','height':dots.height +'px' ,'background-color':index !== current?dots.backgroundColor:dots.selectedBackgroundColor,'border':index !==current ? dots.border:dots.selectedBorder}"
- :key="index" class="uni-swiper__dots-item " />
- </view>
- <view v-if="mode === 'nav'" key='nav' :style="{'background-color':dotsStyles.backgroundColor,'bottom':'0'}" class="uni-swiper__dots-box uni-swiper__dots-nav">
- <text :style="{'color':dotsStyles.color}" class="uni-swiper__dots-nav-item">{{ (current+1)+"/"+info.length +' ' +info[current][field] }}</text>
- </view>
- <view v-if="mode === 'indexes'" key='indexes' :style="{'bottom':dots.bottom + 'px'}" class="uni-swiper__dots-box">
- <view v-for="(item,index) in info" @click="clickItem(index)" :style="{
- 'width':dots.width + 'px','height':dots.height +'px' ,'color':index === current?dots.selectedColor:dots.color,'background-color':index !== current?dots.backgroundColor:dots.selectedBackgroundColor,'border':index !==current ? dots.border:dots.selectedBorder}"
- :key="index" class="uni-swiper__dots-item uni-swiper__dots-indexes"><text class="uni-swiper__dots-indexes-text">{{ index+1 }}</text></view>
- </view>
- </view>
-</template>
-
-<script>
-
- /**
- * SwiperDod 杞挱鍥炬寚绀虹偣
- * @description 鑷畾涔夎疆鎾浘鎸囩ず鐐�
- * @tutorial https://ext.dcloud.net.cn/plugin?id=284
- * @property {Number} current 褰撳墠鎸囩ず鐐圭储寮曪紝蹇呴』鏄�氳繃 `swiper` 鐨� `change` 浜嬩欢鑾峰彇鍒扮殑 `e.detail.current`
- * @property {String} mode = [default|round|nav|indexes] 鎸囩ず鐐圭殑绫诲瀷
- * @value defualt 榛樿鎸囩ず鐐�
- * @value round 鍦嗗舰鎸囩ず鐐�
- * @value nav 鏉″舰鎸囩ず鐐�
- * @value indexes 绱㈠紩鎸囩ず鐐�
- * @property {String} field mode 涓� nav 鏃讹紝鏄剧ず鐨勫唴瀹瑰瓧娈碉紙mode = nav 鏃跺繀濉級
- * @property {String} info 杞挱鍥剧殑鏁版嵁锛岄�氳繃鏁扮粍闀垮害鍐冲畾鎸囩ず鐐逛釜鏁�
- * @property {Object} dotsStyles 鎸囩ず鐐规牱寮�
- * @event {Function} clickItem 缁勪欢瑙﹀彂鐐瑰嚮浜嬩欢鏃惰Е鍙戯紝e={currentIndex}
- */
-
- export default {
- name: 'UniSwiperDot',
- emits:['clickItem'],
- props: {
- info: {
- type: Array,
- default () {
- return []
- }
- },
- current: {
- type: Number,
- default: 0
- },
- dotsStyles: {
- type: Object,
- default () {
- return {}
- }
- },
- // 绫诲瀷 锛歞efault(榛樿) indexes long nav
- mode: {
- type: String,
- default: 'default'
- },
- // 鍙湪 nav 妯″紡涓嬬敓鏁堬紝鍙橀噺鍚嶇О
- field: {
- type: String,
- default: ''
- }
- },
- data() {
- return {
- dots: {
- width: 6,
- height: 6,
- bottom: 10,
- color: '#fff',
- backgroundColor: 'rgba(0, 0, 0, .3)',
- border: '1px rgba(0, 0, 0, .3) solid',
- selectedBackgroundColor: '#333',
- selectedBorder: '1px rgba(0, 0, 0, .9) solid'
- }
- }
- },
- watch: {
- dotsStyles(newVal) {
- this.dots = Object.assign(this.dots, this.dotsStyles)
- },
- mode(newVal) {
- if (newVal === 'indexes') {
- this.dots.width = 14
- this.dots.height = 14
- } else {
- this.dots.width = 6
- this.dots.height = 6
- }
- }
-
- },
- created() {
- if (this.mode === 'indexes') {
- this.dots.width = 12
- this.dots.height = 12
- }
- this.dots = Object.assign(this.dots, this.dotsStyles)
- },
- methods: {
- clickItem(index) {
- this.$emit('clickItem', index)
- }
- }
- }
-</script>
-
-<style lang="scss" scoped>
- .uni-swiper__warp {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex: 1;
- flex-direction: column;
- position: relative;
- overflow: hidden;
- }
-
- .uni-swiper__dots-box {
- position: absolute;
- bottom: 10px;
- left: 0;
- right: 0;
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex: 1;
- flex-direction: row;
- justify-content: center;
- align-items: center;
- }
-
- .uni-swiper__dots-item {
- width: 8px;
- border-radius: 100px;
- margin-left: 6px;
- background-color: rgba(0, 0, 0, 0.4);
- /* #ifndef APP-NVUE */
- cursor: pointer;
- /* #endif */
- /* #ifdef H5 */
- // border-width: 5px 0;
- // border-style: solid;
- // border-color: transparent;
- // background-clip: padding-box;
- /* #endif */
- // transition: width 0.2s linear; 涓嶈鍙栨秷娉ㄩ噴锛屼笉鐒朵細涓嶈兘鍙樿壊
- }
-
- .uni-swiper__dots-item:first-child {
- margin: 0;
- }
-
- .uni-swiper__dots-default {
- border-radius: 100px;
- }
-
- .uni-swiper__dots-long {
- border-radius: 50px;
- }
-
- .uni-swiper__dots-bar {
- border-radius: 50px;
- }
-
- .uni-swiper__dots-nav {
- bottom: 0px;
- // height: 26px;
- padding: 8px 0;
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex: 1;
- flex-direction: row;
- justify-content: flex-start;
- align-items: center;
- background-color: rgba(0, 0, 0, 0.2);
- }
-
- .uni-swiper__dots-nav-item {
- /* overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap; */
- font-size: 14px;
- color: #fff;
- margin: 0 15px;
- }
-
- .uni-swiper__dots-indexes {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- // flex: 1;
- justify-content: center;
- align-items: center;
- }
-
- .uni-swiper__dots-indexes-text {
- color: #fff;
- font-size: 12px;
- line-height: 14px;
- }
-</style>
diff --git a/uni_modules/uni-swiper-dot/package.json b/uni_modules/uni-swiper-dot/package.json
deleted file mode 100644
index f2dd8d2..0000000
--- a/uni_modules/uni-swiper-dot/package.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "id": "uni-swiper-dot",
- "displayName": "uni-swiper-dot 杞挱鍥炬寚绀虹偣",
- "version": "1.2.0",
- "description": "鑷畾涔夎疆鎾浘鎸囩ず鐐圭粍浠�",
- "keywords": [
- "uni-ui",
- "uniui",
- "杞挱鍥炬寚绀虹偣",
- "dot",
- "swiper"
-],
- "repository": "https://github.com/dcloudio/uni-ui",
- "engines": {
- "HBuilderX": ""
- },
- "directories": {
- "example": "../../temps/example_temps"
- },
- "dcloudext": {
- "category": [
- "鍓嶇缁勪欢",
- "閫氱敤缁勪欢"
- ],
- "sale": {
- "regular": {
- "price": "0.00"
- },
- "sourcecode": {
- "price": "0.00"
- }
- },
- "contact": {
- "qq": ""
- },
- "declaration": {
- "ads": "鏃�",
- "data": "鏃�",
- "permissions": "鏃�"
- },
- "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui"
- },
- "uni_modules": {
- "dependencies": ["uni-scss"],
- "encrypt": [],
- "platforms": {
- "cloud": {
- "tcb": "y",
- "aliyun": "y"
- },
- "client": {
- "App": {
- "app-vue": "y",
- "app-nvue": "y"
- },
- "H5-mobile": {
- "Safari": "y",
- "Android Browser": "y",
- "寰俊娴忚鍣�(Android)": "y",
- "QQ娴忚鍣�(Android)": "y"
- },
- "H5-pc": {
- "Chrome": "y",
- "IE": "y",
- "Edge": "y",
- "Firefox": "y",
- "Safari": "y"
- },
- "灏忕▼搴�": {
- "寰俊": "y",
- "闃块噷": "y",
- "鐧惧害": "y",
- "瀛楄妭璺冲姩": "y",
- "QQ": "y"
- },
- "蹇簲鐢�": {
- "鍗庝负": "u",
- "鑱旂洘": "u"
- },
- "Vue": {
- "vue2": "y",
- "vue3": "y"
- }
- }
- }
- }
-}
\ No newline at end of file
diff --git a/uni_modules/uni-swiper-dot/readme.md b/uni_modules/uni-swiper-dot/readme.md
deleted file mode 100644
index 7d397e2..0000000
--- a/uni_modules/uni-swiper-dot/readme.md
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
-## SwiperDot 杞挱鍥炬寚绀虹偣
-> **缁勪欢鍚嶏細uni-swiper-dot**
-> 浠g爜鍧楋細 `uSwiperDot`
-
-
-鑷畾涔夎疆鎾浘鎸囩ず鐐�
-
-### [鏌ョ湅鏂囨。](https://uniapp.dcloud.io/component/uniui/uni-swiper-dot)
-#### 濡備娇鐢ㄨ繃绋嬩腑鏈変换浣曢棶棰橈紝鎴栬�呮偍瀵箄ni-ui鏈変竴浜涘ソ鐨勫缓璁紝娆㈣繋鍔犲叆 uni-ui 浜ゆ祦缇わ細871950839
\ No newline at end of file
diff --git a/uni_modules/uni-table/changelog.md b/uni_modules/uni-table/changelog.md
deleted file mode 100644
index b7aada3..0000000
--- a/uni_modules/uni-table/changelog.md
+++ /dev/null
@@ -1,21 +0,0 @@
-## 1.2.0锛�2021-11-19锛�
-- 浼樺寲 缁勪欢UI锛屽苟鎻愪緵璁捐璧勬簮锛岃瑙�:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource)
-- 鏂囨。杩佺Щ锛岃瑙�:[https://uniapp.dcloud.io/component/uniui/uni-table](https://uniapp.dcloud.io/component/uniui/uni-table)
-## 1.1.0锛�2021-07-30锛�
-- 缁勪欢鍏煎 vue3锛屽浣曞垱寤簐ue3椤圭洰锛岃瑙� [uni-app 椤圭洰鏀寔 vue3 浠嬬粛](https://ask.dcloud.net.cn/article/37834)
-## 1.0.7锛�2021-07-08锛�
-- 鏂板 uni-th 鏀寔 date 鏃ユ湡绛涢�夎寖鍥�
-## 1.0.6锛�2021-07-05锛�
-- 鏂板 uni-th 鏀寔 range 绛涢�夎寖鍥�
-## 1.0.5锛�2021-06-28锛�
-- 鏂板 uni-th 绛涢�夊姛鑳�
-## 1.0.4锛�2021-05-12锛�
-- 鏂板 绀轰緥鍦板潃
-- 淇 绀轰緥椤圭洰缂哄皯缁勪欢鐨凚ug
-## 1.0.3锛�2021-04-16锛�
-- 鏂板 sortable 灞炴�э紝鏄惁寮�鍚崟鍒楁帓搴�
-- 浼樺寲 琛ㄦ牸澶氶�夐�昏緫
-## 1.0.2锛�2021-03-22锛�
-- uni-tr 娣诲姞 disabled 灞炴�э紝鐢ㄤ簬 type=selection 鏃讹紝璁剧疆鏌愯鏄惁鍙敱鍏ㄩ�夋寜閽帶鍒�
-## 1.0.1锛�2021-02-05锛�
-- 璋冩暣涓簎ni_modules鐩綍瑙勮寖
diff --git a/uni_modules/uni-table/components/uni-table/uni-table.vue b/uni_modules/uni-table/components/uni-table/uni-table.vue
deleted file mode 100644
index 91b74fa..0000000
--- a/uni_modules/uni-table/components/uni-table/uni-table.vue
+++ /dev/null
@@ -1,455 +0,0 @@
-<template>
- <view class="uni-table-scroll" :class="{ 'table--border': border, 'border-none': !noData }">
- <!-- #ifdef H5 -->
- <table class="uni-table" border="0" cellpadding="0" cellspacing="0" :class="{ 'table--stripe': stripe }" :style="{ 'min-width': minWidth + 'px' }">
- <slot></slot>
- <view v-if="noData" class="uni-table-loading">
- <view class="uni-table-text" :class="{ 'empty-border': border }">{{ emptyText }}</view>
- </view>
- <view v-if="loading" class="uni-table-mask" :class="{ 'empty-border': border }"><div class="uni-table--loader"></div></view>
- </table>
- <!-- #endif -->
- <!-- #ifndef H5 -->
- <view class="uni-table" :style="{ 'min-width': minWidth + 'px' }" :class="{ 'table--stripe': stripe }">
- <slot></slot>
- <view v-if="noData" class="uni-table-loading">
- <view class="uni-table-text" :class="{ 'empty-border': border }">{{ emptyText }}</view>
- </view>
- <view v-if="loading" class="uni-table-mask" :class="{ 'empty-border': border }"><div class="uni-table--loader"></div></view>
- </view>
- <!-- #endif -->
- </view>
-</template>
-
-<script>
-/**
- * Table 琛ㄦ牸
- * @description 鐢ㄤ簬灞曠ず澶氭潯缁撴瀯绫讳技鐨勬暟鎹�
- * @tutorial https://ext.dcloud.net.cn/plugin?id=3270
- * @property {Boolean} border 鏄惁甯︽湁绾靛悜杈规
- * @property {Boolean} stripe 鏄惁鏄剧ず鏂戦┈绾�
- * @property {Boolean} type 鏄惁寮�鍚閫�
- * @property {String} emptyText 绌烘暟鎹椂鏄剧ず鐨勬枃鏈唴瀹�
- * @property {Boolean} loading 鏄剧ず鍔犺浇涓�
- * @event {Function} selection-change 寮�鍚閫夋椂锛屽綋閫夋嫨椤瑰彂鐢熷彉鍖栨椂浼氳Е鍙戣浜嬩欢
- */
-export default {
- name: 'uniTable',
- options: {
- virtualHost: true
- },
- emits:['selection-change'],
- props: {
- data: {
- type: Array,
- default() {
- return []
- }
- },
- // 鏄惁鏈夌珫绾�
- border: {
- type: Boolean,
- default: false
- },
- // 鏄惁鏄剧ず鏂戦┈绾�
- stripe: {
- type: Boolean,
- default: false
- },
- // 澶氶��
- type: {
- type: String,
- default: ''
- },
- // 娌℃湁鏇村鏁版嵁
- emptyText: {
- type: String,
- default: '娌℃湁鏇村鏁版嵁'
- },
- loading: {
- type: Boolean,
- default: false
- },
- rowKey: {
- type: String,
- default: ''
- }
- },
- data() {
- return {
- noData: true,
- minWidth: 0,
- multiTableHeads: []
- }
- },
- watch: {
- loading(val) {},
- data(newVal) {
- let theadChildren = this.theadChildren
- let rowspan = 1
- if (this.theadChildren) {
- rowspan = this.theadChildren.rowspan
- }
-
- // this.trChildren.length - rowspan
- this.noData = false
- // this.noData = newVal.length === 0
- }
- },
- created() {
- // 瀹氫箟tr鐨勫疄渚嬫暟缁�
- this.trChildren = []
- this.thChildren = []
- this.theadChildren = null
- this.backData = []
- this.backIndexData = []
- },
-
- methods: {
- isNodata() {
- let theadChildren = this.theadChildren
- let rowspan = 1
- if (this.theadChildren) {
- rowspan = this.theadChildren.rowspan
- }
- this.noData = this.trChildren.length - rowspan <= 0
- },
- /**
- * 閫変腑鎵�鏈�
- */
- selectionAll() {
- let startIndex = 1
- let theadChildren = this.theadChildren
- if (!this.theadChildren) {
- theadChildren = this.trChildren[0]
- } else {
- startIndex = theadChildren.rowspan - 1
- }
- let isHaveData = this.data && this.data.length.length > 0
- theadChildren.checked = true
- theadChildren.indeterminate = false
- this.trChildren.forEach((item, index) => {
- if (!item.disabled) {
- item.checked = true
- if (isHaveData && item.keyValue) {
- const row = this.data.find(v => v[this.rowKey] === item.keyValue)
- if (!this.backData.find(v => v[this.rowKey] === row[this.rowKey])) {
- this.backData.push(row)
- }
- }
- if (index > (startIndex - 1) && this.backIndexData.indexOf(index - startIndex) === -1) {
- this.backIndexData.push(index - startIndex)
- }
- }
- })
- // this.backData = JSON.parse(JSON.stringify(this.data))
- this.$emit('selection-change', {
- detail: {
- value: this.backData,
- index: this.backIndexData
- }
- })
- },
- /**
- * 鐢ㄤ簬澶氶�夎〃鏍硷紝鍒囨崲鏌愪竴琛岀殑閫変腑鐘舵�侊紝濡傛灉浣跨敤浜嗙浜屼釜鍙傛暟锛屽垯鏄缃繖涓�琛岄�変腑涓庡惁锛坰elected 涓� true 鍒欓�変腑锛�
- */
- toggleRowSelection(row, selected) {
- // if (!this.theadChildren) return
- row = [].concat(row)
-
- this.trChildren.forEach((item, index) => {
- // if (item.keyValue) {
-
- const select = row.findIndex(v => {
- //
- if (typeof v === 'number') {
- return v === index - 1
- } else {
- return v[this.rowKey] === item.keyValue
- }
- })
- let ischeck = item.checked
- if (select !== -1) {
- if (typeof selected === 'boolean') {
- item.checked = selected
- } else {
- item.checked = !item.checked
- }
- if (ischeck !== item.checked) {
- this.check(item.rowData||item, item.checked, item.rowData?item.keyValue:null, true)
- }
- }
- // }
- })
- this.$emit('selection-change', {
- detail: {
- value: this.backData,
- index:this.backIndexData
- }
- })
- },
-
- /**
- * 鐢ㄤ簬澶氶�夎〃鏍硷紝娓呯┖鐢ㄦ埛鐨勯�夋嫨
- */
- clearSelection() {
- let theadChildren = this.theadChildren
- if (!this.theadChildren) {
- theadChildren = this.trChildren[0]
- }
- // if (!this.theadChildren) return
- theadChildren.checked = false
- theadChildren.indeterminate = false
- this.trChildren.forEach(item => {
- // if (item.keyValue) {
- item.checked = false
- // }
- })
- this.backData = []
- this.backIndexData = []
- this.$emit('selection-change', {
- detail: {
- value: [],
- index: []
- }
- })
- },
- /**
- * 鐢ㄤ簬澶氶�夎〃鏍硷紝鍒囨崲鎵�鏈夎鐨勯�変腑鐘舵��
- */
- toggleAllSelection() {
- let list = []
- let startIndex = 1
- let theadChildren = this.theadChildren
- if (!this.theadChildren) {
- theadChildren = this.trChildren[0]
- } else {
- startIndex = theadChildren.rowspan - 1
- }
- this.trChildren.forEach((item, index) => {
- if (!item.disabled) {
- if (index > (startIndex - 1) ) {
- list.push(index-startIndex)
- }
- }
- })
- this.toggleRowSelection(list)
- },
-
- /**
- * 閫変腑\鍙栨秷閫変腑
- * @param {Object} child
- * @param {Object} check
- * @param {Object} rowValue
- */
- check(child, check, keyValue, emit) {
- let theadChildren = this.theadChildren
- if (!this.theadChildren) {
- theadChildren = this.trChildren[0]
- }
-
-
-
- let childDomIndex = this.trChildren.findIndex((item, index) => child === item)
- if(childDomIndex < 0){
- childDomIndex = this.data.findIndex(v=>v[this.rowKey] === keyValue) + 1
- }
- const dataLen = this.trChildren.filter(v => !v.disabled && v.keyValue).length
- if (childDomIndex === 0) {
- check ? this.selectionAll() : this.clearSelection()
- return
- }
-
- if (check) {
- if (keyValue) {
- this.backData.push(child)
- }
- this.backIndexData.push(childDomIndex - 1)
- } else {
- const index = this.backData.findIndex(v => v[this.rowKey] === keyValue)
- const idx = this.backIndexData.findIndex(item => item === childDomIndex - 1)
- if (keyValue) {
- this.backData.splice(index, 1)
- }
- this.backIndexData.splice(idx, 1)
- }
-
- const domCheckAll = this.trChildren.find((item, index) => index > 0 && !item.checked && !item.disabled)
- if (!domCheckAll) {
- theadChildren.indeterminate = false
- theadChildren.checked = true
- } else {
- theadChildren.indeterminate = true
- theadChildren.checked = false
- }
-
- if (this.backIndexData.length === 0) {
- theadChildren.indeterminate = false
- }
-
- if (!emit) {
- this.$emit('selection-change', {
- detail: {
- value: this.backData,
- index: this.backIndexData
- }
- })
- }
- }
- }
-}
-</script>
-
-<style lang="scss">
-$border-color: #ebeef5;
-
-.uni-table-scroll {
- width: 100%;
- /* #ifndef APP-NVUE */
- overflow-x: auto;
- /* #endif */
-}
-
-.uni-table {
- position: relative;
- width: 100%;
- border-radius: 5px;
- // box-shadow: 0px 0px 3px 1px rgba(0, 0, 0, 0.1);
- background-color: #fff;
- /* #ifndef APP-NVUE */
- box-sizing: border-box;
- display: table;
- overflow-x: auto;
- ::v-deep .uni-table-tr:nth-child(n + 2) {
- &:hover {
- background-color: #f5f7fa;
- }
- }
- ::v-deep .uni-table-thead {
- .uni-table-tr {
- // background-color: #f5f7fa;
- &:hover {
- background-color:#fafafa;
- }
- }
- }
- /* #endif */
-}
-
-.table--border {
- border: 1px $border-color solid;
- border-right: none;
-}
-
-.border-none {
- /* #ifndef APP-NVUE */
- border-bottom: none;
- /* #endif */
-}
-
-.table--stripe {
- /* #ifndef APP-NVUE */
- ::v-deep .uni-table-tr:nth-child(2n + 3) {
- background-color: #fafafa;
- }
- /* #endif */
-}
-
-/* 琛ㄦ牸鍔犺浇銆佹棤鏁版嵁鏍峰紡 */
-.uni-table-loading {
- position: relative;
- /* #ifndef APP-NVUE */
- display: table-row;
- /* #endif */
- height: 50px;
- line-height: 50px;
- overflow: hidden;
- box-sizing: border-box;
-}
-.empty-border {
- border-right: 1px $border-color solid;
-}
-.uni-table-text {
- position: absolute;
- right: 0;
- left: 0;
- text-align: center;
- font-size: 14px;
- color: #999;
-}
-
-.uni-table-mask {
- position: absolute;
- top: 0;
- bottom: 0;
- left: 0;
- right: 0;
- background-color: rgba(255, 255, 255, 0.8);
- z-index: 99;
- /* #ifndef APP-NVUE */
- display: flex;
- margin: auto;
- transition: all 0.5s;
- /* #endif */
- justify-content: center;
- align-items: center;
-}
-
-.uni-table--loader {
- width: 30px;
- height: 30px;
- border: 2px solid #aaa;
- // border-bottom-color: transparent;
- border-radius: 50%;
- /* #ifndef APP-NVUE */
- animation: 2s uni-table--loader linear infinite;
- /* #endif */
- position: relative;
-}
-
-@keyframes uni-table--loader {
- 0% {
- transform: rotate(360deg);
- }
-
- 10% {
- border-left-color: transparent;
- }
-
- 20% {
- border-bottom-color: transparent;
- }
-
- 30% {
- border-right-color: transparent;
- }
-
- 40% {
- border-top-color: transparent;
- }
-
- 50% {
- transform: rotate(0deg);
- }
-
- 60% {
- border-top-color: transparent;
- }
-
- 70% {
- border-left-color: transparent;
- }
-
- 80% {
- border-bottom-color: transparent;
- }
-
- 90% {
- border-right-color: transparent;
- }
-
- 100% {
- transform: rotate(-360deg);
- }
-}
-</style>
diff --git a/uni_modules/uni-table/components/uni-tbody/uni-tbody.vue b/uni_modules/uni-table/components/uni-tbody/uni-tbody.vue
deleted file mode 100644
index fbe1bdc..0000000
--- a/uni_modules/uni-table/components/uni-tbody/uni-tbody.vue
+++ /dev/null
@@ -1,29 +0,0 @@
-<template>
- <!-- #ifdef H5 -->
- <tbody>
- <slot></slot>
- </tbody>
- <!-- #endif -->
- <!-- #ifndef H5 -->
- <view><slot></slot></view>
- <!-- #endif -->
-</template>
-
-<script>
-export default {
- name: 'uniBody',
- options: {
- virtualHost: true
- },
- data() {
- return {
-
- }
- },
- created() {},
- methods: {}
-}
-</script>
-
-<style>
-</style>
diff --git a/uni_modules/uni-table/components/uni-td/uni-td.vue b/uni_modules/uni-table/components/uni-td/uni-td.vue
deleted file mode 100644
index 9ce93e9..0000000
--- a/uni_modules/uni-table/components/uni-td/uni-td.vue
+++ /dev/null
@@ -1,90 +0,0 @@
-<template>
- <!-- #ifdef H5 -->
- <td class="uni-table-td" :rowspan="rowspan" :colspan="colspan" :class="{'table--border':border}" :style="{width:width + 'px','text-align':align}">
- <slot></slot>
- </td>
- <!-- #endif -->
- <!-- #ifndef H5 -->
- <!-- :class="{'table--border':border}" -->
- <view class="uni-table-td" :class="{'table--border':border}" :style="{width:width + 'px','text-align':align}">
- <slot></slot>
- </view>
- <!-- #endif -->
-
-</template>
-
-<script>
- /**
- * Td 鍗曞厓鏍�
- * @description 琛ㄦ牸涓殑鏍囧噯鍗曞厓鏍肩粍浠�
- * @tutorial https://ext.dcloud.net.cn/plugin?id=3270
- * @property {Number} align = [left|center|right] 鍗曞厓鏍煎榻愭柟寮�
- */
- export default {
- name: 'uniTd',
- options: {
- virtualHost: true
- },
- props: {
- width: {
- type: [String, Number],
- default: ''
- },
- align: {
- type: String,
- default: 'left'
- },
- rowspan: {
- type: [Number,String],
- default: 1
- },
- colspan: {
- type: [Number,String],
- default: 1
- }
- },
- data() {
- return {
- border: false
- };
- },
- created() {
- this.root = this.getTable()
- this.border = this.root.border
- },
- methods: {
- /**
- * 鑾峰彇鐖跺厓绱犲疄渚�
- */
- getTable() {
- let parent = this.$parent;
- let parentName = parent.$options.name;
- while (parentName !== 'uniTable') {
- parent = parent.$parent;
- if (!parent) return false;
- parentName = parent.$options.name;
- }
- return parent;
- },
- }
- }
-</script>
-
-<style lang="scss">
- $border-color:#EBEEF5;
-
- .uni-table-td {
- display: table-cell;
- padding: 8px 10px;
- font-size: 14px;
- border-bottom: 1px $border-color solid;
- font-weight: 400;
- color: #606266;
- line-height: 23px;
- box-sizing: border-box;
- }
-
- .table--border {
- border-right: 1px $border-color solid;
- }
-</style>
diff --git a/uni_modules/uni-table/components/uni-th/filter-dropdown.vue b/uni_modules/uni-table/components/uni-th/filter-dropdown.vue
deleted file mode 100644
index fe8cd96..0000000
--- a/uni_modules/uni-table/components/uni-th/filter-dropdown.vue
+++ /dev/null
@@ -1,503 +0,0 @@
-<template>
- <view class="uni-filter-dropdown">
- <view class="dropdown-btn" @click="onDropdown">
- <view class="icon-select" :class="{active: canReset}" v-if="isSelect || isRange"></view>
- <view class="icon-search" :class="{active: canReset}" v-if="isSearch">
- <view class="icon-search-0"></view>
- <view class="icon-search-1"></view>
- </view>
- <view class="icon-calendar" :class="{active: canReset}" v-if="isDate">
- <view class="icon-calendar-0"></view>
- <view class="icon-calendar-1"></view>
- </view>
- </view>
- <view class="uni-dropdown-cover" v-if="isOpened" @click="handleClose"></view>
- <view class="dropdown-popup dropdown-popup-right" v-if="isOpened" @click.stop>
- <!-- select-->
- <view v-if="isSelect" class="list">
- <label class="flex-r a-i-c list-item" v-for="(item,index) in dataList" :key="index"
- @click="onItemClick($event, index)">
- <check-box class="check" :checked="item.checked" />
- <view class="checklist-content">
- <text class="checklist-text" :style="item.styleIconText">{{item[map.text]}}</text>
- </view>
- </label>
- </view>
- <view v-if="isSelect" class="flex-r opera-area">
- <view class="flex-f btn btn-default" :class="{disable: !canReset}" @click="handleSelectReset">
- {{resource.reset}}</view>
- <view class="flex-f btn btn-submit" @click="handleSelectSubmit">{{resource.submit}}</view>
- </view>
- <!-- search -->
- <view v-if="isSearch" class="search-area">
- <input class="search-input" v-model="filterValue" />
- </view>
- <view v-if="isSearch" class="flex-r opera-area">
- <view class="flex-f btn btn-submit" @click="handleSearchSubmit">{{resource.search}}</view>
- <view class="flex-f btn btn-default" :class="{disable: !canReset}" @click="handleSearchReset">
- {{resource.reset}}</view>
- </view>
- <!-- range -->
- <view v-if="isRange">
- <view class="input-label">{{resource.gt}}</view>
- <input class="input" v-model="gtValue" />
- <view class="input-label">{{resource.lt}}</view>
- <input class="input" v-model="ltValue" />
- </view>
- <view v-if="isRange" class="flex-r opera-area">
- <view class="flex-f btn btn-default" :class="{disable: !canReset}" @click="handleRangeReset">
- {{resource.reset}}</view>
- <view class="flex-f btn btn-submit" @click="handleRangeSubmit">{{resource.submit}}</view>
- </view>
- <!-- date -->
- <view v-if="isDate">
- <uni-datetime-picker ref="datetimepicker" :value="dateRange" type="datetimerange" return-type="timestamp" @change="datetimechange" @maskClick="timepickerclose">
- <view></view>
- </uni-datetime-picker>
- </view>
- </view>
- </view>
-</template>
-
-<script>
- import checkBox from '../uni-tr/table-checkbox.vue'
-
- const resource = {
- "reset": "閲嶇疆",
- "search": "鎼滅储",
- "submit": "纭畾",
- "filter": "绛涢��",
- "gt": "澶т簬绛変簬",
- "lt": "灏忎簬绛変簬",
- "date": "鏃ユ湡鑼冨洿"
- }
-
- const DropdownType = {
- Select: "select",
- Search: "search",
- Range: "range",
- Date: "date",
- Timestamp: "timestamp"
- }
-
- export default {
- name: 'FilterDropdown',
- emits:['change'],
- components: {
- checkBox
- },
- options: {
- virtualHost: true
- },
- props: {
- filterType: {
- type: String,
- default: DropdownType.Select
- },
- filterData: {
- type: Array,
- default () {
- return []
- }
- },
- mode: {
- type: String,
- default: 'default'
- },
- map: {
- type: Object,
- default () {
- return {
- text: 'text',
- value: 'value'
- }
- }
- }
- },
- computed: {
- canReset() {
- if (this.isSearch) {
- return this.filterValue.length > 0
- }
- if (this.isSelect) {
- return this.checkedValues.length > 0
- }
- if (this.isRange) {
- return (this.gtValue.length > 0 && this.ltValue.length > 0)
- }
- if (this.isDate) {
- return this.dateSelect.length > 0
- }
- return false
- },
- isSelect() {
- return this.filterType === DropdownType.Select
- },
- isSearch() {
- return this.filterType === DropdownType.Search
- },
- isRange() {
- return this.filterType === DropdownType.Range
- },
- isDate() {
- return (this.filterType === DropdownType.Date || this.filterType === DropdownType.Timestamp)
- }
- },
- watch: {
- filters(newVal) {
- this._copyFilters()
- },
- indeterminate(newVal) {
- this.isIndeterminate = newVal
- }
- },
- data() {
- return {
- resource,
- enabled: true,
- isOpened: false,
- dataList: [],
- filterValue: '',
- checkedValues: [],
- gtValue: '',
- ltValue: '',
- dateRange: [],
- dateSelect: []
- };
- },
- created() {
- this._copyFilters()
- },
- methods: {
- _copyFilters() {
- let dl = JSON.parse(JSON.stringify(this.filterData))
- for (let i = 0; i < dl.length; i++) {
- if (dl[i].checked === undefined) {
- dl[i].checked = false
- }
- }
- this.dataList = dl
- },
- openPopup() {
- this.isOpened = true
- if (this.isDate) {
- this.$nextTick(() => {
- if (!this.dateRange.length) {
- this.resetDate()
- }
- this.$refs.datetimepicker.show()
- })
- }
- },
- closePopup() {
- this.isOpened = false
- },
- handleClose(e) {
- this.closePopup()
- },
- resetDate() {
- let date = new Date()
- let dateText = date.toISOString().split('T')[0]
- this.dateRange = [dateText + ' 0:00:00', dateText + ' 23:59:59']
- },
- onDropdown(e) {
- this.openPopup()
- },
- onItemClick(e, index) {
- let items = this.dataList
- let listItem = items[index]
- if (listItem.checked === undefined) {
- items[index].checked = true
- } else {
- items[index].checked = !listItem.checked
- }
-
- let checkvalues = []
- for (let i = 0; i < items.length; i++) {
- const item = items[i]
- if (item.checked) {
- checkvalues.push(item.value)
- }
- }
- this.checkedValues = checkvalues
- },
- datetimechange(e) {
- this.closePopup()
- this.dateRange = e
- this.dateSelect = e
- this.$emit('change', {
- filterType: this.filterType,
- filter: e
- })
- },
- timepickerclose(e) {
- this.closePopup()
- },
- handleSelectSubmit() {
- this.closePopup()
- this.$emit('change', {
- filterType: this.filterType,
- filter: this.checkedValues
- })
- },
- handleSelectReset() {
- if (!this.canReset) {
- return;
- }
- var items = this.dataList
- for (let i = 0; i < items.length; i++) {
- let item = items[i]
- this.$set(item, 'checked', false)
- }
- this.checkedValues = []
- this.handleSelectSubmit()
- },
- handleSearchSubmit() {
- this.closePopup()
- this.$emit('change', {
- filterType: this.filterType,
- filter: this.filterValue
- })
- },
- handleSearchReset() {
- if (!this.canReset) {
- return;
- }
- this.filterValue = ''
- this.handleSearchSubmit()
- },
- handleRangeSubmit(isReset) {
- this.closePopup()
- this.$emit('change', {
- filterType: this.filterType,
- filter: isReset === true ? [] : [parseInt(this.gtValue), parseInt(this.ltValue)]
- })
- },
- handleRangeReset() {
- if (!this.canReset) {
- return;
- }
- this.gtValue = ''
- this.ltValue = ''
- this.handleRangeSubmit(true)
- }
- }
- }
-</script>
-
-<style lang="scss">
- .flex-r {
- display: flex;
- flex-direction: row;
- }
-
- .flex-f {
- flex: 1;
- }
-
- .a-i-c {
- align-items: center;
- }
-
- .j-c-c {
- justify-content: center;
- }
-
- .icon-select {
- width: 14px;
- height: 16px;
- border: solid 6px transparent;
- border-top: solid 6px #ddd;
- border-bottom: none;
- background-color: #ddd;
- background-clip: content-box;
- box-sizing: border-box;
- }
-
- .icon-select.active {
- background-color: #1890ff;
- border-top-color: #1890ff;
- }
-
- .icon-search {
- width: 12px;
- height: 16px;
- position: relative;
- }
-
- .icon-search-0 {
- border: 2px solid #ddd;
- border-radius: 8px;
- width: 7px;
- height: 7px;
- }
-
- .icon-search-1 {
- position: absolute;
- top: 8px;
- right: 0;
- width: 1px;
- height: 7px;
- background-color: #ddd;
- transform: rotate(-45deg);
- }
-
- .icon-search.active .icon-search-0 {
- border-color: #1890ff;
- }
-
- .icon-search.active .icon-search-1 {
- background-color: #1890ff;
- }
-
- .icon-calendar {
- color: #ddd;
- width: 14px;
- height: 16px;
- }
-
- .icon-calendar-0 {
- height: 4px;
- margin-top: 3px;
- margin-bottom: 1px;
- background-color: #ddd;
- border-radius: 2px 2px 1px 1px;
- position: relative;
- }
- .icon-calendar-0:before, .icon-calendar-0:after {
- content: '';
- position: absolute;
- top: -3px;
- width: 4px;
- height: 3px;
- border-radius: 1px;
- background-color: #ddd;
- }
- .icon-calendar-0:before {
- left: 2px;
- }
- .icon-calendar-0:after {
- right: 2px;
- }
-
- .icon-calendar-1 {
- height: 9px;
- background-color: #ddd;
- border-radius: 1px 1px 2px 2px;
- }
-
- .icon-calendar.active {
- color: #1890ff;
- }
-
- .icon-calendar.active .icon-calendar-0,
- .icon-calendar.active .icon-calendar-1,
- .icon-calendar.active .icon-calendar-0:before,
- .icon-calendar.active .icon-calendar-0:after {
- background-color: #1890ff;
- }
-
- .uni-filter-dropdown {
- position: relative;
- font-weight: normal;
- }
-
- .dropdown-popup {
- position: absolute;
- top: 100%;
- background-color: #fff;
- box-shadow: 0 3px 6px -4px #0000001f, 0 6px 16px #00000014, 0 9px 28px 8px #0000000d;
- min-width: 150px;
- z-index: 1000;
- }
-
- .dropdown-popup-left {
- left: 0;
- }
-
- .dropdown-popup-right {
- right: 0;
- }
-
- .uni-dropdown-cover {
- position: fixed;
- left: 0;
- top: 0;
- right: 0;
- bottom: 0;
- background-color: transparent;
- z-index: 100;
- }
-
- .list {
- margin-top: 5px;
- margin-bottom: 5px;
- }
-
- .list-item {
- padding: 5px 10px;
- text-align: left;
- }
-
- .list-item:hover {
- background-color: #f0f0f0;
- }
-
- .check {
- margin-right: 5px;
- }
-
- .search-area {
- padding: 10px;
- }
-
- .search-input {
- font-size: 12px;
- border: 1px solid #f0f0f0;
- border-radius: 3px;
- padding: 2px 5px;
- min-width: 150px;
- text-align: left;
- }
-
- .input-label {
- margin: 10px 10px 5px 10px;
- text-align: left;
- }
-
- .input {
- font-size: 12px;
- border: 1px solid #f0f0f0;
- border-radius: 3px;
- margin: 10px;
- padding: 2px 5px;
- min-width: 150px;
- text-align: left;
- }
-
- .opera-area {
- cursor: default;
- border-top: 1px solid #ddd;
- padding: 5px;
- }
-
- .opera-area .btn {
- font-size: 12px;
- border-radius: 3px;
- margin: 5px;
- padding: 4px 4px;
- }
-
- .btn-default {
- border: 1px solid #ddd;
- }
-
- .btn-default.disable {
- border-color: transparent;
- }
-
- .btn-submit {
- background-color: #1890ff;
- color: #ffffff;
- }
-</style>
diff --git a/uni_modules/uni-table/components/uni-th/uni-th.vue b/uni_modules/uni-table/components/uni-th/uni-th.vue
deleted file mode 100644
index 9430fba..0000000
--- a/uni_modules/uni-table/components/uni-th/uni-th.vue
+++ /dev/null
@@ -1,251 +0,0 @@
-<template>
- <!-- #ifdef H5 -->
- <th :rowspan="rowspan" :colspan="colspan" class="uni-table-th" :class="{ 'table--border': border }" :style="{ width: width + 'px', 'text-align': align }">
- <view class="uni-table-th-row">
- <view class="uni-table-th-content" :style="{ 'justify-content': contentAlign }" @click="sort">
- <slot></slot>
- <view v-if="sortable" class="arrow-box">
- <text class="arrow up" :class="{ active: ascending }" @click.stop="ascendingFn"></text>
- <text class="arrow down" :class="{ active: descending }" @click.stop="descendingFn"></text>
- </view>
- </view>
- <dropdown v-if="filterType || filterData.length" :filterData="filterData" :filterType="filterType" @change="ondropdown"></dropdown>
- </view>
- </th>
- <!-- #endif -->
- <!-- #ifndef H5 -->
- <view class="uni-table-th" :class="{ 'table--border': border }" :style="{ width: width + 'px', 'text-align': align }"><slot></slot></view>
- <!-- #endif -->
-</template>
-
-<script>
- import dropdown from './filter-dropdown.vue'
-/**
- * Th 琛ㄥご
- * @description 琛ㄦ牸鍐呯殑琛ㄥご鍗曞厓鏍肩粍浠�
- * @tutorial https://ext.dcloud.net.cn/plugin?id=3270
- * @property {Number} width 鍗曞厓鏍煎搴�
- * @property {Boolean} sortable 鏄惁鍚敤鎺掑簭
- * @property {Number} align = [left|center|right] 鍗曞厓鏍煎榻愭柟寮�
- * @value left 鍗曞厓鏍兼枃瀛楀乏渚у榻�
- * @value center 鍗曞厓鏍兼枃瀛楀眳涓�
- * @value right 鍗曞厓鏍兼枃瀛楀彸渚у榻�
- * @property {Array} filterData 绛涢�夋暟鎹�
- * @property {String} filterType [search|select] 绛涢�夌被鍨�
- * @value search 鍏抽敭瀛楁悳绱�
- * @value select 鏉′欢閫夋嫨
- * @event {Function} sort-change 鎺掑簭瑙﹀彂浜嬩欢
- */
-export default {
- name: 'uniTh',
- options: {
- virtualHost: true
- },
- components: {
- dropdown
- },
- emits:['sort-change','filter-change'],
- props: {
- width: {
- type: [String, Number],
- default: ''
- },
- align: {
- type: String,
- default: 'left'
- },
- rowspan: {
- type: [Number, String],
- default: 1
- },
- colspan: {
- type: [Number, String],
- default: 1
- },
- sortable: {
- type: Boolean,
- default: false
- },
- filterType: {
- type: String,
- default: ""
- },
- filterData: {
- type: Array,
- default () {
- return []
- }
- }
- },
- data() {
- return {
- border: false,
- ascending: false,
- descending: false
- }
- },
- computed: {
- contentAlign() {
- let align = 'left'
- switch (this.align) {
- case 'left':
- align = 'flex-start'
- break
- case 'center':
- align = 'center'
- break
- case 'right':
- align = 'flex-end'
- break
- }
- return align
- }
- },
- created() {
- this.root = this.getTable('uniTable')
- this.rootTr = this.getTable('uniTr')
- this.rootTr.minWidthUpdate(this.width ? this.width : 140)
- this.border = this.root.border
- this.root.thChildren.push(this)
- },
- methods: {
- sort() {
- if (!this.sortable) return
- this.clearOther()
- if (!this.ascending && !this.descending) {
- this.ascending = true
- this.$emit('sort-change', { order: 'ascending' })
- return
- }
- if (this.ascending && !this.descending) {
- this.ascending = false
- this.descending = true
- this.$emit('sort-change', { order: 'descending' })
- return
- }
-
- if (!this.ascending && this.descending) {
- this.ascending = false
- this.descending = false
- this.$emit('sort-change', { order: null })
- }
- },
- ascendingFn() {
- this.clearOther()
- this.ascending = !this.ascending
- this.descending = false
- this.$emit('sort-change', { order: this.ascending ? 'ascending' : null })
- },
- descendingFn() {
- this.clearOther()
- this.descending = !this.descending
- this.ascending = false
- this.$emit('sort-change', { order: this.descending ? 'descending' : null })
- },
- clearOther() {
- this.root.thChildren.map(item => {
- if (item !== this) {
- item.ascending = false
- item.descending = false
- }
- return item
- })
- },
- ondropdown(e) {
- this.$emit("filter-change", e)
- },
- /**
- * 鑾峰彇鐖跺厓绱犲疄渚�
- */
- getTable(name) {
- let parent = this.$parent
- let parentName = parent.$options.name
- while (parentName !== name) {
- parent = parent.$parent
- if (!parent) return false
- parentName = parent.$options.name
- }
- return parent
- }
- }
-}
-</script>
-
-<style lang="scss">
-$border-color: #ebeef5;
-
-.uni-table-th {
- padding: 12px 10px;
- /* #ifndef APP-NVUE */
- display: table-cell;
- box-sizing: border-box;
- /* #endif */
- font-size: 14px;
- font-weight: bold;
- color: #909399;
- border-bottom: 1px $border-color solid;
-}
-
-.uni-table-th-row {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex-direction: row;
-}
-
-.table--border {
- border-right: 1px $border-color solid;
-}
-.uni-table-th-content {
- display: flex;
- align-items: center;
- flex: 1;
-}
-.arrow-box {
-}
-.arrow {
- display: block;
- position: relative;
- width: 10px;
- height: 8px;
- // border: 1px red solid;
- left: 5px;
- overflow: hidden;
- cursor: pointer;
-}
-.down {
- top: 3px;
- ::after {
- content: '';
- width: 8px;
- height: 8px;
- position: absolute;
- left: 2px;
- top: -5px;
- transform: rotate(45deg);
- background-color: #ccc;
- }
- &.active {
- ::after {
- background-color: #007aff;
- }
- }
-}
-.up {
- ::after {
- content: '';
- width: 8px;
- height: 8px;
- position: absolute;
- left: 2px;
- top: 5px;
- transform: rotate(45deg);
- background-color: #ccc;
- }
- &.active {
- ::after {
- background-color: #007aff;
- }
- }
-}
-</style>
diff --git a/uni_modules/uni-table/components/uni-thead/uni-thead.vue b/uni_modules/uni-table/components/uni-thead/uni-thead.vue
deleted file mode 100644
index 0dd18cd..0000000
--- a/uni_modules/uni-table/components/uni-thead/uni-thead.vue
+++ /dev/null
@@ -1,129 +0,0 @@
-<template>
- <!-- #ifdef H5 -->
- <thead class="uni-table-thead">
- <tr class="uni-table-tr">
- <th :rowspan="rowspan" colspan="1" class="checkbox" :class="{ 'tr-table--border': border }">
- <table-checkbox :indeterminate="indeterminate" :checked="checked" @checkboxSelected="checkboxSelected"></table-checkbox>
- </th>
- </tr>
- <slot></slot>
- </thead>
- <!-- #endif -->
- <!-- #ifndef H5 -->
- <view class="uni-table-thead"><slot></slot></view>
- <!-- #endif -->
-</template>
-
-<script>
-import tableCheckbox from '../uni-tr/table-checkbox.vue'
-export default {
- name: 'uniThead',
- components: {
- tableCheckbox
- },
- options: {
- virtualHost: true
- },
- data() {
- return {
- border: false,
- selection: false,
- rowspan: 1,
- indeterminate: false,
- checked: false
- }
- },
- created() {
- this.root = this.getTable()
- // #ifdef H5
- this.root.theadChildren = this
- // #endif
- this.border = this.root.border
- this.selection = this.root.type
- },
- methods: {
- init(self) {
- this.rowspan++
- },
- checkboxSelected(e) {
- this.indeterminate = false
- const backIndexData = this.root.backIndexData
- const data = this.root.trChildren.filter(v => !v.disabled && v.keyValue)
- if (backIndexData.length === data.length) {
- this.checked = false
- this.root.clearSelection()
- } else {
- this.checked = true
- this.root.selectionAll()
- }
- },
- /**
- * 鑾峰彇鐖跺厓绱犲疄渚�
- */
- getTable(name = 'uniTable') {
- let parent = this.$parent
- let parentName = parent.$options.name
- while (parentName !== name) {
- parent = parent.$parent
- if (!parent) return false
- parentName = parent.$options.name
- }
- return parent
- }
- }
-}
-</script>
-
-<style lang="scss">
-$border-color: #ebeef5;
-
-.uni-table-thead {
- display: table-header-group;
-}
-
-.uni-table-tr {
- /* #ifndef APP-NVUE */
- display: table-row;
- transition: all 0.3s;
- box-sizing: border-box;
- /* #endif */
- border: 1px red solid;
- background-color: #fafafa;
-}
-
-.checkbox {
- padding: 0 8px;
- width: 26px;
- padding-left: 12px;
- /* #ifndef APP-NVUE */
- display: table-cell;
- vertical-align: middle;
- /* #endif */
- color: #333;
- font-weight: 500;
- border-bottom: 1px $border-color solid;
- font-size: 14px;
- // text-align: center;
-}
-
-.tr-table--border {
- border-right: 1px $border-color solid;
-}
-
-/* #ifndef APP-NVUE */
-.uni-table-tr {
- ::v-deep .uni-table-th {
- &.table--border:last-child {
- // border-right: none;
- }
- }
-
- ::v-deep .uni-table-td {
- &.table--border:last-child {
- // border-right: none;
- }
- }
-}
-
-/* #endif */
-</style>
diff --git a/uni_modules/uni-table/components/uni-tr/table-checkbox.vue b/uni_modules/uni-table/components/uni-tr/table-checkbox.vue
deleted file mode 100644
index 158f3ff..0000000
--- a/uni_modules/uni-table/components/uni-tr/table-checkbox.vue
+++ /dev/null
@@ -1,179 +0,0 @@
-<template>
- <view class="uni-table-checkbox" @click="selected">
- <view v-if="!indeterminate" class="checkbox__inner" :class="{'is-checked':isChecked,'is-disable':isDisabled}">
- <view class="checkbox__inner-icon"></view>
- </view>
- <view v-else class="checkbox__inner checkbox--indeterminate">
- <view class="checkbox__inner-icon"></view>
- </view>
- </view>
-</template>
-
-<script>
- export default {
- name: 'TableCheckbox',
- emits:['checkboxSelected'],
- props: {
- indeterminate: {
- type: Boolean,
- default: false
- },
- checked: {
- type: [Boolean,String],
- default: false
- },
- disabled: {
- type: Boolean,
- default: false
- },
- index: {
- type: Number,
- default: -1
- },
- cellData: {
- type: Object,
- default () {
- return {}
- }
- }
- },
- watch:{
- checked(newVal){
- if(typeof this.checked === 'boolean'){
- this.isChecked = newVal
- }else{
- this.isChecked = true
- }
- },
- indeterminate(newVal){
- this.isIndeterminate = newVal
- }
- },
- data() {
- return {
- isChecked: false,
- isDisabled: false,
- isIndeterminate:false
- }
- },
- created() {
- if(typeof this.checked === 'boolean'){
- this.isChecked = this.checked
- }
- this.isDisabled = this.disabled
- },
- methods: {
- selected() {
- if (this.isDisabled) return
- this.isIndeterminate = false
- this.isChecked = !this.isChecked
- this.$emit('checkboxSelected', {
- checked: this.isChecked,
- data: this.cellData
- })
- }
- }
- }
-</script>
-
-<style lang="scss">
- $checked-color: #007aff;
- $border-color: #DCDFE6;
- $disable:0.4;
-
- .uni-table-checkbox {
- display: flex;
- flex-direction: row;
- align-items: center;
- justify-content: center;
- position: relative;
- margin: 5px 0;
- cursor: pointer;
-
- // 澶氶�夋牱寮�
- .checkbox__inner {
- /* #ifndef APP-NVUE */
- flex-shrink: 0;
- box-sizing: border-box;
- /* #endif */
- position: relative;
- width: 16px;
- height: 16px;
- border: 1px solid $border-color;
- border-radius: 2px;
- background-color: #fff;
- z-index: 1;
-
- .checkbox__inner-icon {
- position: absolute;
- /* #ifdef APP-NVUE */
- top: 2px;
- /* #endif */
- /* #ifndef APP-NVUE */
- top: 2px;
- /* #endif */
- left: 5px;
- height: 7px;
- width: 3px;
- border: 1px solid #fff;
- border-left: 0;
- border-top: 0;
- opacity: 0;
- transform-origin: center;
- transform: rotate(45deg);
- box-sizing: content-box;
- }
-
- &.checkbox--indeterminate {
- border-color: $checked-color;
- background-color: $checked-color;
-
- .checkbox__inner-icon {
- position: absolute;
- opacity: 1;
- transform: rotate(0deg);
- height: 2px;
- top: 0;
- bottom: 0;
- margin: auto;
- left: 0px;
- right: 0px;
- bottom: 0;
- width: auto;
- border: none;
- border-radius: 2px;
- transform: scale(0.5);
- background-color: #fff;
- }
- }
- &:hover{
- border-color: $checked-color;
- }
- // 绂佺敤
- &.is-disable {
- /* #ifdef H5 */
- cursor: not-allowed;
- /* #endif */
- background-color: #F2F6FC;
- border-color: $border-color;
- }
-
- // 閫変腑
- &.is-checked {
- border-color: $checked-color;
- background-color: $checked-color;
-
- .checkbox__inner-icon {
- opacity: 1;
- transform: rotate(45deg);
- }
-
- // 閫変腑绂佺敤
- &.is-disable {
- opacity: $disable;
- }
- }
-
- }
- }
-</style>
diff --git a/uni_modules/uni-table/components/uni-tr/uni-tr.vue b/uni_modules/uni-table/components/uni-tr/uni-tr.vue
deleted file mode 100644
index f9b9671..0000000
--- a/uni_modules/uni-table/components/uni-tr/uni-tr.vue
+++ /dev/null
@@ -1,171 +0,0 @@
-<template>
- <!-- #ifdef H5 -->
- <tr class="uni-table-tr">
- <th v-if="selection === 'selection' && ishead" class="checkbox" :class="{ 'tr-table--border': border }">
- <table-checkbox :checked="checked" :indeterminate="indeterminate" :disabled="disabled" @checkboxSelected="checkboxSelected"></table-checkbox>
- </th>
- <slot></slot>
- <!-- <uni-th class="th-fixed">123</uni-th> -->
- </tr>
- <!-- #endif -->
- <!-- #ifndef H5 -->
- <view class="uni-table-tr">
- <view v-if="selection === 'selection' " class="checkbox" :class="{ 'tr-table--border': border }">
- <table-checkbox :checked="checked" :indeterminate="indeterminate" :disabled="disabled" @checkboxSelected="checkboxSelected"></table-checkbox>
- </view>
- <slot></slot>
- </view>
- <!-- #endif -->
-</template>
-
-<script>
- import tableCheckbox from './table-checkbox.vue'
-/**
- * Tr 琛ㄦ牸琛岀粍浠�
- * @description 琛ㄦ牸琛岀粍浠� 浠呭寘鍚� th,td 缁勪欢
- * @tutorial https://ext.dcloud.net.cn/plugin?id=
- */
-export default {
- name: 'uniTr',
- components: { tableCheckbox },
- props: {
- disabled: {
- type: Boolean,
- default: false
- },
- keyValue: {
- type: [String, Number],
- default: ''
- }
- },
- options: {
- virtualHost: true
- },
- data() {
- return {
- value: false,
- border: false,
- selection: false,
- widthThArr: [],
- ishead: true,
- checked: false,
- indeterminate:false
- }
- },
- created() {
- this.root = this.getTable()
- this.head = this.getTable('uniThead')
- if (this.head) {
- this.ishead = false
- this.head.init(this)
- }
- this.border = this.root.border
- this.selection = this.root.type
- this.root.trChildren.push(this)
- const rowData = this.root.data.find(v => v[this.root.rowKey] === this.keyValue)
- if(rowData){
- this.rowData = rowData
- }
- this.root.isNodata()
- },
- mounted() {
- if (this.widthThArr.length > 0) {
- const selectionWidth = this.selection === 'selection' ? 50 : 0
- this.root.minWidth = this.widthThArr.reduce((a, b) => Number(a) + Number(b)) + selectionWidth
- }
- },
- // #ifndef VUE3
- destroyed() {
- const index = this.root.trChildren.findIndex(i => i === this)
- this.root.trChildren.splice(index, 1)
- this.root.isNodata()
- },
- // #endif
- // #ifdef VUE3
- unmounted() {
- const index = this.root.trChildren.findIndex(i => i === this)
- this.root.trChildren.splice(index, 1)
- this.root.isNodata()
- },
- // #endif
- methods: {
- minWidthUpdate(width) {
- this.widthThArr.push(width)
- },
- // 閫変腑
- checkboxSelected(e) {
- let rootData = this.root.data.find(v => v[this.root.rowKey] === this.keyValue)
- this.checked = e.checked
- this.root.check(rootData||this, e.checked,rootData? this.keyValue:null)
- },
- change(e) {
- this.root.trChildren.forEach(item => {
- if (item === this) {
- this.root.check(this, e.detail.value.length > 0 ? true : false)
- }
- })
- },
- /**
- * 鑾峰彇鐖跺厓绱犲疄渚�
- */
- getTable(name = 'uniTable') {
- let parent = this.$parent
- let parentName = parent.$options.name
- while (parentName !== name) {
- parent = parent.$parent
- if (!parent) return false
- parentName = parent.$options.name
- }
- return parent
- }
- }
-}
-</script>
-
-<style lang="scss">
-$border-color: #ebeef5;
-
-.uni-table-tr {
- /* #ifndef APP-NVUE */
- display: table-row;
- transition: all 0.3s;
- box-sizing: border-box;
- /* #endif */
-}
-
-.checkbox {
- padding: 0 8px;
- width: 26px;
- padding-left: 12px;
- /* #ifndef APP-NVUE */
- display: table-cell;
- vertical-align: middle;
- /* #endif */
- color: #333;
- font-weight: 500;
- border-bottom: 1px $border-color solid;
- font-size: 14px;
- // text-align: center;
-}
-
-.tr-table--border {
- border-right: 1px $border-color solid;
-}
-
-/* #ifndef APP-NVUE */
-.uni-table-tr {
- ::v-deep .uni-table-th {
- &.table--border:last-child {
- // border-right: none;
- }
- }
-
- ::v-deep .uni-table-td {
- &.table--border:last-child {
- // border-right: none;
- }
- }
-}
-
-/* #endif */
-</style>
diff --git a/uni_modules/uni-table/package.json b/uni_modules/uni-table/package.json
deleted file mode 100644
index 754e753..0000000
--- a/uni_modules/uni-table/package.json
+++ /dev/null
@@ -1,86 +0,0 @@
-{
- "id": "uni-table",
- "displayName": "uni-table 琛ㄦ牸",
- "version": "1.2.0",
- "description": "琛ㄦ牸缁勪欢锛屽鐢ㄤ簬灞曠ず澶氭潯缁撴瀯绫讳技鐨勬暟鎹紝濡�",
- "keywords": [
- "uni-ui",
- "uniui",
- "table",
- "琛ㄦ牸"
-],
- "repository": "https://github.com/dcloudio/uni-ui",
- "engines": {
- "HBuilderX": ""
- },
- "directories": {
- "example": "../../temps/example_temps"
- },
- "dcloudext": {
- "category": [
- "鍓嶇缁勪欢",
- "閫氱敤缁勪欢"
- ],
- "sale": {
- "regular": {
- "price": "0.00"
- },
- "sourcecode": {
- "price": "0.00"
- }
- },
- "contact": {
- "qq": ""
- },
- "declaration": {
- "ads": "鏃�",
- "data": "鏃�",
- "permissions": "鏃�"
- },
- "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui"
- },
- "uni_modules": {
- "dependencies": ["uni-scss","uni-datetime-picker"],
- "encrypt": [],
- "platforms": {
- "cloud": {
- "tcb": "y",
- "aliyun": "y"
- },
- "client": {
- "App": {
- "app-vue": "y",
- "app-nvue": "n"
- },
- "H5-mobile": {
- "Safari": "y",
- "Android Browser": "y",
- "寰俊娴忚鍣�(Android)": "y",
- "QQ娴忚鍣�(Android)": "y"
- },
- "H5-pc": {
- "Chrome": "y",
- "IE": "y",
- "Edge": "y",
- "Firefox": "y",
- "Safari": "y"
- },
- "灏忕▼搴�": {
- "寰俊": "y",
- "闃块噷": "y",
- "鐧惧害": "y",
- "瀛楄妭璺冲姩": "n",
- "QQ": "y"
- },
- "蹇簲鐢�": {
- "鍗庝负": "n",
- "鑱旂洘": "n"
- },
- "Vue": {
- "vue2": "y",
- "vue3": "y"
- }
- }
- }
- }
-}
\ No newline at end of file
diff --git a/uni_modules/uni-table/readme.md b/uni_modules/uni-table/readme.md
deleted file mode 100644
index bb08c79..0000000
--- a/uni_modules/uni-table/readme.md
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-## Table 琛ㄥ崟
-> 缁勪欢鍚嶏細``uni-table``锛屼唬鐮佸潡锛� `uTable`銆�
-
-鐢ㄤ簬灞曠ず澶氭潯缁撴瀯绫讳技鐨勬暟鎹�
-
-### [鏌ョ湅鏂囨。](https://uniapp.dcloud.io/component/uniui/uni-table)
-#### 濡備娇鐢ㄨ繃绋嬩腑鏈変换浣曢棶棰橈紝鎴栬�呮偍瀵箄ni-ui鏈変竴浜涘ソ鐨勫缓璁紝娆㈣繋鍔犲叆 uni-ui 浜ゆ祦缇わ細871950839
-
-
-
-
diff --git a/uni_modules/uni-tag/changelog.md b/uni_modules/uni-tag/changelog.md
deleted file mode 100644
index c0c5839..0000000
--- a/uni_modules/uni-tag/changelog.md
+++ /dev/null
@@ -1,21 +0,0 @@
-## 2.1.0锛�2021-11-19锛�
-- 浼樺寲 缁勪欢UI锛屽苟鎻愪緵璁捐璧勬簮锛岃瑙�:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource)
-- 鏂囨。杩佺Щ锛岃瑙�:[https://uniapp.dcloud.io/component/uniui/uni-tag](https://uniapp.dcloud.io/component/uniui/uni-tag)
-## 2.0.0锛�2021-11-09锛�
-- 鏂板 鎻愪緵缁勪欢璁捐璧勬簮锛岀粍浠舵牱寮忚皟鏁�
-- 绉婚櫎 鎻掓Ы
-- 绉婚櫎 type 灞炴�х殑 royal 閫夐」
-## 1.1.1锛�2021-08-11锛�
-- type 涓嶆槸 default 鏃讹紝size 涓� small 瀛椾綋澶у皬鏄剧ず涓嶆纭�
-## 1.1.0锛�2021-07-30锛�
-- 缁勪欢鍏煎 vue3锛屽浣曞垱寤簐ue3椤圭洰锛岃瑙� [uni-app 椤圭洰鏀寔 vue3 浠嬬粛](https://ask.dcloud.net.cn/article/37834)
-## 1.0.7锛�2021-06-18锛�
-- 淇 uni-tag 鍦ㄥ瓧鑺傝烦鍔ㄥ皬绋嬪簭涓� css 绫诲悕缂栬瘧閿欒鐨� bug
-## 1.0.6锛�2021-06-04锛�
-- 淇 鏈畾涔� sass 鍙橀噺 "$uni-color-royal" 鐨刡ug
-## 1.0.5锛�2021-05-10锛�
-- 淇 royal 绫诲瀷鏃犳晥鐨刡ug
-- 淇 uni-tag 瀹藉害涓嶈嚜閫傚簲鐨刡ug
-- 鏂板 uni-tag 鏀寔灞炴�� custom-style 鑷畾涔夋牱寮�
-## 1.0.4锛�2021-02-05锛�
-- 璋冩暣涓簎ni_modules鐩綍瑙勮寖
diff --git a/uni_modules/uni-tag/components/uni-tag/uni-tag.vue b/uni_modules/uni-tag/components/uni-tag/uni-tag.vue
deleted file mode 100644
index 418c955..0000000
--- a/uni_modules/uni-tag/components/uni-tag/uni-tag.vue
+++ /dev/null
@@ -1,252 +0,0 @@
-<template>
- <text class="uni-tag" v-if="text" :class="classes" :style="customStyle" @click="onClick">{{text}}</text>
-</template>
-
-<script>
- /**
- * Tag 鏍囩
- * @description 鐢ㄤ簬灞曠ず1涓垨澶氫釜鏂囧瓧鏍囩锛屽彲鐐瑰嚮鍒囨崲閫変腑銆佷笉閫変腑鐨勭姸鎬�
- * @tutorial https://ext.dcloud.net.cn/plugin?id=35
- * @property {String} text 鏍囩鍐呭
- * @property {String} size = [default|small|mini] 澶у皬灏哄
- * @value default 姝e父
- * @value small 灏忓昂瀵�
- * @value mini 杩蜂綘灏哄
- * @property {String} type = [default|primary|success锝渨arning锝渆rror] 棰滆壊绫诲瀷
- * @value default 鐏拌壊
- * @value primary 钃濊壊
- * @value success 缁胯壊
- * @value warning 榛勮壊
- * @value error 绾㈣壊
- * @property {Boolean} disabled = [true|false] 鏄惁涓虹鐢ㄧ姸鎬�
- * @property {Boolean} inverted = [true|false] 鏄惁鏃犻渶鑳屾櫙棰滆壊锛堢┖蹇冩爣绛撅級
- * @property {Boolean} circle = [true|false] 鏄惁涓哄渾瑙�
- * @event {Function} click 鐐瑰嚮 Tag 瑙﹀彂浜嬩欢
- */
-
- export default {
- name: "UniTag",
- emits: ['click'],
- props: {
- type: {
- // 鏍囩绫诲瀷default銆乸rimary銆乻uccess銆亀arning銆乪rror銆乺oyal
- type: String,
- default: "default"
- },
- size: {
- // 鏍囩澶у皬 normal, small
- type: String,
- default: "normal"
- },
- // 鏍囩鍐呭
- text: {
- type: String,
- default: ""
- },
- disabled: {
- // 鏄惁涓虹鐢ㄧ姸鎬�
- type: [Boolean, String],
- default: false
- },
- inverted: {
- // 鏄惁涓虹┖蹇�
- type: [Boolean, String],
- default: false
- },
- circle: {
- // 鏄惁涓哄渾瑙掓牱寮�
- type: [Boolean, String],
- default: false
- },
- mark: {
- // 鏄惁涓烘爣璁版牱寮�
- type: [Boolean, String],
- default: false
- },
- customStyle: {
- type: String,
- default: ''
- }
- },
- computed: {
- classes() {
- const {
- type,
- disabled,
- inverted,
- circle,
- mark,
- size,
- isTrue
- } = this
- const classArr = [
- 'uni-tag--' + type,
- 'uni-tag--' + size,
- isTrue(disabled) ? 'uni-tag--disabled' : '',
- isTrue(inverted) ? 'uni-tag--' + type + '--inverted' : '',
- isTrue(circle) ? 'uni-tag--circle' : '',
- isTrue(mark) ? 'uni-tag--mark' : '',
- // type === 'default' ? 'uni-tag--default' : 'uni-tag-text',
- isTrue(inverted) ? 'uni-tag--inverted uni-tag-text--' + type : '',
- size === 'small' ? 'uni-tag-text--small' : ''
- ]
- // 杩斿洖绫荤殑瀛楃涓诧紝鍏煎瀛楄妭灏忕▼搴�
- return classArr.join(' ')
- }
- },
- methods: {
- isTrue(value) {
- return value === true || value === 'true'
- },
- onClick() {
- if (this.isTrue(this.disabled)) return
- this.$emit("click");
- }
- }
- };
-</script>
-
-<style lang="scss" scoped>
- $uni-primary: #2979ff !default;
- $uni-success: #18bc37 !default;
- $uni-warning: #f3a73f !default;
- $uni-error: #e43d33 !default;
- $uni-info: #8f939c !default;
-
-
- $tag-default-pd: 4px 7px;
- $tag-small-pd: 2px 5px;
- $tag-mini-pd: 1px 3px;
-
- .uni-tag {
- line-height: 14px;
- font-size: 12px;
- font-weight: 200;
- padding: $tag-default-pd;
- color: #fff;
- border-radius: 3px;
- background-color: $uni-info;
- border-width: 1rpx;
- border-style: solid;
- border-color: $uni-info;
- /* #ifdef H5 */
- cursor: pointer;
- /* #endif */
-
- // size attr
- &--default {
- font-size: 12px;
- }
-
- &--default--inverted {
- color: $uni-info;
- border-color: $uni-info;
- }
-
- &--small {
- padding: $tag-small-pd;
- font-size: 12px;
- border-radius: 2px;
- }
-
- &--mini {
- padding: $tag-mini-pd;
- font-size: 12px;
- border-radius: 2px;
- }
-
- // type attr
- &--primary {
- background-color: $uni-primary;
- border-color: $uni-primary;
- color: #fff;
- }
-
- &--success {
- color: #fff;
- background-color: $uni-success;
- border-color: $uni-success;
- }
-
- &--warning {
- color: #fff;
- background-color: $uni-warning;
- border-color: $uni-warning;
- }
-
- &--error {
- color: #fff;
- background-color: $uni-error;
- border-color: $uni-error;
- }
-
- &--primary--inverted {
- color: $uni-primary;
- border-color: $uni-primary;
- }
-
- &--success--inverted {
- color: $uni-success;
- border-color: $uni-success;
- }
-
- &--warning--inverted {
- color: $uni-warning;
- border-color: $uni-warning;
- }
-
- &--error--inverted {
- color: $uni-error;
- border-color: $uni-error;
- }
-
- &--inverted {
- background-color: #fff;
- }
-
- // other attr
- &--circle {
- border-radius: 15px !important;
- }
-
- &--mark {
- border-top-left-radius: 0 !important;
- border-bottom-left-radius: 0 !important;
- border-top-right-radius: 15px !important;
- border-bottom-right-radius: 15px !important;
- }
-
- &--disabled {
- opacity: 0.5;
- /* #ifdef H5 */
- cursor: not-allowed;
- /* #endif */
- }
- }
-
-
- .uni-tag-text {
- color: #fff;
- font-size: 14px;
-
- &--primary {
- color: $uni-primary;
- }
-
- &--success {
- color: $uni-success;
- }
-
- &--warning {
- color: $uni-warning;
- }
-
- &--error {
- color: $uni-error;
- }
-
- &--small {
- font-size: 12px;
- }
- }
-</style>
diff --git a/uni_modules/uni-tag/package.json b/uni_modules/uni-tag/package.json
deleted file mode 100644
index 1878088..0000000
--- a/uni_modules/uni-tag/package.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "id": "uni-tag",
- "displayName": "uni-tag 鏍囩",
- "version": "2.1.0",
- "description": "Tag 缁勪欢锛岀敤浜庡睍绀�1涓垨澶氫釜鏂囧瓧鏍囩锛屽彲鐐瑰嚮鍒囨崲閫変腑銆佷笉閫変腑鐨勭姸鎬併��",
- "keywords": [
- "uni-ui",
- "uniui",
- "",
- "tag",
- "鏍囩"
-],
- "repository": "https://github.com/dcloudio/uni-ui",
- "engines": {
- "HBuilderX": ""
- },
- "directories": {
- "example": "../../temps/example_temps"
- },
- "dcloudext": {
- "category": [
- "鍓嶇缁勪欢",
- "閫氱敤缁勪欢"
- ],
- "sale": {
- "regular": {
- "price": "0.00"
- },
- "sourcecode": {
- "price": "0.00"
- }
- },
- "contact": {
- "qq": ""
- },
- "declaration": {
- "ads": "鏃�",
- "data": "鏃�",
- "permissions": "鏃�"
- },
- "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui"
- },
- "uni_modules": {
- "dependencies": ["uni-scss"],
- "encrypt": [],
- "platforms": {
- "cloud": {
- "tcb": "y",
- "aliyun": "y"
- },
- "client": {
- "App": {
- "app-vue": "y",
- "app-nvue": "y"
- },
- "H5-mobile": {
- "Safari": "y",
- "Android Browser": "y",
- "寰俊娴忚鍣�(Android)": "y",
- "QQ娴忚鍣�(Android)": "y"
- },
- "H5-pc": {
- "Chrome": "y",
- "IE": "y",
- "Edge": "y",
- "Firefox": "y",
- "Safari": "y"
- },
- "灏忕▼搴�": {
- "寰俊": "y",
- "闃块噷": "y",
- "鐧惧害": "y",
- "瀛楄妭璺冲姩": "y",
- "QQ": "y"
- },
- "蹇簲鐢�": {
- "鍗庝负": "u",
- "鑱旂洘": "u"
- },
- "Vue": {
- "vue2": "y",
- "vue3": "y"
- }
- }
- }
- }
-}
\ No newline at end of file
diff --git a/uni_modules/uni-tag/readme.md b/uni_modules/uni-tag/readme.md
deleted file mode 100644
index 6e78ff5..0000000
--- a/uni_modules/uni-tag/readme.md
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-## Tag 鏍囩
-> **缁勪欢鍚嶏細uni-tag**
-> 浠g爜鍧楋細 `uTag`
-
-
-鐢ㄤ簬灞曠ず1涓垨澶氫釜鏂囧瓧鏍囩锛屽彲鐐瑰嚮鍒囨崲閫変腑銆佷笉閫変腑鐨勭姸鎬� 銆�
-
-### [鏌ョ湅鏂囨。](https://uniapp.dcloud.io/component/uniui/uni-tag)
-#### 濡備娇鐢ㄨ繃绋嬩腑鏈変换浣曢棶棰橈紝鎴栬�呮偍瀵箄ni-ui鏈変竴浜涘ソ鐨勫缓璁紝娆㈣繋鍔犲叆 uni-ui 浜ゆ祦缇わ細871950839
-
-
diff --git a/uni_modules/uni-title/changelog.md b/uni_modules/uni-title/changelog.md
deleted file mode 100644
index f0f1d67..0000000
--- a/uni_modules/uni-title/changelog.md
+++ /dev/null
@@ -1,8 +0,0 @@
-## 1.1.0锛�2021-11-19锛�
-- 浼樺寲 缁勪欢UI锛屽苟鎻愪緵璁捐璧勬簮锛岃瑙�:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource)
-- 鏂囨。杩佺Щ锛岃瑙�:[https://uniapp.dcloud.io/component/uniui/uni-title](https://uniapp.dcloud.io/component/uniui/uni-title)
-## 1.0.2锛�2021-05-12锛�
-- 鏂板 绀轰緥鍦板潃
-- 淇 绀轰緥椤圭洰缂哄皯缁勪欢鐨凚ug
-## 1.0.1锛�2021-02-05锛�
-- 璋冩暣涓簎ni_modules鐩綍瑙勮寖
diff --git a/uni_modules/uni-title/components/uni-title/uni-title.vue b/uni_modules/uni-title/components/uni-title/uni-title.vue
deleted file mode 100644
index 64d9c83..0000000
--- a/uni_modules/uni-title/components/uni-title/uni-title.vue
+++ /dev/null
@@ -1,171 +0,0 @@
-<template>
- <view class="uni-title__box" :style="{'align-items':textAlign}">
- <text class="uni-title__base" :class="['uni-'+type]" :style="{'color':color}">{{title}}</text>
- </view>
-</template>
-
-<script>
- /**
- * Title 绔犺妭鏍囬
- * @description 绔犺妭鏍囬锛岄�氬父鐢ㄤ簬璁板綍椤甸潰鏍囬锛屼娇鐢ㄥ綋鍓嶇粍浠讹紝uni-app 濡傛灉寮�鍚粺璁★紝灏嗕細鑷姩缁熻椤甸潰鏍囬
- * @tutorial https://ext.dcloud.net.cn/plugin?id=1066
- * @property {String} type = [h1|h2|h3|h4|h5] 鏍囬绫诲瀷
- * @value h1 涓�绾ф爣棰�
- * @value h2 浜岀骇鏍囬
- * @value h3 涓夌骇鏍囬
- * @value h4 鍥涚骇鏍囬
- * @value h5 浜旂骇鏍囬
- * @property {String} title 绔犺妭鏍囬鍐呭
- * @property {String} align = [left|center|right] 瀵归綈鏂瑰紡
- * @value left 鍋氬榻�
- * @value center 灞呬腑瀵归綈
- * @value right 鍙冲榻�
- * @property {String} color 瀛椾綋棰滆壊
- * @property {Boolean} stat = [true|false] 鏄惁寮�鍚粺璁″姛鑳藉憿锛屽涓嶅~鍐檛ype鍊硷紝榛樿涓哄紑鍚紝濉啓 type 灞炴�э紝榛樿涓哄叧闂�
- */
- export default {
- name:"UniTitle",
- props: {
- type: {
- type: String,
- default: ''
- },
- title: {
- type: String,
- default: ''
- },
- align: {
- type: String,
- default: 'left'
- },
- color: {
- type: String,
- default: '#333333'
- },
- stat: {
- type: [Boolean, String],
- default: ''
- }
- },
- data() {
- return {
-
- };
- },
- computed: {
- textAlign() {
- let align = 'center';
- switch (this.align) {
- case 'left':
- align = 'flex-start'
- break;
- case 'center':
- align = 'center'
- break;
- case 'right':
- align = 'flex-end'
- break;
- }
- return align
- }
- },
- watch: {
- title(newVal) {
- if (this.isOpenStat()) {
- // 涓婃姤鏁版嵁
- if (uni.report) {
- uni.report('title', this.title)
- }
- }
- }
- },
- mounted() {
- if (this.isOpenStat()) {
- // 涓婃姤鏁版嵁
- if (uni.report) {
- uni.report('title', this.title)
- }
- }
- },
- methods: {
- isOpenStat() {
- if (this.stat === '') {
- this.isStat = false
- }
- let stat_type = (typeof(this.stat) === 'boolean' && this.stat) || (typeof(this.stat) === 'string' && this.stat !==
- '')
- if (this.type === "") {
- this.isStat = true
- if (this.stat.toString() === 'false') {
- this.isStat = false
- }
- }
-
- if (this.type !== '') {
- this.isStat = true
- if (stat_type) {
- this.isStat = true
- } else {
- this.isStat = false
- }
- }
- return this.isStat
- }
- }
- }
-</script>
-
-<style scoped>
- /* .uni-title {
-
- } */
- .uni-title__box {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- flex-direction: column;
- align-items: flex-start;
- justify-content: center;
- padding: 8px 0;
- flex: 1;
- }
-
- .uni-title__base {
- font-size: 15px;
- color: #333;
- font-weight: 500;
- }
-
- .uni-h1 {
- font-size: 20px;
- color: #333;
- font-weight: bold;
- }
-
- .uni-h2 {
- font-size: 18px;
- color: #333;
- font-weight: bold;
- }
-
- .uni-h3 {
- font-size: 16px;
- color: #333;
- font-weight: bold;
- /* font-weight: 400; */
- }
-
- .uni-h4 {
- font-size: 14px;
- color: #333;
- font-weight: bold;
- /* font-weight: 300; */
- }
-
- .uni-h5 {
- font-size: 12px;
- color: #333;
- font-weight: bold;
- /* font-weight: 200; */
- }
-</style>
diff --git a/uni_modules/uni-title/package.json b/uni_modules/uni-title/package.json
deleted file mode 100644
index 3b37082..0000000
--- a/uni_modules/uni-title/package.json
+++ /dev/null
@@ -1,88 +0,0 @@
-{
- "id": "uni-title",
- "displayName": "uni-title 绔犺妭鏍囬",
- "version": "1.1.0",
- "description": "绔犺妭鏍囬锛岄�氬父鐢ㄤ簬璁板綍椤甸潰鏍囬锛屼娇鐢ㄥ綋鍓嶇粍浠讹紝uni-app 濡傛灉寮�鍚粺璁★紝灏嗕細鑷姩缁熻椤甸潰鏍囬",
- "keywords": [
- "uni-ui",
- "uniui",
- "鏍囬",
- "绔犺妭",
- "绔犺妭鏍囬",
- ""
-],
- "repository": "https://github.com/dcloudio/uni-ui",
- "engines": {
- "HBuilderX": ""
- },
- "directories": {
- "example": "../../temps/example_temps"
- },
- "dcloudext": {
- "category": [
- "鍓嶇缁勪欢",
- "閫氱敤缁勪欢"
- ],
- "sale": {
- "regular": {
- "price": "0.00"
- },
- "sourcecode": {
- "price": "0.00"
- }
- },
- "contact": {
- "qq": ""
- },
- "declaration": {
- "ads": "鏃�",
- "data": "鏃�",
- "permissions": "鏃�"
- },
- "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui"
- },
- "uni_modules": {
- "dependencies": ["uni-scss"],
- "encrypt": [],
- "platforms": {
- "cloud": {
- "tcb": "y",
- "aliyun": "y"
- },
- "client": {
- "App": {
- "app-vue": "y",
- "app-nvue": "y"
- },
- "H5-mobile": {
- "Safari": "y",
- "Android Browser": "y",
- "寰俊娴忚鍣�(Android)": "y",
- "QQ娴忚鍣�(Android)": "y"
- },
- "H5-pc": {
- "Chrome": "y",
- "IE": "y",
- "Edge": "y",
- "Firefox": "y",
- "Safari": "y"
- },
- "灏忕▼搴�": {
- "寰俊": "y",
- "闃块噷": "y",
- "鐧惧害": "y",
- "瀛楄妭璺冲姩": "y",
- "QQ": "y"
- },
- "蹇簲鐢�": {
- "鍗庝负": "u",
- "鑱旂洘": "u"
- },
- "Vue": {
- "vue2": "y",
- "vue3": "y"
- }
- }
- }
- }
-}
\ No newline at end of file
diff --git a/uni_modules/uni-title/readme.md b/uni_modules/uni-title/readme.md
deleted file mode 100644
index ad1b4bf..0000000
--- a/uni_modules/uni-title/readme.md
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-## Title 绔犺妭鏍囬
-> **缁勪欢鍚嶏細uni-title**
-> 浠g爜鍧楋細 `uTitle`
-
-
-绔犺妭鏍囬锛岄�氬父鐢ㄤ簬璁板綍椤甸潰鏍囬锛屼娇鐢ㄥ綋鍓嶇粍浠讹紝uni-app 濡傛灉寮�鍚粺璁★紝灏嗕細鑷姩缁熻椤甸潰鏍囬 銆�
-
-### [鏌ョ湅鏂囨。](https://uniapp.dcloud.io/component/uniui/uni-title)
-#### 濡備娇鐢ㄨ繃绋嬩腑鏈変换浣曢棶棰橈紝鎴栬�呮偍瀵箄ni-ui鏈変竴浜涘ソ鐨勫缓璁紝娆㈣繋鍔犲叆 uni-ui 浜ゆ祦缇わ細871950839
-
-
-
diff --git a/uni_modules/uni-transition/changelog.md b/uni_modules/uni-transition/changelog.md
deleted file mode 100644
index b1a824b..0000000
--- a/uni_modules/uni-transition/changelog.md
+++ /dev/null
@@ -1,20 +0,0 @@
-## 1.3.1锛�2021-11-23锛�
-- 淇 init 鏂规硶鍒濆鍖栭棶棰�
-## 1.3.0锛�2021-11-19锛�
-- 浼樺寲 缁勪欢UI锛屽苟鎻愪緵璁捐璧勬簮锛岃瑙�:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource)
-- 鏂囨。杩佺Щ锛岃瑙�:[https://uniapp.dcloud.io/component/uniui/uni-transition](https://uniapp.dcloud.io/component/uniui/uni-transition)
-## 1.2.1锛�2021-09-27锛�
-- 淇 init 鏂规硶涓嶇敓鏁堢殑 Bug
-## 1.2.0锛�2021-07-30锛�
-- 缁勪欢鍏煎 vue3锛屽浣曞垱寤� vue3 椤圭洰锛岃瑙� [uni-app 椤圭洰鏀寔 vue3 浠嬬粛](https://ask.dcloud.net.cn/article/37834)
-## 1.1.1锛�2021-05-12锛�
-- 鏂板 绀轰緥鍦板潃
-- 淇 绀轰緥椤圭洰缂哄皯缁勪欢鐨� Bug
-## 1.1.0锛�2021-04-22锛�
-- 鏂板 閫氳繃鏂规硶鑷畾涔夊姩鐢�
-- 鏂板 custom-class 闈� NVUE 骞冲彴鏀寔鑷畾涔� class 瀹氬埗鏍峰紡
-- 浼樺寲 鍔ㄧ敾瑙﹀彂閫昏緫锛屼娇鍔ㄧ敾鏇存祦鐣�
-- 浼樺寲 鏀寔鍗曠嫭鐨勫姩鐢荤被鍨�
-- 浼樺寲 鏂囨。绀轰緥
-## 1.0.2锛�2021-02-05锛�
-- 璋冩暣涓� uni_modules 鐩綍瑙勮寖
diff --git a/uni_modules/uni-transition/components/uni-transition/createAnimation.js b/uni_modules/uni-transition/components/uni-transition/createAnimation.js
deleted file mode 100644
index 5f54365..0000000
--- a/uni_modules/uni-transition/components/uni-transition/createAnimation.js
+++ /dev/null
@@ -1,128 +0,0 @@
-// const defaultOption = {
-// duration: 300,
-// timingFunction: 'linear',
-// delay: 0,
-// transformOrigin: '50% 50% 0'
-// }
-// #ifdef APP-NVUE
-const nvueAnimation = uni.requireNativePlugin('animation')
-// #endif
-class MPAnimation {
- constructor(options, _this) {
- this.options = options
- this.animation = uni.createAnimation(options)
- this.currentStepAnimates = {}
- this.next = 0
- this.$ = _this
-
- }
-
- _nvuePushAnimates(type, args) {
- let aniObj = this.currentStepAnimates[this.next]
- let styles = {}
- if (!aniObj) {
- styles = {
- styles: {},
- config: {}
- }
- } else {
- styles = aniObj
- }
- if (animateTypes1.includes(type)) {
- if (!styles.styles.transform) {
- styles.styles.transform = ''
- }
- let unit = ''
- if(type === 'rotate'){
- unit = 'deg'
- }
- styles.styles.transform += `${type}(${args+unit}) `
- } else {
- styles.styles[type] = `${args}`
- }
- this.currentStepAnimates[this.next] = styles
- }
- _animateRun(styles = {}, config = {}) {
- let ref = this.$.$refs['ani'].ref
- if (!ref) return
- return new Promise((resolve, reject) => {
- nvueAnimation.transition(ref, {
- styles,
- ...config
- }, res => {
- resolve()
- })
- })
- }
-
- _nvueNextAnimate(animates, step = 0, fn) {
- let obj = animates[step]
- if (obj) {
- let {
- styles,
- config
- } = obj
- this._animateRun(styles, config).then(() => {
- step += 1
- this._nvueNextAnimate(animates, step, fn)
- })
- } else {
- this.currentStepAnimates = {}
- typeof fn === 'function' && fn()
- this.isEnd = true
- }
- }
-
- step(config = {}) {
- // #ifndef APP-NVUE
- this.animation.step(config)
- // #endif
- // #ifdef APP-NVUE
- this.currentStepAnimates[this.next].config = Object.assign({}, this.options, config)
- this.currentStepAnimates[this.next].styles.transformOrigin = this.currentStepAnimates[this.next].config.transformOrigin
- this.next++
- // #endif
- return this
- }
-
- run(fn) {
- // #ifndef APP-NVUE
- this.$.animationData = this.animation.export()
- this.$.timer = setTimeout(() => {
- typeof fn === 'function' && fn()
- }, this.$.durationTime)
- // #endif
- // #ifdef APP-NVUE
- this.isEnd = false
- let ref = this.$.$refs['ani'] && this.$.$refs['ani'].ref
- if(!ref) return
- this._nvueNextAnimate(this.currentStepAnimates, 0, fn)
- this.next = 0
- // #endif
- }
-}
-
-
-const animateTypes1 = ['matrix', 'matrix3d', 'rotate', 'rotate3d', 'rotateX', 'rotateY', 'rotateZ', 'scale', 'scale3d',
- 'scaleX', 'scaleY', 'scaleZ', 'skew', 'skewX', 'skewY', 'translate', 'translate3d', 'translateX', 'translateY',
- 'translateZ'
-]
-const animateTypes2 = ['opacity', 'backgroundColor']
-const animateTypes3 = ['width', 'height', 'left', 'right', 'top', 'bottom']
-animateTypes1.concat(animateTypes2, animateTypes3).forEach(type => {
- MPAnimation.prototype[type] = function(...args) {
- // #ifndef APP-NVUE
- this.animation[type](...args)
- // #endif
- // #ifdef APP-NVUE
- this._nvuePushAnimates(type, args)
- // #endif
- return this
- }
-})
-
-export function createAnimation(option, _this) {
- if(!_this) return
- clearTimeout(_this.timer)
- return new MPAnimation(option, _this)
-}
diff --git a/uni_modules/uni-transition/components/uni-transition/uni-transition.vue b/uni_modules/uni-transition/components/uni-transition/uni-transition.vue
deleted file mode 100644
index 0d739bd..0000000
--- a/uni_modules/uni-transition/components/uni-transition/uni-transition.vue
+++ /dev/null
@@ -1,277 +0,0 @@
-<template>
- <view v-if="isShow" ref="ani" :animation="animationData" :class="customClass" :style="transformStyles" @click="onClick"><slot></slot></view>
-</template>
-
-<script>
-import { createAnimation } from './createAnimation'
-
-/**
- * Transition 杩囨浮鍔ㄧ敾
- * @description 绠�鍗曡繃娓″姩鐢荤粍浠�
- * @tutorial https://ext.dcloud.net.cn/plugin?id=985
- * @property {Boolean} show = [false|true] 鎺у埗缁勪欢鏄剧ず鎴栭殣钘�
- * @property {Array|String} modeClass = [fade|slide-top|slide-right|slide-bottom|slide-left|zoom-in|zoom-out] 杩囨浮鍔ㄧ敾绫诲瀷
- * @value fade 娓愰殣娓愬嚭杩囨浮
- * @value slide-top 鐢变笂鑷充笅杩囨浮
- * @value slide-right 鐢卞彸鑷冲乏杩囨浮
- * @value slide-bottom 鐢变笅鑷充笂杩囨浮
- * @value slide-left 鐢卞乏鑷冲彸杩囨浮
- * @value zoom-in 鐢卞皬鍒板ぇ杩囨浮
- * @value zoom-out 鐢卞ぇ鍒板皬杩囨浮
- * @property {Number} duration 杩囨浮鍔ㄧ敾鎸佺画鏃堕棿
- * @property {Object} styles 缁勪欢鏍峰紡锛屽悓 css 鏍峰紡锛屾敞鎰忓甫鈥�-鈥樿繛鎺ョ鐨勫睘鎬ч渶瑕佷娇鐢ㄥ皬椹煎嘲鍐欐硶濡傦細`backgroundColor:red`
- */
-export default {
- name: 'uniTransition',
- emits:['click','change'],
- props: {
- show: {
- type: Boolean,
- default: false
- },
- modeClass: {
- type: [Array, String],
- default() {
- return 'fade'
- }
- },
- duration: {
- type: Number,
- default: 300
- },
- styles: {
- type: Object,
- default() {
- return {}
- }
- },
- customClass:{
- type: String,
- default: ''
- }
- },
- data() {
- return {
- isShow: false,
- transform: '',
- opacity: 1,
- animationData: {},
- durationTime: 300,
- config: {}
- }
- },
- watch: {
- show: {
- handler(newVal) {
- if (newVal) {
- this.open()
- } else {
- // 閬垮厤涓婃潵灏辨墽琛� close,瀵艰嚧鍔ㄧ敾閿欎贡
- if (this.isShow) {
- this.close()
- }
- }
- },
- immediate: true
- }
- },
- computed: {
- // 鐢熸垚鏍峰紡鏁版嵁
- stylesObject() {
- let styles = {
- ...this.styles,
- 'transition-duration': this.duration / 1000 + 's'
- }
- let transform = ''
- for (let i in styles) {
- let line = this.toLine(i)
- transform += line + ':' + styles[i] + ';'
- }
- return transform
- },
- // 鍒濆鍖栧姩鐢绘潯浠�
- transformStyles() {
- return 'transform:' + this.transform + ';' + 'opacity:' + this.opacity + ';' + this.stylesObject
- }
- },
- created() {
- // 鍔ㄧ敾榛樿閰嶇疆
- this.config = {
- duration: this.duration,
- timingFunction: 'ease',
- transformOrigin: '50% 50%',
- delay: 0
- }
- this.durationTime = this.duration
- },
- methods: {
- /**
- * ref 瑙﹀彂 鍒濆鍖栧姩鐢�
- */
- init(obj = {}) {
- if (obj.duration) {
- this.durationTime = obj.duration
- }
- this.animation = createAnimation(Object.assign(this.config, obj),this)
- },
- /**
- * 鐐瑰嚮缁勪欢瑙﹀彂鍥炶皟
- */
- onClick() {
- this.$emit('click', {
- detail: this.isShow
- })
- },
- /**
- * ref 瑙﹀彂 鍔ㄧ敾鍒嗙粍
- * @param {Object} obj
- */
- step(obj, config = {}) {
- if (!this.animation) return
- for (let i in obj) {
- try {
- if(typeof obj[i] === 'object'){
- this.animation[i](...obj[i])
- }else{
- this.animation[i](obj[i])
- }
- } catch (e) {
- console.error(`鏂规硶 ${i} 涓嶅瓨鍦╜)
- }
- }
- this.animation.step(config)
- return this
- },
- /**
- * ref 瑙﹀彂 鎵ц鍔ㄧ敾
- */
- run(fn) {
- if (!this.animation) return
- this.animation.run(fn)
- },
- // 寮�濮嬭繃搴﹀姩鐢�
- open() {
- clearTimeout(this.timer)
- this.transform = ''
- this.isShow = true
- let { opacity, transform } = this.styleInit(false)
- if (typeof opacity !== 'undefined') {
- this.opacity = opacity
- }
- this.transform = transform
- // 纭繚鍔ㄦ�佹牱寮忓凡缁忕敓鏁堝悗锛屾墽琛屽姩鐢伙紝濡傛灉涓嶅姞 nextTick 锛屼細瀵艰嚧 wx 鍔ㄧ敾鎵ц寮傚父
- this.$nextTick(() => {
- // TODO 瀹氭椂鍣ㄤ繚璇佸姩鐢诲畬鍏ㄦ墽琛岋紝鐩墠鏈変簺闂锛屽悗闈細鍙栨秷瀹氭椂鍣�
- this.timer = setTimeout(() => {
- this.animation = createAnimation(this.config, this)
- this.tranfromInit(false).step()
- this.animation.run()
- this.$emit('change', {
- detail: this.isShow
- })
- }, 20)
- })
- },
- // 鍏抽棴杩囧害鍔ㄧ敾
- close(type) {
- if (!this.animation) return
- this.tranfromInit(true)
- .step()
- .run(() => {
- this.isShow = false
- this.animationData = null
- this.animation = null
- let { opacity, transform } = this.styleInit(false)
- this.opacity = opacity || 1
- this.transform = transform
- this.$emit('change', {
- detail: this.isShow
- })
- })
- },
- // 澶勭悊鍔ㄧ敾寮�濮嬪墠鐨勯粯璁ゆ牱寮�
- styleInit(type) {
- let styles = {
- transform: ''
- }
- let buildStyle = (type, mode) => {
- if (mode === 'fade') {
- styles.opacity = this.animationType(type)[mode]
- } else {
- styles.transform += this.animationType(type)[mode] + ' '
- }
- }
- if (typeof this.modeClass === 'string') {
- buildStyle(type, this.modeClass)
- } else {
- this.modeClass.forEach(mode => {
- buildStyle(type, mode)
- })
- }
- return styles
- },
- // 澶勭悊鍐呯疆缁勫悎鍔ㄧ敾
- tranfromInit(type) {
- let buildTranfrom = (type, mode) => {
- let aniNum = null
- if (mode === 'fade') {
- aniNum = type ? 0 : 1
- } else {
- aniNum = type ? '-100%' : '0'
- if (mode === 'zoom-in') {
- aniNum = type ? 0.8 : 1
- }
- if (mode === 'zoom-out') {
- aniNum = type ? 1.2 : 1
- }
- if (mode === 'slide-right') {
- aniNum = type ? '100%' : '0'
- }
- if (mode === 'slide-bottom') {
- aniNum = type ? '100%' : '0'
- }
- }
- this.animation[this.animationMode()[mode]](aniNum)
- }
- if (typeof this.modeClass === 'string') {
- buildTranfrom(type, this.modeClass)
- } else {
- this.modeClass.forEach(mode => {
- buildTranfrom(type, mode)
- })
- }
-
- return this.animation
- },
- animationType(type) {
- return {
- fade: type ? 1 : 0,
- 'slide-top': `translateY(${type ? '0' : '-100%'})`,
- 'slide-right': `translateX(${type ? '0' : '100%'})`,
- 'slide-bottom': `translateY(${type ? '0' : '100%'})`,
- 'slide-left': `translateX(${type ? '0' : '-100%'})`,
- 'zoom-in': `scaleX(${type ? 1 : 0.8}) scaleY(${type ? 1 : 0.8})`,
- 'zoom-out': `scaleX(${type ? 1 : 1.2}) scaleY(${type ? 1 : 1.2})`
- }
- },
- // 鍐呯疆鍔ㄧ敾绫诲瀷涓庡疄闄呭姩鐢诲搴斿瓧鍏�
- animationMode() {
- return {
- fade: 'opacity',
- 'slide-top': 'translateY',
- 'slide-right': 'translateX',
- 'slide-bottom': 'translateY',
- 'slide-left': 'translateX',
- 'zoom-in': 'scale',
- 'zoom-out': 'scale'
- }
- },
- // 椹煎嘲杞腑妯嚎
- toLine(name) {
- return name.replace(/([A-Z])/g, '-$1').toLowerCase()
- }
- }
-}
-</script>
-
-<style></style>
diff --git a/uni_modules/uni-transition/package.json b/uni_modules/uni-transition/package.json
deleted file mode 100644
index d15fdf0..0000000
--- a/uni_modules/uni-transition/package.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "id": "uni-transition",
- "displayName": "uni-transition 杩囨浮鍔ㄧ敾",
- "version": "1.3.1",
- "description": "鍏冪礌鐨勭畝鍗曡繃娓″姩鐢�",
- "keywords": [
- "uni-ui",
- "uniui",
- "鍔ㄧ敾",
- "杩囨浮",
- "杩囨浮鍔ㄧ敾"
-],
- "repository": "https://github.com/dcloudio/uni-ui",
- "engines": {
- "HBuilderX": ""
- },
- "directories": {
- "example": "../../temps/example_temps"
- },
- "dcloudext": {
- "category": [
- "鍓嶇缁勪欢",
- "閫氱敤缁勪欢"
- ],
- "sale": {
- "regular": {
- "price": "0.00"
- },
- "sourcecode": {
- "price": "0.00"
- }
- },
- "contact": {
- "qq": ""
- },
- "declaration": {
- "ads": "鏃�",
- "data": "鏃�",
- "permissions": "鏃�"
- },
- "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui"
- },
- "uni_modules": {
- "dependencies": ["uni-scss"],
- "encrypt": [],
- "platforms": {
- "cloud": {
- "tcb": "y",
- "aliyun": "y"
- },
- "client": {
- "App": {
- "app-vue": "y",
- "app-nvue": "y"
- },
- "H5-mobile": {
- "Safari": "y",
- "Android Browser": "y",
- "寰俊娴忚鍣�(Android)": "y",
- "QQ娴忚鍣�(Android)": "y"
- },
- "H5-pc": {
- "Chrome": "y",
- "IE": "y",
- "Edge": "y",
- "Firefox": "y",
- "Safari": "y"
- },
- "灏忕▼搴�": {
- "寰俊": "y",
- "闃块噷": "y",
- "鐧惧害": "y",
- "瀛楄妭璺冲姩": "y",
- "QQ": "y"
- },
- "蹇簲鐢�": {
- "鍗庝负": "u",
- "鑱旂洘": "u"
- },
- "Vue": {
- "vue2": "y",
- "vue3": "y"
- }
- }
- }
- }
-}
\ No newline at end of file
diff --git a/uni_modules/uni-transition/readme.md b/uni_modules/uni-transition/readme.md
deleted file mode 100644
index 2f8a77e..0000000
--- a/uni_modules/uni-transition/readme.md
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
-## Transition 杩囨浮鍔ㄧ敾
-> **缁勪欢鍚嶏細uni-transition**
-> 浠g爜鍧楋細 `uTransition`
-
-
-鍏冪礌杩囨浮鍔ㄧ敾
-
-### [鏌ョ湅鏂囨。](https://uniapp.dcloud.io/component/uniui/uni-transition)
-#### 濡備娇鐢ㄨ繃绋嬩腑鏈変换浣曢棶棰橈紝鎴栬�呮偍瀵箄ni-ui鏈変竴浜涘ソ鐨勫缓璁紝娆㈣繋鍔犲叆 uni-ui 浜ゆ祦缇わ細871950839
\ No newline at end of file
diff --git a/uni_modules/uni-upgrade-center-app/changelog.md b/uni_modules/uni-upgrade-center-app/changelog.md
deleted file mode 100644
index 92f7529..0000000
--- a/uni_modules/uni-upgrade-center-app/changelog.md
+++ /dev/null
@@ -1,53 +0,0 @@
-## 0.3.2锛�2022-01-12锛�
-- 浼樺寲鏄剧ず閫昏緫
-## 0.3.1锛�2021-11-24锛�
-- 淇 vue3 涓婂浘鐗囦笉鏄剧ず鐨凚ug
-## 0.3.0锛�2021-11-18锛�
-- 绉婚櫎 wgt 瀹夎鎴愬姛鍚庢彁绀猴紝闃叉閲嶅惎杩囧揩寮规涓嶆秷澶�
-## 0.2.2锛�2021-08-25锛�
-- 鍏煎vue3.0
-## 0.2.1锛�2021-07-26锛�
-- 淇 浣跨敤鑵捐浜戝苟鎵嬪姩濉啓鍦板潃鏃讹紝瀵艰嚧涓嬭浇閾炬帴澶辨晥鐨刡ug
-## 0.2.0锛�2021-07-13锛�
-- 鏇存柊鏂囨。 鍏充簬鎶ラ敊local_storage_key 涓虹┖锛岃涓嶈灏嗛〉闈㈣矾寰勮缃负pages.json涓涓�椤�
-## 0.1.9锛�2021-06-28锛�
-- 鏇存柊鏂囨。
-- 淇 wgt瀹夎澶辫触鏃讹紝鎸夐挳鐘舵�佷笉瀵�
-## 0.1.8锛�2021-06-16锛�
-- 淇 璺宠浆瀹夎鏃讹紝瀵艰嚧涓婃涓嬭浇鐨刟pk杩樻病瀹夎灏辫鍒犳帀鐨刡ug
-## 0.1.7锛�2021-06-03锛�
-- 淇敼 绉婚櫎static涓殑鍥剧墖
-## 0.1.6锛�2021-06-03锛�
-- 淇敼 涓嬭浇鏇存柊鎸夐挳浣跨敤CSS娓愬彉鑹�
-## 0.1.5锛�2021-04-22锛�
-- 鏇存柊check-update鍑芥暟銆傜幇鍦ㄨ繑鍥炰竴涓狿romise锛屾湁鏇存柊鏃舵垚鍔熷洖璋冿紝鍏朵粬鎯呭喌閿欒鍥炶皟
-## 0.1.4锛�2021-04-13锛�
-- 鏇存柊鏂囨。銆傛槑纭簯鍑芥暟璋冪敤缁撴灉
-## 0.1.3锛�2021-04-13锛�
-- 瑙h�︿簯鍑芥暟涓庡脊妗嗗鐞嗐�倁tils涓柊澧� call-check-version.js锛屽彲鐢ㄤ簬鍗曠嫭妫�娴嬫槸鍚︽湁鏇存柊
-## 0.1.2锛�2021-04-07锛�
-- 鏇存柊鐗堟湰瀵规瘮鍑芥暟 compare
-## 0.1.1锛�2021-04-07锛�
-- 淇 鑵捐浜戠┖闂翠笅杞介摼鎺ヤ笉鑳戒笅杞介棶棰�
-## 0.1.0锛�2021-04-07锛�
-- 鏂板浣跨敤uni.showModal鎻愮ず鍗囩骇绀轰緥
-- 淇敼iOS鍗囩骇鎻愮ず鏂瑰紡
-## 0.0.7锛�2021-04-02锛�
-- 淇鍦╥OS涓婃墦寮�寮规鎶ラ敊
-## 0.0.6锛�2021-04-01锛�
-- 鍏煎鏃х増鏈畨鍗�
-## 0.0.5锛�2021-04-01锛�
-- 淇浣庣増鏈畨鍗撲笂杩涘害鏉¢敊浣�
-## 0.0.4锛�2021-04-01锛�
-- 鏇存柊readme
-- 淇check-update璇硶閿欒
-## 0.0.3锛�2021-04-01锛�
-- 鏂板鍓嶅彴鏇存柊寮规锛岃瑙乺eadme
-- 鏇存柊鍓嶅彴妫�鏌ユ洿鏂版柟娉�
-
-## 0.0.2锛�2021-03-29锛�
-- 鏇存柊鏂囨。
-- 绉婚櫎 dependencies
-
-## 0.0.1锛�2021-03-25锛�
-- 鍗囩骇涓績鍓嶅彴妫�鏌ユ洿鏂�
diff --git a/uni_modules/uni-upgrade-center-app/images/app_update_close.png b/uni_modules/uni-upgrade-center-app/images/app_update_close.png
deleted file mode 100644
index 8b2ffe6..0000000
--- a/uni_modules/uni-upgrade-center-app/images/app_update_close.png
+++ /dev/null
Binary files differ
diff --git a/uni_modules/uni-upgrade-center-app/images/bg_top.png b/uni_modules/uni-upgrade-center-app/images/bg_top.png
deleted file mode 100644
index 015f698..0000000
--- a/uni_modules/uni-upgrade-center-app/images/bg_top.png
+++ /dev/null
Binary files differ
diff --git a/uni_modules/uni-upgrade-center-app/package.json b/uni_modules/uni-upgrade-center-app/package.json
deleted file mode 100644
index b06a2ea..0000000
--- a/uni_modules/uni-upgrade-center-app/package.json
+++ /dev/null
@@ -1,83 +0,0 @@
-{
- "id": "uni-upgrade-center-app",
- "displayName": "鍗囩骇涓績 uni-upgrade-center - App",
- "version": "0.3.2",
- "description": "uni鍗囩骇涓績 - 瀹㈡埛绔鏌ユ洿鏂�",
- "keywords": [
- "uniCloud",
- "update",
- "鍗囩骇",
- "wgt"
-],
- "repository": "https://gitee.com/dcloud/uni-upgrade-center/tree/master/uni_modules/uni-upgrade-center-app",
- "engines": {
- "HBuilderX": "^3.1.0"
- },
- "dcloudext": {
- "category": [
- "uniCloud",
- "浜戠涓�浣撻〉闈㈡ā鏉�"
- ],
- "sale": {
- "regular": {
- "price": "0.00"
- },
- "sourcecode": {
- "price": "0.00"
- }
- },
- "contact": {
- "qq": ""
- },
- "declaration": {
- "ads": "鏃�",
- "data": "鎻掍欢涓嶉噰闆嗕换浣曟暟鎹�",
- "permissions": "鏃�"
- },
- "npmurl": ""
- },
- "uni_modules": {
- "dependencies": [],
- "encrypt": [],
- "platforms": {
- "cloud": {
- "tcb": "y",
- "aliyun": "y"
- },
- "client": {
- "App": {
- "app-vue": "y",
- "app-nvue": "u"
- },
- "H5-mobile": {
- "Safari": "y",
- "Android Browser": "y",
- "寰俊娴忚鍣�(Android)": "y",
- "QQ娴忚鍣�(Android)": "y"
- },
- "H5-pc": {
- "Chrome": "y",
- "IE": "y",
- "Edge": "y",
- "Firefox": "y",
- "Safari": "y"
- },
- "灏忕▼搴�": {
- "寰俊": "u",
- "闃块噷": "u",
- "鐧惧害": "u",
- "瀛楄妭璺冲姩": "u",
- "QQ": "u"
- },
- "蹇簲鐢�": {
- "鍗庝负": "u",
- "鑱旂洘": "u"
- },
- "Vue": {
- "vue2": "y",
- "vue3": "y"
- }
- }
- }
- }
-}
diff --git a/uni_modules/uni-upgrade-center-app/pages/upgrade-popup.vue b/uni_modules/uni-upgrade-center-app/pages/upgrade-popup.vue
deleted file mode 100644
index fc3a6cc..0000000
--- a/uni_modules/uni-upgrade-center-app/pages/upgrade-popup.vue
+++ /dev/null
@@ -1,500 +0,0 @@
-<template>
- <view class="mask flex-center">
- <view class="content botton-radius">
- <view class="content-top">
- <text class="content-top-text">{{title}}</text>
- <image class="content-top" style="top: 0;" width="100%" height="100%" src="../images/bg_top.png">
- </image>
- </view>
- <view class="content-header"></view>
- <view class="content-body">
- <view class="title">
- <text>{{subTitle}}</text>
- <!-- <text style="padding-left:20rpx;font-size: 0.5em;color: #666;">v.{{version}}</text> -->
- </view>
- <view class="body">
- <scroll-view class="box-des-scroll" scroll-y="true">
- <text class="box-des">
- {{contents}}
- </text>
- </scroll-view>
- </view>
- <view class="footer flex-center">
- <template v-if="isiOS">
- <button class="content-button" style="border: none;color: #fff;" plain @click="jumpToAppStore">
- {{downLoadBtnTextiOS}}
- </button>
- </template>
- <template v-else>
- <template v-if="!downloadSuccess">
- <view class="progress-box flex-column" v-if="downloading">
- <progress class="progress" border-radius="35" :percent="downLoadPercent"
- activeColor="#3DA7FF" show-info stroke-width="10" />
- <view style="width:100%;font-size: 28rpx;display: flex;justify-content: space-around;">
- <text>{{downLoadingText}}</text>
- <text>({{downloadedSize}}/{{packageFileSize}}M)</text>
- </view>
- </view>
-
- <button v-else class="content-button" style="border: none;color: #fff;" plain
- @click="downloadPackage">
- {{downLoadBtnText}}
- </button>
- </template>
- <button v-else-if="downloadSuccess && !installed" class="content-button"
- style="border: none;color: #fff;" plain :loading="installing" :disabled="installing"
- @click="installPackage">
- {{installing ? '姝e湪瀹夎鈥︹��' : '涓嬭浇瀹屾垚锛岀珛鍗冲畨瑁�'}}
- </button>
-
- <button v-if="installed && isWGT" class="content-button" style="border: none;color: #fff;" plain
- @click="restart">
- 瀹夎瀹屾瘯锛岀偣鍑婚噸鍚�
- </button>
- </template>
- </view>
- </view>
-
- <image v-if="!is_mandatory" class="close-img" src="../images/app_update_close.png"
- @click.stop="closeUpdate"></image>
- </view>
- </view>
-</template>
-
-<script>
- const localFilePathKey = '__localFilePath__'
- const platform_iOS = 'iOS';
- let downloadTask = null;
-
- /**
- * 瀵规瘮鐗堟湰鍙凤紝濡傞渶瑕侊紝璇疯嚜琛屼慨鏀瑰垽鏂鍒�
- * 鏀寔姣斿 ("3.0.0.0.0.1.0.1", "3.0.0.0.0.1") ("3.0.0.1", "3.0") ("3.1.1", "3.1.1.1") 涔嬬被鐨�
- * @param {Object} v1
- * @param {Object} v2
- * v1 > v2 return 1
- * v1 < v2 return -1
- * v1 == v2 return 0
- */
- function compare(v1 = '0', v2 = '0') {
- v1 = String(v1).split('.')
- v2 = String(v2).split('.')
- const minVersionLens = Math.min(v1.length, v2.length);
-
- let result = 0;
- for (let i = 0; i < minVersionLens; i++) {
- const curV1 = Number(v1[i])
- const curV2 = Number(v2[i])
-
- if (curV1 > curV2) {
- result = 1
- break;
- } else if(curV1 < curV2) {
- result = -1
- break;
- }
- }
-
- if (result === 0 && (v1.length !== v2.length)) {
- const v1BiggerThenv2 = v1.length > v2.length;
- const maxLensVersion = v1BiggerThenv2 ? v1 : v2;
- for (let i = minVersionLens; i < maxLensVersion.length; i++) {
- const curVersion = Number(maxLensVersion[i])
- if (curVersion > 0) {
- v1BiggerThenv2 ? result = 1 : result = -1
- break;
- }
- }
- }
-
- return result;
- }
-
- export default {
- data() {
- return {
- // 浠庝箣鍓嶄笅杞藉畨瑁�
- installForBeforeFilePath: '',
-
- // 瀹夎
- installed: false,
- installing: false,
-
- // 涓嬭浇
- downloadSuccess: false,
- downloading: false,
-
- downLoadPercent: 0,
- downloadedSize: 0,
- packageFileSize: 0,
-
- tempFilePath: '', // 瑕佸畨瑁呯殑鏈湴鍖呭湴鍧�
-
- // 榛樿瀹夎鍖呬俊鎭�
- title: '鏇存柊鏃ュ織',
- contents: '',
- is_mandatory: false,
-
- // 鍙嚜瀹氫箟灞炴��
- subTitle: '鍙戠幇鏂扮増鏈�',
- downLoadBtnTextiOS: '绔嬪嵆璺宠浆鏇存柊',
- downLoadBtnText: '绔嬪嵆涓嬭浇鏇存柊',
- downLoadingText: '瀹夎鍖呬笅杞戒腑锛岃绋嶅悗'
- }
- },
- onLoad({
- local_storage_key
- }) {
- if (!local_storage_key) {
- console.error('local_storage_key涓虹┖锛岃妫�鏌ュ悗閲嶈瘯')
- uni.navigateBack()
- return;
- };
-
- const localPackageInfo = uni.getStorageSync(local_storage_key);
- if (!localPackageInfo) {
- console.error('瀹夎鍖呬俊鎭负绌猴紝璇锋鏌ュ悗閲嶈瘯')
- uni.navigateBack()
- return;
- };
-
- const requiredKey = ['version', 'url', 'type']
- for (let key in localPackageInfo) {
- if (requiredKey.indexOf(key) !== -1 && !localPackageInfo[key]) {
- console.error(`鍙傛暟 ${key} 蹇呭~锛岃妫�鏌ュ悗閲嶈瘯`)
- uni.navigateBack()
- return;
- }
- }
-
- Object.assign(this, localPackageInfo)
- this.checkLocalStoragePackage()
- },
- onBackPress() {
- // 寮哄埗鏇存柊涓嶅厑璁歌繑鍥�
- if (this.is_mandatory) {
- return true
- }
-
- downloadTask && downloadTask.abort()
- },
- computed: {
- isWGT() {
- return this.type === 'wgt'
- },
- isiOS() {
- return !this.isWGT ? this.platform.includes(platform_iOS) : false;
- }
- },
- methods: {
- checkLocalStoragePackage() {
- // 濡傛灉宸茬粡鏈変笅杞藉ソ鐨勫寘锛屽垯鐩存帴鎻愮ず瀹夎
- const localFilePathRecord = uni.getStorageSync(localFilePathKey)
- if (localFilePathRecord) {
- const {
- version,
- savedFilePath,
- installed
- } = localFilePathRecord
-
- // 姣斿鐗堟湰
- if (!installed && compare(version, this.version) === 0) {
- this.downloadSuccess = true;
- this.installForBeforeFilePath = savedFilePath;
- this.tempFilePath = savedFilePath
- } else {
- // 濡傛灉淇濆瓨鐨勫寘鐗堟湰灏� 鎴� 宸插畨瑁呰繃锛屽垯鐩存帴鍒犻櫎
- this.deleteSavedFile(savedFilePath)
- }
- }
- },
- async closeUpdate() {
- if (this.downloading) {
- if (this.is_mandatory) {
- return uni.showToast({
- title: '涓嬭浇涓紝璇风◢鍚庘�︹��',
- icon: 'none',
- duration: 500
- })
- }
- uni.showModal({
- title: '鏄惁鍙栨秷涓嬭浇锛�',
- cancelText: '鍚�',
- confirmText: '鏄�',
- success: res => {
- if (res.confirm) {
- downloadTask && downloadTask.abort()
- uni.navigateBack()
- }
- }
- });
- return;
- }
-
- if (this.downloadSuccess && this.tempFilePath) {
- // 鍖呭凡缁忎笅杞藉畬姣曪紝绋嶅悗瀹夎锛屽皢鍖呬繚瀛樺湪鏈湴
- await this.saveFile(this.tempFilePath, this.version)
- uni.navigateBack()
- return;
- }
-
- uni.navigateBack()
- },
- downloadPackage() {
- this.downloading = true;
-
- //涓嬭浇鍖�
- downloadTask = uni.downloadFile({
- url: this.url,
- success: res => {
- if (res.statusCode == 200) {
- this.downloadSuccess = true;
- this.tempFilePath = res.tempFilePath
-
- // 寮哄埗鏇存柊锛岀洿鎺ュ畨瑁�
- if (this.is_mandatory) {
- this.installPackage();
- }
- }
- },
- complete: () => {
- this.downloading = false;
-
- this.downLoadPercent = 0
- this.downloadedSize = 0
- this.packageFileSize = 0
-
- downloadTask = null;
- }
- });
-
- downloadTask.onProgressUpdate(res => {
- this.downLoadPercent = res.progress;
- this.downloadedSize = (res.totalBytesWritten / Math.pow(1024, 2)).toFixed(2);
- this.packageFileSize = (res.totalBytesExpectedToWrite / Math.pow(1024, 2)).toFixed(2);
- });
- },
- installPackage() {
- // #ifdef APP-PLUS
- // wgt璧勬簮鍖呭畨瑁�
- if (this.isWGT) {
- this.installing = true;
- }
-
- plus.runtime.install(this.tempFilePath, {
- force: false
- }, async res => {
- this.installing = false;
- this.installed = true;
-
- // wgt鍖咃紝瀹夎鍚庝細鎻愮ず 瀹夎鎴愬姛锛屾槸鍚﹂噸鍚�
- if (this.isWGT) {
- // 寮哄埗鏇存柊瀹夎瀹屾垚閲嶅惎
- if (this.is_mandatory) {
- uni.showLoading({
- icon: 'none',
- title: '瀹夎鎴愬姛锛屾鍦ㄩ噸鍚�︹��'
- })
-
- setTimeout(() => {
- uni.hideLoading()
- this.restart();
- }, 1000)
- }
- } else {
- const localFilePathRecord = uni.getStorageSync(localFilePathKey)
- uni.setStorageSync(localFilePathKey, {
- ...localFilePathRecord,
- installed: true
- })
- }
- }, async err => {
- // 濡傛灉鏄畨瑁呬箣鍓嶇殑鍖咃紝瀹夎澶辫触鍚庡垹闄や箣鍓嶇殑鍖�
- if (this.installForBeforeFilePath) {
- await this.deleteSavedFile(this.installForBeforeFilePath)
- this.installForBeforeFilePath = '';
- }
-
- // 瀹夎澶辫触闇�瑕侀噸鏂颁笅杞藉畨瑁呭寘
- this.installing = false;
- this.installed = false;
-
- uni.showModal({
- title: `鏇存柊澶辫触${this.isWGT ? '' : '锛孉PK鏂囦欢涓嶅瓨鍦�'}锛岃閲嶆柊涓嬭浇`,
- content: err.message,
- showCancel: false
- });
- });
-
- // 闈瀢gt鍖咃紝瀹夎璺冲嚭瑕嗙洊瀹夎锛屾澶勭洿鎺ヨ繑鍥炰笂涓�椤�
- if (!this.isWGT) {
- uni.navigateBack()
- }
- // #endif
- },
- restart() {
- this.installed = false;
- // #ifdef APP-PLUS
- //鏇存柊瀹岄噸鍚痑pp
- plus.runtime.restart();
- // #endif
- },
- async saveFile(tempFilePath, version) {
- const [err, res] = await uni.saveFile({
- tempFilePath
- })
- if (err) {
- return;
- }
- uni.setStorageSync(localFilePathKey, {
- version,
- savedFilePath: res.savedFilePath
- })
- },
- deleteSavedFile(filePath) {
- uni.removeStorageSync(localFilePathKey)
- return uni.removeSavedFile({
- filePath
- })
- },
- jumpToAppStore() {
- plus.runtime.openURL(this.url);
- }
- }
- }
-</script>
-
-<style>
- page {
- background: transparent;
- }
-
- .flex-center {
- /* #ifndef APP-NVUE */
- display: flex;
- /* #endif */
- justify-content: center;
- align-items: center;
- }
-
- .mask {
- position: fixed;
- left: 0;
- top: 0;
- right: 0;
- bottom: 0;
- background-color: rgba(0, 0, 0, .65);
- }
-
- .botton-radius {
- border-bottom-left-radius: 30rpx;
- border-bottom-right-radius: 30rpx;
- }
-
- .content {
- position: relative;
- top: 0;
- width: 600rpx;
- background-color: #fff;
- box-sizing: border-box;
- padding: 0 50rpx;
- font-family: Source Han Sans CN;
- }
-
- .text {
- /* #ifndef APP-NVUE */
- display: block;
- /* #endif */
- line-height: 200px;
- text-align: center;
- color: #FFFFFF;
- }
-
- .content-top {
- position: absolute;
- top: -195rpx;
- left: 0;
- width: 600rpx;
- height: 270rpx;
- }
-
- .content-top-text {
- font-size: 45rpx;
- font-weight: bold;
- color: #F8F8FA;
- position: absolute;
- top: 120rpx;
- left: 50rpx;
- z-index: 1;
- }
-
- .content-header {
- height: 70rpx;
- }
-
- .title {
- font-size: 33rpx;
- font-weight: bold;
- color: #3DA7FF;
- line-height: 38px;
- }
-
- .footer {
- height: 150rpx;
- display: flex;
- align-items: center;
- justify-content: space-around;
- }
-
- .box-des-scroll {
- box-sizing: border-box;
- padding: 0 40rpx;
- height: 200rpx;
- text-align: left;
- }
-
- .box-des {
- font-size: 26rpx;
- color: #000000;
- line-height: 50rpx;
- }
-
- .progress-box {
- width: 100%;
- }
-
- .progress {
- width: 90%;
- height: 40rpx;
- border-radius: 35px;
- }
-
- .close-img {
- width: 70rpx;
- height: 70rpx;
- z-index: 1000;
- position: absolute;
- bottom: -120rpx;
- left: calc(50% - 70rpx / 2);
- }
-
- .content-button {
- text-align: center;
- flex: 1;
- font-size: 30rpx;
- font-weight: 400;
- color: #FFFFFF;
- border-radius: 40rpx;
- margin: 0 18rpx;
-
- height: 80rpx;
- line-height: 80rpx;
-
- background: linear-gradient(to right, #1785ff, #3DA7FF);
- }
-
- .flex-column {
- display: flex;
- flex-direction: column;
- align-items: center;
- }
-</style>
diff --git a/uni_modules/uni-upgrade-center-app/pages_init.json b/uni_modules/uni-upgrade-center-app/pages_init.json
deleted file mode 100644
index c12164d..0000000
--- a/uni_modules/uni-upgrade-center-app/pages_init.json
+++ /dev/null
@@ -1,18 +0,0 @@
-{
- "pages": [{
- "path": "uni_modules/uni-upgrade-center-app/pages/upgrade-popup",
- "style": {
- "disableScroll": true,
- "app-plus": {
- "backgroundColorTop": "transparent",
- "background": "transparent",
- "titleNView": false,
- "scrollIndicator": false,
- "popGesture": "none",
- "animationType": "fade-in",
- "animationDuration": 200
-
- }
- }
- }]
-}
diff --git a/uni_modules/uni-upgrade-center-app/readme.md b/uni_modules/uni-upgrade-center-app/readme.md
deleted file mode 100644
index fa102c9..0000000
--- a/uni_modules/uni-upgrade-center-app/readme.md
+++ /dev/null
@@ -1,121 +0,0 @@
-# uni-upgrade-center - App
-
-### 姒傝堪
-
-> 缁熶竴绠$悊App鍙夾pp鍦╜Android`銆乣iOS`骞冲彴涓奰App瀹夎鍖卄鍜宍wgt璧勬簮鍖卄鐨勫彂甯冨崌绾�
-
-> 鏈彃浠朵负uni鍗囩骇涓績瀹㈡埛绔鏌ユ洿鏂帮紝鍚庡彴绠$悊绯荤粺璇风偣鍑绘煡鐪� [uni-upgrade-center - Admin](https://ext.dcloud.net.cn/plugin?id=4470)
-
-### uni鍗囩骇涓績 - 瀹㈡埛绔鏌ユ洿鏂版彃浠�
- - 涓�閿紡妫�鏌ユ洿鏂帮紝鍚屾椂鏀寔鏁村寘鍗囩骇涓巜gt璧勬簮鍖呮洿鏂�
- - 濂界湅銆佸疄鐢ㄣ�佸彲鑷畾涔夌殑瀹㈡埛绔彁绀烘
-
-## 瀹夎鎸囧紩
-
-1. 渚濊禆鏁版嵁搴揱opendb-app-versions`锛屽鏋滄病鏈夋搴擄紝璇峰湪浜戞湇鍔$┖闂翠腑鍒涘缓銆�
-
-2. 浣跨敤`HBuilderX 3.1.0+`锛屽洜涓鸿浣跨敤鍒癭uni_modules`
-
-3. 鍦ㄦ彃浠跺競鍦烘墦寮�鏈彃浠堕〉闈紝鍦ㄥ彸渚х偣鍑籤浣跨敤 HBuilderX 瀵煎叆鎻掍欢`锛岄�夋嫨瑕佸鍏ョ殑椤圭洰鐐瑰嚮纭畾
-
-4. 缁戝畾涓�涓湇鍔$┖闂�
-
-5. 鎵惧埌`/uni_modules/uni-upgrade-center-app/uniCloud/cloudfunctions/check-version`锛屽彸閿笂浼犻儴缃�
-
-6. 鍦╜pages.json`涓坊鍔犻〉闈㈣矾寰勩��**娉細璇蜂笉瑕佽缃负pages.json涓涓�椤�**
-```json
-"pages": [
- // 鈥︹�﹀叾浠栭〉闈㈤厤缃�
- {
- "path": "uni_modules/uni-upgrade-center-app/pages/upgrade-popup",
- "style": {
- "disableScroll": true,
- "app-plus": {
- "backgroundColorTop": "transparent",
- "background": "transparent",
- "titleNView": false,
- "scrollIndicator": false,
- "popGesture": "none",
- "animationType": "fade-in",
- "animationDuration": 200
-
- }
- }
- }
-]
-```
-
-7. 灏哷@/uni_modules/uni-upgrade-center-app/utils/check-update`import鍒伴渶瑕佺敤鍒扮殑鍦版柟锛岃皟鐢ㄤ竴涓嬪嵆鍙�
-
-8. 鍗囩骇寮规鍙嚜琛岀紪鍐欙紝涔熷彲浠ヤ娇鐢╜uni.showModal`锛屾垨浣跨敤鐜版湁鐨勫崌绾у脊妗嗘牱寮忥紝濡傛灉涓嶆弧瓒砋I闇�姹傝鑷鏇挎崲璧勬簮鏂囦欢銆傚湪`utils/check-update.js`涓兘鏈夊疄渚嬨��
-
-9. wgt鏇存柊鏃讹紝鎵撳寘鍓嶈鍔″繀灏唌anifest.json涓殑鐗堟湰淇敼涓烘洿楂樼増鏈��
-
-### 鏇存柊涓嬭浇瀹夎`check-update.js`
-
-*璇ュ嚱鏁板湪utils鐩綍涓�*
-
-1. 濡傛灉鏄潤榛樻洿鏂帮紝鍒欎笉浼氭墦寮�鏇存柊寮规锛屼細鍦ㄥ悗鍙颁笅杞藉悗瀹夎锛屼笅娆″惎鍔ㄥ簲鐢ㄧ敓鏁�
-
-2. 濡傛灉鏄� iOS锛屽垯浼氱洿鎺ユ墦寮�AppStore鐨勯摼鎺�
-
-3. 鍏朵粬鎯呭喌锛屼細灏哷check-version`杩斿洖鐨勭粨鏋滀繚瀛樺湪localStorage涓紝骞惰烦杞繘鍏upgrade-popup.vue`鎵撳紑鏇存柊寮规
-
-### 妫�鏌ユ洿鏂板嚱鏁癭check-version`
-
-*璇ュ嚱鏁板湪uniCloud/cloudfunctions鐩綍涓�*
-
-1. 浣跨敤妫�鏌ユ洿鏂伴渶瑕佷紶閫掍笁涓弬鏁� `appid`銆乣appVersion`銆乣wgtVersion`
-
-2. `appid` 浣跨敤 plus.runtime.appid 鑾峰彇锛�*娉細鐪熸満杩愯鏃朵负鍥哄畾鍊糎Builder锛屽湪璋冭瘯鐨勬椂鍊欒浣跨敤鏈湴璋冭瘯浜戝嚱鏁�*
-
-3. `appVersion` 浣跨敤 plus.runtime.version 鑾峰彇
-
-4. `wgtVersion` 浣跨敤 plus.runtime.getProperty(plus.runtime.appid,(wgtInfo) => { wgtInfo.version }) 鑾峰彇
-
-5. `check-version`浜戝嚱鏁板唴閮ㄤ細鑷姩鑾峰彇 App 骞冲彴
-
-
-**Tips**
-
-1. `check-version`浜戝嚱鏁板唴閮ㄦ湁鐗堟湰瀵规瘮鍑芥暟锛坈ompare锛夈��
- - 浣跨敤澶氭寮忕増鏈牸寮忥紙濡傦細"3.0.0.0.0.1.0.1", "3.0.0.0.0.1"锛夈�傚鏋滀笉婊¤冻瀵规瘮瑙勫垯锛岃鑷淇敼銆�
- - 濡傛灉淇敼锛岃灏�*pages/upgrade-popup.vue*涓�*compare*鍑芥暟涓�骞朵慨鏀�
-
-## 椤圭洰浠g爜璇存槑
-
-### 鏇存柊寮规
-- `upgrade-popup.vue` - 鏇存柊搴旂敤锛�
- - 濡傛灉浜戝嚱鏁癭check-version`杩斿洖鐨勫弬鏁拌〃鏄庨渶瑕佹洿鏂帮紝鍒欏皢鍙傛暟淇濆瓨鍦╨ocalStorage涓紝甯︾潃閿�艰烦杞椤甸潰
- - 杩涘叆鏃朵細鍏堜粠localStorage涓皾璇曞彇鍑轰箣鍓嶅瓨鐨勫畨瑁呭寘璺緞锛堟鍖呬笉浼氭槸寮哄埗瀹夎绫诲瀷鐨勫寘锛�
- - 濡傛灉鏈夊凡缁忎繚瀛樼殑鍖咃紝鍒欏拰浼犺繘鏉ョ殑 `version` 杩涜姣旇緝锛屽鏋滅浉绛夊垯瀹夎銆傚ぇ浜庡拰灏忎簬閮戒笉杩涜瀹夎锛屽洜涓篴dmin绔彲鑳戒細璋冩暣鍖呯殑鐗堟湰銆備笉绗﹀悎鏇存柊浼氬皢姝ゅ寘鍒犻櫎
- - 濡傛灉鏈湴娌℃湁鍖呮垨鑰呭寘涓嶇鍚堝畨瑁呮潯浠讹紝鍒欒繘琛屼笅杞藉畨瑁呭寘
- - 鐐瑰嚮涓嬭浇浼氭湁杩涘害鏉°�佸凡涓嬭浇澶у皬鍜屼笅杞藉寘鐨勫ぇ灏�
- - 涓嬭浇瀹屾垚浼氭彁绀哄畨瑁咃細
- - 濡傛灉鏄� wgt 鍖咃紝瀹夎鏃跺垯浼氭彁绀� 姝e湪瀹夎鈥︹�� 鍜� 瀹夎瀹屾垚銆傚畨瑁呭畬鎴愪細鎻愮ず鏄惁閲嶅惎
- - 濡傛灉鏄� 鍘熺敓瀹夎鍖咃紝鍒欑洿鎺ヨ烦鍑哄幓瑕嗙洊瀹夎
- - 涓嬭浇杩囩▼涓紝濡傛灉閫�鍑轰細鎻愮ず鏄惁鍙栨秷涓嬭浇銆傚鏋滄槸寮哄埗鏇存柊锛屽垯鍙細鎻愮ず姝e湪涓嬭浇璇风◢鍚庯紝姝ゆ椂涓嶅彲閫�鍑�
- - 濡傛灉鏄笅杞藉畬鎴愪簡娌℃湁瀹夎灏遍��鍑猴紝鍒欎細灏嗕笅杞藉畬鎴愮殑鍖呬繚瀛樺湪鏈湴銆傚皢鍖呯殑鏈湴璺緞鍜屽寘version淇濆瓨鍦╨ocalStorage涓�
-
-### 宸ュ叿绫� utils
-- `call-check-version`
- - 璇锋眰浜戝嚱鏁癭check-version`鎷垮彇鐗堟湰妫�娴嬬粨鏋�
-- `check-update`
- - 璋冪敤`call-check-version`骞舵牴鎹粨鏋滃垽鏂槸鍚︽樉绀烘洿鏂板脊妗�
-
-### 浜戝嚱鏁�
-- `check-version` - 妫�鏌ュ簲鐢ㄦ洿鏂帮細
- - 鏍规嵁浼犲弬锛屽厛妫�娴嬩紶鍙傛槸鍚﹀畬鏁达紝appid appVersion wgtVersion 蹇呬紶
- - 鍏堜粠鏁版嵁搴撳彇鍑烘墍鏈夎骞冲彴锛堜細浠庝笂涓嬫枃璇诲彇骞冲彴淇℃伅锛夌殑鎵�鏈夌嚎涓婂彂琛屾洿鏂�
- - 鍐嶄粠鎵�鏈夌嚎涓婂彂琛屾洿鏂颁腑鍙栧嚭鐗堟湰鏈�澶х殑涓�鐗堛�傚鏋滃彲浠ワ紝灏介噺鍏堟娴媤gt鐨勭嚎涓婂彂琛岀増鏇存柊
- - 浣跨敤涓婁竴姝ュ彇鍑虹殑鐗堟湰鍖呯殑鐗堟湰鍙� 鍜屼紶鍙� appVersion銆亀gtVersion 鏉ユ娴嬫槸鍚︽湁鏇存柊銆傚繀椤诲悓鏃跺ぇ浜庤繖涓ら」锛屽洜涓轰笂涓�娆″彲鑳芥槸wgt鐑洿鏂帮紝鍚﹀垯杩斿洖鏆傛棤鏇存柊
- - 濡傛灉搴撲腑 wgt鍖� 鐗堟湰澶т簬浼犲弬 appVersion锛屼絾鏄笉婊¤冻 min_uni_version < appVersion锛屽垯涓嶄細浣跨敤wgt鏇存柊锛屼細鎺ョ潃鍒ゆ柇搴撲腑 app鍖卾ersion 鏄惁澶т簬 appVersion
- - 杩斿洖缁撴灉锛�
-
- |code|message|
- |:-:|:-:|
- |0|褰撳墠鐗堟湰宸茬粡鏄渶鏂扮殑锛屼笉闇�瑕佹洿鏂皘
- |101|wgt鏇存柊|
- |102|鏁村寘鏇存柊|
- |-101|鏆傛棤鏇存柊鎴栨鏌ppid鏄惁濉啓姝g‘|
- |-102|璇锋鏌ヤ紶鍙傛槸鍚﹀~鍐欐纭畖
\ No newline at end of file
diff --git a/uni_modules/uni-upgrade-center-app/static/app_update_close.png b/uni_modules/uni-upgrade-center-app/static/app_update_close.png
deleted file mode 100644
index 8b2ffe6..0000000
--- a/uni_modules/uni-upgrade-center-app/static/app_update_close.png
+++ /dev/null
Binary files differ
diff --git a/uni_modules/uni-upgrade-center-app/static/bg_top.png b/uni_modules/uni-upgrade-center-app/static/bg_top.png
deleted file mode 100644
index 015f698..0000000
--- a/uni_modules/uni-upgrade-center-app/static/bg_top.png
+++ /dev/null
Binary files differ
diff --git a/uni_modules/uni-upgrade-center-app/uniCloud/cloudfunctions/check-version/check-version.param.json b/uni_modules/uni-upgrade-center-app/uniCloud/cloudfunctions/check-version/check-version.param.json
deleted file mode 100644
index 78ff505..0000000
--- a/uni_modules/uni-upgrade-center-app/uniCloud/cloudfunctions/check-version/check-version.param.json
+++ /dev/null
@@ -1,9 +0,0 @@
-// 鏈枃浠朵腑鐨刯son鍐呭灏嗗湪浜戝嚱鏁般�愯繍琛屻�戞椂浣滀负鍙傛暟浼犵粰浜戝嚱鏁般��
-
-// 閰嶇疆鏁欑▼鍙傝�冿細https://uniapp.dcloud.net.cn/uniCloud/quickstart?id=runparam
-
-{
- "appid": "__YOUR_APPID__",
- "appVersion": "2.2.0",
- "wgtVersion": "2.2.2"
-}
diff --git a/uni_modules/uni-upgrade-center-app/uniCloud/cloudfunctions/check-version/index.js b/uni_modules/uni-upgrade-center-app/uniCloud/cloudfunctions/check-version/index.js
deleted file mode 100644
index b46f10b..0000000
--- a/uni_modules/uni-upgrade-center-app/uniCloud/cloudfunctions/check-version/index.js
+++ /dev/null
@@ -1,167 +0,0 @@
-'use strict';
-exports.main = async (event, context) => {
- /**
- * 妫�娴嬪崌绾� 浣跨敤璇存槑
- * 涓婁紶鍖咃細
- * 1. 鏍规嵁浼犲弬锛屽厛妫�娴嬩紶鍙傛槸鍚﹀畬鏁达紝appid appVersion wgtVersion 蹇呬紶
- * 2. 鍏堜粠鏁版嵁搴撳彇鍑烘墍鏈夎骞冲彴锛堜粠涓婁笅鏂囪鍙栧钩鍙颁俊鎭紝榛樿 Andriod锛夌殑鎵�鏈夌嚎涓婂彂琛屾洿鏂�
- * 3. 鍐嶄粠鎵�鏈夌嚎涓婂彂琛屾洿鏂颁腑鍙栧嚭鐗堟湰鏈�澶х殑涓�鐗堛�傚鏋滃彲浠ワ紝灏介噺鍏堟娴媤gt鐨勭嚎涓婂彂琛岀増鏇存柊
- * 4. 浣跨敤涓婃鍙栧嚭鐨勭増鏈寘鐨勭増鏈彿 鍜屼紶鍙� appVersion銆亀gtVersion 鏉ユ娴嬫槸鍚︽湁鏇存柊锛屽繀椤诲悓鏃跺ぇ浜庤繖涓ら」锛屽惁鍒欒繑鍥炴殏鏃犳洿鏂�
- * 5. 濡傛灉搴撲腑 wgt鍖� 鐗堟湰澶т簬浼犲弬 appVersion锛屼絾鏄笉婊¤冻 min_uni_version < appVersion锛屽垯涓嶄細浣跨敤wgt鏇存柊锛屼細鎺ョ潃鍒ゆ柇搴撲腑 app鍖卾ersion 鏄惁澶т簬 appVersion
- */
-
- let {
- appid,
- appVersion,
- wgtVersion,
- } = event;
-
- const platform_Android = 'Android';
- const platform_iOS = 'iOS';
- const package_app = 'native_app';
- const package_wgt = 'wgt';
- const app_version_db_name = 'opendb-app-versions'
-
- let platform = platform_Android;
-
- // 浜戝嚱鏁癠RL鍖栬姹�
- if (event.headers) {
- let body;
- try {
- if (event.httpMethod.toLocaleLowerCase() === 'get') {
- body = event.queryStringParameters;
- } else {
- body = JSON.parse(event.body);
- }
- } catch (e) {
- return {
- code: 500,
- msg: '璇锋眰閿欒'
- };
- }
-
- appid = body.appid;
- appVersion = body.appVersion;
- wgtVersion = body.wgtVersion;
-
- platform = /iPhone|iPad/.test(event.headers) ? platform_iOS : platform_Android;
- } else if (context.OS) {
- platform = context.OS === 'android'
- ? platform_Android
- : context.OS === 'ios'
- ? platform_iOS
- : platform_Android;
- }
-
- if (appid && appVersion && wgtVersion && platform) {
- const collection = uniCloud.database().collection(app_version_db_name);
-
- const record = await collection.where({
- appid,
- platform,
- stable_publish: true
- })
- .orderBy('create_date', 'desc')
- .get();
-
- if (record && record.data && record.data.length > 0) {
- const appVersionInDb = record.data.find(item => item.type === package_app) || {};
- const wgtVersionInDb = record.data.find(item => item.type === package_wgt) || {};
- const hasAppPackage = !!Object.keys(appVersionInDb).length;
- const hasWgtPackage = !!Object.keys(wgtVersionInDb).length;
-
- // 鍙栦袱涓増鏈腑鐗堟湰鍙锋渶澶х殑鍖咃紝鐗堟湰涓�鏍凤紝浣跨敤wgt鍖�
- let stablePublishDb = hasAppPackage
- ? hasWgtPackage
- ? compare(wgtVersionInDb.version, appVersionInDb.version) >= 0
- ? wgtVersionInDb
- : appVersionInDb
- : appVersionInDb
- : wgtVersionInDb;
-
- const {
- version,
- min_uni_version
- } = stablePublishDb;
-
- // 搴撲腑鐨剉ersion蹇呴』婊¤冻鍚屾椂澶т簬appVersion鍜寃gtVersion鎵嶈锛屽洜涓轰笂娆℃洿鏂板彲鑳芥槸wgt鏇存柊
- const appUpdate = compare(version, appVersion) === 1; // app鍖呭彲鐢ㄦ洿鏂�
- const wgtUpdate = compare(version, wgtVersion) === 1; // wgt鍖呭彲鐢ㄦ洿鏂�
-
- if (Object.keys(stablePublishDb).length && appUpdate && wgtUpdate) {
- // 鍒ゆ柇鏄惁鍙敤wgt鏇存柊
- if (min_uni_version && compare(min_uni_version, appVersion) < 1) {
- return {
- code: 101,
- message: 'wgt鏇存柊',
- ...stablePublishDb
- };
- } else if (hasAppPackage && compare(appVersionInDb.version, appVersion) === 1) {
- return {
- code: 102,
- message: '鏁村寘鏇存柊',
- ...appVersionInDb
- };
- }
- }
-
- return {
- code: 0,
- message: '褰撳墠鐗堟湰宸茬粡鏄渶鏂扮殑锛屼笉闇�瑕佹洿鏂�'
- };
- }
-
- return {
- code: -101,
- message: '鏆傛棤鏇存柊鎴栨鏌ppid鏄惁濉啓姝g‘'
- };
- }
-
- return {
- code: -102,
- message: '璇锋鏌ヤ紶鍙傛槸鍚﹀~鍐欐纭�'
- };
-};
-
-/**
- * 瀵规瘮鐗堟湰鍙凤紝濡傞渶瑕侊紝璇疯嚜琛屼慨鏀瑰垽鏂鍒�
- * 鏀寔姣斿 ("3.0.0.0.0.1.0.1", "3.0.0.0.0.1") ("3.0.0.1", "3.0") ("3.1.1", "3.1.1.1") 涔嬬被鐨�
- * @param {Object} v1
- * @param {Object} v2
- * v1 > v2 return 1
- * v1 < v2 return -1
- * v1 == v2 return 0
- */
-function compare(v1 = '0', v2 = '0') {
- v1 = String(v1).split('.')
- v2 = String(v2).split('.')
- const minVersionLens = Math.min(v1.length, v2.length);
-
- let result = 0;
- for (let i = 0; i < minVersionLens; i++) {
- const curV1 = Number(v1[i])
- const curV2 = Number(v2[i])
-
- if (curV1 > curV2) {
- result = 1
- break;
- } else if(curV1 < curV2) {
- result = -1
- break;
- }
- }
-
- if (result === 0 && (v1.length !== v2.length)) {
- const v1BiggerThenv2 = v1.length > v2.length;
- const maxLensVersion = v1BiggerThenv2 ? v1 : v2;
- for (let i = minVersionLens; i < maxLensVersion.length; i++) {
- const curVersion = Number(maxLensVersion[i])
- if (curVersion > 0) {
- v1BiggerThenv2 ? result = 1 : result = -1
- break;
- }
- }
- }
-
- return result;
-}
diff --git a/uni_modules/uni-upgrade-center-app/utils/call-check-version.js b/uni_modules/uni-upgrade-center-app/utils/call-check-version.js
deleted file mode 100644
index 31f80e7..0000000
--- a/uni_modules/uni-upgrade-center-app/utils/call-check-version.js
+++ /dev/null
@@ -1,29 +0,0 @@
-export default function() {
- // #ifdef APP-PLUS
- return new Promise((resolve, reject) => {
- plus.runtime.getProperty(plus.runtime.appid, function(widgetInfo) {
- uniCloud.callFunction({
- name: 'check-version',
- data: {
- appid: plus.runtime.appid,
- appVersion: plus.runtime.version,
- wgtVersion: widgetInfo.version
- },
- success: (e) => {
- resolve(e)
- },
- fail: (error) => {
- reject(error)
- }
- })
- })
- })
- // #endif
- // #ifndef APP-PLUS
- return new Promise((resolve, reject) => {
- reject({
- message: '璇峰湪App涓娇鐢�'
- })
- })
- // #endif
-}
diff --git a/uni_modules/uni-upgrade-center-app/utils/check-update.js b/uni_modules/uni-upgrade-center-app/utils/check-update.js
deleted file mode 100644
index 3899a18..0000000
--- a/uni_modules/uni-upgrade-center-app/utils/check-update.js
+++ /dev/null
@@ -1,155 +0,0 @@
-import callCheckVersion from './call-check-version'
-
-// 鎺ㄨ崘鍐岮pp.vue涓娇鐢�
-const PACKAGE_INFO_KEY = '__package_info__'
-
-export default function() {
- // #ifdef APP-PLUS
- return new Promise((resolve, reject) => {
- callCheckVersion().then(async (e) => {
- if (!e.result) return;
- const {
- code,
- message,
- is_silently, // 鏄惁闈欓粯鏇存柊
- url, // 瀹夎鍖呬笅杞藉湴鍧�
- platform, // 瀹夎鍖呭钩鍙�
- type // 瀹夎鍖呯被鍨�
- } = e.result;
-
- // 姝ゅ閫昏緫浠呬负瀹炰緥锛屽彲鑷缂栧啓
- if (code > 0) {
- // 鑵捐浜戝拰闃块噷浜戜笅杞介摼鎺ヤ笉鍚岋紝闇�瑕佸鐞嗕竴涓嬶紝闃块噷浜戜細鍘熸牱杩斿洖
- const {
- fileList
- } = await uniCloud.getTempFileURL({
- fileList: [url]
- });
- if (fileList[0].tempFileURL)
- e.result.url = fileList[0].tempFileURL;
-
- resolve(e)
-
- // 闈欓粯鏇存柊锛屽彧鏈墂gt鏈�
- if (is_silently) {
- uni.downloadFile({
- url: e.result.url,
- success: res => {
- if (res.statusCode == 200) {
- // 涓嬭浇濂界洿鎺ュ畨瑁咃紝涓嬫鍚姩鐢熸晥
- plus.runtime.install(res.tempFilePath, {
- force: false
- });
- }
- }
- });
- return;
- }
-
- /**
- * 鎻愮ず鍗囩骇涓�
- * 浣跨敤 uni.showModal
- */
- // return updateUseModal(e.result)
-
- /**
- * 鎻愮ず鍗囩骇浜�
- * 瀹樻柟閫傞厤鐨勫崌绾у脊绐楋紝鍙嚜琛屾浛鎹㈣祫婧愰�傞厤UI椋庢牸
- */
- uni.setStorageSync(PACKAGE_INFO_KEY, e.result)
- uni.navigateTo({
- url: `/uni_modules/uni-upgrade-center-app/pages/upgrade-popup?local_storage_key=${PACKAGE_INFO_KEY}`,
- fail: (err) => {
- console.error('鏇存柊寮规璺宠浆澶辫触', err)
- uni.removeStorageSync(PACKAGE_INFO_KEY)
- }
- })
- } else if (code < 0) {
- // TODO 浜戝嚱鏁版姤閿欏鐞�
- console.error(message)
- reject(e)
- }
- }).catch(err => {
- // TODO 浜戝嚱鏁版姤閿欏鐞�
- console.error(err.message)
- reject(err)
- })
- });
- // #endif
-}
-
-/**
- * 浣跨敤 uni.showModal 鍗囩骇
- */
-function updateUseModal(packageInfo) {
- const {
- title, // 鏍囬
- contents, // 鍗囩骇鍐呭
- is_mandatory, // 鏄惁寮哄埗鏇存柊
- url, // 瀹夎鍖呬笅杞藉湴鍧�
- platform, // 瀹夎鍖呭钩鍙�
- type // 瀹夎鍖呯被鍨�
- } = packageInfo;
-
- let isWGT = type === 'wgt'
- let isiOS = !isWGT ? platform.includes('iOS') : false;
- let confirmText = isiOS ? '绔嬪嵆璺宠浆鏇存柊' : '绔嬪嵆涓嬭浇鏇存柊'
-
- return uni.showModal({
- title,
- content: contents,
- showCancel: !is_mandatory,
- confirmText,
- success: res => {
- if (res.cancel) return;
-
- // 瀹夎鍖呬笅杞�
- if (isiOS) {
- plus.runtime.openURL(url);
- return;
- }
-
- uni.showToast({
- title: '鍚庡彴涓嬭浇涓�︹��',
- duration: 1000
- });
-
- // wgt 鍜� 瀹夊崜涓嬭浇鏇存柊
- downloadTask = uni.downloadFile({
- url,
- success: res => {
- if (res.statusCode !== 200) {
- console.error('涓嬭浇瀹夎鍖呭け璐�', err);
- return;
- }
- // 涓嬭浇濂界洿鎺ュ畨瑁咃紝涓嬫鍚姩鐢熸晥
- plus.runtime.install(res.tempFilePath, {
- force: false
- }, () => {
- if (is_mandatory) {
- //鏇存柊瀹岄噸鍚痑pp
- plus.runtime.restart();
- return;
- }
- uni.showModal({
- title: '瀹夎鎴愬姛鏄惁閲嶅惎锛�',
- success: res => {
- if (res.confirm) {
- //鏇存柊瀹岄噸鍚痑pp
- plus.runtime.restart();
- }
- }
- });
- }, err => {
- uni.showModal({
- title: '鏇存柊澶辫触',
- content: err
- .message,
- showCancel: false
- });
- });
- }
- });
- }
- });
-}
--
Gitblit v1.9.1