暂存代码

This commit is contained in:
何江明
2025-05-23 18:03:45 +08:00
parent 8217069b9a
commit a2c87e47bf
313 changed files with 6157 additions and 1102 deletions
+26 -9
View File
@@ -79,11 +79,11 @@
<!-- 积分兑换,红包抽奖 -->
<view class="min_card_warp">
<!-- 积分兑换 -->
<view class="min_card_item min_card_item_jf" @click="jumpPrdference">
<view class="min_card_item min_card_item_jf" @click="jumpIntegral">
<up-image src="/static/home/min_card_jfdh.png" width="60" height="14" bgColor="#f1f6ff00" ></up-image>
<view class="min_card_item_content">
<view class="content_msg">
<view>好礼随心兑</view>
<view>好物随心兑</view>
<view style="display: flex;align-items: center;">
兑换
<view style="margin-top: 6rpx;margin-left: 4rpx;"><up-image src="/static/common/right_y.png" width="10" height="10" bgColor="#f1f6ff00"></up-image></view>
@@ -111,7 +111,7 @@
<view class="product_comm yx_warp" v-if="yxProduct && yxProduct.length!==0" @click="jumpPrdference">
<view class="product_title">
<view class="product_title_left">
<text class="product_title_z">德商汇优选</text>
<text class="product_title_z">平价专区</text>
<text class="product_title_zk">4折起 ></text>
</view>
<view class="product_title_f" style="font-weight: bold; color: #999999FF;">
@@ -182,8 +182,8 @@
<script>
import choiceness from '@/components/choiceness/choiceness.vue';
import { searchList } from '@/api/product.js';
import { getCascadeCategory,checkAppVersion } from '@/api/common.js';
import { SEARCH_TYPE } from '@/utils/enumUtils.js'
import { getCascadeCategory,checkAppVersion,getCarouselImage } from '@/api/common.js';
import { SEARCH_TYPE,APP_PAGE_TYPE } from '@/utils/enumUtils.js'
import CustomTabBar from '@/components/custom-tab-bar.vue'; // 引入自定义组件路径可能需要根据项目结构调整
import dayjs from 'dayjs';
import { comparisonVersionHandler } from '@/utils/index.js';
@@ -193,8 +193,8 @@
data() {
return {
swiperList:[
'/static/home/banner01.png',
'/static/home/banner04.png',
// '/static/home/banner01.png',
// '/static/home/banner04.png',
],
currentNum:0,
sortList:[],
@@ -260,16 +260,16 @@
const time2 = dayjs();
const diff = time2.diff(time1);
if(!versionUpdateTime || diff > 5 * 60 * 1000){
console.log("进来了...");
this.platformType = appUpdate == 'android' ? 'ANDROID' : 'IOS';
this.checkUpdate(); // 判断是否需要更新
}else{
console.log("没有大于");
console.log("不需要更新...");
}
// #endif
this.getSortList();
this.querySearchList(SEARCH_TYPE.SOMETHING);// 好物专区
this.querySearchList(SEARCH_TYPE.EXPLOSIVE);// 爆单专区
this.getCarouselImage();
},
mounted() {
},
@@ -366,6 +366,23 @@
plus.runtime.openURL(updateApkObj.downloadUrl);
}
},
// 查询轮播图
async getCarouselImage(){
const params={
pageUi:APP_PAGE_TYPE.HOME,
}
const resp = await getCarouselImage(params);
if(resp && resp.bizcode === 100){
const data = resp.data || [];
this.swiperList = data.length !== 0 ? data.map(obj=>obj.carouselImage) : [];
}
},
jumpIntegral(){
uni.navigateTo({
url:'/pages/pointsRedemption/pointsRedemption',
})
},
jumpTurntable(){
uni.navigateTo({
url:'/pages/turntable/turntable?backPath=home',