jufubao-base 1.0.181-beta9 → 1.0.182-beta1
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/JfbBaseAddress/Attr.js +50 -1
- package/src/components/JfbBaseAddress/JfbBaseAddress.vue +120 -68
- package/src/components/JfbBaseAddress/XdTfkItem.vue +117 -0
- package/src/components/JfbBaseCardDelay/Api.js +30 -19
- package/src/components/JfbBaseCardDelay/Attr.js +35 -237
- package/src/components/JfbBaseCardDelay/JfbBaseCardDelay.vue +78 -279
- package/src/components/JfbBaseCardDetailEntry/Attr.js +0 -12
- package/src/components/JfbBaseCardDetailEntry/JfbBaseCardDetailEntry.vue +0 -14
- package/src/components/JfbBaseCardDetailEntry/Mock.js +1 -1
- package/src/components/JfbBaseCardEntry/Attr.js +0 -121
- package/src/components/JfbBaseCardEntry/JfbBaseCardEntry.vue +29 -206
- package/src/components/JfbBaseCardGive/Api.js +34 -18
- package/src/components/JfbBaseCardGive/Attr.js +32 -40
- package/src/components/JfbBaseCardGive/JfbBaseCardGive.vue +79 -502
- package/src/components/JfbBaseCardGive/Mock.js +9 -2
- package/src/components/JfbBaseCardReceive/Api.js +36 -10
- package/src/components/JfbBaseCardReceive/Attr.js +39 -9
- package/src/components/JfbBaseCardReceive/JfbBaseCardReceive.vue +80 -403
- package/src/components/JfbBaseCardReceive/Mock.js +7 -1
- package/src/components/JfbBaseCardReceiveCover/Api.js +43 -5
- package/src/components/JfbBaseCardReceiveCover/Attr.js +30 -119
- package/src/components/JfbBaseCardReceiveCover/JfbBaseCardReceiveCover.vue +82 -189
- package/src/components/JfbBaseCardReceiveCover/Mock.js +9 -1
- package/src/components/JfbBaseFastLink/JfbBaseFastLink.vue +1 -1
- package/src/components/JfbBaseOrderDetail/Attr.js +10 -0
- package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +16 -97
- package/src/components/JfbBaseOrderDetail/Mock.js +0 -5
- package/src/components/JfbBaseOrderList/Attr.js +23 -0
- package/src/components/JfbBaseOrderList/JfbBaseOrderList.vue +117 -86
- package/src/components/JfbBaseOrderList/XdTfkOrderItem.vue +246 -0
- package/src/components/JfbBasePay/Attr.js +0 -12
- package/src/components/JfbBasePay/JfbBasePay.vue +12 -18
- package/src/components/JfbBasePosterType/JfbBasePosterType.vue +1 -0
- package/src/components/JfbBaseRechargeOrder/Api.js +0 -11
- package/src/components/JfbBaseRechargeOrder/JfbBaseRechargeOrder.vue +27 -46
- package/src/components/JfbBaseRechargeOrderDetail/Api.js +0 -11
- package/src/components/JfbBaseRechargeOrderDetail/JfbBaseRechargeOrderDetail.vue +13 -142
- package/src/components/JfbBaseRechargeSuccess/Api.js +0 -11
- package/src/components/JfbBaseRechargeSuccess/Attr.js +1 -1
- package/src/components/JfbBaseRechargeSuccess/JfbBaseRechargeSuccess.vue +3 -6
|
@@ -8,251 +8,49 @@ export default {
|
|
|
8
8
|
content: (data) => {
|
|
9
9
|
return [
|
|
10
10
|
{
|
|
11
|
-
label: '
|
|
12
|
-
ele: 'xd-
|
|
13
|
-
valueKey: '
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
size: 5,
|
|
23
|
-
tipsformet: '上传文件格式:@imageType@,不超过@size@MB.',
|
|
24
|
-
uploadType: 'aliyun',
|
|
25
|
-
type: ['jpg', 'png', 'jpeg']
|
|
11
|
+
label: '背景颜色:',
|
|
12
|
+
ele: 'xd-color',
|
|
13
|
+
valueKey: 'bgcolor',
|
|
14
|
+
value: data.bgcolor || '',
|
|
15
|
+
placeholder: '请输入占位框背景颜色',
|
|
16
|
+
classNmae: 'input80',
|
|
17
|
+
rules: [
|
|
18
|
+
{
|
|
19
|
+
required: true,
|
|
20
|
+
message: '请输入占位框背景颜色',
|
|
21
|
+
trigger: 'blur'
|
|
26
22
|
},
|
|
27
|
-
|
|
28
|
-
handleCustom({action, data}) {
|
|
29
|
-
if (data && data.params) {
|
|
30
|
-
//当一个插件中出现使用内容分类时候需要设置code值,在页面引用时候容器id + code进行拼接
|
|
31
|
-
//data.params = Object.assign({}, data.params, {code: 'g_test_id'});
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
//获取返回参数(场景类型名称为必填)
|
|
35
|
-
let loading = { close(){}}
|
|
36
|
-
|
|
37
|
-
//获取显示内容
|
|
38
|
-
if (action === 'screen') {
|
|
39
|
-
XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_bucket_content_tip'})
|
|
40
|
-
.then(res => {
|
|
41
|
-
loading.close();
|
|
42
|
-
data.cb(res['list'])
|
|
43
|
-
})
|
|
44
|
-
.catch(error => {
|
|
45
|
-
console.error(error);
|
|
46
|
-
loading.close();
|
|
47
|
-
});
|
|
48
|
-
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
//获取返回参数(广告位高度必选项)
|
|
52
|
-
if (action === 'getNewsInfo') {
|
|
53
|
-
XdBus.getParentApi('cmsGetPublishEditxContent')(data.params)
|
|
54
|
-
.then(res => {
|
|
55
|
-
loading.close()
|
|
56
|
-
data.cb({list: res.list, selectId: res.selected})
|
|
57
|
-
})
|
|
58
|
-
.catch(error => {
|
|
59
|
-
loading.close()
|
|
60
|
-
console.error(error);
|
|
61
|
-
});
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
//获取产品业务线列表
|
|
65
|
-
if (action === 'namespace') {
|
|
66
|
-
XdBus.getParentApi('getOptionsNamespaces')({})
|
|
67
|
-
.then(res => {
|
|
68
|
-
loading.close()
|
|
69
|
-
data.cb(res['list'])
|
|
70
|
-
})
|
|
71
|
-
.catch(error => {
|
|
72
|
-
loading.close()
|
|
73
|
-
console.error(error);
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
//使用内容分类
|
|
78
|
-
if (action === 'cmsPublishEditxContent') {
|
|
79
|
-
loading = XdBus.getParentApi('loading')({});
|
|
80
|
-
XdBus.getParentApi('cmsPublishEditxContent')(data.params)
|
|
81
|
-
.then(res => {
|
|
82
|
-
console.log('cmsPublishEditxContent', res)
|
|
83
|
-
loading.close();
|
|
84
|
-
data.cb(res)
|
|
85
|
-
})
|
|
86
|
-
.catch(error => {
|
|
87
|
-
loading.close();
|
|
88
|
-
console.error(error);
|
|
89
|
-
});
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
//位置列表
|
|
93
|
-
if (action === 'getListPostion') {
|
|
94
|
-
loading = XdBus.getParentApi('loading')({});
|
|
95
|
-
XdBus.getParentApi('getListNewsPosition')(data.params)
|
|
96
|
-
.then(res => {
|
|
97
|
-
loading.close();
|
|
98
|
-
data.cb(res)
|
|
99
|
-
})
|
|
100
|
-
.catch(error => {
|
|
101
|
-
loading.close();
|
|
102
|
-
console.error(error);
|
|
103
|
-
});
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
//位置创建
|
|
107
|
-
if (action === 'addPostion') {
|
|
108
|
-
loading = XdBus.getParentApi('loading')({});
|
|
109
|
-
XdBus.getParentApi('addNewsPosition')(data.params)
|
|
110
|
-
.then(res => {
|
|
111
|
-
loading.close();
|
|
112
|
-
data.cb(true)
|
|
113
|
-
})
|
|
114
|
-
.catch(error => {
|
|
115
|
-
console.error(error);
|
|
116
|
-
loading.close();
|
|
117
|
-
data.cb(false)
|
|
118
|
-
});
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
//位置编辑
|
|
122
|
-
if (action === 'editPostion') {
|
|
123
|
-
loading = XdBus.getParentApi('loading')({});
|
|
124
|
-
XdBus.getParentApi('updateNewsPosition')(data.params)
|
|
125
|
-
.then(res => {
|
|
126
|
-
loading.close();
|
|
127
|
-
data.cb(true)
|
|
128
|
-
})
|
|
129
|
-
.catch(error => {
|
|
130
|
-
console.error(error);
|
|
131
|
-
loading.close();
|
|
132
|
-
data.cb(false)
|
|
133
|
-
});
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
//位置删除
|
|
137
|
-
if (action === 'deleltePostion') {
|
|
138
|
-
loading = XdBus.getParentApi('loading')({});
|
|
139
|
-
XdBus.getParentApi('deleteNewsPosition')(data.params)
|
|
140
|
-
.then(res => {
|
|
141
|
-
loading.close();
|
|
142
|
-
data.cb(true)
|
|
143
|
-
})
|
|
144
|
-
.catch(error => {
|
|
145
|
-
console.error(error);
|
|
146
|
-
loading.close();
|
|
147
|
-
data.cb(false)
|
|
148
|
-
});
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
//获取广告位内容列表
|
|
152
|
-
if (action === 'getListContent') {
|
|
153
|
-
loading = XdBus.getParentApi('loading')({});
|
|
154
|
-
XdBus.getParentApi('getListNewsContent')(data.params)
|
|
155
|
-
.then(res => {
|
|
156
|
-
loading.close();
|
|
157
|
-
data.cb(res)
|
|
158
|
-
})
|
|
159
|
-
.catch(error => {
|
|
160
|
-
loading.close();
|
|
161
|
-
console.error(error);
|
|
162
|
-
});
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
//广告内容创建
|
|
166
|
-
if (action === 'addContent') {
|
|
167
|
-
loading = XdBus.getParentApi('loading')({});
|
|
168
|
-
XdBus.getParentApi('addNewsContent')(data.params)
|
|
169
|
-
.then(res => {
|
|
170
|
-
loading.close();
|
|
171
|
-
data.cb(true)
|
|
172
|
-
})
|
|
173
|
-
.catch(error => {
|
|
174
|
-
console.error(error);
|
|
175
|
-
loading.close();
|
|
176
|
-
data.cb(false)
|
|
177
|
-
});
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
//广告内容编辑
|
|
181
|
-
if (action === 'editContent') {
|
|
182
|
-
loading = XdBus.getParentApi('loading')({});
|
|
183
|
-
XdBus.getParentApi('updateNewsContent')(data.params)
|
|
184
|
-
.then(res => {
|
|
185
|
-
loading.close();
|
|
186
|
-
data.cb(true)
|
|
187
|
-
})
|
|
188
|
-
.catch(error => {
|
|
189
|
-
console.error(error);
|
|
190
|
-
loading.close();
|
|
191
|
-
data.cb(false)
|
|
192
|
-
});
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
//广告内容删除
|
|
196
|
-
if (action === 'deleteContent') {
|
|
197
|
-
loading = XdBus.getParentApi('loading')({});
|
|
198
|
-
XdBus.getParentApi('deleteNewsContent')(data.params)
|
|
199
|
-
.then(res => {
|
|
200
|
-
loading.close();
|
|
201
|
-
data.cb(true)
|
|
202
|
-
})
|
|
203
|
-
.catch(error => {
|
|
204
|
-
console.error(error);
|
|
205
|
-
loading.close();
|
|
206
|
-
data.cb(false)
|
|
207
|
-
});
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
//内容发布
|
|
211
|
-
if (action === 'publish') {
|
|
212
|
-
loading = XdBus.getParentApi('loading')({});
|
|
213
|
-
console.log('publish', data.params)
|
|
214
|
-
XdBus.getParentApi('cmsPublishContent')(data.params)
|
|
215
|
-
.then(res => {
|
|
216
|
-
loading.close();
|
|
217
|
-
data.cb(res)
|
|
218
|
-
})
|
|
219
|
-
.catch(error => {
|
|
220
|
-
loading.close();
|
|
221
|
-
console.error(error);
|
|
222
|
-
});
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
//通知页面进行刷新
|
|
226
|
-
if (action === 'update') {
|
|
227
|
-
loading = XdBus.getParentApi('loading')({});
|
|
228
|
-
XdBus.getParentApi('getXdBusUpdateView')('onUpdateView', {});
|
|
229
|
-
loading.close()
|
|
230
|
-
}
|
|
231
|
-
},
|
|
23
|
+
]
|
|
232
24
|
},
|
|
233
25
|
{
|
|
234
|
-
label: '
|
|
26
|
+
label: '选中路径:',
|
|
235
27
|
ele: 'xd-select-pages-path',
|
|
236
|
-
valueKey: '
|
|
237
|
-
|
|
238
|
-
placeholder: '请选择票券支付路径',
|
|
239
|
-
value: data['payPath'] || {},
|
|
28
|
+
valueKey: 'select-pages-path',
|
|
29
|
+
value: data['select-pages-path'] || null,
|
|
240
30
|
setting: {
|
|
241
|
-
router: XdBus.getParentApi('getPagesTree')
|
|
31
|
+
router: XdBus.getParentApi('getPagesTree')
|
|
242
32
|
},
|
|
243
|
-
|
|
33
|
+
},
|
|
34
|
+
data.bgcolor && {
|
|
35
|
+
label: '高度:',
|
|
36
|
+
ele: 'el-input',
|
|
37
|
+
type: 'number',
|
|
38
|
+
valueKey: 'height',
|
|
39
|
+
value: data.height || 100,
|
|
40
|
+
placeholder: '请输入占位框高度,单位像素,默认:10px',
|
|
41
|
+
className: 'input80',
|
|
42
|
+
rules: [
|
|
43
|
+
{
|
|
44
|
+
required: true,
|
|
45
|
+
message: '请输入占位框高度',
|
|
46
|
+
trigger: 'blur'
|
|
47
|
+
},
|
|
48
|
+
]
|
|
244
49
|
},
|
|
245
50
|
{
|
|
246
|
-
label: '
|
|
247
|
-
ele: '
|
|
248
|
-
|
|
249
|
-
groupKey:'advanced',
|
|
250
|
-
placeholder: '请选择0元支付成功路径',
|
|
251
|
-
value: data['successPath'] || {},
|
|
252
|
-
setting: {
|
|
253
|
-
router: XdBus.getParentApi('getPagesTree'),
|
|
254
|
-
},
|
|
255
|
-
inline: false,
|
|
51
|
+
label: '', //label
|
|
52
|
+
ele: 'slot', //package 名称
|
|
53
|
+
slot: 'is_reference',
|
|
256
54
|
},
|
|
257
55
|
].filter(i=>i)
|
|
258
56
|
},
|
|
@@ -2,311 +2,110 @@
|
|
|
2
2
|
<view
|
|
3
3
|
class="jfb-base-card-delay"
|
|
4
4
|
@click="handleEditxSelect"
|
|
5
|
-
:class="{ editx: isEditx && active }"
|
|
5
|
+
:class="{ editx : isEditx && active }"
|
|
6
6
|
>
|
|
7
7
|
<!--#ifdef H5-->
|
|
8
8
|
<view
|
|
9
9
|
class="jfb-base-card-delay__edit"
|
|
10
|
-
:class="{ editx: isEditx && active }"
|
|
10
|
+
:class="{ editx : isEditx && active }"
|
|
11
11
|
v-if="isEditx && active"
|
|
12
12
|
>
|
|
13
13
|
<view class="jfb-base-card-delay__edit-icon" @click="delEdit">删除</view>
|
|
14
14
|
</view>
|
|
15
15
|
<!-- #endif -->
|
|
16
16
|
<view class="jfb-base-card-delay__body">
|
|
17
|
-
<view>
|
|
18
|
-
<view class="wrap">
|
|
19
|
-
<input
|
|
20
|
-
placeholder="输入券号"
|
|
21
|
-
v-model.trim="card_number"
|
|
22
|
-
type="text"
|
|
23
|
-
/>
|
|
24
|
-
</view>
|
|
25
|
-
<view v-if="packageList !== null">
|
|
26
|
-
<view v-if="packageList.length > 0" class="package">
|
|
27
|
-
<view
|
|
28
|
-
v-for="(item, index) in packageList"
|
|
29
|
-
:key="index"
|
|
30
|
-
@click="activeIndex = index"
|
|
31
|
-
:style="{
|
|
32
|
-
background: activeIndex === index ? backgroundColor : '#fff',
|
|
33
|
-
color: activeIndex === index ? mainColor : '#333',
|
|
34
|
-
marginRight: (index + 1) % 3 == 0 ? '0' : '36rpx',
|
|
35
|
-
}"
|
|
36
|
-
class="package-item"
|
|
37
|
-
>
|
|
38
|
-
<view>{{ item.package_name }}</view>
|
|
39
|
-
<view>
|
|
40
|
-
<text>{{ item.pay_amount }}</text
|
|
41
|
-
>元宝</view
|
|
42
|
-
>
|
|
43
|
-
</view>
|
|
44
|
-
</view>
|
|
45
|
-
<xd-no-data height="20vh" v-else :iconType="empty">
|
|
46
|
-
当前票券无套餐
|
|
47
|
-
</xd-no-data>
|
|
48
|
-
</view>
|
|
49
|
-
<view class="wrap" style="margin-top: 28rpx" v-if="notice&&packageList !== null&&packageList.length > 0">
|
|
50
|
-
<view
|
|
51
|
-
style="
|
|
52
|
-
text-align: center;
|
|
53
|
-
padding-bottom: 36rpx;
|
|
54
|
-
color: #333;
|
|
55
|
-
font-weight: 500;
|
|
56
|
-
font-size: 28rpx;
|
|
57
|
-
"
|
|
58
|
-
>延期规则</view
|
|
59
|
-
>
|
|
60
|
-
<xd-content-xss :html="notice"></xd-content-xss>
|
|
61
|
-
</view>
|
|
62
|
-
<view
|
|
63
|
-
v-if="!package_id"
|
|
64
|
-
class="jfb-base-card-delay__body-footer"
|
|
65
|
-
:style="prod_bottom"
|
|
66
|
-
>
|
|
67
|
-
<xd-button
|
|
68
|
-
width="560rpx"
|
|
69
|
-
v-if="card_number"
|
|
70
|
-
type="primary"
|
|
71
|
-
@click="getList"
|
|
72
|
-
>下一步</xd-button
|
|
73
|
-
>
|
|
74
|
-
<xd-button
|
|
75
|
-
width="560rpx"
|
|
76
|
-
v-else
|
|
77
|
-
disabled="true"
|
|
78
|
-
type="primary"
|
|
79
|
-
@click="getList"
|
|
80
|
-
>下一步</xd-button
|
|
81
|
-
>
|
|
82
|
-
</view>
|
|
83
|
-
<view
|
|
84
|
-
v-else
|
|
85
|
-
class="jfb-base-card-delay__body-footer"
|
|
86
|
-
:style="prod_bottom"
|
|
87
|
-
>
|
|
88
|
-
<xd-button width="560rpx" type="primary" @click="handleBuy"
|
|
89
|
-
>{{ pay_amount }}元延期</xd-button
|
|
90
|
-
>
|
|
91
|
-
</view>
|
|
92
|
-
</view>
|
|
17
|
+
<view>测试插件( {{containerId}} )</view>
|
|
93
18
|
</view>
|
|
94
19
|
</view>
|
|
95
20
|
</template>
|
|
96
21
|
|
|
97
22
|
<script>
|
|
98
|
-
import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
|
|
99
|
-
import
|
|
100
|
-
import
|
|
101
|
-
import
|
|
102
|
-
import
|
|
103
|
-
import
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
const Color = require("color");
|
|
109
|
-
|
|
110
|
-
export default {
|
|
111
|
-
name: "JfbBaseCardDelay",
|
|
112
|
-
components: {
|
|
113
|
-
XdFontIcon,
|
|
114
|
-
XdContentXss,
|
|
115
|
-
XdButton,
|
|
116
|
-
XdNoData,
|
|
117
|
-
},
|
|
118
|
-
mixins: [
|
|
119
|
-
componentsMixins,
|
|
120
|
-
extsMixins,
|
|
121
|
-
JfbBaseCardDelayMixin,
|
|
122
|
-
colorCardMixins,
|
|
123
|
-
],
|
|
124
|
-
data() {
|
|
125
|
-
return {
|
|
126
|
-
notice: "",
|
|
127
|
-
card_number: "",
|
|
128
|
-
backgroundColor: "",
|
|
129
|
-
packageList: null,
|
|
130
|
-
activeIndex: 0,
|
|
131
|
-
package_id: null,
|
|
132
|
-
payPath: "",
|
|
133
|
-
pay_amount: 0,
|
|
134
|
-
successPath: "",
|
|
135
|
-
};
|
|
136
|
-
},
|
|
137
|
-
computed: {
|
|
138
|
-
prod_bottom() {
|
|
139
|
-
return this.fixedStyle({ height: 0, zIndex: 111 });
|
|
140
|
-
},
|
|
141
|
-
},
|
|
142
|
-
watch: {
|
|
143
|
-
container(value, oldValue) {
|
|
144
|
-
if (JSON.stringify(value) === JSON.stringify(oldValue)) return;
|
|
145
|
-
if (this.$configProject["isPreview"]) this.init(value);
|
|
23
|
+
import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
|
|
24
|
+
import { jfbRootExec } from "@/utils/xd.event";
|
|
25
|
+
import JfbBaseCardDelayMixin from "./JfbBaseCardDelayMixin";
|
|
26
|
+
import { getContainerPropsValue } from "@/utils/xd.base";
|
|
27
|
+
import componentsMixins from "@/mixins/componentsMixins";
|
|
28
|
+
import extsMixins from "@/mixins/extsMixins";
|
|
29
|
+
export default {
|
|
30
|
+
name: "JfbBaseCardDelay",
|
|
31
|
+
components: {
|
|
32
|
+
XdFontIcon
|
|
146
33
|
},
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
34
|
+
mixins: [
|
|
35
|
+
componentsMixins, extsMixins, JfbBaseCardDelayMixin
|
|
36
|
+
],
|
|
37
|
+
data() {
|
|
38
|
+
return {
|
|
39
|
+
|
|
40
|
+
//todo
|
|
151
41
|
}
|
|
152
42
|
},
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
this.
|
|
157
|
-
}
|
|
43
|
+
watch: {
|
|
44
|
+
container(value, oldValue) {
|
|
45
|
+
if (JSON.stringify(value) === JSON.stringify(oldValue)) return;
|
|
46
|
+
if (this.$configProject['isPreview']) this.init(value)
|
|
47
|
+
},
|
|
158
48
|
},
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
this.backgroundColor = Color(this.mainColor).alpha(0.2).toString();
|
|
162
|
-
this.init(this.container);
|
|
49
|
+
created() {
|
|
50
|
+
this.init(this.container);
|
|
163
51
|
|
|
164
|
-
|
|
165
|
-
},
|
|
166
|
-
methods: {
|
|
167
|
-
onJfbLoad(options) {
|
|
168
|
-
this.getContent();
|
|
169
|
-
},
|
|
170
|
-
getContent() {
|
|
171
|
-
jfbRootExec("getCardDelayContent", {
|
|
172
|
-
vm: this,
|
|
173
|
-
data: {
|
|
174
|
-
page_id: this.pageAttr["page_id"], //页面ID
|
|
175
|
-
container_id: this.containerId, //组件ID
|
|
176
|
-
limit: 1,
|
|
177
|
-
},
|
|
178
|
-
})
|
|
179
|
-
.then((res) => {
|
|
180
|
-
if (res.list && res.list.length > 0) {
|
|
181
|
-
this.notice = res.list[0].content;
|
|
182
|
-
}
|
|
183
|
-
this.statusNotice = true;
|
|
184
|
-
})
|
|
185
|
-
.catch((error) => {
|
|
186
|
-
console.error(error);
|
|
187
|
-
});
|
|
188
|
-
},
|
|
189
|
-
getList() {
|
|
190
|
-
jfbRootExec("getCardDelayPackageList", {
|
|
191
|
-
vm: this,
|
|
192
|
-
data: {
|
|
193
|
-
card_number: this.card_number,
|
|
194
|
-
},
|
|
195
|
-
})
|
|
196
|
-
.then((res) => {
|
|
197
|
-
if (res.list && res.list.length > 0) {
|
|
198
|
-
res.list = res.list.map((item) => {
|
|
199
|
-
return {
|
|
200
|
-
...item,
|
|
201
|
-
pay_amount: this.$xdUniHelper.divisionFloatNumber(
|
|
202
|
-
item.pay_amount,
|
|
203
|
-
100
|
|
204
|
-
),
|
|
205
|
-
};
|
|
206
|
-
});
|
|
207
|
-
this.packageList = res.list;
|
|
208
|
-
this.package_id = this.packageList[0].id;
|
|
209
|
-
this.pay_amount = this.packageList[0].pay_amount;
|
|
210
|
-
} else {
|
|
211
|
-
this.packageList = [];
|
|
212
|
-
}
|
|
213
|
-
})
|
|
214
|
-
.catch((error) => {
|
|
215
|
-
console.error(error);
|
|
216
|
-
});
|
|
52
|
+
//todo
|
|
217
53
|
},
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
.
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
54
|
+
methods: {
|
|
55
|
+
onJfbLoad(options) {
|
|
56
|
+
|
|
57
|
+
// jfbRootExec('baiduUserLogin', {
|
|
58
|
+
|
|
59
|
+
// vm: this,// data: {
|
|
60
|
+
|
|
61
|
+
// account: 'gaoshiyong',// password: '123456789',// type: 3,// ...options
|
|
62
|
+
|
|
63
|
+
// }
|
|
64
|
+
|
|
65
|
+
// }).then().catch()
|
|
66
|
+
},
|
|
67
|
+
/**
|
|
68
|
+
* @description 监听事件变化
|
|
69
|
+
* @param container {object} 业务组件对象自己
|
|
70
|
+
*/
|
|
71
|
+
init(container) {
|
|
72
|
+
|
|
73
|
+
//this.bgcolor = getContainerPropsValue(container, 'content.bgcolor', '#fff');
|
|
74
|
+
|
|
75
|
+
//this.height = getContainerPropsValue(container, 'content.height', 10);
|
|
76
|
+
},
|
|
77
|
+
onJfbScroll(options) {
|
|
78
|
+
console.log('event.onJfbScroll', options)
|
|
79
|
+
},
|
|
80
|
+
onJfbReachBottom(options) {
|
|
81
|
+
console.log('event.onJfbReachBottom', options)
|
|
82
|
+
},
|
|
83
|
+
onJfbShow(options) {
|
|
84
|
+
console.log('event.onJfbShow', options)
|
|
85
|
+
},
|
|
86
|
+
onJfbHide(options) {
|
|
87
|
+
console.log('event.onJfbHide', options)
|
|
88
|
+
},
|
|
89
|
+
onJfbBack(options) {
|
|
90
|
+
console.log('event.onJfbBack', options)
|
|
91
|
+
},
|
|
92
|
+
onJfbUpdate(...data) {
|
|
93
|
+
console.log('event.onJfbUpdate', data)
|
|
94
|
+
},
|
|
95
|
+
onJfbCustomEvent(options) {
|
|
96
|
+
console.log('event.onJfbReachBottom', options)
|
|
97
|
+
},
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
258
101
|
</script>
|
|
259
102
|
|
|
260
103
|
<style scoped lang="less">
|
|
261
|
-
@import "./JfbBaseCardDelayLess.less";
|
|
104
|
+
@import "./JfbBaseCardDelayLess.less";
|
|
262
105
|
|
|
263
|
-
.jfb-base-card-delay {
|
|
264
|
-
|
|
265
|
-
padding: 26rpx;
|
|
266
|
-
.wrap {
|
|
267
|
-
border-radius: 20rpx;
|
|
268
|
-
border: 1rpx solid #eeeeee;
|
|
269
|
-
padding: 36rpx;
|
|
270
|
-
background: #fff;
|
|
271
|
-
input {
|
|
272
|
-
height: 30rpx;
|
|
273
|
-
border-radius: 16rpx;
|
|
274
|
-
background: #fafafa;
|
|
275
|
-
border: 1px solid #eeeeee;
|
|
276
|
-
padding: 30rpx 40rpx;
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
&-footer {
|
|
280
|
-
position: fixed;
|
|
281
|
-
left: 0;
|
|
282
|
-
right: 0;
|
|
283
|
-
height: unit(100, rpx);
|
|
284
|
-
display: flex;
|
|
285
|
-
justify-content: center;
|
|
286
|
-
align-items: center;
|
|
287
|
-
background:#fff
|
|
288
|
-
}
|
|
289
|
-
.package {
|
|
290
|
-
display: flex;
|
|
291
|
-
align-items: center;
|
|
292
|
-
flex-wrap: wrap;
|
|
293
|
-
margin-top: 30rpx;
|
|
294
|
-
&-item {
|
|
295
|
-
padding: 40rpx 20rpx;
|
|
296
|
-
font-size: 28rpx;
|
|
297
|
-
text-align: center;
|
|
298
|
-
border-radius: 16rpx;
|
|
299
|
-
margin-right: 36rpx;
|
|
300
|
-
margin-bottom: 36rpx;
|
|
301
|
-
width: 24%;
|
|
106
|
+
.jfb-base-card-delay {
|
|
107
|
+
&__body{
|
|
302
108
|
|
|
303
|
-
& > view:nth-child(2) {
|
|
304
|
-
& > text {
|
|
305
|
-
font-size: 48rpx;
|
|
306
|
-
}
|
|
307
|
-
}
|
|
308
|
-
}
|
|
309
109
|
}
|
|
310
110
|
}
|
|
311
|
-
}
|
|
312
111
|
</style>
|
|
@@ -50,17 +50,5 @@ export default {
|
|
|
50
50
|
},
|
|
51
51
|
inline: false,
|
|
52
52
|
},
|
|
53
|
-
{
|
|
54
|
-
label: '票券转赠地址:',
|
|
55
|
-
ele: 'xd-select-pages-path',
|
|
56
|
-
valueKey: 'give_url',
|
|
57
|
-
groupKey:'advanced',
|
|
58
|
-
placeholder: '请选择票券转赠地址',
|
|
59
|
-
value: null,
|
|
60
|
-
setting: {
|
|
61
|
-
router: XdBus.getParentApi('getPagesTree'),
|
|
62
|
-
},
|
|
63
|
-
inline: false,
|
|
64
|
-
},
|
|
65
53
|
],
|
|
66
54
|
};
|