From 415dd15dd1adf03afbd2154c90cfbffc8309c6a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?lemon=E6=A9=AA?= <17633066053@163.com> Date: Thu, 12 Aug 2021 16:48:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=B2=A1=E6=9C=89=E7=9A=84co?= =?UTF-8?q?mponents=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/address.js | 1 + components/uni-badge/uni-badge.vue | 151 ------- components/uni-drawer/uni-drawer.vue | 170 -------- components/uni-list-item/uni-list-item.vue | 269 ------------ components/uni-list/uni-list.vue | 75 ---- components/uni-list/uni-refresh.vue | 65 --- components/uni-list/uni-refresh.wxs | 87 ---- components/uni-notice-bar/uni-notice-bar.vue | 395 ------------------ components/uni-popup/message.js | 29 -- components/uni-popup/popup.js | 24 -- components/uni-popup/uni-popup-dialog.vue | 243 ----------- components/uni-popup/uni-popup-message.vue | 116 ----- components/uni-popup/uni-popup-share.vue | 165 -------- components/uni-popup/uni-popup.vue | 294 ------------- components/uni-section/uni-section.vue | 135 ------ components/uni-steps/uni-steps.vue | 253 ----------- components/uni-swiper-dot/uni-swiper-dot.vue | 184 -------- components/uni-tag/uni-tag.vue | 230 ---------- components/uni-transition/uni-transition.vue | 279 ------------- config/api.js | 5 +- .../msgTips/packageMsg/logisticsDetail.vue | 3 - 21 files changed, 2 insertions(+), 3171 deletions(-) delete mode 100644 components/uni-badge/uni-badge.vue delete mode 100644 components/uni-drawer/uni-drawer.vue delete mode 100644 components/uni-list-item/uni-list-item.vue delete mode 100644 components/uni-list/uni-list.vue delete mode 100644 components/uni-list/uni-refresh.vue delete mode 100644 components/uni-list/uni-refresh.wxs delete mode 100644 components/uni-notice-bar/uni-notice-bar.vue delete mode 100644 components/uni-popup/message.js delete mode 100644 components/uni-popup/popup.js delete mode 100644 components/uni-popup/uni-popup-dialog.vue delete mode 100644 components/uni-popup/uni-popup-message.vue delete mode 100644 components/uni-popup/uni-popup-share.vue delete mode 100644 components/uni-popup/uni-popup.vue delete mode 100644 components/uni-section/uni-section.vue delete mode 100644 components/uni-steps/uni-steps.vue delete mode 100644 components/uni-swiper-dot/uni-swiper-dot.vue delete mode 100644 components/uni-tag/uni-tag.vue delete mode 100644 components/uni-transition/uni-transition.vue diff --git a/api/address.js b/api/address.js index 44ac891..22b8cfa 100644 --- a/api/address.js +++ b/api/address.js @@ -19,6 +19,7 @@ export function getAddressList(pageNumber, pageSize) { }); } + /** * 获取物流公司 */ diff --git a/components/uni-badge/uni-badge.vue b/components/uni-badge/uni-badge.vue deleted file mode 100644 index f5e0ca6..0000000 --- a/components/uni-badge/uni-badge.vue +++ /dev/null @@ -1,151 +0,0 @@ - - - - - diff --git a/components/uni-drawer/uni-drawer.vue b/components/uni-drawer/uni-drawer.vue deleted file mode 100644 index c79f55e..0000000 --- a/components/uni-drawer/uni-drawer.vue +++ /dev/null @@ -1,170 +0,0 @@ - - - - - diff --git a/components/uni-list-item/uni-list-item.vue b/components/uni-list-item/uni-list-item.vue deleted file mode 100644 index 1fbe00a..0000000 --- a/components/uni-list-item/uni-list-item.vue +++ /dev/null @@ -1,269 +0,0 @@ - - - - - diff --git a/components/uni-list/uni-list.vue b/components/uni-list/uni-list.vue deleted file mode 100644 index 3798018..0000000 --- a/components/uni-list/uni-list.vue +++ /dev/null @@ -1,75 +0,0 @@ - - - - diff --git a/components/uni-list/uni-refresh.vue b/components/uni-list/uni-refresh.vue deleted file mode 100644 index 2c64158..0000000 --- a/components/uni-list/uni-refresh.vue +++ /dev/null @@ -1,65 +0,0 @@ - - - - - diff --git a/components/uni-list/uni-refresh.wxs b/components/uni-list/uni-refresh.wxs deleted file mode 100644 index 9ef364e..0000000 --- a/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/components/uni-notice-bar/uni-notice-bar.vue b/components/uni-notice-bar/uni-notice-bar.vue deleted file mode 100644 index d1cc47e..0000000 --- a/components/uni-notice-bar/uni-notice-bar.vue +++ /dev/null @@ -1,395 +0,0 @@ - - - - - diff --git a/components/uni-popup/message.js b/components/uni-popup/message.js deleted file mode 100644 index 6688e84..0000000 --- a/components/uni-popup/message.js +++ /dev/null @@ -1,29 +0,0 @@ -export default { - created() { - if (this.type === 'message') { - // 获取自组件对象 - this.maskShow = false - this.children = null - } - }, - created() { - if (this.type === 'message') { - // 不显示遮罩 - this.maskShow = false - // 获取子组件对象 - this.childrenMsg = null - } - }, - methods: { - customOpen() { - if (this.childrenMsg) { - this.childrenMsg.open() - } - }, - customClose() { - if (this.childrenMsg) { - this.childrenMsg.close() - } - } - } -} diff --git a/components/uni-popup/popup.js b/components/uni-popup/popup.js deleted file mode 100644 index 84ecfbe..0000000 --- a/components/uni-popup/popup.js +++ /dev/null @@ -1,24 +0,0 @@ -import message from './message.js'; -// 定义 type 类型:弹出类型:top/bottom/center -const config = { - // 顶部弹出 - top:'top', - // 底部弹出 - bottom:'bottom', - // 居中弹出 - center:'center', - // 消息提示 - message:'top', - // 对话框 - dialog:'center', - // 分享 - share:'bottom', -} -export default { - data(){ - return { - config:config - } - }, - mixins: [message], -} diff --git a/components/uni-popup/uni-popup-dialog.vue b/components/uni-popup/uni-popup-dialog.vue deleted file mode 100644 index c91123c..0000000 --- a/components/uni-popup/uni-popup-dialog.vue +++ /dev/null @@ -1,243 +0,0 @@ - - - - - diff --git a/components/uni-popup/uni-popup-message.vue b/components/uni-popup/uni-popup-message.vue deleted file mode 100644 index a32bd00..0000000 --- a/components/uni-popup/uni-popup-message.vue +++ /dev/null @@ -1,116 +0,0 @@ - - - - diff --git a/components/uni-popup/uni-popup-share.vue b/components/uni-popup/uni-popup-share.vue deleted file mode 100644 index 4c11a13..0000000 --- a/components/uni-popup/uni-popup-share.vue +++ /dev/null @@ -1,165 +0,0 @@ - - - - diff --git a/components/uni-popup/uni-popup.vue b/components/uni-popup/uni-popup.vue deleted file mode 100644 index 2d15d5f..0000000 --- a/components/uni-popup/uni-popup.vue +++ /dev/null @@ -1,294 +0,0 @@ - - - - diff --git a/components/uni-section/uni-section.vue b/components/uni-section/uni-section.vue deleted file mode 100644 index 7591bd1..0000000 --- a/components/uni-section/uni-section.vue +++ /dev/null @@ -1,135 +0,0 @@ - - - - diff --git a/components/uni-steps/uni-steps.vue b/components/uni-steps/uni-steps.vue deleted file mode 100644 index 1546a8a..0000000 --- a/components/uni-steps/uni-steps.vue +++ /dev/null @@ -1,253 +0,0 @@ - - - - - diff --git a/components/uni-swiper-dot/uni-swiper-dot.vue b/components/uni-swiper-dot/uni-swiper-dot.vue deleted file mode 100644 index 104317f..0000000 --- a/components/uni-swiper-dot/uni-swiper-dot.vue +++ /dev/null @@ -1,184 +0,0 @@ - - - - - diff --git a/components/uni-tag/uni-tag.vue b/components/uni-tag/uni-tag.vue deleted file mode 100644 index ead90a3..0000000 --- a/components/uni-tag/uni-tag.vue +++ /dev/null @@ -1,230 +0,0 @@ - - - - - diff --git a/components/uni-transition/uni-transition.vue b/components/uni-transition/uni-transition.vue deleted file mode 100644 index 908a939..0000000 --- a/components/uni-transition/uni-transition.vue +++ /dev/null @@ -1,279 +0,0 @@ - - - - - diff --git a/config/api.js b/config/api.js index 6e35070..e7ca7fa 100644 --- a/config/api.js +++ b/config/api.js @@ -6,10 +6,7 @@ const dev = { common: "https://common-api.pickmall.cn", buyer: "https://buyer-api.pickmall.cn", -// common: "http://192.168.0.101:8890", -// buyer: "http://192.168.0.101:8888", -// seller: "http://192.168.0.101:8889", -// manager: "http://192.168.0.101:8887", + }; // 生产环境 const prod = { diff --git a/pages/mine/msgTips/packageMsg/logisticsDetail.vue b/pages/mine/msgTips/packageMsg/logisticsDetail.vue index 3f08668..d6a98ad 100644 --- a/pages/mine/msgTips/packageMsg/logisticsDetail.vue +++ b/pages/mine/msgTips/packageMsg/logisticsDetail.vue @@ -30,11 +30,8 @@