This commit is contained in:
2025-03-12 11:39:31 +08:00
parent b8a44a2716
commit 55954a4a9b
125 changed files with 30973 additions and 30045 deletions

View File

@@ -8,7 +8,11 @@
<view class="header_box"></view>
<view class="appJump">
<view class="everhealth item flexbox" @click="appjumpfun('everhealth')" v-if="$platform!='ios'">
<view
class="everhealth item flexbox"
@click="appjumpfun('everhealth')"
v-if="$platform != 'ios'"
>
<view class="img">
<image
src="@/static/icon/ic_login_health.png"
@@ -116,18 +120,81 @@
></image>
</view>
<view class="flash_sale_content" style="margin-top: 40rpx">
<view class="flash_sale_content" style="margin-top: 40rpx;height: auto !important;">
<scroll-view scroll-x="true" class="scroll-X" style="">
<view
class="scroll-view-item flash_sale_content_item"
@click="goGoodsDetail(v)"
style="position: relative;"
v-for="(v, i) in seckillLst"
>
> <view v-if="v.isVipPrice==1&&v.vipPrice!=0&&v.vipPrice!=null"
style="z-index: 10;position: absolute;top: 10rpx;left: 10px;text-align: center;font-size: 22rpx;background-color: #f94f04;color: #fff;font-weight: bold;border-radius:4px;width: 120rpx; padding:4rpx;box-sizing: border-box;">
VIP优惠</view>
<image class="book_image" :src="v.productImages" mode="aspectFit">
</image>
<view class="book_name" style="padding-bottom: 20rpx">{{
<view class="book_name" style="padding-bottom: 20rpx;font-weight: 500;font-size: 28rpx;">{{
v.productName
}}</view>
<view>
<!-- v-if="
item.isVipPrice == 1 &&
item.vipPrice != 0 &&
item.vipPrice != null
" -->
<text
class="price"
v-if="
v.isVipPrice == 1 &&
v.vipPrice != 0 &&
v.vipPrice != null
"
>
<text
style="color: #e97512; font-size: 28rpx; font-weight: bold"
>¥{{ v.vipPrice }}</text
>
<text
style="
color: #8a8a8a;
font-size: 22rpx;
margin-left: 4px;
font-weight: bold;
text-decoration: line-through;
"
>¥{{ Number(v.price) }}</text
>
</text>
<text
v-else-if="v.activityPrice && v.activityPrice > 0"
class="price"
>
<text
style="color: #e97512; font-size: 28rpx; font-weight: bold"
>¥{{ v.activityPrice }}</text
>
<text
style="
color: #8a8a8a;
font-size: 22rpx;
margin-left: 4px;
font-weight: bold;
text-decoration: line-through;
"
>¥{{ Number(v.price) }}</text
>
</text>
<text v-else class="price" style="color: #e97512; font-size: 28rpx; font-weight: bold"
>¥{{ Number(v.price) }}</text
>
<view>
</view>
</view>
</view>
</scroll-view>
</view>
@@ -339,7 +406,7 @@ export default {
},
function (e) {
console.log("Open system default browser failed: " + e.message);
}
},
);
} else if (plus.os.name == "iOS") {
// plus.runtime.launchApplication(
@@ -503,15 +570,16 @@ export default {
bagName = "com.cn.nuttyreading";
schemes = "nuttyreading";
appId = "6446239659";
}
if (name == "everhealth") {
bagName = "cn.com.everhealth";
schemes = "everhealth"; appId = "1073393620";
schemes = "everhealth";
appId = "1073393620";
}
if (name == "medicine") {
bagName = "com.cn.medicine";
schemes = "medicine"; appId = "6523420507";
schemes = "medicine";
appId = "6523420507";
}
// if(name == 'everhealth'){
if (plus.os.name == "Android") {
@@ -542,7 +610,7 @@ export default {
//这链接会判断你手机是ios还是AndroidAndroid进入应用宝下载app
//跟下面的是一个链接
console.log(res);
}
},
);
}
} else if (plus.os.name == "iOS") {
@@ -573,12 +641,12 @@ export default {
function (e) {
// 失败回调,说明 B App 未安装
plus.runtime.openURL(
"itms-apps://itunes.apple.com/app/"+appId, // 目标 App 的 App Store 下载链接(替换成实际 ID
"itms-apps://itunes.apple.com/app/" + appId, // 目标 App 的 App Store 下载链接(替换成实际 ID
function (res) {
console.log("跳转 App Store 失败", res);
}
},
);
}
},
);
}
},
@@ -819,14 +887,14 @@ function calcTimer(timer) {
.flash_sale_content_item {
display: inline-block;
width: 165rpx;
width: 32%;
margin-right: 12rpx;
margin-right: 1%;
overflow: hidden;
}
.book_image {
width: 165rpx;
width: 100%;
height: 192rpx;
border-radius: 10rpx;
background-color: #f5f5f5;