jufubao-third 1.0.22-beta9 → 1.0.22
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/components/JfbThirdRideGenOrder/Api.js +1 -1
- package/src/components/JfbThirdRideLand/JfbThirdRideLand.vue +2 -17
- package/src/components/JfbThirdRideLand/cusAttr/advanced.js +11 -1
- package/src/components/JfbThirdRideLand/cusAttr/content.js +16 -13
- package/src/components/JfbThirdRideLand/cusAttr/style.js +4 -20
- package/.claude/settings.local.json +0 -12
package/package.json
CHANGED
|
@@ -8,7 +8,7 @@ module.exports = [
|
|
|
8
8
|
{
|
|
9
9
|
mapFnName: 'rideOrderDetail',
|
|
10
10
|
title: "打车 - 订单详情(轮询用)",
|
|
11
|
-
path: "/thirdmall
|
|
11
|
+
path: "/thirdmall/v1/:channel_code/ride/order-result",
|
|
12
12
|
isRule: false,
|
|
13
13
|
data: {
|
|
14
14
|
channel_code: ['渠道编码', 'String', '必选','amapcar'],
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
</view>
|
|
16
16
|
</view>
|
|
17
17
|
<!-- #endif -->
|
|
18
|
-
<view class="jfb-third-ride-land__body" :style="
|
|
18
|
+
<view class="jfb-third-ride-land__body" :style="bodyStyle">
|
|
19
19
|
<view class="land_box" :style="cardStyle" v-html="contentHtml"></view>
|
|
20
20
|
<view
|
|
21
21
|
class="land_btn"
|
|
@@ -36,7 +36,6 @@
|
|
|
36
36
|
import posterMixins from "@/mixins/posterMixins";
|
|
37
37
|
import componentsMixins from "@/mixins/componentsMixins";
|
|
38
38
|
import extsMixins from "@/mixins/extsMixins";
|
|
39
|
-
import getServiceUrl from "@/common/getServiceUrl";
|
|
40
39
|
export default {
|
|
41
40
|
name: "JfbThirdRideLand",
|
|
42
41
|
components: {
|
|
@@ -55,24 +54,12 @@
|
|
|
55
54
|
countdownLeft: 0,
|
|
56
55
|
countdownTimer: null,
|
|
57
56
|
//样式
|
|
58
|
-
bgImage: '',
|
|
59
57
|
margin: {},
|
|
60
58
|
padding: {},
|
|
61
59
|
radius: 24,
|
|
62
60
|
}
|
|
63
61
|
},
|
|
64
62
|
computed: {
|
|
65
|
-
//页面背景(背景图)
|
|
66
|
-
bgStyle(){
|
|
67
|
-
let style = {};
|
|
68
|
-
if(this.bgImage) {
|
|
69
|
-
style.backgroundImage = `url(${getServiceUrl(this.bgImage)})`;
|
|
70
|
-
style.backgroundSize = '100% 100%';
|
|
71
|
-
style.backgroundPosition = 'center';
|
|
72
|
-
style.backgroundRepeat = 'no-repeat';
|
|
73
|
-
}
|
|
74
|
-
return style;
|
|
75
|
-
},
|
|
76
63
|
//外边距
|
|
77
64
|
bodyStyle(){
|
|
78
65
|
let style = {
|
|
@@ -135,11 +122,9 @@
|
|
|
135
122
|
//内容
|
|
136
123
|
this.contentHtml = gCPVal(container, 'contentHtml', '');
|
|
137
124
|
this.btnText = gCPVal(container, 'btnText', '我已知晓');
|
|
138
|
-
this.btnLink = gCPVal(container, 'btnLink',
|
|
125
|
+
this.btnLink = gCPVal(container, 'btnLink', "");
|
|
139
126
|
this.countdown = gCPVal(container, 'countdown', 0);
|
|
140
127
|
//样式
|
|
141
|
-
let bgImageVal = gCPVal(container, 'bgImage', {});
|
|
142
|
-
this.bgImage = bgImageVal && bgImageVal.url ? bgImageVal.url : '';
|
|
143
128
|
this.margin = gCPVal(container, 'margin', 32, {sKey: 'marginStatus', fields: ['margin'], isPM: true});
|
|
144
129
|
this.padding = gCPVal(container, 'padding', 32, {sKey: 'paddingStatus', fields: ['padding'], isPM: true});
|
|
145
130
|
this.radius = gCPVal(container, 'radius', 24, {sKey: 'radiusStatus', fields: ['radius']});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
'use strict';
|
|
2
|
-
|
|
2
|
+
import { dataVal } from "@/utils/AttrTools";
|
|
3
3
|
export default (data, gValue, gColor, oldData) => {
|
|
4
4
|
return [
|
|
5
5
|
//高级
|
|
@@ -18,5 +18,15 @@ export default (data, gValue, gColor, oldData) => {
|
|
|
18
18
|
// router: XdBus.getParentApi('getPagesTree')
|
|
19
19
|
// },
|
|
20
20
|
// },
|
|
21
|
+
{
|
|
22
|
+
label: "按钮链接",
|
|
23
|
+
ele: "el-input",
|
|
24
|
+
groupKey: 'advanced',
|
|
25
|
+
valueKey: "btnLink",
|
|
26
|
+
value: dataVal({data, key: 'btnLink', dValue: '', gValue}),
|
|
27
|
+
placeholder: '请输入按钮跳转链接',
|
|
28
|
+
labelInline: true,
|
|
29
|
+
className: 'input100',
|
|
30
|
+
},
|
|
21
31
|
].filter(i=>i)
|
|
22
32
|
}
|
|
@@ -15,17 +15,30 @@ export default (data, gValue, gColor, oldData) => {
|
|
|
15
15
|
return [
|
|
16
16
|
//富文本内容
|
|
17
17
|
{
|
|
18
|
-
|
|
18
|
+
ele: 'title',
|
|
19
|
+
label: '基础',
|
|
20
|
+
size: 'small',
|
|
21
|
+
groupKey:'content',
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
label: "提示内容",
|
|
19
25
|
ele: "xd-tinymce",
|
|
20
26
|
valueKey: "contentHtml",
|
|
21
27
|
value: data.contentHtml || "",
|
|
22
28
|
imageConfig,
|
|
23
29
|
inline: false,
|
|
24
30
|
groupKey: "content",
|
|
31
|
+
labelInline: true,
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
ele: 'title',
|
|
35
|
+
label: '组件样式',
|
|
36
|
+
size: 'small',
|
|
37
|
+
groupKey:'content',
|
|
25
38
|
},
|
|
26
39
|
//按钮文案
|
|
27
40
|
{
|
|
28
|
-
label: '
|
|
41
|
+
label: '按钮名称',
|
|
29
42
|
ele: 'el-input',
|
|
30
43
|
groupKey: 'content',
|
|
31
44
|
valueKey: 'btnText',
|
|
@@ -34,19 +47,9 @@ export default (data, gValue, gColor, oldData) => {
|
|
|
34
47
|
labelInline: true,
|
|
35
48
|
className: 'input100',
|
|
36
49
|
},
|
|
37
|
-
{
|
|
38
|
-
label: "按钮跳转链接",
|
|
39
|
-
ele: "el-input",
|
|
40
|
-
groupKey: 'content',
|
|
41
|
-
valueKey: "btnLink",
|
|
42
|
-
value: dataVal({data, key: 'btnLink', dValue: '', gValue}),
|
|
43
|
-
placeholder: '请输入按钮跳转链接',
|
|
44
|
-
labelInline: true,
|
|
45
|
-
className: 'input100',
|
|
46
|
-
},
|
|
47
50
|
//倒计时秒数
|
|
48
51
|
{
|
|
49
|
-
label: '
|
|
52
|
+
label: '按钮倒秒',
|
|
50
53
|
ele: 'el-input',
|
|
51
54
|
groupKey: 'content',
|
|
52
55
|
valueKey: 'countdown',
|
|
@@ -4,27 +4,11 @@ import {dataVal, statusShow, statusDataVal} from "@/utils/AttrTools";
|
|
|
4
4
|
export default (data, gValue, gColor, oldData) => {
|
|
5
5
|
return [
|
|
6
6
|
//风格
|
|
7
|
-
//背景图(含头部banner背景)
|
|
8
7
|
{
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
value: data.bgImage || {},
|
|
14
|
-
defaultValue: data.bgImage || null,
|
|
15
|
-
slot: true,
|
|
16
|
-
oneWidth: 750/4,
|
|
17
|
-
oneHeight: 1000/4,
|
|
18
|
-
elinputClassName: 'input40',
|
|
19
|
-
tipsformet: '上传文件格式:@imageType@,不超过@size@MB.建议宽度为<span style="color:red">750px</span>',
|
|
20
|
-
type: ['jpg', 'png', 'jpeg'],
|
|
21
|
-
styleType: 'one',
|
|
22
|
-
uploadType: 'aliyun',
|
|
23
|
-
size: 2,
|
|
24
|
-
action: 'action',
|
|
25
|
-
sort: true,
|
|
26
|
-
maxlen: 1,
|
|
27
|
-
labelInline: true,
|
|
8
|
+
ele: 'title',
|
|
9
|
+
label: '常规',
|
|
10
|
+
size: 'small',
|
|
11
|
+
groupKey:'style',
|
|
28
12
|
},
|
|
29
13
|
//外边距
|
|
30
14
|
{
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"permissions": {
|
|
3
|
-
"allow": [
|
|
4
|
-
"Bash(node -e ' *)",
|
|
5
|
-
"Bash(npx esbuild *)",
|
|
6
|
-
"Bash(npx vue-template-compiler *)",
|
|
7
|
-
"Bash(node -e \"const fs=require\\('fs'\\);const compiler=require\\('/Users/zxd/Workspaces/jufubao-third/node_modules/@vue/compiler-sfc'\\);const {parse,compileTemplate}=compiler;const r=parse\\(fs.readFileSync\\('/Users/zxd/Workspaces/jufubao-third/src/components/JfbThirdRideLand/JfbThirdRideLand.vue','utf8'\\)\\);const t=compileTemplate\\({source:r.descriptor.template.content,filename:'x.vue'}\\);console.log\\(t.errors.length===0?'Vue template OK':'ERR '+JSON.stringify\\(t.errors\\)\\)\")",
|
|
8
|
-
"Bash(node *)",
|
|
9
|
-
"Bash(grep -i \"^vue$\")"
|
|
10
|
-
]
|
|
11
|
-
}
|
|
12
|
-
}
|