jufubao-base 1.0.447-beta5 → 1.0.448

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.
@@ -0,0 +1,22 @@
1
+ 'use strict';
2
+
3
+ /**
4
+ * @description 第三方库
5
+ * @param threePackagePath {String} 第三方库所在项目路径存放路径路
6
+ * @param packname {String} 包名字
7
+ * @returns {string|*}
8
+ */
9
+ const getPackagePath = (threePackagePath, packname = 'gxd-commands-bussiness')=>{
10
+ if(packname === 'gxd-commands-bussiness') {
11
+ return `/Users/shiyonggao/Desktop/code/BASE/UNIAPP/xd-commands-bussiness/${threePackagePath}`;
12
+ }
13
+
14
+ if (packname === 'gxd-uni-library-editx') {
15
+ return `/Users/shiyonggao/Desktop/code/BASE/UNIAPP/xd-uni-library-editx/${threePackagePath}`;
16
+ }
17
+
18
+ };
19
+
20
+ module.exports = {
21
+ getPackagePath
22
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-base",
3
- "version": "1.0.447-beta5",
3
+ "version": "1.0.448",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -384,7 +384,7 @@
384
384
  data: data
385
385
  }).then(res => {
386
386
  this.$xdHideLoading();
387
- setTimeout(() => {
387
+ setTimeout(() => {
388
388
  this.$xdUniHelper.navigateTo({
389
389
  url: `${this.refundStepPath}?service_order_id=${res.service_order_id}`,
390
390
  });
@@ -5,7 +5,7 @@
5
5
  */
6
6
  export default {
7
7
  style: [],
8
- content: (data) => {
8
+ content: (data = {}) => {
9
9
  return [
10
10
  {
11
11
  label: '弹框内容设置:',
@@ -35,7 +35,7 @@
35
35
  ></xd-font-icon>
36
36
  <image
37
37
  @click="handleToLink"
38
- mode="widthFix"
38
+ :style="{ width: width + 'rpx', height: height + 'rpx' }"
39
39
  :src="currentImage"
40
40
  ></image>
41
41
  <xd-font-icon
@@ -95,6 +95,9 @@ export default {
95
95
  contentList: [],
96
96
  number: "",
97
97
  is_order_by_show_group: "",
98
+ background: null,
99
+ width: 730,
100
+ height: 730,
98
101
  };
99
102
  },
100
103
  watch: {
@@ -186,6 +189,15 @@ export default {
186
189
  "content.is_order_by_show_group",
187
190
  "N"
188
191
  );
192
+ this.background = getContainerPropsValue(
193
+ container,
194
+ "content.background",
195
+ null
196
+ );
197
+ if (this.background && this.background.size) {
198
+ this.width = this.checkValue(this.background.size.width, 730);
199
+ this.height = this.checkValue(this.background.size.height, 730);
200
+ }
189
201
  },
190
202
  handlePop() {
191
203
  console.warn(`this.time${this.time * 60 + "分钟"}`);
@@ -274,9 +286,6 @@ export default {
274
286
  transform: translate(-50%, -50%);
275
287
  display: flex;
276
288
  flex-direction: column;
277
- & > image {
278
- width: 730rpx;
279
- }
280
289
  .close-top {
281
290
  position: relative;
282
291
  right: -40%;