diff --git a/app.json b/app.json
index 6ce0c09..9a8b533 100644
--- a/app.json
+++ b/app.json
@@ -50,20 +50,20 @@
"list": [
{
"pagePath": "pages/index/index",
- "iconPath": "assets/img/home-n.png",
- "selectedIconPath": "assets/img/home-y.png",
+ "iconPath": "assets/images/home-n.png",
+ "selectedIconPath": "assets/images/home-y.png",
"text": "首页"
},
{
"pagePath": "pages/passCar/passCar",
- "iconPath": "assets/img/pass1.png",
- "selectedIconPath": "assets/img/pass0.png",
+ "iconPath": "assets/images/pass1.png",
+ "selectedIconPath": "assets/images/pass0.png",
"text": "停车"
},
{
"pagePath": "pages/user/index",
- "iconPath": "assets/img/user-n.png",
- "selectedIconPath": "assets/img/user-y.png",
+ "iconPath": "assets/images/user-n.png",
+ "selectedIconPath": "assets/images/user-y.png",
"text": "我的"
}
]
diff --git a/assets/img/home-n.png b/assets/images/home-n.png
similarity index 100%
rename from assets/img/home-n.png
rename to assets/images/home-n.png
diff --git a/assets/img/home-y.png b/assets/images/home-y.png
similarity index 100%
rename from assets/img/home-y.png
rename to assets/images/home-y.png
diff --git a/assets/img/pass0.png b/assets/images/pass0.png
similarity index 100%
rename from assets/img/pass0.png
rename to assets/images/pass0.png
diff --git a/assets/img/pass1.png b/assets/images/pass1.png
similarity index 100%
rename from assets/img/pass1.png
rename to assets/images/pass1.png
diff --git a/assets/img/user-n.png b/assets/images/user-n.png
similarity index 100%
rename from assets/img/user-n.png
rename to assets/images/user-n.png
diff --git a/assets/img/user-y.png b/assets/images/user-y.png
similarity index 100%
rename from assets/img/user-y.png
rename to assets/images/user-y.png
diff --git a/assets/img/act.png b/assets/img/act.png
deleted file mode 100644
index b42ba83..0000000
Binary files a/assets/img/act.png and /dev/null differ
diff --git a/assets/img/active.gif b/assets/img/active.gif
deleted file mode 100644
index 74ce8f1..0000000
Binary files a/assets/img/active.gif and /dev/null differ
diff --git a/assets/img/add.png b/assets/img/add.png
deleted file mode 100644
index a5b5646..0000000
Binary files a/assets/img/add.png and /dev/null differ
diff --git a/assets/img/addr-white.png b/assets/img/addr-white.png
deleted file mode 100644
index a4b14df..0000000
Binary files a/assets/img/addr-white.png and /dev/null differ
diff --git a/assets/img/addr.png b/assets/img/addr.png
deleted file mode 100644
index 15707fa..0000000
Binary files a/assets/img/addr.png and /dev/null differ
diff --git a/assets/img/addresslogo.png b/assets/img/addresslogo.png
deleted file mode 100644
index c340b57..0000000
Binary files a/assets/img/addresslogo.png and /dev/null differ
diff --git a/assets/img/alipay.png b/assets/img/alipay.png
deleted file mode 100644
index c7f053b..0000000
Binary files a/assets/img/alipay.png and /dev/null differ
diff --git a/assets/img/banner.png b/assets/img/banner.png
deleted file mode 100644
index 1d1c837..0000000
Binary files a/assets/img/banner.png and /dev/null differ
diff --git a/assets/img/bg.png b/assets/img/bg.png
deleted file mode 100644
index 5e02618..0000000
Binary files a/assets/img/bg.png and /dev/null differ
diff --git a/assets/img/cardicon.png b/assets/img/cardicon.png
deleted file mode 100644
index 3535b8c..0000000
Binary files a/assets/img/cardicon.png and /dev/null differ
diff --git a/assets/img/che.png b/assets/img/che.png
deleted file mode 100644
index 713203c..0000000
Binary files a/assets/img/che.png and /dev/null differ
diff --git a/assets/img/choice.png b/assets/img/choice.png
deleted file mode 100644
index 67c2a3b..0000000
Binary files a/assets/img/choice.png and /dev/null differ
diff --git a/assets/img/choiced.png b/assets/img/choiced.png
deleted file mode 100644
index dd28e45..0000000
Binary files a/assets/img/choiced.png and /dev/null differ
diff --git a/assets/img/clock.png b/assets/img/clock.png
deleted file mode 100644
index 31327e8..0000000
Binary files a/assets/img/clock.png and /dev/null differ
diff --git a/assets/img/closed.png b/assets/img/closed.png
deleted file mode 100644
index edbb13e..0000000
Binary files a/assets/img/closed.png and /dev/null differ
diff --git a/assets/img/coupon.png b/assets/img/coupon.png
deleted file mode 100644
index 3660dfa..0000000
Binary files a/assets/img/coupon.png and /dev/null differ
diff --git a/assets/img/ding.png b/assets/img/ding.png
deleted file mode 100644
index d41daf7..0000000
Binary files a/assets/img/ding.png and /dev/null differ
diff --git a/assets/img/dingdan.png b/assets/img/dingdan.png
deleted file mode 100644
index aceab06..0000000
Binary files a/assets/img/dingdan.png and /dev/null differ
diff --git a/assets/img/down-white.png b/assets/img/down-white.png
deleted file mode 100644
index 99ab22a..0000000
Binary files a/assets/img/down-white.png and /dev/null differ
diff --git a/assets/img/down.png b/assets/img/down.png
deleted file mode 100644
index 8d13587..0000000
Binary files a/assets/img/down.png and /dev/null differ
diff --git a/assets/img/edit.png b/assets/img/edit.png
deleted file mode 100644
index dfca640..0000000
Binary files a/assets/img/edit.png and /dev/null differ
diff --git a/assets/img/fail.png b/assets/img/fail.png
deleted file mode 100644
index 698614a..0000000
Binary files a/assets/img/fail.png and /dev/null differ
diff --git a/assets/img/fenxiang.png b/assets/img/fenxiang.png
deleted file mode 100644
index 863fa33..0000000
Binary files a/assets/img/fenxiang.png and /dev/null differ
diff --git a/assets/img/game.png b/assets/img/game.png
deleted file mode 100644
index 7341f09..0000000
Binary files a/assets/img/game.png and /dev/null differ
diff --git a/assets/img/gift.png b/assets/img/gift.png
deleted file mode 100644
index 2a7aeb8..0000000
Binary files a/assets/img/gift.png and /dev/null differ
diff --git a/assets/img/gou.png b/assets/img/gou.png
deleted file mode 100644
index 2b84bc8..0000000
Binary files a/assets/img/gou.png and /dev/null differ
diff --git a/assets/img/grade.png b/assets/img/grade.png
deleted file mode 100644
index a170886..0000000
Binary files a/assets/img/grade.png and /dev/null differ
diff --git a/assets/img/grade1.png b/assets/img/grade1.png
deleted file mode 100644
index fb46d54..0000000
Binary files a/assets/img/grade1.png and /dev/null differ
diff --git a/assets/img/grade2.png b/assets/img/grade2.png
deleted file mode 100644
index 82fa38d..0000000
Binary files a/assets/img/grade2.png and /dev/null differ
diff --git a/assets/img/grade3.png b/assets/img/grade3.png
deleted file mode 100644
index e79e36a..0000000
Binary files a/assets/img/grade3.png and /dev/null differ
diff --git a/assets/img/growthbg.png b/assets/img/growthbg.png
deleted file mode 100644
index fe24210..0000000
Binary files a/assets/img/growthbg.png and /dev/null differ
diff --git a/assets/img/headbg.png b/assets/img/headbg.png
deleted file mode 100644
index a07ef0a..0000000
Binary files a/assets/img/headbg.png and /dev/null differ
diff --git a/assets/img/jian.png b/assets/img/jian.png
deleted file mode 100644
index 5d06dab..0000000
Binary files a/assets/img/jian.png and /dev/null differ
diff --git a/assets/img/jilu.png b/assets/img/jilu.png
deleted file mode 100644
index 977b9e0..0000000
Binary files a/assets/img/jilu.png and /dev/null differ
diff --git a/assets/img/line.png b/assets/img/line.png
deleted file mode 100644
index d93cec0..0000000
Binary files a/assets/img/line.png and /dev/null differ
diff --git a/assets/img/lines.png b/assets/img/lines.png
deleted file mode 100644
index 19d913e..0000000
Binary files a/assets/img/lines.png and /dev/null differ
diff --git a/assets/img/liness.png b/assets/img/liness.png
deleted file mode 100644
index 814ffa4..0000000
Binary files a/assets/img/liness.png and /dev/null differ
diff --git a/assets/img/loading.gif b/assets/img/loading.gif
deleted file mode 100644
index 9a046e8..0000000
Binary files a/assets/img/loading.gif and /dev/null differ
diff --git a/assets/img/loading1.gif b/assets/img/loading1.gif
deleted file mode 100644
index 52d7d29..0000000
Binary files a/assets/img/loading1.gif and /dev/null differ
diff --git a/assets/img/location.png b/assets/img/location.png
deleted file mode 100644
index b88babd..0000000
Binary files a/assets/img/location.png and /dev/null differ
diff --git a/assets/img/logo.png b/assets/img/logo.png
deleted file mode 100644
index f4d3142..0000000
Binary files a/assets/img/logo.png and /dev/null differ
diff --git a/assets/img/mine.png b/assets/img/mine.png
deleted file mode 100644
index 5a35ca7..0000000
Binary files a/assets/img/mine.png and /dev/null differ
diff --git a/assets/img/myspeacial.jpg b/assets/img/myspeacial.jpg
deleted file mode 100644
index 464cf0f..0000000
Binary files a/assets/img/myspeacial.jpg and /dev/null differ
diff --git a/assets/img/new.png b/assets/img/new.png
deleted file mode 100644
index 6e048bb..0000000
Binary files a/assets/img/new.png and /dev/null differ
diff --git a/assets/img/orbg.png b/assets/img/orbg.png
deleted file mode 100644
index f0a7883..0000000
Binary files a/assets/img/orbg.png and /dev/null differ
diff --git a/assets/img/park.png b/assets/img/park.png
deleted file mode 100644
index 78528a3..0000000
Binary files a/assets/img/park.png and /dev/null differ
diff --git a/assets/img/parkCoupon.png b/assets/img/parkCoupon.png
deleted file mode 100644
index 8f4449d..0000000
Binary files a/assets/img/parkCoupon.png and /dev/null differ
diff --git a/assets/img/phone.png b/assets/img/phone.png
deleted file mode 100644
index daf2ec8..0000000
Binary files a/assets/img/phone.png and /dev/null differ
diff --git a/assets/img/platebg.png b/assets/img/platebg.png
deleted file mode 100644
index cd0d7b8..0000000
Binary files a/assets/img/platebg.png and /dev/null differ
diff --git a/assets/img/qidai.png b/assets/img/qidai.png
deleted file mode 100644
index a22b3f2..0000000
Binary files a/assets/img/qidai.png and /dev/null differ
diff --git a/assets/img/qrcode.png b/assets/img/qrcode.png
deleted file mode 100644
index e8d8988..0000000
Binary files a/assets/img/qrcode.png and /dev/null differ
diff --git a/assets/img/quan.png b/assets/img/quan.png
deleted file mode 100644
index 554943d..0000000
Binary files a/assets/img/quan.png and /dev/null differ
diff --git a/assets/img/quans.png b/assets/img/quans.png
deleted file mode 100644
index 3ee3af6..0000000
Binary files a/assets/img/quans.png and /dev/null differ
diff --git a/assets/img/ques_bg.png b/assets/img/ques_bg.png
deleted file mode 100644
index 5695fd7..0000000
Binary files a/assets/img/ques_bg.png and /dev/null differ
diff --git a/assets/img/ques_gou.png b/assets/img/ques_gou.png
deleted file mode 100644
index 8a1492d..0000000
Binary files a/assets/img/ques_gou.png and /dev/null differ
diff --git a/assets/img/quesimg01.png b/assets/img/quesimg01.png
deleted file mode 100644
index 03a3c57..0000000
Binary files a/assets/img/quesimg01.png and /dev/null differ
diff --git a/assets/img/redirect.png b/assets/img/redirect.png
deleted file mode 100644
index f0d9fcf..0000000
Binary files a/assets/img/redirect.png and /dev/null differ
diff --git a/assets/img/right.png b/assets/img/right.png
deleted file mode 100644
index 494d3a8..0000000
Binary files a/assets/img/right.png and /dev/null differ
diff --git a/assets/img/rule.png b/assets/img/rule.png
deleted file mode 100644
index a5aa5ff..0000000
Binary files a/assets/img/rule.png and /dev/null differ
diff --git a/assets/img/shanchu-gray.png b/assets/img/shanchu-gray.png
deleted file mode 100644
index 782e2e8..0000000
Binary files a/assets/img/shanchu-gray.png and /dev/null differ
diff --git a/assets/img/shanchu.png b/assets/img/shanchu.png
deleted file mode 100644
index cbbeb8e..0000000
Binary files a/assets/img/shanchu.png and /dev/null differ
diff --git a/assets/img/shang.png b/assets/img/shang.png
deleted file mode 100644
index 3619914..0000000
Binary files a/assets/img/shang.png and /dev/null differ
diff --git a/assets/img/share.png b/assets/img/share.png
deleted file mode 100644
index 62c9257..0000000
Binary files a/assets/img/share.png and /dev/null differ
diff --git a/assets/img/spcode.png b/assets/img/spcode.png
deleted file mode 100644
index 087c10f..0000000
Binary files a/assets/img/spcode.png and /dev/null differ
diff --git a/assets/img/spphone.png b/assets/img/spphone.png
deleted file mode 100644
index 073c1bb..0000000
Binary files a/assets/img/spphone.png and /dev/null differ
diff --git a/assets/img/succ.png b/assets/img/succ.png
deleted file mode 100644
index c497750..0000000
Binary files a/assets/img/succ.png and /dev/null differ
diff --git a/assets/img/success.png b/assets/img/success.png
deleted file mode 100644
index 945dde7..0000000
Binary files a/assets/img/success.png and /dev/null differ
diff --git a/assets/img/sucsess.png b/assets/img/sucsess.png
deleted file mode 100644
index ca4a0e1..0000000
Binary files a/assets/img/sucsess.png and /dev/null differ
diff --git a/assets/img/tel.jpg b/assets/img/tel.jpg
deleted file mode 100644
index 773ec83..0000000
Binary files a/assets/img/tel.jpg and /dev/null differ
diff --git a/assets/img/tel.png b/assets/img/tel.png
deleted file mode 100644
index cb79a99..0000000
Binary files a/assets/img/tel.png and /dev/null differ
diff --git a/assets/img/telicon.png b/assets/img/telicon.png
deleted file mode 100644
index 85808bc7..0000000
Binary files a/assets/img/telicon.png and /dev/null differ
diff --git a/assets/img/wechat.png b/assets/img/wechat.png
deleted file mode 100644
index 9e7af87..0000000
Binary files a/assets/img/wechat.png and /dev/null differ
diff --git a/assets/img/wenti.png b/assets/img/wenti.png
deleted file mode 100644
index c9218bf..0000000
Binary files a/assets/img/wenti.png and /dev/null differ
diff --git a/assets/img/wm01.jpg b/assets/img/wm01.jpg
deleted file mode 100644
index d3a2369..0000000
Binary files a/assets/img/wm01.jpg and /dev/null differ
diff --git a/assets/img/wm02.jpg b/assets/img/wm02.jpg
deleted file mode 100644
index 7dddd5d..0000000
Binary files a/assets/img/wm02.jpg and /dev/null differ
diff --git a/assets/img/wm03.jpg b/assets/img/wm03.jpg
deleted file mode 100644
index 50ecc7a..0000000
Binary files a/assets/img/wm03.jpg and /dev/null differ
diff --git a/components/banner/index.js b/components/banner/index.js
index 6cd60e2..a72f773 100644
--- a/components/banner/index.js
+++ b/components/banner/index.js
@@ -1,4 +1,5 @@
// pages/index/sw/index.js
+const imgurl = require("../../utils/imgurl");
Component({
/**
* 组件的属性列表
@@ -14,7 +15,8 @@ Component({
* 组件的初始数据
*/
data: {
- swiperCurrent: 0
+ swiperCurrent: 0,
+ bannerUrl: imgurl.banner.url
},
/**
diff --git a/components/banner/index.wxml b/components/banner/index.wxml
index 0c16fe0..9d5d521 100644
--- a/components/banner/index.wxml
+++ b/components/banner/index.wxml
@@ -1,5 +1,5 @@
-
+
diff --git a/components/discountCard/index.js b/components/discountCard/index.js
index 450422a..97905fc 100644
--- a/components/discountCard/index.js
+++ b/components/discountCard/index.js
@@ -14,7 +14,8 @@ Component({
* 组件的初始数据
*/
data: {
- swiperCurrent: 0
+ swiperCurrent: 0,
+ discountcardUrl: ''
},
/**
diff --git a/components/discountCard/index.wxml b/components/discountCard/index.wxml
index 2b872e5..feac05e 100644
--- a/components/discountCard/index.wxml
+++ b/components/discountCard/index.wxml
@@ -1,5 +1,5 @@
-
+
\ No newline at end of file
diff --git a/dist/action-sheet/index.js b/dist/action-sheet/index.js
deleted file mode 100644
index 2db31aa..0000000
--- a/dist/action-sheet/index.js
+++ /dev/null
@@ -1,47 +0,0 @@
-Component({
- externalClasses: ['i-class', 'i-class-mask', 'i-class-header'],
-
- options: {
- multipleSlots: true
- },
-
- properties: {
- visible: {
- type: Boolean,
- value: false
- },
- maskClosable: {
- type: Boolean,
- value: true
- },
- showCancel: {
- type: Boolean,
- value: false
- },
- cancelText: {
- type: String,
- value: '取消'
- },
- actions: {
- type: Array,
- value: []
- }
- },
-
- methods: {
- handleClickMask () {
- if (!this.data.maskClosable) return;
- this.handleClickCancel();
- },
-
- handleClickItem ({ currentTarget = {} }) {
- const dataset = currentTarget.dataset || {};
- const { index } = dataset;
- this.triggerEvent('click', { index });
- },
-
- handleClickCancel () {
- this.triggerEvent('cancel');
- }
- }
-});
diff --git a/dist/action-sheet/index.json b/dist/action-sheet/index.json
deleted file mode 100644
index 6b1e67d..0000000
--- a/dist/action-sheet/index.json
+++ /dev/null
@@ -1,8 +0,0 @@
-{
- "component": true,
- "usingComponents":
- {
- "i-button": "../button/index",
- "i-icon": "../icon/index"
- }
-}
diff --git a/dist/action-sheet/index.wxml b/dist/action-sheet/index.wxml
deleted file mode 100644
index 332f393..0000000
--- a/dist/action-sheet/index.wxml
+++ /dev/null
@@ -1,23 +0,0 @@
-
-
-
-
-
-
-
-
- {{ item.name }}
-
-
-
-
- {{ cancelText }}
-
-
diff --git a/dist/action-sheet/index.wxss b/dist/action-sheet/index.wxss
deleted file mode 100644
index 05c6f04..0000000
--- a/dist/action-sheet/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-.i-as{position:fixed;width:100%;box-sizing:border-box;left:0;right:0;bottom:0;background:#f7f7f7;transform:translate3d(0,100%,0);transform-origin:center;transition:all .2s ease-in-out;z-index:900;visibility:hidden}.i-as-show{transform:translate3d(0,0,0);visibility:visible}.i-as-mask{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.7);z-index:900;transition:all .2s ease-in-out;opacity:0;visibility:hidden}.i-as-mask-show{opacity:1;visibility:visible}.i-as-action-item{position:relative}.i-as-action-item::after{content:'';position:absolute;top:0;left:0;width:200%;height:200%;transform:scale(.5);transform-origin:0 0;pointer-events:none;box-sizing:border-box;border:0 solid #e9eaec;border-bottom-width:1px}.i-as-header{background:#fff;text-align:center;position:relative;font-size:12px;color:#80848f}.i-as-header::after{content:'';position:absolute;top:0;left:0;width:200%;height:200%;transform:scale(.5);transform-origin:0 0;pointer-events:none;box-sizing:border-box;border:0 solid #e9eaec;border-bottom-width:1px}.i-as-cancel{margin-top:6px}.i-as-btn-loading{display:inline-block;vertical-align:middle;margin-right:10px;width:12px;height:12px;background:0 0;border-radius:50%;border:2px solid #e5e5e5;border-color:#666 #e5e5e5 #e5e5e5 #e5e5e5;animation:btn-spin .6s linear;animation-iteration-count:infinite}.i-as-btn-text{display:inline-block;vertical-align:middle}.i-as-btn-icon{font-size:14px!important;margin-right:4px}@keyframes btn-spin{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}
\ No newline at end of file
diff --git a/dist/alert/index.js b/dist/alert/index.js
deleted file mode 100644
index 461b67d..0000000
--- a/dist/alert/index.js
+++ /dev/null
@@ -1,37 +0,0 @@
-Component({
- externalClasses: ['i-class'],
- options: {
- multipleSlots: true
- },
- properties: {
- //info, success, warning, error
- type: {
- type: String,
- value: 'info'
- },
- closable: {
- type: Boolean,
- value: false
- },
- showIcon: {
- type: Boolean,
- default: false
- },
- desc: {
- type: Boolean,
- default: false
- },
- },
- data: {
- closed: false
- },
- methods: {
- handleTap() {
- this.setData({
- closed: !this.data.closed,
- });
- this.triggerEvent('close');
- },
-
- }
-});
diff --git a/dist/alert/index.json b/dist/alert/index.json
deleted file mode 100644
index db3afc0..0000000
--- a/dist/alert/index.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "component": true,
- "usingComponents":
- {
- "i-icon": "../icon/index"
- }
-}
diff --git a/dist/alert/index.wxml b/dist/alert/index.wxml
deleted file mode 100644
index eebabde..0000000
--- a/dist/alert/index.wxml
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/dist/alert/index.wxss b/dist/alert/index.wxss
deleted file mode 100644
index 0e61fce..0000000
--- a/dist/alert/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-.i-alert{position:relative;margin:10px;padding:8px 48px 8px 16px;font-size:14px;border-radius:2px;color:#fff;background:#f7f7f7;color:#495060}.i-alert.i-alert-with-icon{padding:8px 48px 8px 38px}.i-alert-info{color:#fff;background:#2db7f5}.i-alert-success{color:#fff;background:#19be6b}.i-alert-warning{color:#fff;background:#f90}.i-alert-error{color:#fff;background:#ed3f14}.i-alert-icon{position:absolute;top:9px;left:16px;font-size:14px}.i-alert-desc{font-size:12px}.i-alert-with-desc{padding:16px;position:relative}.i-alert-with-desc.i-alert-with-icon{padding:16px 16px 16px 69px}.i-alert-with-desc .i-alert-icon{top:50%;left:24px;margin-top:-21px;font-size:28px}.i-alert-close{font-size:12px;position:absolute;right:16px;top:8px;overflow:hidden;cursor:pointer}
\ No newline at end of file
diff --git a/dist/avatar/index.js b/dist/avatar/index.js
deleted file mode 100644
index fae9476..0000000
--- a/dist/avatar/index.js
+++ /dev/null
@@ -1,20 +0,0 @@
-Component({
- externalClasses: ['i-class'],
-
- properties: {
- // circle || square
- shape: {
- type: String,
- value: 'circle'
- },
- // small || large || default
- size: {
- type: String,
- value: 'default'
- },
- src: {
- type: String,
- value: ''
- }
- }
-});
diff --git a/dist/avatar/index.json b/dist/avatar/index.json
deleted file mode 100644
index 467ce29..0000000
--- a/dist/avatar/index.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "component": true
-}
diff --git a/dist/avatar/index.wxml b/dist/avatar/index.wxml
deleted file mode 100644
index 11730c6..0000000
--- a/dist/avatar/index.wxml
+++ /dev/null
@@ -1,4 +0,0 @@
-
-
-
-
\ No newline at end of file
diff --git a/dist/avatar/index.wxss b/dist/avatar/index.wxss
deleted file mode 100644
index 8f6e636..0000000
--- a/dist/avatar/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-.i-avatar{display:inline-block;text-align:center;background:#ccc;color:#fff;white-space:nowrap;position:relative;overflow:hidden;vertical-align:middle;width:32px;height:32px;line-height:32px;border-radius:16px;font-size:18px}.i-avatar .ivu-avatar-string{line-height:32px}.i-avatar-large{width:40px;height:40px;line-height:40px;border-radius:20px;font-size:24px}.i-avatar-large .ivu-avatar-string{line-height:40px}.i-avatar-small{width:24px;height:24px;line-height:24px;border-radius:12px;font-size:14px}.i-avatar-small .ivu-avatar-string{line-height:24px}.i-avatar-image{background:0 0}.i-avatar-square{border-radius:4px}.i-avatar>image{width:100%;height:100%}
\ No newline at end of file
diff --git a/dist/base/index.js b/dist/base/index.js
deleted file mode 100644
index 6cb977f..0000000
--- a/dist/base/index.js
+++ /dev/null
@@ -1,37 +0,0 @@
-function getCtx (selector) {
- const pages = getCurrentPages();
- const ctx = pages[pages.length - 1];
-
- const componentCtx = ctx.selectComponent(selector);
-
- if (!componentCtx) {
- console.error('无法找到对应的组件,请按文档说明使用组件');
- return null;
- }
- return componentCtx;
-}
-
-function Toast(options) {
- const { selector = '#toast' } = options;
- const ctx = getCtx(selector);
-
- ctx.handleShow(options);
-}
-
-Toast.hide = function (selector = '#toast') {
- const ctx = getCtx(selector);
-
- ctx.handleHide();
-};
-
-function Message(options) {
- const { selector = '#message' } = options;
- const ctx = getCtx(selector);
-
- ctx.handleShow(options);
-}
-
-module.exports = {
- $Toast: Toast,
- $Message: Message
-};
\ No newline at end of file
diff --git a/dist/cell-group/index.js b/dist/cell-group/index.js
deleted file mode 100644
index ad36baa..0000000
--- a/dist/cell-group/index.js
+++ /dev/null
@@ -1,33 +0,0 @@
-Component({
- externalClasses: ['i-class'],
-
- relations: {
- '../cell/index': {
- type: 'child',
- linked () {
- this._updateIsLastCell();
- },
- linkChanged () {
- this._updateIsLastCell();
- },
- unlinked () {
- this._updateIsLastCell();
- }
- }
- },
-
- methods: {
- _updateIsLastCell() {
- let cells = this.getRelationNodes('../cell/index');
- const len = cells.length;
-
- if (len > 0) {
- let lastIndex = len - 1;
-
- cells.forEach((cell, index) => {
- cell.updateIsLastCell(index === lastIndex);
- });
- }
- }
- }
-});
diff --git a/dist/cell-group/index.json b/dist/cell-group/index.json
deleted file mode 100644
index 467ce29..0000000
--- a/dist/cell-group/index.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "component": true
-}
diff --git a/dist/cell-group/index.wxml b/dist/cell-group/index.wxml
deleted file mode 100644
index 1897919..0000000
--- a/dist/cell-group/index.wxml
+++ /dev/null
@@ -1,3 +0,0 @@
-
-
-
\ No newline at end of file
diff --git a/dist/cell/index.js b/dist/cell/index.js
deleted file mode 100644
index 56af462..0000000
--- a/dist/cell/index.js
+++ /dev/null
@@ -1,85 +0,0 @@
-const warn = (msg, getValue) => {
- console.warn(msg);
-};
-
-Component({
- externalClasses: ['i-class'],
-
- options: {
- multipleSlots: true
- },
-
- relations: {
- '../cell-group/index': {
- type: 'parent'
- }
- },
-
- properties: {
- // 左侧标题
- title: {
- type: String
- },
- // 标题下方的描述信息
- label: {
- type: String
- },
- // 右侧内容
- value: {
- type: String
- },
- // 只有点击 footer 区域才触发 tab 事件
- onlyTapFooter: {
- type: Boolean
- },
- // 是否展示右侧箭头并开启尝试以 url 跳转
- isLink: {
- type: null,
- value: ''
- },
- // 链接类型,可选值为 navigateTo,redirectTo,switchTab,reLaunch
- linkType: {
- type: String,
- value: 'navigateTo'
- },
- url: {
- type: String,
- value: ''
- }
- },
-
- data: {
- isLastCell: true
- },
-
- methods: {
- navigateTo () {
- const { url } = this.data;
- const type = typeof this.data.isLink;
-
- this.triggerEvent('click', {});
-
- if (!this.data.isLink || !url || url === 'true' || url === 'false') return;
-
- if (type !== 'boolean' && type !== 'string') {
- warn('isLink 属性值必须是一个字符串或布尔值', this.data.isLink);
- return;
- }
-
- if (['navigateTo', 'redirectTo', 'switchTab', 'reLaunch'].indexOf(this.data.linkType) === -1) {
- warn('linkType 属性可选值为 navigateTo,redirectTo,switchTab,reLaunch', this.data.linkType);
- return;
- }
- wx[this.data.linkType].call(wx, {url});
- },
- handleTap () {
- if (!this.data.onlyTapFooter) {
- this.navigateTo();
- }
- },
-
- updateIsLastCell (isLastCell) {
- this.setData({ isLastCell });
- }
- }
-});
diff --git a/dist/cell/index.json b/dist/cell/index.json
deleted file mode 100644
index 467ce29..0000000
--- a/dist/cell/index.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "component": true
-}
diff --git a/dist/cell/index.wxml b/dist/cell/index.wxml
deleted file mode 100644
index c3683e3..0000000
--- a/dist/cell/index.wxml
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
-
-
-
- {{ title }}
- {{ label }}
-
-
-
- {{ value }}
-
-
-
-
-
\ No newline at end of file
diff --git a/dist/cell/index.wxss b/dist/cell/index.wxss
deleted file mode 100644
index e45ad75..0000000
--- a/dist/cell/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-.i-cell{position:relative;padding:12px 15px;display:flex;background:#fff;align-items:center;line-height:1.4;font-size:14px;overflow:hidden}.i-cell::after{content:'';position:absolute;top:0;left:0;width:200%;height:200%;transform:scale(.5);transform-origin:0 0;pointer-events:none;box-sizing:border-box;border:0 solid #e9eaec;border-bottom-width:1px;left:15px;right:0}.i-cell-last::after{display:none}.i-cell-icon{margin-right:5px}.i-cell-icon:empty{display:none}.i-cell-bd{flex:1}.i-cell-text{line-height:24px;font-size:14px}.i-cell-desc{line-height:1.2;font-size:12px;color:#80848f}.i-cell-ft{position:relative;text-align:right;color:#495060}.i-cell-access .i-cell-ft{padding-right:13px}.i-cell-access .i-cell-ft::after{content:" ";display:inline-block;width:6px;height:6px;position:absolute;top:50%;right:2px;border-width:2px 2px 0 0;border-color:#dddee1;border-style:solid;transform:translateY(-50%) matrix(.71,.71,-.71,.71,0,0)}
\ No newline at end of file
diff --git a/dist/checkbox-group/index.js b/dist/checkbox-group/index.js
deleted file mode 100644
index 6465450..0000000
--- a/dist/checkbox-group/index.js
+++ /dev/null
@@ -1,38 +0,0 @@
-Component({
- externalClasses: ['i-class'],
- relations: {
- '../checkbox/index': {
- type: 'child',
- linked() {
- this.changeCurrent();
- },
- linkChanged() {
- this.changeCurrent();
- },
- unlinked() {
- this.changeCurrent();
- }
- }
- },
- properties: {
- current: {
- type: Array,
- value: [],
- observer: 'changeCurrent'
- },
- },
- methods: {
- changeCurrent(val = this.data.current) {
- let items = this.getRelationNodes('../checkbox/index');
- const len = items.length;
- if (len > 0) {
- items.forEach(item => {
- item.changeCurrent(val.indexOf(item.data.value) !== -1);
- });
- }
- },
- emitEvent(current) {
- this.triggerEvent('change', current);
- }
- }
-});
diff --git a/dist/checkbox-group/index.json b/dist/checkbox-group/index.json
deleted file mode 100644
index edf138d..0000000
--- a/dist/checkbox-group/index.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "component": true,
- "usingComponents":
- {
- "i-cell-group": "../cell-group/index"
- }
-}
diff --git a/dist/checkbox-group/index.wxml b/dist/checkbox-group/index.wxml
deleted file mode 100644
index 6940180..0000000
--- a/dist/checkbox-group/index.wxml
+++ /dev/null
@@ -1,3 +0,0 @@
-
-
-
diff --git a/dist/checkbox-group/index.wxss b/dist/checkbox-group/index.wxss
deleted file mode 100644
index e69de29..0000000
diff --git a/dist/checkbox/index.js b/dist/checkbox/index.js
deleted file mode 100644
index b383952..0000000
--- a/dist/checkbox/index.js
+++ /dev/null
@@ -1,56 +0,0 @@
-const prefixCls = 'i-checkbox';
-
-Component({
- externalClasses: ['i-class'],
- relations: {
- '../checkbox-group/index': {
- type: 'parent'
- }
- },
- properties: {
- value: {
- type: String,
- value: ''
- },
- checked: {
- type: Boolean,
- value: false
- },
- disabled: {
- type: Boolean,
- value: false
- },
- color: {
- type: String,
- value: '#2d8cf0'
- },
- position: {
- type: String,
- value: 'left', //left right
- observer: 'setPosition'
- }
- },
- data: {
- checked: true,
- positionCls: `${prefixCls}-checkbox-left`,
- },
- attached() {
- this.setPosition();
- },
- methods: {
- changeCurrent(current) {
- this.setData({ checked: current });
- },
- checkboxChange() {
- if (this.data.disabled) return;
- const item = { current: !this.data.checked, value: this.data.value };
- const parent = this.getRelationNodes('../checkbox-group/index')[0];
- parent ? parent.emitEvent(item) : this.triggerEvent('change', item);
- },
- setPosition() {
- this.setData({
- positionCls: this.data.position.indexOf('left') !== -1 ? `${prefixCls}-checkbox-left` : `${prefixCls}-checkbox-right`,
- });
- }
- }
-});
diff --git a/dist/checkbox/index.json b/dist/checkbox/index.json
deleted file mode 100644
index e2ab49a..0000000
--- a/dist/checkbox/index.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "component": true,
- "usingComponents":
- {
- "i-cell": "../cell/index"
- }
-}
diff --git a/dist/checkbox/index.wxml b/dist/checkbox/index.wxml
deleted file mode 100644
index 214493f..0000000
--- a/dist/checkbox/index.wxml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
-
diff --git a/dist/checkbox/index.wxss b/dist/checkbox/index.wxss
deleted file mode 100644
index a07699f..0000000
--- a/dist/checkbox/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-.i-checkbox-cell::after{display:block}.i-checkbox-checkbox-left{float:left}.i-checkbox-checkbox-right{float:right}.i-checkbox-radio{vertical-align:middle}.i-checkbox-title{display:inline-block;vertical-align:middle}
\ No newline at end of file
diff --git a/dist/collapse-item/index.js b/dist/collapse-item/index.js
deleted file mode 100644
index bc415c1..0000000
--- a/dist/collapse-item/index.js
+++ /dev/null
@@ -1,46 +0,0 @@
-Component({
- externalClasses: ['i-class-content', 'i-class-title', 'i-class'],
-
- relations: {
- '../collapse/index': {
- type: 'parent',
- linked: function (target) {
- const options = {
- accordion: target.data.accordion
- }
- if (target.data.name === this.data.name) {
- options.showContent = 'i-collapse-item-show-content';
- }
- this.setData(options);
- }
- }
- },
-
- properties: {
- title: String,
- name: String
- },
-
- data: {
- showContent: '',
- accordion: false
- },
-
- options: {
- multipleSlots: true
- },
-
- methods: {
- trigger(e) {
- const data = this.data;
- if (data.accordion) {
- this.triggerEvent('collapse', {name: data.name}, {composed: true, bubbles: true});
- } else {
- this.setData({
- showContent: data.showContent ? '' : 'i-collapse-item-show-content'
- });
- }
- },
- }
-});
-
diff --git a/dist/collapse-item/index.json b/dist/collapse-item/index.json
deleted file mode 100644
index 54575da..0000000
--- a/dist/collapse-item/index.json
+++ /dev/null
@@ -1,7 +0,0 @@
-
-{
- "component": true,
- "usingComponents": {
- "i-icon": "../icon/index"
- }
-}
diff --git a/dist/collapse-item/index.wxml b/dist/collapse-item/index.wxml
deleted file mode 100644
index ba22b0a..0000000
--- a/dist/collapse-item/index.wxml
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
- {{title}}
-
-
-
-
-
\ No newline at end of file
diff --git a/dist/collapse-item/index.wxss b/dist/collapse-item/index.wxss
deleted file mode 100644
index d44c032..0000000
--- a/dist/collapse-item/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-.i-collapse-item{padding:2px 8px;border-top:1px solid #dddee1}.i-collapse-item-title{vertical-align:middle}.i-collapse-item-title-wrap{padding:2px 0 0}.i-collapse-item-content{padding:6px;display:none}.i-collapse-item-show-content{display:block}.i-collapse-item-arrow{transition:transform .2s ease-in-out}.i-collapse-item-arrow-show{transition:transform .2s ease-in-out;transform:rotate(90deg)}
\ No newline at end of file
diff --git a/dist/collapse/index.js b/dist/collapse/index.js
deleted file mode 100644
index acc1455..0000000
--- a/dist/collapse/index.js
+++ /dev/null
@@ -1,31 +0,0 @@
-Component({
- externalClasses: ['i-class'],
-
- relations: {
- '../collapse-item/index': {
- type: 'child'
- }
- },
- properties: {
- name: String,
- accordion: Boolean
- },
- methods: {
- clickfn(e) {
- const params = e.detail;
- const allList = this.getRelationNodes('../collapse-item/index');
- allList.forEach((item) => {
- if (params.name === item.data.name) {
- item.setData({
- showContent: 'i-collapse-item-show-content'
- });
- } else {
- item.setData({
- showContent: ''
- });
- }
- });
- },
- }
-});
-
diff --git a/dist/collapse/index.json b/dist/collapse/index.json
deleted file mode 100644
index 467ce29..0000000
--- a/dist/collapse/index.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "component": true
-}
diff --git a/dist/collapse/index.wxml b/dist/collapse/index.wxml
deleted file mode 100644
index 0f379f7..0000000
--- a/dist/collapse/index.wxml
+++ /dev/null
@@ -1,4 +0,0 @@
-
-
-
-
diff --git a/dist/collapse/index.wxss b/dist/collapse/index.wxss
deleted file mode 100644
index e69de29..0000000
diff --git a/dist/count-down/index.js b/dist/count-down/index.js
deleted file mode 100644
index f1da533..0000000
--- a/dist/count-down/index.js
+++ /dev/null
@@ -1,90 +0,0 @@
-Component({
- properties: {
- target: Number,
- showDay: Boolean,
- callback: String,
- format: Array,
- clearTimer: Boolean
- },
- externalClasses: ['countdown-class'],
- data: {
- time: '',
- resultFormat: [],
- changeFormat: false
- },
- ready() {
- this.getFormat();
-
- },
- methods: {
- getFormat() {
- const data = this.data;
- const len = data.format.length;
-
- if (!data.showDay) data.resultFormat.push('');
-
- if (len >= 3) {
- for (let i = 0; i < len; i++) {
- if (data.resultFormat.length >= 4) break;
- if (data.format[i]) {
- data.resultFormat.push(data.format[i].toString());
- }
- }
-
- if (data.resultFormat.length >= 4) data.changeFormat = true;
- }
-
- this.getLastTime();
- },
- init() {
- const self = this;
- setTimeout(function () {
- self.getLastTime.call(self);
- }, 1000);
- },
- getLastTime() {
- const data = this.data;
- const gapTime = Math.ceil((data.target - new Date().getTime()) / 1000);
- let result = '';
- let time = '00:00:00';
- let day = '00';
- const format = data.resultFormat;
-
- if (gapTime > 0) {
- day = this.formatNum(parseInt(gapTime / 86400));
- let lastTime = gapTime % 86400;
- const hour = this.formatNum(parseInt(lastTime / 3600));
- lastTime = lastTime % 3600;
- const minute = this.formatNum(parseInt(lastTime / 60));
- const second = this.formatNum(lastTime % 60);
-
- if (data.changeFormat) time = `${hour}${format[1]}${minute}${format[2]}${second}${format[3]}`;
- else time = `${hour}:${minute}:${second}`;
-
- if (!data.clearTimer) this.init.call(this);
- } else {
- this.endfn();
- }
-
- if (data.showDay) {
- if (data.changeFormat) {
- result = `${day}${format[0]} ${time}`;
- } else {
- result = `${day}d ${time}`;
- }
- } else {
- result = time;
- }
- this.setData({
- time: result
- });
-
- },
- formatNum(num) {
- return num > 9 ? num : `0${num}`;
- },
- endfn() {
- this.triggerEvent('callback', {});
- }
- }
-});
diff --git a/dist/count-down/index.json b/dist/count-down/index.json
deleted file mode 100644
index 74f1315..0000000
--- a/dist/count-down/index.json
+++ /dev/null
@@ -1,4 +0,0 @@
-
-{
- "component": true
-}
diff --git a/dist/count-down/index.wxml b/dist/count-down/index.wxml
deleted file mode 100644
index e4bec57..0000000
--- a/dist/count-down/index.wxml
+++ /dev/null
@@ -1,4 +0,0 @@
-
- {{time}}
-
-
diff --git a/dist/count-down/index.wxss b/dist/count-down/index.wxss
deleted file mode 100644
index e69de29..0000000
diff --git a/dist/divider/index.js b/dist/divider/index.js
deleted file mode 100644
index 6b0e448..0000000
--- a/dist/divider/index.js
+++ /dev/null
@@ -1,25 +0,0 @@
-Component({
- externalClasses: ['i-class'],
- properties: {
- content: {
- type: String,
- value: ''
- },
- height : {
- type: Number,
- value: 48
- },
- color : {
- type : String,
- value : '#80848f'
- },
- lineColor : {
- type : String,
- value : '#e9eaec'
- },
- size : {
- type: String,
- value: 12
- }
- }
-});
diff --git a/dist/divider/index.json b/dist/divider/index.json
deleted file mode 100644
index 467ce29..0000000
--- a/dist/divider/index.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "component": true
-}
diff --git a/dist/divider/index.wxml b/dist/divider/index.wxml
deleted file mode 100644
index b7111d3..0000000
--- a/dist/divider/index.wxml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
- {{content}}
-
-
-
-
-
-
-
- module.exports = {
- getStyle : function(color,size,height){
- var color = 'color:' + color +';';
- var size = 'font-size:' + size + 'px;';
- var height = 'height:' + height+'px;'
- return color + size + height;
- }
- }
-
diff --git a/dist/divider/index.wxss b/dist/divider/index.wxss
deleted file mode 100644
index 98827ab..0000000
--- a/dist/divider/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-.i-divider{width:100%;text-align:center;font-size:12px;position:relative;display:flex;align-items:center;justify-content:center}.i-divider-line{position:absolute;left:0;width:100%;height:1rpx;background-color:#f7f7f7;top:50%}.i-divider-content{background:#fff;position:relative;z-index:1;display:inline-block;padding:0 10px}
\ No newline at end of file
diff --git a/dist/drawer/index.js b/dist/drawer/index.js
deleted file mode 100644
index adb248a..0000000
--- a/dist/drawer/index.js
+++ /dev/null
@@ -1,33 +0,0 @@
-Component({
- externalClasses: ['i-class'],
- properties: {
- visible: {
- type: Boolean,
- value: false
- },
-
- mask: {
- type: Boolean,
- value: true
- },
-
- maskClosable: {
- type: Boolean,
- value: true
- },
-
- mode: {
- type: String,
- value: 'left' // left right
- }
- },
- data: {},
- methods: {
- handleMaskClick() {
- if (!this.data.maskClosable) {
- return;
- }
- this.triggerEvent('close', {});
- }
- }
-});
diff --git a/dist/drawer/index.json b/dist/drawer/index.json
deleted file mode 100644
index 467ce29..0000000
--- a/dist/drawer/index.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "component": true
-}
diff --git a/dist/drawer/index.wxml b/dist/drawer/index.wxml
deleted file mode 100644
index 67380d9..0000000
--- a/dist/drawer/index.wxml
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
-
-
-
diff --git a/dist/drawer/index.wxss b/dist/drawer/index.wxss
deleted file mode 100644
index 2824713..0000000
--- a/dist/drawer/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-.i-drawer{visibility:hidden}.i-drawer-show{visibility:visible}.i-drawer-show .i-drawer-mask{display:block;opacity:1}.i-drawer-show .i-drawer-container{opacity:1}.i-drawer-show.i-drawer-left .i-drawer-container,.i-drawer-show.i-drawer-right .i-drawer-container{transform:translate3d(0,-50%,0)}.i-drawer-mask{opacity:0;position:fixed;top:0;left:0;right:0;bottom:0;z-index:6;background:rgba(0,0,0,.6);transition:all .3s ease-in-out}.i-drawer-container{position:fixed;left:50%;top:50%;transform:translate3d(-50%,-50%,0);transform-origin:center;transition:all .3s ease-in-out;z-index:7;opacity:0}.i-drawer-left .i-drawer-container{left:0;top:50%;transform:translate3d(-100%,-50%,0)}.i-drawer-right .i-drawer-container{right:0;top:50%;left:auto;transform:translate3d(100%,-50%,0)}
\ No newline at end of file
diff --git a/dist/grid-icon/index.js b/dist/grid-icon/index.js
deleted file mode 100644
index 5315185..0000000
--- a/dist/grid-icon/index.js
+++ /dev/null
@@ -1,10 +0,0 @@
-Component({
- externalClasses: ['i-class'],
-
- relations: {
- '../grid-item/index': {
- type: 'parent'
- }
- },
-
-});
diff --git a/dist/grid-icon/index.json b/dist/grid-icon/index.json
deleted file mode 100644
index 467ce29..0000000
--- a/dist/grid-icon/index.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "component": true
-}
diff --git a/dist/grid-icon/index.wxml b/dist/grid-icon/index.wxml
deleted file mode 100644
index b9f9025..0000000
--- a/dist/grid-icon/index.wxml
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/dist/grid-icon/index.wxss b/dist/grid-icon/index.wxss
deleted file mode 100644
index 88c58a7..0000000
--- a/dist/grid-icon/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-.i-grid-icon{display:block;width:28px;height:28px;margin:0 auto}.i-grid-icon image{width:100%;height:100%}
\ No newline at end of file
diff --git a/dist/grid-item/index.js b/dist/grid-item/index.js
deleted file mode 100644
index e492542..0000000
--- a/dist/grid-item/index.js
+++ /dev/null
@@ -1,16 +0,0 @@
-Component({
- externalClasses: ['i-class'],
-
- relations: {
- '../grid/index': {
- type: 'parent'
- },
- '../grid-icon/index': {
- type: 'child'
- }
- },
-
- data: {
- width: '33.33%'
- }
-});
diff --git a/dist/grid-item/index.json b/dist/grid-item/index.json
deleted file mode 100644
index 467ce29..0000000
--- a/dist/grid-item/index.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "component": true
-}
diff --git a/dist/grid-item/index.wxml b/dist/grid-item/index.wxml
deleted file mode 100644
index 8e133cd..0000000
--- a/dist/grid-item/index.wxml
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/dist/grid-item/index.wxss b/dist/grid-item/index.wxss
deleted file mode 100644
index ed0f395..0000000
--- a/dist/grid-item/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-.i-grid-item{position:relative;float:left;padding:20px 10px;width:33.33333333%;box-sizing:border-box;border-right:1rpx solid #e9eaec;border-bottom:1rpx solid #e9eaec}
\ No newline at end of file
diff --git a/dist/grid-label/index.js b/dist/grid-label/index.js
deleted file mode 100644
index 5315185..0000000
--- a/dist/grid-label/index.js
+++ /dev/null
@@ -1,10 +0,0 @@
-Component({
- externalClasses: ['i-class'],
-
- relations: {
- '../grid-item/index': {
- type: 'parent'
- }
- },
-
-});
diff --git a/dist/grid-label/index.json b/dist/grid-label/index.json
deleted file mode 100644
index 467ce29..0000000
--- a/dist/grid-label/index.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "component": true
-}
diff --git a/dist/grid-label/index.wxml b/dist/grid-label/index.wxml
deleted file mode 100644
index 7ab5a8a..0000000
--- a/dist/grid-label/index.wxml
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/dist/grid-label/index.wxss b/dist/grid-label/index.wxss
deleted file mode 100644
index d45a990..0000000
--- a/dist/grid-label/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-.i-grid-label{margin-top:5px;display:block;text-align:center;color:#1c2438;font-size:14px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
\ No newline at end of file
diff --git a/dist/grid/index.js b/dist/grid/index.js
deleted file mode 100644
index f9c9c40..0000000
--- a/dist/grid/index.js
+++ /dev/null
@@ -1,50 +0,0 @@
-Component({
- externalClasses: ['i-class'],
-
- relations: {
- '../grid-item/index': {
- type: 'child',
- linked () {
- this.setGridItemWidth();
- },
- linkChanged () {
- this.setGridItemWidth();
- },
- unlinked () {
- this.setGridItemWidth();
- }
- }
- },
-
- methods: {
- setGridItemWidth () {
- const nodes = this.getRelationNodes('../grid-item/index');
-
- // const len = nodes.length;
- // if (len < 3) {
- // nodes.forEach(item => {
- // item.setData({
- // 'width': '33.33%'
- // });
- // });
- // } else {
- // const width = 100 / nodes.length;
- // nodes.forEach(item => {
- // item.setData({
- // 'width': width + '%'
- // });
- // });
- // }
- const width = 100 / nodes.length;
- nodes.forEach(item => {
- item.setData({
- 'width': width + '%'
- });
- });
- }
- },
-
- ready () {
- this.setGridItemWidth();
- }
-});
diff --git a/dist/grid/index.json b/dist/grid/index.json
deleted file mode 100644
index 467ce29..0000000
--- a/dist/grid/index.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "component": true
-}
diff --git a/dist/grid/index.wxml b/dist/grid/index.wxml
deleted file mode 100644
index 4c9143c..0000000
--- a/dist/grid/index.wxml
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/dist/grid/index.wxss b/dist/grid/index.wxss
deleted file mode 100644
index 842fc98..0000000
--- a/dist/grid/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-.i-grid{border-top:1rpx solid #e9eaec;border-left:1rpx solid #e9eaec;overflow:hidden}
\ No newline at end of file
diff --git a/dist/index-item/index.js b/dist/index-item/index.js
deleted file mode 100644
index ed818df..0000000
--- a/dist/index-item/index.js
+++ /dev/null
@@ -1,32 +0,0 @@
-Component({
- externalClasses: ['i-class'],
- properties : {
- name : {
- type : String,
- value : ''
- }
- },
- relations : {
- '../index/index' : {
- type : 'parent'
- }
- },
- data : {
- top : 0,
- height : 0,
- currentName : ''
- },
- methods: {
- updateDataChange() {
- const className = '.i-index-item';
- const query = wx.createSelectorQuery().in(this);
- query.select( className ).boundingClientRect((res)=>{
- this.setData({
- top : res.top,
- height : res.height,
- currentName : this.data.name
- })
- }).exec()
- }
- }
-})
\ No newline at end of file
diff --git a/dist/index-item/index.json b/dist/index-item/index.json
deleted file mode 100644
index 467ce29..0000000
--- a/dist/index-item/index.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "component": true
-}
diff --git a/dist/index-item/index.wxml b/dist/index-item/index.wxml
deleted file mode 100644
index 8986c8d..0000000
--- a/dist/index-item/index.wxml
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
-
-
-
-
-
- module.exports = {
-
- }
-
diff --git a/dist/index-item/index.wxss b/dist/index-item/index.wxss
deleted file mode 100644
index aeecf8d..0000000
--- a/dist/index-item/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-.i-index-item-header{height:30px;line-height:30px;background:#eee;font-size:14px;padding-left:10px;width:100%;box-sizing:border-box}.i-index-item-content{font-size:14px}
\ No newline at end of file
diff --git a/dist/index/index.js b/dist/index/index.js
deleted file mode 100644
index c556f19..0000000
--- a/dist/index/index.js
+++ /dev/null
@@ -1,158 +0,0 @@
-Component({
- externalClasses: ['i-class'],
- properties : {
- height : {
- type : String,
- value : '300'
- },
- itemHeight : {
- type : Number,
- value : 18
- }
- },
- relations : {
- '../index-item/index' : {
- type : 'child',
- linked(){
- this._updateDataChange();
- },
- linkChanged () {
- this._updateDataChange();
- },
- unlinked () {
- this._updateDataChange();
- }
- }
- },
- data : {
- scrollTop : 0,
- fixedData : [],
- current : 0,
- timer : null,
- startTop : 0,
- itemLength : 0,
- currentName : '',
- isTouches : false
- },
- methods : {
- loop(){},
- _updateDataChange( ){
- const indexItems = this.getRelationNodes('../index-item/index');
- const len = indexItems.length;
- const fixedData = this.data.fixedData;
- /*
- * 使用函数节流限制重复去设置数组内容进而限制多次重复渲染
- * 暂时没有研究微信在渲染的时候是否会进行函数节流
- */
- if (len > 0) {
-
- if( this.data.timer ){
- clearTimeout( this.data.timer )
- this.setData({
- timer : null
- })
- }
-
- this.data.timer = setTimeout(()=>{
- const data = [];
- indexItems.forEach((item) => {
- if( item.data.name && fixedData.indexOf( item.data.name ) === -1 ){
- data.push(item.data.name);
- item.updateDataChange();
- }
- })
- this.setData({
- fixedData : data,
- itemLength : indexItems.length
- })
- //组件加载完成之后重新设置顶部高度
- this.setTouchStartVal();
- },0);
- this.setData({
- timer : this.data.timer
- })
-
- }
- },
- handlerScroll(event){
- const detail = event.detail;
- const scrollTop = detail.scrollTop;
- const indexItems = this.getRelationNodes('../index-item/index');
- indexItems.forEach((item,index)=>{
- let data = item.data;
- let offset = data.top + data.height;
- if( scrollTop < offset && scrollTop >= data.top ){
- this.setData({
- current : index,
- currentName : data.currentName
- })
- }
- })
- },
- getCurrentItem(index){
- const indexItems = this.getRelationNodes('../index-item/index');
- let result = {};
- result = indexItems[index].data;
- result.total = indexItems.length;
- return result;
- },
- triggerCallback(options){
- this.triggerEvent('change',options)
- },
- handlerFixedTap(event){
- const eindex = event.currentTarget.dataset.index;
- const item = this.getCurrentItem(eindex);
- this.setData({
- scrollTop : item.top,
- currentName : item.currentName,
- isTouches : true
- })
- this.triggerCallback({
- index : eindex,
- current : item.currentName
- })
- },
- handlerTouchMove(event){
- const data = this.data;
- const touches = event.touches[0] || {};
- const pageY = touches.pageY;
- const rest = pageY - data.startTop;
- let index = Math.ceil( rest/data.itemHeight );
- index = index >= data.itemLength ? data.itemLength -1 : index;
- const movePosition = this.getCurrentItem(index);
-
- /*
- * 当touch选中的元素和当前currentName不相等的时候才震动一下
- * 微信震动事件
- */
- if( movePosition.name !== this.data.currentName ){
- wx.vibrateShort();
- }
-
- this.setData({
- scrollTop : movePosition.top,
- currentName : movePosition.name,
- isTouches : true
- })
-
- this.triggerCallback({
- index : index,
- current : movePosition.name
- })
- },
- handlerTouchEnd(){
- this.setData({
- isTouches : false
- })
- },
- setTouchStartVal(){
- const className = '.i-index-fixed';
- const query = wx.createSelectorQuery().in(this);
- query.select( className ).boundingClientRect((res)=>{
- this.setData({
- startTop : res.top
- })
- }).exec()
- }
- }
-})
\ No newline at end of file
diff --git a/dist/index/index.json b/dist/index/index.json
deleted file mode 100644
index 467ce29..0000000
--- a/dist/index/index.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "component": true
-}
diff --git a/dist/index/index.wxml b/dist/index/index.wxml
deleted file mode 100644
index f83d847..0000000
--- a/dist/index/index.wxml
+++ /dev/null
@@ -1,38 +0,0 @@
-
-
-
-
-
- {{item}}
-
-
- {{currentName}}
-
-
-
- module.exports = {
- setScrollStyle : function(height){
- var units = ['%','px','rem','rpx','em','rem'];
- var hasUnits = false;
- for( var i = 0; i < units.length;i++ ){
- var u = units[i];
- if( height.indexOf( u ) > -1 ){
- hasUnits = true;
- break;
- }
- }
- return 'height:'+ ( hasUnits ? height : height+'px' );
- }
- }
-
diff --git a/dist/index/index.wxss b/dist/index/index.wxss
deleted file mode 100644
index c0887c1..0000000
--- a/dist/index/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-.i-index{width:100%;height:100%}.i-index-line{position:absolute;left:0;width:100%;height:1rpx;background-color:#f7f7f7;top:50%}.i-index-content{background:#fff;position:relative;z-index:1;display:inline-block;padding:0 10px}.i-index-fixed{position:fixed;right:0;top:50%;z-index:10;padding-left:10px;transform:translateY(-50%)}.i-index-fixed-item{display:block;height:18px;line-height:18px;padding:0 5px;text-align:center;color:#2d8cf0;font-size:12px;border-radius:50%}.i-index-fixed-item-current{background:#2d8cf0;color:#fff}.i-index-tooltip{position:fixed;left:50%;top:50%;transform:translate3d(-50%,-50%,0);background:rgba(0,0,0,.7);color:#fff;font-size:24px;border-radius:50%;width:80px;height:80px;line-height:80px;text-align:center}
\ No newline at end of file
diff --git a/dist/input-number/index.js b/dist/input-number/index.js
deleted file mode 100644
index 7a7d3f5..0000000
--- a/dist/input-number/index.js
+++ /dev/null
@@ -1,101 +0,0 @@
-function addNum (num1, num2) {
- let sq1, sq2, m;
- try {
- sq1 = num1.toString().split('.')[1].length;
- }
- catch (e) {
- sq1 = 0;
- }
- try {
- sq2 = num2.toString().split('.')[1].length;
- }
- catch (e) {
- sq2 = 0;
- }
- m = Math.pow(10, Math.max(sq1, sq2));
- return (Math.round(num1 * m) + Math.round(num2 * m)) / m;
-}
-
-Component({
- externalClasses: ['i-class'],
-
- properties: {
- // small || default || large
- size: String,
- value: {
- type: Number,
- value: 1
- },
- min: {
- type: Number,
- value: -Infinity
- },
- max: {
- type: Number,
- value: Infinity
- },
- step: {
- type: Number,
- value: 1
- }
- },
-
-
- methods: {
- handleChangeStep(e, type) {
- const { dataset = {} } = e.currentTarget;
- const { disabled } = dataset;
- const { step } = this.data;
- let { value } = this.data;
-
- if (disabled) return null;
-
- if (type === 'minus') {
- value = addNum(value, -step);
- } else if (type === 'plus') {
- value = addNum(value, step);
- }
-
- if (value < this.data.min || value > this.data.max) return null;
-
- this.handleEmit(value, type);
- },
-
- handleMinus(e) {
- this.handleChangeStep(e, 'minus');
- },
-
- handlePlus(e) {
- this.handleChangeStep(e, 'plus');
- },
-
- handleBlur(e) {
- let { value } = e.detail;
- const { min, max } = this.data;
-
- if (!value) {
- setTimeout(() => {
- this.handleEmit(value);
- }, 16);
- return;
- }
-
- value = +value;
- if (value > max) {
- value = max;
- } else if (value < min) {
- value = min;
- }
-
- this.handleEmit(value);
- },
- handleEmit (value, type) {
- const data = {
- value: value
- };
- if (type) data.type = type;
-
- this.triggerEvent('change', data);
- }
- }
-});
diff --git a/dist/input-number/index.json b/dist/input-number/index.json
deleted file mode 100644
index 467ce29..0000000
--- a/dist/input-number/index.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "component": true
-}
diff --git a/dist/input-number/index.wxml b/dist/input-number/index.wxml
deleted file mode 100644
index b3503f4..0000000
--- a/dist/input-number/index.wxml
+++ /dev/null
@@ -1,5 +0,0 @@
-
- -
-
- +
-
diff --git a/dist/input-number/index.wxss b/dist/input-number/index.wxss
deleted file mode 100644
index f696bb4..0000000
--- a/dist/input-number/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-.i-input-number{color:#495060}.i-input-number view{display:inline-block;line-height:20px;padding:5px 0;text-align:center;min-width:40px;box-sizing:border-box;vertical-align:middle;font-size:12px;border:1rpx solid #dddee1}.i-input-number-minus{border-right:none;border-radius:2px 0 0 2px}.i-input-number-plus{border-left:none;border-radius:0 2px 2px 0}.i-input-number-text{border:1rpx solid #dddee1;display:inline-block;text-align:center;vertical-align:middle;height:30px;width:40px;min-height:auto;font-size:12px;line-height:30px}.i-input-number-disabled{border-color:#dddee1;color:#bbbec4;background:#f7f7f7}
\ No newline at end of file
diff --git a/dist/input/index.js b/dist/input/index.js
deleted file mode 100644
index c9d4c41..0000000
--- a/dist/input/index.js
+++ /dev/null
@@ -1,61 +0,0 @@
-Component({
- behaviors: ['wx://form-field'],
-
- externalClasses: ['i-class'],
-
- properties: {
- title: {
- type: String
- },
- // text || textarea || password || number
- type: {
- type: String,
- value: 'text'
- },
- disabled: {
- type: Boolean,
- value: false
- },
- placeholder: {
- type: String,
- value: ''
- },
- autofocus: {
- type: Boolean,
- value: false
- },
- mode: {
- type: String,
- value: 'normal'
- },
- right: {
- type: Boolean,
- value: false
- },
- error: {
- type: Boolean,
- value: false
- },
- maxlength: {
- type: Number
- }
- },
-
- methods: {
- handleInputChange(event) {
- const { detail = {} } = event;
- const { value = '' } = detail;
- this.setData({ value });
-
- this.triggerEvent('change', event);
- },
-
- handleInputFocus(event) {
- this.triggerEvent('focus', event);
- },
-
- handleInputBlur(event) {
- this.triggerEvent('blur', event);
- }
- }
-});
diff --git a/dist/input/index.json b/dist/input/index.json
deleted file mode 100644
index 467ce29..0000000
--- a/dist/input/index.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "component": true
-}
diff --git a/dist/input/index.wxml b/dist/input/index.wxml
deleted file mode 100644
index 52b0ee3..0000000
--- a/dist/input/index.wxml
+++ /dev/null
@@ -1,31 +0,0 @@
-
- {{ title }}
-
-
-
diff --git a/dist/input/index.wxss b/dist/input/index.wxss
deleted file mode 100644
index 9e7e9c1..0000000
--- a/dist/input/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-.i-cell{position:relative;padding:12px 15px;display:flex;background:#fff;align-items:center;line-height:1.4;font-size:14px;overflow:hidden}.i-cell::after{content:'';position:absolute;top:0;left:0;width:200%;height:200%;transform:scale(.5);transform-origin:0 0;pointer-events:none;box-sizing:border-box;border:0 solid #e9eaec;border-bottom-width:1px;left:15px;right:0}.i-cell-last::after{display:none}.i-cell-icon{margin-right:5px}.i-cell-icon:empty{display:none}.i-cell-bd{flex:1}.i-cell-text{line-height:24px;font-size:14px}.i-cell-desc{line-height:1.2;font-size:12px;color:#80848f}.i-cell-ft{position:relative;text-align:right;color:#495060}.i-cell-access .i-cell-ft{padding-right:13px}.i-cell-access .i-cell-ft::after{content:" ";display:inline-block;width:6px;height:6px;position:absolute;top:50%;right:2px;border-width:2px 2px 0 0;border-color:#dddee1;border-style:solid;transform:translateY(-50%) matrix(.71,.71,-.71,.71,0,0)}.i-input{padding:7px 15px;color:#495060}.i-input-wrapped{margin:10px 15px;background-color:#fff}.i-input-wrapped::after{left:0;border-width:1px;border-radius:4px}.i-input-error{color:#ed3f14}.i-input-title{color:#495060;min-width:65px;padding-right:10px}.i-input-input{flex:1;line-height:1.6;padding:4px 0;min-height:22px;height:auto;font-size:14px}.i-input-placeholder{font-size:14px}.i-input-input-right{text-align:right}.i-input.i-input-wrapped::after{display:block}.i-input-wrapped.i-input-error::after{border-color:#ed3f14}
\ No newline at end of file
diff --git a/dist/load-more/index.js b/dist/load-more/index.js
deleted file mode 100644
index d0cd46c..0000000
--- a/dist/load-more/index.js
+++ /dev/null
@@ -1,14 +0,0 @@
-Component({
- externalClasses: ['i-class'],
-
- properties: {
- loading: {
- type: Boolean,
- value: true
- },
- tip: {
- type: String,
- value: ''
- }
- },
-});
diff --git a/dist/load-more/index.json b/dist/load-more/index.json
deleted file mode 100644
index 467ce29..0000000
--- a/dist/load-more/index.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "component": true
-}
diff --git a/dist/load-more/index.wxml b/dist/load-more/index.wxml
deleted file mode 100644
index 66571af..0000000
--- a/dist/load-more/index.wxml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
- {{ tip }}
- 正在加载
-
-
-
\ No newline at end of file
diff --git a/dist/load-more/index.wxss b/dist/load-more/index.wxss
deleted file mode 100644
index ffe4026..0000000
--- a/dist/load-more/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-.i-load-more{width:65%;margin:1.5em auto;line-height:1.6em;font-size:14px;text-align:center}.i-load-more-loading{display:inline-block;margin-right:12px;vertical-align:middle;width:14px;height:14px;background:0 0;border-radius:50%;border:2px solid #e9eaec;border-color:#e9eaec #e9eaec #e9eaec #2d8cf0;animation:btn-spin .6s linear;animation-iteration-count:infinite}.i-load-more-tip{display:inline-block;vertical-align:middle;color:#495060}.i-load-more-line{border-top:1px solid #dddee1;display:flex;border-top:0}.i-load-more-line::before{position:relative;top:-1px;-webkit-box-flex:1;-webkit-flex:1;flex:1;content:'';border-top:1px solid #dddee1}.i-load-more-line::after{position:relative;top:-1px;-webkit-box-flex:1;-webkit-flex:1;flex:1;content:'';border-top:1px solid #dddee1}.i-load-more-line .i-load-more-tip{position:relative;top:-.9em;padding:0 .55em}.i-load-more-empty{width:4px;height:4px;border-radius:50%;background-color:#e5e5e5;display:inline-block;position:relative;vertical-align:0;top:-.16em}@keyframes btn-spin{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}
\ No newline at end of file
diff --git a/dist/message/index.js b/dist/message/index.js
deleted file mode 100644
index 21a6d68..0000000
--- a/dist/message/index.js
+++ /dev/null
@@ -1,45 +0,0 @@
-const default_data = {
- visible: false,
- content: '',
- duration: 2,
- type: 'default', // default || success || warning || error
-};
-
-let timmer = null;
-
-Component({
- externalClasses: ['i-class'],
-
- data: {
- ...default_data
- },
-
- methods: {
- handleShow (options) {
- const { type = 'default', duration = 2 } = options;
-
- this.setData({
- ...options,
- type,
- duration,
- visible: true
- });
-
- const d = this.data.duration * 1000;
-
- if (timmer) clearTimeout(timmer);
- if (d !== 0) {
- timmer = setTimeout(() => {
- this.handleHide();
- timmer = null;
- }, d);
- }
- },
-
- handleHide () {
- this.setData({
- ...default_data
- });
- }
- }
-});
\ No newline at end of file
diff --git a/dist/message/index.json b/dist/message/index.json
deleted file mode 100644
index 467ce29..0000000
--- a/dist/message/index.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "component": true
-}
diff --git a/dist/message/index.wxml b/dist/message/index.wxml
deleted file mode 100644
index aecaad9..0000000
--- a/dist/message/index.wxml
+++ /dev/null
@@ -1,3 +0,0 @@
-
- {{ content }}
-
\ No newline at end of file
diff --git a/dist/message/index.wxss b/dist/message/index.wxss
deleted file mode 100644
index e6a79a6..0000000
--- a/dist/message/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-.i-message{display:block;width:100%;min-height:32px;line-height:2.3;position:fixed;top:0;left:0;right:0;background:#2d8cf0;color:#fff;text-align:center;font-size:14px;z-index:1010;opacity:0;-webkit-transform:translateZ(0) translateY(-100%);transition:all .4s ease-in-out}.i-message-show{-webkit-transform:translateZ(0) translateY(0);opacity:1}.i-message-default{background:#2d8cf0}.i-message-success{background:#19be6b}.i-message-warning{background:#f90}.i-message-error{background:#ed3f14}
\ No newline at end of file
diff --git a/dist/modal/index.js b/dist/modal/index.js
deleted file mode 100644
index ae178e5..0000000
--- a/dist/modal/index.js
+++ /dev/null
@@ -1,54 +0,0 @@
-Component({
- externalClasses: ['i-class', 'i-class-mask'],
-
- properties: {
- visible: {
- type: Boolean,
- value: false
- },
- title: {
- type: String,
- value: ''
- },
- showOk: {
- type: Boolean,
- value: true
- },
- showCancel: {
- type: Boolean,
- value: true
- },
- okText: {
- type: String,
- value: '确定'
- },
- cancelText: {
- type: String,
- value: '取消'
- },
- // 按钮组,有此值时,不显示 ok 和 cancel 按钮
- actions: {
- type: Array,
- value: []
- },
- // horizontal || vertical
- actionMode: {
- type: String,
- value: 'horizontal'
- }
- },
-
- methods: {
- handleClickItem ({ currentTarget = {} }) {
- const dataset = currentTarget.dataset || {};
- const { index } = dataset;
- this.triggerEvent('click', { index });
- },
- handleClickOk () {
- this.triggerEvent('ok');
- },
- handleClickCancel () {
- this.triggerEvent('cancel');
- }
- }
-});
diff --git a/dist/modal/index.json b/dist/modal/index.json
deleted file mode 100644
index 50d034a..0000000
--- a/dist/modal/index.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "component": true,
- "usingComponents": {
- "i-grid": "../grid/index",
- "i-grid-item": "../grid-item/index",
- "i-button": "../button/index",
- "i-icon": "../icon/index"
- }
-}
diff --git a/dist/modal/index.wxml b/dist/modal/index.wxml
deleted file mode 100644
index 11bcbd4..0000000
--- a/dist/modal/index.wxml
+++ /dev/null
@@ -1,40 +0,0 @@
-
-
-
-
- {{ title }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ cancelText }}
-
-
- {{ okText }}
-
-
-
-
-
-
-
-
-
-
- {{ item.name }}
-
-
\ No newline at end of file
diff --git a/dist/modal/index.wxss b/dist/modal/index.wxss
deleted file mode 100644
index d1c42fc..0000000
--- a/dist/modal/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-.i-modal{position:fixed;overflow:auto;top:0;right:0;bottom:0;left:0;height:100%;z-index:1000;display:flex;outline:0;-webkit-box-align:center;align-items:center;-webkit-box-pack:center;justify-content:center;transform:translateZ(1px);opacity:0;visibility:hidden}.i-modal-show{visibility:visible;opacity:1}.i-modal-mask{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.7);z-index:1000;transition:all .2s ease-in-out;opacity:0;visibility:hidden}.i-modal-mask-show{opacity:1;visibility:visible}.i-modal-main{width:270px;position:relative}.i-modal-content{border-radius:7px;padding-top:15px;position:relative;background-color:#fff;border:0;background-clip:padding-box;text-align:center;height:100%;overflow:hidden}.i-modal-body{max-height:100px;margin-bottom:15px;font-size:14px;color:#80848f;height:100%;line-height:1.5;overflow:auto}.i-modal-title{padding:6px 15px 15px;margin:0;font-size:18px;line-height:1;color:#1c2438;text-align:center}.i-modal-actions{margin:0 1px}.i-modal-action-vertical{position:relative}.i-modal-action-vertical:after{content:'';position:absolute;top:0;left:0;width:200%;height:200%;transform:scale(.5);transform-origin:0 0;pointer-events:none;box-sizing:border-box;border:0 solid #e9eaec;border-top-width:1px}.i-modal-grid{border-radius:0 0 7px 7px;border-left:none}.i-modal-grid-item,.i-modal-grid-item-last{padding:0;border-bottom:none}.i-modal-grid-item-last{border-right:none}.i-modal-btn-ok{color:#2d8cf0!important}.i-modal-btn-loading{display:inline-block;vertical-align:middle;margin-right:10px;width:12px;height:12px;background:0 0;border-radius:50%;border:2px solid #e5e5e5;border-color:#666 #e5e5e5 #e5e5e5 #e5e5e5;animation:btn-spin .6s linear;animation-iteration-count:infinite}.i-modal-btn-text{display:inline-block;vertical-align:middle}.i-modal-btn-icon{font-size:14px!important;margin-right:4px}@keyframes btn-spin{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}
\ No newline at end of file
diff --git a/dist/notice-bar/index.js b/dist/notice-bar/index.js
deleted file mode 100644
index 7043dbd..0000000
--- a/dist/notice-bar/index.js
+++ /dev/null
@@ -1,112 +0,0 @@
-const VALID_MODE = ['closeable'];
-const FONT_COLOR = '#f60';
-const BG_COLOR = '#fff7cc';
-
-Component({
- externalClasses: ['i-class'],
-
- properties: {
- closable: {
- type: Boolean,
- value: false
- },
- icon: {
- type: String,
- value: ''
- },
- loop: {
- type: Boolean,
- value: false
- },
- // 背景颜色
- backgroundcolor: {
- type: String,
- value: '#fefcec'
- },
- // 字体及图标颜色
- color: {
- type: String,
- value: '#f76a24'
- },
- // 滚动速度
- speed: {
- type: Number,
- value: 1000
- }
- },
-
- data: {
- show: true,
- wrapWidth: 0,
- width: 0,
- duration: 0,
- animation: null,
- timer: null,
- },
- detached() {
- this.destroyTimer();
- },
- ready() {
- if (this.data.loop) {
- this.initAnimation();
- }
- },
-
- methods: {
- initAnimation() {
- wx.createSelectorQuery().in(this).select('.i-noticebar-content-wrap').boundingClientRect((wrapRect) => {
- wx.createSelectorQuery().in(this).select('.i-noticebar-content').boundingClientRect((rect) => {
- const duration = rect.width / 40 * this.data.speed;
- const animation = wx.createAnimation({
- duration: duration,
- timingFunction: "linear",
- });
- this.setData({
- wrapWidth: wrapRect.width,
- width: rect.width,
- duration: duration,
- animation: animation
- }, () => {
- this.startAnimation();
- });
- }).exec();
-
- }).exec();
- },
- startAnimation() {
- //reset
- if (this.data.animation.option.transition.duration !== 0) {
- this.data.animation.option.transition.duration = 0;
- const resetAnimation = this.data.animation.translateX(this.data.wrapWidth).step();
- this.setData({
- animationData: resetAnimation.export()
- });
- }
- this.data.animation.option.transition.duration = this.data.duration;
- const animationData = this.data.animation.translateX(-this.data.width).step();
- setTimeout(() => {
- this.setData({
- animationData: animationData.export()
- });
- }, 100);
- const timer = setTimeout(() => {
- this.startAnimation();
- }, this.data.duration);
- this.setData({
- timer,
- });
- },
- destroyTimer() {
- if (this.data.timer) {
- clearTimeout(this.data.timer);
- }
- },
- handleClose() {
- this.destroyTimer();
- this.setData({
- show: false,
- timer: null
- });
- }
- }
-});
diff --git a/dist/notice-bar/index.json b/dist/notice-bar/index.json
deleted file mode 100644
index db3afc0..0000000
--- a/dist/notice-bar/index.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "component": true,
- "usingComponents":
- {
- "i-icon": "../icon/index"
- }
-}
diff --git a/dist/notice-bar/index.wxml b/dist/notice-bar/index.wxml
deleted file mode 100644
index 5de1e11..0000000
--- a/dist/notice-bar/index.wxml
+++ /dev/null
@@ -1,9 +0,0 @@
-
-
-
-
-
-
-
-
-
diff --git a/dist/notice-bar/index.wxss b/dist/notice-bar/index.wxss
deleted file mode 100644
index 9ea2aa7..0000000
--- a/dist/notice-bar/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-.i-noticebar{display:flex;height:72rpx;line-height:72rpx;font-size:14px;color:#f76a24;background-color:#fefcec;overflow:hidden}.i-noticebar-icon{display:flex;margin-left:30rpx;align-items:center}.i-noticebar-icon+view{margin-left:10rpx}.i-noticebar-operation{display:flex;margin-right:16rpx;align-items:center}.i-noticebar-content-wrap{position:relative;flex:1;margin:0 30rpx;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.i-noticebar-content-wrap .i-noticebar-content{position:absolute;transition-duration:20s}
\ No newline at end of file
diff --git a/dist/page/index.js b/dist/page/index.js
deleted file mode 100644
index e0f44c5..0000000
--- a/dist/page/index.js
+++ /dev/null
@@ -1,42 +0,0 @@
-Component({
- externalClasses: ['i-class'],
-
- options: {
- multipleSlots: true
- },
-
- properties: {
- // button || number || pointer
- mode: {
- type: String,
- value: 'button'
- },
- current: {
- type: Number,
- value: 1
- },
- total: {
- type: Number,
- value: 0
- },
- // 是否隐藏数值
- simple: {
- type: Boolean,
- value: false
- }
- },
-
- methods: {
- handleChange (type) {
- this.triggerEvent('change', {
- type: type
- });
- },
- handlePrev () {
- this.handleChange('prev');
- },
- handleNext () {
- this.handleChange('next');
- }
- }
-});
diff --git a/dist/page/index.json b/dist/page/index.json
deleted file mode 100644
index 7b1a128..0000000
--- a/dist/page/index.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "component": true,
- "usingComponents":
- {
- "i-button": "../button/index"
- }
-}
diff --git a/dist/page/index.wxml b/dist/page/index.wxml
deleted file mode 100644
index a84d47b..0000000
--- a/dist/page/index.wxml
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
-
-
- {{ current }}/{{total}}
-
-
-
-
-
-
-
-
diff --git a/dist/page/index.wxss b/dist/page/index.wxss
deleted file mode 100644
index 06c5c3b..0000000
--- a/dist/page/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-.i-page{display:block;width:100%;height:44px;overflow:hidden;box-sizing:border-box;position:relative}.i-page-prev{position:absolute;left:10px;top:0}.i-page-next{position:absolute;right:10px;top:0}.i-page-number{width:100%;height:44px;line-height:44px;margin:0 auto;text-align:center}.i-page-number-current{display:inline;color:#2d8cf0}.i-page-pointer{width:100%;height:44px;line-height:44px;margin:0 auto;text-align:center}.i-page-pointer-dot{display:inline-block;width:8px;height:8px;margin:0 2px;border-radius:50%;background:#bbbec4}.i-page-pointer-dot.current{background:#80848f}.i-page-button{display:inline-block;margin:0}
\ No newline at end of file
diff --git a/dist/panel/index.js b/dist/panel/index.js
deleted file mode 100644
index b572da5..0000000
--- a/dist/panel/index.js
+++ /dev/null
@@ -1,19 +0,0 @@
-Component({
- externalClasses: ['i-class'],
-
- properties: {
- title: {
- type: String,
- value: ''
- },
- // 标题顶部距离
- hideTop: {
- type: Boolean,
- value: false
- },
- hideBorder: {
- type: Boolean,
- value: false
- }
- }
-});
diff --git a/dist/panel/index.json b/dist/panel/index.json
deleted file mode 100644
index 467ce29..0000000
--- a/dist/panel/index.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "component": true
-}
diff --git a/dist/panel/index.wxml b/dist/panel/index.wxml
deleted file mode 100644
index aa91c20..0000000
--- a/dist/panel/index.wxml
+++ /dev/null
@@ -1,4 +0,0 @@
-
- {{ title }}
-
-
diff --git a/dist/panel/index.wxss b/dist/panel/index.wxss
deleted file mode 100644
index edee3b8..0000000
--- a/dist/panel/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-.i-panel{position:relative;overflow:hidden}.i-panel-title{font-size:14px;line-height:1;color:#1c2438;padding:20px 16px 10px}.i-panel-title-hide-top{padding-top:0}.i-panel-content{position:relative;background:#fff;overflow:hidden}.i-panel-content::after{content:'';position:absolute;top:0;left:0;width:200%;height:200%;transform:scale(.5);transform-origin:0 0;pointer-events:none;box-sizing:border-box;border:0 solid #e9eaec;border-top-width:1px;border-bottom-width:1px}.i-panel-without-border::after{border:0 none}
\ No newline at end of file
diff --git a/dist/progress/index.js b/dist/progress/index.js
deleted file mode 100644
index b87b962..0000000
--- a/dist/progress/index.js
+++ /dev/null
@@ -1,23 +0,0 @@
-Component({
- externalClasses: ['i-class'],
-
- properties: {
- percent: {
- type: Number,
- value: 0
- },
- // normal || active || wrong || success
- status: {
- type: String,
- value: 'normal'
- },
- strokeWidth: {
- type: Number,
- value: 10
- },
- hideInfo: {
- type: Boolean,
- value: false
- }
- }
-});
diff --git a/dist/progress/index.json b/dist/progress/index.json
deleted file mode 100644
index 467ce29..0000000
--- a/dist/progress/index.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "component": true
-}
diff --git a/dist/progress/index.wxml b/dist/progress/index.wxml
deleted file mode 100644
index 09b5abc..0000000
--- a/dist/progress/index.wxml
+++ /dev/null
@@ -1,10 +0,0 @@
-
-
-
-
-
-
-
- {{ percent }}%
-
-
\ No newline at end of file
diff --git a/dist/progress/index.wxss b/dist/progress/index.wxss
deleted file mode 100644
index 21b9d9c..0000000
--- a/dist/progress/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-.i-progress{display:inline-block;width:100%;font-size:12px;position:relative}.i-progress-outer{display:inline-block;width:100%;margin-right:0;padding-right:0;box-sizing:border-box}.i-progress-show-info .i-progress-outer{padding-right:55px;margin-right:-55px}.i-progress-inner{display:inline-block;width:100%;background-color:#f3f3f3;border-radius:100px;vertical-align:middle}.i-progress-bg{border-radius:100px;background-color:#2db7f5;transition:all .2s linear;position:relative}.i-progress-text{display:inline-block;margin-left:5px;text-align:left;font-size:1em;vertical-align:middle}.i-progress-active .i-progress-bg:before{content:'';opacity:0;position:absolute;top:0;left:0;right:0;bottom:0;background:#fff;border-radius:10px;animation:i-progress-active 2s ease-in-out infinite}.i-progress-wrong .i-progress-bg{background-color:#ed3f14}.i-progress-wrong .i-progress-text{color:#ed3f14}.i-progress-success .i-progress-bg{background-color:#19be6b}.i-progress-success .i-progress-text{color:#19be6b}@keyframes i-progress-active{0%{opacity:.3;width:0}100%{opacity:0;width:100%}}
\ No newline at end of file
diff --git a/dist/radio-group/index.js b/dist/radio-group/index.js
deleted file mode 100644
index db76e41..0000000
--- a/dist/radio-group/index.js
+++ /dev/null
@@ -1,38 +0,0 @@
-Component({
- externalClasses: ['i-class'],
- relations: {
- '../radio/index': {
- type: 'child',
- linked() {
- this.changeCurrent();
- },
- linkChanged() {
- this.changeCurrent();
- },
- unlinked() {
- this.changeCurrent();
- }
- }
- },
- properties: {
- current: {
- type: String,
- value: '',
- observer: 'changeCurrent'
- },
- },
- methods: {
- changeCurrent(val = this.data.current) {
- let items = this.getRelationNodes('../radio/index');
- const len = items.length;
- if (len > 0) {
- items.forEach(item => {
- item.changeCurrent(val === item.data.value);
- });
- }
- },
- emitEvent(current) {
- this.triggerEvent('change', current);
- }
- }
-});
diff --git a/dist/radio-group/index.json b/dist/radio-group/index.json
deleted file mode 100644
index edf138d..0000000
--- a/dist/radio-group/index.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "component": true,
- "usingComponents":
- {
- "i-cell-group": "../cell-group/index"
- }
-}
diff --git a/dist/radio-group/index.wxml b/dist/radio-group/index.wxml
deleted file mode 100644
index 6940180..0000000
--- a/dist/radio-group/index.wxml
+++ /dev/null
@@ -1,3 +0,0 @@
-
-
-
diff --git a/dist/radio-group/index.wxss b/dist/radio-group/index.wxss
deleted file mode 100644
index e69de29..0000000
diff --git a/dist/radio/index.js b/dist/radio/index.js
deleted file mode 100644
index cb73db5..0000000
--- a/dist/radio/index.js
+++ /dev/null
@@ -1,56 +0,0 @@
-const prefixCls = 'i-radio';
-
-Component({
- externalClasses: ['i-class'],
- relations: {
- '../radio-group/index': {
- type: 'parent'
- }
- },
- properties: {
- value: {
- type: String,
- value: ''
- },
- checked: {
- type: Boolean,
- value: false
- },
- disabled: {
- type: Boolean,
- value: false
- },
- color: {
- type: String,
- value: '#2d8cf0'
- },
- position: {
- type: String,
- value: 'left', //left right
- observer: 'setPosition'
- }
- },
- data: {
- checked: true,
- positionCls: `${prefixCls}-radio-left`,
- },
- attached() {
- this.setPosition();
- },
- methods: {
- changeCurrent(current) {
- this.setData({ checked: current });
- },
- radioChange() {
- if (this.data.disabled) return;
- const item = { current: !this.data.checked, value: this.data.value };
- const parent = this.getRelationNodes('../radio-group/index')[0];
- parent ? parent.emitEvent(item) : this.triggerEvent('change', item);
- },
- setPosition() {
- this.setData({
- positionCls: this.data.position.indexOf('left') !== -1 ? `${prefixCls}-radio-left` : `${prefixCls}-radio-right`,
- });
- }
- }
-});
diff --git a/dist/radio/index.json b/dist/radio/index.json
deleted file mode 100644
index e2ab49a..0000000
--- a/dist/radio/index.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "component": true,
- "usingComponents":
- {
- "i-cell": "../cell/index"
- }
-}
diff --git a/dist/radio/index.wxml b/dist/radio/index.wxml
deleted file mode 100644
index 1e20b79..0000000
--- a/dist/radio/index.wxml
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
-
diff --git a/dist/radio/index.wxss b/dist/radio/index.wxss
deleted file mode 100644
index c52b211..0000000
--- a/dist/radio/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-.i-radio-cell::after{display:block}.i-radio-radio-left{float:left}.i-radio-radio-right{float:right}.i-radio-radio{vertical-align:middle}.i-radio-title{display:inline-block;vertical-align:middle}
\ No newline at end of file
diff --git a/dist/rate/index.js b/dist/rate/index.js
deleted file mode 100644
index a7e374a..0000000
--- a/dist/rate/index.js
+++ /dev/null
@@ -1,69 +0,0 @@
-Component({
- externalClasses: ['i-class'],
- properties : {
- count : {
- type : Number,
- value : 5
- },
- value : {
- type : Number,
- value : 0
- },
- disabled : {
- type : Boolean,
- value : false
- },
- size : {
- type : Number,
- value : 20
- },
- name : {
- type : String,
- value : ''
- }
- },
- data : {
- touchesStart : {
- pageX : 0
- }
- },
- methods : {
- handleClick(e){
- const data = this.data;
- if( data.disabled ){
- return;
- }
- const index = e.currentTarget.dataset.index;
- this.triggerEvent('change',{
- index : index + 1
- })
- },
- handleTouchMove(e){
- const data = this.data;
- if( data.disabled ){
- return;
- }
- if( !e.changedTouches[0] ){
- return;
- }
- const movePageX = e.changedTouches[0].pageX;
- const space = movePageX - data.touchesStart.pageX;
-
- if( space <= 0 ){
- return;
- }
- let setIndex = Math.ceil( space/data.size );
- setIndex = setIndex > data.count ? data.count : setIndex ;
- this.triggerEvent('change',{
- index : setIndex
- })
- }
- },
- ready(){
- const className = '.i-rate';
- var query = wx.createSelectorQuery().in(this)
- query.select( className ).boundingClientRect((res)=>{
- this.data.touchesStart.pageX = res.left || 0;
- }).exec()
- }
-});
diff --git a/dist/rate/index.json b/dist/rate/index.json
deleted file mode 100644
index 687543c..0000000
--- a/dist/rate/index.json
+++ /dev/null
@@ -1,6 +0,0 @@
-{
- "component": true,
- "usingComponents":{
- "i-icon": "../icon/index"
- }
-}
diff --git a/dist/rate/index.wxml b/dist/rate/index.wxml
deleted file mode 100644
index d600660..0000000
--- a/dist/rate/index.wxml
+++ /dev/null
@@ -1,23 +0,0 @@
-
-
-
-
-
-
-
-
-var prefixCls = 'i-rate';
-module.exports = {
- getCurrent : function( value,index ){
- if( index < value ){
- return prefixCls + '-current'
- }
- }
-}
-
diff --git a/dist/rate/index.wxss b/dist/rate/index.wxss
deleted file mode 100644
index e889107..0000000
--- a/dist/rate/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-.i-rate{margin:0;padding:0;font-size:20px;display:inline-block;vertical-align:middle;font-weight:400;font-style:normal}.i-rate-hide-input{display:none}.i-rate-star{display:inline-block;color:#e9e9e9}.i-rate-current{color:#f5a623}.i-rate-text{display:inline-block;vertical-align:middle;margin-left:6px;font-size:14px}
\ No newline at end of file
diff --git a/dist/row/index.js b/dist/row/index.js
deleted file mode 100644
index 3428387..0000000
--- a/dist/row/index.js
+++ /dev/null
@@ -1,9 +0,0 @@
-Component({
- externalClasses: ['i-class'],
-
- relations: {
- '../col/index': {
- type: 'child'
- }
- }
-});
diff --git a/dist/row/index.json b/dist/row/index.json
deleted file mode 100644
index 467ce29..0000000
--- a/dist/row/index.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "component": true
-}
diff --git a/dist/row/index.wxml b/dist/row/index.wxml
deleted file mode 100644
index fe8159e..0000000
--- a/dist/row/index.wxml
+++ /dev/null
@@ -1 +0,0 @@
-
\ No newline at end of file
diff --git a/dist/row/index.wxss b/dist/row/index.wxss
deleted file mode 100644
index 3b8b432..0000000
--- a/dist/row/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-.i-row:after{content:"";display:table;clear:both}
\ No newline at end of file
diff --git a/dist/slide/index.js b/dist/slide/index.js
deleted file mode 100644
index 29534f5..0000000
--- a/dist/slide/index.js
+++ /dev/null
@@ -1,15 +0,0 @@
-Component({
- externalClasses: ['i-class'],
- options: {
- // 在组件定义时的选项中启用多slot支持
- multipleSlots: true
- },
- methods : {
- handleTap2(){
-
- },
- handleTap3(){
-
- }
- }
-});
diff --git a/dist/slide/index.json b/dist/slide/index.json
deleted file mode 100644
index 6b1e67d..0000000
--- a/dist/slide/index.json
+++ /dev/null
@@ -1,8 +0,0 @@
-{
- "component": true,
- "usingComponents":
- {
- "i-button": "../button/index",
- "i-icon": "../icon/index"
- }
-}
diff --git a/dist/slide/index.wxml b/dist/slide/index.wxml
deleted file mode 100644
index a13c673..0000000
--- a/dist/slide/index.wxml
+++ /dev/null
@@ -1,4 +0,0 @@
-
- 1111
-
-
\ No newline at end of file
diff --git a/dist/slide/index.wxss b/dist/slide/index.wxss
deleted file mode 100644
index e69de29..0000000
diff --git a/dist/spin/index.js b/dist/spin/index.js
deleted file mode 100644
index 3297f81..0000000
--- a/dist/spin/index.js
+++ /dev/null
@@ -1,23 +0,0 @@
-Component({
- externalClasses: ['i-class'],
-
- properties: {
- // small || default || large
- size: {
- type: String,
- value: 'default'
- },
- fix: {
- type: Boolean,
- value: false
- },
- fullscreen: {
- type: Boolean,
- value: false
- },
- custom: {
- type: Boolean,
- value: false
- }
- }
-});
diff --git a/dist/spin/index.json b/dist/spin/index.json
deleted file mode 100644
index 467ce29..0000000
--- a/dist/spin/index.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "component": true
-}
diff --git a/dist/spin/index.wxml b/dist/spin/index.wxml
deleted file mode 100644
index 8c25439..0000000
--- a/dist/spin/index.wxml
+++ /dev/null
@@ -1,6 +0,0 @@
-
-
-
diff --git a/dist/spin/index.wxss b/dist/spin/index.wxss
deleted file mode 100644
index 8ed714a..0000000
--- a/dist/spin/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-.i-spin{color:#2d8cf0;vertical-align:middle;text-align:center}.i-spin-dot{position:relative;display:block;border-radius:50%;background-color:#2d8cf0;width:20px;height:20px;animation:ani-spin-bounce 1s 0s ease-in-out infinite}.i-spin-large .i-spin-dot{width:32px;height:32px}.i-spin-small .i-spin-dot{width:12px;height:12px}.i-spin-fix{position:absolute;top:0;left:0;z-index:8;width:100%;height:100%;background-color:rgba(255,255,255,.9)}.i-spin-fullscreen{z-index:2010}.i-spin-fullscreen-wrapper{position:fixed;top:0;right:0;bottom:0;left:0}.i-spin-fix .i-spin-main{position:absolute;top:50%;left:50%;-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.i-spin-fix .i-spin-dot{display:inline-block}.i-spin-show-text .i-spin-dot,.i-spin-text{display:none}.i-spin-show-text .i-spin-text{display:block;font-size:14px}@keyframes ani-spin-bounce{0%{transform:scale(0)}100%{transform:scale(1);opacity:0}}
\ No newline at end of file
diff --git a/dist/step/index.js b/dist/step/index.js
deleted file mode 100644
index 06a81a2..0000000
--- a/dist/step/index.js
+++ /dev/null
@@ -1,52 +0,0 @@
-Component({
- externalClasses: ['i-class'],
- properties : {
- status : {
- type : String,
- //wait、process、finish、error
- value : ''
- },
- title : {
- type : String,
- value : ''
- },
- content : {
- type : String,
- value : ''
- },
- icon : {
- type : String,
- value : ''
- }
- },
- options: {
- // 在组件定义时的选项中启用多slot支持
- multipleSlots: true
- },
- relations : {
- '../steps/index' : {
- type : 'parent'
- }
- },
- data : {
- //step length
- len : 1,
- //current in step index
- index : 0,
- //parent component select current index
- current : 0,
- //css direction
- direction : 'horizontal'
- },
- methods : {
- updateDataChange( options ){
- this.setData({
- len : options.len,
- index : options.index,
- current : options.current,
- direction : options.direction
- })
- }
- }
-
-})
\ No newline at end of file
diff --git a/dist/step/index.json b/dist/step/index.json
deleted file mode 100644
index ffb5dee..0000000
--- a/dist/step/index.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "component": true,
- "usingComponents":
- {
- "i-icon": "../icon/index"
- }
-}
diff --git a/dist/step/index.wxml b/dist/step/index.wxml
deleted file mode 100644
index 63549dc..0000000
--- a/dist/step/index.wxml
+++ /dev/null
@@ -1,70 +0,0 @@
-
-
- {{ index+1 }}
-
-
-
-
-
-
-
- {{title}}
-
-
-
-
-
- {{content}}
-
-
-
-
-
-
-
-var allStatus = ['wait','process','finish','error'];
-module.exports = {
- noIco : function( status,current,index,icon ){
- var aindex = allStatus.indexOf(status);
- var noIcon = true;
- if( index < current || icon !== '' ){
- noIcon = false;
- }
- return noIcon;
- },
- getIcoClass : function( status,ico ){
- var class = '';
- if( status === 'error' ){
- class = 'close';
- }else{
- class = 'right';
- }
- if( ico !== '' ){
- class = ico;
- }
- return class;
- },
- getItemStyle : function(len,direction){
- if( direction === 'horizontal' ){
- return 'width :'+100/len + '%';
- }else{
- return 'width : 100%;';
- }
- },
- getClass : function( status,current,index ) {
- //wait、process、finish、error
- var startClass = 'i-step-'
- var classes = '';
- var cindex = allStatus.indexOf( status );
- if( cindex !== -1 ){
- classes = startClass + allStatus[cindex];
- }
- if( index < current ){
- classes = startClass + 'finish';
- }else if( index === current ){
- classes = startClass + 'process';
- }
- return classes;
- }
-}
-
\ No newline at end of file
diff --git a/dist/step/index.wxss b/dist/step/index.wxss
deleted file mode 100644
index 284b42a..0000000
--- a/dist/step/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-.i-step-ico{width:24px;height:100%;border-radius:100%;background:#fff;position:relative;z-index:2;margin:0 auto;border:#dddee1 solid 1px}.i-step-ico-in{vertical-align:baseline}.i-step-line{position:absolute;left:50%;top:12px;width:100%;height:1px;background:#dddee1}.i-step-horizontal .i-step-ico::after{position:absolute;top:11px;left:23px;z-index:1;content:'';height:1px;background:#fff;width:10px}.i-step-horizontal .i-step-item-main{text-align:center}.i-step-horizontal .i-step-ico::before{position:absolute;top:11px;left:-11px;z-index:1;content:'';height:1px;background:#fff;width:10px}.i-step-ico{box-sizing:border-box;font-size:12px}.i-step-process .i-step-ico{border:#2d8cf0 solid 1px;color:#fff;background:#2d8cf0}.i-step-wait .i-step-ico{border:#e9eaec solid 1px;color:#e9eaec}.i-step-wait .i-step-line{background:#2d8cf0}.i-step-finish .i-step-ico{border:#2d8cf0 solid 1px;color:#2d8cf0}.i-step-finish .i-step-line{background:#2d8cf0}.i-step-error .i-step-ico{border:#ed3f14 solid 1px;color:#ed3f14}.i-step-error .i-step-line{background:#ed3f14}.i-step-item{font-size:12px;position:relative;display:inline-block;box-sizing:border-box;padding-left:10px;vertical-align:top}.i-step-item-ico{width:100%;height:24px;line-height:24px;text-align:center}.i-step-item-main{margin-top:10px;clear:both}.i-step-item-title{font-size:14px;font-weight:700;color:#1c2438}.i-step-item-content{font-size:12px;font-weight:700;margin-top:2px;color:#80848f}.i-step-vertical{padding-bottom:30px}.i-step-vertical .i-step-item-ico{width:24px;float:left}.i-step-vertical .i-step-item-main{margin-left:40px;margin-top:0;clear:inherit}.i-step-vertical .i-step-line{position:absolute;height:100%;top:0;left:10px;margin:0 0 0 12px;width:1px}
\ No newline at end of file
diff --git a/dist/steps/index.js b/dist/steps/index.js
deleted file mode 100644
index 06bed88..0000000
--- a/dist/steps/index.js
+++ /dev/null
@@ -1,50 +0,0 @@
-Component({
- externalClasses: ['i-class'],
- properties : {
- current : {
- type : Number,
- value : -1,
- observer : '_updateDataChange'
- },
- status : {
- type : String,
- //wait、process、finish、error
- value : ''
- },
- direction : {
- type : String,
- //value has horizontal or vertical
- value : 'horizontal'
- }
- },
- relations : {
- '../step/index' : {
- type : 'child',
- linked(){
- this._updateDataChange();
- },
- linkChanged () {
- this._updateDataChange();
- },
- unlinked () {
- this._updateDataChange();
- }
- }
- },
- methods: {
- _updateDataChange() {
- let steps = this.getRelationNodes('../step/index');
- const len = steps.length;
- if (len > 0) {
- steps.forEach((step, index) => {
- step.updateDataChange({
- len : len,
- index : index,
- current : this.data.current,
- direction : this.data.direction
- });
- });
- }
- }
- }
-})
\ No newline at end of file
diff --git a/dist/steps/index.json b/dist/steps/index.json
deleted file mode 100644
index 467ce29..0000000
--- a/dist/steps/index.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "component": true
-}
diff --git a/dist/steps/index.wxml b/dist/steps/index.wxml
deleted file mode 100644
index d9c7942..0000000
--- a/dist/steps/index.wxml
+++ /dev/null
@@ -1,3 +0,0 @@
-
-
-
diff --git a/dist/steps/index.wxss b/dist/steps/index.wxss
deleted file mode 100644
index 616ed04..0000000
--- a/dist/steps/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-.i-steps{width:100%}
\ No newline at end of file
diff --git a/dist/swipeout/index.js b/dist/swipeout/index.js
deleted file mode 100644
index 19da4b7..0000000
--- a/dist/swipeout/index.js
+++ /dev/null
@@ -1,159 +0,0 @@
- /*
-* touch事件判断方式
-* https://github.com/madrobby/zepto/blob/master/src/touch.js#files
-*/
-function swipeDirection(x1, x2, y1, y2) {
- return Math.abs(x1 - x2) >=
- Math.abs(y1 - y2) ? (x1 - x2 > 0 ? 'Left' : 'Right') : (y1 - y2 > 0 ? 'Up' : 'Down')
-}
-
-Component({
- externalClasses: ['i-class'],
- properties: {
- actions: {
- value: [],
- type: Array,
- observer : '_updateButtonSize'
- },
- unclosable : {
- value : false,
- type : Boolean
- },
- toggle : {
- value : false,
- type : Boolean,
- observer : 'closeButtonGroup'
- },
- operateWidth : {
- type : Number,
- value : 160
- }
- },
- options: {
- // 在组件定义时的选项中启用多slot支持
- multipleSlots: true
- },
- data : {
- //touch start position
- tStart : {
- pageX : 0,
- pageY : 0
- },
- //限制滑动距离
- limitMove : 0,
- //element move position
- position : {
- pageX : 0,
- pageY : 0
- }
- },
- methods : {
- //阻止事件冒泡
- loop(){},
- _updateButtonSize(){
- const actions = this.data.actions;
- if( actions.length > 0 ){
- const query = wx.createSelectorQuery().in(this);
- let limitMovePosition = 0;
- actions.forEach(item => {
- limitMovePosition += item.width || 0;
- });
- this.data.limitMove = limitMovePosition;
- /*
- * 动态获取每个传进值的按钮尺寸不能正确获取,在安卓上少了6px
- * 暂时实现需要在actions里面传递宽度
- * 需要后期调研
- */
- //query.selectAll('.i-swipeout-button-right-item').boundingClientRect((rects)=>{
- // if( rects ){
- // rects.forEach(item => {
- // limitMovePosition += item.width;
- // });
- // this.data.limitMove = limitMovePosition;
- // }
- // }).exec()
- }else{
- this.data.limitMove = this.data.operateWidth;
-
- }
- },
- handlerTouchstart(event){
- const touches = event.touches ? event.touches[0] : {};
- const tStart = this.data.tStart;
- if( touches ){
- for( let i in tStart ){
- if( touches[i] ){
- tStart[i] = touches[i];
- }
- }
- }
- },
- swipper(touches){
- const data = this.data;
- const start = data.tStart;
- const spacing = {
- pageX : touches.pageX - start.pageX,
- pageY : touches.pageY - start.pageY
- }
- if( data.limitMove < Math.abs( spacing.pageX ) ){
- spacing.pageX = -data.limitMove;
-
- }
- this.setData({
- 'position' : spacing
- })
- },
- handlerTouchmove(event){
- const start = this.data.tStart;
- const touches = event.touches ? event.touches[0] : {};
- if( touches ){
- const direction = swipeDirection( start.pageX,touches.pageX,start.pageY,touches.pageY );
- if( direction === 'Left' ){
- this.swipper( touches );
- }
- }
- },
- handlerTouchend(event){
- const start = this.data.tStart;
- const touches = event.changedTouches ? event.changedTouches[0] : {};
- if( touches ){
- const direction = swipeDirection( start.pageX,touches.pageX,start.pageY,touches.pageY );
- const spacing = {
- pageX : touches.pageX - start.pageX,
- pageY : touches.pageY - start.pageY
- }
- if( Math.abs( spacing.pageX ) >= 40 && direction === "Left" ){
- spacing.pageX = spacing.pageX < 0 ? - this.data.limitMove : this.data.limitMove;
- }else{
- spacing.pageX = 0;
- }
- this.setData({
- 'position' : spacing
- })
- }
- },
- handlerButton(event){
- if( !this.data.unclosable ){
- this.closeButtonGroup();
- }
- const dataset = event.currentTarget.dataset;
- this.triggerEvent('change',{
- index : dataset.index
- })
- },
- closeButtonGroup(){
- this.setData({
- 'position' : {pageX : 0,pageY : 0}
- })
- },
- //控制自定义组件
- handlerParentButton(event){
- if( !this.data.unclosable ){
- this.closeButtonGroup();
- }
- }
- },
- ready(){
- this._updateButtonSize();
- }
-});
diff --git a/dist/swipeout/index.json b/dist/swipeout/index.json
deleted file mode 100644
index c63f9a6..0000000
--- a/dist/swipeout/index.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "component": true,
- "usingComponents": {
- "i-cell": "../cell/index",
- "i-icon": "../icon/index"
- }
-}
\ No newline at end of file
diff --git a/dist/swipeout/index.wxml b/dist/swipeout/index.wxml
deleted file mode 100644
index f588015..0000000
--- a/dist/swipeout/index.wxml
+++ /dev/null
@@ -1,39 +0,0 @@
-
-
-
-
-
-
-
-
-
- {{item.name}}
-
-
-
-
-
-
-
-
- module.exports = {
- setStyle : function( item ){
- var defaults = '#f7f7f7';
- return 'background:' + ( item.background ? item.background : defaults ) +';' + 'color:'+ item.color;
- },
- setPosition : function( position ){
- return 'transform:translate(' + position.pageX + 'px,0);';
- }
- }
-
\ No newline at end of file
diff --git a/dist/swipeout/index.wxss b/dist/swipeout/index.wxss
deleted file mode 100644
index 597cffc..0000000
--- a/dist/swipeout/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-.i-swipeout-wrap{border-bottom:#dddee1 solid 1px;background:#fff;position:relative;overflow:hidden}.i-swipeout-item{width:100%;padding:15px 20px;box-sizing:border-box;transition:transform .2s ease;font-size:14px}.i-swipeout-content{white-space:nowrap;overflow:hidden}.i-swipeout-button-right-group{position:absolute;right:-100%;top:0;height:100%;z-index:1;width:100%}.i-swipeout-button-right-item{height:100%;float:left;white-space:nowrap;box-sizing:border-box;display:flex;align-items:center;justify-content:center}
\ No newline at end of file
diff --git a/dist/switch/index.js b/dist/switch/index.js
deleted file mode 100644
index 5ebccfa..0000000
--- a/dist/switch/index.js
+++ /dev/null
@@ -1,38 +0,0 @@
-Component({
- externalClasses: ['i-class'],
- properties : {
- value : {
- type : Boolean,
- value : false
- },
- //large small default
- size : {
- type : String,
- value : 'default'
- },
- // is or not disable
- disabled : {
- type : Boolean,
- value : false
- },
- // hidden inut name
- name : {
- type : String,
- value : ''
- }
- },
- options: {
- // 在组件定义时的选项中启用多slot支持
- multipleSlots: true
- },
- methods : {
- toggle(){
- if( this.data.disabled ) return;
- const data = this.data;
- const value = data.value ? false : true;
- this.triggerEvent('change',{
- value : value
- })
- }
- }
-});
diff --git a/dist/switch/index.json b/dist/switch/index.json
deleted file mode 100644
index 467ce29..0000000
--- a/dist/switch/index.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "component": true
-}
diff --git a/dist/switch/index.wxml b/dist/switch/index.wxml
deleted file mode 100644
index a180254..0000000
--- a/dist/switch/index.wxml
+++ /dev/null
@@ -1,26 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-var sizes = ['large', 'default'];
-var prefixCls = 'i-switch';
-module.exports = {
- setSize : function( size ){
- var index = sizes.indexOf( size );
- return prefixCls + ( index > -1 ? ( '-'+size ) : 'default' )
- },
- setCurrent : function( value,disabled ){
- var className = value && !disabled ? prefixCls + '-checked' : '';
- if( disabled ){
- className += ' ' + prefixCls + '-disabled';
- }
- return className;
- }
-}
-
\ No newline at end of file
diff --git a/dist/switch/index.wxss b/dist/switch/index.wxss
deleted file mode 100644
index 128fea6..0000000
--- a/dist/switch/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-.i-switch{display:inline-block;width:48px;height:24px;line-height:24px;border-radius:24px;vertical-align:middle;border:1px solid #ccc;background-color:#ccc;position:relative;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:all .2s ease-in-out}.i-switch-hide-input{display:none;opacity:0}.i-switch-inner{color:#fff;font-size:12px;position:absolute;left:25px;vertical-align:middle}.i-switch-inner .i-icon{width:12px;height:12px;text-align:center;vertical-align:middle}.i-switch:after{content:'';width:22px;height:22px;border-radius:22px;background-color:#fff;position:absolute;left:1px;top:1px;cursor:pointer;transition:left .2s ease-in-out,width .2s ease-in-out}.i-switch-checked:after{left:8px}.i-switch-large{width:60px}.i-switch-large.i-switch-checked:after{left:37px}.i-switch-checked:after{left:25px}.i-switch-checked{border-color:#2d8cf0;background-color:#2d8cf0}.i-switch-checked .i-switch-inner{left:8px}.i-switch-checked:after{left:25px}.i-switch-disabled{background:#f3f3f3;border-color:#f3f3f3}.i-switch-disabled:after{background:#ccc;cursor:not-allowed}.i-switch-disabled .i-switch-inner{color:#ccc}
\ No newline at end of file
diff --git a/dist/tag/index.js b/dist/tag/index.js
deleted file mode 100644
index 338440a..0000000
--- a/dist/tag/index.js
+++ /dev/null
@@ -1,42 +0,0 @@
-Component({
- externalClasses: ['i-class'],
- properties : {
- //slot name
- name : {
- type : String,
- value : ''
- },
- //can click or not click
- checkable : {
- type : Boolean,
- value : false
- },
- //is current choose
- checked : {
- type : Boolean,
- value : true
- },
- //background and color setting
- color : {
- type : String,
- value : 'default'
- },
- //control fill or not
- type : {
- type : String,
- value : 'dot'
- }
- },
- methods : {
- tapTag(){
- const data = this.data;
- if( data.checkable ){
- const checked = data.checked ? false : true;
- this.triggerEvent('change',{
- name : data.name || '',
- checked : checked
- });
- }
- }
- }
-})
\ No newline at end of file
diff --git a/dist/tag/index.json b/dist/tag/index.json
deleted file mode 100644
index 1dd6c7f..0000000
--- a/dist/tag/index.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "component" : true
-}
\ No newline at end of file
diff --git a/dist/tag/index.wxml b/dist/tag/index.wxml
deleted file mode 100644
index ed2c675..0000000
--- a/dist/tag/index.wxml
+++ /dev/null
@@ -1,27 +0,0 @@
-
-
-
-
-module.exports = {
- getClass : function(color,type,checked,checkable) {
- var initColorList = ['blue', 'green', 'red', 'yellow', 'default'];
- var theme = '';
- var className = 'i-tag-';
- if( initColorList.indexOf( color ) > -1 ){
- theme = className + color;
- }
- if( type === 'border' ){
- theme = className+color+'-border';
- }
- if( checkable && checked ){
- theme = className+color+'-checked';
- }else if( checkable && !checked ){
- theme = ( type === 'border' ? className + color +'-border' : className+'none' );
- }
-
- return theme;
- }
-}
-
\ No newline at end of file
diff --git a/dist/tag/index.wxss b/dist/tag/index.wxss
deleted file mode 100644
index e19f976..0000000
--- a/dist/tag/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-.i-tag{display:inline-block;height:18px;line-height:18px;padding:0 4px;border-radius:2px;background:#fff;font-size:11px;vertical-align:middle;border:1rpx solid #dddee1}.i-tag-none{border-color:#fff}.i-tag-default{border-color:#dddee1;background:#e9eaec}.i-tag-red{background:#ed3f14;color:#fff}.i-tag-red-border{color:#ed3f14;background:#fff;border-color:#ed3f14}.i-tag-red-checked{background:#ed3f14;color:#fff;border-color:#ed3f14}.i-tag-green{background:#19be6b;color:#fff;border-color:#19be6b}.i-tag-green-border{color:#19be6b;background:#fff;border-color:#19be6b}.i-tag-green-checked{background:#19be6b;color:#fff;border-color:#19be6b}.i-tag-blue{background:#2d8cf0;color:#fff;border-color:#2d8cf0}.i-tag-blue-border{color:#2d8cf0;background:#fff;border-color:#2d8cf0}.i-tag-blue-checked{background:#2d8cf0;color:#fff;border-color:#2d8cf0}.i-tag-yellow{background:#f90;color:#fff;border-color:#f90}.i-tag-yellow-border{color:#f90;background:#fff;border-color:#f90}.i-tag-yellow-checked{background:#f90;color:#fff;border-color:#f90}.i-tag-default-checked{background:#e9eaec;color:#495060;border-color:#e9eaec}
\ No newline at end of file
diff --git a/dist/toast/index.js b/dist/toast/index.js
deleted file mode 100644
index 6493111..0000000
--- a/dist/toast/index.js
+++ /dev/null
@@ -1,48 +0,0 @@
-const default_data = {
- visible: false,
- content: '',
- icon: '',
- image: '',
- duration: 2,
- mask: true,
- type: 'default', // default || success || warning || error || loading
-};
-
-let timmer = null;
-
-Component({
- externalClasses: ['i-class'],
-
- data: {
- ...default_data
- },
-
- methods: {
- handleShow (options) {
- const { type = 'default', duration = 2 } = options;
-
- this.setData({
- ...options,
- type,
- duration,
- visible: true
- });
-
- const d = this.data.duration * 1000;
-
- if (timmer) clearTimeout(timmer);
- if (d !== 0) {
- timmer = setTimeout(() => {
- this.handleHide();
- timmer = null;
- }, d);
- }
- },
-
- handleHide () {
- this.setData({
- ...default_data
- });
- }
- }
-});
diff --git a/dist/toast/index.json b/dist/toast/index.json
deleted file mode 100644
index 31309b1..0000000
--- a/dist/toast/index.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "component": true,
- "usingComponents":
- {
- "i-icon": "../icon/index"
- }
-}
diff --git a/dist/toast/index.wxml b/dist/toast/index.wxml
deleted file mode 100644
index ca5f732..0000000
--- a/dist/toast/index.wxml
+++ /dev/null
@@ -1,16 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ content }}
-
\ No newline at end of file
diff --git a/dist/toast/index.wxss b/dist/toast/index.wxss
deleted file mode 100644
index 5b3bd7f..0000000
--- a/dist/toast/index.wxss
+++ /dev/null
@@ -1 +0,0 @@
-.i-toast{position:fixed;top:35%;left:50%;transform:translate3d(-50%,-50%,0);background:rgba(0,0,0,.7);color:#fff;font-size:14px;line-height:1.5em;margin:0 auto;box-sizing:border-box;padding:10px 18px;text-align:center;border-radius:4px;z-index:1010}.i-toast-mask{position:fixed;top:0;bottom:0;left:0;right:0;z-index:1010}.i-toast-icon{font-size:38px!important;margin-bottom:6px}.i-toast-image{max-width:100px;max-height:100px}.i-toast-loading{display:inline-block;vertical-align:middle;width:28px;height:28px;background:0 0;border-radius:50%;border:2px solid #fff;border-color:#fff #fff #fff #2d8cf0;animation:btn-spin .8s linear;animation-iteration-count:infinite}@keyframes btn-spin{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}
\ No newline at end of file
diff --git a/pages/addPark/addPark.js b/pages/addPark/addPark.js
index 3bd8afd..74f886e 100644
--- a/pages/addPark/addPark.js
+++ b/pages/addPark/addPark.js
@@ -1,11 +1,14 @@
// pages/park/addPark/addPark.js
const app = getApp();
+const imgurl = require("../../utils/imgurl");
Page({
/**
* 页面的初始数据
*/
data: {
+ shanchuGrayUrl: imgurl.shanchuGray.url,
+ shanchuUrl: imgurl.shanchu.url,
title: '京',
numFir: '',
numSco: '',
diff --git a/pages/addPark/addPark.wxml b/pages/addPark/addPark.wxml
index b580b13..9068a87 100644
--- a/pages/addPark/addPark.wxml
+++ b/pages/addPark/addPark.wxml
@@ -20,7 +20,7 @@
-
+
{{item}}
@@ -30,7 +30,7 @@
-
+
{{item}}
{{item}}
@@ -41,7 +41,7 @@
-
+
{{item}}
{{item}}
@@ -53,7 +53,7 @@
-
+
{{item}}
{{item}}
diff --git a/pages/cardListDetail/cardListDetail.js b/pages/cardListDetail/cardListDetail.js
index 948d471..9ed624a 100644
--- a/pages/cardListDetail/cardListDetail.js
+++ b/pages/cardListDetail/cardListDetail.js
@@ -2,9 +2,12 @@ var config = require("../../config/config.js");
var app = getApp();
const Http = require("../../utils/HttpBasics");
const util = require("../../utils/util");
-
+const imgurl = require("../../utils/imgurl");
Page({
data: {
+ fenxiangUrl: imgurl.fenxiang.url,
+ clockUrl: imgurl.clock.url,
+ teljpgUrl: imgurl.teljpg.url,
data: {
title: null
},
@@ -340,56 +343,56 @@ Page({
if (err.code == "2011") {
wx.showToast({
title: "商户信息没找到",
- image: "./../../../assets/img/fail.png",
+ image: imgurl.fail.url,
duration: 2000,
mask: false
});
} else if (err.code == "2013") {
wx.showToast({
title: "商户信息禁用",
- image: "./../../../assets/img/fail.png",
+ image: imgurl.fail.url,
duration: 2000,
mask: false
});
} else if (err.code == "3000") {
wx.showToast({
title: "库存不足",
- image: "./../../../assets/img/fail.png",
+ image: imgurl.fail.url,
duration: 2000,
mask: false
});
} else if (err.code == "3001") {
wx.showToast({
title: "领取达到上限",
- image: "./../../../assets/img/fail.png",
+ image: imgurl.fail.url,
duration: 2000,
mask: false
});
} else if (err.code == "3002") {
wx.showToast({
title: "订单失败",
- image: "./../../../assets/img/fail.png",
+ image: imgurl.fail.url,
duration: 2000,
mask: false
});
} else if (err.code == "3003") {
wx.showToast({
title: "订单不存在",
- image: "./../../../assets/img/fail.png",
+ image: imgurl.fail.url,
duration: 2000,
mask: false
});
} else if (err.code == "3004") {
wx.showToast({
title: "订单不存在",
- image: "./../../../assets/img/fail.png",
+ image: imgurl.fail.url,
duration: 2000,
mask: false
});
} else if (err.code == "4003") {
wx.showToast({
title: "卡券已作废",
- image: "./../../../assets/img/fail.png",
+ image: imgurl.fail.url,
duration: 2000,
mask: false
});
diff --git a/pages/cardListDetail/cardListDetail.wxml b/pages/cardListDetail/cardListDetail.wxml
index 9bc7994..967030a 100644
--- a/pages/cardListDetail/cardListDetail.wxml
+++ b/pages/cardListDetail/cardListDetail.wxml
@@ -7,13 +7,13 @@
-
+
-
+
距结束还剩 :
@@ -67,7 +67,7 @@
{{item.merchantName}}
{{item.addr}}{{item.buildingName}}{{item.floorName}}
-
+
diff --git a/pages/cardorder/detail/index.js b/pages/cardorder/detail/index.js
index 18d5fb3..f531a2b 100644
--- a/pages/cardorder/detail/index.js
+++ b/pages/cardorder/detail/index.js
@@ -1,11 +1,18 @@
const util = require("../../../utils/util");
const config = require("../../../config/config.js");
const Http = require("../../../utils/HttpBasics");
+const imgurl = require("../../../utils/imgurl");
let app = getApp();
//券详情页面
Page({
data: {
code: "",
+ lineUrl: imgurl.line.url,
+ wm01Url: imgurl.wm01.url,
+ wm02Url: imgurl.wm02.url,
+ wm03Url: imgurl.wm03.url,
+ teljpgUrl: imgurl.teljpg.url,
+ newUrl: imgurl.new.url,
data: {
salePrice: null,
price: null,
diff --git a/pages/cardorder/detail/index.wxml b/pages/cardorder/detail/index.wxml
index 4c97d78..3914dde 100644
--- a/pages/cardorder/detail/index.wxml
+++ b/pages/cardorder/detail/index.wxml
@@ -18,11 +18,11 @@
有效期至:
{{expiredTime}}
-
+
-
-
-
+
+
+
@@ -49,13 +49,13 @@
{{item.addr}}{{item.buildingName}}{{item.floorName}}
-
+
-
+
实付金额:
@@ -95,6 +95,6 @@
-
+
\ No newline at end of file
diff --git a/pages/cardorder/index/index.js b/pages/cardorder/index/index.js
index bec153e..af260e9 100644
--- a/pages/cardorder/index/index.js
+++ b/pages/cardorder/index/index.js
@@ -2,8 +2,12 @@ const util = require("../../../utils/util.js");
const config = require("../../../config/config.js");
const Http = require("../../../utils/HttpBasics");
let app = getApp();
+const imgurl = require("../../../utils/imgurl");
Page({
data: {
+ couponUrl: imgurl.coupon.url,
+ linessUrl: imgurl.liness.url,
+ loadingUrl: imgurl.loading.url,
tabs: [{
key: 4,
name: "使用中"
diff --git a/pages/cardorder/index/index.wxml b/pages/cardorder/index/index.wxml
index c7b80b5..b1cb034 100644
--- a/pages/cardorder/index/index.wxml
+++ b/pages/cardorder/index/index.wxml
@@ -5,7 +5,7 @@
-
+
请您敬请期待
我们正在筹备一大波优惠活动
@@ -30,7 +30,7 @@
已失效
-
+
有效期至:
{{item.expiredTime}}
@@ -38,7 +38,7 @@
- {{content}}
+ {{content}}
\ No newline at end of file
diff --git a/pages/cartest/cartest.js b/pages/cartest/cartest.js
index d74b03a..a9d7c63 100644
--- a/pages/cartest/cartest.js
+++ b/pages/cartest/cartest.js
@@ -1,11 +1,12 @@
// pages/cartest/cartest.js
+const imgurl = require("../../utils/imgurl");
Page({
/**
* 页面的初始数据
*/
data: {
-
+ qidaiUrl: imgurl.qidai.url,
},
/**
diff --git a/pages/cartest/cartest.wxml b/pages/cartest/cartest.wxml
index d50ad19..0fa3972 100644
--- a/pages/cartest/cartest.wxml
+++ b/pages/cartest/cartest.wxml
@@ -1,5 +1,5 @@
-
+
智慧停车即将上线
敬请期待
\ No newline at end of file
diff --git a/pages/coupon/detail/index.js b/pages/coupon/detail/index.js
index 781f8c7..d43db10 100644
--- a/pages/coupon/detail/index.js
+++ b/pages/coupon/detail/index.js
@@ -2,9 +2,16 @@ var config = require("../../../config/config.js");
var app = getApp();
const Http = require("../../../utils/HttpBasics");
const util = require("../../../utils/util");
-
+const imgurl = require("../../../utils/imgurl");
Page({
data: {
+ fenxiangUrl:imgurl.fenxiang.url,
+ clockUrl:imgurl.clock.url,
+ teljpgUrl:imgurl.teljpg.url,
+ closedUrl:imgurl.closed.url,
+ quesGouUrl:imgurl.ques_gou.url,
+ headbgUrl:imgurl.headbg.url,
+ quesBgUrl:imgurl.ques_bg.url,
data: {
title: null
},
@@ -347,56 +354,56 @@ Page({
if (err.code == "2011") {
wx.showToast({
title: "商户信息没找到",
- image: "./../../../assets/img/fail.png",
+ image:imgurl.fail.url,
duration: 2000,
mask: false
});
} else if (err.code == "2013") {
wx.showToast({
title: "商户信息禁用",
- image: "./../../../assets/img/fail.png",
+ image:imgurl.fail.url,
duration: 2000,
mask: false
});
} else if (err.code == "3000") {
wx.showToast({
title: "库存不足",
- image: "./../../../assets/img/fail.png",
+ image:imgurl.fail.url,
duration: 2000,
mask: false
});
} else if (err.code == "3001") {
wx.showToast({
title: "领取达到上限",
- image: "./../../../assets/img/fail.png",
+ image:imgurl.fail.url,
duration: 2000,
mask: false
});
} else if (err.code == "3002") {
wx.showToast({
title: "订单失败",
- image: "./../../../assets/img/fail.png",
+ image:imgurl.fail.url,
duration: 2000,
mask: false
});
} else if (err.code == "3003") {
wx.showToast({
title: "订单不存在",
- image: "./../../../assets/img/fail.png",
+ image:imgurl.fail.url,
duration: 2000,
mask: false
});
} else if (err.code == "3004") {
wx.showToast({
title: "订单不存在",
- image: "./../../../assets/img/fail.png",
+ image:imgurl.fail.url,
duration: 2000,
mask: false
});
} else if (err.code == "4003") {
wx.showToast({
title: "卡券已作废",
- image: "./../../../assets/img/fail.png",
+ image:imgurl.fail.url,
duration: 2000,
mask: false
});
diff --git a/pages/coupon/detail/index.wxml b/pages/coupon/detail/index.wxml
index 9c40712..6a6fdf0 100644
--- a/pages/coupon/detail/index.wxml
+++ b/pages/coupon/detail/index.wxml
@@ -7,13 +7,13 @@
-
+
-
+
距结束还剩 :
@@ -67,7 +67,7 @@
{{item.merchantName}}
{{item.addr}}{{item.buildingName}}{{item.floorName}}
-
+
@@ -94,10 +94,10 @@
-
-
-
-
+
+
+
+
{{questionnaire.title}}
diff --git a/pages/couponorder/detail/index.js b/pages/couponorder/detail/index.js
index 18d5fb3..beebc49 100644
--- a/pages/couponorder/detail/index.js
+++ b/pages/couponorder/detail/index.js
@@ -2,10 +2,17 @@ const util = require("../../../utils/util");
const config = require("../../../config/config.js");
const Http = require("../../../utils/HttpBasics");
let app = getApp();
+const imgurl = require("../../../utils/imgurl");
//券详情页面
Page({
data: {
code: "",
+ lineUrl: imgurl.line.url,
+ wm01Url: imgurl.wm01.url,
+ wm02Url: imgurl.wm02.url,
+ wm03Url: imgurl.wm03.url,
+ teljpgUrl: imgurl.teljpg.url,
+ newUrl: imgurl.new.url,
data: {
salePrice: null,
price: null,
diff --git a/pages/couponorder/detail/index.wxml b/pages/couponorder/detail/index.wxml
index 4c97d78..a9665af 100644
--- a/pages/couponorder/detail/index.wxml
+++ b/pages/couponorder/detail/index.wxml
@@ -18,11 +18,11 @@
有效期至:
{{expiredTime}}
-
+
-
-
-
+
+
+
@@ -49,13 +49,13 @@
{{item.addr}}{{item.buildingName}}{{item.floorName}}
-
+
-
+
实付金额:
@@ -95,6 +95,6 @@
-
+
\ No newline at end of file
diff --git a/pages/couponorder/index/index.js b/pages/couponorder/index/index.js
index 08ccbaa..4e17940 100644
--- a/pages/couponorder/index/index.js
+++ b/pages/couponorder/index/index.js
@@ -1,9 +1,13 @@
const util = require("../../../utils/util.js");
const config = require("../../../config/config.js");
const Http = require("../../../utils/HttpBasics");
+const imgurl = require("../../../utils/imgurl");
let app = getApp();
Page({
data: {
+ couponUrl: imgurl.coupon.url,
+ linessUrl: imgurl.liness.url,
+ loadingUrl: imgurl.loading.url,
tabs: [{
key: 0,
name: "未使用"
diff --git a/pages/couponorder/index/index.wxml b/pages/couponorder/index/index.wxml
index 15ef3f7..e7358bb 100644
--- a/pages/couponorder/index/index.wxml
+++ b/pages/couponorder/index/index.wxml
@@ -5,7 +5,7 @@
-
+
请您敬请期待
我们正在筹备一大波优惠活动
@@ -30,7 +30,7 @@
查看
-
+
有效期至:
{{item.expiredTime}}
@@ -38,7 +38,7 @@
- {{content}}
+ {{content}}
\ No newline at end of file
diff --git a/pages/discountCardList/discountCardList.js b/pages/discountCardList/discountCardList.js
index a783e76..3203596 100644
--- a/pages/discountCardList/discountCardList.js
+++ b/pages/discountCardList/discountCardList.js
@@ -1,9 +1,12 @@
const util = require("../../utils/util.js");
const config = require("../../config/config.js");
const Http = require("../../utils/HttpBasics");
+const imgurl = require("../../utils/imgurl");
let app = getApp();
Page({
data: {
+ couponUrl: imgurl.coupon.url,
+ loadingUrl: imgurl.loading.url,
tabs: [],
list: [],
current: "0",
diff --git a/pages/discountCardList/discountCardList.wxml b/pages/discountCardList/discountCardList.wxml
index 4c8e352..54f0f06 100644
--- a/pages/discountCardList/discountCardList.wxml
+++ b/pages/discountCardList/discountCardList.wxml
@@ -6,7 +6,7 @@
-
+
请您敬请期待
我们正在筹备一大波优惠活动
@@ -27,6 +27,6 @@
- {{content}}
+ {{content}}
\ No newline at end of file
diff --git a/pages/freeBannerDetail/index.js b/pages/freeBannerDetail/index.js
index add10a2..45a5895 100644
--- a/pages/freeBannerDetail/index.js
+++ b/pages/freeBannerDetail/index.js
@@ -30,10 +30,6 @@ Page({
*/
onReady: function () {
- },
- bindLad: function(){
- console.log(11212122)
- debugger
},
/**
* 生命周期函数--监听页面显示
diff --git a/pages/freeBannerDetail/index.wxml b/pages/freeBannerDetail/index.wxml
index 3c6a01c..5e873bb 100644
--- a/pages/freeBannerDetail/index.wxml
+++ b/pages/freeBannerDetail/index.wxml
@@ -1 +1 @@
-
+
diff --git a/pages/game/index.wxml b/pages/game/index.wxml
index 68dceb6..9f2ecf2 100644
--- a/pages/game/index.wxml
+++ b/pages/game/index.wxml
@@ -1,2 +1 @@
-
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/pages/grade/grade.js b/pages/grade/grade.js
index fb53dd8..c2753bf 100644
--- a/pages/grade/grade.js
+++ b/pages/grade/grade.js
@@ -1,13 +1,20 @@
const Http = require("../../utils/HttpBasics");
const config = require("../../config/config");
let app = getApp();
+const imgurl = require("../../utils/imgurl");
Page({
/**
* 页面的初始数据
*/
data: {
- src:'./../../../assets/img/grade.png'
+ src: imgurl.grade.url,
+ actUrl: imgurl.act.url,
+ gradeUrl: imgurl.grade.url,
+ grade1Url: imgurl.grade1.url,
+ grade2Url: imgurl.grade2.url,
+ grade3Url: imgurl.grade3.url,
+ growthbgUrl: imgurl.growthbg.url,
},
/**
diff --git a/pages/grade/grade.wxml b/pages/grade/grade.wxml
index 632c22e..7362c67 100644
--- a/pages/grade/grade.wxml
+++ b/pages/grade/grade.wxml
@@ -16,11 +16,11 @@
-
-
-
-
-
+
+
+
+
+
{{item.level}}
{{item.points}}成长值
@@ -37,9 +37,9 @@
-
+
暂无配置信息
-
+
\ No newline at end of file
diff --git a/pages/index/coupons/index.js b/pages/index/coupons/index.js
index 4bc7201..cdd309a 100644
--- a/pages/index/coupons/index.js
+++ b/pages/index/coupons/index.js
@@ -2,6 +2,7 @@
let config = require("../../../config/config.js");
let Http = require("../../../utils/HttpBasics");
let app = getApp();
+const imgurl = require("../../../utils/imgurl");
// 请求数据
Component({
/**
@@ -22,6 +23,8 @@ Component({
* 组件的初始数据
*/
data: {
+ actUrl: imgurl.act.url,
+ loadingUrl: imgurl.loading.url,
tabs: [],
list: [],
flag: "",
diff --git a/pages/index/coupons/index.wxml b/pages/index/coupons/index.wxml
index c13001a..8fa4f32 100644
--- a/pages/index/coupons/index.wxml
+++ b/pages/index/coupons/index.wxml
@@ -4,10 +4,10 @@
-
+
请您敬请期待
我们正在筹备一大波优惠活动
- {{content}}
+ {{content}}
{{loadingtext}}
\ No newline at end of file
diff --git a/pages/index/index.js b/pages/index/index.js
index daa3c6c..8c11df4 100644
--- a/pages/index/index.js
+++ b/pages/index/index.js
@@ -1,9 +1,11 @@
const Http = require("../../utils/HttpBasics");
+const imgurl = require("../../utils/imgurl");
const config = require("../../config/config");
let app = getApp();
Page({
data: {
+ newUrl: imgurl.new.url,
market: app.globalData.market,
list: [],
loading: true,
@@ -75,6 +77,7 @@ Page({
* 生命周期函数--监听页面初次渲染完成
*/
onLoad: function (options) {
+ wx.setStorageSync('imgurl', imgurl)
if (options.played == "true") {
this.setData({
played: true
diff --git a/pages/index/index.wxml b/pages/index/index.wxml
index 37cfcef..6d0ac54 100644
--- a/pages/index/index.wxml
+++ b/pages/index/index.wxml
@@ -7,7 +7,7 @@
-
+
diff --git a/pages/index/rushToBuy/index.js b/pages/index/rushToBuy/index.js
index e5d7926..ca51a95 100644
--- a/pages/index/rushToBuy/index.js
+++ b/pages/index/rushToBuy/index.js
@@ -3,6 +3,7 @@ let config = require("../../../config/config.js");
let Http = require("../../../utils/HttpBasics");
// let Http = require("../../../utils/HttpBasics");
const app = getApp();
+const imgurl = require("../../../utils/imgurl");
Component({
/**
* 组件的属性列表
@@ -13,6 +14,7 @@ Component({
* 组件的初始数据
*/
data: {
+ jianUrl: imgurl.jian.url,
list: [],
total:''
},
diff --git a/pages/index/rushToBuy/index.wxml b/pages/index/rushToBuy/index.wxml
index b36c8da..84bd708 100644
--- a/pages/index/rushToBuy/index.wxml
+++ b/pages/index/rushToBuy/index.wxml
@@ -1,5 +1,5 @@
- 限时抢购查看全部
+ 限时抢购查看全部
diff --git a/pages/managelicenseplate/managelicenseplate.js b/pages/managelicenseplate/managelicenseplate.js
index dbbf948..d61eba7 100644
--- a/pages/managelicenseplate/managelicenseplate.js
+++ b/pages/managelicenseplate/managelicenseplate.js
@@ -1,11 +1,13 @@
let config = require("../../config/config.js");
let Http = require("../../utils/HttpBasics");
let app = getApp();
+const imgurl = require("../../utils/imgurl");
Page({
/**
* 页面的初始数据
*/
data: {
+ addUrl: imgurl.add.url,
carList: []
},
initUsrCarList: function() {
diff --git a/pages/managelicenseplate/managelicenseplate.wxml b/pages/managelicenseplate/managelicenseplate.wxml
index 2e5a078..93be7f9 100644
--- a/pages/managelicenseplate/managelicenseplate.wxml
+++ b/pages/managelicenseplate/managelicenseplate.wxml
@@ -18,6 +18,6 @@
- 我的爱车
+ 我的爱车
车辆入场后,才能绑车牌
\ No newline at end of file
diff --git a/pages/order/detail/index.js b/pages/order/detail/index.js
index d577d36..39a091c 100644
--- a/pages/order/detail/index.js
+++ b/pages/order/detail/index.js
@@ -2,11 +2,16 @@ let config = require("../../../config/config.js");
let util = require("../../../utils/util");
let Http = require("../../../utils/HttpBasics");
let app = getApp();
+const imgurl = require("../../../utils/imgurl");
Page({
/**
* 页面的初始数据
*/
data: {
+ succUrl: imgurl.succ.url,
+ spcodeUrl: imgurl.spcode.url,
+ teljpgUrl: imgurl.teljpg.url,
+ newUrl: imgurl.new.url,
showModalStatus: false,
flag: 0,
order: null,
@@ -177,7 +182,7 @@ Page({
wx.showToast({
title: "支付成功",
duration: 2000,
- image: "./../../../assets/img/success.png",
+ image: imgurl.success.url,
});
}
},
@@ -201,7 +206,7 @@ Page({
wx.showToast({
title: "购买成功",
duration: 2000,
- image: "./../../../assets/img/success.png",
+ image: imgurl.success.url,
mask: false,
success: function () {
wx.showLoading({
diff --git a/pages/order/detail/index.wxml b/pages/order/detail/index.wxml
index 38755fc..fcdf3d2 100644
--- a/pages/order/detail/index.wxml
+++ b/pages/order/detail/index.wxml
@@ -1,6 +1,6 @@
-
+
领取成功,请尽快到门店使用
付款成功,请尽快到门店使用
@@ -46,7 +46,7 @@
{{order.couponOrderId}}
-
+
@@ -70,7 +70,7 @@
适用门店列表
- {{item.merchantName}} {{item.buildingName}}{{item.floorName}}
+ {{item.merchantName}} {{item.buildingName}}{{item.floorName}}
@@ -79,7 +79,7 @@
-
+
\ No newline at end of file
diff --git a/pages/order/index/index.js b/pages/order/index/index.js
index a26fcd7..e94b7f2 100644
--- a/pages/order/index/index.js
+++ b/pages/order/index/index.js
@@ -2,9 +2,11 @@ let config = require("../../../config/config.js");
let Http = require("../../../utils/HttpBasics");
const util = require("../../../utils/util");
let app = getApp();
-
+const imgurl = require("../../../utils/imgurl");
Page({
data: {
+ dingdanUrl: imgurl.dingdan.url,
+ loadingUrl: imgurl.loading.url,
tabs: [{
key: "all",
name: "全部"
diff --git a/pages/order/index/index.wxml b/pages/order/index/index.wxml
index 8c52b17..862bf93 100644
--- a/pages/order/index/index.wxml
+++ b/pages/order/index/index.wxml
@@ -56,12 +56,12 @@
-
+
您还没有相关订单
再忙,也要记得买点什么犒赏自己~
- {{content}}
+ {{content}}
\ No newline at end of file
diff --git a/pages/orderquanma/index.js b/pages/orderquanma/index.js
index 90fd2a2..24a731b 100644
--- a/pages/orderquanma/index.js
+++ b/pages/orderquanma/index.js
@@ -2,8 +2,13 @@ let util = require("../../utils/util");
let Http = require("../../utils/HttpBasics");
let config = require("../../config/config.js");
let app = getApp();
+const imgurl = require("../../utils/imgurl");
Page({
data: {
+ lineUrl: imgurl.line.url,
+ wm01Url: imgurl.wm01.url,
+ wm02Url: imgurl.wm02.url,
+ wm03Url: imgurl.wm03.url,
code: "",
//存储计时器
setInter: "",
diff --git a/pages/orderquanma/index.wxml b/pages/orderquanma/index.wxml
index 4e58b98..55cff2b 100644
--- a/pages/orderquanma/index.wxml
+++ b/pages/orderquanma/index.wxml
@@ -1,7 +1,7 @@
{{title}}
{{subtitle}}
-
+
-
-
-
+
+
+
@@ -24,7 +24,7 @@
兑换码:{{code}}
-
+
购买须知:
diff --git a/pages/passCar/choicecoupon/choicecoupon.js b/pages/passCar/choicecoupon/choicecoupon.js
index f4524a9..b36d2e4 100644
--- a/pages/passCar/choicecoupon/choicecoupon.js
+++ b/pages/passCar/choicecoupon/choicecoupon.js
@@ -2,8 +2,13 @@ const format = require("../../../utils/util.js");
const config = require("../../../config/config.js");
const app = getApp();
const Http = require("../../../utils/HttpBasics");
+const imgurl = require("../../../utils/imgurl");
Page({
data: {
+ couponUrl:imgurl.coupon.url,
+ gouUrl:imgurl.gou.url,
+ linessUrl:imgurl.liness.url,
+ loadingUrl:imgurl.loading.url,
list: [],
current: "0",
current_scroll: "0",
diff --git a/pages/passCar/choicecoupon/choicecoupon.wxml b/pages/passCar/choicecoupon/choicecoupon.wxml
index dc0a363..8cd65ce 100644
--- a/pages/passCar/choicecoupon/choicecoupon.wxml
+++ b/pages/passCar/choicecoupon/choicecoupon.wxml
@@ -1,7 +1,7 @@
-
+
请您敬请期待
我们正在筹备一大波优惠活动
@@ -12,7 +12,7 @@
温馨提示:请离场前使用优惠券
-
+
@@ -27,7 +27,7 @@
-
+
有效期至:
{{item.expiredTime}}
@@ -36,7 +36,7 @@
- {{content}}
+ {{content}}
\ No newline at end of file
diff --git a/pages/passCar/couponList/couponList.js b/pages/passCar/couponList/couponList.js
index 5aaa087..9576037 100644
--- a/pages/passCar/couponList/couponList.js
+++ b/pages/passCar/couponList/couponList.js
@@ -2,8 +2,12 @@ const format = require("../../../utils/util.js");
const config = require("../../../config/config.js");
const app = getApp();
const Http = require("../../../utils/HttpBasics");
+const imgurl = require("../../../utils/imgurl");
Page({
data: {
+ couponUrl: imgurl.coupon.url,
+ linessUrl: imgurl.liness.url,
+ loadingUrl: imgurl.loading.url,
tabs: [
{
key: 0,
diff --git a/pages/passCar/couponList/couponList.wxml b/pages/passCar/couponList/couponList.wxml
index 6eca002..cb6d550 100644
--- a/pages/passCar/couponList/couponList.wxml
+++ b/pages/passCar/couponList/couponList.wxml
@@ -5,7 +5,7 @@
-
+
请您敬请期待
我们正在筹备一大波优惠活动
@@ -30,7 +30,7 @@
查看
-
+
有效期至:
{{item.expiredTime}}
@@ -38,7 +38,7 @@
- {{content}}
+ {{content}}
\ No newline at end of file
diff --git a/pages/passCar/passCar.js b/pages/passCar/passCar.js
index 1b89fed..813c94b 100644
--- a/pages/passCar/passCar.js
+++ b/pages/passCar/passCar.js
@@ -2,8 +2,16 @@ let config = require("../../config/config.js");
let Http = require("../../utils/HttpBasics");
let Util = require("../../utils/util");
let app = getApp();
+const imgurl = require("../../utils/imgurl");
Page({
data: {
+ parkUrl: imgurl.park.url,
+ jianUrl: imgurl.jian.url,
+ addUrl: imgurl.add.url,
+ quanUrl: imgurl.quan.url,
+ cheUrl: imgurl.che.url,
+ ruleUrl: imgurl.rule.url,
+ wentiUrl: imgurl.wenti.url,
park: null,
carList: [],
payList: [],
diff --git a/pages/passCar/passCar.wxml b/pages/passCar/passCar.wxml
index cc256b8..3d37832 100644
--- a/pages/passCar/passCar.wxml
+++ b/pages/passCar/passCar.wxml
@@ -1,7 +1,7 @@
- 我的爱车
+ 我的爱车
车辆入场后,才能绑车牌
-
+
我的停车券
-
+
-
+
车辆管理
-
+
-
+
缴费规则
-
+
-
+
常见问题
-
+
diff --git a/pages/rushToBuy/index.js b/pages/rushToBuy/index.js
index f3280a4..377cd7e 100644
--- a/pages/rushToBuy/index.js
+++ b/pages/rushToBuy/index.js
@@ -2,11 +2,14 @@ let config = require("../../config/config.js");
let Http = require("../../utils/HttpBasics");
const util = require("../../utils/util");
const app = getApp();
+const imgurl = require("../../utils/imgurl");
Page({
/**
* 页面的初始数据
*/
data: {
+ linesUrl: imgurl.lines.url,
+ loadingUrl: imgurl.loading.url,
list: [],
page: 1,
allow_load: true,
diff --git a/pages/rushToBuy/index.wxml b/pages/rushToBuy/index.wxml
index 3148eb6..18e96a6 100644
--- a/pages/rushToBuy/index.wxml
+++ b/pages/rushToBuy/index.wxml
@@ -16,7 +16,7 @@
-
+
距结束:
@@ -37,6 +37,6 @@
- {{content}}
+ {{content}}
\ No newline at end of file
diff --git a/pages/specialcourtesy/specialcourtesy.js b/pages/specialcourtesy/specialcourtesy.js
index 89032bb..b994563 100644
--- a/pages/specialcourtesy/specialcourtesy.js
+++ b/pages/specialcourtesy/specialcourtesy.js
@@ -1,12 +1,14 @@
var config = require("../../config/config.js");
var app = getApp();
const Http = require("../../utils/HttpBasics");
+const imgurl = require("../../utils/imgurl");
Page({
/**
* 页面的初始数据
*/
data: {
-
+ myspeacialUrl: imgurl.myspeacial.url,
+ teliconUrl: imgurl.telicon.url,
},
/**
diff --git a/pages/specialcourtesy/specialcourtesy.wxml b/pages/specialcourtesy/specialcourtesy.wxml
index 4d798aa..5d4f7f0 100644
--- a/pages/specialcourtesy/specialcourtesy.wxml
+++ b/pages/specialcourtesy/specialcourtesy.wxml
@@ -1,5 +1,5 @@
以下为商城会员对应门店的优惠折扣
@@ -16,7 +16,7 @@
diff --git a/pages/user/index.js b/pages/user/index.js
index 1df19af..6c98754 100644
--- a/pages/user/index.js
+++ b/pages/user/index.js
@@ -2,11 +2,22 @@ var config = require("../../config/config.js");
var app = getApp();
const Http = require("../../utils/HttpBasics");
const QR = require("../../utils/memberqrcode.js");
+const imgurl = require("../../utils/imgurl");
Page({
/**
* 页面的初始数据
*/
data: {
+ bannerUrl: imgurl.banner.url,
+ redirectUrl: imgurl.redirect.url,
+ qrcodeUrl: imgurl.qrcode.url,
+ editUrl: imgurl.edit.url,
+ activeUrl: imgurl.active.url,
+ dingUrl: imgurl.ding.url,
+ quansUrl: imgurl.quans.url,
+ cardiconUrl: imgurl.cardicon.url,
+ cheUrl: imgurl.che.url,
+ giftUrl: imgurl.gift.url,
canIUse: wx.canIUse('official-account'),
flag: 'hidden',
score:'0',
diff --git a/pages/user/index.wxml b/pages/user/index.wxml
index 72f980f..87c841b 100644
--- a/pages/user/index.wxml
+++ b/pages/user/index.wxml
@@ -1,6 +1,6 @@
-
+
@@ -10,25 +10,25 @@
{{levelName}}
成长值{{score}}
-
+
-
+
-
+
编辑
-
+
- 我的订单
+ 我的订单
查看全部
@@ -54,7 +54,7 @@
- 我的券包
+ 我的券包
@@ -64,7 +64,7 @@
- 我的卡包
+ 我的卡包
@@ -74,7 +74,7 @@
- 智能停车
+ 智能停车
@@ -84,7 +84,7 @@
- 特享礼遇
+ 特享礼遇
diff --git a/utils/imgurl.js b/utils/imgurl.js
new file mode 100644
index 0000000..e181e58
--- /dev/null
+++ b/utils/imgurl.js
@@ -0,0 +1,326 @@
+module.exports={
+ 'act':{
+ 'url':'https://s3.cn-northwest-1.amazonaws.com.cn/iformall-net/cimg/act.png',
+ 'name':''
+ },
+ 'active': {
+ 'url': 'https://s3.cn-northwest-1.amazonaws.com.cn/iformall-net/cimg/active.gif',
+ 'name': ''
+ },
+ 'add': {
+ 'url': 'https://s3.cn-northwest-1.amazonaws.com.cn/iformall-net/cimg/add.png',
+ 'name': ''
+ },
+ 'addr-white': {
+ 'url': 'https://s3.cn-northwest-1.amazonaws.com.cn/iformall-net/cimg/addr-white.png',
+ 'name': ''
+ },
+ 'addr': {
+ 'url': 'https://s3.cn-northwest-1.amazonaws.com.cn/iformall-net/cimg/addr.png',
+ 'name': ''
+ },
+ 'addresslogo': {
+ 'url': 'https://s3.cn-northwest-1.amazonaws.com.cn/iformall-net/cimg/addresslogo.png',
+ 'name': ''
+ },
+ 'alipay': {
+ 'url': 'https://s3.cn-northwest-1.amazonaws.com.cn/iformall-net/cimg/alipay.png',
+ 'name': ''
+ },
+ 'banner': {
+ 'url': 'https://s3.cn-northwest-1.amazonaws.com.cn/iformall-net/cimg/banner.png',
+ 'name': ''
+ },
+ 'bg': {
+ 'url': 'https://s3.cn-northwest-1.amazonaws.com.cn/iformall-net/cimg/bg.png',
+ 'name': ''
+ },
+ 'cardicon': {
+ 'url': 'https://s3.cn-northwest-1.amazonaws.com.cn/iformall-net/cimg/cardicon.png',
+ 'name': ''
+ },
+ 'che': {
+ 'url': 'https://s3.cn-northwest-1.amazonaws.com.cn/iformall-net/cimg/che.png',
+ 'name': ''
+ },
+ 'choice': {
+ 'url': 'https://s3.cn-northwest-1.amazonaws.com.cn/iformall-net/cimg/choice.png',
+ 'name': ''
+ },
+ 'choiced': {
+ 'url': 'https://s3.cn-northwest-1.amazonaws.com.cn/iformall-net/cimg/choiced.png',
+ 'name': ''
+ },
+ 'clock': {
+ 'url': 'https://s3.cn-northwest-1.amazonaws.com.cn/iformall-net/cimg/clock.png',
+ 'name': ''
+ },
+ 'closed': {
+ 'url': 'https://s3.cn-northwest-1.amazonaws.com.cn/iformall-net/cimg/closed.png',
+ 'name': ''
+ },
+ 'coupon': {
+ 'url': 'https://s3.cn-northwest-1.amazonaws.com.cn/iformall-net/cimg/coupon.png',
+ 'name': ''
+ },
+ 'ding': {
+ 'url': 'https://s3.cn-northwest-1.amazonaws.com.cn/iformall-net/cimg/ding.png',
+ 'name': ''
+ },
+ 'dingdan': {
+ 'url': 'https://s3.cn-northwest-1.amazonaws.com.cn/iformall-net/cimg/dingdan.png',
+ 'name': ''
+ },
+ 'down-white': {
+ 'url': 'https://s3.cn-northwest-1.amazonaws.com.cn/iformall-net/cimg/down-white.png',
+ 'name': ''
+ },
+ 'down': {
+ 'url': 'https://s3.cn-northwest-1.amazonaws.com.cn/iformall-net/cimg/down.png',
+ 'name': ''
+ },
+ 'edit': {
+ 'url': 'https://s3.cn-northwest-1.amazonaws.com.cn/iformall-net/cimg/edit.png',
+ 'name': ''
+ },
+ 'fail': {
+ 'url': 'https://s3.cn-northwest-1.amazonaws.com.cn/iformall-net/cimg/fail.png',
+ 'name': ''
+ },
+ 'fenxiang': {
+ 'url': 'https://s3.cn-northwest-1.amazonaws.com.cn/iformall-net/cimg/fenxiang.png',
+ 'name': ''
+ },
+ 'game': {
+ 'url': 'https://s3.cn-northwest-1.amazonaws.com.cn/iformall-net/cimg/game.png',
+ 'name': ''
+ },
+ 'gift': {
+ 'url': 'https://s3.cn-northwest-1.amazonaws.com.cn/iformall-net/cimg/gift.png',
+ 'name': ''
+ },
+ 'gou': {
+ 'url': 'https://s3.cn-northwest-1.amazonaws.com.cn/iformall-net/cimg/gou.png',
+ 'name': ''
+ },
+ 'grade': {
+ 'url': 'https://s3.cn-northwest-1.amazonaws.com.cn/iformall-net/cimg/grade.png',
+ 'name': ''
+ },
+ 'grade1': {
+ 'url': 'https://s3.cn-northwest-1.amazonaws.com.cn/iformall-net/cimg/grade1.png',
+ 'name': ''
+ },
+ 'grade2': {
+ 'url': 'https://s3.cn-northwest-1.amazonaws.com.cn/iformall-net/cimg/grade2.png',
+ 'name': ''
+ },
+ 'grade3': {
+ 'url': 'https://s3.cn-northwest-1.amazonaws.com.cn/iformall-net/cimg/grade3.png',
+ 'name': ''
+ },
+ 'growthbg': {
+ 'url': 'https://s3.cn-northwest-1.amazonaws.com.cn/iformall-net/cimg/growthbg.png',
+ 'name': ''
+ },
+ 'headbg': {
+ 'url': 'https://s3.cn-northwest-1.amazonaws.com.cn/iformall-net/cimg/headbg.png',
+ 'name': ''
+ },
+ 'home-n': {
+ 'url': 'https://s3.cn-northwest-1.amazonaws.com.cn/iformall-net/cimg/home-n.png',
+ 'name': ''
+ },
+ 'home-y': {
+ 'url': 'https://s3.cn-northwest-1.amazonaws.com.cn/iformall-net/cimg/home-y.png',
+ 'name': ''
+ },
+ 'jian': {
+ 'url': 'https://s3.cn-northwest-1.amazonaws.com.cn/iformall-net/cimg/jian.png',
+ 'name': ''
+ },
+ 'jilu': {
+ 'url': 'https://s3.cn-northwest-1.amazonaws.com.cn/iformall-net/cimg/jilu.png',
+ 'name': ''
+ },
+ 'line': {
+ 'url': 'https://s3.cn-northwest-1.amazonaws.com.cn/iformall-net/cimg/line.png',
+ 'name': ''
+ },
+ 'lines': {
+ 'url': 'https://s3.cn-northwest-1.amazonaws.com.cn/iformall-net/cimg/lines.png',
+ 'name': ''
+ },
+ 'liness': {
+ 'url': 'https://s3.cn-northwest-1.amazonaws.com.cn/iformall-net/cimg/liness.png',
+ 'name': ''
+ },
+ 'loading': {
+ 'url': 'https://s3.cn-northwest-1.amazonaws.com.cn/iformall-net/cimg/loading.gif',
+ 'name': ''
+ },
+ 'loading1': {
+ 'url': 'https://s3.cn-northwest-1.amazonaws.com.cn/iformall-net/cimg/loading1.gif',
+ 'name': ''
+ },
+ 'location': {
+ 'url': 'https://s3.cn-northwest-1.amazonaws.com.cn/iformall-net/cimg/location.png',
+ 'name': ''
+ },
+ 'logo': {
+ 'url': 'https://s3.cn-northwest-1.amazonaws.com.cn/iformall-net/cimg/logo.png',
+ 'name': ''
+ },
+ 'mine': {
+ 'url': 'https://s3.cn-northwest-1.amazonaws.com.cn/iformall-net/cimg/mine.png',
+ 'name': ''
+ },
+ 'myspeacial': {
+ 'url': 'https://s3.cn-northwest-1.amazonaws.com.cn/iformall-net/cimg/myspeacial.jpg',
+ 'name': ''
+ },
+ 'new': {
+ 'url': 'https://s3.cn-northwest-1.amazonaws.com.cn/iformall-net/cimg/new.png',
+ 'name': ''
+ },
+ 'orbg': {
+ 'url': 'https://s3.cn-northwest-1.amazonaws.com.cn/iformall-net/cimg/orbg.png',
+ 'name': ''
+ },
+ 'park': {
+ 'url': 'https://s3.cn-northwest-1.amazonaws.com.cn/iformall-net/cimg/park.png',
+ 'name': ''
+ },
+ 'parkCoupon': {
+ 'url': 'https://s3.cn-northwest-1.amazonaws.com.cn/iformall-net/cimg/parkCoupon.png',
+ 'name': ''
+ },
+ 'pass0': {
+ 'url': 'https://s3.cn-northwest-1.amazonaws.com.cn/iformall-net/cimg/pass0.png',
+ 'name': ''
+ },
+ 'pass1': {
+ 'url': 'https://s3.cn-northwest-1.amazonaws.com.cn/iformall-net/cimg/pass1.png',
+ 'name': ''
+ },
+ 'phone': {
+ 'url': 'https://s3.cn-northwest-1.amazonaws.com.cn/iformall-net/cimg/phone.png',
+ 'name': ''
+ },
+ 'platebg': {
+ 'url': 'https://s3.cn-northwest-1.amazonaws.com.cn/iformall-net/cimg/platebg.png',
+ 'name': ''
+ },
+ 'qidai': {
+ 'url': 'https://s3.cn-northwest-1.amazonaws.com.cn/iformall-net/cimg/qidai.png',
+ 'name': ''
+ },
+ 'qrcode': {
+ 'url': 'https://s3.cn-northwest-1.amazonaws.com.cn/iformall-net/cimg/qrcode.png',
+ 'name': ''
+ },
+ 'quan': {
+ 'url': 'https://s3.cn-northwest-1.amazonaws.com.cn/iformall-net/cimg/quan.png',
+ 'name': ''
+ },
+ 'quans': {
+ 'url': 'https://s3.cn-northwest-1.amazonaws.com.cn/iformall-net/cimg/quans.png',
+ 'name': ''
+ },
+ 'ques_bg': {
+ 'url': 'https://s3.cn-northwest-1.amazonaws.com.cn/iformall-net/cimg/ques_bg.png',
+ 'name': ''
+ },
+ 'ques_gou': {
+ 'url': 'https://s3.cn-northwest-1.amazonaws.com.cn/iformall-net/cimg/ques_gou.png',
+ 'name': ''
+ },
+ 'quesimg01': {
+ 'url': 'https://s3.cn-northwest-1.amazonaws.com.cn/iformall-net/cimg/quesimg01.png',
+ 'name': ''
+ },
+ 'redirect': {
+ 'url': 'https://s3.cn-northwest-1.amazonaws.com.cn/iformall-net/cimg/redirect.png',
+ 'name': ''
+ },
+ 'right': {
+ 'url': 'https://s3.cn-northwest-1.amazonaws.com.cn/iformall-net/cimg/right.png',
+ 'name': ''
+ },
+ 'rule': {
+ 'url': 'https://s3.cn-northwest-1.amazonaws.com.cn/iformall-net/cimg/rule.png',
+ 'name': ''
+ },
+ 'shanchuGray': {
+ 'url': 'https://s3.cn-northwest-1.amazonaws.com.cn/iformall-net/cimg/shanchu-gray.png',
+ 'name': ''
+ },
+ 'shanchu': {
+ 'url': 'https://s3.cn-northwest-1.amazonaws.com.cn/iformall-net/cimg/shanchu.png',
+ 'name': ''
+ },
+ 'shang': {
+ 'url': 'https://s3.cn-northwest-1.amazonaws.com.cn/iformall-net/cimg/shang.png',
+ 'name': ''
+ },
+ 'share': {
+ 'url': 'https://s3.cn-northwest-1.amazonaws.com.cn/iformall-net/cimg/share.png',
+ 'name': ''
+ },
+ 'spcode': {
+ 'url': 'https://s3.cn-northwest-1.amazonaws.com.cn/iformall-net/cimg/spcode.png',
+ 'name': ''
+ },
+ 'spphone': {
+ 'url': 'https://s3.cn-northwest-1.amazonaws.com.cn/iformall-net/cimg/spphone.png',
+ 'name': ''
+ },
+ 'succ': {
+ 'url': 'https://s3.cn-northwest-1.amazonaws.com.cn/iformall-net/cimg/succ.png',
+ 'name': ''
+ },
+ 'success': {
+ 'url': 'https://s3.cn-northwest-1.amazonaws.com.cn/iformall-net/cimg/success.png',
+ 'name': ''
+ },
+ 'teljpg': {
+ 'url': 'https://s3.cn-northwest-1.amazonaws.com.cn/iformall-net/cimg/tel.jpg',
+ 'name': ''
+ },
+ 'telpng': {
+ 'url': 'https://s3.cn-northwest-1.amazonaws.com.cn/iformall-net/cimg/tel.png',
+ 'name': ''
+ },
+ 'telicon': {
+ 'url': 'https://s3.cn-northwest-1.amazonaws.com.cn/iformall-net/cimg/telicon.png',
+ 'name': ''
+ },
+ 'user-n': {
+ 'url': 'https://s3.cn-northwest-1.amazonaws.com.cn/iformall-net/cimg/user-n.png',
+ 'name': ''
+ },
+ 'user-y': {
+ 'url': 'https://s3.cn-northwest-1.amazonaws.com.cn/iformall-net/cimg/user-y.png',
+ 'name': ''
+ },
+ 'wechat': {
+ 'url': 'https://s3.cn-northwest-1.amazonaws.com.cn/iformall-net/cimg/wechat.png',
+ 'name': ''
+ },
+ 'wenti': {
+ 'url': 'https://s3.cn-northwest-1.amazonaws.com.cn/iformall-net/cimg/wenti.png',
+ 'name': ''
+ },
+ 'wm01': {
+ 'url': 'https://s3.cn-northwest-1.amazonaws.com.cn/iformall-net/cimg/wm01.jpg',
+ 'name': ''
+ },
+ 'wm02': {
+ 'url': 'https://s3.cn-northwest-1.amazonaws.com.cn/iformall-net/cimg/wm02.jpg',
+ 'name': ''
+ },
+ 'wm03': {
+ 'url': 'https://s3.cn-northwest-1.amazonaws.com.cn/iformall-net/cimg/wm03.jpg',
+ 'name': ''
+ }
+}
\ No newline at end of file