weapps-plugin-jingtong-verify 1.6.1 → 1.6.2-beta.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/README.md +1 -2
- package/app.json +33 -33
- package/package.json +20 -20
- package/sdk.js +313 -289
- package/weapps-plugin-jingtong-verify/components/card-modal/card-modal.js +31 -31
- package/weapps-plugin-jingtong-verify/components/card-modal/card-modal.json +3 -3
- package/weapps-plugin-jingtong-verify/components/card-modal/card-modal.wxml +9 -9
- package/weapps-plugin-jingtong-verify/components/card-modal/card-modal.wxss +65 -65
- package/weapps-plugin-jingtong-verify/components/face-error-modal/face-error-modal.js +37 -37
- package/weapps-plugin-jingtong-verify/components/face-error-modal/face-error-modal.json +3 -3
- package/weapps-plugin-jingtong-verify/components/face-error-modal/face-error-modal.wxml +30 -30
- package/weapps-plugin-jingtong-verify/components/face-error-modal/face-error-modal.wxss +79 -79
- package/weapps-plugin-jingtong-verify/components/face-modal/face-modal.js +32 -32
- package/weapps-plugin-jingtong-verify/components/face-modal/face-modal.json +3 -3
- package/weapps-plugin-jingtong-verify/components/face-modal/face-modal.wxml +16 -16
- package/weapps-plugin-jingtong-verify/components/face-modal/face-modal.wxss +57 -57
- package/weapps-plugin-jingtong-verify/components/gsd-lib/anim/anim.min.js +1 -1
- package/weapps-plugin-jingtong-verify/components/gsd-lib/crypto/crypto.js +37 -37
- package/weapps-plugin-jingtong-verify/components/gsd-lib/crypto/index.js +44 -44
- package/weapps-plugin-jingtong-verify/components/gsd-lib/dayjs/index.js +351 -351
- package/weapps-plugin-jingtong-verify/components/gsd-lib/event/index.js +117 -117
- package/weapps-plugin-jingtong-verify/components/gsd-lib/index.js +63 -63
- package/weapps-plugin-jingtong-verify/components/gsd-lib/map/index.js +10 -10
- package/weapps-plugin-jingtong-verify/components/gsd-lib/map/qmap.js +6 -6
- package/weapps-plugin-jingtong-verify/components/gsd-lib/storage/index.js +114 -114
- package/weapps-plugin-jingtong-verify/components/gsd-lib/utils/index.js +218 -218
- package/weapps-plugin-jingtong-verify/components/gsd-ui/behaviors/formCheck.js +72 -72
- package/weapps-plugin-jingtong-verify/components/gsd-ui/behaviors/formController.js +47 -47
- package/weapps-plugin-jingtong-verify/components/gsd-ui/behaviors/icon.js +11 -11
- package/weapps-plugin-jingtong-verify/components/gsd-ui/behaviors/list.js +16 -16
- package/weapps-plugin-jingtong-verify/components/gsd-ui/behaviors/navigator.js +33 -33
- package/weapps-plugin-jingtong-verify/components/gsd-ui/behaviors/primarySecondButton.js +18 -18
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-agree/index.js +12 -12
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-agree/index.json +5 -5
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-agree/index.wxml +15 -15
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-badge/index.js +47 -47
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-badge/index.json +3 -3
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-badge/index.wxml +13 -13
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-button-group/index.js +44 -44
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-button-group/index.json +5 -5
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-button-group/index.wxml +28 -28
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-cell/index.js +30 -30
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-cell/index.json +6 -6
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-cell/index.wxml +42 -42
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-cell/index.wxss +1 -1
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-date-picker-en/index.js +418 -418
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-date-picker-en/index.json +5 -5
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-date-picker-en/index.wxml +29 -29
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-dropdown/index.js +11 -11
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-dropdown/index.json +3 -3
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-dropdown/index.wxml +4 -4
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-form/index.js +179 -179
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-form/index.json +6 -6
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-form/index.wxml +16 -16
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-form-cell/index.js +92 -92
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-form-cell/index.json +6 -6
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-form-cell/index.wxml +12 -12
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-form-cell/index.wxss +2 -2
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-form-item/index.js +49 -49
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-form-item/index.json +3 -3
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-form-item/index.wxml +14 -14
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-icon/index.js +33 -33
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-icon/index.json +3 -3
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-icon/index.wxml +2 -2
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-index-list/index.js +108 -108
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-index-list/index.json +6 -6
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-index-list/index.wxml +53 -53
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-input/index.js +236 -236
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-input/index.json +8 -8
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-input/index.wxml +49 -49
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-picker/index.js +328 -328
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-picker/index.json +6 -6
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-picker/index.wxml +26 -26
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-popover/index.js +159 -159
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-popover/index.json +3 -3
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-popover/index.wxml +10 -10
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-search/index.js +112 -112
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-search/index.json +5 -5
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-search/index.wxml +21 -21
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-switch/index.js +21 -21
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-switch/index.json +7 -7
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-switch/index.wxml +16 -16
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-tips/index.js +50 -50
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-tips/index.json +5 -5
- package/weapps-plugin-jingtong-verify/components/gsd-ui/g-tips/index.wxml +27 -27
- package/weapps-plugin-jingtong-verify/components/gsd-ui/static/image/add.svg +13 -13
- package/weapps-plugin-jingtong-verify/components/gsd-ui/static/image/arrow.svg +14 -14
- package/weapps-plugin-jingtong-verify/components/gsd-ui/static/image/delete.svg +16 -16
- package/weapps-plugin-jingtong-verify/components/gsd-ui/static/image/preview.svg +21 -21
- package/weapps-plugin-jingtong-verify/components/gsd-ui/static/image/user.svg +13 -13
- package/weapps-plugin-jingtong-verify/components/gsd-ui/static/style/components/g-agree.wxss +147 -147
- package/weapps-plugin-jingtong-verify/components/gsd-ui/static/style/components/g-badge.wxss +41 -41
- package/weapps-plugin-jingtong-verify/components/gsd-ui/static/style/components/g-button-group.wxss +244 -244
- package/weapps-plugin-jingtong-verify/components/gsd-ui/static/style/components/g-cell.wxss +220 -220
- package/weapps-plugin-jingtong-verify/components/gsd-ui/static/style/components/g-dropdown.wxss +115 -115
- package/weapps-plugin-jingtong-verify/components/gsd-ui/static/style/components/g-form-cell.wxss +101 -101
- package/weapps-plugin-jingtong-verify/components/gsd-ui/static/style/components/g-form-item.wxss +174 -174
- package/weapps-plugin-jingtong-verify/components/gsd-ui/static/style/components/g-form.wxss +101 -101
- package/weapps-plugin-jingtong-verify/components/gsd-ui/static/style/components/g-icon.wxss +268 -268
- package/weapps-plugin-jingtong-verify/components/gsd-ui/static/style/components/g-index-list.wxss +206 -206
- package/weapps-plugin-jingtong-verify/components/gsd-ui/static/style/components/g-input.wxss +206 -206
- package/weapps-plugin-jingtong-verify/components/gsd-ui/static/style/components/g-picker.wxss +139 -139
- package/weapps-plugin-jingtong-verify/components/gsd-ui/static/style/components/g-popover.wxss +129 -129
- package/weapps-plugin-jingtong-verify/components/gsd-ui/static/style/components/g-search.wxss +171 -171
- package/weapps-plugin-jingtong-verify/components/gsd-ui/static/style/components/g-switch.wxss +176 -176
- package/weapps-plugin-jingtong-verify/components/gsd-ui/static/style/components/g-tips.wxss +173 -173
- package/weapps-plugin-jingtong-verify/components/gsd-ui/static/style/icon/iconfont.wxss +160 -160
- package/weapps-plugin-jingtong-verify/components/gsd-ui/static/style/main.wxss +283 -283
- package/weapps-plugin-jingtong-verify/components/gsd-ui/utils/helper.js +55 -55
- package/weapps-plugin-jingtong-verify/components/gsd-ui/utils/validType.js +117 -117
- package/weapps-plugin-jingtong-verify/components/gsd-ui/utils/validator.js +106 -106
- package/weapps-plugin-jingtong-verify/components/lock-face-modal/lock-face-modal.js +32 -32
- package/weapps-plugin-jingtong-verify/components/lock-face-modal/lock-face-modal.json +3 -3
- package/weapps-plugin-jingtong-verify/components/lock-face-modal/lock-face-modal.wxml +8 -8
- package/weapps-plugin-jingtong-verify/components/lock-face-modal/lock-face-modal.wxss +57 -57
- package/weapps-plugin-jingtong-verify/components/modal/modal.js +32 -32
- package/weapps-plugin-jingtong-verify/components/modal/modal.json +3 -3
- package/weapps-plugin-jingtong-verify/components/modal/modal.wxml +28 -28
- package/weapps-plugin-jingtong-verify/components/modal/modal.wxss +84 -84
- package/weapps-plugin-jingtong-verify/components/my-modal/my-modal.js +82 -82
- package/weapps-plugin-jingtong-verify/components/my-modal/my-modal.json +3 -3
- package/weapps-plugin-jingtong-verify/components/my-modal/my-modal.wxml +18 -18
- package/weapps-plugin-jingtong-verify/components/my-modal/my-modal.wxss +72 -72
- package/weapps-plugin-jingtong-verify/components/tip-modal/tip-modal.js +39 -39
- package/weapps-plugin-jingtong-verify/components/tip-modal/tip-modal.json +3 -3
- package/weapps-plugin-jingtong-verify/components/tip-modal/tip-modal.wxml +9 -9
- package/weapps-plugin-jingtong-verify/components/tip-modal/tip-modal.wxss +51 -51
- package/weapps-plugin-jingtong-verify/i18n/index.js +7 -7
- package/weapps-plugin-jingtong-verify/i18n/logout.js +10 -10
- package/weapps-plugin-jingtong-verify/i18n/rules.js +262 -262
- package/weapps-plugin-jingtong-verify/pages/bind-phone/bind-phone.js +86 -86
- package/weapps-plugin-jingtong-verify/pages/bind-phone/bind-phone.json +6 -6
- package/weapps-plugin-jingtong-verify/pages/bind-phone/bind-phone.wxml +20 -20
- package/weapps-plugin-jingtong-verify/pages/bind-phone/bind-phone.wxss +51 -51
- package/weapps-plugin-jingtong-verify/pages/confirm-phone/confirm-phone.js +167 -167
- package/weapps-plugin-jingtong-verify/pages/confirm-phone/confirm-phone.json +3 -3
- package/weapps-plugin-jingtong-verify/pages/confirm-phone/confirm-phone.wxml +30 -30
- package/weapps-plugin-jingtong-verify/pages/confirm-phone/confirm-phone.wxss +91 -91
- package/weapps-plugin-jingtong-verify/pages/face-error-reason/face-error-reason.js +79 -79
- package/weapps-plugin-jingtong-verify/pages/face-error-reason/face-error-reason.json +5 -5
- package/weapps-plugin-jingtong-verify/pages/face-error-reason/face-error-reason.wxml +19 -19
- package/weapps-plugin-jingtong-verify/pages/face-error-reason/face-error-reason.wxss +44 -44
- package/weapps-plugin-jingtong-verify/pages/face-verify/face-verify.js +1557 -1547
- package/weapps-plugin-jingtong-verify/pages/face-verify/face-verify.json +17 -17
- package/weapps-plugin-jingtong-verify/pages/face-verify/face-verify.wxml +504 -504
- package/weapps-plugin-jingtong-verify/pages/face-verify/face-verify.wxss +133 -133
- package/weapps-plugin-jingtong-verify/pages/log-off/log-off.js +127 -127
- package/weapps-plugin-jingtong-verify/pages/log-off/log-off.json +5 -5
- package/weapps-plugin-jingtong-verify/pages/log-off/log-off.wxml +36 -36
- package/weapps-plugin-jingtong-verify/pages/log-off/log-off.wxss +60 -60
- package/weapps-plugin-jingtong-verify/pages/login-manage/login-manage.js +106 -106
- package/weapps-plugin-jingtong-verify/pages/login-manage/login-manage.json +3 -3
- package/weapps-plugin-jingtong-verify/pages/login-manage/login-manage.wxml +29 -29
- package/weapps-plugin-jingtong-verify/pages/login-manage/login-manage.wxss +68 -68
- package/weapps-plugin-jingtong-verify/pages/logoff-success/logoff-success.js +24 -24
- package/weapps-plugin-jingtong-verify/pages/logoff-success/logoff-success.json +3 -3
- package/weapps-plugin-jingtong-verify/pages/logoff-success/logoff-success.wxml +12 -12
- package/weapps-plugin-jingtong-verify/pages/logoff-success/logoff-success.wxss +33 -33
- package/weapps-plugin-jingtong-verify/pages/nation-list/nation-list.js +120 -120
- package/weapps-plugin-jingtong-verify/pages/nation-list/nation-list.json +6 -6
- package/weapps-plugin-jingtong-verify/pages/nation-list/nation-list.wxml +9 -9
- package/weapps-plugin-jingtong-verify/pages/nation-list/nation-list.wxss +1 -1
- package/weapps-plugin-jingtong-verify/pages/passport-verify/passport-verify.js +865 -854
- package/weapps-plugin-jingtong-verify/pages/passport-verify/passport-verify.json +11 -11
- package/weapps-plugin-jingtong-verify/pages/passport-verify/passport-verify.wxml +162 -162
- package/weapps-plugin-jingtong-verify/pages/passport-verify/passport-verify.wxss +64 -64
- package/weapps-plugin-jingtong-verify/pages/setting/setting.js +328 -328
- package/weapps-plugin-jingtong-verify/pages/setting/setting.json +5 -5
- package/weapps-plugin-jingtong-verify/pages/setting/setting.wxml +91 -91
- package/weapps-plugin-jingtong-verify/pages/setting/setting.wxss +69 -69
- package/weapps-plugin-jingtong-verify/pages/user-info/user-info.js +306 -306
- package/weapps-plugin-jingtong-verify/pages/user-info/user-info.json +7 -7
- package/weapps-plugin-jingtong-verify/pages/user-info/user-info.wxml +142 -142
- package/weapps-plugin-jingtong-verify/pages/user-info/user-info.wxss +110 -110
- package/weapps-plugin-jingtong-verify/style/page.wxss +13 -13
- package/weapps-plugin-jingtong-verify/utils/QDTrackerNew/QDTracker.js +15 -15
- package/weapps-plugin-jingtong-verify/utils/QDTrackerNew/QDTrackerMain.js +59 -59
- package/weapps-plugin-jingtong-verify/utils/country.js +209 -209
- package/weapps-plugin-jingtong-verify/utils/index.js +306 -306
- package/weapps-plugin-jingtong-verify/utils/jsencrypt.min.js +1 -1
- package/weapps-plugin-jingtong-verify/utils/request.js +1 -1
- package/weapps-plugin-jingtong-verify/utils/rules.js +301 -301
- package/weapps-plugin-jingtong-verify/utils/tifadmin_config.js +61 -61
- package/weapps-plugin-jingtong-verify/utils/validate.js +772 -772
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
|
|
2
|
-
Component({
|
|
3
|
-
/**
|
|
4
|
-
* 组件的属性列表
|
|
5
|
-
*/
|
|
6
|
-
properties: {
|
|
7
|
-
visible: {
|
|
8
|
-
type: Boolean,
|
|
9
|
-
value: false
|
|
10
|
-
},
|
|
11
|
-
status: {
|
|
12
|
-
type: String,
|
|
13
|
-
value: 'info'
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* 组件的初始数据
|
|
19
|
-
*/
|
|
20
|
-
data: {
|
|
21
|
-
content: ''
|
|
22
|
-
},
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* 组件的方法列表
|
|
26
|
-
*/
|
|
27
|
-
methods: {
|
|
28
|
-
handleOk() {
|
|
29
|
-
this.triggerEvent('ok')
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
})
|
|
1
|
+
|
|
2
|
+
Component({
|
|
3
|
+
/**
|
|
4
|
+
* 组件的属性列表
|
|
5
|
+
*/
|
|
6
|
+
properties: {
|
|
7
|
+
visible: {
|
|
8
|
+
type: Boolean,
|
|
9
|
+
value: false
|
|
10
|
+
},
|
|
11
|
+
status: {
|
|
12
|
+
type: String,
|
|
13
|
+
value: 'info'
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* 组件的初始数据
|
|
19
|
+
*/
|
|
20
|
+
data: {
|
|
21
|
+
content: ''
|
|
22
|
+
},
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* 组件的方法列表
|
|
26
|
+
*/
|
|
27
|
+
methods: {
|
|
28
|
+
handleOk() {
|
|
29
|
+
this.triggerEvent('ok')
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
})
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
{
|
|
2
|
-
"component": true,
|
|
3
|
-
"usingComponents": {}
|
|
1
|
+
{
|
|
2
|
+
"component": true,
|
|
3
|
+
"usingComponents": {}
|
|
4
4
|
}
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
<view wx:if="{{ visible }}" class="modal-view {{status}}">
|
|
2
|
-
<view class="modal-box">
|
|
3
|
-
<image wx:if="{{ status === 'info' }}" src="../../images/modal-info.png" class="modal-img" />
|
|
4
|
-
<image wx:if="{{ status === 'warning' }}" src="../../images/modal-warning.png" class="modal-img" />
|
|
5
|
-
<image wx:if="{{ status === 'error' }}" src="../../images/modal-error.png" class="modal-img" />
|
|
6
|
-
<view class="title"></view>
|
|
7
|
-
<view wx:if="{{ status === 'info' }}" class="content">
|
|
8
|
-
<view>Identity verification is in progress,</view>
|
|
9
|
-
<view>which usually takes about </view>
|
|
10
|
-
<view>one minute. </view>
|
|
11
|
-
<view>Please log in again later.</view>
|
|
12
|
-
</view>
|
|
13
|
-
<view wx:if="{{ status === 'warning' }}" class="content">
|
|
14
|
-
<view>Your identity information was</view>
|
|
15
|
-
<view>not found. Please ensure your</view>
|
|
16
|
-
<view>information is entered correctly </view>
|
|
17
|
-
<view>and try again.</view>
|
|
18
|
-
</view>
|
|
19
|
-
<view wx:if="{{ status === 'error' }}" class="content">
|
|
20
|
-
<view>Your identity information could</view>
|
|
21
|
-
<view>not be verified. Please ensure</view>
|
|
22
|
-
<view>your information is entered</view>
|
|
23
|
-
<view>correctly and try again.</view>
|
|
24
|
-
</view>
|
|
25
|
-
<view class="btn-view">
|
|
26
|
-
<button class="btn" type="primary" bindtap="handleOk">OK</button>
|
|
27
|
-
</view>
|
|
28
|
-
</view>
|
|
1
|
+
<view wx:if="{{ visible }}" class="modal-view {{status}}">
|
|
2
|
+
<view class="modal-box">
|
|
3
|
+
<image wx:if="{{ status === 'info' }}" src="../../images/modal-info.png" class="modal-img" />
|
|
4
|
+
<image wx:if="{{ status === 'warning' }}" src="../../images/modal-warning.png" class="modal-img" />
|
|
5
|
+
<image wx:if="{{ status === 'error' }}" src="../../images/modal-error.png" class="modal-img" />
|
|
6
|
+
<view class="title"></view>
|
|
7
|
+
<view wx:if="{{ status === 'info' }}" class="content">
|
|
8
|
+
<view>Identity verification is in progress,</view>
|
|
9
|
+
<view>which usually takes about </view>
|
|
10
|
+
<view>one minute. </view>
|
|
11
|
+
<view>Please log in again later.</view>
|
|
12
|
+
</view>
|
|
13
|
+
<view wx:if="{{ status === 'warning' }}" class="content">
|
|
14
|
+
<view>Your identity information was</view>
|
|
15
|
+
<view>not found. Please ensure your</view>
|
|
16
|
+
<view>information is entered correctly </view>
|
|
17
|
+
<view>and try again.</view>
|
|
18
|
+
</view>
|
|
19
|
+
<view wx:if="{{ status === 'error' }}" class="content">
|
|
20
|
+
<view>Your identity information could</view>
|
|
21
|
+
<view>not be verified. Please ensure</view>
|
|
22
|
+
<view>your information is entered</view>
|
|
23
|
+
<view>correctly and try again.</view>
|
|
24
|
+
</view>
|
|
25
|
+
<view class="btn-view">
|
|
26
|
+
<button class="btn" type="primary" bindtap="handleOk">OK</button>
|
|
27
|
+
</view>
|
|
28
|
+
</view>
|
|
29
29
|
</view>
|
|
@@ -1,85 +1,85 @@
|
|
|
1
|
-
/* weapps-plugin-jingtong-verify/components/my-modal/my-modal.wxss */
|
|
2
|
-
.modal-view {
|
|
3
|
-
position: fixed;
|
|
4
|
-
top: 0;
|
|
5
|
-
bottom: 0;
|
|
6
|
-
left: 0;
|
|
7
|
-
right: 0;
|
|
8
|
-
background: rgba(39, 40, 46, 0.6);
|
|
9
|
-
display: flex;
|
|
10
|
-
justify-content: center;
|
|
11
|
-
align-items: center;
|
|
12
|
-
z-index: 9999;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.modal-box {
|
|
16
|
-
box-sizing: border-box;
|
|
17
|
-
width: 520rpx;
|
|
18
|
-
height: 654rpx;
|
|
19
|
-
padding: 48rpx 32rpx 38rpx 32rpx;
|
|
20
|
-
border-radius: 24rpx;
|
|
21
|
-
display: flex;
|
|
22
|
-
align-items: center;
|
|
23
|
-
flex-direction: column;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.modal-view.info .modal-box {
|
|
27
|
-
background: linear-gradient(180deg, #f2f8ff 0%, #ffffff 45%, #ffffff 100%);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.modal-view.warning .modal-box {
|
|
31
|
-
background: linear-gradient(180deg, #fff7f2 0%, #ffffff 45%, #ffffff 100%);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.modal-view.error .modal-box {
|
|
35
|
-
background: linear-gradient(180deg, #fff2f2 0%, #ffffff 45%, #ffffff 100%);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
.modal-img {
|
|
39
|
-
display: block;
|
|
40
|
-
width: 242rpx;
|
|
41
|
-
height: 240rpx;
|
|
42
|
-
margin: 0 auto;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.title {
|
|
46
|
-
margin-top: 24rpx;
|
|
47
|
-
color: rgb(39, 40, 46);
|
|
48
|
-
font-size: 32rpx;
|
|
49
|
-
font-weight: 700;
|
|
50
|
-
text-align: center;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.content {
|
|
54
|
-
margin-top: 24rpx;
|
|
55
|
-
color: rgb(98, 102, 122);
|
|
56
|
-
font-size: 28rpx;
|
|
57
|
-
font-weight: 500;
|
|
58
|
-
text-align: center;
|
|
59
|
-
white-space: normal;
|
|
60
|
-
word-break: break-all;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.btn-view {
|
|
64
|
-
margin-top: 55rpx;
|
|
65
|
-
display: flex;
|
|
66
|
-
flex-direction: row;
|
|
67
|
-
align-items: center;
|
|
68
|
-
justify-content: center;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.btn-view > button {
|
|
72
|
-
padding: 0 !important;
|
|
73
|
-
margin: 0 !important;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
.btn-view > button::after {
|
|
77
|
-
border: none !important;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.btn {
|
|
81
|
-
width: 142rpx !important;
|
|
82
|
-
height: 56rpx;
|
|
83
|
-
box-sizing: border-box;
|
|
84
|
-
border-radius: 40rpx;
|
|
1
|
+
/* weapps-plugin-jingtong-verify/components/my-modal/my-modal.wxss */
|
|
2
|
+
.modal-view {
|
|
3
|
+
position: fixed;
|
|
4
|
+
top: 0;
|
|
5
|
+
bottom: 0;
|
|
6
|
+
left: 0;
|
|
7
|
+
right: 0;
|
|
8
|
+
background: rgba(39, 40, 46, 0.6);
|
|
9
|
+
display: flex;
|
|
10
|
+
justify-content: center;
|
|
11
|
+
align-items: center;
|
|
12
|
+
z-index: 9999;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.modal-box {
|
|
16
|
+
box-sizing: border-box;
|
|
17
|
+
width: 520rpx;
|
|
18
|
+
height: 654rpx;
|
|
19
|
+
padding: 48rpx 32rpx 38rpx 32rpx;
|
|
20
|
+
border-radius: 24rpx;
|
|
21
|
+
display: flex;
|
|
22
|
+
align-items: center;
|
|
23
|
+
flex-direction: column;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.modal-view.info .modal-box {
|
|
27
|
+
background: linear-gradient(180deg, #f2f8ff 0%, #ffffff 45%, #ffffff 100%);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.modal-view.warning .modal-box {
|
|
31
|
+
background: linear-gradient(180deg, #fff7f2 0%, #ffffff 45%, #ffffff 100%);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.modal-view.error .modal-box {
|
|
35
|
+
background: linear-gradient(180deg, #fff2f2 0%, #ffffff 45%, #ffffff 100%);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.modal-img {
|
|
39
|
+
display: block;
|
|
40
|
+
width: 242rpx;
|
|
41
|
+
height: 240rpx;
|
|
42
|
+
margin: 0 auto;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.title {
|
|
46
|
+
margin-top: 24rpx;
|
|
47
|
+
color: rgb(39, 40, 46);
|
|
48
|
+
font-size: 32rpx;
|
|
49
|
+
font-weight: 700;
|
|
50
|
+
text-align: center;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.content {
|
|
54
|
+
margin-top: 24rpx;
|
|
55
|
+
color: rgb(98, 102, 122);
|
|
56
|
+
font-size: 28rpx;
|
|
57
|
+
font-weight: 500;
|
|
58
|
+
text-align: center;
|
|
59
|
+
white-space: normal;
|
|
60
|
+
word-break: break-all;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.btn-view {
|
|
64
|
+
margin-top: 55rpx;
|
|
65
|
+
display: flex;
|
|
66
|
+
flex-direction: row;
|
|
67
|
+
align-items: center;
|
|
68
|
+
justify-content: center;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.btn-view > button {
|
|
72
|
+
padding: 0 !important;
|
|
73
|
+
margin: 0 !important;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.btn-view > button::after {
|
|
77
|
+
border: none !important;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.btn {
|
|
81
|
+
width: 142rpx !important;
|
|
82
|
+
height: 56rpx;
|
|
83
|
+
box-sizing: border-box;
|
|
84
|
+
border-radius: 40rpx;
|
|
85
85
|
}
|
|
@@ -1,82 +1,82 @@
|
|
|
1
|
-
// weapps-plugin-jingtong-verify/components/my-modal/my-modal.js
|
|
2
|
-
|
|
3
|
-
Component({
|
|
4
|
-
/**
|
|
5
|
-
* 组件的属性列表
|
|
6
|
-
*/
|
|
7
|
-
properties: {
|
|
8
|
-
visible: {
|
|
9
|
-
type: Boolean,
|
|
10
|
-
value: false
|
|
11
|
-
},
|
|
12
|
-
title: {
|
|
13
|
-
type: String
|
|
14
|
-
},
|
|
15
|
-
content: {
|
|
16
|
-
type: String
|
|
17
|
-
},
|
|
18
|
-
cancelColor: {
|
|
19
|
-
type: String
|
|
20
|
-
},
|
|
21
|
-
confirmColor: {
|
|
22
|
-
type: String
|
|
23
|
-
},
|
|
24
|
-
cancelSize: {
|
|
25
|
-
type: String,
|
|
26
|
-
value: '16px'
|
|
27
|
-
},
|
|
28
|
-
CancelText: {
|
|
29
|
-
type: String,
|
|
30
|
-
value: '取消'
|
|
31
|
-
},
|
|
32
|
-
ConfirmText: {
|
|
33
|
-
type: String,
|
|
34
|
-
value: '确定'
|
|
35
|
-
},
|
|
36
|
-
confirmSize: {
|
|
37
|
-
type: String,
|
|
38
|
-
value: '16px'
|
|
39
|
-
},
|
|
40
|
-
cancelOpenType: {
|
|
41
|
-
type: String
|
|
42
|
-
},
|
|
43
|
-
confirmOpenType: {
|
|
44
|
-
type: String
|
|
45
|
-
},
|
|
46
|
-
Cancel: {
|
|
47
|
-
type: Boolean,
|
|
48
|
-
value: false
|
|
49
|
-
},
|
|
50
|
-
Confirm: {
|
|
51
|
-
type: Boolean,
|
|
52
|
-
value: false
|
|
53
|
-
}
|
|
54
|
-
},
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* 组件的初始数据
|
|
58
|
-
*/
|
|
59
|
-
data: {
|
|
60
|
-
|
|
61
|
-
},
|
|
62
|
-
|
|
63
|
-
/**
|
|
64
|
-
* 组件的方法列表
|
|
65
|
-
*/
|
|
66
|
-
methods: {
|
|
67
|
-
ConfirmClick(e) {
|
|
68
|
-
this.triggerEvent('ConfirmBtn', e)
|
|
69
|
-
},
|
|
70
|
-
|
|
71
|
-
CancelClick(e) {
|
|
72
|
-
this.triggerEvent('CancelBtn')
|
|
73
|
-
},
|
|
74
|
-
|
|
75
|
-
// 微信获取手机号授权
|
|
76
|
-
getPhoneNumber(e) {
|
|
77
|
-
if (e.detail.iv) {
|
|
78
|
-
this.triggerEvent('getPhoneNumberFun', e.detail)
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
})
|
|
1
|
+
// weapps-plugin-jingtong-verify/components/my-modal/my-modal.js
|
|
2
|
+
|
|
3
|
+
Component({
|
|
4
|
+
/**
|
|
5
|
+
* 组件的属性列表
|
|
6
|
+
*/
|
|
7
|
+
properties: {
|
|
8
|
+
visible: {
|
|
9
|
+
type: Boolean,
|
|
10
|
+
value: false
|
|
11
|
+
},
|
|
12
|
+
title: {
|
|
13
|
+
type: String
|
|
14
|
+
},
|
|
15
|
+
content: {
|
|
16
|
+
type: String
|
|
17
|
+
},
|
|
18
|
+
cancelColor: {
|
|
19
|
+
type: String
|
|
20
|
+
},
|
|
21
|
+
confirmColor: {
|
|
22
|
+
type: String
|
|
23
|
+
},
|
|
24
|
+
cancelSize: {
|
|
25
|
+
type: String,
|
|
26
|
+
value: '16px'
|
|
27
|
+
},
|
|
28
|
+
CancelText: {
|
|
29
|
+
type: String,
|
|
30
|
+
value: '取消'
|
|
31
|
+
},
|
|
32
|
+
ConfirmText: {
|
|
33
|
+
type: String,
|
|
34
|
+
value: '确定'
|
|
35
|
+
},
|
|
36
|
+
confirmSize: {
|
|
37
|
+
type: String,
|
|
38
|
+
value: '16px'
|
|
39
|
+
},
|
|
40
|
+
cancelOpenType: {
|
|
41
|
+
type: String
|
|
42
|
+
},
|
|
43
|
+
confirmOpenType: {
|
|
44
|
+
type: String
|
|
45
|
+
},
|
|
46
|
+
Cancel: {
|
|
47
|
+
type: Boolean,
|
|
48
|
+
value: false
|
|
49
|
+
},
|
|
50
|
+
Confirm: {
|
|
51
|
+
type: Boolean,
|
|
52
|
+
value: false
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* 组件的初始数据
|
|
58
|
+
*/
|
|
59
|
+
data: {
|
|
60
|
+
|
|
61
|
+
},
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* 组件的方法列表
|
|
65
|
+
*/
|
|
66
|
+
methods: {
|
|
67
|
+
ConfirmClick(e) {
|
|
68
|
+
this.triggerEvent('ConfirmBtn', e)
|
|
69
|
+
},
|
|
70
|
+
|
|
71
|
+
CancelClick(e) {
|
|
72
|
+
this.triggerEvent('CancelBtn')
|
|
73
|
+
},
|
|
74
|
+
|
|
75
|
+
// 微信获取手机号授权
|
|
76
|
+
getPhoneNumber(e) {
|
|
77
|
+
if (e.detail.iv) {
|
|
78
|
+
this.triggerEvent('getPhoneNumberFun', e.detail)
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
})
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
{
|
|
2
|
-
"component": true,
|
|
3
|
-
"usingComponents": {}
|
|
1
|
+
{
|
|
2
|
+
"component": true,
|
|
3
|
+
"usingComponents": {}
|
|
4
4
|
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
<!--weapps-plugin-jingtong-verify/components/my-modal/my-modal.wxml-->
|
|
2
|
-
<view class="modal-view" wx:if="{{ visible }}" >
|
|
3
|
-
<view class="modal-box">
|
|
4
|
-
<view class="title">
|
|
5
|
-
{{ title }}
|
|
6
|
-
</view>
|
|
7
|
-
<view class="content">
|
|
8
|
-
<slot></slot>
|
|
9
|
-
</view>
|
|
10
|
-
<view class="button" wx:if="{{ Cancel || Confirm }}">
|
|
11
|
-
<button class="['cancel-btn',{{ Cancel && Confirm ? 'two-btn' : 'one-btn' }}]" style="color: {{ cancelColor }};font-size:{{ cancelSize }}" wx:if="{{ Cancel }}" bindtap="CancelClick" open-type="{{ cancelOpenType}}" bindgetphonenumber="getPhoneNumber">
|
|
12
|
-
{{ CancelText }}
|
|
13
|
-
</button>
|
|
14
|
-
<button class="['confirm-btn', {{ Cancel && Confirm ? 'two-btn' : 'one-btn' }}]" style="color: {{ confirmColor }};font-size:{{ confirmSize }}" wx:if="{{ Confirm }}" bindtap="ConfirmClick" open-type="{{ confirmOpenType }}" bindgetphonenumber="getPhoneNumber">
|
|
15
|
-
{{ ConfirmText }}
|
|
16
|
-
</button>
|
|
17
|
-
</view>
|
|
18
|
-
</view>
|
|
1
|
+
<!--weapps-plugin-jingtong-verify/components/my-modal/my-modal.wxml-->
|
|
2
|
+
<view class="modal-view" wx:if="{{ visible }}" >
|
|
3
|
+
<view class="modal-box">
|
|
4
|
+
<view class="title">
|
|
5
|
+
{{ title }}
|
|
6
|
+
</view>
|
|
7
|
+
<view class="content">
|
|
8
|
+
<slot></slot>
|
|
9
|
+
</view>
|
|
10
|
+
<view class="button" wx:if="{{ Cancel || Confirm }}">
|
|
11
|
+
<button class="['cancel-btn',{{ Cancel && Confirm ? 'two-btn' : 'one-btn' }}]" style="color: {{ cancelColor }};font-size:{{ cancelSize }}" wx:if="{{ Cancel }}" bindtap="CancelClick" open-type="{{ cancelOpenType}}" bindgetphonenumber="getPhoneNumber">
|
|
12
|
+
{{ CancelText }}
|
|
13
|
+
</button>
|
|
14
|
+
<button class="['confirm-btn', {{ Cancel && Confirm ? 'two-btn' : 'one-btn' }}]" style="color: {{ confirmColor }};font-size:{{ confirmSize }}" wx:if="{{ Confirm }}" bindtap="ConfirmClick" open-type="{{ confirmOpenType }}" bindgetphonenumber="getPhoneNumber">
|
|
15
|
+
{{ ConfirmText }}
|
|
16
|
+
</button>
|
|
17
|
+
</view>
|
|
18
|
+
</view>
|
|
19
19
|
</view>
|
|
@@ -1,72 +1,72 @@
|
|
|
1
|
-
/* weapps-plugin-jingtong-verify/components/my-modal/my-modal.wxss */
|
|
2
|
-
.modal-view {
|
|
3
|
-
position: fixed;
|
|
4
|
-
top: 0;
|
|
5
|
-
bottom: 0;
|
|
6
|
-
left: 0;
|
|
7
|
-
right: 0;
|
|
8
|
-
background: rgba(39, 40, 46, 0.6);
|
|
9
|
-
display: flex;
|
|
10
|
-
justify-content: center;
|
|
11
|
-
align-items: center;
|
|
12
|
-
z-index: 9999;
|
|
13
|
-
}
|
|
14
|
-
.modal-box {
|
|
15
|
-
width: 560rpx;
|
|
16
|
-
border-radius: 4rpx;
|
|
17
|
-
background: #ffffff;
|
|
18
|
-
display: flex;
|
|
19
|
-
align-items: center;
|
|
20
|
-
flex-direction: column;
|
|
21
|
-
}
|
|
22
|
-
.title {
|
|
23
|
-
margin-top: 40rpx;
|
|
24
|
-
font-size: 36rpx;
|
|
25
|
-
}
|
|
26
|
-
.content {
|
|
27
|
-
font-size: 30rpx;
|
|
28
|
-
margin-top: 32rpx;
|
|
29
|
-
padding: 0 66rpx;
|
|
30
|
-
}
|
|
31
|
-
.button {
|
|
32
|
-
position: relative;
|
|
33
|
-
bottom: 0;
|
|
34
|
-
width: 560rpx;
|
|
35
|
-
height: 94rpx;
|
|
36
|
-
border-top: 2rpx solid #EDEDED;
|
|
37
|
-
margin-top: 48rpx;
|
|
38
|
-
display: flex;
|
|
39
|
-
}
|
|
40
|
-
.one-btn {
|
|
41
|
-
height: 100%;
|
|
42
|
-
width: 100%;
|
|
43
|
-
display: flex;
|
|
44
|
-
justify-content: center;
|
|
45
|
-
align-items: center;
|
|
46
|
-
}
|
|
47
|
-
.two-btn {
|
|
48
|
-
height: 100%;
|
|
49
|
-
width: 50%;
|
|
50
|
-
display: flex;
|
|
51
|
-
align-items: center;
|
|
52
|
-
justify-content: center
|
|
53
|
-
}
|
|
54
|
-
.two-btn,.confirm-btn {
|
|
55
|
-
border-left: 2rpx solid #EDEDED;
|
|
56
|
-
}
|
|
57
|
-
.confirm-btn,
|
|
58
|
-
.cancel-btn {
|
|
59
|
-
flex: 1;
|
|
60
|
-
cursor: pointer;
|
|
61
|
-
font-weight: 500;
|
|
62
|
-
background: #ffffff;
|
|
63
|
-
padding: 0;
|
|
64
|
-
margin: 0;
|
|
65
|
-
}
|
|
66
|
-
.button > button {
|
|
67
|
-
background-color: #fff !important;
|
|
68
|
-
border-radius: 0 !important;
|
|
69
|
-
}
|
|
70
|
-
.button > button::after {
|
|
71
|
-
border: none !important;
|
|
72
|
-
}
|
|
1
|
+
/* weapps-plugin-jingtong-verify/components/my-modal/my-modal.wxss */
|
|
2
|
+
.modal-view {
|
|
3
|
+
position: fixed;
|
|
4
|
+
top: 0;
|
|
5
|
+
bottom: 0;
|
|
6
|
+
left: 0;
|
|
7
|
+
right: 0;
|
|
8
|
+
background: rgba(39, 40, 46, 0.6);
|
|
9
|
+
display: flex;
|
|
10
|
+
justify-content: center;
|
|
11
|
+
align-items: center;
|
|
12
|
+
z-index: 9999;
|
|
13
|
+
}
|
|
14
|
+
.modal-box {
|
|
15
|
+
width: 560rpx;
|
|
16
|
+
border-radius: 4rpx;
|
|
17
|
+
background: #ffffff;
|
|
18
|
+
display: flex;
|
|
19
|
+
align-items: center;
|
|
20
|
+
flex-direction: column;
|
|
21
|
+
}
|
|
22
|
+
.title {
|
|
23
|
+
margin-top: 40rpx;
|
|
24
|
+
font-size: 36rpx;
|
|
25
|
+
}
|
|
26
|
+
.content {
|
|
27
|
+
font-size: 30rpx;
|
|
28
|
+
margin-top: 32rpx;
|
|
29
|
+
padding: 0 66rpx;
|
|
30
|
+
}
|
|
31
|
+
.button {
|
|
32
|
+
position: relative;
|
|
33
|
+
bottom: 0;
|
|
34
|
+
width: 560rpx;
|
|
35
|
+
height: 94rpx;
|
|
36
|
+
border-top: 2rpx solid #EDEDED;
|
|
37
|
+
margin-top: 48rpx;
|
|
38
|
+
display: flex;
|
|
39
|
+
}
|
|
40
|
+
.one-btn {
|
|
41
|
+
height: 100%;
|
|
42
|
+
width: 100%;
|
|
43
|
+
display: flex;
|
|
44
|
+
justify-content: center;
|
|
45
|
+
align-items: center;
|
|
46
|
+
}
|
|
47
|
+
.two-btn {
|
|
48
|
+
height: 100%;
|
|
49
|
+
width: 50%;
|
|
50
|
+
display: flex;
|
|
51
|
+
align-items: center;
|
|
52
|
+
justify-content: center
|
|
53
|
+
}
|
|
54
|
+
.two-btn,.confirm-btn {
|
|
55
|
+
border-left: 2rpx solid #EDEDED;
|
|
56
|
+
}
|
|
57
|
+
.confirm-btn,
|
|
58
|
+
.cancel-btn {
|
|
59
|
+
flex: 1;
|
|
60
|
+
cursor: pointer;
|
|
61
|
+
font-weight: 500;
|
|
62
|
+
background: #ffffff;
|
|
63
|
+
padding: 0;
|
|
64
|
+
margin: 0;
|
|
65
|
+
}
|
|
66
|
+
.button > button {
|
|
67
|
+
background-color: #fff !important;
|
|
68
|
+
border-radius: 0 !important;
|
|
69
|
+
}
|
|
70
|
+
.button > button::after {
|
|
71
|
+
border: none !important;
|
|
72
|
+
}
|