暂存代码
This commit is contained in:
+20
-3
@@ -10,8 +10,8 @@ const _sfc_main = {
|
||||
data() {
|
||||
return {
|
||||
swiperList: [
|
||||
"/static/home/banner01.png",
|
||||
"/static/home/banner04.png"
|
||||
// '/static/home/banner01.png',
|
||||
// '/static/home/banner04.png',
|
||||
],
|
||||
currentNum: 0,
|
||||
sortList: [],
|
||||
@@ -81,6 +81,7 @@ const _sfc_main = {
|
||||
this.getSortList();
|
||||
this.querySearchList(utils_enumUtils.SEARCH_TYPE.SOMETHING);
|
||||
this.querySearchList(utils_enumUtils.SEARCH_TYPE.EXPLOSIVE);
|
||||
this.getCarouselImage();
|
||||
},
|
||||
mounted() {
|
||||
},
|
||||
@@ -148,6 +149,22 @@ const _sfc_main = {
|
||||
plus.runtime.openURL(updateApkObj.downloadUrl);
|
||||
}
|
||||
},
|
||||
// 查询轮播图
|
||||
async getCarouselImage() {
|
||||
const params = {
|
||||
pageUi: utils_enumUtils.APP_PAGE_TYPE.HOME
|
||||
};
|
||||
const resp = await api_common.getCarouselImage(params);
|
||||
if (resp && resp.bizcode === 100) {
|
||||
const data = resp.data || [];
|
||||
this.swiperList = data.length !== 0 ? data.map((obj) => obj.carouselImage) : [];
|
||||
}
|
||||
},
|
||||
jumpIntegral() {
|
||||
common_vendor.index.navigateTo({
|
||||
url: "/pages/pointsRedemption/pointsRedemption"
|
||||
});
|
||||
},
|
||||
jumpTurntable() {
|
||||
common_vendor.index.navigateTo({
|
||||
url: "/pages/turntable/turntable?backPath=home"
|
||||
@@ -340,7 +357,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
height: "46",
|
||||
bgColor: "#f1f6ff00"
|
||||
}),
|
||||
w: common_vendor.o((...args) => $options.jumpPrdference && $options.jumpPrdference(...args)),
|
||||
w: common_vendor.o((...args) => $options.jumpIntegral && $options.jumpIntegral(...args)),
|
||||
x: common_vendor.p({
|
||||
src: "/static/home/min_card_hbcj.png",
|
||||
width: "60",
|
||||
|
||||
Reference in New Issue
Block a user