Files
frontend-app/pages/home/home.vue
T

889 lines
24 KiB
Vue
Raw Normal View History

2025-08-05 15:25:23 +08:00
<template>
<view class="home_warp">
<!-- 带背景的头部 -->
<view class="home_header_warp"></view>
<view class="home_content_z_warp">
<view class="header_title_warp">
<!-- <up-image src="/static/home/logo.png" width="86" height="30" bgColor="#f1f6ff00"></up-image> -->
<!-- <view class="header_right_warp"> -->
2025-08-06 20:25:41 +08:00
<view class="language_warp" style="width: 100%;justify-content: flex-start;" @click="jumpSearch">
<view style="margin-top: 10rpx;">
<up-image src="/static/home/search_b.png" width="20" height="20" bgColor="#f1f6ff00"></up-image>
2025-08-05 15:25:23 +08:00
</view>
2025-08-06 20:25:41 +08:00
<text class="search_msg_warp">搜索</text>
</view>
<!-- <view class="language_warp" @click="languageShow = true">
2025-08-05 15:25:23 +08:00
<text>CN</text>
<up-image src="/static/common/down.png" width="10" height="10" bgColor="#f1f6ff00"></up-image>
</view> -->
<!-- </view> -->
</view>
<!-- banner图 -->
<!-- <view style="padding: 0 30rpx;">
<up-swiper
:list="swiperList"
height="120"
radius="10"
@change="e => currentNum = e.current"
bgColor="#ffffff00"
>
<template #indicator>
<view
class="indicator-num"
>
<text class="indicator-num__text">{{ currentNum + 1 }}/{{ swiperList.length }}</text>
</view>
</template>
2025-08-06 20:25:41 +08:00
</up-swiper>
</view> -->
2025-08-05 15:25:23 +08:00
<!-- logo分类 -->
<view class="logo_banner">
<view style="padding: 20rpx 0 0 20rpx;">
<up-image src="/static/home/logo_banner.png" width="108" height="16" bgColor="#f1f6ff00"></up-image>
<view class="logo_banner_title">TB聚合商城</view>
<view class="logo_banner_msg">MALL+RWA+DAO的共创共享全球产业生态</view>
</view>
2025-08-06 21:26:18 +08:00
<up-image src="https://cex-pub.s3.ap-southeast-1.amazonaws.com/static/logo_banner2.png" width="140" height="98"
bgColor="#f1f6ff00"></up-image>
2025-08-05 15:25:23 +08:00
</view>
<!-- 分类 -->
<view class="home_sort_warp">
2025-08-16 22:03:57 +08:00
<view class="sort_comm_warp" v-if="sortList && sortList.length !== 0 && isBlockedDate">
2025-08-05 15:25:23 +08:00
<view v-for="item in sortList" :key="item.id" class="sort_item_comm" @click="jumpSort(item)">
<up-image :src="item.icon" width="40" height="32" bgColor="#f1f6ff00"></up-image>
2025-08-06 20:25:41 +08:00
<view class="sort_item_title_comm">{{ item.name }}</view>
2025-08-05 15:25:23 +08:00
</view>
</view>
<view v-else class="not_order_warp">
2025-08-06 20:47:28 +08:00
<up-image src="https://cex-pub.s3.ap-southeast-1.amazonaws.com/static/not_order.png" width="80" height="80"
bgColor="#f1f6ff00"></up-image>
2025-08-05 15:25:23 +08:00
<view class="not_order_msg_warp">暂无分类</view>
</view>
</view>
<!-- 带灰色背景的内容 -->
<view class="home_content_warp">
2025-08-06 20:25:41 +08:00
2025-08-05 15:25:23 +08:00
<!-- 爆款专区-->
2025-08-06 20:25:41 +08:00
<view class="product_comm hx_warp" v-if="faddishProduct && faddishProduct.length !== 0">
2025-08-05 15:25:23 +08:00
<view class="product_title">
<view class="product_title_left">
<text class="product_title_yp">信任桥优品</text>
2025-08-06 20:25:41 +08:00
<up-image src="/static/home/youxuan.png" width="10" height="10" bgColor="#f1f6ff00"></up-image>
2025-08-05 15:25:23 +08:00
<text style="margin-left: 6rpx;color: #FFFFFF;">品牌5折秒杀福利</text>
</view>
<view class="product_title_f" style="font-weight: bold;" @click="jumpWelcome">
<text style="">立即抢购</text>
2025-08-06 20:25:41 +08:00
<view style="margin: 6rpx 0 0 6rpx;"><up-image src="/static/common/right_y_st3.png" width="12" height="12"
bgColor="#f1f6ff00"></up-image></view>
2025-08-05 15:25:23 +08:00
</view>
</view>
2025-08-06 20:25:41 +08:00
<view
:class="faddishProduct && faddishProduct.length > 2 ? 'product_content product_content2' : 'product_content'">
2025-08-05 15:25:23 +08:00
<up-loading-icon :show="productLoading"></up-loading-icon>
2025-08-06 20:25:41 +08:00
<view :class="faddishProduct && faddishProduct.length > 2 ? 'product_item2' : 'product_item'"
v-for="item in faddishProduct" :key="item.id" @click="jumpInfo(item)">
<up-image :src="item.url" width="100%" height="130" bgColor="#f1f6ff00" shape="square"
radius='15'></up-image>
2025-08-05 15:25:23 +08:00
<view class="product_f_item">
2025-08-06 20:25:41 +08:00
<view class="product_f_item_name">{{ item.title }}</view>
2025-08-17 07:30:15 +08:00
<view class="product_f_item_price product_f_item_price_hx">优选价{{ item.price }}元</view>
2025-08-05 15:25:23 +08:00
</view>
</view>
</view>
</view>
<!-- 积分兑换,红包抽奖 -->
<view class="min_card_warp">
<!-- 积分兑换 -->
<view class="min_card_item" @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="min_card_item_title">积分兑换</view>
<view class="content_msg">
<view>好物随心兑</view>
<view class="content_msg_but">
立即抢购
2025-08-06 20:25:41 +08:00
<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>
2025-08-05 15:25:23 +08:00
</view>
</view>
</view>
2025-08-06 20:25:41 +08:00
<up-image src="/static/home/min_card_jfdh_2.png" width="66" height="66" bgColor="#f1f6ff00"></up-image>
2025-08-05 15:25:23 +08:00
</view>
<!-- 红包抽奖 -->
<view class="min_card_item" @click="jumpTurntable">
<!-- <up-image src="/static/home/min_card_hbcj.png" width="60" height="14" bgColor="#f1f6ff00" ></up-image> -->
<view class="min_card_item_content">
<view class="min_card_item_title">红包抽奖</view>
<view class="content_msg">
<view>现金红包等你拿!</view>
<view class="content_msg_but">
立即抢购
2025-08-06 20:25:41 +08:00
<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>
2025-08-05 15:25:23 +08:00
</view>
</view>
</view>
2025-08-06 20:25:41 +08:00
<up-image src="/static/home/min_card_hbcj_2.png" width="66" height="66" bgColor="#f1f6ff00"></up-image>
2025-08-05 15:25:23 +08:00
</view>
</view>
<!-- 好物优选 -->
2025-08-06 20:25:41 +08:00
<view class="product_comm yx_warp" v-if="yxProduct && yxProduct.length !== 0" @click="jumpPrdference">
2025-08-05 15:25:23 +08:00
<view class="product_title">
<view class="product_title_left">
<text class="product_title_z">平价专区</text>
<text class="product_title_zk">4折起</text>
</view>
<view class="product_title_f" style="color: #7632FF;">
<text style="">立即抢购</text>
2025-08-06 20:25:41 +08:00
<view style="margin: 6rpx 0 0 6rpx;"><up-image src="/static/common/right_y_st4.png" width="10" height="10"
bgColor="#f1f6ff00"></up-image></view>
2025-08-05 15:25:23 +08:00
</view>
</view>
<view class="product_tips">平价专区 抢到就是赚到!</view>
2025-08-06 20:25:41 +08:00
<view
:class="yxProduct && yxProduct.length > 3 ? 'product_content_yx product_content2' : 'product_content_yx'">
2025-08-05 15:25:23 +08:00
<up-loading-icon :show="productLoading"></up-loading-icon>
2025-08-06 20:25:41 +08:00
<view :class="yxProduct && yxProduct.length < 4 ? 'product_item_yx product_item_yx2' : 'product_item_yx'"
v-for="item in yxProduct" :key="item.id">
<up-image :src="item.url" width="100%" height="80" bgColor="#f1f6ff00" shape="square"
radius='10'></up-image>
2025-08-05 15:25:23 +08:00
<!-- <view class="product_f_item">
<view class="product_f_item_name">{{item.title}}</view>
<view class="product_f_item_price product_f_item_price_yx">优选价{{item.adPrice}}元</view>
</view> -->
</view>
</view>
</view>
<!-- 为您精选 -->
2025-08-06 20:25:41 +08:00
<choiceness />
2025-08-05 15:25:23 +08:00
</view>
2025-08-06 20:25:41 +08:00
2025-08-05 15:25:23 +08:00
</view>
<!-- 暂未开放 -->
2025-08-06 20:25:41 +08:00
<up-modal :show="openShow" :showConfirmButton="false">
2025-08-05 15:25:23 +08:00
<view class="slot-content">
2025-08-06 20:25:41 +08:00
<view class="close_warp" @click="openShow = false;">
2025-08-05 15:25:23 +08:00
<up-image src="/static/common/close.png" width="20" height="20" bgColor="#f1f6ff00"></up-image>
</view>
<view class="content_">
<view class="content_1">温馨提示</view>
<view class="content_2">暂未开放</view>
</view>
<view class="but_">
2025-08-06 20:25:41 +08:00
<view class="but_copy" @click="openShow = false;">确定</view>
2025-08-05 15:25:23 +08:00
</view>
</view>
</up-modal>
2025-08-17 00:17:56 +08:00
<!-- #ifndef H5 -->
<CustomTabBar :tabIndex="0" />
<!-- #endif -->
2025-08-06 20:25:41 +08:00
<up-action-sheet :actions="languageList" :show="languageShow" cancelText="取消"
@close="languageShow = false"></up-action-sheet>
<up-overlay :show="bannerShow">
2025-08-05 15:25:23 +08:00
<view class="up_content" @tap.stop>
<view class="uni-banner">
<view class="banner_box">
<view class="title_">发现新版本</view>
<view class="version_">
2025-08-06 20:25:41 +08:00
<view class="version_item">V{{ updateApkObj.versionCode || 100 }}</view>
2025-08-05 15:25:23 +08:00
</view>
2025-08-06 20:25:41 +08:00
<view class="conter">{{ updateApkObj.content }}</view>
2025-08-05 15:25:23 +08:00
<view class="banner_foot" v-if="!bannerPercentageShow">
2025-08-06 20:25:41 +08:00
<button @click="goUpdate(updateApkObj, platformType)" class="banner_foot_button">立即更新</button>
2025-08-05 15:25:23 +08:00
<view @click="bannerShow = false;" class="banner_foot_button_no" v-if="!updateApkObj.isForce">暂不更新</view>
</view>
<view v-else>
<up-line-progress :percentage="bannerPercentage" activeColor="#FF7C41"></up-line-progress>
<view class="banner_loading_msg">
2025-08-06 20:25:41 +08:00
更新中{{ bannerPercentage }}%
2025-08-05 15:25:23 +08:00
</view>
</view>
</view>
</view>
</view>
</up-overlay>
</view>
</template>
<script>
2025-08-06 20:25:41 +08:00
import choiceness from '@/components/choiceness/choiceness.vue';
import { searchList } from '@/api/product.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';
2025-08-16 22:03:57 +08:00
import useTabber from "tabber-component";
2025-08-06 20:25:41 +08:00
import { comparisonVersionHandler } from '@/utils/index.js';
export default {
components: { choiceness, CustomTabBar },
data() {
return {
swiperList: [
],
currentNum: 0,
sortList: [],
languageShow: false,// 语言选项
languageList: [
{
name: '中文',
key: "CN"
}, {
name: '英文',
key: "EN"
},
],
currentLanguage: {},
yxProduct: [],// 好物优选列表
faddishProduct: [],// 爆款专区
hotList: [
{
id: 1,
name: "中文中文中文中文中文",
url: "/static/common/product_def.png",
price: 99,
}, {
id: 2,
name: "中文中文中文中文",
url: "/static/common/product_def.png",
price: 99,
}, {
id: 3,
name: "中文中文中文中文中文",
url: "/static/common/product_def.png",
price: 99,
}, {
id: 4,
name: "中文中文中文中文中文",
url: "/static/common/product_def.png",
price: 99,
},
],// 热门
productLoading: false,
openShow: false,
platformType: null,// 当前设备信息
bannerShow: false, // 是否需要強制更新app
type: '', // 设备类型 android:2, ios:1
updateApkObj: {}, // 后台数据
bannerPercentageShow: false,// 是否显示进度条
bannerPercentage: 0,// 进度条
}
},
onShow() {
/*#ifdef APP-PLUS*/
uni.hideTabBar({
animation: false
})
/*#endif*/
// 获取设备是安卓还是ios
const appUpdate = uni.getStorageSync('platform');
const versionUpdateTime = uni.getStorageSync("versionUpdateTime");
// #ifdef APP-PLUS
console.log("上次更新时间 versionUpdateTime", dayjs(versionUpdateTime).format("YYYY-MM-DD HH:mm:ss"));
console.log("当前时间戳", dayjs().format("YYYY-MM-DD HH:mm:ss"));
const time1 = dayjs(versionUpdateTime);// 上一次更新的时间
const time2 = dayjs();
const diff = time2.diff(time1);
if (!versionUpdateTime || diff > 5 * 60 * 1000) {
this.platformType = appUpdate == 'android' ? 'ANDROID' : 'IOS';
this.checkUpdate(); // 判断是否需要更新
} else {
console.log("不需要更新...");
}
// #endif
this.getSortList();
this.querySearchList(SEARCH_TYPE.SOMETHING);// 好物专区
this.querySearchList(SEARCH_TYPE.EXPLOSIVE);// 爆单专区
this.getCarouselImage();
},
mounted() {
},
methods: {
checkUpdate() {
const self = this,
localAppVersonName = uni.getStorageSync('version'),
localAppVerson = uni.getStorageSync('versionCode');
2025-08-05 15:25:23 +08:00
// #ifdef APP-PLUS
2025-08-06 20:25:41 +08:00
plus.runtime.getProperty(plus.runtime.appid, function (widgetInfo) {
const params = {
terminal: self.platformType,
versionCode: localAppVerson,
2025-08-05 15:25:23 +08:00
}
2025-08-06 20:25:41 +08:00
checkAppVersion(params).then(res => {
2025-08-19 22:38:55 +08:00
console.log("wgt更新-1", res)
2025-08-06 20:25:41 +08:00
if (res && res.bizcode === 100) {
const data = res.data || {};
// app大版本更新,versionName:1.0.1 versionCode:102
if (data && Object.keys(data).length !== 0 && comparisonVersionHandler(localAppVerson, data.versionCode)) {
uni.hideTabBar() // 隐藏首页底部tabbar 按钮
self.updateApkObj = data;
self.bannerShow = true; // 显示弹窗
return;
2025-08-05 15:25:23 +08:00
} else {
2025-08-06 20:25:41 +08:00
return;
}
}
});
});
// #endif
},
// 安装
goUpdate(updateApkObj, platformType) {
const self = this;
if (platformType == 'ANDROID') {
// 弹出系统等待对话框
var dtask = plus.downloader.createDownload(updateApkObj.downloadUrl, {}, function (d, status) {
// 下载完成
if (status == 200) {
plus.runtime.install(plus.io.convertLocalFileSystemURL(d.filename), { force: true }, function (resp) {
// 直接重启APP
uni.setStorageSync('versionUpdateTime', dayjs().valueOf()); // 记录升级的时间
plus.runtime.restart();
}, function (error) {
console.log("error", error);
2025-08-05 15:25:23 +08:00
uni.showToast({
2025-08-06 20:25:41 +08:00
title: error.message,
2025-08-05 15:25:23 +08:00
mask: false,
duration: 1500
});
});
2025-08-06 20:25:41 +08:00
} else {
self.bannerPercentageShow = false;
2025-08-05 15:25:23 +08:00
uni.showToast({
2025-08-06 20:25:41 +08:00
title: '更新失败',
2025-08-05 15:25:23 +08:00
mask: false,
duration: 1500
});
}
2025-08-06 20:25:41 +08:00
});
try {
dtask.start(); // 开启下载的任务
let prg = 0;
this.bannerPercentageShow = true;
dtask.addEventListener('statechanged', function (task, status) {
// 给下载任务设置一个监听 并根据状态 做操作
switch (task.state) {
case 1:
break;
case 2:
break;
case 3:
prg = parseInt((parseFloat(task.downloadedSize) / parseFloat(task.totalSize)) * 100);
self.bannerPercentage = prg;
break;
case 4:
plus.nativeUI.closeWaiting();
self.bannerShow = false; // 显示弹窗
break;
}
});
} catch (err) {
console.log("更新失败-03err", err);
plus.nativeUI.closeWaiting();
uni.showToast({
title: '更新失败-03',
mask: false,
duration: 1500
});
2025-08-05 15:25:23 +08:00
}
2025-08-06 20:25:41 +08:00
} else if (platformType == 'IOS') { // ios跳转到app store
plus.runtime.openURL(updateApkObj.downloadUrl);
2025-08-05 15:25:23 +08:00
}
2025-08-06 20:25:41 +08:00
},
// 查询轮播图
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/other_package/pointsRedemption/pointsRedemption',
})
},
jumpTurntable() {
2025-08-15 00:35:43 +08:00
// uni.navigateTo({
// url: '/pages/other_package/turntable/turntable?backPath=home',
// })
2025-08-06 20:25:41 +08:00
uni.navigateTo({
2025-08-15 00:35:43 +08:00
url: '/pages/other_package/nine-grid/nine-grid?backPath=home',
2025-08-06 20:25:41 +08:00
})
},
jumpPrdference() {
uni.navigateTo({
url: '/pages/login_package/preference/preference',
})
},
jumpWelcome() {
uni.navigateTo({
url: '/pages/login_package/welcome/welcome',
// url:'/pages/customized_zone/customized_zone',
})
},
jumpSearch() {
uni.navigateTo({
2025-08-17 01:13:23 +08:00
url: '/pages/rwa_package/dongjian/search',
2025-08-06 20:25:41 +08:00
})
},
/**
* 查询商品列表
*/
async querySearchList(type) {
this.productLoading = true;
const params = {
type,
page: 1,
pageSize: type === SEARCH_TYPE.SOMETHING ? 4 : 3,
}
const resp = await searchList(params);
if (resp && resp.bizcode === 100) {
if (type === SEARCH_TYPE.SOMETHING) {// 好物优选
this.yxProduct = resp.data;
} else if (type === SEARCH_TYPE.EXPLOSIVE) {// 爆单专区
this.faddishProduct = resp.data;
}
}
this.productLoading = false;
},
/**
* 查询分类列表
*/
async getSortList() {
const resp = await getCascadeCategory({ parentId: 0 });
if (resp && resp.bizcode === 100) {
this.sortList = resp.data.slice(0, 10);
}
},
// 跳转到分类栏目
jumpSort(item) {
uni.setStorageSync('sortId', item.id);
uni.switchTab({// 首页
url: '/pages/sort/sort',
})
},
// 跳转到商品详情
jumpInfo(item) {
uni.navigateTo({
url: '/pages/other_package/productInfo/productInfo?id=' + item.id,
})
2025-08-05 15:25:23 +08:00
}
2025-08-16 22:03:57 +08:00
},
computed: {
isBlockedDate() {
return !useTabber(10);
}
2025-08-05 15:25:23 +08:00
}
2025-08-16 22:03:57 +08:00
2025-08-06 20:25:41 +08:00
}
2025-08-05 15:25:23 +08:00
</script>
<style lang="scss" scoped>
2025-08-06 20:25:41 +08:00
.home_warp {
2025-08-05 15:25:23 +08:00
background: $app-bj;
2025-08-06 20:25:41 +08:00
height: calc(100vh - 140rpx); // 140rpx 是底部的导航栏高度
2025-08-05 15:25:23 +08:00
overflow: auto;
position: relative;
}
2025-08-06 20:25:41 +08:00
.home_header_warp {
2025-08-05 15:25:23 +08:00
// background-color: #AC2A29FF;
// background: linear-gradient(0deg, $app-bj, #AC2A29FF);
2025-08-06 20:25:41 +08:00
background: linear-gradient(270deg, #AF39C4 0%, #7732FF 100%);
2025-08-05 15:25:23 +08:00
height: 500rpx;
padding: 100rpx 30rpx 0rpx;
}
2025-08-06 20:25:41 +08:00
.home_content_z_warp {
2025-08-05 15:25:23 +08:00
position: absolute;
2025-08-06 20:25:41 +08:00
top: 90rpx;
.header_title_warp {
2025-08-05 15:25:23 +08:00
display: flex;
margin-bottom: 30rpx;
padding: 0 30rpx;
}
2025-08-06 20:25:41 +08:00
.header_right_warp {
2025-08-05 15:25:23 +08:00
display: flex;
align-items: center;
width: calc(100% - 0rpx);
}
2025-08-06 20:25:41 +08:00
.language_warp {
2025-08-05 15:25:23 +08:00
display: flex;
justify-content: space-between;
align-items: center;
width: 100rpx;
padding: 10rpx 20rpx;
background: #ffffff30;
border-radius: 24rpx;
background: linear-gradient(270deg, #ae39c5, #7932fe) 2 2;
2025-08-06 20:25:41 +08:00
2025-08-05 15:25:23 +08:00
}
2025-08-06 20:25:41 +08:00
.search_msg_warp {
2025-08-05 15:25:23 +08:00
margin-left: 12rpx;
font-weight: 500;
font-size: 28rpx;
color: #ffffffb3;
}
}
2025-08-06 20:25:41 +08:00
.logo_banner {
2025-08-05 15:25:23 +08:00
display: flex;
justify-content: space-between;
padding: 0 30rpx;
color: #FFFFFF;
2025-08-06 20:25:41 +08:00
.logo_banner_title {
2025-08-05 15:25:23 +08:00
font-weight: bold;
font-size: 38rpx;
line-height: 36rpx;
margin: 20rpx 0;
}
2025-08-06 20:25:41 +08:00
.logo_banner_msg {
2025-08-05 15:25:23 +08:00
font-size: 22rpx;
}
}
2025-08-06 20:25:41 +08:00
.home_sort_warp {
2025-08-05 15:25:23 +08:00
// position: absolute;
top: 460rpx;
padding: 30rpx 30rpx 0;
width: calc(100% - 60rpx);
2025-08-06 20:25:41 +08:00
.sort_warp {
2025-08-05 15:25:23 +08:00
background: #ffffff;
padding: 20rpx;
border-radius: 20rpx;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
2025-08-06 20:25:41 +08:00
.sort_item {
2025-08-05 15:25:23 +08:00
width: 18%;
text-align: center;
margin-bottom: 20rpx;
}
2025-08-06 20:25:41 +08:00
.sort_item_title {
2025-08-05 15:25:23 +08:00
font-weight: 500;
font-size: 22rpx;
color: #333333;
}
}
}
2025-08-06 20:25:41 +08:00
.home_content_warp {
2025-08-05 15:25:23 +08:00
padding: 0 30rpx;
2025-08-06 20:25:41 +08:00
.product_comm {
2025-08-05 15:25:23 +08:00
border-radius: 30rpx;
padding: 10rpx;
color: #FFFFFF;
margin-top: 20rpx;
}
2025-08-06 20:25:41 +08:00
.yx_warp {
background: linear-gradient(270deg, #FDEFFF 0%, #EDE3FF 100%);
2025-08-05 15:25:23 +08:00
}
2025-08-06 20:25:41 +08:00
.hx_warp {
background: linear-gradient(270deg, #B164FB 0%, $app-zt-color 100%);
2025-08-05 15:25:23 +08:00
}
2025-08-06 20:25:41 +08:00
.product_title {
2025-08-05 15:25:23 +08:00
display: flex;
justify-content: space-between;
align-items: center;
padding: 10rpx 20rpx;
}
2025-08-06 20:25:41 +08:00
.product_title_yp {
2025-08-05 15:25:23 +08:00
font-weight: 800;
font-size: 36rpx;
color: #FFFFFF;
margin-right: 10rpx;
}
2025-08-06 20:25:41 +08:00
.product_title_z {
2025-08-05 15:25:23 +08:00
font-weight: 800;
font-size: 36rpx;
color: #333333FF;
margin-right: 10rpx;
}
2025-08-06 20:25:41 +08:00
.product_title_zk {
2025-08-05 15:25:23 +08:00
background: #b164fb45;
border-radius: 6rpx;
padding: 2rpx 20rpx;
color: $app-zt-color;
}
2025-08-06 20:25:41 +08:00
.product_title_left {
2025-08-05 15:25:23 +08:00
font-size: 20rpx;
display: flex;
align-items: center;
}
2025-08-06 20:25:41 +08:00
.product_title_f {
2025-08-05 15:25:23 +08:00
font-size: 20rpx;
color: #FFFFFF;
margin-left: 10rpx;
display: flex;
align-items: center;
}
2025-08-06 20:25:41 +08:00
2025-08-05 15:25:23 +08:00
.product_content_yx {
display: flex;
padding: 20rpx;
}
2025-08-06 20:25:41 +08:00
.product_content {
2025-08-05 15:25:23 +08:00
background-color: #FFFFFF;
padding: 20rpx;
border-radius: 24rpx;
display: flex;
align-items: center;
}
2025-08-06 20:25:41 +08:00
2025-08-05 15:25:23 +08:00
.product_content2 {
justify-content: space-between;
}
2025-08-06 20:25:41 +08:00
.product_item {
2025-08-05 15:25:23 +08:00
width: 32%;
position: relative;
margin-right: 20rpx;
}
2025-08-06 20:25:41 +08:00
.product_item2 {
2025-08-05 15:25:23 +08:00
width: 32%;
position: relative;
}
2025-08-06 20:25:41 +08:00
.product_item_yx {
2025-08-05 15:25:23 +08:00
width: 23%;
position: relative;
}
2025-08-06 20:25:41 +08:00
.product_item_yx2 {
2025-08-05 15:25:23 +08:00
margin-right: 20rpx;
}
2025-08-06 20:25:41 +08:00
.product_f_item {
2025-08-05 15:25:23 +08:00
position: absolute;
bottom: 0;
width: calc(100% - 40rpx);
height: 66rpx;
background: #F0E7FE;
border-radius: 0rpx 0rpx 12rpx 12rpx;
border: 1rpx solid #FFFFFF;
padding: 10rpx 20rpx;
font-size: 18rpx;
color: #000000;
}
2025-08-06 20:25:41 +08:00
.product_f_item_name {
2025-08-05 15:25:23 +08:00
width: 172rpx;
2025-08-06 20:25:41 +08:00
white-space: nowrap;
/* 防止文本换行 */
overflow: hidden;
/* 隐藏溢出的文本 */
text-overflow: ellipsis;
/* 使用省略号表示溢出的内容 */
2025-08-05 15:25:23 +08:00
font-weight: bold;
}
2025-08-06 20:25:41 +08:00
.product_f_item_price {
2025-08-05 15:25:23 +08:00
text-align: center;
border-radius: 10rpx;
color: #FFFFFF;
margin-top: 10rpx;
padding: 2rpx 0;
}
2025-08-06 20:25:41 +08:00
.product_f_item_price_yx {
2025-08-05 15:25:23 +08:00
background: #FFBA41;
}
2025-08-06 20:25:41 +08:00
.product_f_item_price_hx {
background: linear-gradient(270deg, #AF39C4 0%, #7732FF 100%);
2025-08-05 15:25:23 +08:00
}
2025-08-06 20:25:41 +08:00
.product_tips {
2025-08-05 15:25:23 +08:00
font-size: 24rpx;
line-height: 40rpx;
margin-left: 20rpx;
background: linear-gradient(180deg, #B039C2 0%, #8B34E9 23%, #7632FF 100%);
-webkit-background-clip: text;
2025-08-06 20:25:41 +08:00
color: transparent;
2025-08-05 15:25:23 +08:00
display: inline-block;
}
2025-08-06 20:25:41 +08:00
2025-08-05 15:25:23 +08:00
// 积分兑换,红包
2025-08-06 20:25:41 +08:00
.min_card_warp {
2025-08-05 15:25:23 +08:00
display: flex;
justify-content: space-between;
margin-top: 20rpx;
2025-08-06 20:25:41 +08:00
.min_card_item {
2025-08-05 15:25:23 +08:00
padding: 20rpx;
width: 43%;
border-radius: 30rpx;
opacity: 0.8;
border-radius: 16rpx;
border: 1rpx solid #DFDFDF;
display: flex;
justify-content: space-between;
}
2025-08-06 20:25:41 +08:00
.min_card_item_content {
2025-08-05 15:25:23 +08:00
margin-top: 10rpx;
2025-08-06 20:25:41 +08:00
.min_card_item_title {
2025-08-05 15:25:23 +08:00
font-weight: bold;
font-size: 28rpx;
color: #000000;
}
2025-08-06 20:25:41 +08:00
.content_msg {
2025-08-05 15:25:23 +08:00
font-size: 20rpx;
color: #808080;
display: grid;
margin-top: 10rpx;
}
2025-08-06 20:25:41 +08:00
.content_msg_but {
2025-08-05 15:25:23 +08:00
display: flex;
align-items: center;
margin-top: 20rpx;
}
2025-08-06 20:25:41 +08:00
2025-08-05 15:25:23 +08:00
}
2025-08-06 20:25:41 +08:00
2025-08-05 15:25:23 +08:00
}
2025-08-06 20:25:41 +08:00
2025-08-05 15:25:23 +08:00
// 热门榜
2025-08-06 20:25:41 +08:00
.hot_warp {
2025-08-05 15:25:23 +08:00
background: #FFFFFF;
border-radius: 30rpx;
padding: 20rpx;
margin-top: 20rpx;
2025-08-06 20:25:41 +08:00
.hot_title_warp {
2025-08-05 15:25:23 +08:00
display: flex;
justify-content: space-between;
align-items: center;
2025-08-06 20:25:41 +08:00
.title_warp {
2025-08-05 15:25:23 +08:00
display: flex;
align-items: center;
}
2025-08-06 20:25:41 +08:00
.title_ {
2025-08-05 15:25:23 +08:00
font-weight: 800;
font-size: 36rpx;
color: #111111;
margin-right: 10rpx;
}
2025-08-06 20:25:41 +08:00
.good_warp {
2025-08-05 15:25:23 +08:00
display: flex;
align-items: center;
}
2025-08-06 20:25:41 +08:00
.good__msg_warp {
2025-08-05 15:25:23 +08:00
background: #FFF8F3;
/* border-radius: 18rpx; */
border-top: 2rpx solid $app-zt-color;
border-right: 2rpx solid $app-zt-color;
border-bottom: 2rpx solid $app-zt-color;
font-size: 20rpx;
color: $app-zt-color;
padding: 4rpx 14rpx 4rpx 20rpx;
margin-left: -6px;
border-radius: 0rpx 18rpx 18rpx 0rpx;
}
2025-08-06 20:25:41 +08:00
.more_warp {
2025-08-05 15:25:23 +08:00
display: flex;
font-size: 24rpx;
color: #666666;
}
}
2025-08-06 20:25:41 +08:00
.hot_content_warp {
2025-08-05 15:25:23 +08:00
display: flex;
justify-content: space-between;
margin-top: 20rpx;
2025-08-06 20:25:41 +08:00
.hot_item {
2025-08-05 15:25:23 +08:00
width: 24%;
}
2025-08-06 20:25:41 +08:00
.hot_item_name {
2025-08-05 15:25:23 +08:00
font-weight: 800;
font-size: 24rpx;
color: #000000;
width: 160rpx;
2025-08-06 20:25:41 +08:00
white-space: nowrap;
/* 防止文本换行 */
overflow: hidden;
/* 隐藏溢出的文本 */
text-overflow: ellipsis;
/* 使用省略号表示溢出的内容 */
2025-08-05 15:25:23 +08:00
}
2025-08-06 20:25:41 +08:00
.hot_item_price {
2025-08-05 15:25:23 +08:00
display: flex;
justify-content: center;
font-size: 20rpx;
color: $app-zt-color;
text-align: center;
margin-top: 10rpx;
}
}
}
2025-08-06 20:25:41 +08:00
2025-08-05 15:25:23 +08:00
// 哈希商学院
2025-08-06 20:25:41 +08:00
.business_school_warp {
2025-08-05 15:25:23 +08:00
margin-top: 20rpx;
height: 160rpx;
2025-08-07 22:26:22 +08:00
background-image: url("https://cex-pub.s3.ap-southeast-1.amazonaws.com/static/result.png");
2025-08-05 15:25:23 +08:00
background-size: 100% 100%;
2025-08-06 20:25:41 +08:00
background-position: center;
/* 将图片居中显示 */
2025-08-05 15:25:23 +08:00
display: grid;
align-items: center;
padding: 0 40rpx;
2025-08-06 20:25:41 +08:00
color: rgba(255, 255, 255, 0.9);
2025-08-05 15:25:23 +08:00
border-radius: 20rpx;
2025-08-06 20:25:41 +08:00
.title {
2025-08-05 15:25:23 +08:00
font-weight: 800;
font-size: 32rpx;
// color: #0987F8;
}
2025-08-06 20:25:41 +08:00
.msg {
2025-08-05 15:25:23 +08:00
font-size: 20rpx;
// color: #666666;
display: flex;
align-items: center;
// margin-top: 10rpx;
}
}
}
</style>