jufubao-base 1.0.159-beta9 → 1.0.159
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/src/common/authorize.js +70 -201
- package/src/components/JfbBaseAddress/JfbBaseAddress.vue +6 -7
- package/src/components/JfbBaseAfterOrderDetail/JfbBaseAfterOrderDetail.vue +3 -5
- package/src/components/JfbBaseAfterOrderList/JfbBaseAfterOrderList.vue +2 -3
- package/src/components/JfbBaseBack/JfbBaseBack.vue +8 -10
- package/src/components/JfbBaseBackground/JfbBaseBackground.vue +2 -3
- package/src/components/JfbBaseBlock/JfbBaseBlock.vue +2 -3
- package/src/components/JfbBaseCard/JfbBaseCard.vue +6 -10
- package/src/components/JfbBaseCardBindV2/JfbBaseCardBindV2.vue +26 -57
- package/src/components/JfbBaseCardDetail/JfbBaseCardDetail.vue +15 -14
- package/src/components/JfbBaseCardDetailEntry/Attr.js +0 -22
- package/src/components/JfbBaseCardDetailEntry/JfbBaseCardDetailEntry.vue +424 -393
- package/src/components/JfbBaseCardDisabled/JfbBaseCardDisabled.vue +4 -4
- package/src/components/JfbBaseCardDisabledEntry/JfbBaseCardDisabledEntry.vue +9 -7
- package/src/components/JfbBaseCardEntry/Attr.js +1 -22
- package/src/components/JfbBaseCardEntry/JfbBaseCardEntry.vue +34 -89
- package/src/components/JfbBaseCardInfo/JfbBaseCardInfo.vue +19 -36
- package/src/components/JfbBaseCardInfoEntry/JfbBaseCardInfoEntry.vue +4 -9
- package/src/components/JfbBaseCardMerge/JfbBaseCardMerge.vue +3 -4
- package/src/components/JfbBaseCardMergeEntry/JfbBaseCardMergeEntry.vue +18 -23
- package/src/components/JfbBaseCardShift/JfbBaseCardShift.vue +11 -4
- package/src/components/JfbBaseCardShiftEntry/JfbBaseCardShiftEntry.vue +19 -16
- package/src/components/JfbBaseCardSweepInfo/JfbBaseCardSweepInfo.vue +2 -3
- package/src/components/JfbBaseCardV2/JfbBaseCardV2.vue +18 -34
- package/src/components/JfbBaseCardV3/JfbBaseCardV3.vue +14 -14
- package/src/components/JfbBaseCity/JfbBaseCity.vue +2 -3
- package/src/components/JfbBaseClear/JfbBaseClear.vue +2 -3
- package/src/components/JfbBaseConDialog/Api.js +13 -1
- package/src/components/JfbBaseConDialog/JfbBaseConDialog.vue +79 -20
- package/src/components/JfbBaseConDialog/XdCouCardBind.vue +223 -133
- package/src/components/JfbBaseConList/Api.js +13 -1
- package/src/components/JfbBaseConList/Attr.js +11 -0
- package/src/components/JfbBaseConList/JfbBaseConList.vue +355 -123
- package/src/components/JfbBaseConList/Mock.js +1 -1
- package/src/components/JfbBaseConPhone/JfbBaseConPhone.vue +2 -3
- package/src/components/JfbBaseEntry/Attr.js +0 -22
- package/src/components/JfbBaseEntry/JfbBaseEntry.vue +16 -80
- package/src/components/JfbBaseExpressDetail/JfbBaseExpressDetail.vue +4 -3
- package/src/components/JfbBaseFastLink/JfbBaseFastLink.vue +20 -31
- package/src/components/JfbBaseFastLink/XdFastNav.vue +2 -2
- package/src/components/JfbBaseFooter/JfbBaseFooter.vue +1 -0
- package/src/components/JfbBaseHeader/JfbBaseHeader.vue +2 -3
- package/src/components/JfbBaseLogin/JfbBaseLogin.vue +11 -28
- package/src/components/JfbBaseLoginForgetPwd/JfbBaseLoginForgetPwd.vue +9 -7
- package/src/components/JfbBaseLoginSetPwd/JfbBaseLoginSetPwd.vue +6 -9
- package/src/components/JfbBaseMapOverlay/JfbBaseMapOverlay.vue +5 -19
- package/src/components/JfbBaseMapOverlay/XdMapOverlay.vue +37 -52
- package/src/components/JfbBaseMapSearch/JfbBaseMapSearch.vue +2 -3
- package/src/components/JfbBaseMergeUserCard/JfbBaseMergeUserCard.vue +27 -28
- package/src/components/JfbBaseMultipleExpress/JfbBaseMultipleExpress.vue +5 -5
- package/src/components/JfbBaseMy/JfbBaseMy.vue +3 -3
- package/src/components/JfbBaseMySetting/JfbBaseMySetting.vue +4 -6
- package/src/components/JfbBaseNotice/Attr.js +2 -0
- package/src/components/JfbBaseNotice/JfbBaseNotice.vue +14 -36
- package/src/components/JfbBaseNotice/XdNoticeBar.vue +1 -17
- package/src/components/JfbBaseNoticeBottom/JfbBaseNoticeBottom.vue +2 -3
- package/src/components/JfbBaseNoticeTop/JfbBaseNoticeTop.vue +2 -3
- package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +31 -20
- package/src/components/JfbBaseOrderList/JfbBaseOrderList.vue +4 -9
- package/src/components/JfbBasePay/JfbBasePay.vue +2 -3
- package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollect.vue +7 -22
- package/src/components/JfbBasePhoneLogin/JfbBasePhoneLogin.vue +7 -23
- package/src/components/JfbBasePoster/JfbBasePoster.vue +18 -118
- package/src/components/JfbBasePoster/MoreScreen.vue +37 -155
- package/src/components/JfbBasePosterBigSmall/Attr.js +4 -1
- package/src/components/JfbBasePosterBigSmall/JfbBasePosterBigSmall.vue +67 -191
- package/src/components/JfbBasePosterEntry/JfbBasePosterEntry.vue +20 -90
- package/src/components/JfbBasePosterType/FourScreen.vue +18 -162
- package/src/components/JfbBasePosterType/JfbBasePosterType.vue +35 -0
- package/src/components/JfbBaseRecharge/JfbBaseRecharge.vue +4 -4
- package/src/components/JfbBaseRechargeOrder/JfbBaseRechargeOrder.vue +4 -3
- package/src/components/JfbBaseRechargeOrderDetail/JfbBaseRechargeOrderDetail.vue +7 -4
- package/src/components/JfbBaseRechargeSuccess/JfbBaseRechargeSuccess.vue +9 -6
- package/src/components/JfbBaseSearch/JfbBaseSearch.vue +2 -3
- package/src/components/JfbBaseSuccess/JfbBaseSuccess.vue +4 -5
- package/src/components/JfbBaseUserCenter/JfbBaseUserCenter.vue +2 -3
- package/src/components/JfbBaseUserInfo/JfbBaseUserInfo.vue +3 -5
- package/src/components/JfbBaseUserOrder/JfbBaseUserOrder.vue +3 -4
- package/src/components/JfbBaseVideo/JfbBaseVideo.vue +11 -14
- package/src/components/JfbBaseVideo/XdVideo.vue +4 -0
- package/src/components/JfbBaseWallet/JfbBaseWallet.vue +2 -3
- package/src/components/JfbBaseWalletDetail/JfbBaseWalletDetail.vue +8 -5
- package/src/components/JfbBaseWalletEffective/JfbBaseWalletEffective.vue +8 -5
- package/src/components/JfbBaseWalletIndex/JfbBaseWalletIndex.vue +17 -7
- package/src/components/JfbBaseWalletItem/JfbBaseWalletItem.vue +21 -13
- package/src/components/JfbBaseWebview/JfbBaseWebview.vue +3 -4
- package/src/components/JfbBaseWxAuthorize/JfbBaseWxAuthorize.vue +4 -5
- package/src/components/JfbBaseWxAuthorizeError/JfbBaseWxAuthorizeError.vue +4 -3
- package/src/mixins/colorCardMixins.js +1 -1
|
@@ -194,9 +194,8 @@ export default {
|
|
|
194
194
|
};
|
|
195
195
|
},
|
|
196
196
|
watch: {
|
|
197
|
-
container(value
|
|
198
|
-
|
|
199
|
-
if (this.$configProject['isPreview']) this.init(value)
|
|
197
|
+
container(value) {
|
|
198
|
+
this.init(value);
|
|
200
199
|
},
|
|
201
200
|
},
|
|
202
201
|
created() {
|
|
@@ -7,28 +7,6 @@ export default {
|
|
|
7
7
|
style: [],
|
|
8
8
|
content: (data) => {
|
|
9
9
|
return [
|
|
10
|
-
{
|
|
11
|
-
label: '选择综合入口类型:',
|
|
12
|
-
ele: 'xd-site-select-list',
|
|
13
|
-
valueKey: 'entryType',
|
|
14
|
-
value: data['entryType'],
|
|
15
|
-
placeholder: '请选择综合入口类型',
|
|
16
|
-
multiple: false,
|
|
17
|
-
groupKey:'content',
|
|
18
|
-
className: 'input50',
|
|
19
|
-
rules: [
|
|
20
|
-
{required: true, message: '请选择综合入口类型', trigger: ['blur', 'change']}
|
|
21
|
-
],
|
|
22
|
-
handleCustom({action, data}) {
|
|
23
|
-
XdBus.getParentApi('getEntryGroupOption')({key: Date.now()})
|
|
24
|
-
.then(res => {
|
|
25
|
-
data.cb(res.list)
|
|
26
|
-
})
|
|
27
|
-
.catch(error => {
|
|
28
|
-
console.error(error);
|
|
29
|
-
});
|
|
30
|
-
},
|
|
31
|
-
},
|
|
32
10
|
{
|
|
33
11
|
label: '每行显示数量',
|
|
34
12
|
ele: 'xd-radio',
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
import componentsMixins from "@/mixins/componentsMixins";
|
|
50
50
|
import extsMixins from "@/mixins/extsMixins";
|
|
51
51
|
import getServiceUrl from "@/common/getServiceUrl";
|
|
52
|
-
import {
|
|
52
|
+
import {base64} from 'js-base64';
|
|
53
53
|
export default {
|
|
54
54
|
name: "JfbBaseEntry",
|
|
55
55
|
components: {
|
|
@@ -66,11 +66,9 @@
|
|
|
66
66
|
paddingInput: 20,
|
|
67
67
|
loadingList: true,
|
|
68
68
|
margin: {},
|
|
69
|
-
entryType: '',
|
|
70
69
|
}
|
|
71
70
|
},
|
|
72
71
|
computed: {
|
|
73
|
-
...mapState(['brandInfo']),
|
|
74
72
|
bodyStyle(){
|
|
75
73
|
return {
|
|
76
74
|
backgroundColor: this.bgcolor,
|
|
@@ -93,10 +91,9 @@
|
|
|
93
91
|
}
|
|
94
92
|
},
|
|
95
93
|
watch: {
|
|
96
|
-
container(value
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
},
|
|
94
|
+
container(value) {
|
|
95
|
+
this.init(value)
|
|
96
|
+
}
|
|
100
97
|
},
|
|
101
98
|
created() {
|
|
102
99
|
this.init(this.container);
|
|
@@ -114,67 +111,17 @@
|
|
|
114
111
|
this.rowNum = getContainerPropsValue(container, 'content.rowNum', 1);
|
|
115
112
|
this.paddingInput = getContainerPropsValue(container, 'content.paddingInput', 20);
|
|
116
113
|
this.margin = getContainerPropsValue(container, 'content.margin', {});
|
|
117
|
-
this.entryType = getContainerPropsValue(container, 'content.entryType', 'default');
|
|
118
|
-
},
|
|
119
|
-
|
|
120
|
-
getCardPath(custom_redirect_data = {}){
|
|
121
|
-
//#ifdef H5
|
|
122
|
-
return null;
|
|
123
|
-
//#endif
|
|
124
|
-
//#ifdef MP-WEIXIN
|
|
125
|
-
const dir = custom_redirect_data.dir;
|
|
126
|
-
const actDir = this.projectAttr['deploy_dir'];
|
|
127
|
-
if(custom_redirect_data.appType === 'wxmp') {
|
|
128
|
-
if(dir === actDir) {
|
|
129
|
-
return {
|
|
130
|
-
cardPath: custom_redirect_data.path,
|
|
131
|
-
cardSelf: 'wxmp',
|
|
132
|
-
};
|
|
133
|
-
}
|
|
134
|
-
else return null;
|
|
135
|
-
}
|
|
136
|
-
else if(custom_redirect_data.appType === 'h5'){
|
|
137
|
-
return {
|
|
138
|
-
cardPath: custom_redirect_data.site_url,
|
|
139
|
-
cardSelf: 'h5',
|
|
140
|
-
};
|
|
141
|
-
}
|
|
142
|
-
else return null;
|
|
143
|
-
//#endif
|
|
144
114
|
},
|
|
145
115
|
getEntrySetting(){
|
|
146
116
|
this.$xdShowLoading({});
|
|
147
117
|
jfbRootExec("getEntrySetting", {
|
|
148
118
|
vm: this,
|
|
149
|
-
data: {
|
|
150
|
-
group_id:this.entryType || 'default'
|
|
151
|
-
}
|
|
119
|
+
data: {}
|
|
152
120
|
}).then(res => {
|
|
153
121
|
this.loadingList = false;
|
|
154
122
|
this.$xdHideLoading();
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
this.entryList = res.list.filter(item=>{
|
|
158
|
-
//#ifdef H5
|
|
159
|
-
//在H5平台应用中不可跳转到微信小程序应用
|
|
160
|
-
if(item.redirect_data.appType === 'wxmp'){
|
|
161
|
-
isH5FilterEntryList.push(item)
|
|
162
|
-
}
|
|
163
|
-
return item.redirect_data.appType !== 'wxmp';
|
|
164
|
-
//#endif
|
|
165
|
-
|
|
166
|
-
//#ifdef MP-WEIXIN
|
|
167
|
-
const dir = item['redirect_data'].dir;
|
|
168
|
-
const actDir = this.projectAttr['deploy_dir'];
|
|
169
|
-
if(item.redirect_data.appType === 'wxmp') {
|
|
170
|
-
if(dir !== actDir) isMpFilterEntryList.push(item)
|
|
171
|
-
return dir === actDir;
|
|
172
|
-
}
|
|
173
|
-
return true
|
|
174
|
-
//#endif
|
|
175
|
-
}).map(item => {
|
|
176
|
-
const {dir, path, host,appType} = item['redirect_data'];
|
|
177
|
-
if(appType === undefined) item.redirect_data.appType = 'h5';
|
|
123
|
+
this.entryList = res.list.map(item => {
|
|
124
|
+
const {dir, path, host} = item['redirect_data'];
|
|
178
125
|
item['image_url'] = getServiceUrl(item.image_url);
|
|
179
126
|
item['image_url2'] = item.image_url2 ? getServiceUrl(item.image_url2) : "";
|
|
180
127
|
item['image_url3'] = item.image_url3 ? getServiceUrl(item.image_url3) : "";
|
|
@@ -192,35 +139,24 @@
|
|
|
192
139
|
let jumpUrl = path;
|
|
193
140
|
|
|
194
141
|
//域名相同并且应用路径不相同时候处理
|
|
195
|
-
if(host === this.projectAttr.host
|
|
142
|
+
if(host === this.projectAttr.host
|
|
143
|
+
&& this.projectAttr['deploy_dir'] !== dir
|
|
144
|
+
){
|
|
196
145
|
jumpUrl = `//${host}/${dir}${path}`;
|
|
197
146
|
//#ifdef MP-WEIXIN
|
|
198
147
|
jumpUrl = `https:${jumpUrl}`;
|
|
199
148
|
//#endif
|
|
200
149
|
}
|
|
201
150
|
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
const cardPathObject = this.getCardPath(custom_redirect_data);
|
|
208
|
-
if(cardPathObject !== null) {
|
|
209
|
-
const {cardPath, cardSelf} =cardPathObject
|
|
210
|
-
if(cardPath) cardPathStr = `&card-login=${encodeURIComponent(cardPath)}&cardSelf=${cardSelf}`
|
|
211
|
-
}
|
|
151
|
+
if(item['redirect_data']['fixed_business_code'] === '') {
|
|
152
|
+
item['redirect_data']['path'] = `${jumpUrl}?x-common=${nsp}&vs=${new Date().getTime()}`
|
|
153
|
+
}
|
|
154
|
+
else{
|
|
155
|
+
item['redirect_data']['path'] = `${jumpUrl}?x-common=${nsp}&vs=${new Date().getTime()}`
|
|
212
156
|
}
|
|
213
|
-
//#endif
|
|
214
|
-
item['redirect_data']['path'] = `${jumpUrl}?x-common=${nsp}&vs=${new Date().getTime()}${cardPathStr}`
|
|
215
157
|
return item;
|
|
216
158
|
});
|
|
217
|
-
|
|
218
|
-
console.warn(`微信小程序端被过滤的入口列表:${JSON.stringify(isMpFilterEntryList.map(item=> `${item.redirect_data.appType}:${item.entry_name}:${item.redirect_data['frontPath']}`),null,2)}`)
|
|
219
|
-
//#endif
|
|
220
|
-
//#ifdef H5
|
|
221
|
-
console.warn(`H5端被过滤的入口列表:${JSON.stringify(isH5FilterEntryList.map(item=> `${item.redirect_data.appType}:${item.entry_name}:${item.redirect_data['frontPath']}`),null,2)}`)
|
|
222
|
-
//#endif
|
|
223
|
-
console.warn(`福利入口链接列表:${JSON.stringify(this.entryList.map(item=> `${item.redirect_data.appType}:${item.redirect_data['path']}`),null,2)}`);
|
|
159
|
+
console.log( this.entryList)
|
|
224
160
|
if(res.list.length === 1) this.toLink(this.entryList[0]);
|
|
225
161
|
if(res.list.length === 0) {
|
|
226
162
|
this.$xdAlert({content: '当前票券暂无支持服务'})
|
|
@@ -50,13 +50,14 @@ export default {
|
|
|
50
50
|
};
|
|
51
51
|
},
|
|
52
52
|
watch: {
|
|
53
|
-
container(value
|
|
54
|
-
|
|
55
|
-
if (this.$configProject['isPreview']) this.init(value)
|
|
53
|
+
container(value) {
|
|
54
|
+
this.init(value);
|
|
56
55
|
},
|
|
57
56
|
},
|
|
58
57
|
created() {
|
|
59
58
|
this.init(this.container);
|
|
59
|
+
|
|
60
|
+
//todo
|
|
60
61
|
},
|
|
61
62
|
methods: {
|
|
62
63
|
onJfbLoad(options) {
|
|
@@ -67,7 +67,6 @@
|
|
|
67
67
|
import componentsMixins from "@/mixins/componentsMixins";
|
|
68
68
|
import extsMixins from "@/mixins/extsMixins"
|
|
69
69
|
import { getContainerPropsValue } from "@/utils/xd.base";
|
|
70
|
-
import {parsePath} from '@/utils/linkUrl'
|
|
71
70
|
import XdFastNav from "./XdFastNav.vue";
|
|
72
71
|
import Color from "color";
|
|
73
72
|
const color = require('color');
|
|
@@ -114,9 +113,8 @@
|
|
|
114
113
|
}
|
|
115
114
|
},
|
|
116
115
|
watch: {
|
|
117
|
-
container(value
|
|
118
|
-
|
|
119
|
-
if (this.$configProject['isPreview']) this.init(value)
|
|
116
|
+
container(value) {
|
|
117
|
+
this.init(value)
|
|
120
118
|
}
|
|
121
119
|
},
|
|
122
120
|
|
|
@@ -187,33 +185,24 @@
|
|
|
187
185
|
this.margin = getContainerPropsValue(container, 'content.margin', {top: 0, left: 0, right: 0, bottom: 0});
|
|
188
186
|
this.subColor = getContainerPropsValue(container, 'content.textSubColor', '#000');
|
|
189
187
|
this.fontSubSize = getContainerPropsValue(container, 'content.fontSubSize', 24);
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
if(pathObj.isSameApp) jumpUrl = pathObj.url;
|
|
209
|
-
else jumpUrl = `https://${this.projectAttr.host}/${pathObj.dir}${pathObj.url}`;
|
|
210
|
-
//#endif
|
|
211
|
-
|
|
212
|
-
jumpUrl = `${jumpUrl}${bus}`;
|
|
213
|
-
return { name: item.name, path: jumpUrl, icon: item.icon, size: item.size }
|
|
214
|
-
}
|
|
215
|
-
});
|
|
216
|
-
}
|
|
188
|
+
this.listNave = this.list.map(item=>{
|
|
189
|
+
const {appValue,path} = item.path
|
|
190
|
+
if(appValue === undefined && path === undefined) {
|
|
191
|
+
return { name: item.name, path: item.path.value, icon: item.icon, size: item.size}
|
|
192
|
+
}
|
|
193
|
+
else{
|
|
194
|
+
const {dir,fixed_business_code} = item.path;
|
|
195
|
+
let bus = fixed_business_code? Base64.encodeURI(JSON.stringify({business_code: fixed_business_code})):'';
|
|
196
|
+
if(bus) bus = `?x-common=${bus}`;
|
|
197
|
+
let jumpUrl = '';
|
|
198
|
+
//#ifdef H5
|
|
199
|
+
if(dir) jumpUrl = `//${window.location.host}/${dir}${path}`;
|
|
200
|
+
else jumpUrl = path;
|
|
201
|
+
//#endif
|
|
202
|
+
jumpUrl = `${jumpUrl}${bus}`;
|
|
203
|
+
return { name: item.name, path: jumpUrl, icon: item.icon, size: item.size }
|
|
204
|
+
}
|
|
205
|
+
})
|
|
217
206
|
|
|
218
207
|
},
|
|
219
208
|
}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
<view class="xd-fast-nave__body">
|
|
11
11
|
<view class="xd-fast-nave__body-close" v-if="close" @click="close=false">
|
|
12
12
|
<xd-font-icon icon="iconjiantou_zuo" color="#fff" size="30"></xd-font-icon>
|
|
13
|
-
<view
|
|
13
|
+
<view>{{fastName}}</view>
|
|
14
14
|
</view>
|
|
15
15
|
<view class="xd-fast-nave__body-open" v-else @click="close=true">
|
|
16
16
|
<xd-font-icon icon="iconjiantou_you" color="#fff" size="30"></xd-font-icon>
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
:key="index"
|
|
24
24
|
@click="handleClick(item)"
|
|
25
25
|
>
|
|
26
|
-
<view
|
|
26
|
+
<view>
|
|
27
27
|
<xd-font-icon v-if="item.icon" :icon="item.icon" size="34" :color="color"></xd-font-icon>
|
|
28
28
|
</view>
|
|
29
29
|
<view :style="{color: color}">{{item.name}}</view>
|
|
@@ -144,9 +144,8 @@
|
|
|
144
144
|
}
|
|
145
145
|
},
|
|
146
146
|
watch: {
|
|
147
|
-
container(value
|
|
148
|
-
|
|
149
|
-
if (this.$configProject['isPreview']) this.init(value)
|
|
147
|
+
container(value) {
|
|
148
|
+
this.init(value)
|
|
150
149
|
}
|
|
151
150
|
},
|
|
152
151
|
created() {
|
|
@@ -39,7 +39,8 @@
|
|
|
39
39
|
type="primary"
|
|
40
40
|
radius="20rpx"
|
|
41
41
|
@click="doWxMpLogin"
|
|
42
|
-
>快捷登录</xd-button
|
|
42
|
+
>快捷登录</xd-button
|
|
43
|
+
>
|
|
43
44
|
<!-- #endif -->
|
|
44
45
|
<view class="login-pub">
|
|
45
46
|
<xd-button
|
|
@@ -50,6 +51,7 @@
|
|
|
50
51
|
@click="doLoginAccount"
|
|
51
52
|
>账号登录</xd-button>
|
|
52
53
|
</view>
|
|
54
|
+
|
|
53
55
|
<view class="protocol">
|
|
54
56
|
<xd-form-checkbox
|
|
55
57
|
class="xd-form-checkbox"
|
|
@@ -59,7 +61,7 @@
|
|
|
59
61
|
:localdata="[{ value: 1, text: '请阅读并同意《隐私政策》《用户服务协议》' },]"
|
|
60
62
|
>
|
|
61
63
|
<template slot="a1">
|
|
62
|
-
<view
|
|
64
|
+
<view>
|
|
63
65
|
<text>请阅读并同意</text>
|
|
64
66
|
<text @click.stop="handlePrivacy('privacy_privacy')" :style="{color: mainColor}">《隐私政策》</text>
|
|
65
67
|
<text @click.stop="handlePrivacy('privacy_service')" :style="{color: mainColor}">《用户服务协议》</text>
|
|
@@ -88,7 +90,7 @@
|
|
|
88
90
|
</view>
|
|
89
91
|
<view style="margin-top: 40rpx">
|
|
90
92
|
<xd-form
|
|
91
|
-
label-width="
|
|
93
|
+
label-width="130"
|
|
92
94
|
label-align="right"
|
|
93
95
|
content-align="left"
|
|
94
96
|
:border="true"
|
|
@@ -143,7 +145,7 @@
|
|
|
143
145
|
:localdata="[{ value: 1, text: '登录即同意《隐私政策》《用户服务协议》' },]"
|
|
144
146
|
>
|
|
145
147
|
<template slot="a1">
|
|
146
|
-
<view
|
|
148
|
+
<view>
|
|
147
149
|
<text>请阅读并同意</text>
|
|
148
150
|
<text @click.stop="handlePrivacy('privacy_privacy')" :style="{color: mainColor}">《隐私政策》</text>
|
|
149
151
|
<text @click.stop="handlePrivacy('privacy_service')" :style="{color: mainColor}">《用户服务协议》</text>
|
|
@@ -165,7 +167,8 @@
|
|
|
165
167
|
v-if="accountLoginType === 'pwd'"
|
|
166
168
|
class="forget_password"
|
|
167
169
|
@click="toValidPhone"
|
|
168
|
-
|
|
170
|
+
>忘记密码</view
|
|
171
|
+
>
|
|
169
172
|
</view>
|
|
170
173
|
<view class="bottom_btn" :style="prod_bottom" v-if="isPreview === 'Y' || isDebugPreview">
|
|
171
174
|
<view
|
|
@@ -222,10 +225,6 @@ import {
|
|
|
222
225
|
} from "@/utils/xd.base";
|
|
223
226
|
|
|
224
227
|
export default {
|
|
225
|
-
// #ifdef MP-WEIXIN
|
|
226
|
-
options: { styleIsolation: 'shared' },
|
|
227
|
-
// #endif
|
|
228
|
-
|
|
229
228
|
name: "JfbBaseLogin",
|
|
230
229
|
components: {
|
|
231
230
|
XdFontIcon,
|
|
@@ -306,9 +305,8 @@ export default {
|
|
|
306
305
|
},
|
|
307
306
|
},
|
|
308
307
|
watch: {
|
|
309
|
-
container(value
|
|
310
|
-
|
|
311
|
-
if (this.$configProject['isPreview']) this.init(value)
|
|
308
|
+
container(value) {
|
|
309
|
+
this.init(value);
|
|
312
310
|
},
|
|
313
311
|
"accountForm.verification_code"(value){
|
|
314
312
|
if (value && value.length >= 8 && value.length % 2 === 0) {
|
|
@@ -697,7 +695,7 @@ export default {
|
|
|
697
695
|
content: "请阅读并勾选读用户协议与隐私协议",
|
|
698
696
|
cancel: false,
|
|
699
697
|
confirmText: "我知道了",
|
|
700
|
-
|
|
698
|
+
$vm: this,
|
|
701
699
|
});
|
|
702
700
|
return;
|
|
703
701
|
}
|
|
@@ -1013,20 +1011,5 @@ export default {
|
|
|
1013
1011
|
}
|
|
1014
1012
|
}
|
|
1015
1013
|
|
|
1016
|
-
/* #ifdef MP-WEIXIN */
|
|
1017
|
-
/deep/ .xd-form-checkbox .checklist-group {
|
|
1018
|
-
justify-content: center;
|
|
1019
|
-
display: flex;
|
|
1020
|
-
align-items: center;
|
|
1021
|
-
}
|
|
1022
|
-
.text-content {
|
|
1023
|
-
width: 100%;
|
|
1024
|
-
& > text {
|
|
1025
|
-
font-size: 26rpx;
|
|
1026
|
-
}
|
|
1027
|
-
}
|
|
1028
|
-
/* #endif */
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
1014
|
|
|
1032
1015
|
</style>
|
|
@@ -13,17 +13,21 @@
|
|
|
13
13
|
:class="{ editx: isEditx && active }"
|
|
14
14
|
v-if="isEditx && active && !noBorder"
|
|
15
15
|
>
|
|
16
|
-
<view class="jfb-base-login-forget-pwd__edit-icon" @click="delEdit"
|
|
16
|
+
<view class="jfb-base-login-forget-pwd__edit-icon" @click="delEdit"
|
|
17
|
+
>删除</view
|
|
18
|
+
>
|
|
17
19
|
</view>
|
|
18
20
|
<!-- #endif -->
|
|
19
21
|
<view class="jfb-base-login-forget-pwd__body">
|
|
20
22
|
<view class="panel-forget-password">
|
|
21
23
|
<view class="form-group" style="padding-top: 60rpx;padding-bottom: 40rpx;">
|
|
22
24
|
<view style="font-size: 36rpx;color: #333;">请输入手机号</view>
|
|
23
|
-
<view style="font-size: 26rpx; color: #999; margin-top: 20rpx"
|
|
25
|
+
<view style="font-size: 26rpx; color: #999; margin-top: 20rpx"
|
|
26
|
+
>为了您的账号安全,请先验证手机号</view
|
|
27
|
+
>
|
|
24
28
|
</view>
|
|
25
29
|
<xd-form
|
|
26
|
-
label-width="
|
|
30
|
+
label-width="130"
|
|
27
31
|
label-align="right"
|
|
28
32
|
content-align="left"
|
|
29
33
|
:border="true"
|
|
@@ -113,9 +117,8 @@ export default {
|
|
|
113
117
|
};
|
|
114
118
|
},
|
|
115
119
|
watch: {
|
|
116
|
-
container(value
|
|
117
|
-
|
|
118
|
-
if (this.$configProject['isPreview']) this.init(value)
|
|
120
|
+
container(value) {
|
|
121
|
+
this.init(value);
|
|
119
122
|
},
|
|
120
123
|
"resetForm.verification_code"(value) {
|
|
121
124
|
if (value && value.length >= 8 && value.length % 2 === 0) {
|
|
@@ -228,7 +231,6 @@ export default {
|
|
|
228
231
|
color: @xd-base-color;
|
|
229
232
|
font-size: 24rpx;
|
|
230
233
|
margin-right: unit(20,rpx);
|
|
231
|
-
flex-shrink: 0;
|
|
232
234
|
}
|
|
233
235
|
.panel-forget-password {
|
|
234
236
|
/deep/ .uni-forms-item__label {
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
<view style="font-size:26rpx;color:#999;margin-top:20rpx;">请输入{{pwd_type_text}}并牢记</view>
|
|
26
26
|
</view>
|
|
27
27
|
<xd-form
|
|
28
|
-
label-width="
|
|
28
|
+
label-width="130"
|
|
29
29
|
label-align="right"
|
|
30
30
|
content-align="left"
|
|
31
31
|
:border="true"
|
|
@@ -77,13 +77,10 @@
|
|
|
77
77
|
import XdForm from "@/components/XdForm/XdForm";
|
|
78
78
|
import XdFormInput from "@/components/XdFormInput/XdFormInput";
|
|
79
79
|
import XdButton from "@/components/XdButton/XdButton";
|
|
80
|
-
|
|
81
|
-
|
|
80
|
+
|
|
81
|
+
|
|
82
82
|
export default {
|
|
83
83
|
name: "JfbBaseLoginSetPwd",
|
|
84
|
-
//#ifdef MP-WEIXIN
|
|
85
|
-
options: { styleIsolation: 'shared' },
|
|
86
|
-
//#endif
|
|
87
84
|
components: {
|
|
88
85
|
XdFontIcon,
|
|
89
86
|
XdFormItem,
|
|
@@ -102,6 +99,7 @@
|
|
|
102
99
|
},
|
|
103
100
|
success_url: "",
|
|
104
101
|
pwd_type: "", //设置密码 1, 重设密码 2
|
|
102
|
+
//todo
|
|
105
103
|
}
|
|
106
104
|
},
|
|
107
105
|
computed: {
|
|
@@ -110,9 +108,8 @@
|
|
|
110
108
|
}
|
|
111
109
|
},
|
|
112
110
|
watch: {
|
|
113
|
-
container(value
|
|
114
|
-
|
|
115
|
-
if (this.$configProject['isPreview']) this.init(value)
|
|
111
|
+
container(value) {
|
|
112
|
+
this.init(value)
|
|
116
113
|
}
|
|
117
114
|
},
|
|
118
115
|
created() {
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
<iframe frameborder="0" v-if="iframe" :src="iframe" class="jfb-base-map-overlay__body-iframe"></iframe>
|
|
21
21
|
<xd-baidu-overlay v-else :defaultOverlays="overlays" :level="11"></xd-baidu-overlay>
|
|
22
22
|
</template>
|
|
23
|
-
|
|
23
|
+
|
|
24
24
|
<!-- #endif -->
|
|
25
25
|
<!-- #ifdef MP -->
|
|
26
26
|
<xd-map-overlay :defaultOverlays="overlays" :level="11"></xd-map-overlay>
|
|
@@ -76,9 +76,8 @@
|
|
|
76
76
|
})
|
|
77
77
|
},
|
|
78
78
|
watch: {
|
|
79
|
-
container(value
|
|
80
|
-
|
|
81
|
-
if (this.$configProject['isPreview']) this.init(value)
|
|
79
|
+
container(value) {
|
|
80
|
+
this.init(value)
|
|
82
81
|
}
|
|
83
82
|
},
|
|
84
83
|
created() {
|
|
@@ -112,20 +111,7 @@
|
|
|
112
111
|
}).then(res => {
|
|
113
112
|
//iframe
|
|
114
113
|
if(res['is_ifream'] === 'Y') {
|
|
115
|
-
// #ifdef MP
|
|
116
|
-
if(!res.url){
|
|
117
|
-
return uni.showToast({
|
|
118
|
-
title: 'URL不存在',
|
|
119
|
-
duration: 2000
|
|
120
|
-
});
|
|
121
|
-
}
|
|
122
|
-
this.$xdUniHelper.redirectTo({
|
|
123
|
-
url: url,
|
|
124
|
-
})
|
|
125
|
-
// #endif
|
|
126
|
-
// #ifdef H5
|
|
127
114
|
this.iframe = res.url
|
|
128
|
-
// #endif
|
|
129
115
|
}
|
|
130
116
|
else{
|
|
131
117
|
this.overlays = res.data;
|
|
@@ -217,7 +203,7 @@
|
|
|
217
203
|
onJfbBack(options) {
|
|
218
204
|
this.$xdUniHelper.navigateBack()
|
|
219
205
|
},
|
|
220
|
-
|
|
206
|
+
|
|
221
207
|
}
|
|
222
208
|
}
|
|
223
209
|
|
|
@@ -229,7 +215,7 @@
|
|
|
229
215
|
.jfb-base-map-overlay {
|
|
230
216
|
&__body{
|
|
231
217
|
width: 750rpx;
|
|
232
|
-
|
|
218
|
+
|
|
233
219
|
&-iframe {
|
|
234
220
|
height: 100%;
|
|
235
221
|
width: 100%;
|