gxd-uni-library-editx 1.0.1 → 1.0.2
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/package.json +1 -1
- package/settings.js.tpl +34 -0
- package/src/components/XdAddress/XdAddress.vue +18 -10
- package/src/components/XdAddressSelect/XdAddressSelect.vue +14 -6
- package/src/components/XdButton/XdButton.vue +1 -1
- package/src/components/XdEditPwd/XdEditPwd.vue +41 -47
- package/src/components/XdFontIcon/css/icon.less +207 -3
- package/src/components/XdItemCardUser/XdItemCardUser.vue +11 -5
- package/src/components/XdItemFilmImage/XdItemFilmImage.vue +12 -1
- package/src/components/XdItemFilmText/XdItemFilmText.vue +15 -2
- package/src/components/XdItemPhysical/XdItemPhysical.vue +10 -5
- package/src/components/XdItemPhysicalPack/XdItemPhysicalPack.vue +11 -4
- package/src/components/XdItemStore/XdItemStore.vue +6 -2
- package/src/components/XdItemUserInfo/XdItemUserInfo.vue +8 -2
- package/src/components/XdLayout/XdLayout.vue +14 -7
- package/src/components/XdMy/XdMy.vue +10 -4
- package/src/components/XdNavTab/XdNavTab.vue +9 -2
- package/src/components/XdNoticeBar/XdNoticeBar.vue +22 -9
- package/src/components/XdOnlineConfirm/XdOnlineConfirm.vue +11 -5
- package/src/components/XdOnlineDetail/XdOnlineDetail.vue +10 -4
- package/src/components/XdOnlinePay/XdOnlinePay.vue +11 -4
- package/src/components/XdOnlineSchedule/XdOnlineSchedule.vue +11 -5
- package/src/components/XdOnlineSeat/XdOnlineSeat.vue +15 -8
- package/src/components/XdOnlineSeatMove/XdOnlineSeatMove.vue +11 -5
- package/src/components/XdRangeSlider/XdRangeSlider.vue +33 -27
- package/src/components/XdSearchBar/XdSearchBar.vue +11 -5
- package/src/components/XdSelect/XdSelect.vue +9 -3
- package/src/components/XdSelectCity/XdSelectCity.vue +13 -6
- package/src/components/XdStoreCashier/XdStoreCashier.vue +13 -8
- package/src/components/XdStoreOrderDetail/XdStoreOrderDetail.vue +17 -10
- package/src/components/XdStoreProductInfo/XdStoreProductInfo.vue +74 -54
- package/src/components/XdSuccess/XdSuccess.vue +10 -4
- package/src/components/XdSwitch/XdSwitch.vue +9 -2
- package/src/components/XdTab/XdTab.vue +34 -26
- package/src/components/XdTag/XdTag.vue +4 -0
- package/src/components/XdTimeLine/XdTimeLine.vue +8 -3
- package/src/components/XdTipsBlock/XdTipsBlock.vue +12 -1
- package/src/components/XdTitleSection/XdTitleSection.vue +10 -3
- package/src/components/XdTitleTab/XdTitleTab.vue +11 -5
- package/src/components/XdUnit/XdUnit.vue +2 -6
- package/src/dome/dome/icon.js +52 -1
- package/src/dome/dome/icon.vue +1 -1
- package/src/dome/dome/notice.vue +5 -0
- package/src/dome/dome/product.vue +4 -4
- package/src/utils/xd.base.js +27 -22
- package/src/websetting.js +10 -1
package/package.json
CHANGED
package/settings.js.tpl
CHANGED
|
@@ -11,6 +11,34 @@ const settings = {
|
|
|
11
11
|
*/
|
|
12
12
|
title: 'xd-uniapp',
|
|
13
13
|
|
|
14
|
+
/**
|
|
15
|
+
* @type {Boolean}
|
|
16
|
+
* @description 底部是否使用插槽模式
|
|
17
|
+
*/
|
|
18
|
+
isFooterUseSlot: true,
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* @type {boolean|string}
|
|
23
|
+
* @description
|
|
24
|
+
* 1、无返回页面是否开启跳转到入口页面(undefined|true|false)使用老项目逻辑
|
|
25
|
+
* 2、新项目中不需要处理事件 (new)editX项目使用逻辑
|
|
26
|
+
*/
|
|
27
|
+
noPrevPageToIndex: 'new',
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @description 设置小程序默认入口
|
|
33
|
+
*/
|
|
34
|
+
index: '/dome/dome/index',
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* @description 百度AK
|
|
38
|
+
* @type {String}
|
|
39
|
+
*/
|
|
40
|
+
baiduAk: 'btKt57MWjMx2P1ds2OjZIttLOOjR2Ndf',
|
|
41
|
+
|
|
14
42
|
/**
|
|
15
43
|
* @type {string}
|
|
16
44
|
* @description 系统版本
|
|
@@ -55,6 +83,12 @@ const settings = {
|
|
|
55
83
|
*/
|
|
56
84
|
isTestData: false,
|
|
57
85
|
|
|
86
|
+
/**
|
|
87
|
+
* @type {boolean} true | false
|
|
88
|
+
* @description 是否显示console内容
|
|
89
|
+
*/
|
|
90
|
+
isLogs: false,
|
|
91
|
+
|
|
58
92
|
/**
|
|
59
93
|
* @type {number}
|
|
60
94
|
* @description 开发环境端口号
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
maxlength="20"
|
|
25
25
|
v-model="receipt_username"/>
|
|
26
26
|
</view>
|
|
27
|
-
<view class="xd-address__body-item-line" :style="{borderColor:
|
|
27
|
+
<view class="xd-address__body-item-line" :style="{borderColor: styleMainColor}"></view>
|
|
28
28
|
</view>
|
|
29
29
|
<view class="xd-address__body-item">
|
|
30
30
|
<view class="xd-address__body-item-label">手机号码</view>
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
:adjust-position="false"
|
|
38
38
|
v-model="receipt_phone"/>
|
|
39
39
|
</view>
|
|
40
|
-
<view class="xd-address__body-item-line" :style="{borderColor:
|
|
40
|
+
<view class="xd-address__body-item-line" :style="{borderColor: styleMainColor}"></view>
|
|
41
41
|
</view>
|
|
42
42
|
<view class="xd-address__body-item">
|
|
43
43
|
<view class="xd-address__body-item-label">所在地区</view>
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
<view @click="toLocation">
|
|
49
49
|
<xd-font-icon size="30" icon="iconshouhuodizhi" color="#999"></xd-font-icon>
|
|
50
50
|
</view>
|
|
51
|
-
<view class="xd-address__body-item-line" :style="{borderColor:
|
|
51
|
+
<view class="xd-address__body-item-line" :style="{borderColor: styleMainColor, width: '95%'}"></view>
|
|
52
52
|
</view>
|
|
53
53
|
<view class="xd-address__body-item">
|
|
54
54
|
<view class="xd-address__body-item-label">详细地址</view>
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
v-model="receipt_address"></textarea>
|
|
67
67
|
<div class="xd-address__body-item-input-tips" v-if="showTips">记得完善门牌号</div>
|
|
68
68
|
</view>
|
|
69
|
-
<view class="xd-address__body-item-line" :style="{borderColor:
|
|
69
|
+
<view class="xd-address__body-item-line" :style="{borderColor: styleMainColor}"></view>
|
|
70
70
|
</view>
|
|
71
71
|
</view>
|
|
72
72
|
<view class="xd-address__set">
|
|
@@ -105,13 +105,13 @@
|
|
|
105
105
|
<view
|
|
106
106
|
class="xd-select__body-item-icon"
|
|
107
107
|
:style="{
|
|
108
|
-
borderColor :
|
|
109
|
-
background: (level < index? '#fff':
|
|
108
|
+
borderColor : styleMainColor,
|
|
109
|
+
background: (level < index? '#fff': styleMainColor)
|
|
110
110
|
}"
|
|
111
111
|
></view>
|
|
112
112
|
</view>
|
|
113
113
|
</view>
|
|
114
|
-
<view class="xd-select__body-line" :style="{background
|
|
114
|
+
<view class="xd-select__body-line" :style="{background:styleMainColor}"></view>
|
|
115
115
|
</view>
|
|
116
116
|
<view class="xd-select__list" v-if="cityList.length > 0">
|
|
117
117
|
<view
|
|
@@ -130,6 +130,9 @@
|
|
|
130
130
|
import XdSwitch from "@/components/XdSwitch/XdSwitch";
|
|
131
131
|
import XdButton from "@/components/XdButton/XdButton";
|
|
132
132
|
import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
|
|
133
|
+
import {
|
|
134
|
+
getParentsStyle, //获取页面风格单个键值值
|
|
135
|
+
} from '@/utils/xd.base';
|
|
133
136
|
|
|
134
137
|
export default {
|
|
135
138
|
name: "XdAddress",
|
|
@@ -180,6 +183,9 @@
|
|
|
180
183
|
focusNumber: -1,
|
|
181
184
|
latitude: null,
|
|
182
185
|
longitude: null,
|
|
186
|
+
|
|
187
|
+
//使用全局主样式
|
|
188
|
+
styleMainColor: '',
|
|
183
189
|
}
|
|
184
190
|
},
|
|
185
191
|
computed: {
|
|
@@ -200,10 +206,12 @@
|
|
|
200
206
|
}
|
|
201
207
|
},
|
|
202
208
|
},
|
|
203
|
-
|
|
204
|
-
created() {
|
|
209
|
+
|
|
210
|
+
async created() {
|
|
211
|
+
this.styleMainColor = await getParentsStyle(this.$parent, '$mainColor')
|
|
212
|
+
|
|
205
213
|
this.setValue();
|
|
206
|
-
|
|
214
|
+
|
|
207
215
|
/**监听用户定位成功事件**/
|
|
208
216
|
this.$bus.$on('onUserLocation', (location) => {
|
|
209
217
|
console.log('onUserLocation', location)
|
|
@@ -16,13 +16,13 @@
|
|
|
16
16
|
<view
|
|
17
17
|
class="xd-select__body-item-icon"
|
|
18
18
|
:style="{
|
|
19
|
-
borderColor :
|
|
20
|
-
background: (level < index? '#fff':
|
|
19
|
+
borderColor : styleMainColor,
|
|
20
|
+
background: (level < index? '#fff': styleMainColor)
|
|
21
21
|
}"
|
|
22
22
|
></view>
|
|
23
23
|
</view>
|
|
24
24
|
</view>
|
|
25
|
-
<view class="xd-select__body-line" :style="{background
|
|
25
|
+
<view class="xd-select__body-line" :style="{background:styleMainColor}"></view>
|
|
26
26
|
</view>
|
|
27
27
|
<view class="xd-select__list" v-if="cityList.length > 0">
|
|
28
28
|
<view
|
|
@@ -39,6 +39,9 @@
|
|
|
39
39
|
import XdSwitch from "@/components/XdSwitch/XdSwitch";
|
|
40
40
|
import XdButton from "@/components/XdButton/XdButton";
|
|
41
41
|
import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
|
|
42
|
+
import {
|
|
43
|
+
getParentsStyle, //获取页面风格单个键值值
|
|
44
|
+
} from '@/utils/xd.base';
|
|
42
45
|
|
|
43
46
|
export default {
|
|
44
47
|
name: "XdAddressSelect",
|
|
@@ -63,7 +66,10 @@
|
|
|
63
66
|
city_name: [], //城市名称
|
|
64
67
|
city_code: [], //城市代码
|
|
65
68
|
city_selected_data: [], //选择城市详情信息
|
|
66
|
-
city_title: ['省份/区域','城市','区/县', '街道']
|
|
69
|
+
city_title: ['省份/区域','城市','区/县', '街道'],
|
|
70
|
+
|
|
71
|
+
//使用全局主样式
|
|
72
|
+
styleMainColor: '',
|
|
67
73
|
}
|
|
68
74
|
},
|
|
69
75
|
|
|
@@ -72,8 +78,10 @@
|
|
|
72
78
|
return this.$xdUniHelper.cloneDeep(this.city_title).splice(0, this.maxLevel);
|
|
73
79
|
},
|
|
74
80
|
},
|
|
75
|
-
|
|
76
|
-
created(){
|
|
81
|
+
|
|
82
|
+
async created() {
|
|
83
|
+
this.styleMainColor = await getParentsStyle(this.$parent, '$mainColor')
|
|
84
|
+
|
|
77
85
|
if(this.level === -1) {
|
|
78
86
|
this.getCity(0);
|
|
79
87
|
}
|
|
@@ -208,7 +208,7 @@
|
|
|
208
208
|
|
|
209
209
|
this.uiType = this.existKey(this.type);
|
|
210
210
|
this.uiSize = this.existKey(this.size, 'btnSizeList');
|
|
211
|
-
this.$set(this.btnBtnColor, 'primary', style.$
|
|
211
|
+
this.$set(this.btnBtnColor, 'primary', style.$mainColor);
|
|
212
212
|
this.$set(this.btnBtnColor, 'subPrimary', this.$color(this.btnBtnColor.primary).alpha(0.4).lighten(0.35).hex());
|
|
213
213
|
},
|
|
214
214
|
methods:{
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<view>
|
|
3
3
|
<xd-dailog
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
4
|
+
:show.sync="uiShow"
|
|
5
|
+
width="90%"
|
|
6
|
+
title="设置支付密码"
|
|
7
|
+
:cancel="false"
|
|
8
|
+
:confirm="false"
|
|
9
|
+
:zIndex="1100"
|
|
10
|
+
:showClose="showClose"
|
|
11
|
+
@close="handleClose"
|
|
12
12
|
>
|
|
13
13
|
<view class="pwd">
|
|
14
14
|
<view class="pwd__title" v-if="title">
|
|
@@ -23,12 +23,12 @@
|
|
|
23
23
|
</view>
|
|
24
24
|
<view>
|
|
25
25
|
<input
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
26
|
+
:disabled="editPhone!==''"
|
|
27
|
+
:style="{width:370+'rpx'}"
|
|
28
|
+
type="number"
|
|
29
|
+
placeholder="请输入手机号"
|
|
30
|
+
:adjust-position="false"
|
|
31
|
+
v-model="form.phone"
|
|
32
32
|
/>
|
|
33
33
|
</view>
|
|
34
34
|
</view>
|
|
@@ -39,20 +39,20 @@
|
|
|
39
39
|
<view>验证码:</view>
|
|
40
40
|
<view>
|
|
41
41
|
<input
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
42
|
+
:style="{width:160+'rpx',marginRight:30+'rpx'}"
|
|
43
|
+
type="text"
|
|
44
|
+
placeholder="请输入验证码"
|
|
45
|
+
:adjust-position="false"
|
|
46
|
+
v-model="form.sms_code"/>
|
|
47
47
|
</view>
|
|
48
48
|
</view>
|
|
49
49
|
<view style="flex-shrink: 0;">
|
|
50
50
|
<xd-button
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
51
|
+
size="mini"
|
|
52
|
+
type="default"
|
|
53
|
+
@click="getSmsCodeHandle"
|
|
54
|
+
:disabled="!form.phone || status"
|
|
55
|
+
:style="{width:codeWidth+'rpx'}"
|
|
56
56
|
>
|
|
57
57
|
{{statusMsg}}
|
|
58
58
|
</xd-button>
|
|
@@ -60,31 +60,27 @@
|
|
|
60
60
|
</view>
|
|
61
61
|
|
|
62
62
|
<view class="pwd__form-item">
|
|
63
|
-
<view>
|
|
64
|
-
设置支付密码:
|
|
65
|
-
</view>
|
|
63
|
+
<view>设置支付密码:</view>
|
|
66
64
|
<view>
|
|
67
65
|
<input
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
66
|
+
type="password"
|
|
67
|
+
placeholder="请输入六位纯数字密码"
|
|
68
|
+
:adjust-position="false"
|
|
69
|
+
v-model="form.password"
|
|
70
|
+
maxlength="6"
|
|
73
71
|
/>
|
|
74
72
|
</view>
|
|
75
73
|
</view>
|
|
76
74
|
|
|
77
75
|
<view class="pwd__form-item">
|
|
78
|
-
<view>
|
|
79
|
-
确认支付密码:
|
|
80
|
-
</view>
|
|
76
|
+
<view>确认支付密码:</view>
|
|
81
77
|
<view>
|
|
82
78
|
<input
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
79
|
+
type="password"
|
|
80
|
+
placeholder="请输入确认密码"
|
|
81
|
+
:adjust-position="false"
|
|
82
|
+
v-model="form.confirmPwd"
|
|
83
|
+
maxlength="6"
|
|
88
84
|
/>
|
|
89
85
|
</view>
|
|
90
86
|
</view>
|
|
@@ -92,13 +88,11 @@
|
|
|
92
88
|
|
|
93
89
|
<view>
|
|
94
90
|
<xd-button
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
>
|
|
100
|
-
确定
|
|
101
|
-
</xd-button>
|
|
91
|
+
type="primary"
|
|
92
|
+
size="mini"
|
|
93
|
+
:disabled="!form.phone || !form.sms_code || !form.password || !form.confirmPwd"
|
|
94
|
+
@click="submit"
|
|
95
|
+
>确定</xd-button>
|
|
102
96
|
</view>
|
|
103
97
|
</view>
|
|
104
98
|
</xd-dailog>
|