瀏覽代碼

Merge branch 'dev' of https://git.youlane.cn/weapp/C into dev

# Conflicts:
#	pages/scanPay/scanPay.js
tags/广东版3.2.1
meo 6 年之前
父節點
當前提交
16a20ecf80
共有 100 個檔案被更改,包括 13 行新增214 行删除
  1. +6
    -6
      app.json
  2. +0
    -0
      assets/images/home-n.png
  3. +0
    -0
      assets/images/home-y.png
  4. +0
    -0
      assets/images/pass0.png
  5. +0
    -0
      assets/images/pass1.png
  6. +0
    -0
      assets/images/user-n.png
  7. +0
    -0
      assets/images/user-y.png
  8. 二進制
      assets/img/act.png
  9. 二進制
      assets/img/active.gif
  10. 二進制
      assets/img/add.png
  11. 二進制
      assets/img/addr-white.png
  12. 二進制
      assets/img/addr.png
  13. 二進制
      assets/img/addresslogo.png
  14. 二進制
      assets/img/alipay.png
  15. 二進制
      assets/img/banner.png
  16. 二進制
      assets/img/bg.png
  17. 二進制
      assets/img/cardicon.png
  18. 二進制
      assets/img/che.png
  19. 二進制
      assets/img/choice.png
  20. 二進制
      assets/img/choiced.png
  21. 二進制
      assets/img/clock.png
  22. 二進制
      assets/img/closed.png
  23. 二進制
      assets/img/coupon.png
  24. 二進制
      assets/img/ding.png
  25. 二進制
      assets/img/dingdan.png
  26. 二進制
      assets/img/down-white.png
  27. 二進制
      assets/img/down.png
  28. 二進制
      assets/img/edit.png
  29. 二進制
      assets/img/fail.png
  30. 二進制
      assets/img/fenxiang.png
  31. 二進制
      assets/img/game.png
  32. 二進制
      assets/img/gift.png
  33. 二進制
      assets/img/gou.png
  34. 二進制
      assets/img/grade.png
  35. 二進制
      assets/img/grade1.png
  36. 二進制
      assets/img/grade2.png
  37. 二進制
      assets/img/grade3.png
  38. 二進制
      assets/img/growthbg.png
  39. 二進制
      assets/img/headbg.png
  40. 二進制
      assets/img/jian.png
  41. 二進制
      assets/img/jilu.png
  42. 二進制
      assets/img/line.png
  43. 二進制
      assets/img/lines.png
  44. 二進制
      assets/img/liness.png
  45. 二進制
      assets/img/loading.gif
  46. 二進制
      assets/img/loading1.gif
  47. 二進制
      assets/img/location.png
  48. 二進制
      assets/img/logo.png
  49. 二進制
      assets/img/mine.png
  50. 二進制
      assets/img/myspeacial.jpg
  51. 二進制
      assets/img/new.png
  52. 二進制
      assets/img/orbg.png
  53. 二進制
      assets/img/park.png
  54. 二進制
      assets/img/parkCoupon.png
  55. 二進制
      assets/img/phone.png
  56. 二進制
      assets/img/platebg.png
  57. 二進制
      assets/img/qidai.png
  58. 二進制
      assets/img/qrcode.png
  59. 二進制
      assets/img/quan.png
  60. 二進制
      assets/img/quans.png
  61. 二進制
      assets/img/ques_bg.png
  62. 二進制
      assets/img/ques_gou.png
  63. 二進制
      assets/img/quesimg01.png
  64. 二進制
      assets/img/redirect.png
  65. 二進制
      assets/img/right.png
  66. 二進制
      assets/img/rule.png
  67. 二進制
      assets/img/shanchu-gray.png
  68. 二進制
      assets/img/shanchu.png
  69. 二進制
      assets/img/shang.png
  70. 二進制
      assets/img/share.png
  71. 二進制
      assets/img/spcode.png
  72. 二進制
      assets/img/spphone.png
  73. 二進制
      assets/img/succ.png
  74. 二進制
      assets/img/success.png
  75. 二進制
      assets/img/sucsess.png
  76. 二進制
      assets/img/tel.jpg
  77. 二進制
      assets/img/tel.png
  78. 二進制
      assets/img/telicon.png
  79. 二進制
      assets/img/wechat.png
  80. 二進制
      assets/img/wenti.png
  81. 二進制
      assets/img/wm01.jpg
  82. 二進制
      assets/img/wm02.jpg
  83. 二進制
      assets/img/wm03.jpg
  84. +3
    -1
      components/banner/index.js
  85. +1
    -1
      components/banner/index.wxml
  86. +2
    -1
      components/discountCard/index.js
  87. +1
    -1
      components/discountCard/index.wxml
  88. +0
    -47
      dist/action-sheet/index.js
  89. +0
    -8
      dist/action-sheet/index.json
  90. +0
    -23
      dist/action-sheet/index.wxml
  91. +0
    -1
      dist/action-sheet/index.wxss
  92. +0
    -37
      dist/alert/index.js
  93. +0
    -7
      dist/alert/index.json
  94. +0
    -15
      dist/alert/index.wxml
  95. +0
    -1
      dist/alert/index.wxss
  96. +0
    -20
      dist/avatar/index.js
  97. +0
    -3
      dist/avatar/index.json
  98. +0
    -4
      dist/avatar/index.wxml
  99. +0
    -1
      dist/avatar/index.wxss
  100. +0
    -37
      dist/base/index.js

+ 6
- 6
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": "我的"
}
]


assets/img/home-n.png → assets/images/home-n.png 查看文件


assets/img/home-y.png → assets/images/home-y.png 查看文件


assets/img/pass0.png → assets/images/pass0.png 查看文件


assets/img/pass1.png → assets/images/pass1.png 查看文件


assets/img/user-n.png → assets/images/user-n.png 查看文件


assets/img/user-y.png → assets/images/user-y.png 查看文件


二進制
assets/img/act.png 查看文件

Before After
Width: 240  |  Height: 240  |  Size: 7.1 KiB

二進制
assets/img/active.gif 查看文件

Before After
Width: 175  |  Height: 101  |  Size: 32 KiB

二進制
assets/img/add.png 查看文件

Before After
Width: 44  |  Height: 44  |  Size: 1.2 KiB

二進制
assets/img/addr-white.png 查看文件

Before After
Width: 32  |  Height: 32  |  Size: 551 B

二進制
assets/img/addr.png 查看文件

Before After
Width: 32  |  Height: 32  |  Size: 529 B

二進制
assets/img/addresslogo.png 查看文件

Before After
Width: 14  |  Height: 18  |  Size: 415 B

二進制
assets/img/alipay.png 查看文件

Before After
Width: 32  |  Height: 32  |  Size: 909 B

二進制
assets/img/banner.png 查看文件

Before After
Width: 1500  |  Height: 280  |  Size: 13 KiB

二進制
assets/img/bg.png 查看文件

Before After
Width: 1380  |  Height: 3200  |  Size: 22 KiB

二進制
assets/img/cardicon.png 查看文件

Before After
Width: 40  |  Height: 40  |  Size: 710 B

二進制
assets/img/che.png 查看文件

Before After
Width: 78  |  Height: 72  |  Size: 2.2 KiB

二進制
assets/img/choice.png 查看文件

Before After
Width: 32  |  Height: 32  |  Size: 903 B

二進制
assets/img/choiced.png 查看文件

Before After
Width: 32  |  Height: 32  |  Size: 922 B

二進制
assets/img/clock.png 查看文件

Before After
Width: 225  |  Height: 77  |  Size: 7.2 KiB

二進制
assets/img/closed.png 查看文件

Before After
Width: 47  |  Height: 98  |  Size: 1.4 KiB

二進制
assets/img/coupon.png 查看文件

Before After
Width: 240  |  Height: 240  |  Size: 7.4 KiB

二進制
assets/img/ding.png 查看文件

Before After
Width: 67  |  Height: 74  |  Size: 1.5 KiB

二進制
assets/img/dingdan.png 查看文件

Before After
Width: 240  |  Height: 240  |  Size: 5.6 KiB

二進制
assets/img/down-white.png 查看文件

Before After
Width: 32  |  Height: 32  |  Size: 517 B

二進制
assets/img/down.png 查看文件

Before After
Width: 32  |  Height: 32  |  Size: 514 B

二進制
assets/img/edit.png 查看文件

Before After
Width: 46  |  Height: 46  |  Size: 2.0 KiB

二進制
assets/img/fail.png 查看文件

Before After
Width: 200  |  Height: 200  |  Size: 8.3 KiB

二進制
assets/img/fenxiang.png 查看文件

Before After
Width: 128  |  Height: 128  |  Size: 3.2 KiB

二進制
assets/img/game.png 查看文件

Before After
Width: 750  |  Height: 200  |  Size: 64 KiB

二進制
assets/img/gift.png 查看文件

Before After
Width: 128  |  Height: 128  |  Size: 4.8 KiB

二進制
assets/img/gou.png 查看文件

Before After
Width: 81  |  Height: 82  |  Size: 16 KiB

二進制
assets/img/grade.png 查看文件

Before After
Width: 44  |  Height: 38  |  Size: 1.4 KiB

二進制
assets/img/grade1.png 查看文件

Before After
Width: 45  |  Height: 38  |  Size: 1.3 KiB

二進制
assets/img/grade2.png 查看文件

Before After
Width: 44  |  Height: 38  |  Size: 1.5 KiB

二進制
assets/img/grade3.png 查看文件

Before After
Width: 45  |  Height: 38  |  Size: 1.5 KiB

二進制
assets/img/growthbg.png 查看文件

Before After
Width: 1050  |  Height: 255  |  Size: 238 KiB

二進制
assets/img/headbg.png 查看文件

Before After
Width: 587  |  Height: 272  |  Size: 55 KiB

二進制
assets/img/jian.png 查看文件

Before After
Width: 66  |  Height: 66  |  Size: 1.1 KiB

二進制
assets/img/jilu.png 查看文件

Before After
Width: 32  |  Height: 32  |  Size: 421 B

二進制
assets/img/line.png 查看文件

Before After
Width: 1380  |  Height: 39  |  Size: 2.7 KiB

二進制
assets/img/lines.png 查看文件

Before After
Width: 1380  |  Height: 33  |  Size: 1.5 KiB

二進制
assets/img/liness.png 查看文件

Before After
Width: 1380  |  Height: 26  |  Size: 2.3 KiB

二進制
assets/img/loading.gif 查看文件

Before After
Width: 260  |  Height: 238  |  Size: 440 KiB

二進制
assets/img/loading1.gif 查看文件

Before After
Width: 137  |  Height: 148  |  Size: 56 KiB

二進制
assets/img/location.png 查看文件

Before After
Width: 32  |  Height: 32  |  Size: 833 B

二進制
assets/img/logo.png 查看文件

Before After
Width: 320  |  Height: 320  |  Size: 16 KiB

二進制
assets/img/mine.png 查看文件

Before After
Width: 32  |  Height: 32  |  Size: 579 B

二進制
assets/img/myspeacial.jpg 查看文件

Before After
Width: 750  |  Height: 316  |  Size: 36 KiB

二進制
assets/img/new.png 查看文件

Before After
Width: 1420  |  Height: 360  |  Size: 256 KiB

二進制
assets/img/orbg.png 查看文件

Before After
Width: 1500  |  Height: 120  |  Size: 7.4 KiB

二進制
assets/img/park.png 查看文件

Before After
Width: 200  |  Height: 200  |  Size: 9.2 KiB

二進制
assets/img/parkCoupon.png 查看文件

Before After
Width: 543  |  Height: 186  |  Size: 8.8 KiB

二進制
assets/img/phone.png 查看文件

Before After
Width: 32  |  Height: 32  |  Size: 722 B

二進制
assets/img/platebg.png 查看文件

Before After
Width: 541  |  Height: 159  |  Size: 52 KiB

二進制
assets/img/qidai.png 查看文件

Before After
Width: 200  |  Height: 200  |  Size: 13 KiB

二進制
assets/img/qrcode.png 查看文件

Before After
Width: 128  |  Height: 128  |  Size: 2.7 KiB

二進制
assets/img/quan.png 查看文件

Before After
Width: 200  |  Height: 200  |  Size: 6.1 KiB

二進制
assets/img/quans.png 查看文件

Before After
Width: 78  |  Height: 54  |  Size: 1.6 KiB

二進制
assets/img/ques_bg.png 查看文件

Before After
Width: 587  |  Height: 50  |  Size: 3.8 KiB

二進制
assets/img/ques_gou.png 查看文件

Before After
Width: 20  |  Height: 19  |  Size: 514 B

二進制
assets/img/quesimg01.png 查看文件

Before After
Width: 93  |  Height: 112  |  Size: 10 KiB

二進制
assets/img/redirect.png 查看文件

Before After
Width: 10  |  Height: 17  |  Size: 364 B

二進制
assets/img/right.png 查看文件

Before After
Width: 32  |  Height: 32  |  Size: 332 B

二進制
assets/img/rule.png 查看文件

Before After
Width: 200  |  Height: 200  |  Size: 6.9 KiB

二進制
assets/img/shanchu-gray.png 查看文件

Before After
Width: 32  |  Height: 22  |  Size: 678 B

二進制
assets/img/shanchu.png 查看文件

Before After
Width: 32  |  Height: 22  |  Size: 706 B

二進制
assets/img/shang.png 查看文件

Before After
Width: 128  |  Height: 128  |  Size: 5.6 KiB

二進制
assets/img/share.png 查看文件

Before After
Width: 32  |  Height: 32  |  Size: 510 B

二進制
assets/img/spcode.png 查看文件

Before After
Width: 55  |  Height: 55  |  Size: 1.3 KiB

二進制
assets/img/spphone.png 查看文件

Before After
Width: 43  |  Height: 44  |  Size: 1.3 KiB

二進制
assets/img/succ.png 查看文件

Before After
Width: 145  |  Height: 128  |  Size: 3.1 KiB

二進制
assets/img/success.png 查看文件

Before After
Width: 200  |  Height: 200  |  Size: 8.3 KiB

二進制
assets/img/sucsess.png 查看文件

Before After
Width: 32  |  Height: 32  |  Size: 323 B

二進制
assets/img/tel.jpg 查看文件

Before After
Width: 43  |  Height: 44  |  Size: 3.7 KiB

二進制
assets/img/tel.png 查看文件

Before After
Width: 49  |  Height: 50  |  Size: 3.0 KiB

二進制
assets/img/telicon.png 查看文件

Before After
Width: 48  |  Height: 48  |  Size: 3.2 KiB

二進制
assets/img/wechat.png 查看文件

Before After
Width: 32  |  Height: 32  |  Size: 753 B

二進制
assets/img/wenti.png 查看文件

Before After
Width: 200  |  Height: 200  |  Size: 17 KiB

二進制
assets/img/wm01.jpg 查看文件

Before After
Width: 600  |  Height: 572  |  Size: 18 KiB

二進制
assets/img/wm02.jpg 查看文件

Before After
Width: 600  |  Height: 572  |  Size: 18 KiB

二進制
assets/img/wm03.jpg 查看文件

Before After
Width: 600  |  Height: 572  |  Size: 18 KiB

+ 3
- 1
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
},

/**


+ 1
- 1
components/banner/index.wxml 查看文件

@@ -1,5 +1,5 @@
<view wx:if="{{list.length!=0}}" class='bannerbg'>
<image src='./../../assets/img/banner.png' mode="widthFix"></image>
<image src='{{bannerUrl}}' mode="widthFix"></image>
</view>
<view wx:if="{{list.length!=0}}" class="index-slide-view">
<swiper class="index-slide" bindchange="swiperChange" autoplay="true" circular="false">


+ 2
- 1
components/discountCard/index.js 查看文件

@@ -14,7 +14,8 @@ Component({
* 组件的初始数据
*/
data: {
swiperCurrent: 0
swiperCurrent: 0,
discountcardUrl: ''
},

/**


+ 1
- 1
components/discountCard/index.wxml 查看文件

@@ -1,5 +1,5 @@
<view class='content' >
<view bindtap='gotoDiscountCardList'>
<image src='./../../assets/img/discountcard.png' mode='widthFix'></image>
<image src='{{discountcardUrl}}' mode='widthFix'></image>
</view>
</view>

+ 0
- 47
dist/action-sheet/index.js 查看文件

@@ -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');
}
}
});

+ 0
- 8
dist/action-sheet/index.json 查看文件

@@ -1,8 +0,0 @@
{
"component": true,
"usingComponents":
{
"i-button": "../button/index",
"i-icon": "../icon/index"
}
}

+ 0
- 23
dist/action-sheet/index.wxml 查看文件

@@ -1,23 +0,0 @@
<view class="i-as-mask i-class-mask {{ visible ? 'i-as-mask-show' : '' }}" bindtap="handleClickMask"></view>
<view class="i-class i-as {{ visible ? 'i-as-show' : '' }}">
<view class="i-as-header i-class-header"><slot name="header"></slot></view>
<view class="i-as-actions">
<view class="i-as-action-item" wx:for="{{ actions }}" wx:key="{{ item.name }}">
<i-button
bind:click="handleClickItem"
data-index="{{ index }}"
open-type="{{ item.openType }}"
type="ghost"
size="large"
long
>
<view class="i-as-btn-loading" wx:if="{{ item.loading }}"></view>
<i-icon wx:if="{{ item.icon }}" type="{{ item.icon }}" i-class="i-as-btn-icon"></i-icon>
<view class="i-as-btn-text" style="{{ item.color ? 'color: ' + item.color : '' }}">{{ item.name }}</view>
</i-button>
</view>
</view>
<view class="i-as-cancel" wx:if="{{ showCancel }}">
<i-button i-class="i-as-cancel-btn" type="ghost" size="large" long="true" bind:click="handleClickCancel">{{ cancelText }}</i-button>
</view>
</view>

+ 0
- 1
dist/action-sheet/index.wxss 查看文件

@@ -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)}}

+ 0
- 37
dist/alert/index.js 查看文件

@@ -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');
},

}
});

+ 0
- 7
dist/alert/index.json 查看文件

@@ -1,7 +0,0 @@
{
"component": true,
"usingComponents":
{
"i-icon": "../icon/index"
}
}

+ 0
- 15
dist/alert/index.wxml 查看文件

@@ -1,15 +0,0 @@
<view class="i-class i-alert {{'i-alert-'+type}} {{showIcon?'i-alert-with-icon':''}} {{desc?'i-alert-with-desc':''}}" wx:if="{{!closed}}">
<view wx:if="{{ showIcon }}" class="i-alert-icon">
<i-icon type="prompt" wx:if="{{ type === 'info' }}" size="{{desc?24:16}}"></i-icon>
<i-icon type="success" wx:if="{{ type === 'success' }}" size="{{desc?24:16}}"></i-icon>
<i-icon type="warning" wx:if="{{ type === 'warning' }}" size="{{desc?24:16}}"></i-icon>
<i-icon type="delete" wx:if="{{ type === 'error' }}" size="{{desc?24:16}}"></i-icon>
</view>
<slot></slot>
<view class="i-alert-desc">
<slot name="desc"></slot>
</view>
<view class="i-alert-close" wx:if="{{ closable }}" bindtap="handleTap">
<i-icon type="close"></i-icon>
</view>
</view>

+ 0
- 1
dist/alert/index.wxss 查看文件

@@ -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}

+ 0
- 20
dist/avatar/index.js 查看文件

@@ -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: ''
}
}
});

+ 0
- 3
dist/avatar/index.json 查看文件

@@ -1,3 +0,0 @@
{
"component": true
}

+ 0
- 4
dist/avatar/index.wxml 查看文件

@@ -1,4 +0,0 @@
<view class="i-class i-avatar i-avatar-{{ shape }} i-avatar-{{ size }} {{ src ? 'i-avatar-image' : '' }}">
<image src="{{ src }}" wx:if="{{ src !== '' }}"></image>
<view class="i-avatar-string" wx:else><slot></slot></view>
</view>

+ 0
- 1
dist/avatar/index.wxss 查看文件

@@ -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%}

+ 0
- 37
dist/base/index.js 查看文件

@@ -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
};

部分文件因文件數量過多而無法顯示

Loading…
取消
儲存