jufubao-base 1.0.209-beta5 → 1.0.209-beta6
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
|
@@ -104,7 +104,8 @@ export default {
|
|
|
104
104
|
/**
|
|
105
105
|
* @description 获取套餐列表
|
|
106
106
|
*/
|
|
107
|
-
getNewCardList(){
|
|
107
|
+
getNewCardList(reload = false){
|
|
108
|
+
if(reload) this.$xdShowLoading({});
|
|
108
109
|
jfbRootExec("cardRechargeList", {
|
|
109
110
|
vm: this,
|
|
110
111
|
data: {},
|
|
@@ -118,9 +119,10 @@ export default {
|
|
|
118
119
|
}
|
|
119
120
|
return item;
|
|
120
121
|
});
|
|
122
|
+
if(reload) this.$xdHideLoading();
|
|
121
123
|
})
|
|
122
124
|
.catch((error) => {
|
|
123
|
-
|
|
125
|
+
if(reload) this.$xdHideLoading();
|
|
124
126
|
});
|
|
125
127
|
},
|
|
126
128
|
|
|
@@ -134,6 +136,21 @@ export default {
|
|
|
134
136
|
})
|
|
135
137
|
.then((res) => {
|
|
136
138
|
this.$xdHideLoading();
|
|
139
|
+
|
|
140
|
+
//数据不存在做刷新列表
|
|
141
|
+
if(res.code === 'NotFound') {
|
|
142
|
+
this.$xdConfirm({
|
|
143
|
+
title:'温馨提示',
|
|
144
|
+
content: res.message || '记录不存在',
|
|
145
|
+
cancel: false,
|
|
146
|
+
confirmText: '我知道了',
|
|
147
|
+
success:(res)=>{
|
|
148
|
+
this.getNewCardList(true);
|
|
149
|
+
}
|
|
150
|
+
});
|
|
151
|
+
return
|
|
152
|
+
}
|
|
153
|
+
|
|
137
154
|
this.toLink(res.pay_order_id, res.order_id)
|
|
138
155
|
})
|
|
139
156
|
.catch((err) => {
|
|
@@ -144,25 +161,6 @@ export default {
|
|
|
144
161
|
},
|
|
145
162
|
//==套餐购买=============
|
|
146
163
|
|
|
147
|
-
getContent() {
|
|
148
|
-
jfbRootExec("getListRechargeNewsContent", {
|
|
149
|
-
vm: this,
|
|
150
|
-
data: {
|
|
151
|
-
page_id: this.pageAttr["page_id"], //页面ID
|
|
152
|
-
container_id: this.containerId, //组件ID
|
|
153
|
-
},
|
|
154
|
-
})
|
|
155
|
-
.then((res) => {
|
|
156
|
-
if(res && res.list && res.list.length > 0) {
|
|
157
|
-
this.content = res.list[0].content;
|
|
158
|
-
}
|
|
159
|
-
this.statusContent = true;
|
|
160
|
-
})
|
|
161
|
-
.catch((error) => {
|
|
162
|
-
console.error(error);
|
|
163
|
-
});
|
|
164
|
-
},
|
|
165
|
-
|
|
166
164
|
toLink(pay_order_id, order_id){
|
|
167
165
|
if(!this.payPath) {
|
|
168
166
|
this.$xdAlert({
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
module.exports = {
|
|
4
|
-
cardRecharge: {"amount":10000,"request_id":"1d4ab6e96e7fd54d"}
|
|
4
|
+
cardRecharge: {"amount":10000,"request_id":"1d4ab6e96e7fd54d"},
|
|
5
|
+
cardRechargeList: {
|
|
6
|
+
"list":[
|
|
7
|
+
{"package_id":65,"package_name":"聚福宝福利卡","package_image":"\/\/sandbox-img.jufubao.cn\/uploads\/20241202\/4802cc982695196c86b7aed865cd97cb.jpg","delay_days":1,"valid_date":"2024-12-04","card_point":14000,"card_amount":1,"card_unit":"点"},
|
|
8
|
+
{"package_id":57,"package_name":"聚福宝福利礼包卡","package_image":"\/\/sandbox-img.jufubao.cn\/uploads\/20241127\/e017b49c59e929290787883947ee08f4.jpg","delay_days":2,"valid_date":"2024-12-05","card_point":200,"card_amount":200,"card_unit":"点"},
|
|
9
|
+
{"package_id":56,"package_name":"聚福宝福利礼电影卡","package_image":"\/\/sandbox-img.jufubao.cn\/uploads\/20241127\/825db706a1706fd011df3ba5bb66319a.png","delay_days":1,"valid_date":"2024-12-04","card_point":200,"card_amount":200,"card_unit":"点"},
|
|
10
|
+
{"package_id":55,"package_name":"聚福宝福利礼中秋礼品卡","package_image":"\/\/sandbox-img.jufubao.cn\/uploads\/20241127\/4946a15dab8ec885415eb9e69d09e90f.jpg","delay_days":1,"valid_date":"2024-12-04","card_point":100,"card_amount":100,"card_unit":"点"},
|
|
11
|
+
],
|
|
12
|
+
"request_id":"059b2a0cda4142f0"}
|
|
13
|
+
|
|
5
14
|
}
|