jufubao-base 1.0.159 → 1.0.160-beta1
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 +201 -70
- package/src/components/JfbBaseAddress/JfbBaseAddress.vue +7 -6
- package/src/components/JfbBaseAfterOrderDetail/JfbBaseAfterOrderDetail.vue +5 -3
- package/src/components/JfbBaseAfterOrderList/JfbBaseAfterOrderList.vue +3 -2
- package/src/components/JfbBaseBack/JfbBaseBack.vue +10 -8
- package/src/components/JfbBaseBackground/JfbBaseBackground.vue +3 -2
- package/src/components/JfbBaseBlock/JfbBaseBlock.vue +3 -2
- package/src/components/JfbBaseCard/JfbBaseCard.vue +10 -6
- package/src/components/JfbBaseCardBindV2/JfbBaseCardBindV2.vue +57 -26
- package/src/components/JfbBaseCardDetail/JfbBaseCardDetail.vue +14 -15
- package/src/components/JfbBaseCardDetailEntry/Attr.js +22 -0
- package/src/components/JfbBaseCardDetailEntry/JfbBaseCardDetailEntry.vue +393 -424
- package/src/components/JfbBaseCardDisabled/JfbBaseCardDisabled.vue +4 -4
- package/src/components/JfbBaseCardDisabledEntry/JfbBaseCardDisabledEntry.vue +7 -9
- package/src/components/JfbBaseCardEntry/Attr.js +22 -1
- package/src/components/JfbBaseCardEntry/JfbBaseCardEntry.vue +91 -36
- package/src/components/JfbBaseCardInfo/JfbBaseCardInfo.vue +38 -22
- package/src/components/JfbBaseCardInfoEntry/Attr.js +22 -0
- package/src/components/JfbBaseCardInfoEntry/JfbBaseCardInfoEntry.vue +285 -260
- package/src/components/JfbBaseCardMerge/JfbBaseCardMerge.vue +4 -3
- package/src/components/JfbBaseCardMergeEntry/JfbBaseCardMergeEntry.vue +23 -18
- package/src/components/JfbBaseCardShift/JfbBaseCardShift.vue +4 -11
- package/src/components/JfbBaseCardShiftEntry/JfbBaseCardShiftEntry.vue +16 -19
- package/src/components/JfbBaseCardSweepInfo/JfbBaseCardSweepInfo.vue +3 -2
- package/src/components/JfbBaseCardV2/JfbBaseCardV2.vue +34 -18
- package/src/components/JfbBaseCardV3/JfbBaseCardV3.vue +14 -14
- package/src/components/JfbBaseCity/JfbBaseCity.vue +3 -2
- package/src/components/JfbBaseClear/JfbBaseClear.vue +3 -2
- package/src/components/JfbBaseConList/JfbBaseConList.vue +4 -4
- package/src/components/JfbBaseConPhone/JfbBaseConPhone.vue +3 -2
- package/src/components/JfbBaseEntry/Attr.js +22 -0
- package/src/components/JfbBaseEntry/JfbBaseEntry.vue +84 -20
- package/src/components/JfbBaseExpressDetail/JfbBaseExpressDetail.vue +3 -4
- package/src/components/JfbBaseFastLink/JfbBaseFastLink.vue +33 -22
- package/src/components/JfbBaseFastLink/XdFastNav.vue +2 -2
- package/src/components/JfbBaseFooter/JfbBaseFooter.vue +0 -1
- package/src/components/JfbBaseHeader/JfbBaseHeader.vue +3 -2
- package/src/components/JfbBaseLogin/JfbBaseLogin.vue +28 -11
- package/src/components/JfbBaseLoginForgetPwd/JfbBaseLoginForgetPwd.vue +7 -9
- package/src/components/JfbBaseLoginSetPwd/JfbBaseLoginSetPwd.vue +9 -6
- package/src/components/JfbBaseMapOverlay/JfbBaseMapOverlay.vue +19 -5
- package/src/components/JfbBaseMapOverlay/XdMapOverlay.vue +52 -37
- package/src/components/JfbBaseMapSearch/JfbBaseMapSearch.vue +3 -2
- package/src/components/JfbBaseMergeUserCard/JfbBaseMergeUserCard.vue +28 -27
- package/src/components/JfbBaseMultipleExpress/JfbBaseMultipleExpress.vue +5 -5
- package/src/components/JfbBaseMy/JfbBaseMy.vue +3 -3
- package/src/components/JfbBaseMySetting/JfbBaseMySetting.vue +6 -4
- package/src/components/JfbBaseNotice/Attr.js +0 -2
- package/src/components/JfbBaseNotice/JfbBaseNotice.vue +36 -14
- package/src/components/JfbBaseNotice/XdNoticeBar.vue +17 -1
- package/src/components/JfbBaseNoticeBottom/JfbBaseNoticeBottom.vue +3 -2
- package/src/components/JfbBaseNoticeTop/JfbBaseNoticeTop.vue +3 -2
- package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +20 -31
- package/src/components/JfbBaseOrderList/JfbBaseOrderList.vue +9 -4
- package/src/components/JfbBasePay/JfbBasePay.vue +3 -2
- package/src/components/JfbBasePhoneCollect/JfbBasePhoneCollect.vue +22 -7
- package/src/components/JfbBasePhoneLogin/JfbBasePhoneLogin.vue +23 -7
- package/src/components/JfbBasePoster/JfbBasePoster.vue +118 -18
- package/src/components/JfbBasePoster/MoreScreen.vue +155 -37
- package/src/components/JfbBasePosterBigSmall/Attr.js +2 -5
- package/src/components/JfbBasePosterBigSmall/JfbBasePosterBigSmall.vue +191 -67
- package/src/components/JfbBasePosterEntry/JfbBasePosterEntry.vue +90 -20
- package/src/components/JfbBasePosterType/FourScreen.vue +162 -18
- package/src/components/JfbBasePosterType/JfbBasePosterType.vue +0 -35
- package/src/components/JfbBaseRecharge/JfbBaseRecharge.vue +4 -4
- package/src/components/JfbBaseRechargeOrder/JfbBaseRechargeOrder.vue +3 -4
- package/src/components/JfbBaseRechargeOrderDetail/JfbBaseRechargeOrderDetail.vue +4 -7
- package/src/components/JfbBaseRechargeSuccess/JfbBaseRechargeSuccess.vue +6 -9
- package/src/components/JfbBaseSearch/JfbBaseSearch.vue +3 -2
- package/src/components/JfbBaseSuccess/JfbBaseSuccess.vue +5 -4
- package/src/components/JfbBaseUserCenter/JfbBaseUserCenter.vue +3 -2
- package/src/components/JfbBaseUserInfo/JfbBaseUserInfo.vue +5 -3
- package/src/components/JfbBaseUserOrder/JfbBaseUserOrder.vue +4 -3
- package/src/components/JfbBaseVideo/JfbBaseVideo.vue +14 -11
- package/src/components/JfbBaseVideo/XdVideo.vue +0 -4
- package/src/components/JfbBaseWallet/JfbBaseWallet.vue +3 -2
- package/src/components/JfbBaseWalletDetail/JfbBaseWalletDetail.vue +5 -8
- package/src/components/JfbBaseWalletEffective/JfbBaseWalletEffective.vue +5 -8
- package/src/components/JfbBaseWalletIndex/JfbBaseWalletIndex.vue +7 -17
- package/src/components/JfbBaseWalletItem/JfbBaseWalletItem.vue +13 -21
- package/src/components/JfbBaseWebview/JfbBaseWebview.vue +4 -3
- package/src/components/JfbBaseWxAuthorize/JfbBaseWxAuthorize.vue +5 -4
- package/src/components/JfbBaseWxAuthorizeError/JfbBaseWxAuthorizeError.vue +3 -4
- package/src/mixins/colorCardMixins.js +1 -1
|
@@ -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 {mapState} from "vuex";
|
|
53
53
|
export default {
|
|
54
54
|
name: "JfbBaseEntry",
|
|
55
55
|
components: {
|
|
@@ -66,21 +66,23 @@
|
|
|
66
66
|
paddingInput: 20,
|
|
67
67
|
loadingList: true,
|
|
68
68
|
margin: {},
|
|
69
|
+
entryType: '',
|
|
69
70
|
}
|
|
70
71
|
},
|
|
71
72
|
computed: {
|
|
73
|
+
...mapState(['brandInfo']),
|
|
72
74
|
bodyStyle(){
|
|
73
|
-
return {
|
|
75
|
+
return this.styleObjectToString({
|
|
74
76
|
backgroundColor: this.bgcolor,
|
|
75
77
|
minHeight: this.layoutInfo.bodyMinHeight,
|
|
76
|
-
}
|
|
78
|
+
})
|
|
77
79
|
},
|
|
78
80
|
entryStyle(){
|
|
79
|
-
return {
|
|
81
|
+
return this.styleObjectToString({
|
|
80
82
|
gridTemplateColumns: `repeat(${this.rowNum}, 1fr)`,
|
|
81
83
|
gap: this.paddingInput + 'rpx',
|
|
82
84
|
padding: this.paddingInput + 'rpx'
|
|
83
|
-
}
|
|
85
|
+
})
|
|
84
86
|
},
|
|
85
87
|
marginUi(){
|
|
86
88
|
let str = `${this.checkValue(this.margin.top, 0)}rpx`;
|
|
@@ -91,9 +93,10 @@
|
|
|
91
93
|
}
|
|
92
94
|
},
|
|
93
95
|
watch: {
|
|
94
|
-
container(value) {
|
|
95
|
-
|
|
96
|
-
|
|
96
|
+
container(value,oldValue) {
|
|
97
|
+
if(JSON.stringify(value) === JSON.stringify(oldValue)) return;
|
|
98
|
+
if (this.$configProject['isPreview']) this.init(value)
|
|
99
|
+
},
|
|
97
100
|
},
|
|
98
101
|
created() {
|
|
99
102
|
this.init(this.container);
|
|
@@ -111,17 +114,67 @@
|
|
|
111
114
|
this.rowNum = getContainerPropsValue(container, 'content.rowNum', 1);
|
|
112
115
|
this.paddingInput = getContainerPropsValue(container, 'content.paddingInput', 20);
|
|
113
116
|
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
|
|
114
144
|
},
|
|
115
145
|
getEntrySetting(){
|
|
116
146
|
this.$xdShowLoading({});
|
|
117
147
|
jfbRootExec("getEntrySetting", {
|
|
118
148
|
vm: this,
|
|
119
|
-
data: {
|
|
149
|
+
data: {
|
|
150
|
+
group_id:this.entryType || 'default'
|
|
151
|
+
}
|
|
120
152
|
}).then(res => {
|
|
121
153
|
this.loadingList = false;
|
|
122
154
|
this.$xdHideLoading();
|
|
123
|
-
|
|
124
|
-
|
|
155
|
+
let isH5FilterEntryList = [];
|
|
156
|
+
let isMpFilterEntryList = [];
|
|
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';
|
|
125
178
|
item['image_url'] = getServiceUrl(item.image_url);
|
|
126
179
|
item['image_url2'] = item.image_url2 ? getServiceUrl(item.image_url2) : "";
|
|
127
180
|
item['image_url3'] = item.image_url3 ? getServiceUrl(item.image_url3) : "";
|
|
@@ -139,24 +192,35 @@
|
|
|
139
192
|
let jumpUrl = path;
|
|
140
193
|
|
|
141
194
|
//域名相同并且应用路径不相同时候处理
|
|
142
|
-
if(host === this.projectAttr.host
|
|
143
|
-
&& this.projectAttr['deploy_dir'] !== dir
|
|
144
|
-
){
|
|
195
|
+
if(host === this.projectAttr.host && this.projectAttr['deploy_dir'] !== dir){
|
|
145
196
|
jumpUrl = `//${host}/${dir}${path}`;
|
|
146
197
|
//#ifdef MP-WEIXIN
|
|
147
198
|
jumpUrl = `https:${jumpUrl}`;
|
|
148
199
|
//#endif
|
|
149
200
|
}
|
|
150
201
|
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
item['
|
|
202
|
+
//获取自定义卡券登录地址(微信小程序跳转到H5平台起作用)
|
|
203
|
+
let cardPathStr = '';
|
|
204
|
+
//#ifdef MP-WEIXIN
|
|
205
|
+
if(item.redirect_data.appType === 'h5') {
|
|
206
|
+
const custom_redirect_data = this.$xdUniHelper.checkVarType(item['custom_redirect_data']) === 'object'?item['custom_redirect_data']:{};
|
|
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
|
+
}
|
|
156
212
|
}
|
|
213
|
+
//#endif
|
|
214
|
+
item['redirect_data']['path'] = `${jumpUrl}?x-common=${nsp}&vs=${new Date().getTime()}${cardPathStr}`
|
|
157
215
|
return item;
|
|
158
216
|
});
|
|
159
|
-
|
|
217
|
+
//#ifdef MP-WEIXIN
|
|
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)}`);
|
|
160
224
|
if(res.list.length === 1) this.toLink(this.entryList[0]);
|
|
161
225
|
if(res.list.length === 0) {
|
|
162
226
|
this.$xdAlert({content: '当前票券暂无支持服务'})
|
|
@@ -50,14 +50,13 @@ export default {
|
|
|
50
50
|
};
|
|
51
51
|
},
|
|
52
52
|
watch: {
|
|
53
|
-
container(value) {
|
|
54
|
-
|
|
53
|
+
container(value,oldValue) {
|
|
54
|
+
if(JSON.stringify(value) === JSON.stringify(oldValue)) return;
|
|
55
|
+
if (this.$configProject['isPreview']) this.init(value)
|
|
55
56
|
},
|
|
56
57
|
},
|
|
57
58
|
created() {
|
|
58
59
|
this.init(this.container);
|
|
59
|
-
|
|
60
|
-
//todo
|
|
61
60
|
},
|
|
62
61
|
methods: {
|
|
63
62
|
onJfbLoad(options) {
|
|
@@ -67,6 +67,7 @@
|
|
|
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'
|
|
70
71
|
import XdFastNav from "./XdFastNav.vue";
|
|
71
72
|
import Color from "color";
|
|
72
73
|
const color = require('color');
|
|
@@ -113,8 +114,9 @@
|
|
|
113
114
|
}
|
|
114
115
|
},
|
|
115
116
|
watch: {
|
|
116
|
-
container(value) {
|
|
117
|
-
|
|
117
|
+
container(value,oldValue) {
|
|
118
|
+
if(JSON.stringify(value) === JSON.stringify(oldValue)) return;
|
|
119
|
+
if (this.$configProject['isPreview']) this.init(value)
|
|
118
120
|
}
|
|
119
121
|
},
|
|
120
122
|
|
|
@@ -132,10 +134,10 @@
|
|
|
132
134
|
},
|
|
133
135
|
|
|
134
136
|
subNameSize(){
|
|
135
|
-
return {
|
|
137
|
+
return this.styleObjectToString({
|
|
136
138
|
fontSize: this.fontSubSize + 'rpx',
|
|
137
139
|
color: this.subColor
|
|
138
|
-
}
|
|
140
|
+
})
|
|
139
141
|
}
|
|
140
142
|
},
|
|
141
143
|
|
|
@@ -185,24 +187,33 @@
|
|
|
185
187
|
this.margin = getContainerPropsValue(container, 'content.margin', {top: 0, left: 0, right: 0, bottom: 0});
|
|
186
188
|
this.subColor = getContainerPropsValue(container, 'content.textSubColor', '#000');
|
|
187
189
|
this.fontSubSize = getContainerPropsValue(container, 'content.fontSubSize', 24);
|
|
188
|
-
this.
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
190
|
+
if(this.is_layout === 'fixed') {
|
|
191
|
+
this.listNave = this.list.map(item=>{
|
|
192
|
+
let {appValue,path} = item.path
|
|
193
|
+
if(appValue === '0') {
|
|
194
|
+
return { name: item.name, path: item.path.value, icon: item.icon, size: item.size}
|
|
195
|
+
}
|
|
196
|
+
else{
|
|
197
|
+
const {dir,fixed_business_code} = item.path;
|
|
198
|
+
let bus = fixed_business_code? Base64.encodeURI(JSON.stringify({business_code: fixed_business_code})):'';
|
|
199
|
+
if(bus) bus = `?x-common=${bus}`;
|
|
200
|
+
let jumpUrl = '';
|
|
201
|
+
//#ifdef H5
|
|
202
|
+
if(dir) jumpUrl = `//${window.location.host}/${dir}${path}`;
|
|
203
|
+
else jumpUrl = path;
|
|
204
|
+
//#endif
|
|
205
|
+
|
|
206
|
+
//#ifdef MP-WEIXIN
|
|
207
|
+
const pathObj = parsePath(path);
|
|
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
|
+
}
|
|
206
217
|
|
|
207
218
|
},
|
|
208
219
|
}
|
|
@@ -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>{{fastName}}</view>
|
|
13
|
+
<view v-if="0">{{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 v-if="item.icon">
|
|
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,8 +144,9 @@
|
|
|
144
144
|
}
|
|
145
145
|
},
|
|
146
146
|
watch: {
|
|
147
|
-
container(value) {
|
|
148
|
-
|
|
147
|
+
container(value,oldValue) {
|
|
148
|
+
if(JSON.stringify(value) === JSON.stringify(oldValue)) return;
|
|
149
|
+
if (this.$configProject['isPreview']) this.init(value)
|
|
149
150
|
}
|
|
150
151
|
},
|
|
151
152
|
created() {
|
|
@@ -39,8 +39,7 @@
|
|
|
39
39
|
type="primary"
|
|
40
40
|
radius="20rpx"
|
|
41
41
|
@click="doWxMpLogin"
|
|
42
|
-
>快捷登录</xd-button
|
|
43
|
-
>
|
|
42
|
+
>快捷登录</xd-button>
|
|
44
43
|
<!-- #endif -->
|
|
45
44
|
<view class="login-pub">
|
|
46
45
|
<xd-button
|
|
@@ -51,7 +50,6 @@
|
|
|
51
50
|
@click="doLoginAccount"
|
|
52
51
|
>账号登录</xd-button>
|
|
53
52
|
</view>
|
|
54
|
-
|
|
55
53
|
<view class="protocol">
|
|
56
54
|
<xd-form-checkbox
|
|
57
55
|
class="xd-form-checkbox"
|
|
@@ -61,7 +59,7 @@
|
|
|
61
59
|
:localdata="[{ value: 1, text: '请阅读并同意《隐私政策》《用户服务协议》' },]"
|
|
62
60
|
>
|
|
63
61
|
<template slot="a1">
|
|
64
|
-
<view>
|
|
62
|
+
<view class="text-content">
|
|
65
63
|
<text>请阅读并同意</text>
|
|
66
64
|
<text @click.stop="handlePrivacy('privacy_privacy')" :style="{color: mainColor}">《隐私政策》</text>
|
|
67
65
|
<text @click.stop="handlePrivacy('privacy_service')" :style="{color: mainColor}">《用户服务协议》</text>
|
|
@@ -90,7 +88,7 @@
|
|
|
90
88
|
</view>
|
|
91
89
|
<view style="margin-top: 40rpx">
|
|
92
90
|
<xd-form
|
|
93
|
-
label-width="
|
|
91
|
+
label-width="150"
|
|
94
92
|
label-align="right"
|
|
95
93
|
content-align="left"
|
|
96
94
|
:border="true"
|
|
@@ -145,7 +143,7 @@
|
|
|
145
143
|
:localdata="[{ value: 1, text: '登录即同意《隐私政策》《用户服务协议》' },]"
|
|
146
144
|
>
|
|
147
145
|
<template slot="a1">
|
|
148
|
-
<view>
|
|
146
|
+
<view class="text-content">
|
|
149
147
|
<text>请阅读并同意</text>
|
|
150
148
|
<text @click.stop="handlePrivacy('privacy_privacy')" :style="{color: mainColor}">《隐私政策》</text>
|
|
151
149
|
<text @click.stop="handlePrivacy('privacy_service')" :style="{color: mainColor}">《用户服务协议》</text>
|
|
@@ -167,8 +165,7 @@
|
|
|
167
165
|
v-if="accountLoginType === 'pwd'"
|
|
168
166
|
class="forget_password"
|
|
169
167
|
@click="toValidPhone"
|
|
170
|
-
|
|
171
|
-
>
|
|
168
|
+
>忘记密码</view>
|
|
172
169
|
</view>
|
|
173
170
|
<view class="bottom_btn" :style="prod_bottom" v-if="isPreview === 'Y' || isDebugPreview">
|
|
174
171
|
<view
|
|
@@ -225,6 +222,10 @@ import {
|
|
|
225
222
|
} from "@/utils/xd.base";
|
|
226
223
|
|
|
227
224
|
export default {
|
|
225
|
+
// #ifdef MP-WEIXIN
|
|
226
|
+
options: { styleIsolation: 'shared' },
|
|
227
|
+
// #endif
|
|
228
|
+
|
|
228
229
|
name: "JfbBaseLogin",
|
|
229
230
|
components: {
|
|
230
231
|
XdFontIcon,
|
|
@@ -305,8 +306,9 @@ export default {
|
|
|
305
306
|
},
|
|
306
307
|
},
|
|
307
308
|
watch: {
|
|
308
|
-
container(value) {
|
|
309
|
-
|
|
309
|
+
container(value,oldValue) {
|
|
310
|
+
if(JSON.stringify(value) === JSON.stringify(oldValue)) return;
|
|
311
|
+
if (this.$configProject['isPreview']) this.init(value)
|
|
310
312
|
},
|
|
311
313
|
"accountForm.verification_code"(value){
|
|
312
314
|
if (value && value.length >= 8 && value.length % 2 === 0) {
|
|
@@ -695,7 +697,7 @@ export default {
|
|
|
695
697
|
content: "请阅读并勾选读用户协议与隐私协议",
|
|
696
698
|
cancel: false,
|
|
697
699
|
confirmText: "我知道了",
|
|
698
|
-
|
|
700
|
+
styles: this.styles,
|
|
699
701
|
});
|
|
700
702
|
return;
|
|
701
703
|
}
|
|
@@ -1011,5 +1013,20 @@ export default {
|
|
|
1011
1013
|
}
|
|
1012
1014
|
}
|
|
1013
1015
|
|
|
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
|
+
|
|
1014
1031
|
|
|
1015
1032
|
</style>
|
|
@@ -13,21 +13,17 @@
|
|
|
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"
|
|
17
|
-
>删除</view
|
|
18
|
-
>
|
|
16
|
+
<view class="jfb-base-login-forget-pwd__edit-icon" @click="delEdit">删除</view>
|
|
19
17
|
</view>
|
|
20
18
|
<!-- #endif -->
|
|
21
19
|
<view class="jfb-base-login-forget-pwd__body">
|
|
22
20
|
<view class="panel-forget-password">
|
|
23
21
|
<view class="form-group" style="padding-top: 60rpx;padding-bottom: 40rpx;">
|
|
24
22
|
<view style="font-size: 36rpx;color: #333;">请输入手机号</view>
|
|
25
|
-
<view style="font-size: 26rpx; color: #999; margin-top: 20rpx"
|
|
26
|
-
>为了您的账号安全,请先验证手机号</view
|
|
27
|
-
>
|
|
23
|
+
<view style="font-size: 26rpx; color: #999; margin-top: 20rpx">为了您的账号安全,请先验证手机号</view>
|
|
28
24
|
</view>
|
|
29
25
|
<xd-form
|
|
30
|
-
label-width="
|
|
26
|
+
label-width="170"
|
|
31
27
|
label-align="right"
|
|
32
28
|
content-align="left"
|
|
33
29
|
:border="true"
|
|
@@ -117,8 +113,9 @@ export default {
|
|
|
117
113
|
};
|
|
118
114
|
},
|
|
119
115
|
watch: {
|
|
120
|
-
container(value) {
|
|
121
|
-
|
|
116
|
+
container(value,oldValue) {
|
|
117
|
+
if(JSON.stringify(value) === JSON.stringify(oldValue)) return;
|
|
118
|
+
if (this.$configProject['isPreview']) this.init(value)
|
|
122
119
|
},
|
|
123
120
|
"resetForm.verification_code"(value) {
|
|
124
121
|
if (value && value.length >= 8 && value.length % 2 === 0) {
|
|
@@ -231,6 +228,7 @@ export default {
|
|
|
231
228
|
color: @xd-base-color;
|
|
232
229
|
font-size: 24rpx;
|
|
233
230
|
margin-right: unit(20,rpx);
|
|
231
|
+
flex-shrink: 0;
|
|
234
232
|
}
|
|
235
233
|
.panel-forget-password {
|
|
236
234
|
/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="170"
|
|
29
29
|
label-align="right"
|
|
30
30
|
content-align="left"
|
|
31
31
|
:border="true"
|
|
@@ -77,10 +77,13 @@
|
|
|
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
|
|
84
87
|
components: {
|
|
85
88
|
XdFontIcon,
|
|
86
89
|
XdFormItem,
|
|
@@ -99,7 +102,6 @@
|
|
|
99
102
|
},
|
|
100
103
|
success_url: "",
|
|
101
104
|
pwd_type: "", //设置密码 1, 重设密码 2
|
|
102
|
-
//todo
|
|
103
105
|
}
|
|
104
106
|
},
|
|
105
107
|
computed: {
|
|
@@ -108,8 +110,9 @@
|
|
|
108
110
|
}
|
|
109
111
|
},
|
|
110
112
|
watch: {
|
|
111
|
-
container(value) {
|
|
112
|
-
|
|
113
|
+
container(value,oldValue) {
|
|
114
|
+
if(JSON.stringify(value) === JSON.stringify(oldValue)) return;
|
|
115
|
+
if (this.$configProject['isPreview']) this.init(value)
|
|
113
116
|
}
|
|
114
117
|
},
|
|
115
118
|
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,8 +76,9 @@
|
|
|
76
76
|
})
|
|
77
77
|
},
|
|
78
78
|
watch: {
|
|
79
|
-
container(value) {
|
|
80
|
-
|
|
79
|
+
container(value,oldValue) {
|
|
80
|
+
if(JSON.stringify(value) === JSON.stringify(oldValue)) return;
|
|
81
|
+
if (this.$configProject['isPreview']) this.init(value)
|
|
81
82
|
}
|
|
82
83
|
},
|
|
83
84
|
created() {
|
|
@@ -111,7 +112,20 @@
|
|
|
111
112
|
}).then(res => {
|
|
112
113
|
//iframe
|
|
113
114
|
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
|
|
114
127
|
this.iframe = res.url
|
|
128
|
+
// #endif
|
|
115
129
|
}
|
|
116
130
|
else{
|
|
117
131
|
this.overlays = res.data;
|
|
@@ -203,7 +217,7 @@
|
|
|
203
217
|
onJfbBack(options) {
|
|
204
218
|
this.$xdUniHelper.navigateBack()
|
|
205
219
|
},
|
|
206
|
-
|
|
220
|
+
|
|
207
221
|
}
|
|
208
222
|
}
|
|
209
223
|
|
|
@@ -215,7 +229,7 @@
|
|
|
215
229
|
.jfb-base-map-overlay {
|
|
216
230
|
&__body{
|
|
217
231
|
width: 750rpx;
|
|
218
|
-
|
|
232
|
+
|
|
219
233
|
&-iframe {
|
|
220
234
|
height: 100%;
|
|
221
235
|
width: 100%;
|