This commit is contained in:
2025-03-17 10:54:00 +08:00
parent f8a31e6067
commit 1439143624
3 changed files with 186 additions and 154 deletions

View File

@@ -8,7 +8,7 @@
<view class="header_box"></view>
<view class="appJump">
<view
<!-- <view
class="everhealth item flexbox"
@click="appjumpfun('everhealth')"
v-if="$platform != 'ios'"
@@ -22,15 +22,8 @@
<view class="text">
<text>一路健康</text>
</view>
</view>
<view class="zmzm item flexbox" @click="appjumpfun('nuttyreading')">
<view class="img">
<image src="@/static/icon/home_icon_3.png" mode="widthFix"></image>
</view>
<view class="text">
<text>疯子读书</text>
</view>
</view>
</view> -->
<view class="zmzm item flexbox" @click="appjumpfun('medicine')">
<view class="img">
<image src="@/static/icon/wmysicon.png" mode="widthFix"></image>
@@ -39,6 +32,23 @@
<text>吴门医述</text>
</view>
</view>
<view class="zmzm item flexbox" @click="appjumpfun('soul')">
<view class="img">
<image src="@/static/icon/xinlingicon.png" mode="widthFix"></image>
</view>
<view class="text">
<text>心灵空间</text>
</view>
</view>
<view class="zmzm item flexbox" @click="appjumpfun('nuttyreading')">
<view class="img">
<image src="@/static/icon/home_icon_3.png" mode="widthFix"></image>
</view>
<view class="text">
<text>疯子读书</text>
</view>
</view>
</view>
<view class="main_content_box">
<view class="curriculum_box">
@@ -100,7 +110,7 @@
</view>
</view>
<view class="flash_sale_box" >
<view class="flash_sale_box">
<view class="flash_sale_top">
<image
class="miaoShaIcon"
@@ -120,81 +130,108 @@
></image>
</view>
<view class="flash_sale_content" style="margin-top: 40rpx;height: auto !important;">
<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;"
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>
>
<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;font-weight: 500;font-size: 28rpx;">{{
v.productName
}}</view>
<view>
<!-- v-if="
<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
class="price"
v-if="
v.isVipPrice == 1 &&
v.vipPrice != 0 &&
v.vipPrice != null
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;
"
>
<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>
</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>
@@ -398,7 +435,7 @@ export default {
},
function (e) {
console.log("Open system default browser failed: " + e.message);
},
}
);
} else if (plus.os.name == "iOS") {
// plus.runtime.launchApplication(
@@ -563,11 +600,16 @@ export default {
schemes = "nuttyreading";
appId = "6446239659";
}
if (name == "everhealth") {
bagName = "cn.com.everhealth";
schemes = "everhealth";
appId = "1073393620";
if (name == "soul") {
bagName = "com.nuttyreading.soul";
schemes = "soulspace";
appId = "6743377830";
}
// if (name == "everhealth") {
// bagName = "cn.com.everhealth";
// schemes = "everhealth";
// appId = "1073393620";
// }
if (name == "medicine") {
bagName = "com.cn.medicine";
schemes = "medicine";
@@ -602,7 +644,7 @@ export default {
//这链接会判断你手机是ios还是AndroidAndroid进入应用宝下载app
//跟下面的是一个链接
console.log(res);
},
}
);
}
} else if (plus.os.name == "iOS") {
@@ -636,9 +678,9 @@ export default {
"itms-apps://itunes.apple.com/app/" + appId, // 目标 App 的 App Store 下载链接(替换成实际 ID
function (res) {
console.log("跳转 App Store 失败", res);
},
}
);
},
}
);
}
},