增加新模块
This commit is contained in:
+99
-77
@@ -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
|
||||
})
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user