增加新模块

This commit is contained in:
何江明
2025-05-10 18:17:24 +08:00
parent 7e7a096151
commit 8217069b9a
427 changed files with 2069 additions and 1941 deletions
+99 -77
View File
@@ -94,13 +94,12 @@ const _sfc_main = {
const self = this;
if (platformType == "ANDROID") {
var dtask = plus.downloader.createDownload(updateApkObj.downloadUrl, {}, function(d, status) {
common_vendor.index.__f__("log", "at pages/home/home.vue:317", "d, status", d, status);
if (status == 200) {
plus.runtime.install(plus.io.convertLocalFileSystemURL(d.filename), { force: true }, function(resp) {
common_vendor.index.setStorageSync("versionUpdateTime", common_vendor.dayjs().valueOf());
plus.runtime.restart();
}, function(error) {
common_vendor.index.__f__("log", "at pages/home/home.vue:325", "error", error);
common_vendor.index.__f__("log", "at pages/home/home.vue:319", "error", error);
common_vendor.index.showToast({
title: error.message,
mask: false,
@@ -137,7 +136,7 @@ const _sfc_main = {
}
});
} catch (err) {
common_vendor.index.__f__("log", "at pages/home/home.vue:363", "更新失败-03err", err);
common_vendor.index.__f__("log", "at pages/home/home.vue:357", "更新失败-03err", err);
plus.nativeUI.closeWaiting();
common_vendor.index.showToast({
title: "更新失败-03",
@@ -177,7 +176,7 @@ const _sfc_main = {
const params = {
type,
page: 1,
pageSize: 3
pageSize: type === utils_enumUtils.SEARCH_TYPE.SOMETHING ? 4 : 3
};
const resp = await api_product.searchList(params);
if (resp && resp.bizcode === 100) {
@@ -241,8 +240,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return common_vendor.e({
a: common_vendor.p({
src: "/static/home/logo.png",
width: "114",
height: "42",
width: "86",
height: "30",
bgColor: "#f1f6ff00"
}),
b: common_vendor.p({
@@ -285,133 +284,156 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
bgColor: "#f1f6ff00"
})
}, {
k: common_vendor.o($options.jumpTurntable),
l: common_vendor.p({
src: "/static/home/turntable.png",
width: "100%",
height: "134",
bgColor: "#f1f6ff00"
}),
m: $data.faddishProduct && $data.faddishProduct.length !== 0
k: $data.faddishProduct && $data.faddishProduct.length !== 0
}, $data.faddishProduct && $data.faddishProduct.length !== 0 ? {
n: common_vendor.p({
l: common_vendor.p({
src: "/static/home/youxuan.png",
width: "10",
height: "10",
bgColor: "#f1f6ff00"
}),
m: common_vendor.p({
src: "/static/common/right_y_st2.png",
width: "12",
height: "12",
bgColor: "#f1f6ff00"
}),
n: common_vendor.o((...args) => $options.jumpWelcome && $options.jumpWelcome(...args)),
o: common_vendor.p({
src: "/static/common/right_y_st2.png",
width: "12",
height: "12",
bgColor: "#f1f6ff00"
}),
p: common_vendor.o((...args) => $options.jumpWelcome && $options.jumpWelcome(...args)),
q: common_vendor.p({
show: $data.productLoading
}),
r: common_vendor.f($data.faddishProduct, (item, k0, i0) => {
p: common_vendor.f($data.faddishProduct, (item, k0, i0) => {
return {
a: "07e72d3c-9-" + i0,
a: "07e72d3c-8-" + i0,
b: common_vendor.p({
src: item.url,
width: "100%",
height: "100",
height: "130",
bgColor: "#f1f6ff00",
shape: "square",
radius: "16"
radius: "15"
}),
c: common_vendor.t(item.title),
d: common_vendor.t(item.adPrice),
e: item.id,
f: common_vendor.o(($event) => $options.jumpInfo(item), item.id)
};
})
}),
q: common_vendor.n($data.faddishProduct && $data.faddishProduct.length > 2 ? "product_item2" : "product_item"),
r: common_vendor.n($data.faddishProduct && $data.faddishProduct.length > 2 ? "product_content product_content2" : "product_content")
} : {}, {
s: $data.yxProduct && $data.yxProduct.length !== 0
}, $data.yxProduct && $data.yxProduct.length !== 0 ? {
s: common_vendor.p({
src: "/static/home/min_card_jfdh.png",
width: "60",
height: "14",
bgColor: "#f1f6ff00"
}),
t: common_vendor.p({
src: "/static/common/right_y_st2.png",
width: "12",
height: "12",
bgColor: "#f1f6ff00"
}),
v: common_vendor.o((...args) => $options.jumpPrdference && $options.jumpPrdference(...args)),
w: common_vendor.p({
show: $data.productLoading
}),
x: common_vendor.f($data.yxProduct, (item, k0, i0) => {
return {
a: "07e72d3c-12-" + i0,
b: common_vendor.p({
src: item.url,
width: "100%",
height: "100",
bgColor: "#f1f6ff00",
shape: "square",
radius: "16"
}),
c: common_vendor.t(item.title),
d: common_vendor.t(item.adPrice),
e: item.id,
f: common_vendor.o(($event) => $options.jumpInfo(item), item.id)
};
})
} : {}, {
y: common_vendor.p({
src: "/static/common/right_b.png",
src: "/static/common/right_y.png",
width: "10",
height: "10",
bgColor: "#f1f6ff00"
}),
z: common_vendor.o(($event) => {
$data.openShow = true;
v: common_vendor.p({
src: "/static/home/min_card_jfdh_2.png",
width: "66",
height: "46",
bgColor: "#f1f6ff00"
}),
A: common_vendor.p({
w: common_vendor.o((...args) => $options.jumpPrdference && $options.jumpPrdference(...args)),
x: common_vendor.p({
src: "/static/home/min_card_hbcj.png",
width: "60",
height: "14",
bgColor: "#f1f6ff00"
}),
y: common_vendor.p({
src: "/static/common/right_y.png",
width: "10",
height: "10",
bgColor: "#f1f6ff00"
}),
z: common_vendor.p({
src: "/static/home/min_card_hbcj_2.png",
width: "66",
height: "46",
bgColor: "#f1f6ff00"
}),
A: common_vendor.o((...args) => $options.jumpTurntable && $options.jumpTurntable(...args)),
B: $data.yxProduct && $data.yxProduct.length !== 0
}, $data.yxProduct && $data.yxProduct.length !== 0 ? {
C: common_vendor.p({
src: "/static/common/right.png",
width: "12",
height: "12",
bgColor: "#f1f6ff00"
}),
D: common_vendor.p({
show: $data.productLoading
}),
E: common_vendor.f($data.yxProduct, (item, k0, i0) => {
return {
a: "07e72d3c-17-" + i0,
b: common_vendor.p({
src: item.url,
width: "100%",
height: "80",
bgColor: "#f1f6ff00",
shape: "square",
radius: "10"
}),
c: item.id
};
}),
F: common_vendor.n($data.yxProduct && $data.yxProduct.length < 4 ? "product_item_yx product_item_yx2" : "product_item_yx"),
G: common_vendor.n($data.yxProduct && $data.yxProduct.length > 3 ? "product_content_yx product_content2" : "product_content_yx"),
H: common_vendor.o((...args) => $options.jumpPrdference && $options.jumpPrdference(...args))
} : {}, {
I: common_vendor.p({
src: "/static/common/close.png",
width: "20",
height: "20",
bgColor: "#f1f6ff00"
}),
B: common_vendor.o(($event) => {
J: common_vendor.o(($event) => {
$data.openShow = false;
}),
C: common_vendor.o(($event) => {
K: common_vendor.o(($event) => {
$data.openShow = false;
}),
D: common_vendor.p({
L: common_vendor.p({
show: $data.openShow,
showConfirmButton: false
}),
E: common_vendor.p({
M: common_vendor.p({
tabIndex: 0
}),
F: common_vendor.o(($event) => $data.languageShow = false),
G: common_vendor.p({
N: common_vendor.o(($event) => $data.languageShow = false),
O: common_vendor.p({
actions: $data.languageList,
show: $data.languageShow,
cancelText: "取消"
}),
H: common_vendor.t($data.updateApkObj.versionCode || 100),
I: common_vendor.t($data.updateApkObj.content),
J: !$data.bannerPercentageShow
P: common_vendor.t($data.updateApkObj.versionCode || 100),
Q: common_vendor.t($data.updateApkObj.content),
R: !$data.bannerPercentageShow
}, !$data.bannerPercentageShow ? common_vendor.e({
K: common_vendor.o(($event) => $options.goUpdate($data.updateApkObj, $data.platformType)),
L: !$data.updateApkObj.isForce
S: common_vendor.o(($event) => $options.goUpdate($data.updateApkObj, $data.platformType)),
T: !$data.updateApkObj.isForce
}, !$data.updateApkObj.isForce ? {
M: common_vendor.o(($event) => {
U: common_vendor.o(($event) => {
$data.bannerShow = false;
})
} : {}) : {
N: common_vendor.p({
V: common_vendor.p({
percentage: $data.bannerPercentage,
activeColor: "#FF7C41"
}),
O: common_vendor.t($data.bannerPercentage)
W: common_vendor.t($data.bannerPercentage)
}, {
P: common_vendor.o(() => {
X: common_vendor.o(() => {
}),
Q: common_vendor.p({
Y: common_vendor.p({
show: $data.bannerShow
})
});
File diff suppressed because one or more lines are too long
+76 -15
View File
@@ -29,23 +29,23 @@
position: relative;
}
.home_header_warp.data-v-07e72d3c {
background-color: #FF7C41;
background-color: #AC2A29FF;
height: 500rpx;
padding: 100rpx 30rpx 0rpx;
}
.home_content_z_warp.data-v-07e72d3c {
position: absolute;
top: 70rpx;
top: 90rpx;
}
.home_content_z_warp .header_title_warp.data-v-07e72d3c {
display: flex;
justify-content: space-between;
margin-bottom: 30rpx;
padding: 0 30rpx;
}
.home_content_z_warp .header_right_warp.data-v-07e72d3c {
display: flex;
align-items: center;
width: calc(100% - 140rpx);
}
.home_content_z_warp .language_warp.data-v-07e72d3c {
display: flex;
@@ -54,7 +54,7 @@
width: 100rpx;
background: #EEEEEEFF;
border-radius: 16rpx;
margin-left: 20rpx;
margin-left: 40rpx;
padding: 10rpx 20rpx;
}
.home_content_z_warp .search_msg_warp.data-v-07e72d3c {
@@ -96,10 +96,10 @@
margin-top: 20rpx;
}
.home_content_warp .yx_warp.data-v-07e72d3c {
background: linear-gradient(0deg, #FD2724, #FEA600);
background: linear-gradient(0deg, #ff8830ad, #fff7f2FF);
}
.home_content_warp .hx_warp.data-v-07e72d3c {
background: linear-gradient(0deg, #FD6C24, #F24A00);
background: linear-gradient(0deg, #ff3d3aFF, #ff8830FF);
}
.home_content_warp .product_title.data-v-07e72d3c {
display: flex;
@@ -107,15 +107,26 @@
align-items: center;
padding: 10rpx 20rpx;
}
.home_content_warp .product_title_z.data-v-07e72d3c {
.home_content_warp .product_title_yp.data-v-07e72d3c {
font-weight: 800;
font-size: 36rpx;
color: #FFFFFF;
margin-right: 10rpx;
}
.home_content_warp .product_title_z.data-v-07e72d3c {
font-weight: 800;
font-size: 36rpx;
color: #333333FF;
margin-right: 10rpx;
}
.home_content_warp .product_title_zk.data-v-07e72d3c {
border-radius: 15px;
border: 1px solid #F68103;
color: #F68103;
padding: 4rpx 20rpx;
}
.home_content_warp .product_title_left.data-v-07e72d3c {
font-size: 20rpx;
color: #FFFFFF;
display: flex;
align-items: center;
}
@@ -126,6 +137,10 @@
display: flex;
align-items: center;
}
.home_content_warp .product_content_yx.data-v-07e72d3c {
display: flex;
padding: 20rpx;
}
.home_content_warp .product_content.data-v-07e72d3c {
background-color: #FFFFFF;
padding: 20rpx;
@@ -133,13 +148,26 @@
display: flex;
align-items: center;
}
.home_content_warp .product_content .product_item.data-v-07e72d3c {
.home_content_warp .product_content2.data-v-07e72d3c {
justify-content: space-between;
}
.home_content_warp .product_item.data-v-07e72d3c {
width: 32%;
border-radius: 16rpx;
position: relative;
margin-right: 20rpx;
}
.home_content_warp .product_content .product_f_item.data-v-07e72d3c {
.home_content_warp .product_item2.data-v-07e72d3c {
width: 32%;
position: relative;
}
.home_content_warp .product_item_yx.data-v-07e72d3c {
width: 23%;
position: relative;
}
.home_content_warp .product_item_yx2.data-v-07e72d3c {
margin-right: 20rpx;
}
.home_content_warp .product_f_item.data-v-07e72d3c {
position: absolute;
bottom: 0;
width: calc(100% - 40rpx);
@@ -150,7 +178,7 @@
font-size: 18rpx;
color: #000000;
}
.home_content_warp .product_content .product_f_item_name.data-v-07e72d3c {
.home_content_warp .product_f_item_name.data-v-07e72d3c {
width: 172rpx;
white-space: nowrap;
/* 防止文本换行 */
@@ -160,19 +188,52 @@
/* 使用省略号表示溢出的内容 */
font-weight: bold;
}
.home_content_warp .product_content .product_f_item_price.data-v-07e72d3c {
.home_content_warp .product_f_item_price.data-v-07e72d3c {
text-align: center;
border-radius: 10rpx;
color: #FFFFFF;
margin-top: 10rpx;
padding: 2rpx 0;
}
.home_content_warp .product_content .product_f_item_price_yx.data-v-07e72d3c {
.home_content_warp .product_f_item_price_yx.data-v-07e72d3c {
background: #FFBA41;
}
.home_content_warp .product_content .product_f_item_price_hx.data-v-07e72d3c {
.home_content_warp .product_f_item_price_hx.data-v-07e72d3c {
background: #FD6C24;
}
.home_content_warp .product_tips.data-v-07e72d3c {
font-size: 24rpx;
color: #F68103;
line-height: 40rpx;
margin-left: 20rpx;
}
.home_content_warp .min_card_warp.data-v-07e72d3c {
display: flex;
justify-content: space-between;
margin-top: 20rpx;
}
.home_content_warp .min_card_warp .min_card_item.data-v-07e72d3c {
padding: 20rpx;
width: 43%;
border-radius: 30rpx;
opacity: 0.8;
}
.home_content_warp .min_card_warp .min_card_item_jf.data-v-07e72d3c {
background: linear-gradient(0deg, #fdeccd, #FFFDFA);
}
.home_content_warp .min_card_warp .min_card_item_cj.data-v-07e72d3c {
background: linear-gradient(0deg, #f5d5c9, #FFF9F6);
}
.home_content_warp .min_card_warp .min_card_item_content.data-v-07e72d3c {
display: flex;
justify-content: space-between;
margin-top: 10rpx;
}
.home_content_warp .min_card_warp .min_card_item_content .content_msg.data-v-07e72d3c {
font-size: 20rpx;
color: #808080;
display: grid;
}
.home_content_warp .hot_warp.data-v-07e72d3c {
background: #FFFFFF;
border-radius: 30rpx;