jufubao-base 1.0.242-beta3 → 1.0.242-beta5
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
CHANGED
|
@@ -55,6 +55,19 @@ export default {
|
|
|
55
55
|
},
|
|
56
56
|
inline: false,
|
|
57
57
|
},
|
|
58
|
+
{
|
|
59
|
+
label: '选取城市路径:',
|
|
60
|
+
ele: 'xd-select-pages-path',
|
|
61
|
+
valueKey: 'cityPath',
|
|
62
|
+
placeholder: '请选择选取城市路径',
|
|
63
|
+
value: data.cityPath || null,
|
|
64
|
+
className: 'input100',
|
|
65
|
+
groupKey:'advanced',
|
|
66
|
+
setting: {
|
|
67
|
+
router: XdBus.getParentApi('getPagesTree')
|
|
68
|
+
},
|
|
69
|
+
inline: false,
|
|
70
|
+
},
|
|
58
71
|
].filter(i=>i)
|
|
59
72
|
},
|
|
60
73
|
advanced: [],
|
|
@@ -115,6 +115,21 @@
|
|
|
115
115
|
<XdButton @click="handleConfirm" size="small" type="primary">确认</XdButton>
|
|
116
116
|
</view>
|
|
117
117
|
</XdDialog>
|
|
118
|
+
<XdDialog class="location-dialog-title" width="80%" :show.sync="showLocationDialog" :showClose="false"
|
|
119
|
+
:showTitle="true">
|
|
120
|
+
<view slot="title">
|
|
121
|
+
<xd-font-icon icon="icondingweixiao" color="#999999" size="60"></xd-font-icon>
|
|
122
|
+
<text style="font-size: 32rpx;color: #333;margin-top: 12rpx;">定位请求</text>
|
|
123
|
+
</view>
|
|
124
|
+
<view class="location-dialog-content">
|
|
125
|
+
<view>为了给您提供更好的服务需要获取您的位置信息</view>
|
|
126
|
+
</view>
|
|
127
|
+
<view class="dialog-btns" slot="btn">
|
|
128
|
+
<XdButton @click="showLocationDialog=false" bgColor="#EEEEEE" color="#888888" size="small" type="info">取消
|
|
129
|
+
</XdButton>
|
|
130
|
+
<XdButton @click="handleToCity" size="small" type="primary">允许</XdButton>
|
|
131
|
+
</view>
|
|
132
|
+
</XdDialog>
|
|
118
133
|
</view>
|
|
119
134
|
</template>
|
|
120
135
|
|
|
@@ -131,6 +146,9 @@
|
|
|
131
146
|
import { mapState } from 'vuex';
|
|
132
147
|
|
|
133
148
|
export default {
|
|
149
|
+
//#ifdef MP-WEIXIN
|
|
150
|
+
options: { styleIsolation: 'shared' },
|
|
151
|
+
//#endif
|
|
134
152
|
name: "JfbBaseConsumpCode",
|
|
135
153
|
components: {
|
|
136
154
|
XdFontIcon,
|
|
@@ -176,6 +194,8 @@
|
|
|
176
194
|
isPreview: false,
|
|
177
195
|
jwxSDK: null,
|
|
178
196
|
refresh: true, //onshow是否刷新数据
|
|
197
|
+
showLocationDialog: false,
|
|
198
|
+
cityPath: ''
|
|
179
199
|
}
|
|
180
200
|
},
|
|
181
201
|
watch: {
|
|
@@ -241,9 +261,12 @@
|
|
|
241
261
|
|
|
242
262
|
if (Object.keys(this.stateLocation).length === 0) {
|
|
243
263
|
this.tip = '为了给您提供更好的服务需要获取您的位置信息'
|
|
264
|
+
this.showLocationDialog = true;
|
|
244
265
|
this.showMask = true;
|
|
245
266
|
this.showDialog = false;
|
|
246
267
|
return
|
|
268
|
+
} else{
|
|
269
|
+
this.showLocationDialog = false
|
|
247
270
|
}
|
|
248
271
|
}
|
|
249
272
|
if (!this.options.shop_id) {
|
|
@@ -293,6 +316,13 @@
|
|
|
293
316
|
).value;
|
|
294
317
|
this.cashPayPath = getContainerPropsValue(container, 'content.cash_pay_path', { value: "" }
|
|
295
318
|
).value;
|
|
319
|
+
this.successPath = getContainerPropsValue(
|
|
320
|
+
container,
|
|
321
|
+
"content.successPath",
|
|
322
|
+
{ value: "" }
|
|
323
|
+
).value;
|
|
324
|
+
this.cityPath = getContainerPropsValue(container, 'content.cityPath', { value: "" }
|
|
325
|
+
).value;
|
|
296
326
|
},
|
|
297
327
|
getUserInfo() {
|
|
298
328
|
jfbRootExec("getConsumpBaseUserInfo", {
|
|
@@ -740,6 +770,11 @@
|
|
|
740
770
|
this.price = "";
|
|
741
771
|
}
|
|
742
772
|
},
|
|
773
|
+
handleToCity() {
|
|
774
|
+
this.$xdUniHelper.navigateTo({
|
|
775
|
+
url: this.cityPath
|
|
776
|
+
},true);
|
|
777
|
+
},
|
|
743
778
|
handleNumberChange(num) {
|
|
744
779
|
let curTag = this.curTag;
|
|
745
780
|
this.total_price = this.$xdUniHelper.multiplyFloatNumber(curTag.price_yuan, num);
|
|
@@ -1046,8 +1081,29 @@
|
|
|
1046
1081
|
.dialog-btns {
|
|
1047
1082
|
width: 100%;
|
|
1048
1083
|
display: flex;
|
|
1049
|
-
justify-content: space-
|
|
1084
|
+
justify-content: space-around;
|
|
1085
|
+
|
|
1086
|
+
}
|
|
1087
|
+
|
|
1088
|
+
.location-dialog-content {
|
|
1089
|
+
display: flex;
|
|
1090
|
+
justify-content: center;
|
|
1091
|
+
align-items: center;
|
|
1092
|
+
border-bottom: 2rpx dashed #E5E5E5;
|
|
1093
|
+
padding-bottom: 30rpx;
|
|
1094
|
+
|
|
1095
|
+
&>view:first-child {
|
|
1096
|
+
font-size: 26rpx;
|
|
1097
|
+
color: #999999;
|
|
1098
|
+
width: 60%;
|
|
1099
|
+
}
|
|
1100
|
+
}
|
|
1050
1101
|
|
|
1102
|
+
.location-dialog-title ::v-deep .xd-dailog__body-title {
|
|
1103
|
+
padding-top: 40rpx;
|
|
1104
|
+
padding-bottom: 32rpx;
|
|
1105
|
+
height: auto;
|
|
1106
|
+
line-height: inherit;
|
|
1051
1107
|
}
|
|
1052
1108
|
}
|
|
1053
1109
|
</style>
|
|
@@ -56,6 +56,18 @@ export default {
|
|
|
56
56
|
},
|
|
57
57
|
classNmae: 'input80',
|
|
58
58
|
},
|
|
59
|
+
{
|
|
60
|
+
label: '边框颜色:',
|
|
61
|
+
ele: 'xd-color',
|
|
62
|
+
valueKey: 'borderColor',
|
|
63
|
+
groupKey:'content',
|
|
64
|
+
value: data['borderColor'] || '',
|
|
65
|
+
placeholder: '请选择边框颜色',
|
|
66
|
+
setting: {
|
|
67
|
+
isAlpha: false
|
|
68
|
+
},
|
|
69
|
+
classNmae: 'input80',
|
|
70
|
+
},
|
|
59
71
|
{
|
|
60
72
|
label: '菜单文字颜色:',
|
|
61
73
|
ele: 'xd-color',
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
<view class="jfb-base-footer__body">
|
|
20
20
|
<view :style="[bodyStyle]">
|
|
21
21
|
<xd-footer-bar
|
|
22
|
+
class="footer-bar-deep"
|
|
22
23
|
style="height:100%"
|
|
23
24
|
v-if="list !== null"
|
|
24
25
|
:height="height"
|
|
@@ -48,6 +49,9 @@
|
|
|
48
49
|
import getServiceUrl from "@/common/getServiceUrl";
|
|
49
50
|
|
|
50
51
|
export default {
|
|
52
|
+
//#ifdef MP-WEIXIN
|
|
53
|
+
options: { styleIsolation: 'shared' },
|
|
54
|
+
//#endif
|
|
51
55
|
name: "JfbBaseFooter",
|
|
52
56
|
components: {
|
|
53
57
|
XdFontIcon,
|
|
@@ -61,6 +65,7 @@
|
|
|
61
65
|
backgroundSize: '100% 100%',
|
|
62
66
|
backgroundRepeat: 'no-repeat',
|
|
63
67
|
backgroundPosition: 'top center',
|
|
68
|
+
'--border-color': this.borderColor
|
|
64
69
|
}
|
|
65
70
|
|
|
66
71
|
if(this.backgroundImage && this.backgroundImage.url) {
|
|
@@ -78,6 +83,7 @@
|
|
|
78
83
|
footerBarKey: 'footerBarKey', //刷新
|
|
79
84
|
baseUrl: '',
|
|
80
85
|
backgroundImage: '',
|
|
86
|
+
borderColor: ''
|
|
81
87
|
}
|
|
82
88
|
},
|
|
83
89
|
watch: {
|
|
@@ -197,6 +203,7 @@
|
|
|
197
203
|
let bar = getContainerPropsValue(value, 'content.footer-setting', []);
|
|
198
204
|
let imageIcons = getContainerPropsValue(value, 'content.footerSettingImage', []);
|
|
199
205
|
this.backgroundImage = getContainerPropsValue(value, 'content.backgroundImage', '');
|
|
206
|
+
this.borderColor = getContainerPropsValue(value, 'content.borderColor', '');
|
|
200
207
|
this.list = {
|
|
201
208
|
bgColor: getContainerPropsValue(value, 'content.bgColor', '#fff'),
|
|
202
209
|
bodyStyle: this.bodyStyle,
|
|
@@ -222,6 +229,12 @@
|
|
|
222
229
|
|
|
223
230
|
<style scoped lang="less">
|
|
224
231
|
@import "./JfbBaseFooterLess.less";
|
|
232
|
+
.footer-bar-deep {
|
|
233
|
+
::v-deep .xd-footer-tabbar__border {
|
|
234
|
+
border-color: var(--border-color);
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
|
|
225
238
|
|
|
226
239
|
.jfb-base-footer {
|
|
227
240
|
|