jufubao-gift 1.0.37 → 1.0.38-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
CHANGED
|
@@ -43,6 +43,7 @@ export default {
|
|
|
43
43
|
],
|
|
44
44
|
inline: false,
|
|
45
45
|
groupKey: "content",
|
|
46
|
+
notice: "<div style='padding-left: 120px;'>按归类时,卡必须配置归类</div>"
|
|
46
47
|
},
|
|
47
48
|
data.tabType === 'pool' &&{
|
|
48
49
|
label: "是否展示池名称",
|
|
@@ -56,6 +57,18 @@ export default {
|
|
|
56
57
|
inline: false,
|
|
57
58
|
groupKey: "content",
|
|
58
59
|
},
|
|
60
|
+
data.colNum === 1 && {
|
|
61
|
+
label: "是否展示立即兑换",
|
|
62
|
+
ele: "xd-radio",
|
|
63
|
+
valueKey: "showExchange",
|
|
64
|
+
value: data.showExchange || "Y",
|
|
65
|
+
list: [
|
|
66
|
+
{ label: "展示", value: "Y" },
|
|
67
|
+
{ label: "隐藏", value: "N" },
|
|
68
|
+
],
|
|
69
|
+
inline: false,
|
|
70
|
+
groupKey: "content",
|
|
71
|
+
},
|
|
59
72
|
{
|
|
60
73
|
label: "列表样式配置",
|
|
61
74
|
ele: "title",
|
|
@@ -190,6 +203,17 @@ export default {
|
|
|
190
203
|
inline: false,
|
|
191
204
|
groupKey: "advanced",
|
|
192
205
|
},
|
|
206
|
+
{
|
|
207
|
+
label: "收银台路径",
|
|
208
|
+
ele: 'xd-select-pages-path', //package 名称
|
|
209
|
+
valueKey: 'exchangePath', //form[valueKey]
|
|
210
|
+
value: data['exchangePath'] || {},
|
|
211
|
+
setting: {
|
|
212
|
+
router: XdBus.getParentApi('getPagesTree')
|
|
213
|
+
},
|
|
214
|
+
inline: false,
|
|
215
|
+
groupKey: "advanced",
|
|
216
|
+
},
|
|
193
217
|
].filter(i=>i)
|
|
194
218
|
},
|
|
195
219
|
advanced: [],
|
|
@@ -46,13 +46,16 @@
|
|
|
46
46
|
<image :src="item.thumb" mode="aspectFill"/>
|
|
47
47
|
</view>
|
|
48
48
|
<view class="item_cont">
|
|
49
|
-
<view class="
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
49
|
+
<view class="gift_name" :style="{
|
|
50
|
+
color: listTextColor,
|
|
51
|
+
}">{{item.gift_name}}</view>
|
|
52
|
+
<view class="gift_btm">
|
|
53
|
+
<view v-if="showPrice === 'Y'" class="gift_price">
|
|
54
|
+
<xd-unit :price="item.market_price" :isOld="false"></xd-unit>
|
|
55
|
+
</view>
|
|
56
|
+
<view v-if="showExchange === 'Y'">
|
|
57
|
+
<xd-button type="primary" size="mini" @click="toExchange(item)">立即兑换</xd-button>
|
|
58
|
+
</view>
|
|
56
59
|
</view>
|
|
57
60
|
</view>
|
|
58
61
|
</view>
|
|
@@ -65,6 +68,7 @@
|
|
|
65
68
|
import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
|
|
66
69
|
import XdTab from "@/components/XdTab/XdTab";
|
|
67
70
|
import XdUnit from "@/components/XdUnit/XdUnit";
|
|
71
|
+
import XdButton from "@/components/XdButton/XdButton"
|
|
68
72
|
import { jfbRootExec } from "@/utils/xd.event";
|
|
69
73
|
import JfbGiftListNewMixin from "./JfbGiftListNewMixin";
|
|
70
74
|
import { getContainerPropsValue, gCPVal } from "@/utils/xd.base";
|
|
@@ -77,15 +81,18 @@
|
|
|
77
81
|
XdFontIcon,
|
|
78
82
|
XdTab,
|
|
79
83
|
XdUnit,
|
|
84
|
+
XdButton
|
|
80
85
|
},
|
|
81
86
|
mixins: [
|
|
82
87
|
componentsMixins, extsMixins, JfbGiftListNewMixin
|
|
83
88
|
],
|
|
84
89
|
data() {
|
|
85
90
|
return {
|
|
91
|
+
closeMask: true,
|
|
86
92
|
poolList: [],
|
|
87
93
|
poolActiveIndex: 0,
|
|
88
94
|
mode: "",
|
|
95
|
+
scene: "market",
|
|
89
96
|
|
|
90
97
|
giftList: [],
|
|
91
98
|
|
|
@@ -99,6 +106,8 @@
|
|
|
99
106
|
showPrice: "Y", //是否显示价格
|
|
100
107
|
showPoolName: "Y", //是否显示礼包池名字
|
|
101
108
|
detailPath: "", //详情页路径
|
|
109
|
+
showExchange: "", //是否展示立即兑换
|
|
110
|
+
exchangePath: "",
|
|
102
111
|
|
|
103
112
|
//style
|
|
104
113
|
listBgColor: "", //列表背景色
|
|
@@ -161,6 +170,8 @@
|
|
|
161
170
|
this.tabType = gCPVal(container, 'tabType', "pool")
|
|
162
171
|
this.showPrice = getContainerPropsValue(container, 'content.showPrice', "Y");
|
|
163
172
|
this.showPoolName = getContainerPropsValue(container, 'content.showPoolName', "Y");
|
|
173
|
+
this.showExchange = getContainerPropsValue(container, 'content.showExchange', "");
|
|
174
|
+
this.exchangePath = getContainerPropsValue(container, 'content.exchangePath', {value: ""}).value;
|
|
164
175
|
this.detailPath = getContainerPropsValue(container, 'content.detailPath', {value: ""}).value;
|
|
165
176
|
this.radius = getContainerPropsValue(container, "content.radius", '0');
|
|
166
177
|
this.is_border = getContainerPropsValue(container, "content.is_border", 'N');
|
|
@@ -185,8 +196,9 @@
|
|
|
185
196
|
}
|
|
186
197
|
},
|
|
187
198
|
handleGiftClick(item){
|
|
199
|
+
if(this.$configProject['isPreview']) return;
|
|
188
200
|
let curPool = this.poolList[this.poolActiveIndex];
|
|
189
|
-
let toPath = `${this.detailPath}?gift_id=${item.gift_id}&mode=${this.mode}&scene
|
|
201
|
+
let toPath = `${this.detailPath}?gift_id=${item.gift_id}&mode=${this.mode}&scene=${this.scene}`
|
|
190
202
|
if(curPool && curPool.value){
|
|
191
203
|
toPath += `&gift_pool_id=${curPool.value}`;
|
|
192
204
|
}
|
|
@@ -202,7 +214,7 @@
|
|
|
202
214
|
page_size: 20,
|
|
203
215
|
is_show_price: this.showPrice,
|
|
204
216
|
show: this.tabType,
|
|
205
|
-
scene:
|
|
217
|
+
scene: this.scene,
|
|
206
218
|
}
|
|
207
219
|
}).then(res => {
|
|
208
220
|
if(this.$configProject['isPreview']){
|
|
@@ -221,7 +233,7 @@
|
|
|
221
233
|
let curPool = this.poolList[this.poolActiveIndex];
|
|
222
234
|
let data = {
|
|
223
235
|
mode: this.mode,
|
|
224
|
-
scene:
|
|
236
|
+
scene: this.scene,
|
|
225
237
|
is_show_price: this.showPrice,
|
|
226
238
|
show: this.tabType,
|
|
227
239
|
page_size,
|
|
@@ -252,6 +264,12 @@
|
|
|
252
264
|
this.hasNext = res.next_page_token ? true : false;
|
|
253
265
|
})
|
|
254
266
|
},
|
|
267
|
+
toExchange(item){
|
|
268
|
+
let mode = this.mode === 1 ? "first" : "second";
|
|
269
|
+
this.$xdUniHelper.redirectTo({
|
|
270
|
+
url: `${this.exchangePath}?mode=${mode}&gift_partner=${JSON.stringify([item.gift_id])}&scene=${this.scene}`
|
|
271
|
+
})
|
|
272
|
+
},
|
|
255
273
|
handleTab(item,index, name){
|
|
256
274
|
console.log("handleTab")
|
|
257
275
|
console.log(item,index, name);
|
|
@@ -335,6 +353,11 @@
|
|
|
335
353
|
-webkit-box-orient: vertical;
|
|
336
354
|
word-break: break-all;
|
|
337
355
|
}
|
|
356
|
+
.gift_btm{
|
|
357
|
+
display: flex;
|
|
358
|
+
align-items: center;
|
|
359
|
+
justify-content: space-between;
|
|
360
|
+
}
|
|
338
361
|
}
|
|
339
362
|
&.col_1{
|
|
340
363
|
width: 100%;
|