jufubao-takeorder 1.0.2-beta2 → 1.0.2-beta4
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/{JfbTakeorderQuotedDetail → JfbTakeorderFilterOrderList}/Api.js +9 -9
- package/src/components/JfbTakeorderFilterOrderList/Attr.js +12 -0
- package/src/components/JfbTakeorderFilterOrderList/JfbTakeorderFilterOrderList.vue +210 -0
- package/src/components/{JfbTakeorderUnquotedDetail/JfbTakeorderUnquotedDetailLess.less → JfbTakeorderFilterOrderList/JfbTakeorderFilterOrderListLess.less} +2 -2
- package/src/components/{JfbTakeorderUnquotedDetail/JfbTakeorderUnquotedDetailMixin.js → JfbTakeorderFilterOrderList/JfbTakeorderFilterOrderListMixin.js} +1 -1
- package/src/components/JfbTakeorderFilterOrderList/Mock.js +13 -0
- package/src/components/JfbTakeorderFilterOrderList/components/order.vue +277 -0
- package/src/components/JfbTakeorderIndex/Api.js +9 -41
- package/src/components/JfbTakeorderIndex/Attr.js +9 -41
- package/src/components/JfbTakeorderIndex/JfbTakeorderIndex.vue +681 -85
- package/src/components/JfbTakeorderIndex/components/cityPicker.vue +299 -0
- package/src/components/JfbTakeorderIndex/components/order.vue +273 -0
- package/src/components/JfbTakeorderIndex/cusAttr/advanced.js +26 -0
- package/src/components/JfbTakeorderIndex/cusAttr/content.js +9 -0
- package/src/components/JfbTakeorderIndex/cusAttr/style.js +11 -0
- package/src/components/JfbTakeorderOrderDetail/Api.js +23 -0
- package/src/components/JfbTakeorderOrderDetail/Attr.js +16 -0
- package/src/components/JfbTakeorderOrderDetail/JfbTakeorderOrderDetail.vue +845 -0
- package/src/components/{JfbTakeorderUnquotedList/JfbTakeorderUnquotedListLess.less → JfbTakeorderOrderDetail/JfbTakeorderOrderDetailLess.less} +2 -2
- package/src/components/{JfbTakeorderQuotedDetail/JfbTakeorderQuotedDetailMixin.js → JfbTakeorderOrderDetail/JfbTakeorderOrderDetailMixin.js} +1 -1
- package/src/components/JfbTakeorderOrderDetail/Mock.js +13 -0
- package/src/components/JfbTakeorderOrderDetail/components/CusEditQuote.vue +161 -0
- package/src/components/JfbTakeorderOrderDetail/components/products.vue +138 -0
- package/src/components/JfbTakeorderOrderDetail/cusAttr/advanced.js +12 -0
- package/src/components/JfbTakeorderOrderDetail/cusAttr/content.js +233 -0
- package/src/components/JfbTakeorderOrderDetail/cusAttr/style.js +11 -0
- package/src/components/{JfbTakeorderQuotedList → JfbTakeorderOrderList}/Api.js +9 -9
- package/src/components/JfbTakeorderOrderList/Attr.js +16 -0
- package/src/components/JfbTakeorderOrderList/JfbTakeorderOrderList.vue +169 -0
- package/src/components/{JfbTakeorderQuotedList/JfbTakeorderQuotedListLess.less → JfbTakeorderOrderList/JfbTakeorderOrderListLess.less} +2 -2
- package/src/components/{JfbTakeorderQuotedList/JfbTakeorderQuotedListMixin.js → JfbTakeorderOrderList/JfbTakeorderOrderListMixin.js} +1 -1
- package/src/components/JfbTakeorderOrderList/Mock.js +13 -0
- package/src/components/JfbTakeorderOrderList/components/order.vue +273 -0
- package/src/components/JfbTakeorderOrderList/cusAttr/advanced.js +26 -0
- package/src/components/JfbTakeorderOrderList/cusAttr/content.js +23 -0
- package/src/components/JfbTakeorderOrderList/cusAttr/style.js +11 -0
- package/src/components/{JfbTakeorderUnquotedDetail → JfbTakeorderVoiceSwitch}/Api.js +9 -9
- package/src/components/JfbTakeorderVoiceSwitch/Attr.js +12 -0
- package/src/components/{JfbTakeorderQuotedList/JfbTakeorderQuotedList.vue → JfbTakeorderVoiceSwitch/JfbTakeorderVoiceSwitch.vue} +42 -13
- package/src/components/{JfbTakeorderQuotedDetail/JfbTakeorderQuotedDetailLess.less → JfbTakeorderVoiceSwitch/JfbTakeorderVoiceSwitchLess.less} +2 -2
- package/src/components/{JfbTakeorderUnquotedList/JfbTakeorderUnquotedListMixin.js → JfbTakeorderVoiceSwitch/JfbTakeorderVoiceSwitchMixin.js} +1 -1
- package/src/components/JfbTakeorderVoiceSwitch/Mock.js +13 -0
- package/src/components/JfbTakeorderQuotedDetail/Attr.js +0 -48
- package/src/components/JfbTakeorderQuotedDetail/JfbTakeorderQuotedDetail.vue +0 -113
- package/src/components/JfbTakeorderQuotedDetail/Mock.js +0 -13
- package/src/components/JfbTakeorderQuotedList/Attr.js +0 -48
- package/src/components/JfbTakeorderQuotedList/Mock.js +0 -13
- package/src/components/JfbTakeorderUnquotedDetail/Attr.js +0 -48
- package/src/components/JfbTakeorderUnquotedDetail/JfbTakeorderUnquotedDetail.vue +0 -113
- package/src/components/JfbTakeorderUnquotedDetail/Mock.js +0 -13
- package/src/components/JfbTakeorderUnquotedList/Api.js +0 -58
- package/src/components/JfbTakeorderUnquotedList/Attr.js +0 -48
- package/src/components/JfbTakeorderUnquotedList/JfbTakeorderUnquotedList.vue +0 -113
- package/src/components/JfbTakeorderUnquotedList/Mock.js +0 -13
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
//start
|
|
15
|
-
.jfb-takeorder-
|
|
15
|
+
.jfb-takeorder-order-detail {
|
|
16
16
|
box-sizing: border-box;
|
|
17
17
|
|
|
18
18
|
&__body{
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
|
|
72
72
|
|
|
73
73
|
/**notPreview**/
|
|
74
|
-
.jfb-takeorder-
|
|
74
|
+
.jfb-takeorder-order-detail {
|
|
75
75
|
//&:before {
|
|
76
76
|
//content: " ";
|
|
77
77
|
//display: table;
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<view class="dialog">
|
|
3
|
+
<view class="dialog-body">
|
|
4
|
+
<view class="dialog-title">修改报价</view>
|
|
5
|
+
<view class="current-quote"> 当前报价:¥{{ info.currentQuote }} </view>
|
|
6
|
+
<!-- 报价输入框(带¥前缀) -->
|
|
7
|
+
<view class="quote-input">
|
|
8
|
+
<view class="quote-input-unit">¥</view>
|
|
9
|
+
<input v-model="quotePrice" placeholder="请输入单张报价金额" />
|
|
10
|
+
</view>
|
|
11
|
+
<!-- 建议报价 -->
|
|
12
|
+
<view class="suggest-wrap">
|
|
13
|
+
建议报价:
|
|
14
|
+
<text :style="{ color: mainColor }" class="suggest-range"
|
|
15
|
+
>¥{{ info.suggestMin }} ~ ¥{{ info.suggestMax }}</text
|
|
16
|
+
>
|
|
17
|
+
</view>
|
|
18
|
+
<!-- 备注说明 -->
|
|
19
|
+
<view class="note-text">
|
|
20
|
+
注:修改报价不能高于当前报价,修改成功后按照最新价格参与报价,中标后将按您修改过后的价格为您结算
|
|
21
|
+
</view>
|
|
22
|
+
<view class="btn-wrap">
|
|
23
|
+
<XdButton
|
|
24
|
+
width="180rpx"
|
|
25
|
+
size="small"
|
|
26
|
+
bgColor="#EEE"
|
|
27
|
+
color="#999"
|
|
28
|
+
type="primary"
|
|
29
|
+
@click="handleClose"
|
|
30
|
+
>再想想</XdButton
|
|
31
|
+
>
|
|
32
|
+
<XdButton
|
|
33
|
+
width="180rpx"
|
|
34
|
+
size="small"
|
|
35
|
+
type="primary"
|
|
36
|
+
@click="handleConfirm"
|
|
37
|
+
>确定</XdButton
|
|
38
|
+
>
|
|
39
|
+
</view>
|
|
40
|
+
</view>
|
|
41
|
+
</view>
|
|
42
|
+
</template>
|
|
43
|
+
|
|
44
|
+
<script>
|
|
45
|
+
import XdButton from "@/components/XdButton/XdButton";
|
|
46
|
+
export default {
|
|
47
|
+
name: "CusEditQuote",
|
|
48
|
+
components: { XdButton },
|
|
49
|
+
props: {
|
|
50
|
+
mainColor: {
|
|
51
|
+
type: String,
|
|
52
|
+
default: "",
|
|
53
|
+
},
|
|
54
|
+
info: {
|
|
55
|
+
type: Object,
|
|
56
|
+
default: () => {},
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
data() {
|
|
60
|
+
return {
|
|
61
|
+
quotePrice: "",
|
|
62
|
+
};
|
|
63
|
+
},
|
|
64
|
+
methods: {
|
|
65
|
+
// 过滤输入:只允许数字+小数点(最多两位小数)
|
|
66
|
+
filterInput(e) {
|
|
67
|
+
let val = e.detail.value;
|
|
68
|
+
// 只保留数字和小数点
|
|
69
|
+
val = val.replace(/[^\d.]/g, "");
|
|
70
|
+
// 去重小数点
|
|
71
|
+
val = val.replace(/\.{2,}/g, ".");
|
|
72
|
+
// 限制小数点后最多两位
|
|
73
|
+
val = val.replace(/^(\-)*(\d+)\.(\d\d).*$/, "$1$2.$3");
|
|
74
|
+
this.inputQuote = val;
|
|
75
|
+
},
|
|
76
|
+
handleClose() {
|
|
77
|
+
this.$emit("close");
|
|
78
|
+
},
|
|
79
|
+
handleConfirm() {
|
|
80
|
+
this.$emit("confirm", this.quotePrice);
|
|
81
|
+
},
|
|
82
|
+
},
|
|
83
|
+
};
|
|
84
|
+
</script>
|
|
85
|
+
|
|
86
|
+
<style lang="less" scoped>
|
|
87
|
+
.dialog {
|
|
88
|
+
width: 100%;
|
|
89
|
+
height: 100%;
|
|
90
|
+
position: absolute;
|
|
91
|
+
top: 0;
|
|
92
|
+
left: 0;
|
|
93
|
+
z-index: 9999;
|
|
94
|
+
background: rgba(0, 0, 0, 0.5);
|
|
95
|
+
&-body {
|
|
96
|
+
background: #fff;
|
|
97
|
+
border-radius: 16rpx;
|
|
98
|
+
width: 80%;
|
|
99
|
+
margin: 0 auto;
|
|
100
|
+
position: absolute;
|
|
101
|
+
top: 50%;
|
|
102
|
+
left: 50%;
|
|
103
|
+
transform: translate(-50%, -50%);
|
|
104
|
+
}
|
|
105
|
+
&-title {
|
|
106
|
+
color: #666666;
|
|
107
|
+
font-size: 28rpx;
|
|
108
|
+
padding: 32rpx 0;
|
|
109
|
+
text-align: center;
|
|
110
|
+
border-bottom: 2rpx solid #f8f8f8;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/* 当前报价 */
|
|
115
|
+
.current-quote {
|
|
116
|
+
font-size: 28rpx;
|
|
117
|
+
color: #333;
|
|
118
|
+
padding: 32rpx 0 16rpx 64rpx;
|
|
119
|
+
}
|
|
120
|
+
.quote {
|
|
121
|
+
&-input {
|
|
122
|
+
position: relative;
|
|
123
|
+
padding: 0 64rpx 16rpx 64rpx;
|
|
124
|
+
&-unit {
|
|
125
|
+
position: absolute;
|
|
126
|
+
left: 80rpx;
|
|
127
|
+
top: 50%;
|
|
128
|
+
transform: translateY(-80%);
|
|
129
|
+
font-size: 28rpx;
|
|
130
|
+
color: #333;
|
|
131
|
+
font-weight: 700;
|
|
132
|
+
}
|
|
133
|
+
& > input {
|
|
134
|
+
background: #f8f8f8;
|
|
135
|
+
font-size: 28rpx;
|
|
136
|
+
padding: 20rpx 46rpx 20rpx 60rpx;
|
|
137
|
+
border-radius: 16rpx;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/* 建议报价 */
|
|
143
|
+
.suggest-wrap {
|
|
144
|
+
font-size: 26rpx;
|
|
145
|
+
padding: 0 64rpx 16rpx 64rpx;
|
|
146
|
+
color: #333;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/* 备注说明 */
|
|
150
|
+
.note-text {
|
|
151
|
+
font-size: 24rpx;
|
|
152
|
+
color: #999;
|
|
153
|
+
padding: 0 64rpx 24rpx 64rpx;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.btn-wrap {
|
|
157
|
+
display: flex;
|
|
158
|
+
justify-content: space-around;
|
|
159
|
+
padding: 32rpx 0 48rpx 0
|
|
160
|
+
}
|
|
161
|
+
</style>
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<view class="wrap order-info" :class="{'no-margin-top': status==='daishangbao'}">
|
|
3
|
+
<view class="order-info-title">
|
|
4
|
+
<view class="order-info-title-left">
|
|
5
|
+
<view>{{ info.shop_name }}</view>
|
|
6
|
+
<text>|</text>
|
|
7
|
+
<view>{{ info.brand_name }}</view>
|
|
8
|
+
</view>
|
|
9
|
+
<view class="order-info-title-right">{{ info.city }}</view>
|
|
10
|
+
</view>
|
|
11
|
+
<view
|
|
12
|
+
v-for="(Pitem, Pindex) in info.products"
|
|
13
|
+
:key="Pindex"
|
|
14
|
+
class="order-info-product"
|
|
15
|
+
>
|
|
16
|
+
<image :src="Pitem.product_thumb"></image>
|
|
17
|
+
<view class="order-info-product-info">
|
|
18
|
+
<view class="order-info-product-info-name">{{
|
|
19
|
+
Pitem.product_name
|
|
20
|
+
}}</view>
|
|
21
|
+
<view class="order-info-product-info-sku"
|
|
22
|
+
>规格:{{ Pitem.product_sku }}</view
|
|
23
|
+
>
|
|
24
|
+
<view class="order-info-product-info-price">
|
|
25
|
+
<view class="order-info-product-info-price-left"
|
|
26
|
+
><text>¥ </text>{{ Pitem.minPrice }}<text class="range">~</text
|
|
27
|
+
><text>¥ </text>{{ Pitem.maxPrice }}</view
|
|
28
|
+
>
|
|
29
|
+
<view class="order-info-product-info-price-right"
|
|
30
|
+
><XdFontIcon
|
|
31
|
+
icon="icondanchuangguanbi_xian"
|
|
32
|
+
color="#999"
|
|
33
|
+
size="14"
|
|
34
|
+
></XdFontIcon
|
|
35
|
+
><view>{{ Pitem.num }}</view></view
|
|
36
|
+
>
|
|
37
|
+
</view>
|
|
38
|
+
</view>
|
|
39
|
+
</view>
|
|
40
|
+
</view>
|
|
41
|
+
</template>
|
|
42
|
+
|
|
43
|
+
<script>
|
|
44
|
+
export default {
|
|
45
|
+
props: {
|
|
46
|
+
info: {
|
|
47
|
+
type: Object,
|
|
48
|
+
default: () => ({}),
|
|
49
|
+
},
|
|
50
|
+
status: {
|
|
51
|
+
type: String,
|
|
52
|
+
default: '',
|
|
53
|
+
},
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
</script>
|
|
57
|
+
|
|
58
|
+
<style lang="less" scoped>
|
|
59
|
+
.wrap {
|
|
60
|
+
background: #fff;
|
|
61
|
+
margin: 16rpx;
|
|
62
|
+
border-radius: 16rpx;
|
|
63
|
+
&.no-margin-top {
|
|
64
|
+
margin-top: 0;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
.order-info {
|
|
68
|
+
&-title {
|
|
69
|
+
display: flex;
|
|
70
|
+
justify-content: space-between;
|
|
71
|
+
padding: 24rpx 32rpx;
|
|
72
|
+
border-bottom: 1px solid #f4f4f4;
|
|
73
|
+
&-left {
|
|
74
|
+
display: flex;
|
|
75
|
+
align-items: center;
|
|
76
|
+
}
|
|
77
|
+
&-right {
|
|
78
|
+
font-weight: 500;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
&-product {
|
|
82
|
+
display: flex;
|
|
83
|
+
padding: 16rpx 32rpx;
|
|
84
|
+
border-bottom: 1px solid #f4f4f4;
|
|
85
|
+
& > image {
|
|
86
|
+
width: 180rpx;
|
|
87
|
+
height: 180rpx;
|
|
88
|
+
flex-shrink: 0;
|
|
89
|
+
border: 10rpx;
|
|
90
|
+
}
|
|
91
|
+
&-info {
|
|
92
|
+
margin-left: 24rpx;
|
|
93
|
+
&-name {
|
|
94
|
+
.uni-max-cut(2,80);
|
|
95
|
+
margin-bottom: 10rpx;
|
|
96
|
+
}
|
|
97
|
+
&-sku {
|
|
98
|
+
font-size: 24rpx;
|
|
99
|
+
color: #999;
|
|
100
|
+
}
|
|
101
|
+
&-price {
|
|
102
|
+
margin-top: 10rpx;
|
|
103
|
+
display: flex;
|
|
104
|
+
justify-content: space-between;
|
|
105
|
+
align-items: center;
|
|
106
|
+
&-left {
|
|
107
|
+
color: #ff2c18;
|
|
108
|
+
font-size: 32rpx;
|
|
109
|
+
font-weight: 500;
|
|
110
|
+
& > text {
|
|
111
|
+
font-size: 24rpx;
|
|
112
|
+
margin-right: 10rpx;
|
|
113
|
+
}
|
|
114
|
+
.range {
|
|
115
|
+
margin: 0 10rpx;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
&-right {
|
|
119
|
+
color: #999;
|
|
120
|
+
display: flex;
|
|
121
|
+
align-items: baseline;
|
|
122
|
+
& > view {
|
|
123
|
+
margin-left: 10rpx;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
.other-info-item {
|
|
131
|
+
display: flex;
|
|
132
|
+
justify-content: space-between;
|
|
133
|
+
padding: 20rpx 32rpx;
|
|
134
|
+
color: #333;
|
|
135
|
+
font-size: 28rpx;
|
|
136
|
+
border-bottom: 2rpx solid #f8f8f8;
|
|
137
|
+
}
|
|
138
|
+
</style>
|
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
import { customVal, dataVal } from "@/utils/AttrTools";
|
|
4
|
+
|
|
5
|
+
export default (data, gValue, gColor, oldData = {}) => {
|
|
6
|
+
return [
|
|
7
|
+
{
|
|
8
|
+
label: '公告内容:',
|
|
9
|
+
ele: 'xd-site-news',
|
|
10
|
+
valueKey: 'notice',
|
|
11
|
+
groupKey: 'content',
|
|
12
|
+
value: data.notice || null,
|
|
13
|
+
className: 'input70',
|
|
14
|
+
setting: {
|
|
15
|
+
config: {
|
|
16
|
+
sort: true,
|
|
17
|
+
maxlen: 100,
|
|
18
|
+
action: 'aliyun',
|
|
19
|
+
size: 5,
|
|
20
|
+
tipsformet: '上传文件格式:@imageType@,不超过@size@MB.',
|
|
21
|
+
uploadType: 'aliyun',
|
|
22
|
+
type: ['jpg', 'png', 'jpeg']
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
handleCustom({ action, data }) {
|
|
26
|
+
if (data && data.params) {
|
|
27
|
+
//当一个插件中出现使用内容分类时候需要设置code值,在页面引用时候容器id + code进行拼接
|
|
28
|
+
//data.params = Object.assign({}, data.params, {code: 'g_test_id'});
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
//获取返回参数(场景类型名称为必填)
|
|
32
|
+
//获取返回参数(场景类型名称为必填)
|
|
33
|
+
let loading = { close() { } }
|
|
34
|
+
|
|
35
|
+
//获取显示内容
|
|
36
|
+
if (action === 'screen') {
|
|
37
|
+
XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_bucket_content_tip' })
|
|
38
|
+
.then(res => {
|
|
39
|
+
loading.close();
|
|
40
|
+
data.cb(res['list'])
|
|
41
|
+
})
|
|
42
|
+
.catch(error => {
|
|
43
|
+
console.error(error);
|
|
44
|
+
loading.close();
|
|
45
|
+
});
|
|
46
|
+
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
//获取返回参数(广告位高度必选项)
|
|
50
|
+
if (action === 'getNewsInfo') {
|
|
51
|
+
XdBus.getParentApi('cmsGetPublishEditxContent')(data.params)
|
|
52
|
+
.then(res => {
|
|
53
|
+
loading.close()
|
|
54
|
+
data.cb({ list: res.list, selectId: res.selected })
|
|
55
|
+
})
|
|
56
|
+
.catch(error => {
|
|
57
|
+
loading.close()
|
|
58
|
+
console.error(error);
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
//获取产品业务线列表
|
|
63
|
+
if (action === 'namespace') {
|
|
64
|
+
XdBus.getParentApi('getOptionsNamespaces')({})
|
|
65
|
+
.then(res => {
|
|
66
|
+
loading.close()
|
|
67
|
+
data.cb(res['list'])
|
|
68
|
+
})
|
|
69
|
+
.catch(error => {
|
|
70
|
+
loading.close()
|
|
71
|
+
console.error(error);
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
//使用内容分类
|
|
76
|
+
if (action === 'cmsPublishEditxContent') {
|
|
77
|
+
loading = XdBus.getParentApi('loading')({});
|
|
78
|
+
XdBus.getParentApi('cmsPublishEditxContent')(data.params)
|
|
79
|
+
.then(res => {
|
|
80
|
+
console.log('cmsPublishEditxContent', res)
|
|
81
|
+
loading.close();
|
|
82
|
+
data.cb(res)
|
|
83
|
+
})
|
|
84
|
+
.catch(error => {
|
|
85
|
+
loading.close();
|
|
86
|
+
console.error(error);
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
//位置列表
|
|
91
|
+
if (action === 'getListPostion') {
|
|
92
|
+
loading = XdBus.getParentApi('loading')({});
|
|
93
|
+
XdBus.getParentApi('getListNewsPosition')(data.params)
|
|
94
|
+
.then(res => {
|
|
95
|
+
loading.close();
|
|
96
|
+
data.cb(res)
|
|
97
|
+
})
|
|
98
|
+
.catch(error => {
|
|
99
|
+
loading.close();
|
|
100
|
+
console.error(error);
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
//位置创建
|
|
105
|
+
if (action === 'addPostion') {
|
|
106
|
+
loading = XdBus.getParentApi('loading')({});
|
|
107
|
+
XdBus.getParentApi('addNewsPosition')(data.params)
|
|
108
|
+
.then(res => {
|
|
109
|
+
loading.close();
|
|
110
|
+
data.cb(true)
|
|
111
|
+
})
|
|
112
|
+
.catch(error => {
|
|
113
|
+
console.error(error);
|
|
114
|
+
loading.close();
|
|
115
|
+
data.cb(false)
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
//位置编辑
|
|
120
|
+
if (action === 'editPostion') {
|
|
121
|
+
loading = XdBus.getParentApi('loading')({});
|
|
122
|
+
XdBus.getParentApi('updateNewsPosition')(data.params)
|
|
123
|
+
.then(res => {
|
|
124
|
+
loading.close();
|
|
125
|
+
data.cb(true)
|
|
126
|
+
})
|
|
127
|
+
.catch(error => {
|
|
128
|
+
console.error(error);
|
|
129
|
+
loading.close();
|
|
130
|
+
data.cb(false)
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
//位置删除
|
|
135
|
+
if (action === 'deleltePostion') {
|
|
136
|
+
loading = XdBus.getParentApi('loading')({});
|
|
137
|
+
XdBus.getParentApi('deleteNewsPosition')(data.params)
|
|
138
|
+
.then(res => {
|
|
139
|
+
loading.close();
|
|
140
|
+
data.cb(true)
|
|
141
|
+
})
|
|
142
|
+
.catch(error => {
|
|
143
|
+
console.error(error);
|
|
144
|
+
loading.close();
|
|
145
|
+
data.cb(false)
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
//获取广告位内容列表
|
|
150
|
+
if (action === 'getListContent') {
|
|
151
|
+
loading = XdBus.getParentApi('loading')({});
|
|
152
|
+
XdBus.getParentApi('getListNewsContent')(data.params)
|
|
153
|
+
.then(res => {
|
|
154
|
+
loading.close();
|
|
155
|
+
data.cb(res)
|
|
156
|
+
})
|
|
157
|
+
.catch(error => {
|
|
158
|
+
loading.close();
|
|
159
|
+
console.error(error);
|
|
160
|
+
});
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
//广告内容创建
|
|
164
|
+
if (action === 'addContent') {
|
|
165
|
+
loading = XdBus.getParentApi('loading')({});
|
|
166
|
+
XdBus.getParentApi('addNewsContent')(data.params)
|
|
167
|
+
.then(res => {
|
|
168
|
+
loading.close();
|
|
169
|
+
data.cb(true)
|
|
170
|
+
})
|
|
171
|
+
.catch(error => {
|
|
172
|
+
console.error(error);
|
|
173
|
+
loading.close();
|
|
174
|
+
data.cb(false)
|
|
175
|
+
});
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
//广告内容编辑
|
|
179
|
+
if (action === 'editContent') {
|
|
180
|
+
loading = XdBus.getParentApi('loading')({});
|
|
181
|
+
XdBus.getParentApi('updateNewsContent')(data.params)
|
|
182
|
+
.then(res => {
|
|
183
|
+
loading.close();
|
|
184
|
+
data.cb(true)
|
|
185
|
+
})
|
|
186
|
+
.catch(error => {
|
|
187
|
+
console.error(error);
|
|
188
|
+
loading.close();
|
|
189
|
+
data.cb(false)
|
|
190
|
+
});
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
//广告内容删除
|
|
194
|
+
if (action === 'deleteContent') {
|
|
195
|
+
loading = XdBus.getParentApi('loading')({});
|
|
196
|
+
XdBus.getParentApi('deleteNewsContent')(data.params)
|
|
197
|
+
.then(res => {
|
|
198
|
+
loading.close();
|
|
199
|
+
data.cb(true)
|
|
200
|
+
})
|
|
201
|
+
.catch(error => {
|
|
202
|
+
console.error(error);
|
|
203
|
+
loading.close();
|
|
204
|
+
data.cb(false)
|
|
205
|
+
});
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
//内容发布
|
|
209
|
+
if (action === 'publish') {
|
|
210
|
+
loading = XdBus.getParentApi('loading')({});
|
|
211
|
+
console.log('publish', data.params)
|
|
212
|
+
XdBus.getParentApi('cmsPublishContent')(data.params)
|
|
213
|
+
.then(res => {
|
|
214
|
+
loading.close();
|
|
215
|
+
data.cb(res)
|
|
216
|
+
})
|
|
217
|
+
.catch(error => {
|
|
218
|
+
loading.close();
|
|
219
|
+
console.error(error);
|
|
220
|
+
});
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
//通知页面进行刷新
|
|
224
|
+
if (action === 'update') {
|
|
225
|
+
loading = XdBus.getParentApi('loading')({});
|
|
226
|
+
XdBus.getParentApi('getXdBusUpdateView')('onUpdateView', {});
|
|
227
|
+
loading.close()
|
|
228
|
+
}
|
|
229
|
+
},
|
|
230
|
+
},
|
|
231
|
+
].filter(i => i)
|
|
232
|
+
}
|
|
233
|
+
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
/**
|
|
3
3
|
* @description 接口配置,
|
|
4
|
-
* 在设置方法名字当时候,别忘记加上【模块名字】:
|
|
4
|
+
* 在设置方法名字当时候,别忘记加上【模块名字】:Order
|
|
5
5
|
* @type {*[]}
|
|
6
6
|
*/
|
|
7
7
|
module.exports = [
|
|
8
8
|
{
|
|
9
|
-
//设置方法名字当别忘记加上【模块名字】:
|
|
10
|
-
mapFnName: '
|
|
9
|
+
//设置方法名字当别忘记加上【模块名字】:Order
|
|
10
|
+
mapFnName: 'getOrderByIdFilmSquate',
|
|
11
11
|
title: '获取电影广场列表',
|
|
12
12
|
path: '/api/account/film/list-film-square',
|
|
13
13
|
isRule: false,
|
|
@@ -19,8 +19,8 @@ module.exports = [
|
|
|
19
19
|
disabled: true,
|
|
20
20
|
},
|
|
21
21
|
{
|
|
22
|
-
//设置方法名字当别忘记加上【模块名字】:
|
|
23
|
-
mapFnName: '
|
|
22
|
+
//设置方法名字当别忘记加上【模块名字】:Order
|
|
23
|
+
mapFnName: 'updateOrderFilmPaiqiDate',
|
|
24
24
|
title: '更新排期',
|
|
25
25
|
path: '/api/account/film/paiqi-date',
|
|
26
26
|
isRule: false,
|
|
@@ -32,8 +32,8 @@ module.exports = [
|
|
|
32
32
|
disabled: true,
|
|
33
33
|
},
|
|
34
34
|
{
|
|
35
|
-
//设置方法名字当别忘记加上【模块名字】:
|
|
36
|
-
mapFnName: '
|
|
35
|
+
//设置方法名字当别忘记加上【模块名字】:Order
|
|
36
|
+
mapFnName: 'removeOrderFilmAddress',
|
|
37
37
|
title: '删除我的配送地址',
|
|
38
38
|
path: '/api/account/film/paiqi-date',
|
|
39
39
|
isRule: false,
|
|
@@ -44,8 +44,8 @@ module.exports = [
|
|
|
44
44
|
disabled: true,
|
|
45
45
|
},
|
|
46
46
|
{
|
|
47
|
-
//设置方法名字当别忘记加上【模块名字】:
|
|
48
|
-
mapFnName: '
|
|
47
|
+
//设置方法名字当别忘记加上【模块名字】:Order
|
|
48
|
+
mapFnName: 'addOrderFilmcart',
|
|
49
49
|
title: '添加购物车',
|
|
50
50
|
path: '/api/account/film/paiqi-date',
|
|
51
51
|
isRule: false,
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
import Style from './cusAttr/style'
|
|
3
|
+
import Advanced from './cusAttr/advanced'
|
|
4
|
+
import Content from './cusAttr/content'
|
|
5
|
+
|
|
6
|
+
export default {
|
|
7
|
+
style: [],
|
|
8
|
+
content: (data, gValue, gColor, oldData) => {
|
|
9
|
+
return [
|
|
10
|
+
...Content(data, gValue, gColor, oldData),
|
|
11
|
+
...Style(data, gValue, gColor, oldData),
|
|
12
|
+
...Advanced(data, gValue, gColor, oldData),
|
|
13
|
+
].filter(i => i)
|
|
14
|
+
},
|
|
15
|
+
advanced: [],
|
|
16
|
+
}
|