@xtdev/xt-miniprogram-ui 1.0.18 → 1.0.20
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.
|
@@ -1,25 +1,27 @@
|
|
|
1
1
|
Component({
|
|
2
2
|
options: {
|
|
3
|
-
multipleSlots: true
|
|
3
|
+
multipleSlots: true,
|
|
4
4
|
},
|
|
5
5
|
properties: {
|
|
6
6
|
contentSlot: {
|
|
7
7
|
type: Boolean,
|
|
8
|
-
value: false
|
|
8
|
+
value: false,
|
|
9
|
+
},
|
|
10
|
+
headerSlot: {
|
|
11
|
+
type: Boolean,
|
|
12
|
+
value: false,
|
|
9
13
|
},
|
|
10
14
|
item: {
|
|
11
15
|
type: Object,
|
|
12
|
-
value: false
|
|
13
|
-
}
|
|
16
|
+
value: false,
|
|
17
|
+
},
|
|
14
18
|
},
|
|
15
19
|
|
|
16
20
|
/**
|
|
17
21
|
* 组件的初始数据
|
|
18
22
|
*/
|
|
19
|
-
data: {
|
|
20
|
-
},
|
|
21
|
-
attached: function () {
|
|
22
|
-
},
|
|
23
|
+
data: {},
|
|
24
|
+
attached: function () {},
|
|
23
25
|
|
|
24
26
|
/**
|
|
25
27
|
* 组件的方法列表
|
|
@@ -30,12 +32,12 @@ Component({
|
|
|
30
32
|
wx.makePhoneCall({
|
|
31
33
|
phoneNumber: tel, // 这里是电话号码[假的]可以调用自己的数据this.data.xxx
|
|
32
34
|
success: function () {
|
|
33
|
-
console.log(
|
|
35
|
+
console.log("拨打电话成功!");
|
|
34
36
|
},
|
|
35
37
|
fail: function () {
|
|
36
|
-
console.log(
|
|
37
|
-
}
|
|
38
|
+
console.log("拨打电话失败!");
|
|
39
|
+
},
|
|
38
40
|
});
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
+
},
|
|
42
|
+
},
|
|
41
43
|
});
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
<view class="list-item">
|
|
2
|
-
|
|
3
|
-
<view class="head">
|
|
4
|
-
<!-- 标题 -->
|
|
2
|
+
<slot wx:if="{{headerSlot}}" name="header"></slot>
|
|
3
|
+
<view wx:else class="head">
|
|
5
4
|
<view class="flex-between ac">
|
|
6
5
|
<view class="ft20 c000 bold title-width">{{item.title}}</view>
|
|
7
|
-
<view class="sub-title" style="color: {{item.subTitleColor}};">
|
|
6
|
+
<view wx:if="{{item.subTitle}}" class="sub-title" style="color: {{item.subTitleColor}};">
|
|
7
|
+
{{item.subTitle}}
|
|
8
|
+
</view>
|
|
8
9
|
</view>
|
|
9
|
-
<!-- 下单时间 -->
|
|
10
10
|
</view>
|
|
11
|
-
<!-- 列表中间 -->
|
|
12
|
-
<!-- 除非可申请宴席状态列表 -->
|
|
13
11
|
<slot wx:if="{{contentSlot}}" name="content"></slot>
|
|
14
12
|
<view wx:else class="card-cell-content">
|
|
15
13
|
<view class="flex-between center" wx:for="{{item.dataList}}" wx:for-item="_item" wx:key="index">
|
|
16
14
|
<view class="center-left">{{_item.label}}</view>
|
|
17
|
-
<view wx:if="{{_item.valueType === 'text' || !_item.valueType}}" class="center-right">
|
|
15
|
+
<view wx:if="{{_item.valueType === 'text' || !_item.valueType}}" class="center-right">
|
|
16
|
+
{{_item.value}}
|
|
17
|
+
</view>
|
|
18
18
|
<view bindtap="call" data-tel="{{_item.value}}" wx:elif="{{_item.valueType === 'tel'}}" class="center-right">
|
|
19
19
|
{{_item.value}}
|
|
20
20
|
<view class="call-box">
|
|
@@ -49,6 +49,10 @@
|
|
|
49
49
|
flex: 1;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
+
.ac {
|
|
53
|
+
align-items: center;
|
|
54
|
+
}
|
|
55
|
+
|
|
52
56
|
.flex-end {
|
|
53
57
|
display: flex;
|
|
54
58
|
justify-content: flex-end;
|
|
@@ -500,6 +504,6 @@
|
|
|
500
504
|
padding-bottom: 32rpx;
|
|
501
505
|
}
|
|
502
506
|
.card-cell-footer{
|
|
503
|
-
text-align: right;
|
|
504
|
-
border-top: 1rpx solid #ededed;
|
|
507
|
+
/* text-align: right;
|
|
508
|
+
border-top: 1rpx solid #ededed; */
|
|
505
509
|
}
|
|
@@ -58,14 +58,8 @@
|
|
|
58
58
|
border: 2rpx solid #dddddd;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
.uni-numbox__minus {
|
|
62
|
-
border-
|
|
63
|
-
border-bottom-left-radius: 64rpx;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
.uni-numbox__plus {
|
|
67
|
-
border-top-right-radius: 64rpx;
|
|
68
|
-
border-bottom-right-radius: 64rpx;
|
|
61
|
+
.uni-numbox__minus, .uni-numbox__plus {
|
|
62
|
+
border-radius: 64rpx;
|
|
69
63
|
}
|
|
70
64
|
|
|
71
65
|
.uni-numbox--text {
|