jufubao-food 1.0.15-beta1 → 1.0.15-beta3

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-food",
3
- "version": "1.0.15-beta1",
3
+ "version": "1.0.15-beta3",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件餐饮插件包",
6
6
  "main": "index.js",
@@ -21,7 +21,9 @@
21
21
  <view class="shop_wrap" @click="toSwitchShop">
22
22
  <view class="shop_info">
23
23
  <view class="_name"><xd-font-icon icon="iconshouye" :color="mainColor" size="36" style="margin-right: 8rpx;"></xd-font-icon>{{ shopInfo.shop_name }}</view>
24
- <view class="_dist">{{ shopInfo.distance_conversion}}
24
+ <view class="_dist">
25
+ <!-- {{ shopInfo.distance_conversion}} -->
26
+ 更多门店
25
27
  <xd-font-icon icon="iconxiangyou_xian" color="#666666" :size="20" style="margin-left: 8rpx;"></xd-font-icon>
26
28
  </view>
27
29
  </view>
@@ -1,26 +1,20 @@
1
1
  'use strict';
2
+ import style from "./cusAttr/style";
3
+ import advanced from "./cusAttr/advanced";
4
+ import content from "./cusAttr/content";
2
5
 
3
6
  /**
4
7
  * @description 当表单组件中有联动操作时候,使用方法进行返回
5
8
  */
6
9
  export default {
7
10
  style: [],
8
- content: (data) => {
11
+ advanced: [],
12
+ content: (data, gValue, gColor, oldData={})=>{
13
+
9
14
  return [
10
- {
11
- label: '商品列表页',
12
- ele: 'xd-select-pages-path',
13
- valueKey: 'foodProductListPath',
14
- placeholder: '请选择商品列表页跳转地址',
15
- value: data.foodProductListPath || null,
16
- labelInline: true,
17
- setting: {
18
- router: XdBus.getParentApi('getPagesTree'),
19
- },
20
- groupKey:'advanced',
21
- className: 'input100',
22
- },
15
+ ...content(data, gValue,gColor,oldData),
16
+ ...style(data, gValue,gColor,oldData),
17
+ ...advanced(data),
23
18
  ].filter(i=>i)
24
19
  },
25
- advanced: [],
26
20
  };
@@ -0,0 +1,28 @@
1
+ 'use strict';
2
+
3
+ export default (data)=>{
4
+ return [
5
+ {
6
+ label: '商品列表页',
7
+ ele: 'xd-select-pages-path',
8
+ valueKey: 'foodProductListPath',
9
+ placeholder: '请选择商品列表页跳转地址',
10
+ value: data.foodProductListPath || null,
11
+ labelInline: true,
12
+ setting: {
13
+ router: XdBus.getParentApi('getPagesTree'),
14
+ },
15
+ groupKey:'advanced',
16
+ className: 'input100',
17
+ },
18
+ {
19
+ label: '版本号:',
20
+ ele: 'el-input',
21
+ type: 'text',
22
+ groupKey: 'advanced',
23
+ valueKey: 'version',
24
+ value: 'v2.0',
25
+ hidden: true,
26
+ },
27
+ ]
28
+ }
@@ -0,0 +1,40 @@
1
+ 'use strict';
2
+ import {
3
+ dataVal ,
4
+ statusShow,
5
+ statusDataVal,
6
+ customVal,
7
+ cusDisabled ,
8
+ getCustomAttr,
9
+ } from "@/utils/AttrTools";
10
+ import ProductAttr from "@/utils/Attr/ProductAttr";
11
+
12
+ export default function (data, gValue,gColor,oldData){
13
+ return [
14
+ {
15
+ ele: 'title',
16
+ label: '基础',
17
+ size: 'small',
18
+ groupKey:'content',
19
+ },
20
+ {
21
+ label: "业务线",
22
+ ele: "xd-choose-namespace",
23
+ valueKey: "xnamespace",
24
+ value: dataVal({data, key:'xnamespace', dValue:null, gValue}),
25
+ className: 'input100',
26
+ placeholder: '请选择业务线',
27
+ labelInline:true,
28
+ groupKey:'content',
29
+ notice:'空继承上级业务线',
30
+ inline: false,
31
+ handleCustom: (cb) => {
32
+ XdBus.getParentApi('getOptionsNamespaces')()
33
+ .then(res => {
34
+ cb(res.list)
35
+ })
36
+ .catch();
37
+ }
38
+ },
39
+ ]
40
+ }
@@ -0,0 +1,56 @@
1
+ import {
2
+ dataVal,
3
+ statusShow,
4
+ statusDataVal,
5
+ customVal,
6
+ cusDisabled,
7
+ getCustomAttr,
8
+ oldTonNewBorAndSha,
9
+ cRaBorShadow,
10
+ isDefStatus
11
+ } from "@/utils/AttrTools";
12
+ import productStyle from "@/utils/Attr/productStyle";
13
+ const Color = require('color');
14
+
15
+ export default function (data={},gValue={},gColor={},oldData) {
16
+ return [
17
+ {
18
+ ele: 'title',
19
+ label: '常规',
20
+ size: 'small',
21
+ groupKey:'style',
22
+ },
23
+ {
24
+ label: '外边距',
25
+ ele: 'xd-radio',
26
+ groupKey: 'style',
27
+ valueKey: 'bodyPaddingStatus',
28
+ value: statusDataVal({data, key:'bodyPaddingStatus', fields:['bodyPadding'],gValue}),
29
+ labelInline:true,
30
+ list: [
31
+ {label: '默认', value: 'D'},
32
+ {label: '自定义', value: 'C'},
33
+ ]
34
+ },
35
+ {ele: 'group_start'},
36
+ {
37
+ label: '',
38
+ ele: 'xd-margin-padding',
39
+ groupKey:'style',
40
+ valueKey: 'bodyPadding',
41
+ hidden:!statusShow({data, key: 'bodyPaddingStatus', fields:['bodyPadding'], gValue}),
42
+ value: dataVal({
43
+ data,
44
+ key:'bodyPadding',
45
+ dValue:[0],
46
+ gValue,
47
+ isPM: true,
48
+ isCPM: true,
49
+ }),
50
+ setting: {
51
+ type: 'margin',
52
+ },
53
+ },
54
+ {ele: 'group_end'},
55
+ ]
56
+ }
@@ -5,6 +5,20 @@
5
5
  * @type {*[]}
6
6
  */
7
7
  module.exports = [
8
+ {
9
+ mapFnName: "getFoodShopList",
10
+ title: "获取门店列表",
11
+ path: "/mall/v1/shop/list",
12
+ isRule: false,
13
+ params: {
14
+ brand_id: ['brand_id', 'String', 'true'],
15
+ city_code: ['city_code', 'String', 'true'],
16
+ latitude: ['latitude', 'String', 'true'],
17
+ longitude: ['longitude', 'String', 'true'],
18
+ },
19
+ isConsole: true,
20
+ disabled: true
21
+ },
8
22
  {
9
23
  mapFnName: 'getFoodShopDetail',
10
24
  title: '获取餐饮门店详情',