jufubao-base 1.0.159-beta8 → 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 +423 -390
- 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 +33 -86
- 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
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
</template>
|
|
7
7
|
|
|
8
8
|
<script>
|
|
9
|
-
import { mapState } from 'vuex'
|
|
10
9
|
export default {
|
|
11
10
|
name: "XdMapOverlay",
|
|
12
11
|
props: {
|
|
@@ -71,12 +70,6 @@
|
|
|
71
70
|
}
|
|
72
71
|
},
|
|
73
72
|
},
|
|
74
|
-
computed: {
|
|
75
|
-
...mapState({
|
|
76
|
-
stateCity: state => state.cityLocation.city,
|
|
77
|
-
stateLocation: state => state.cityLocation.location || {},
|
|
78
|
-
})
|
|
79
|
-
},
|
|
80
73
|
data() {
|
|
81
74
|
return {
|
|
82
75
|
uiLevel: 15,
|
|
@@ -99,51 +92,43 @@
|
|
|
99
92
|
created() {
|
|
100
93
|
this.uiLevel = this.level;
|
|
101
94
|
console.log("this.defaultOverlays", this.defaultOverlays)
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
})
|
|
140
|
-
}else{
|
|
141
|
-
if(this.stateLocation.longitude && this.stateLocation.latitude){
|
|
142
|
-
this.uiCenter = this.stateLocation;
|
|
143
|
-
this.markers = [this.stateLocation];
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
|
|
95
|
+
this.defaultOverlays.forEach(item => {
|
|
96
|
+
if (item.type === 'Polygon') {
|
|
97
|
+
this.polygons.push({
|
|
98
|
+
// fillColor: "#00FF00",
|
|
99
|
+
// strokeColor: "#FF0000",
|
|
100
|
+
points: item.value.map(point => ({
|
|
101
|
+
longitude: point[0],
|
|
102
|
+
latitude: point[1]
|
|
103
|
+
})),
|
|
104
|
+
...this.stroke,
|
|
105
|
+
});
|
|
106
|
+
let allX = item.value.map(p => p[0]);
|
|
107
|
+
let allY = item.value.map(p => p[1]);
|
|
108
|
+
let centerX = (Math.max(...allX) + Math.min(...allX)) / 2;
|
|
109
|
+
let centerY = (Math.max(...allY) + Math.min(...allY)) / 2;
|
|
110
|
+
this.uiCenter = {
|
|
111
|
+
longitude: centerX,
|
|
112
|
+
latitude: centerY
|
|
113
|
+
}
|
|
114
|
+
console.log("uiCenter", centerX, centerY)
|
|
115
|
+
} else if (item.type === 'Circle') {
|
|
116
|
+
this.circles.push({
|
|
117
|
+
fillColor: "#00FF00",
|
|
118
|
+
strokeColor: "#FF0000",
|
|
119
|
+
longitude: item.value[0][0],
|
|
120
|
+
latitude: item.value[0][1],
|
|
121
|
+
radius: item.r
|
|
122
|
+
})
|
|
123
|
+
if (!this.uiCenter) {
|
|
124
|
+
this.uiCenter = {
|
|
125
|
+
longitude: item.value[0][0],
|
|
126
|
+
latitude: item.value[0][1]
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
console.log('uiCenter', item.value[0][0], item.value[0][1])
|
|
130
|
+
}
|
|
131
|
+
})
|
|
147
132
|
}
|
|
148
133
|
}
|
|
149
134
|
</script>
|
|
@@ -32,7 +32,8 @@
|
|
|
32
32
|
class="get_code"
|
|
33
33
|
@click="sendMsgCode"
|
|
34
34
|
:style="{color: mainColor}"
|
|
35
|
-
>{{time ? time + '秒后获取':'获取验证码'}}
|
|
35
|
+
>{{time ? time + '秒后获取':'获取验证码'}}
|
|
36
|
+
</view>
|
|
36
37
|
</view>
|
|
37
38
|
</xd-form-item>
|
|
38
39
|
</xd-form>
|
|
@@ -61,7 +62,7 @@
|
|
|
61
62
|
import XdFormInput from "@/components/XdFormInput/XdFormInput";
|
|
62
63
|
import XdButton from "@/components/XdButton/XdButton";
|
|
63
64
|
import XdFormCheckbox from "@/components/XdFormCheckbox/XdFormCheckbox"
|
|
64
|
-
|
|
65
|
+
|
|
65
66
|
export default {
|
|
66
67
|
name: "JfbBaseMergeUserCard",
|
|
67
68
|
components: {
|
|
@@ -88,11 +89,10 @@
|
|
|
88
89
|
}
|
|
89
90
|
},
|
|
90
91
|
watch: {
|
|
91
|
-
container(value
|
|
92
|
-
|
|
93
|
-
if (this.$configProject['isPreview']) this.init(value)
|
|
92
|
+
container(value) {
|
|
93
|
+
this.init(value)
|
|
94
94
|
},
|
|
95
|
-
|
|
95
|
+
|
|
96
96
|
"accountForm.verification_code"(value) {
|
|
97
97
|
if (value && value.length >= 8 && value.length % 2 === 0) {
|
|
98
98
|
let start = value.slice(0, value.length / 2);
|
|
@@ -135,13 +135,13 @@
|
|
|
135
135
|
url: this.callback_url
|
|
136
136
|
})
|
|
137
137
|
}, 1500);
|
|
138
|
-
|
|
138
|
+
|
|
139
139
|
}).catch(error=>{
|
|
140
140
|
this.$xdHideLoading();
|
|
141
141
|
this.$xdLog.catch(error)
|
|
142
142
|
})
|
|
143
143
|
},
|
|
144
|
-
|
|
144
|
+
|
|
145
145
|
/**
|
|
146
146
|
* @description 监听事件变化
|
|
147
147
|
* @param container {object} 业务组件对象自己
|
|
@@ -149,7 +149,7 @@
|
|
|
149
149
|
init(container) {
|
|
150
150
|
this.callback_url = getContainerPropsValue(container, 'content.callback_url', {value: ''}).value;
|
|
151
151
|
},
|
|
152
|
-
|
|
152
|
+
|
|
153
153
|
sendMsgCode() {
|
|
154
154
|
if (this.time > 0) return;
|
|
155
155
|
const {phone_number} = this.accountForm;
|
|
@@ -180,7 +180,7 @@
|
|
|
180
180
|
this.$xdLog.catch(error)
|
|
181
181
|
})
|
|
182
182
|
},
|
|
183
|
-
|
|
183
|
+
|
|
184
184
|
}
|
|
185
185
|
}
|
|
186
186
|
|
|
@@ -196,70 +196,69 @@
|
|
|
196
196
|
font-size: unit(26, rpx) !important;
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
|
-
|
|
199
|
+
|
|
200
200
|
.xd-form-checkbox {
|
|
201
201
|
/deep/ .checklist-box {
|
|
202
202
|
margin: 0 !important;
|
|
203
203
|
}
|
|
204
204
|
}
|
|
205
|
-
|
|
205
|
+
|
|
206
206
|
.xd-form-checkbox {
|
|
207
207
|
/deep/ .checklist-group {
|
|
208
208
|
justify-content: center;
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
|
-
|
|
211
|
+
|
|
212
212
|
.xd-form-checkbox {
|
|
213
213
|
/deep/ .checklist-text {
|
|
214
214
|
margin-left: unit(20, rpx) !important;
|
|
215
215
|
}
|
|
216
216
|
}
|
|
217
|
-
|
|
217
|
+
|
|
218
218
|
.form-group {
|
|
219
219
|
padding: unit(40, rpx) unit(70, rpx);
|
|
220
220
|
}
|
|
221
|
-
|
|
221
|
+
|
|
222
222
|
.get_code {
|
|
223
223
|
color: @xd-base-color;
|
|
224
224
|
font-size: unit(24, rpx);
|
|
225
|
-
flex-shrink: 0;
|
|
226
225
|
}
|
|
227
|
-
|
|
226
|
+
|
|
228
227
|
.panel-login-password {
|
|
229
228
|
padding: unit(20, rpx) 0;
|
|
230
|
-
|
|
229
|
+
|
|
231
230
|
/deep/ .uni-forms-item__label {
|
|
232
231
|
.label-text {
|
|
233
232
|
font-size: unit(26, rpx);
|
|
234
233
|
color: #A6A6A6;
|
|
235
234
|
}
|
|
236
235
|
}
|
|
237
|
-
|
|
236
|
+
|
|
238
237
|
/deep/ .uni-easyinput__placeholder-class {
|
|
239
238
|
font-size: unit(26, rpx);
|
|
240
239
|
color: #D4D4D4;
|
|
241
240
|
}
|
|
242
|
-
|
|
241
|
+
|
|
243
242
|
.phone-login-type {
|
|
244
243
|
display: flex;
|
|
245
244
|
color: #808080;
|
|
246
245
|
font-size: unit(32, rpx);
|
|
247
246
|
padding: unit(20, rpx) unit(70, rpx);
|
|
248
247
|
align-items: center;
|
|
249
|
-
|
|
248
|
+
|
|
250
249
|
._item {
|
|
251
250
|
margin: 0 unit(30, rpx);
|
|
252
251
|
position: relative;
|
|
253
252
|
line-height: 2;
|
|
254
|
-
|
|
253
|
+
|
|
255
254
|
&:first-child {
|
|
256
255
|
margin-left: 0;
|
|
257
256
|
}
|
|
258
|
-
|
|
257
|
+
|
|
259
258
|
&.active {
|
|
260
259
|
color: #383838;
|
|
261
260
|
font-size: unit(36, rpx);
|
|
262
|
-
|
|
261
|
+
|
|
263
262
|
text {
|
|
264
263
|
position: absolute;
|
|
265
264
|
height: unit(6, rpx);
|
|
@@ -272,15 +271,15 @@
|
|
|
272
271
|
}
|
|
273
272
|
}
|
|
274
273
|
}
|
|
275
|
-
|
|
274
|
+
|
|
276
275
|
.forget_password {
|
|
277
276
|
font-size: unit(24, rpx);
|
|
278
277
|
color: #A6A6A6;
|
|
279
278
|
text-align: right;
|
|
280
279
|
margin: unit(20, rpx) unit(70, rpx) 0 0;
|
|
281
|
-
|
|
280
|
+
|
|
282
281
|
}
|
|
283
|
-
|
|
282
|
+
|
|
284
283
|
.not_login {
|
|
285
284
|
position: fixed;
|
|
286
285
|
width: 100%;
|
|
@@ -289,7 +288,7 @@
|
|
|
289
288
|
font-size: unit(26, rpx);
|
|
290
289
|
color: #FE7A63;
|
|
291
290
|
}
|
|
292
|
-
|
|
291
|
+
|
|
293
292
|
&-form {
|
|
294
293
|
margin-top: unit(40, rpx)
|
|
295
294
|
}
|
|
@@ -130,13 +130,14 @@ export default {
|
|
|
130
130
|
};
|
|
131
131
|
},
|
|
132
132
|
watch: {
|
|
133
|
-
container(value
|
|
134
|
-
|
|
135
|
-
if (this.$configProject['isPreview']) this.init(value)
|
|
133
|
+
container(value) {
|
|
134
|
+
this.init(value);
|
|
136
135
|
},
|
|
137
136
|
},
|
|
138
137
|
created() {
|
|
139
138
|
this.init(this.container);
|
|
139
|
+
|
|
140
|
+
//todo
|
|
140
141
|
},
|
|
141
142
|
methods: {
|
|
142
143
|
onJfbLoad(options) {
|
|
@@ -206,9 +207,8 @@ export default {
|
|
|
206
207
|
// #ifndef H5
|
|
207
208
|
uni.setClipboardData({
|
|
208
209
|
data: text,
|
|
209
|
-
showToast: false,
|
|
210
210
|
success: () => {
|
|
211
|
-
|
|
211
|
+
this.$xdAlert({ content: "复制成功" });
|
|
212
212
|
},
|
|
213
213
|
});
|
|
214
214
|
// #endif
|
|
@@ -112,12 +112,12 @@
|
|
|
112
112
|
quick_url_list: [],
|
|
113
113
|
add_url: '',
|
|
114
114
|
bgColor: ''
|
|
115
|
+
//todo
|
|
115
116
|
}
|
|
116
117
|
},
|
|
117
118
|
watch: {
|
|
118
|
-
container(value
|
|
119
|
-
|
|
120
|
-
if (this.$configProject['isPreview']) this.init(value)
|
|
119
|
+
container(value) {
|
|
120
|
+
this.init(value)
|
|
121
121
|
}
|
|
122
122
|
},
|
|
123
123
|
created() {
|
|
@@ -86,10 +86,9 @@
|
|
|
86
86
|
}
|
|
87
87
|
},
|
|
88
88
|
watch: {
|
|
89
|
-
container(value
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
},
|
|
89
|
+
container(value) {
|
|
90
|
+
this.init(value)
|
|
91
|
+
}
|
|
93
92
|
},
|
|
94
93
|
created() {
|
|
95
94
|
this.init(this.container);
|
|
@@ -166,8 +165,7 @@
|
|
|
166
165
|
this.$xdShowLoading({});
|
|
167
166
|
store.dispatch('logout').then(res=>{
|
|
168
167
|
this.$xdHideLoading();
|
|
169
|
-
this.jfbAuthorize.
|
|
170
|
-
this.jfbAuthorize.removeAllCardToken();
|
|
168
|
+
this.jfbAuthorize.removeToken('card');
|
|
171
169
|
this.jfbAuthorize.jumpToUserLogin(this, false);
|
|
172
170
|
}).catch(err=>{
|
|
173
171
|
console.error(err);
|
|
@@ -51,14 +51,7 @@
|
|
|
51
51
|
</view>
|
|
52
52
|
</swiper-item>
|
|
53
53
|
</swiper>
|
|
54
|
-
<xd-notice-bar
|
|
55
|
-
:class="{isMp:isMp}"
|
|
56
|
-
v-else
|
|
57
|
-
:key="speedKey"
|
|
58
|
-
scrollable
|
|
59
|
-
:speed="speed"
|
|
60
|
-
background-color="rgba(0,0,0,0)"
|
|
61
|
-
>
|
|
54
|
+
<xd-notice-bar v-else :key="speedKey" scrollable :speed="speed" background-color="rgba(0,0,0,0)">
|
|
62
55
|
<view
|
|
63
56
|
v-for="item in contentList"
|
|
64
57
|
class="jfb-base-notice__body-scroll-content"
|
|
@@ -219,17 +212,13 @@
|
|
|
219
212
|
|
|
220
213
|
backgroundColor: '',
|
|
221
214
|
is_hide_dailog:'N',
|
|
222
|
-
|
|
223
|
-
isMp:false
|
|
224
215
|
}
|
|
225
216
|
},
|
|
226
217
|
watch: {
|
|
227
|
-
container(value,
|
|
228
|
-
if(JSON.stringify(value) === JSON.stringify(
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
this.onJfbLoad()
|
|
232
|
-
}
|
|
218
|
+
container(value,oloValue) {
|
|
219
|
+
if(JSON.stringify(value) === JSON.stringify(oloValue)) return;
|
|
220
|
+
this.init(this.container);
|
|
221
|
+
if (this.$configProject['isPreview']) this.onJfbLoad()
|
|
233
222
|
},
|
|
234
223
|
num(){
|
|
235
224
|
if (this.$configProject['isPreview']) this.onJfbLoad()
|
|
@@ -246,13 +235,7 @@
|
|
|
246
235
|
this.speedKey = Date.now()
|
|
247
236
|
}, 400)
|
|
248
237
|
|
|
249
|
-
}
|
|
250
|
-
is_hide_dailog(value){
|
|
251
|
-
if(value === 'N') {
|
|
252
|
-
storage.remove(this.containerId);
|
|
253
|
-
this.onJfbLoad();
|
|
254
|
-
}
|
|
255
|
-
},
|
|
238
|
+
}
|
|
256
239
|
},
|
|
257
240
|
computed:{
|
|
258
241
|
marginUi() {
|
|
@@ -298,14 +281,18 @@
|
|
|
298
281
|
return this.num > 1
|
|
299
282
|
},
|
|
300
283
|
|
|
284
|
+
is_hide_dailog(value){
|
|
285
|
+
if(value === 'N') {
|
|
286
|
+
storage.remove(this.containerId);
|
|
287
|
+
this.onJfbLoad();
|
|
288
|
+
}
|
|
289
|
+
},
|
|
290
|
+
|
|
301
291
|
},
|
|
302
292
|
created() {
|
|
303
293
|
this.backgroundColor = Color(this.warningColor).alpha(0.2).toString();
|
|
304
294
|
this.isPreview = this.$configProject['isPreview'];
|
|
305
295
|
this.init(this.container);
|
|
306
|
-
//#ifdef MP-WEIXIN
|
|
307
|
-
this.isMp = true;
|
|
308
|
-
//#endif
|
|
309
296
|
},
|
|
310
297
|
methods: {
|
|
311
298
|
|
|
@@ -337,12 +324,7 @@
|
|
|
337
324
|
|
|
338
325
|
if(this.style === '2') {
|
|
339
326
|
this.num = getContainerPropsValue(container, 'content.num', 1);
|
|
340
|
-
//#ifdef H5
|
|
341
327
|
this.speed = Number(getContainerPropsValue(container, 'content.speed', 30));
|
|
342
|
-
//#endif
|
|
343
|
-
//#ifdef MP-WEIXIN
|
|
344
|
-
this.speed = Number(getContainerPropsValue(container, 'content.speed', 30))/2.5;
|
|
345
|
-
//#endif
|
|
346
328
|
}
|
|
347
329
|
else this.num = 1;
|
|
348
330
|
this.is_hide_dailog = getContainerPropsValue(container, 'content.is_hide_dailog', 'N');
|
|
@@ -352,7 +334,7 @@
|
|
|
352
334
|
console.log('this.time', this.time * 60 + '分钟');
|
|
353
335
|
storage.set(this.containerId, 1, this.time);
|
|
354
336
|
this.$xdConfirm({
|
|
355
|
-
|
|
337
|
+
$vm: this,
|
|
356
338
|
title: this.title || this.ajaxTitle,
|
|
357
339
|
content: this.content,
|
|
358
340
|
isHtml: true,
|
|
@@ -536,10 +518,6 @@
|
|
|
536
518
|
overflow-y: auto;
|
|
537
519
|
margin: unit(40, rpx) unit(10, rpx) unit(20, rpx);
|
|
538
520
|
}
|
|
539
|
-
|
|
540
521
|
}
|
|
541
522
|
}
|
|
542
|
-
.isMp {
|
|
543
|
-
width: 100%;
|
|
544
|
-
}
|
|
545
523
|
</style>
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<view
|
|
3
|
-
v-if="show"
|
|
4
|
-
class="uni-noticebar"
|
|
5
|
-
@click="onClick"
|
|
6
|
-
:class="{isMp:isMp}"
|
|
7
|
-
>
|
|
2
|
+
<view v-if="show" class="uni-noticebar" @click="onClick">
|
|
8
3
|
<!-- #ifdef MP-ALIPAY -->
|
|
9
4
|
<view
|
|
10
5
|
v-if="showClose === true || showClose === 'true'"
|
|
@@ -227,8 +222,6 @@
|
|
|
227
222
|
|
|
228
223
|
uiColor: '', //文字颜色
|
|
229
224
|
uiBackgroundColor: '', //背景颜色
|
|
230
|
-
|
|
231
|
-
isMp: false,
|
|
232
225
|
}
|
|
233
226
|
},
|
|
234
227
|
|
|
@@ -245,10 +238,6 @@
|
|
|
245
238
|
})
|
|
246
239
|
// #endif
|
|
247
240
|
|
|
248
|
-
//#ifdef MP-WEIXIN
|
|
249
|
-
this.isMp = true;
|
|
250
|
-
//#endif
|
|
251
|
-
|
|
252
241
|
this.$nextTick(() => {
|
|
253
242
|
this.initSize()
|
|
254
243
|
})
|
|
@@ -301,7 +290,6 @@
|
|
|
301
290
|
this.animationDuration = `${item.width / this.speed}s`
|
|
302
291
|
}
|
|
303
292
|
if(item.key === 'box') {
|
|
304
|
-
|
|
305
293
|
this.boxWidth = item.width;
|
|
306
294
|
this.animationDelay = `0.5s`
|
|
307
295
|
}
|
|
@@ -528,8 +516,4 @@
|
|
|
528
516
|
transform: translate3d(-100%, 0, 0);
|
|
529
517
|
}
|
|
530
518
|
}
|
|
531
|
-
|
|
532
|
-
.isMp {
|
|
533
|
-
width: 100%;
|
|
534
|
-
}
|
|
535
519
|
</style>
|