jufubao-base 1.0.109 → 1.0.110-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/JfbBaseCardInfo/JfbBaseCardInfo.vue +37 -18
- package/src/components/JfbBaseCardInfoEntry/JfbBaseCardInfoEntry.vue +37 -17
- package/src/components/JfbBaseConDialog/Api.js +35 -0
- package/src/components/JfbBaseConDialog/Attr.js +13 -0
- package/src/components/JfbBaseConDialog/JfbBaseConDialog.vue +169 -6
- package/src/components/JfbBaseConDialog/XdCouCardBind.vue +197 -0
- package/src/components/JfbBaseConList/Attr.js +11 -0
- package/src/components/JfbBaseConList/JfbBaseConList.vue +49 -19
- package/src/components/JfbBaseConList/Mock.js +19 -5
- package/src/components/JfbBasePay/Api.js +3 -2
- package/src/components/JfbBasePay/JfbBasePay.vue +28 -18
- package/src/components/JfbBaseSaasBlessDetail/Api.js +60 -0
- package/src/components/JfbBaseSaasBlessDetail/Attr.js +106 -0
- package/src/components/JfbBaseSaasBlessDetail/JfbBaseSaasBlessDetail.vue +227 -0
- package/src/components/JfbBaseSaasBlessDetail/JfbBaseSaasBlessDetailLess.less +80 -0
- package/src/components/JfbBaseSaasBlessDetail/JfbBaseSaasBlessDetailMixin.js +30 -0
- package/src/components/JfbBaseSaasBlessDetail/Mock.js +5 -0
- package/src/components/JfbBaseSaasBlessDialog/Api.js +60 -0
- package/src/components/JfbBaseSaasBlessDialog/Attr.js +50 -0
- package/src/components/JfbBaseSaasBlessDialog/JfbBaseSaasBlessDialog.vue +265 -0
- package/src/components/JfbBaseSaasBlessDialog/JfbBaseSaasBlessDialogLess.less +80 -0
- package/src/components/JfbBaseSaasBlessDialog/JfbBaseSaasBlessDialogMixin.js +30 -0
- package/src/components/JfbBaseSaasBlessDialog/Mock.js +5 -0
- package/src/components/JfbBaseSaasBlessReceive/Api.js +60 -0
- package/src/components/JfbBaseSaasBlessReceive/Attr.js +106 -0
- package/src/components/JfbBaseSaasBlessReceive/JfbBaseSaasBlessReceive.vue +172 -0
- package/src/components/JfbBaseSaasBlessReceive/JfbBaseSaasBlessReceiveLess.less +80 -0
- package/src/components/JfbBaseSaasBlessReceive/JfbBaseSaasBlessReceiveMixin.js +30 -0
- package/src/components/JfbBaseSaasBlessReceive/Mock.js +5 -0
- package/src/components/JfbBaseSaasHome/Api.js +60 -0
- package/src/components/JfbBaseSaasHome/Attr.js +106 -0
- package/src/components/JfbBaseSaasHome/JfbBaseSaasHome.vue +271 -0
- package/src/components/JfbBaseSaasHome/JfbBaseSaasHomeLess.less +80 -0
- package/src/components/JfbBaseSaasHome/JfbBaseSaasHomeMixin.js +30 -0
- package/src/components/JfbBaseSaasHome/Mock.js +5 -0
- package/src/components/JfbBaseSaasLogin/Api.js +60 -0
- package/src/components/JfbBaseSaasLogin/Attr.js +37 -0
- package/src/components/JfbBaseSaasLogin/JfbBaseSaasLogin.vue +297 -0
- package/src/components/JfbBaseSaasLogin/JfbBaseSaasLoginLess.less +80 -0
- package/src/components/JfbBaseSaasLogin/JfbBaseSaasLoginMixin.js +30 -0
- package/src/components/JfbBaseSaasLogin/Mock.js +5 -0
- package/src/components/JfbBaseSaasNewsDetail/Api.js +60 -0
- package/src/components/JfbBaseSaasNewsDetail/Attr.js +106 -0
- package/src/components/JfbBaseSaasNewsDetail/JfbBaseSaasNewsDetail.vue +140 -0
- package/src/components/JfbBaseSaasNewsDetail/JfbBaseSaasNewsDetailLess.less +80 -0
- package/src/components/JfbBaseSaasNewsDetail/JfbBaseSaasNewsDetailMixin.js +30 -0
- package/src/components/JfbBaseSaasNewsDetail/Mock.js +5 -0
- package/src/components/JfbBaseSaasNewsList/Api.js +60 -0
- package/src/components/JfbBaseSaasNewsList/Attr.js +106 -0
- package/src/components/JfbBaseSaasNewsList/JfbBaseSaasNewsList.vue +155 -0
- package/src/components/JfbBaseSaasNewsList/JfbBaseSaasNewsListLess.less +80 -0
- package/src/components/JfbBaseSaasNewsList/JfbBaseSaasNewsListMixin.js +30 -0
- package/src/components/JfbBaseSaasNewsList/Mock.js +5 -0
- package/src/components/JfbBaseSuccess/JfbBaseSuccess.vue +4 -1
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<view class="xd-cou-card-bind">
|
|
3
|
+
<view class="ticket_box" :style="{
|
|
4
|
+
backgroundImage: dialogBackground
|
|
5
|
+
}">
|
|
6
|
+
<view class="ticket_list">
|
|
7
|
+
<view class="ticket_item" :class="item.can_take_num"
|
|
8
|
+
v-for="(item,i) in uiList" :key="i"
|
|
9
|
+
:style="{backgroundImage: item.backgroundImage}"
|
|
10
|
+
>
|
|
11
|
+
<view class="ticket_names">
|
|
12
|
+
<view class="name_main">{{item.prize_type}}</view>
|
|
13
|
+
<view class="name_sub">{{item.prize_name}}</view>
|
|
14
|
+
</view>
|
|
15
|
+
<view class="name_tit">{{item.prize_name}}</view>
|
|
16
|
+
<xd-font-icon class="ticket_icon" :icon="item.icon"></xd-font-icon>
|
|
17
|
+
<view class="btn">
|
|
18
|
+
<xd-button
|
|
19
|
+
size="small"
|
|
20
|
+
type="primary"
|
|
21
|
+
:disabled="item.remain_card_count == 0"
|
|
22
|
+
:style="{
|
|
23
|
+
backgroundImage: item.btnImage
|
|
24
|
+
}"
|
|
25
|
+
@click="getCoupont(item)"
|
|
26
|
+
>{{item.btn_txt}}</xd-button>
|
|
27
|
+
</view>
|
|
28
|
+
</view>
|
|
29
|
+
</view>
|
|
30
|
+
</view>
|
|
31
|
+
|
|
32
|
+
<xd-font-icon
|
|
33
|
+
@click="handleClose"
|
|
34
|
+
class="dialog_close"
|
|
35
|
+
icon="iconguanbi_xian"
|
|
36
|
+
color="#fff"
|
|
37
|
+
size="64"
|
|
38
|
+
></xd-font-icon>
|
|
39
|
+
</view>
|
|
40
|
+
</template>
|
|
41
|
+
<script>
|
|
42
|
+
import XdButton from "@/components/XdButton/XdButton";
|
|
43
|
+
import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
|
|
44
|
+
import getServiceUrl from "@/common/getServiceUrl";
|
|
45
|
+
export default{
|
|
46
|
+
name: "XdCouCardBind",
|
|
47
|
+
components: {
|
|
48
|
+
XdButton,
|
|
49
|
+
XdFontIcon
|
|
50
|
+
},
|
|
51
|
+
props: {
|
|
52
|
+
list: {
|
|
53
|
+
type: Array,
|
|
54
|
+
default(){
|
|
55
|
+
return []
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
setting: {}
|
|
59
|
+
},
|
|
60
|
+
computed: {
|
|
61
|
+
uiList(){
|
|
62
|
+
return this.list.map(item => {
|
|
63
|
+
let mapArr = {"Y": "去查看", "P": "领取", "N": "已发完"}
|
|
64
|
+
item.btn_txt = mapArr[item.can_take_num];
|
|
65
|
+
if(item.can_take_num === "Y" || item.can_take_num === "P"){
|
|
66
|
+
item.backgroundImage = `url(${getServiceUrl(this.setting.app_coupon_url)})`;
|
|
67
|
+
item.btnImage = `url(${getServiceUrl(this.setting.app_coupon_button_bg_url)})`;
|
|
68
|
+
item.icon = item.can_take_num === "Y" ? "iconyilingqu" : "icondailingqu";
|
|
69
|
+
}else if(item.can_take_num === "N"){
|
|
70
|
+
item.backgroundImage = `url(${getServiceUrl(this.setting.app_coupon_invalid_url)})`;
|
|
71
|
+
item.btnImage = "";
|
|
72
|
+
item.icon = "iconyifawan";
|
|
73
|
+
}
|
|
74
|
+
return item;
|
|
75
|
+
})
|
|
76
|
+
},
|
|
77
|
+
dialogBackground(){
|
|
78
|
+
return `url(${getServiceUrl(this.setting.background)})`;
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
data(){
|
|
82
|
+
return {
|
|
83
|
+
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
methods: {
|
|
87
|
+
//领取优惠券
|
|
88
|
+
getCoupont(item){
|
|
89
|
+
if(item.can_take_num === "P"){
|
|
90
|
+
this.$emit("getCoupont", item);
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
handleClose(){
|
|
94
|
+
this.$emit("closeDialog");
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
</script>
|
|
99
|
+
|
|
100
|
+
<style lang="less" scoped>
|
|
101
|
+
@ticketHeight: 180rpx;
|
|
102
|
+
@bgHeight: @ticketHeight - 40rpx;
|
|
103
|
+
.xd-cou-card-bind{
|
|
104
|
+
width: 600rpx;
|
|
105
|
+
max-height: 900rpx;
|
|
106
|
+
padding-bottom: 80rpx;
|
|
107
|
+
.ticket_box{
|
|
108
|
+
background-color: #fff;
|
|
109
|
+
background-size: 100% auto;
|
|
110
|
+
background-repeat: no-repeat;
|
|
111
|
+
padding-top: 200rpx;
|
|
112
|
+
border-radius: 20rpx;
|
|
113
|
+
box-sizing: border-box;
|
|
114
|
+
padding-bottom: 20rpx;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.ticket_item{
|
|
118
|
+
display: flex;
|
|
119
|
+
position: relative;
|
|
120
|
+
width: 540rpx;
|
|
121
|
+
height: @ticketHeight;
|
|
122
|
+
margin: 20rpx auto;
|
|
123
|
+
border-radius: 20rpx;
|
|
124
|
+
padding: 30rpx;
|
|
125
|
+
box-sizing: border-box;
|
|
126
|
+
background: #EEEEEE url("//sandbox-img.jufubao.cn/uploads/20231205/fee9b644b83495c9ba8a4db277600b54.jpg") no-repeat;
|
|
127
|
+
background-size: auto @bgHeight;
|
|
128
|
+
background-position: 30rpx center;
|
|
129
|
+
|
|
130
|
+
&.P,
|
|
131
|
+
&.Y{
|
|
132
|
+
|
|
133
|
+
}
|
|
134
|
+
&.N{
|
|
135
|
+
.ticket_names{
|
|
136
|
+
.name_main{
|
|
137
|
+
color: #BBBBBB;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
.ticket_icon{
|
|
141
|
+
color: #D6D6D6;
|
|
142
|
+
|
|
143
|
+
}
|
|
144
|
+
.btn{
|
|
145
|
+
.xd-button{
|
|
146
|
+
background-color: #DDDDDD !important;
|
|
147
|
+
color: #999999 !important;
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
.name_tit{
|
|
152
|
+
font-size: 28rpx;
|
|
153
|
+
margin-left: 20rpx;
|
|
154
|
+
}
|
|
155
|
+
.ticket_names{
|
|
156
|
+
width: 168rpx;
|
|
157
|
+
height: 120rpx;
|
|
158
|
+
text-align: center;
|
|
159
|
+
font-size: 28rpx;
|
|
160
|
+
.name_main{
|
|
161
|
+
margin-bottom: 26rpx;
|
|
162
|
+
margin-top: 20rpx;
|
|
163
|
+
color: #fb5b3f;
|
|
164
|
+
}
|
|
165
|
+
.name_sub{
|
|
166
|
+
font-size: 24rpx;
|
|
167
|
+
color: #FFFFFF;
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
.ticket_icon{
|
|
171
|
+
font-size: 80rpx !important;
|
|
172
|
+
position: absolute;
|
|
173
|
+
top: 0;
|
|
174
|
+
right: 0;
|
|
175
|
+
}
|
|
176
|
+
.btn{
|
|
177
|
+
position: absolute;
|
|
178
|
+
right: 20rpx;
|
|
179
|
+
bottom: 20rpx;
|
|
180
|
+
.xd-button{
|
|
181
|
+
height: 30rpx;
|
|
182
|
+
width: 100rpx;
|
|
183
|
+
font-size: 28rpx;
|
|
184
|
+
background-size: cover !important;
|
|
185
|
+
background-color: #fb5b3f;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
}
|
|
190
|
+
.dialog_close{
|
|
191
|
+
position: absolute;
|
|
192
|
+
bottom: 0rpx;
|
|
193
|
+
left: 50%;
|
|
194
|
+
transform: translateX(-50%);
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
</style>
|
|
@@ -6,6 +6,17 @@
|
|
|
6
6
|
export default {
|
|
7
7
|
style: [],
|
|
8
8
|
content: [
|
|
9
|
+
{
|
|
10
|
+
label: '查看已领票券路径:', //label
|
|
11
|
+
ele: 'xd-select-pages-path', //package 名称
|
|
12
|
+
valueKey: 'collectedPath', //form[valueKey]
|
|
13
|
+
placeholder: '请选择查看已领票券路径',
|
|
14
|
+
value: null,
|
|
15
|
+
setting: {
|
|
16
|
+
router: XdBus.getParentApi('getPagesTree'),
|
|
17
|
+
},
|
|
18
|
+
inline: false,
|
|
19
|
+
},
|
|
9
20
|
// {
|
|
10
21
|
// label: '领券规则:',
|
|
11
22
|
// ele: 'xd-site-news',
|
|
@@ -16,15 +16,14 @@
|
|
|
16
16
|
<view class="jfb-base-con-list__edit-icon" @click="delEdit">删除</view>
|
|
17
17
|
</view>
|
|
18
18
|
<!-- #endif -->
|
|
19
|
-
<view class="jfb-base-con-list__body" v-if="done"
|
|
19
|
+
<view class="jfb-base-con-list__body" v-if="done" :style="{
|
|
20
|
+
backgroundImage: `url(${background})`,
|
|
21
|
+
backgroundSize: '100%',
|
|
22
|
+
backgroundRepeat: 'no-repeat',
|
|
23
|
+
minHeight: `${layoutInfo.bodyMinHeightRpx}rpx`,
|
|
24
|
+
}">
|
|
20
25
|
<view
|
|
21
26
|
v-if="couponList&&couponList.length > 0"
|
|
22
|
-
:style="{
|
|
23
|
-
backgroundImage: `url(${background})`,
|
|
24
|
-
backgroundSize: '100%',
|
|
25
|
-
backgroundRepeat: 'no-repeat',
|
|
26
|
-
height: `${layoutInfo.bodyMinHeightRpx}rpx`,
|
|
27
|
-
}"
|
|
28
27
|
>
|
|
29
28
|
<view class="jfb-base-con-list__body-content">
|
|
30
29
|
<view class="jfb-base-con-list__body-content-header">
|
|
@@ -41,7 +40,7 @@
|
|
|
41
40
|
<xd-font-icon size="20" icon="iconxiangyou_xian"></xd-font-icon>
|
|
42
41
|
</view>
|
|
43
42
|
</view>
|
|
44
|
-
<view class="jfb-base-con-list__body-content-list">
|
|
43
|
+
<view v-if="can_take === 'Y' && has_times === 'Y'" class="jfb-base-con-list__body-content-list">
|
|
45
44
|
<view v-for="(item, index) in couponList" :key="index">
|
|
46
45
|
<view
|
|
47
46
|
class="jfb-base-con-list__body-content-list-item"
|
|
@@ -106,24 +105,27 @@
|
|
|
106
105
|
<view></view>
|
|
107
106
|
|
|
108
107
|
<xd-button
|
|
109
|
-
v-if="item.can_take_num !== 'Y'"
|
|
110
108
|
size="small"
|
|
111
|
-
:disabled="item.remain_card_count == 0"
|
|
109
|
+
:disabled="item.can_take_num !=='Y' && item.remain_card_count == 0"
|
|
112
110
|
@click="getCoupont(item)"
|
|
113
111
|
type="primary"
|
|
112
|
+
style="width: 170rpx;height: 60rpx;"
|
|
114
113
|
:style="item.btn"
|
|
115
114
|
:color="item.infoColor"
|
|
116
|
-
|
|
117
|
-
>
|
|
115
|
+
>{{ item.btn_txt }}</xd-button>
|
|
118
116
|
</view>
|
|
119
117
|
</view>
|
|
120
118
|
</view>
|
|
121
119
|
</view>
|
|
122
120
|
</view>
|
|
123
|
-
<view class="jfb-base-con-list__body-content-
|
|
124
|
-
|
|
125
|
-
>
|
|
121
|
+
<view v-else class="jfb-base-con-list__body-content-list" style="padding-bottom: 60rpx;">
|
|
122
|
+
<image mode="widthFix" :src="used_up_url"></image>
|
|
123
|
+
</view>
|
|
126
124
|
</view>
|
|
125
|
+
<view class="jfb-base-con-list__body-content-foot"
|
|
126
|
+
@click="toCoupon"
|
|
127
|
+
>查看已领票券</view
|
|
128
|
+
>
|
|
127
129
|
</view>
|
|
128
130
|
<view
|
|
129
131
|
v-else
|
|
@@ -180,6 +182,9 @@ export default {
|
|
|
180
182
|
activity_id: "",
|
|
181
183
|
background: "",
|
|
182
184
|
app_coupon_url: "",
|
|
185
|
+
used_up_url: "",
|
|
186
|
+
can_take: "",
|
|
187
|
+
has_times: "",
|
|
183
188
|
method: "entry",
|
|
184
189
|
maxTime: 5, //最长轮询2的N次方(秒)
|
|
185
190
|
date: 2, //时间底数
|
|
@@ -188,6 +193,9 @@ export default {
|
|
|
188
193
|
order_num: null,
|
|
189
194
|
done: false,
|
|
190
195
|
message: "",
|
|
196
|
+
options: {},
|
|
197
|
+
|
|
198
|
+
collectedPath: "",
|
|
191
199
|
};
|
|
192
200
|
},
|
|
193
201
|
computed: {
|
|
@@ -213,11 +221,13 @@ export default {
|
|
|
213
221
|
init(value) {
|
|
214
222
|
this.contentBackground = '#FFF8F8';
|
|
215
223
|
this.iconColor = '#FF4D4A';
|
|
224
|
+
this.collectedPath = getContainerPropsValue(value, "content.collectedPath", {value: ''}).value;
|
|
216
225
|
},
|
|
217
226
|
getList() {
|
|
218
227
|
jfbRootExec("getCouponList", {
|
|
219
228
|
vm: this,
|
|
220
229
|
data: {
|
|
230
|
+
...this.options,
|
|
221
231
|
distribution_method: this.method,
|
|
222
232
|
namespace: this.pageBusinessCode,
|
|
223
233
|
activity_id: this.activity_id,
|
|
@@ -225,16 +235,22 @@ export default {
|
|
|
225
235
|
})
|
|
226
236
|
.then((res) => {
|
|
227
237
|
this.background = getServiceUrl(res.background);
|
|
238
|
+
this.used_up_url = res.used_up_url && getServiceUrl(res.used_up_url);
|
|
239
|
+
this.can_take = res.can_take;
|
|
240
|
+
this.has_times = res.has_times;
|
|
241
|
+
|
|
228
242
|
this.couponList =
|
|
229
243
|
res.list &&
|
|
230
244
|
res.list.length > 0 &&
|
|
231
245
|
res.list.map((item) => {
|
|
246
|
+
let mapArr = {"Y": "去查看", "P": "领取", "N": "已发完"}
|
|
247
|
+
item.btn_txt = mapArr[item.can_take_num];
|
|
232
248
|
if (item.can_take_num === "Y" || item.can_take_num === "P") {
|
|
233
249
|
//按钮样式
|
|
234
250
|
item.btn = res.app_coupon_button_bg_url
|
|
235
251
|
? {
|
|
236
252
|
backgroundImage: `url(${getServiceUrl(
|
|
237
|
-
res.app_coupon_button_bg_url
|
|
253
|
+
item.can_take_num === "Y" ? res.app_coupon_button_see_url : res.app_coupon_button_bg_url
|
|
238
254
|
)})`,
|
|
239
255
|
backgroundSize: "100%",
|
|
240
256
|
backgroundRepeat: "no-repeat",
|
|
@@ -288,11 +304,21 @@ export default {
|
|
|
288
304
|
console.log(err, "err");
|
|
289
305
|
});
|
|
290
306
|
},
|
|
307
|
+
toCoupon(){
|
|
308
|
+
this.$xdUniHelper.navigateTo({
|
|
309
|
+
url: this.collectedPath,
|
|
310
|
+
});
|
|
311
|
+
},
|
|
291
312
|
getCoupont(item) {
|
|
313
|
+
if(item.can_take_num === "Y") {
|
|
314
|
+
this.toCoupon();
|
|
315
|
+
return;
|
|
316
|
+
}
|
|
292
317
|
this.$xdShowLoading({});
|
|
293
318
|
jfbRootExec("getAllCoupon", {
|
|
294
319
|
vm: this,
|
|
295
320
|
data: {
|
|
321
|
+
...this.options,
|
|
296
322
|
distribution_method: this.method,
|
|
297
323
|
namespace: this.pageBusinessCode,
|
|
298
324
|
activity_id: this.activity_id,
|
|
@@ -324,11 +350,13 @@ export default {
|
|
|
324
350
|
jfbRootExec("getCouponResult", {
|
|
325
351
|
vm: this,
|
|
326
352
|
data: {
|
|
353
|
+
...this.options,
|
|
327
354
|
tmp_order_number: this.order_num,
|
|
328
355
|
},
|
|
329
356
|
})
|
|
330
357
|
.then((res) => {
|
|
331
358
|
if (res.status_type === "success") {
|
|
359
|
+
this.order_num = null;
|
|
332
360
|
this.$xdHideLoading();
|
|
333
361
|
this.$xdAlert({
|
|
334
362
|
content: "领取成功",
|
|
@@ -398,6 +426,7 @@ export default {
|
|
|
398
426
|
// },
|
|
399
427
|
onJfbLoad(options) {
|
|
400
428
|
console.log(this.pageBusinessCode, "pageNamespace");
|
|
429
|
+
this.options = options;
|
|
401
430
|
this.activity_id = options.activity_id;
|
|
402
431
|
this.method = options.distribution_method
|
|
403
432
|
? options.distribution_method
|
|
@@ -438,6 +467,9 @@ export default {
|
|
|
438
467
|
&__body {
|
|
439
468
|
position: relative;
|
|
440
469
|
overflow-y: auto;
|
|
470
|
+
padding-top: 220rpx;
|
|
471
|
+
box-sizing: border-box;
|
|
472
|
+
background-color: #FAFAFA;
|
|
441
473
|
.empty_data {
|
|
442
474
|
text-align: center;
|
|
443
475
|
color: #999999;
|
|
@@ -455,8 +487,6 @@ export default {
|
|
|
455
487
|
border-radius: unit(20, rpx);
|
|
456
488
|
background: #fff;
|
|
457
489
|
padding: unit(34, rpx);
|
|
458
|
-
position: relative;
|
|
459
|
-
top: unit(164, rpx);
|
|
460
490
|
margin-right: auto;
|
|
461
491
|
margin-left: auto;
|
|
462
492
|
width: unit(650, rpx);
|
|
@@ -534,7 +564,7 @@ export default {
|
|
|
534
564
|
color: #a6a6a6;
|
|
535
565
|
font-size: unit(24, rpx);
|
|
536
566
|
text-align: center;
|
|
537
|
-
margin
|
|
567
|
+
margin: unit(40, rpx) 0;
|
|
538
568
|
}
|
|
539
569
|
}
|
|
540
570
|
}
|
|
@@ -1,11 +1,25 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
module.exports = {
|
|
4
|
-
getCouponList: {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
getCouponList: {
|
|
5
|
+
"list":[
|
|
6
|
+
{"prize_id":153,"prize_name":"满50减50","prize_type":"满减券","prize_num":1,"can_take":"Y","is_over":"N","can_take_num":"P","today_times":1,"today_num":0,"total_times":1,"total_num":0,"remain_card_count":55},
|
|
7
|
+
{"prize_id":153,"prize_name":"满50减50","prize_type":"满减券","prize_num":1,"can_take":"Y","is_over":"N","can_take_num":"P","today_times":1,"today_num":0,"total_times":1,"total_num":0,"remain_card_count":55},
|
|
8
|
+
{"prize_id":153,"prize_name":"满50减50","prize_type":"满减券","prize_num":1,"can_take":"Y","is_over":"N","can_take_num":"P","today_times":1,"today_num":0,"total_times":1,"total_num":0,"remain_card_count":55}
|
|
9
|
+
],
|
|
10
|
+
"background":"//sandbox-img.jufubao.cn/uploads/20231204/96b801e0dc27422c183dc90d905dd2ed.jpg",
|
|
11
|
+
"used_up_url": "",
|
|
12
|
+
"has_times": "Y",
|
|
13
|
+
"can_take":"Y",
|
|
14
|
+
"message":"",
|
|
15
|
+
"app_coupon_url":"//sandbox-img.jufubao.cn/uploads/20231205/fee9b644b83495c9ba8a4db277600b54.jpg",
|
|
16
|
+
"app_activity_button":"//sandbox-img.jufubao.cn/uploads/20231207/35f3065b2b2bc3fc2dda73d7b5b9eae8.jpg",
|
|
17
|
+
"app_coupon_button_bg_url":"//sandbox-img.jufubao.cn/uploads/20231212/026a3ea901f87f51b531d06c24604676.png",
|
|
18
|
+
"app_coupon_button_see_url": "//sandbox-img.jufubao.cn/uploads/20231212/026a3ea901f87f51b531d06c24604676.png",
|
|
19
|
+
"app_coupon_invalid_url":"//sandbox-img.jufubao.cn/uploads/20231208/8b153ce4870686a37295c16fbc992235.jpg",
|
|
20
|
+
"rule":"<p>打发·</p>",
|
|
21
|
+
"request_id":"a2603f2a480485f4"
|
|
22
|
+
},
|
|
9
23
|
getAllCoupon: {
|
|
10
24
|
"request_id": "5987aa28c709d4ef"
|
|
11
25
|
}
|
|
@@ -23,9 +23,10 @@ module.exports = [
|
|
|
23
23
|
disabled: true,
|
|
24
24
|
},
|
|
25
25
|
{
|
|
26
|
-
mapFnName: '
|
|
26
|
+
mapFnName: 'getBaseOrderStatus', //自定义方法名字(必选)
|
|
27
27
|
title: '获取订单详情',
|
|
28
|
-
path: '/order/v1/order/detail',
|
|
28
|
+
// path: '/order/v1/order/detail',
|
|
29
|
+
path: "/order/v1/order/pay-status",
|
|
29
30
|
isRule: false,
|
|
30
31
|
params: {
|
|
31
32
|
main_order_id: ['id', 'Number', '必选'],
|
|
@@ -297,23 +297,29 @@ export default {
|
|
|
297
297
|
return time;
|
|
298
298
|
},
|
|
299
299
|
p_getBaseOrderDetail(){
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
300
|
+
return new Promise((resolve, reject) => {
|
|
301
|
+
jfbRootExec("getBaseOrderStatus", {
|
|
302
|
+
vm: this,
|
|
303
|
+
data: {
|
|
304
|
+
main_order_id: this.main_order_id,
|
|
305
|
+
}
|
|
306
|
+
}).then(res => {
|
|
307
|
+
let { is_can_pay, can_pay_message } = res.can_pay_info
|
|
308
|
+
this.is_can_pay = is_can_pay;
|
|
309
|
+
this.can_pay_message = can_pay_message;
|
|
310
|
+
if(is_can_pay !== "Y"){
|
|
311
|
+
uni.showToast({
|
|
312
|
+
title: can_pay_message,
|
|
313
|
+
icon: 'none',
|
|
314
|
+
duration: 3000
|
|
315
|
+
});
|
|
316
|
+
reject();
|
|
317
|
+
// this.$xdNavigateBack()
|
|
318
|
+
}
|
|
319
|
+
resolve();
|
|
320
|
+
}).catch(err => {
|
|
321
|
+
reject();
|
|
322
|
+
})
|
|
317
323
|
})
|
|
318
324
|
},
|
|
319
325
|
p_getPayOrderDetail() {
|
|
@@ -358,8 +364,12 @@ export default {
|
|
|
358
364
|
});
|
|
359
365
|
},
|
|
360
366
|
//第三方支付
|
|
361
|
-
doThirdPay() {
|
|
367
|
+
async doThirdPay() {
|
|
362
368
|
if (this.$configProject.isPreview) return;
|
|
369
|
+
|
|
370
|
+
if(this.type !== 'recharge') {
|
|
371
|
+
await this.p_getBaseOrderDetail();
|
|
372
|
+
}
|
|
363
373
|
const {channel_provider_id, order_id, payInfo} = this;
|
|
364
374
|
let {login_providers = []} = this.projectAttr;
|
|
365
375
|
console.log(this.projectAttr)
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @description API模型
|
|
5
|
+
* 建议:Ffff=>模块 Xxxx=>自定义名字
|
|
6
|
+
* 获取单记录(getByIdFfffXxxx)
|
|
7
|
+
* 获取列表记录(getByListFfffXxxx)
|
|
8
|
+
* 添加列表记录(addFfffXxxxx)
|
|
9
|
+
* 删除列表记录(removeFfffXxxxx|deleteFfffXxxx)
|
|
10
|
+
* 更新列表记录(updateFfffXxxxx)
|
|
11
|
+
* @type {*[]}
|
|
12
|
+
*/
|
|
13
|
+
module.exports = [
|
|
14
|
+
{
|
|
15
|
+
mapFnName: 'getByIdFilmSquate', //自定义方法名字(必选)
|
|
16
|
+
title: '获取电影广场列表',
|
|
17
|
+
path: '/api/account/film/list-film-square',
|
|
18
|
+
isRule: false,
|
|
19
|
+
params: {
|
|
20
|
+
last_key: ['当前页', 'Number', '必选'],
|
|
21
|
+
page_size: ['每页数量', 'Number', '必选'],
|
|
22
|
+
},
|
|
23
|
+
isConsole: true,
|
|
24
|
+
disabled: true,
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
mapFnName: 'updateFilmPaiqiDate', //自定义方法名字(必选)
|
|
28
|
+
title: '更新排期',
|
|
29
|
+
path: '/api/account/film/paiqi-date',
|
|
30
|
+
isRule: false,
|
|
31
|
+
params: {
|
|
32
|
+
film_id: ['电影id', 'Number', '必选'],
|
|
33
|
+
cinema_id: ['影院id', 'Number', '必选'],
|
|
34
|
+
},
|
|
35
|
+
isConsole: true,
|
|
36
|
+
disabled: true,
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
mapFnName: 'removeFilmAddress', //自定义方法名字(必选)
|
|
40
|
+
title: '删除我的配送地址',
|
|
41
|
+
path: '/api/account/film/paiqi-date',
|
|
42
|
+
isRule: false,
|
|
43
|
+
params: {
|
|
44
|
+
film_id: ['电影id', 'Number', '必选'],
|
|
45
|
+
},
|
|
46
|
+
isConsole: true,
|
|
47
|
+
disabled: true,
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
mapFnName: 'addFilmcart', //自定义方法名字(必选)
|
|
51
|
+
title: '添加购物车',
|
|
52
|
+
path: '/api/account/film/paiqi-date',
|
|
53
|
+
isRule: false,
|
|
54
|
+
params: {
|
|
55
|
+
film_id: ['电影id', 'Number', '必选'],
|
|
56
|
+
},
|
|
57
|
+
isConsole: true,
|
|
58
|
+
disabled: true,
|
|
59
|
+
},
|
|
60
|
+
];
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* @description 当表单组件中有联动操作时候,使用方法进行返回
|
|
5
|
+
*/
|
|
6
|
+
export default {
|
|
7
|
+
style: [],
|
|
8
|
+
content: (data) => {
|
|
9
|
+
return [
|
|
10
|
+
{
|
|
11
|
+
label: '背景颜色:', //label
|
|
12
|
+
ele: 'xd-color', //package 名称
|
|
13
|
+
valueKey: 'bgcolor', //form[valueKey]
|
|
14
|
+
value: data.bgcolor || '', //v-model
|
|
15
|
+
placeholder: '请输入占位框背景颜色',
|
|
16
|
+
classNmae: 'input80', //样式名称 //input100,input80,input70,input60,input50,input40,input30,input20,
|
|
17
|
+
rules: [
|
|
18
|
+
{
|
|
19
|
+
required: true,
|
|
20
|
+
message: '请输入占位框背景颜色',
|
|
21
|
+
trigger: 'blur'
|
|
22
|
+
},
|
|
23
|
+
]
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
label: '选中路径:', //label
|
|
27
|
+
ele: 'xd-select-pages-path', //package 名称
|
|
28
|
+
valueKey: 'select-pages-path', //form[valueKey]
|
|
29
|
+
value: data['select-pages-path'] || {},
|
|
30
|
+
setting: {
|
|
31
|
+
router: XdBus.getParentApi('getPagesTree')
|
|
32
|
+
},
|
|
33
|
+
inline: false,
|
|
34
|
+
},
|
|
35
|
+
data.bgcolor && {
|
|
36
|
+
label: '高度:', //label
|
|
37
|
+
ele: 'el-input', //package 名称
|
|
38
|
+
type: 'number',
|
|
39
|
+
valueKey: 'height', //form[valueKey]
|
|
40
|
+
value: data.height || 100, //v-model
|
|
41
|
+
placeholder: '请输入占位框高度,单位像素,默认:10px',
|
|
42
|
+
className: 'input80', //样式名称 //input100,input80,input70,input60,input50,input40,input30,input20,
|
|
43
|
+
rules: [
|
|
44
|
+
{
|
|
45
|
+
required: true,
|
|
46
|
+
message: '请输入占位框高度',
|
|
47
|
+
trigger: 'blur'
|
|
48
|
+
},
|
|
49
|
+
]
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
label: '', //label
|
|
53
|
+
ele: 'slot', //package 名称
|
|
54
|
+
slot: 'is_reference',
|
|
55
|
+
},
|
|
56
|
+
].filter(i=>i)
|
|
57
|
+
},
|
|
58
|
+
advanced: [
|
|
59
|
+
{
|
|
60
|
+
label: '背景颜色:', //label
|
|
61
|
+
ele: 'xd-color', //package 名称
|
|
62
|
+
valueKey: 'bgcolor', //form[valueKey]
|
|
63
|
+
value: '', //v-model
|
|
64
|
+
placeholder: '请输入占位框背景颜色',
|
|
65
|
+
classNmae: 'input80', //样式名称 //input100,input80,input70,input60,input50,input40,input30,input20,
|
|
66
|
+
rules: [
|
|
67
|
+
{
|
|
68
|
+
required: true,
|
|
69
|
+
message: '请输入占位框背景颜色',
|
|
70
|
+
trigger: 'blur'
|
|
71
|
+
},
|
|
72
|
+
]
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
label: '选中路径:', //label
|
|
76
|
+
ele: 'xd-select-pages-path', //package 名称
|
|
77
|
+
valueKey: 'select-pages-path', //form[valueKey]
|
|
78
|
+
value: null,
|
|
79
|
+
setting: {
|
|
80
|
+
router: XdBus.getParentApi('getPagesTree')
|
|
81
|
+
},
|
|
82
|
+
inline: false,
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
label: '高度:', //label
|
|
86
|
+
ele: 'el-input', //package 名称
|
|
87
|
+
type: 'number',
|
|
88
|
+
valueKey: 'height', //form[valueKey]
|
|
89
|
+
value: null, //v-model
|
|
90
|
+
placeholder: '请输入占位框高度,单位像素,默认:10px',
|
|
91
|
+
classNmae: 'input80', //样式名称 //input100,input80,input70,input60,input50,input40,input30,input20,
|
|
92
|
+
rules: [
|
|
93
|
+
{
|
|
94
|
+
required: true,
|
|
95
|
+
message: '请输入占位框高度',
|
|
96
|
+
trigger: 'blur'
|
|
97
|
+
},
|
|
98
|
+
]
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
label: '', //label
|
|
102
|
+
ele: 'slot', //package 名称
|
|
103
|
+
slot: 'is_reference',
|
|
104
|
+
},
|
|
105
|
+
],
|
|
106
|
+
};
|