jufubao-base 1.0.297-beta23 → 1.0.297
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/JfbBaseChangeCompany/JfbBaseChangeCompany.vue +1 -3
- package/src/components/JfbBaseChoseCompany/JfbBaseChoseCompany.vue +4 -4
- package/src/components/JfbBaseConsumpCode/Attr.js +97 -9
- package/src/components/JfbBaseConsumpCode/JfbBaseConsumpCode.vue +657 -258
- package/src/components/JfbBaseConsumpCode/Mock.js +12 -210
- package/src/components/JfbBaseEntry/JfbBaseEntry.vue +12 -2
- package/src/components/JfbBaseTfkCardLogin/JfbBaseTfkCardLogin.vue +5 -0
- package/src/components/JfbBaseConsumpCode/JHDMixin.js +0 -176
- package/src/components/JfbBaseConsumpCode/QPMixin.js +0 -327
- package/src/components/JfbBaseConsumpCode/cusAttr/advanced.js +0 -94
- package/src/components/JfbBaseConsumpCode/cusAttr/content.js +0 -298
- package/src/components/JfbBaseConsumpCode/cusAttr/style.js +0 -93
- package/src/components/JfbBaseConsumpCode/shopListMixin.js +0 -54
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
import {
|
|
4
|
-
dataVal,
|
|
5
|
-
statusShow,
|
|
6
|
-
statusDataVal,
|
|
7
|
-
customVal,
|
|
8
|
-
cusDisabled,
|
|
9
|
-
getCustomAttr,
|
|
10
|
-
oldTonNewBorAndSha,
|
|
11
|
-
cRaBorShadow,
|
|
12
|
-
isDefStatus
|
|
13
|
-
} from "@/utils/AttrTools";
|
|
14
|
-
import productStyle from "@/utils/Attr/productStyle";
|
|
15
|
-
const Color = require('color');
|
|
16
|
-
|
|
17
|
-
export default function (data={},gValue={},gColor={},oldData) {
|
|
18
|
-
let defContBorder = cRaBorShadow( data, 'contBorder', {dValue:'D'},gValue);
|
|
19
|
-
let defContShadow = cRaBorShadow( data, 'contShadow', {dValue:'D'},gValue);
|
|
20
|
-
//导航投影设置
|
|
21
|
-
let titleTabShadowExt = {dValue:'N'};
|
|
22
|
-
if(gValue.isAdd === true && gValue.isFirst) titleTabShadowExt = {dValue:'D'};
|
|
23
|
-
let titleTabShadow = cRaBorShadow(data , 'titleTabShadow',titleTabShadowExt, gValue);
|
|
24
|
-
|
|
25
|
-
return [
|
|
26
|
-
{
|
|
27
|
-
ele: 'title',
|
|
28
|
-
label: '常规',
|
|
29
|
-
size: 'small',
|
|
30
|
-
groupKey:'style',
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
label: '内容区背景',
|
|
34
|
-
ele: 'xd-radio',
|
|
35
|
-
groupKey: 'style',
|
|
36
|
-
valueKey: 'contBgcColorStatus',
|
|
37
|
-
value: statusDataVal({
|
|
38
|
-
data,
|
|
39
|
-
key:'contBgcColorStatus',
|
|
40
|
-
fields:['bodyBgImg'],
|
|
41
|
-
gValue,
|
|
42
|
-
cusField:['productStyle']
|
|
43
|
-
}),
|
|
44
|
-
labelInline:true,
|
|
45
|
-
list: [
|
|
46
|
-
{label: '默认', value: 'D'},
|
|
47
|
-
{label: '自定义', value: 'C'},
|
|
48
|
-
]
|
|
49
|
-
},
|
|
50
|
-
{ele: 'group_start'},
|
|
51
|
-
{
|
|
52
|
-
label: '背景色',
|
|
53
|
-
ele: 'xd-color',
|
|
54
|
-
valueKey: 'contBgcColor',
|
|
55
|
-
labelInline: true,
|
|
56
|
-
value: dataVal({
|
|
57
|
-
data,
|
|
58
|
-
key:'contBgcColor',
|
|
59
|
-
dValue:['#fff'],
|
|
60
|
-
gValue,
|
|
61
|
-
}),
|
|
62
|
-
hidden: !statusShow({data, key: 'contBgcColorStatus', fields:['bodyBgImg'], gValue}),
|
|
63
|
-
placeholder: '请选择背景颜色',
|
|
64
|
-
className: 'input80',
|
|
65
|
-
groupKey:'style',
|
|
66
|
-
setting: {
|
|
67
|
-
showAlpha: true
|
|
68
|
-
},
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
label: '背景图',
|
|
72
|
-
ele: "xd-upload",
|
|
73
|
-
valueKey: 'bodyBgImg',
|
|
74
|
-
groupKey:'style',
|
|
75
|
-
value: data.bodyBgImg || {},
|
|
76
|
-
defaultValue: data.bodyBgImg || null,
|
|
77
|
-
slot: true,
|
|
78
|
-
oneWidth: 60,
|
|
79
|
-
oneHeight: 60,
|
|
80
|
-
elinputClassName: 'input40',
|
|
81
|
-
tipsformet: '上传@imageType@不超过@size@MB.比例1:1',
|
|
82
|
-
type: ['jpg', 'png', 'jpeg'],
|
|
83
|
-
styleType: 'one',
|
|
84
|
-
uploadType: 'aliyun',
|
|
85
|
-
size: 1,
|
|
86
|
-
action: 'action',
|
|
87
|
-
sort: true,
|
|
88
|
-
maxlen: 100,
|
|
89
|
-
labelInline: true,
|
|
90
|
-
},
|
|
91
|
-
{ele: 'group_end'},
|
|
92
|
-
].filter(i=>i)
|
|
93
|
-
}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
import { jfbRootExec } from "@/utils/xd.event";
|
|
3
|
-
export default {
|
|
4
|
-
data() {
|
|
5
|
-
return {
|
|
6
|
-
showShopList: false,
|
|
7
|
-
}
|
|
8
|
-
},
|
|
9
|
-
methods: {
|
|
10
|
-
p_getShopList(params = {}, cb){
|
|
11
|
-
return new Promise((resolve, reject) => {
|
|
12
|
-
jfbRootExec("getConsumpShopList", {
|
|
13
|
-
vm: this,
|
|
14
|
-
data: {
|
|
15
|
-
consume_mode: 'SELL',
|
|
16
|
-
latitude: this.stateLocation.latitude + '',
|
|
17
|
-
longitude: this.stateLocation.longitude + '',
|
|
18
|
-
...params,
|
|
19
|
-
}
|
|
20
|
-
}).then(res => {
|
|
21
|
-
if(cb) cb(res.list);
|
|
22
|
-
resolve(res.list);
|
|
23
|
-
}).catch(err => {
|
|
24
|
-
reject(err);
|
|
25
|
-
})
|
|
26
|
-
})
|
|
27
|
-
},
|
|
28
|
-
handleCityDone(city){
|
|
29
|
-
console.log("handleCityDone", city);
|
|
30
|
-
},
|
|
31
|
-
handleCityChange(){
|
|
32
|
-
this.$xdUniHelper.navigateTo({
|
|
33
|
-
url: this.cityPath
|
|
34
|
-
})
|
|
35
|
-
},
|
|
36
|
-
handleChoseShop(shop){
|
|
37
|
-
this.shop_id = shop.shop_id;
|
|
38
|
-
this.resource_shop_id = shop.resource_shop_id;
|
|
39
|
-
this.shopName = shop.resource_shop_name;
|
|
40
|
-
this.p_getAsyncStep((err) => {
|
|
41
|
-
if(err === 'error'){
|
|
42
|
-
}else{
|
|
43
|
-
this.showShopList = false;
|
|
44
|
-
this.showMask = false;
|
|
45
|
-
}
|
|
46
|
-
});
|
|
47
|
-
},
|
|
48
|
-
handleToShop() {
|
|
49
|
-
this.$xdUniHelper.navigateTo({
|
|
50
|
-
url: this.shopPath
|
|
51
|
-
});
|
|
52
|
-
},
|
|
53
|
-
}
|
|
54
|
-
}
|