@cloudbase/weda-ui 2.0.9 → 2.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/package.json +13 -5
- package/src/configs/components/button.json +60 -13
- package/src/configs/components/calendar.json +3 -3
- package/src/configs/components/carousel.json +57 -47
- package/src/configs/components/chart/bar.json +4 -13
- package/src/configs/components/chart/line.json +4 -13
- package/src/configs/components/chart/pie.json +3 -10
- package/src/configs/components/chart/statisticsCard.json +1 -4
- package/src/configs/components/container.json +1 -3
- package/src/configs/components/dataView.json +7 -15
- package/src/configs/components/drawer.json +24 -6
- package/src/configs/components/form/form.json +19 -0
- package/src/configs/components/form/input.json +20 -5
- package/src/configs/components/form/location.json +51 -48
- package/src/configs/components/form/radio.json +1 -3
- package/src/configs/components/form/richText.json +14 -14
- package/src/configs/components/form/select.json +62 -82
- package/src/configs/components/form/textarea.json +6 -1
- package/src/configs/components/form/uploader.json +64 -64
- package/src/configs/components/form/uploaderFile.json +1 -2
- package/src/configs/components/graphicCard.json +43 -44
- package/src/configs/components/image.json +44 -40
- package/src/configs/components/link.json +5 -10
- package/src/configs/components/listView.json +2 -8
- package/src/configs/components/lottery.json +7 -3
- package/src/configs/components/modal.json +26 -21
- package/src/configs/components/navLayout.json +66 -67
- package/src/configs/components/navigationBar.json +4 -1
- package/src/configs/components/richtextview.json +1 -1
- package/src/configs/components/scrollVeiw.json +14 -42
- package/src/configs/components/swiper.json +9 -9
- package/src/configs/components/wedaVideo.json +86 -0
- package/src/configs/components/wxOpenApi/phone.json +7 -21
- package/src/configs/components/wxOpenApi/phoneCode.json +7 -19
- package/src/configs/components/wxOpenApi/share.json +14 -24
- package/src/configs/components/wxOpenApi/userInfo.json +9 -27
- package/src/configs/index.js +2 -0
- package/src/docs/common/format.tsx +4 -1
- package/src/docs/common/tableView.css +3 -3
- package/src/docs/common/tableView.tsx +18 -8
- package/src/docs/compsdocs/form/FormLocation.mdx +1 -1
- package/src/docs/compsdocs/form/FormSelect.mdx +0 -1
- package/src/docs/compsdocs/grid/Card.mdx +0 -1
- package/src/docs/compsdocs/grid/Container.mdx +0 -1
- package/src/docs/compsdocs/grid/GridLayout.mdx +0 -1
- package/src/docs/compsdocs/grid/ScrollView.mdx +2 -2
- package/src/docs/compsdocs/grid/Swiper.mdx +1 -2
- package/src/docs/compsdocs/media/Icon.mdx +1 -1
- package/src/docs/compsdocs/media/Image.mdx +6 -6
- package/src/docs/compsdocs/model/ModelCreate.mdx +24 -0
- package/src/docs/compsdocs/model/ModelDetail.mdx +24 -0
- package/src/docs/compsdocs/model/ModelTable.mdx +133 -1
- package/src/docs/compsdocs/model/ModelUpdate.mdx +24 -1
- package/src/docs/compsdocs/navmenu/Classification.mdx +2 -3
- package/src/docs/compsdocs/navmenu/NavBar.mdx +14 -5
- package/src/docs/compsdocs/navmenu/NavLayout.mdx +0 -1
- package/src/docs/compsdocs/navmenu/TabBar.mdx +3 -3
- package/src/docs/compsdocs/navmenu/TabBarItem.mdx +1 -1
- package/src/docs/compsdocs/senior/Lottery.mdx +3 -6
- package/src/docs/compsdocs/senior/Modal.mdx +2 -3
- package/src/docs/compsdocs/senior/SlotMachine.mdx +2 -5
- package/src/docs/compsdocs/senior/_category_.json +1 -1
- package/src/docs/compsdocs/show/GraphicCard.mdx +0 -1
- package/src/docs/compsdocs/show/Item.mdx +0 -1
- package/src/docs/compsdocs/show/ItemList.mdx +1 -0
- package/src/docs/compsdocs/show/Tabs.mdx +2 -3
- package/src/docs/compsdocs/text/Link.mdx +1 -1
- package/src/docs/compsdocs/text/RichTextView.mdx +1 -2
- package/src/docs/compsdocs/text/Text.mdx +1 -1
- package/src/docs/compsdocs/text/Title.mdx +1 -2
- package/src/docs/compsdocs/wxOpen/Phone.mdx +1 -2
- package/src/docs/compsdocs/wxOpen/Share.mdx +0 -1
- package/src/docs/compsdocs/wxOpen/UserInfo.mdx +1 -2
- package/src/mp/components/button/index.js +1 -1
- package/src/mp/components/button/index.wxml +19 -19
- package/src/mp/components/calendar/index.js +64 -37
- package/src/mp/components/calendar/index.json +1 -1
- package/src/mp/components/calendar/index.wxml +4 -6
- package/src/mp/components/carousel/index.json +1 -1
- package/src/mp/components/carousel/index.wxml +2 -2
- package/src/mp/components/chart/bar/index.js +1 -2
- package/src/mp/components/chart/bar/index.wxml +1 -1
- package/src/mp/components/chart/common/config/bar.js +1 -1
- package/src/mp/components/chart/common/core/eChartBar.js +29 -34
- package/src/mp/components/chart/common/core/eChartBase.js +46 -32
- package/src/mp/components/chart/common/core/eChartLine.js +34 -40
- package/src/mp/components/chart/common/core/eChartPie.js +12 -9
- package/src/mp/components/chart/ec-canvas/ec-canvas.json +1 -1
- package/src/mp/components/chart/ec-canvas/wx-canvas.js +24 -22
- package/src/mp/components/chart/line/index.js +2 -2
- package/src/mp/components/chart/line/index.wxml +1 -1
- package/src/mp/components/chart/pie/index.js +1 -1
- package/src/mp/components/chart/pie/index.wxml +1 -2
- package/src/mp/components/dataView/index.wxml +2 -14
- package/src/mp/components/form/checkbox/index.js +10 -6
- package/src/mp/components/form/checkbox/index.wxml +13 -25
- package/src/mp/components/form/form/index.wxml +3 -3
- package/src/mp/components/form/formcell/index.wxml +9 -9
- package/src/mp/components/form/formcell/index.wxss +6 -1
- package/src/mp/components/form/input/index.js +3 -3
- package/src/mp/components/form/input/index.wxml +24 -31
- package/src/mp/components/form/input/index.wxss +9 -3
- package/src/mp/components/form/location/components/mapChoose/index.json +1 -1
- package/src/mp/components/form/location/components/mapChoose/index.wxml +6 -6
- package/src/mp/components/form/location/index.js +7 -1
- package/src/mp/components/form/location/index.json +1 -1
- package/src/mp/components/form/location/index.wxml +6 -10
- package/src/mp/components/form/radio/index.js +9 -5
- package/src/mp/components/form/radio/index.wxml +12 -24
- package/src/mp/components/form/select/index.js +156 -97
- package/src/mp/components/form/select/index.wxml +11 -39
- package/src/mp/components/form/select/index.wxss +14 -3
- package/src/mp/components/form/select/region/index.js +18 -12
- package/src/mp/components/form/switch/index.wxml +11 -18
- package/src/mp/components/form/textarea/index.wxml +2 -17
- package/src/mp/components/form/textarea/index.wxss +5 -0
- package/src/mp/components/form/tips/index.wxml +1 -3
- package/src/mp/components/form/uploader/index.js +1 -1
- package/src/mp/components/form/uploader/index.wxml +3 -20
- package/src/mp/components/form/uploader/weui-uploader.js +210 -200
- package/src/mp/components/form/uploader/weui-uploader.json +6 -6
- package/src/mp/components/form/uploader/weui-uploader.wxml +38 -38
- package/src/mp/components/form/uploaderFile/index.js +5 -4
- package/src/mp/components/form/uploaderFile/index.wxml +40 -41
- package/src/mp/components/graphicCard/index.js +35 -35
- package/src/mp/components/graphicCard/index.wxml +2 -6
- package/src/mp/components/image/index.wxml +9 -20
- package/src/mp/components/image/index.wxss +3 -1
- package/src/mp/components/listView/index.wxml +5 -7
- package/src/mp/components/lottery/index.wxml +1 -3
- package/src/mp/components/lottery/index.wxss +31 -25
- package/src/mp/components/navLayout/index.js +9 -12
- package/src/mp/components/navLayout/index.wxml +2 -4
- package/src/mp/components/navigationBar/index.json +1 -2
- package/src/mp/components/navigationBar/index.wxml +43 -51
- package/src/mp/components/swiper/index.wxml +1 -9
- package/src/mp/components/tabs/index.js +14 -10
- package/src/mp/components/tabs/index.json +1 -1
- package/src/mp/components/tabs/index.wxml +3 -21
- package/src/mp/components/text/index.wxml +1 -6
- package/src/mp/components/text/index.wxss +1 -1
- package/src/mp/components/wedaVideo/index.js +86 -0
- package/src/mp/components/wedaVideo/index.json +4 -0
- package/src/mp/components/wedaVideo/index.wxml +4 -0
- package/src/mp/components/wedaVideo/index.wxss +20 -0
- package/src/mp/components/wxOpenApi/phone/index.js +1 -9
- package/src/mp/components/wxOpenApi/phone/index.wxml +3 -14
- package/src/mp/components/wxOpenApi/phoneCode/index.json +1 -1
- package/src/mp/components/wxOpenApi/phoneCode/index.wxml +3 -14
- package/src/mp/components/wxOpenApi/share/index.wxml +3 -14
- package/src/mp/components/wxOpenApi/userInfo/index.wxml +3 -13
- package/src/mp/index.json +1 -0
- package/src/mp/style/weda-ui.wxss +20 -7
- package/src/mp/utils/deepEqual.js +37 -37
- package/src/mp/utils/destr.js +41 -40
- package/src/mp/utils/dr_square_point.js +10 -6
- package/src/setupTests.js +13 -13
- package/src/web/actions/showModal/index.tsx +5 -4
- package/src/web/components/button/index.tsx +44 -40
- package/src/web/components/calendar/index.css +81 -34
- package/src/web/components/carousel/index.tsx +1 -1
- package/src/web/components/chart/common/config/bar.js +1 -1
- package/src/web/components/chart/common/core/eChartBar.js +28 -34
- package/src/web/components/chart/common/core/eChartBase.ts +55 -42
- package/src/web/components/chart/common/core/eChartLine.js +34 -40
- package/src/web/components/chart/common/core/eChartPie.js +12 -9
- package/src/web/components/chart/common/core/type.ts +23 -23
- package/src/web/components/chart/common/echart.css +12 -12
- package/src/web/components/chart/common/echarts.ts +3 -5
- package/src/web/components/chart/common/useChart.tsx +34 -16
- package/src/web/components/container/index.tsx +3 -4
- package/src/web/components/drawer/index.tsx +15 -4
- package/src/web/components/form/checkbox/index.tsx +32 -31
- package/src/web/components/form/enumSelect/NormalSelect.tsx +0 -2
- package/src/web/components/form/form/index.css +3 -6
- package/src/web/components/form/form/index.tsx +7 -6
- package/src/web/components/form/formcell/index.css +10 -4
- package/src/web/components/form/formcell/index.tsx +3 -7
- package/src/web/components/form/input/index.css +4 -4
- package/src/web/components/form/input/index.tsx +61 -53
- package/src/web/components/form/location/common/selectModal.jsx +2 -11
- package/src/web/components/form/location/common/useLocationInfo.js +4 -0
- package/src/web/components/form/location/components/LocationH5/index.css +0 -1
- package/src/web/components/form/location/components/LocationH5/location.h5.jsx +11 -1
- package/src/web/components/form/location/components/LocationPC/Header.jsx +0 -13
- package/src/web/components/form/location/components/LocationPC/location.PC.jsx +14 -5
- package/src/web/components/form/radio/index.tsx +32 -26
- package/src/web/components/form/renderDecorator.tsx +23 -26
- package/src/web/components/form/select/h5.tsx +154 -103
- package/src/web/components/form/select/index.css +9 -3
- package/src/web/components/form/select/index.tsx +75 -48
- package/src/web/components/form/select/region/index.ts +101 -80
- package/src/web/components/form/select/year.tsx +2 -0
- package/src/web/components/form/switch/index.tsx +40 -40
- package/src/web/components/form/textarea/index.css +4 -0
- package/src/web/components/form/textarea/index.tsx +27 -26
- package/src/web/components/form/types.d.ts +10 -10
- package/src/web/components/form/uploader/uploader.h5.tsx +26 -20
- package/src/web/components/form/uploaderFile/index.jsx +0 -5
- package/src/web/components/form/uploaderFile/uploadFile.h5.tsx +15 -11
- package/src/web/components/form/uploaderFile/uploadFile.pc.tsx +14 -9
- package/src/web/components/image/image.tsx +2 -2
- package/src/web/components/image/index.css +9 -7
- package/src/web/components/image/index.tsx +29 -12
- package/src/web/components/index.js +1 -0
- package/src/web/components/link/index.tsx +13 -13
- package/src/web/components/lottery/index.css +43 -37
- package/src/web/components/lottery/index.tsx +2 -2
- package/src/web/components/modal/index.tsx +34 -34
- package/src/web/components/navLayout/index.tsx +1 -1
- package/src/web/components/navigationBar/index.tsx +2 -2
- package/src/web/components/picker/datePicker.tsx +3 -3
- package/src/web/components/picker/picker.tsx +3 -3
- package/src/web/components/picker/timePicker.tsx +1 -1
- package/src/web/components/richText/index.jsx +41 -46
- package/src/web/components/richTextView/index.tsx +4 -6
- package/src/web/components/scrollView/index.tsx +2 -2
- package/src/web/components/slot/index.tsx +3 -4
- package/src/web/components/swiper/index.css +1 -1
- package/src/web/components/swiper/index.tsx +33 -15
- package/src/web/components/tabs/index.css +1 -1
- package/src/web/components/tabs/index.tsx +6 -6
- package/src/web/components/tabs/tabs.h5.tsx +17 -12
- package/src/web/components/tabs/tabs.pc.tsx +45 -34
- package/src/web/components/text/index.css +1 -1
- package/src/web/components/text/index.tsx +13 -14
- package/src/web/components/wedaVideo/index.css +42 -0
- package/src/web/components/wedaVideo/index.tsx +198 -0
- package/src/web/utils/constant.ts +2 -1
- package/src/web/utils/isObjectEqual.js +2 -1
- package/src/web/utils/loading-fallback.tsx +2 -2
- package/src/web/utils/lodash.ts +1 -1
- package/src/web/utils/useSetState.ts +6 -2
- package/src/web/weda-ui.css +17 -0
|
@@ -1,46 +1,45 @@
|
|
|
1
1
|
<view class="weda-uploader-files {{extClass}}">
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
</view>
|
|
2
|
+
<view class="weda-uploader-files__hd">
|
|
3
|
+
<view class="weda-uploader-files__title" wx:if="{{labelVisible}}">{{label}}</view>
|
|
4
|
+
<view>
|
|
5
|
+
<button class="weui-btn weda-uploader-files__btn" bindtap="uploadFile">上传文件</button>
|
|
6
|
+
<view wx:if="{{maxCount!=1}}" class="weda-uploader-files__tips">支持批量上传</view>
|
|
7
|
+
<view wx:else><slot name="tips"></slot></view>
|
|
9
8
|
</view>
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
</view>
|
|
43
|
-
</block>
|
|
9
|
+
</view>
|
|
10
|
+
<view class="weda-uploader-files__bd">
|
|
11
|
+
<view class="weda-uploader-files__files" wx-if="{{files.length > 0}}">
|
|
12
|
+
<block wx:for="{{files}}" wx:key="index">
|
|
13
|
+
<view class="weda-uploader-files__item">
|
|
14
|
+
<view class="weda-uploader-files__item-left">
|
|
15
|
+
<view class="weda-uploader-files__file-detail">
|
|
16
|
+
<text class="weda-uploader-files__file-name">{{item.name}}</text>
|
|
17
|
+
<view wx:if="{{item.status === 'success' || item.status === 'fail'}}" class="weda-uploader-files__file-status">
|
|
18
|
+
<mp-icon wx:if="{{item.status === 'success' }}" icon="done2" size="{{16}}" color="#00A870" type="field"></mp-icon>
|
|
19
|
+
<mp-icon wx:if="{{item.status === 'fail' }}" icon="close2" size="{{16}}" color="#E34D59" type="field"></mp-icon>
|
|
20
|
+
<text class="weda-uploader-files__file-status--msg">{{item.status === 'success' ? '上传成功' : '上传失败'}}</text>
|
|
21
|
+
</view>
|
|
22
|
+
</view>
|
|
23
|
+
<view class="weda-uploader-files__progress weui-progress" wx-if="{{item.status === 'pending' || item.status === 'uploading'}}">
|
|
24
|
+
<view class="weui-progress__bar">
|
|
25
|
+
<progress percent="{{item.percent}}" stroke-width="3" activeColor="#0052D9" backgroundColor="#E7E7E7" stroke-width="3" />
|
|
26
|
+
</view>
|
|
27
|
+
</view>
|
|
28
|
+
<view class="weda-uploader-files__file-foot">
|
|
29
|
+
<div>
|
|
30
|
+
<text wx-if="{{item.status === 'uploading' || item.status === 'pending'}}">{{item.status === 'uploading' ? item.uploaded : '0K' }}/</text>
|
|
31
|
+
<text>{{item.size}}</text>
|
|
32
|
+
</div>
|
|
33
|
+
<div wx-if="{{item.status === 'uploading' || item.status === 'pending'}}">{{item.status === 'pending' ? '等待上传' : '上传中'}}</div>
|
|
34
|
+
</view>
|
|
35
|
+
</view>
|
|
36
|
+
<view class="weda-uploader-files__btn-group">
|
|
37
|
+
<image wx-if="{{item.status === 'success'&&downloadVisible}}" data-item="{{item}}" bindtap="downloadFile" class="weda-uploader-files__icon" src="https://imgcache.qq.com/qcloud/tcloud_dtc/static/static_source_business/4cba5da1-cde4-40c6-a075-86eff22858a4.svg"></image>
|
|
38
|
+
<image wx-if="{{item.status === 'fail'}}" data-item="{{item}}" bindtap="reload" class="weda-uploader-files__icon" src="https://imgcache.qq.com/qcloud/tcloud_dtc/static/static_source_business/af5486eb-65e0-4536-8e51-6c68a17b71ac.svg"></image>
|
|
39
|
+
<image class="weda-uploader-files__icon" data-item="{{item}}" bindtap="onDelete" src="https://imgcache.qq.com/qcloud/tcloud_dtc/static/static_source_business/2372f6a8-2f6a-4f30-92bf-73c62a5c0ae7.svg"></image>
|
|
40
|
+
</view>
|
|
44
41
|
</view>
|
|
42
|
+
</block>
|
|
45
43
|
</view>
|
|
44
|
+
</view>
|
|
46
45
|
</view>
|
|
@@ -99,24 +99,22 @@ Component({
|
|
|
99
99
|
},
|
|
100
100
|
methods: {
|
|
101
101
|
navigaTo: function (itemInfo) {
|
|
102
|
+
let { app } = getApp();
|
|
102
103
|
const item = itemInfo?.currentTarget?.dataset?.item;
|
|
103
104
|
if (item.tapStatus == 'inside') {
|
|
104
|
-
const paramObj =
|
|
105
|
+
const paramObj = {};
|
|
105
106
|
if (item.withParams && item?.params) {
|
|
106
107
|
for (let info of item.params) {
|
|
107
|
-
paramObj
|
|
108
|
+
paramObj[info.key] = info.value;
|
|
108
109
|
}
|
|
109
110
|
}
|
|
110
111
|
item.paramObj = paramObj;
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
url: '../' + item?.insideUrl + '/index',
|
|
118
|
-
});
|
|
119
|
-
}
|
|
112
|
+
app.navigateTo({
|
|
113
|
+
mode: 'weDa',
|
|
114
|
+
pageId: item?.insideUrl,
|
|
115
|
+
params:
|
|
116
|
+
item?.withParams && item?.params.length > 0 ? item.paramObj : null,
|
|
117
|
+
});
|
|
120
118
|
}
|
|
121
119
|
},
|
|
122
120
|
},
|
|
@@ -161,16 +159,17 @@ Component({
|
|
|
161
159
|
optionList,
|
|
162
160
|
});
|
|
163
161
|
},
|
|
164
|
-
'titleMaxLines,titleColor,titleFontWeight,titleFontSize,textAlign,titleLineHeight':
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
162
|
+
'titleMaxLines,titleColor,titleFontWeight,titleFontSize,textAlign,titleLineHeight':
|
|
163
|
+
function (
|
|
164
|
+
titleMaxLines,
|
|
165
|
+
titleColor,
|
|
166
|
+
titleFontWeight,
|
|
167
|
+
titleFontSize,
|
|
168
|
+
textAlign,
|
|
169
|
+
titleLineHeight
|
|
170
|
+
) {
|
|
171
|
+
let titleStyle = this.properties.titleStyle;
|
|
172
|
+
titleStyle = `
|
|
174
173
|
-webkit-line-clamp:${titleMaxLines ? titleMaxLines : 'revert'};
|
|
175
174
|
color: ${titleColor};
|
|
176
175
|
font-weight: ${titleFontWeight};
|
|
@@ -178,18 +177,19 @@ Component({
|
|
|
178
177
|
text-align: ${textAlign};
|
|
179
178
|
line-height: ${titleLineHeight == 'auto' ? 'normal' : titleLineHeight};
|
|
180
179
|
`;
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
'desMaxLines,desColor,desFontWeight,desFontSize,textAlign,desLineHeight':
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
180
|
+
this.setData({ titleStyle });
|
|
181
|
+
},
|
|
182
|
+
'desMaxLines,desColor,desFontWeight,desFontSize,textAlign,desLineHeight':
|
|
183
|
+
function (
|
|
184
|
+
desMaxLines,
|
|
185
|
+
desColor,
|
|
186
|
+
desFontWeight,
|
|
187
|
+
desFontSize,
|
|
188
|
+
textAlign,
|
|
189
|
+
desLineHeight
|
|
190
|
+
) {
|
|
191
|
+
let desStyle = this.properties.desStyle;
|
|
192
|
+
desStyle = `
|
|
193
193
|
-webkit-line-clamp:${desMaxLines ? desMaxLines : 'revert'};
|
|
194
194
|
color: ${desColor};
|
|
195
195
|
font-weight: ${desFontWeight};
|
|
@@ -197,7 +197,7 @@ Component({
|
|
|
197
197
|
text-align: ${textAlign};
|
|
198
198
|
line-height: ${desLineHeight == 'auto' ? 'normal' : desLineHeight};
|
|
199
199
|
`;
|
|
200
|
-
|
|
201
|
-
|
|
200
|
+
this.setData({ desStyle });
|
|
201
|
+
},
|
|
202
202
|
},
|
|
203
203
|
});
|
|
@@ -9,12 +9,8 @@
|
|
|
9
9
|
<view class="weda-graphic-card__icon" style="{{iconStyle}}">
|
|
10
10
|
<image src="{{col.icon}}" mode="scaleToFill" class="weda-graphic-card__img"></image>
|
|
11
11
|
</view>
|
|
12
|
-
<view class="weda-graphic-card__title" style="{{titleStyle}}" wx:if="{{titleVisible}}">
|
|
13
|
-
|
|
14
|
-
</view>
|
|
15
|
-
<view class="weda-graphic-card__desc" style="text-align: {{textAlign}}" wx:if="{{desVisible}}" style="{{desStyle}}">
|
|
16
|
-
{{col.des}}
|
|
17
|
-
</view>
|
|
12
|
+
<view class="weda-graphic-card__title" style="{{titleStyle}}" wx:if="{{titleVisible}}"> {{col.title}} </view>
|
|
13
|
+
<view class="weda-graphic-card__desc" style="text-align: {{textAlign}}" wx:if="{{desVisible}}" style="{{desStyle}}"> {{col.des}} </view>
|
|
18
14
|
</view>
|
|
19
15
|
<view class="wedatea2td-btn wedatea2td-btn--link weda-graphic-card__btn" wx:if="{{buttonVisible && col}}">
|
|
20
16
|
<text class="weda-graphic-card__btn--text">{{buttonText}}</text>
|
|
@@ -1,20 +1,9 @@
|
|
|
1
|
-
<image
|
|
2
|
-
|
|
3
|
-
class="weda-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
bindload="load"
|
|
11
|
-
binderror="error"
|
|
12
|
-
/>
|
|
13
|
-
<view wx:if="{{showImg}}" class="weda-img-mask" bindtap="onMaskClick" >
|
|
14
|
-
<view bindtap="onCloseClick" class="weda-img-modal-close-btn">
|
|
15
|
-
<icon type="clear" size="23" color="white"></icon>
|
|
16
|
-
</view>
|
|
17
|
-
<gesture bindpinch="onPinch" catchtap="onTapImgPreview" bindpressMove="onPressMove">
|
|
18
|
-
<view class="weda-img-preview" style="margin-top:{{offsetHeight}}px;width: 100%;height:{{showHeight}}px;background-image: url('{{realSrc}}');transform: scale({{zoom}}) translateX({{previewTranslateX}}px) translateY({{previewTranslateY}}px);"></view>
|
|
19
|
-
</gesture>
|
|
20
|
-
</view>
|
|
1
|
+
<image style="{{style}}" class="weda-ui weda-image {{clsx}}" src="{{realSrc}}" alt="{{alt}}" mode="{{imgMode}}" lazy-load="{{lazyLoad}}" show-menu-by-longpress="{{showMenuByLongpress}}" bindtap="onImgTap" bindload="load" binderror="error" />
|
|
2
|
+
<view wx:if="{{showImg}}" class="weda-img-mask" bindtap="onMaskClick">
|
|
3
|
+
<view bindtap="onCloseClick" class="weda-img-modal-close-btn">
|
|
4
|
+
<icon type="clear" size="23" color="white"></icon>
|
|
5
|
+
</view>
|
|
6
|
+
<gesture bindpinch="onPinch" catchtap="onTapImgPreview" bindpressMove="onPressMove">
|
|
7
|
+
<view class="weda-img-preview" style="margin-top:{{offsetHeight}}px;width: 100%;height:{{showHeight}}px;background-image: url('{{realSrc}}');transform: scale({{zoom}}) translateX({{previewTranslateX}}px) translateY({{previewTranslateY}}px);"></view>
|
|
8
|
+
</gesture>
|
|
9
|
+
</view>
|
|
@@ -38,7 +38,9 @@
|
|
|
38
38
|
|
|
39
39
|
.weda-image-error::before {
|
|
40
40
|
content: '';
|
|
41
|
-
background: #f5f5f5
|
|
41
|
+
background: #f5f5f5
|
|
42
|
+
url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMiIgaGVpZ2h0PSIzMiIgdmlld0JveD0iMCAwIDMyIDMyIiBmaWxsPSJub25lIj4KICA8cGF0aCBkPSJNMjUuMzIgMTYuMzU5N0MyNi4wNzY0IDE2LjM1OTcgMjYuODI1NCAxNi41MDg3IDI3LjUyNDMgMTYuNzk4MUMyOC4yMjMxIDE3LjA4NzYgMjguODU4MSAxNy41MTE5IDI5LjM5MjkgMTguMDQ2OEMyOS45Mjc4IDE4LjU4MTYgMzAuMzUyMSAxOS4yMTY2IDMwLjY0MTYgMTkuOTE1NEMzMC45MzEgMjAuNjE0MyAzMS4wOCAyMS4zNjMzIDMxLjA4IDIyLjExOTdDMzEuMDggMjIuODc2MSAzMC45MzEgMjMuNjI1MSAzMC42NDE2IDI0LjMyMzlDMzAuMzUyMSAyNS4wMjI4IDI5LjkyNzggMjUuNjU3OCAyOS4zOTI5IDI2LjE5MjZDMjguODU4MSAyNi43Mjc1IDI4LjIyMzEgMjcuMTUxOCAyNy41MjQzIDI3LjQ0MTJDMjYuODI1NCAyNy43MzA3IDI2LjA3NjQgMjcuODc5NyAyNS4zMiAyNy44Nzk3QzIzLjc5MjQgMjcuODc5NyAyMi4zMjczIDI3LjI3MjggMjEuMjQ3MSAyNi4xOTI2QzIwLjE2NjkgMjUuMTEyNCAxOS41NiAyMy42NDczIDE5LjU2IDIyLjExOTdDMTkuNTYgMjAuNTkyIDIwLjE2NjkgMTkuMTI3IDIxLjI0NzEgMTguMDQ2OEMyMi4zMjczIDE2Ljk2NjUgMjMuNzkyNCAxNi4zNTk3IDI1LjMyIDE2LjM1OTdaTTI4IDMuNTU5NjlWMTQuODc2OEMyNy4xNzc3IDE0LjU4NjYgMjYuMTkyIDE0LjQzODggMjUuMzIgMTQuNDM5N0MyNC4wMzEgMTQuNDM5NyAyMi44MTU3IDE0Ljc1NzEgMjEuNzQ4OCAxNS4zMTg0TDIwLjc5NTIgMTMuMTU5N0wxNi4wMjU5IDIwLjAyNzVMOC40NDU3NiAxNi40NDFMMy41NiAyMy4zOTk3SDE3Ljc0NjJDMTcuOTg2NyAyNC44MjkgMTguNjI4MiAyNi4xNjA2IDE5LjU5NTggMjcuMjM5N0gxVjMuNTU5NjlIMjhaTTI1Ljk2IDI0LjAzOTdIMjQuNjhWMjUuMzE5N0gyNS45NlYyNC4wMzk3Wk0yNS45NiAxOC45MTk3SDI0LjY4VjIzLjM5OTdIMjUuOTZWMTguOTE5N1pNNi4xMiAxMC41OTk3QzYuMTIgMTEuOTk4MSA3LjE5OTA0IDEzLjEwODUgOC42MDc2OCAxMy4xNTg0QzEwLjAyMDggMTMuMjA3NyAxMS4yNCAxMi4wNDggMTEuMjQgMTAuNTk5N0MxMS4yNCA5LjI0NjA5IDEwLjA2NDMgOC4wODU3NyA4Ljc1MjMyIDguMDQwOTdDNy4yOTU2OCA3Ljk5MTY5IDYuMTIgOS4xNTEzNyA2LjEyIDEwLjU5OTdaIiBmaWxsPSIjQkNDNEQwIj48L3BhdGg+Cjwvc3ZnPgo=')
|
|
43
|
+
no-repeat center / 50% 50%;
|
|
42
44
|
position: absolute;
|
|
43
45
|
left: 0;
|
|
44
46
|
top: 0;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
<scroll-view scroll-y scroll-with-animation lower-threshold="5" style="{{style}}"
|
|
2
|
-
class="weda-list-view__containor weda-ui {{className}}">
|
|
1
|
+
<scroll-view scroll-y scroll-with-animation lower-threshold="5" style="{{style}}" class="weda-list-view__containor weda-ui {{className}}">
|
|
3
2
|
<!-- 列表插槽 -->
|
|
4
3
|
<view class="{{template === 'cardList' ? 'weda-list-view-card' : ''}}" id="weda-list-view_content">
|
|
5
4
|
<slot></slot>
|
|
@@ -24,17 +23,16 @@
|
|
|
24
23
|
<block wx:elif="{{pagination==='pagination'}}">
|
|
25
24
|
<view class="weda-list-view__more-pagination">
|
|
26
25
|
<view class="weda-list-view__pagination-pre {{pageNo > 1 ? 'active': ''}}" bindtap="handlePre">
|
|
27
|
-
<image class="weda-list-view__pagination-icon" src=
|
|
26
|
+
<image class="weda-list-view__pagination-icon" src="arrow-right-line.svg" />
|
|
28
27
|
上一页
|
|
29
28
|
</view>
|
|
30
29
|
<view class="weda-list-view__pagination-text">{{pageStr}}</view>
|
|
31
|
-
<view class="weda-list-view__pagination-next {{pageSize * pageNo < total ? 'active' : ''}}"
|
|
32
|
-
|
|
33
|
-
<image class="weda-list-view__pagination-icon" src='arrow-right-line.svg' />
|
|
30
|
+
<view class="weda-list-view__pagination-next {{pageSize * pageNo < total ? 'active' : ''}}" bindtap="handleNext">
|
|
31
|
+
<image class="weda-list-view__pagination-icon" src="arrow-right-line.svg" />
|
|
34
32
|
下一页
|
|
35
33
|
</view>
|
|
36
34
|
</view>
|
|
37
35
|
</block>
|
|
38
36
|
<block wx:else></block>
|
|
39
37
|
</view>
|
|
40
|
-
</scroll-view>
|
|
38
|
+
</scroll-view>
|
|
@@ -21,9 +21,7 @@
|
|
|
21
21
|
<view class="weda-lottery__turntable-cell-image" wx-if="{{item.src}}">
|
|
22
22
|
<image mode="aspectFit" src="{{item.src}}" alt="{{item.desc}}" class="weda-lottery__turntable-cell-icon"></image>
|
|
23
23
|
</view>
|
|
24
|
-
<view class="weda-lottery__turntable-cell-desc" wx-if="{{item.desc}}">
|
|
25
|
-
{{item.desc}}
|
|
26
|
-
</view>
|
|
24
|
+
<view class="weda-lottery__turntable-cell-desc" wx-if="{{item.desc}}"> {{item.desc}} </view>
|
|
27
25
|
</view>
|
|
28
26
|
</view>
|
|
29
27
|
</block>
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
position: relative;
|
|
9
9
|
width: 100%;
|
|
10
10
|
height: 652rpx;
|
|
11
|
-
background: #
|
|
11
|
+
background: #ff465c;
|
|
12
12
|
border: 2rpx solid rgba(255, 255, 255, 0.6);
|
|
13
13
|
box-shadow: inset 0px 0px 8rpx rgba(255, 255, 255, 0.5);
|
|
14
14
|
border-radius: 20rpx;
|
|
@@ -57,15 +57,15 @@
|
|
|
57
57
|
height: 18rpx;
|
|
58
58
|
box-shadow: 0px 0px 8rpx rgba(255, 255, 255, 0.3);
|
|
59
59
|
border-radius: 50%;
|
|
60
|
-
background: #
|
|
60
|
+
background: #ffffff;
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
.weda-lottery .weda-lottery__dot .weda-lottery__dot-item:nth-child(odd) {
|
|
64
|
-
background: #
|
|
64
|
+
background: #ffee52;
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
.weda-lottery .weda-lottery__dot .weda-lottery__dot-item:nth-child(even) {
|
|
68
|
-
background: #
|
|
68
|
+
background: #ffffff;
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
.weda-lottery .weda-lottery__dot-horizontal .weda-lottery__dot-item {
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
position: relative;
|
|
120
120
|
width: 100%;
|
|
121
121
|
box-sizing: border-box;
|
|
122
|
-
background: linear-gradient(180deg, #
|
|
122
|
+
background: linear-gradient(180deg, #dd0d00 0%, #d80027 100%);
|
|
123
123
|
border: 2rpx solid rgba(255, 255, 255, 0.25);
|
|
124
124
|
box-shadow: inset 0px 0px 8rpx rgba(255, 255, 255, 0.5);
|
|
125
125
|
border-radius: 20rpx;
|
|
@@ -142,20 +142,20 @@
|
|
|
142
142
|
height: calc((100% - 64rpx) / 3);
|
|
143
143
|
font-size: 0;
|
|
144
144
|
text-align: center;
|
|
145
|
-
background: #
|
|
146
|
-
box-shadow: inset 0px -4rpx 0px #
|
|
145
|
+
background: #fff8ee;
|
|
146
|
+
box-shadow: inset 0px -4rpx 0px #ffddbd;
|
|
147
147
|
border-radius: 16rpx;
|
|
148
148
|
box-sizing: border-box;
|
|
149
149
|
}
|
|
150
150
|
|
|
151
151
|
.weda-lottery .weda-lottery__inner .weda-lottery__turntable-item.is-actived {
|
|
152
|
-
background: #
|
|
153
|
-
box-shadow: 0px 0px 12rpx #
|
|
152
|
+
background: #fff8ee;
|
|
153
|
+
box-shadow: 0px 0px 12rpx #ffffff;
|
|
154
154
|
}
|
|
155
155
|
|
|
156
156
|
.weda-lottery .weda-lottery__inner .weda-lottery__turntable-item.is-selected {
|
|
157
|
-
background: #
|
|
158
|
-
box-shadow: inset 0px -4rpx 0px #
|
|
157
|
+
background: #ff6666;
|
|
158
|
+
box-shadow: inset 0px -4rpx 0px #ffa4a4;
|
|
159
159
|
}
|
|
160
160
|
|
|
161
161
|
.weda-lottery .weda-lottery__inner .weda-lottery__turntable-item:first-child {
|
|
@@ -215,8 +215,11 @@
|
|
|
215
215
|
padding: 16rpx 5rpx 16rpx 5rpx;
|
|
216
216
|
}
|
|
217
217
|
|
|
218
|
-
.weda-lottery
|
|
219
|
-
|
|
218
|
+
.weda-lottery
|
|
219
|
+
.weda-lottery__inner
|
|
220
|
+
.weda-lottery__turntable-item.is-actived
|
|
221
|
+
.weda-lottery__turntable-cell {
|
|
222
|
+
border-color: #ffe05f;
|
|
220
223
|
}
|
|
221
224
|
|
|
222
225
|
.weda-lottery .weda-lottery__inner .weda-lottery__turntable-cell-image {
|
|
@@ -238,15 +241,18 @@
|
|
|
238
241
|
font-size: 24rpx;
|
|
239
242
|
line-height: 34rpx;
|
|
240
243
|
text-align: center;
|
|
241
|
-
color: #
|
|
244
|
+
color: #ba0000;
|
|
242
245
|
white-space: nowrap;
|
|
243
246
|
text-overflow: ellipsis;
|
|
244
247
|
overflow: hidden;
|
|
245
248
|
width: 100%;
|
|
246
249
|
}
|
|
247
250
|
|
|
248
|
-
.weda-lottery
|
|
249
|
-
|
|
251
|
+
.weda-lottery
|
|
252
|
+
.weda-lottery__inner
|
|
253
|
+
.weda-lottery__turntable-item.is-selected
|
|
254
|
+
.weda-lottery__turntable-cell-desc {
|
|
255
|
+
color: #ffffff;
|
|
250
256
|
}
|
|
251
257
|
|
|
252
258
|
.weda-lottery .weda-lottery__turntable-btn {
|
|
@@ -256,14 +262,14 @@
|
|
|
256
262
|
height: calc((100% - 64rpx) / 3);
|
|
257
263
|
top: calc((100% - 64rpx) / 3 + 32rpx);
|
|
258
264
|
left: calc((100% - 64rpx) / 3 + 32rpx);
|
|
259
|
-
background: linear-gradient(180deg, #
|
|
260
|
-
box-shadow: inset 0px -4rpx 0px #
|
|
265
|
+
background: linear-gradient(180deg, #ffee81 0%, #ffd646 100%);
|
|
266
|
+
box-shadow: inset 0px -4rpx 0px #ff7a00;
|
|
261
267
|
border-radius: 50%;
|
|
262
268
|
}
|
|
263
269
|
|
|
264
270
|
.weda-lottery .weda-lottery__turntable-btn.is-actived {
|
|
265
|
-
background: linear-gradient(180deg, #
|
|
266
|
-
box-shadow: inset 0px 4rpx 0px #
|
|
271
|
+
background: linear-gradient(180deg, #ffee81 0%, #ffd646 100%);
|
|
272
|
+
box-shadow: inset 0px 4rpx 0px #ffffff;
|
|
267
273
|
}
|
|
268
274
|
|
|
269
275
|
.weda-lottery .weda-lottery__btn-inner {
|
|
@@ -276,7 +282,7 @@
|
|
|
276
282
|
.weda-lottery .weda-lottery__btn {
|
|
277
283
|
width: 100%;
|
|
278
284
|
height: 100%;
|
|
279
|
-
background: linear-gradient(180deg, #
|
|
285
|
+
background: linear-gradient(180deg, #ff922d 0%, #ff3c76 100%);
|
|
280
286
|
box-shadow: inset 0px 0px 16rpx rgba(234, 27, 53, 0.5);
|
|
281
287
|
border-radius: 50%;
|
|
282
288
|
display: flex;
|
|
@@ -285,7 +291,7 @@
|
|
|
285
291
|
}
|
|
286
292
|
|
|
287
293
|
.weda-lottery .weda-lottery__turntable-btn.is-actived .weda-lottery__btn {
|
|
288
|
-
background: linear-gradient(180deg, #
|
|
294
|
+
background: linear-gradient(180deg, #ff922d 0%, #ff3c76 100%);
|
|
289
295
|
box-shadow: inset 0px 0px 16rpx rgba(234, 27, 53, 0.5);
|
|
290
296
|
}
|
|
291
297
|
|
|
@@ -295,13 +301,13 @@
|
|
|
295
301
|
box-sizing: border-box;
|
|
296
302
|
}
|
|
297
303
|
|
|
298
|
-
.weda-lottery .weda-lottery__btn-image
|
|
304
|
+
.weda-lottery .weda-lottery__btn-image .weda-lottery__btn-text {
|
|
299
305
|
font-weight: 600;
|
|
300
306
|
font-size: 18px;
|
|
301
307
|
line-height: 22px;
|
|
302
308
|
text-align: center;
|
|
303
|
-
color: #
|
|
304
|
-
text-shadow: 0px 0.5px 0px #
|
|
309
|
+
color: #ffffff;
|
|
310
|
+
text-shadow: 0px 0.5px 0px #e42b27;
|
|
305
311
|
max-height: 100%;
|
|
306
312
|
display: -webkit-box;
|
|
307
313
|
overflow: hidden;
|
|
@@ -54,25 +54,22 @@ Component({
|
|
|
54
54
|
|
|
55
55
|
methods: {
|
|
56
56
|
navigaTo: function (itemInfo) {
|
|
57
|
+
let { app } = getApp();
|
|
57
58
|
const item = itemInfo?.currentTarget?.dataset?.item;
|
|
58
59
|
if (item.tapStatus == 'inside') {
|
|
59
|
-
const paramObj =
|
|
60
|
+
const paramObj = {};
|
|
60
61
|
if (item.withParams && item?.params) {
|
|
61
62
|
for (let info of item.params) {
|
|
62
|
-
paramObj
|
|
63
|
+
paramObj[info.key] = info.value;
|
|
63
64
|
}
|
|
64
65
|
}
|
|
65
66
|
item.paramObj = paramObj;
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
}
|
|
72
|
-
wx.redirectTo({
|
|
73
|
-
url: '/pages/' + item?.insideUrl + '/index',
|
|
74
|
-
});
|
|
75
|
-
}
|
|
67
|
+
app.navigateTo({
|
|
68
|
+
mode: 'weDa',
|
|
69
|
+
pageId: item?.insideUrl,
|
|
70
|
+
params:
|
|
71
|
+
item?.withParams && item?.params.length > 0 ? item.paramObj : null,
|
|
72
|
+
});
|
|
76
73
|
}
|
|
77
74
|
},
|
|
78
75
|
},
|
|
@@ -7,11 +7,9 @@
|
|
|
7
7
|
<view class="weda-grid__box">
|
|
8
8
|
<view class="weda-grid-navigation__col">
|
|
9
9
|
<view wx:if="{{col.icon!='自定义图片'}}" class="weda-grid-navigation__icon">
|
|
10
|
+
<view wx:if="{{col.tdicon}}" class="weda-icon t-icon t-icon-{{col.tdicon}}"></view>
|
|
10
11
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
<view wx:if="{{!col.tdicon}}" class="weda-icon lcap-icon-padding lcap-icon lcap-icon-{{col.icon}}">
|
|
14
|
-
</view>
|
|
12
|
+
<view wx:if="{{!col.tdicon}}" class="weda-icon lcap-icon-padding lcap-icon lcap-icon-{{col.icon}}"> </view>
|
|
15
13
|
</view>
|
|
16
14
|
<image wx:if="{{col.icon=='自定义图片'&&col.iconSrc}}" src="{{col.iconSrc}}" class="weda-grid-navigation__img"></image>
|
|
17
15
|
</view>
|