jufubao-third 1.0.22-beta8 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-third",
3
- "version": "1.0.22-beta8",
3
+ "version": "1.0.22",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件第三方购物平台包",
6
6
  "main": "index.js",
@@ -8,7 +8,7 @@ module.exports = [
8
8
  {
9
9
  mapFnName: 'rideOrderDetail',
10
10
  title: "打车 - 订单详情(轮询用)",
11
- path: "/thirdmall-pb/v1/:channel_code/ride/order-result",
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="[bodyStyle, bgStyle]">
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"
@@ -33,16 +33,16 @@
33
33
  import { jfbRootExec } from "@/utils/xd.event";
34
34
  import JfbThirdRideLandMixin from "./JfbThirdRideLandMixin";
35
35
  import { gCPVal } from "@/utils/xd.base";
36
+ import posterMixins from "@/mixins/posterMixins";
36
37
  import componentsMixins from "@/mixins/componentsMixins";
37
38
  import extsMixins from "@/mixins/extsMixins";
38
- import getServiceUrl from "@/common/getServiceUrl";
39
39
  export default {
40
40
  name: "JfbThirdRideLand",
41
41
  components: {
42
42
  XdFontIcon
43
43
  },
44
44
  mixins: [
45
- componentsMixins, extsMixins, JfbThirdRideLandMixin
45
+ componentsMixins, extsMixins, JfbThirdRideLandMixin, posterMixins
46
46
  ],
47
47
  data() {
48
48
  return {
@@ -54,24 +54,12 @@
54
54
  countdownLeft: 0,
55
55
  countdownTimer: null,
56
56
  //样式
57
- bgImage: '',
58
57
  margin: {},
59
58
  padding: {},
60
59
  radius: 24,
61
60
  }
62
61
  },
63
62
  computed: {
64
- //页面背景(背景图)
65
- bgStyle(){
66
- let style = {};
67
- if(this.bgImage) {
68
- style.backgroundImage = `url(${getServiceUrl(this.bgImage)})`;
69
- style.backgroundSize = '100% 100%';
70
- style.backgroundPosition = 'center';
71
- style.backgroundRepeat = 'no-repeat';
72
- }
73
- return style;
74
- },
75
63
  //外边距
76
64
  bodyStyle(){
77
65
  let style = {
@@ -134,11 +122,9 @@
134
122
  //内容
135
123
  this.contentHtml = gCPVal(container, 'contentHtml', '');
136
124
  this.btnText = gCPVal(container, 'btnText', '我已知晓');
137
- this.btnLink = gCPVal(container, 'btnLink', {value: ''}).value;
125
+ this.btnLink = gCPVal(container, 'btnLink', "");
138
126
  this.countdown = gCPVal(container, 'countdown', 0);
139
127
  //样式
140
- let bgImageVal = gCPVal(container, 'bgImage', {});
141
- this.bgImage = bgImageVal && bgImageVal.url ? bgImageVal.url : '';
142
128
  this.margin = gCPVal(container, 'margin', 32, {sKey: 'marginStatus', fields: ['margin'], isPM: true});
143
129
  this.padding = gCPVal(container, 'padding', 32, {sKey: 'paddingStatus', fields: ['padding'], isPM: true});
144
130
  this.radius = gCPVal(container, 'radius', 24, {sKey: 'radiusStatus', fields: ['radius']});
@@ -168,15 +154,25 @@
168
154
  }
169
155
  this.countdownLeft = 0;
170
156
  },
157
+ createUrlPosterItem(url=''){
158
+ return {
159
+ redirect_type: 'URL',
160
+ redirect_data: JSON.stringify({url}),
161
+ app_type: 'h5',
162
+ redirect_params: '',
163
+ deploy_dir: ''
164
+ };
165
+ },
171
166
  /**
172
167
  * @description 点击按钮,倒计时结束后跳转配置的链接
173
168
  */
174
169
  handleBtnClick(){
175
170
  if (this.$configProject['isPreview']) return;
176
171
  if(this.btnDisabled) return;
177
- this.$xdUniHelper.navigateTo({
178
- url: this.btnLink
179
- });
172
+ this.handlePosterClick(this.createUrlPosterItem(this.btnLink))
173
+ // this.$xdUniHelper.navigateTo({
174
+ // url: this.btnLink
175
+ // });
180
176
  },
181
177
  onJfbScroll(options) {
182
178
  console.log('event.onJfbScroll', options)
@@ -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
- label: "须知内容:",
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
- label: '背景图',
10
- ele: 'xd-upload',
11
- groupKey: 'style',
12
- valueKey: 'bgImage',
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
- }