更改首页秒杀活动显示价格问题
This commit is contained in:
@@ -10,8 +10,8 @@
|
||||
"sizes": "分辨率,192x192",
|
||||
"src": "图片路径"
|
||||
}],
|
||||
"versionName": "1.0.35",
|
||||
"versionCode": 1035,
|
||||
"versionName": "1.0.36",
|
||||
"versionCode": 1036,
|
||||
"app-plus": {
|
||||
"nvueCompiler": "weex",
|
||||
"compatible": {
|
||||
|
||||
@@ -4,37 +4,23 @@
|
||||
<view class="" style="">
|
||||
<view style="height: 60rpx"></view>
|
||||
<view class="icon_hua">
|
||||
<image
|
||||
src="../../static/homeLogo.png"
|
||||
mode="aspectFit"
|
||||
class="icon_hua_1"
|
||||
></image>
|
||||
<image src="../../static/homeLogo.png" mode="aspectFit" class="icon_hua_1"></image>
|
||||
</view>
|
||||
<view class="hehan">
|
||||
<image
|
||||
src="../../static/icon/hehan.png"
|
||||
mode="aspectFit"
|
||||
class="icon_hua_1"
|
||||
></image>
|
||||
<image src="../../static/icon/hehan.png" mode="aspectFit" class="icon_hua_1"></image>
|
||||
</view>
|
||||
<view class="topSearch_box">
|
||||
<image
|
||||
src="../../static/search.png"
|
||||
mode="aspectFit"
|
||||
@click="onPageJump('/pages/peanut/searchFor')"
|
||||
></image>
|
||||
<image src="../../static/search.png" mode="aspectFit"
|
||||
@click="onPageJump('/pages/peanut/searchFor')"></image>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="fourBox nopadding" style="">
|
||||
<view
|
||||
class="fourIcon flexbox noRadius"
|
||||
style="
|
||||
<view class="fourIcon flexbox noRadius" style="
|
||||
justify-content: space-around;
|
||||
margin-bottom: 0;
|
||||
box-shadow: none;
|
||||
"
|
||||
>
|
||||
">
|
||||
<div class="item flexbox" @click="onPageJump('/pages/course/outline')">
|
||||
<image src="../../static/my_01.png" mode="aspectFit"></image>
|
||||
<text>学习大纲</text>
|
||||
@@ -43,10 +29,7 @@
|
||||
<image src="../../static/my_02.png" mode="aspectFit"></image>
|
||||
<text>我的课程</text>
|
||||
</div>
|
||||
<div
|
||||
class="item flexbox"
|
||||
@click="onPageJump('/pages/course/vipCourse')"
|
||||
>
|
||||
<div class="item flexbox" @click="onPageJump('/pages/course/vipCourse')">
|
||||
<image src="../../static/my_06.png" mode="aspectFit"></image>
|
||||
<text>超V专享</text>
|
||||
</div>
|
||||
@@ -54,78 +37,42 @@
|
||||
<image src="../../static/my_03.png" mode="aspectFit"></image>
|
||||
<text>太湖讲堂</text>
|
||||
</div> -->
|
||||
<div
|
||||
class="item flexbox"
|
||||
@click="onPageJump('/pages/medicaldes/medicaldes')"
|
||||
>
|
||||
<div class="item flexbox" @click="onPageJump('/pages/medicaldes/medicaldes')">
|
||||
<image src="../../static/my_04.png" mode="aspectFit"></image>
|
||||
<text>吴门医述</text>
|
||||
</div>
|
||||
</view>
|
||||
</view>
|
||||
<view class="newLeve2">
|
||||
<view
|
||||
class="home_nar nomargin"
|
||||
style="padding: 0; background-color: #fff"
|
||||
>
|
||||
<view class="home_nar nomargin" style="padding: 0; background-color: #fff">
|
||||
<view class="flexbox">
|
||||
<view
|
||||
:class="['hn_cl_tit', tabsid == item.id ? 'active' : '']"
|
||||
@click="curseClick(item)"
|
||||
v-for="(item, index) in curseTagList"
|
||||
:key="index"
|
||||
>
|
||||
<view :class="['hn_cl_tit', tabsid == item.id ? 'active' : '']" @click="curseClick(item)"
|
||||
v-for="(item, index) in curseTagList" :key="index">
|
||||
<image :src="item.icon" mode="aspectFit"></image>
|
||||
<text>{{ item.title }}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view
|
||||
class="fourBox"
|
||||
style="padding: 0; padding-bottom: 8rpx"
|
||||
v-if="sbuMedicalTagsList && sbuMedicalTagsList.length > 0"
|
||||
>
|
||||
<view
|
||||
class="childrenBox fourIcon flexbox"
|
||||
style="justify-content: space-around"
|
||||
>
|
||||
<div
|
||||
class="item flexbox"
|
||||
@click="curseClickJump(item)"
|
||||
v-for="(item, index) in sbuMedicalTagsList"
|
||||
:key="index"
|
||||
>
|
||||
<image
|
||||
:src="item.icon"
|
||||
mode="aspectFit"
|
||||
v-if="item.icon != '' && item.icon != null"
|
||||
></image>
|
||||
<view class="fourBox" style="padding: 0; padding-bottom: 8rpx"
|
||||
v-if="sbuMedicalTagsList && sbuMedicalTagsList.length > 0">
|
||||
<view class="childrenBox fourIcon flexbox" style="justify-content: space-around">
|
||||
<div class="item flexbox" @click="curseClickJump(item)" v-for="(item, index) in sbuMedicalTagsList"
|
||||
:key="index">
|
||||
<image :src="item.icon" mode="aspectFit" v-if="item.icon != '' && item.icon != null"></image>
|
||||
<text>{{ item.title }}</text>
|
||||
</div>
|
||||
</view>
|
||||
</view></view
|
||||
>
|
||||
</view>
|
||||
</view>
|
||||
<view class="" v-if="showCountDown" style="padding: 0 10rpx">
|
||||
<view class="flex_box flex_between align-items_box learnBox homeTestBox">
|
||||
<text>考试进行中</text>
|
||||
<view class="">
|
||||
<uni-countdown
|
||||
@timeup="timeup"
|
||||
:font-size="20"
|
||||
:show-day="false"
|
||||
:hour="timeDif.hour"
|
||||
:minute="timeDif.minutes"
|
||||
:second="timeDif.second"
|
||||
color="#fff"
|
||||
splitorColor="#fff"
|
||||
/>
|
||||
<uni-countdown @timeup="timeup" :font-size="20" :show-day="false" :hour="timeDif.hour"
|
||||
:minute="timeDif.minutes" :second="timeDif.second" color="#fff" splitorColor="#fff" />
|
||||
</view>
|
||||
<view class="">
|
||||
<text
|
||||
class="small_btn retake border_radius_10"
|
||||
@click="continueTest(examId, classId)"
|
||||
>继续考试</text
|
||||
>
|
||||
<text class="small_btn retake border_radius_10" @click="continueTest(examId, classId)">继续考试</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -137,18 +84,10 @@
|
||||
<text>观看记录</text>
|
||||
</view>
|
||||
<view class="learn flexbox">
|
||||
<view
|
||||
class="item"
|
||||
v-for="(item, index) in learnList"
|
||||
:key="index"
|
||||
@click="onPageJump('/pages/course/courseDetail', item.id)"
|
||||
>
|
||||
<view class="item" v-for="(item, index) in learnList" :key="index"
|
||||
@click="onPageJump('/pages/course/courseDetail', item.id)">
|
||||
<view class="img" style="overflow: hidden">
|
||||
<image
|
||||
v-if="item.image && item.image != ''"
|
||||
:src="item.image"
|
||||
mode="aspectFit"
|
||||
></image>
|
||||
<image v-if="item.image && item.image != ''" :src="item.image" mode="aspectFit"></image>
|
||||
<image v-else src="/static/nobg.jpg" mode="widthFix"></image>
|
||||
</view>
|
||||
<view class="txt555">
|
||||
@@ -166,40 +105,22 @@
|
||||
<image src="../../static/class.png" mode="aspectFit"></image>
|
||||
<text>班级列表</text>
|
||||
</view>
|
||||
<view
|
||||
class="moreBtn"
|
||||
@click="onPageJump('/pages/miniClass/allLearningClassList')"
|
||||
>
|
||||
<view class="moreBtn" @click="onPageJump('/pages/miniClass/allLearningClassList')">
|
||||
<text>更多班级</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="classItemBox uni-margin-wrap">
|
||||
<view class="uni-margin-wrap">
|
||||
<swiper
|
||||
class="swiper"
|
||||
circular
|
||||
:indicator-dots="false"
|
||||
:autoplay="true"
|
||||
interval="3000"
|
||||
duration="500"
|
||||
>
|
||||
<swiper class="swiper" circular :indicator-dots="false" :autoplay="true" interval="3000"
|
||||
duration="500">
|
||||
<swiper-item v-for="(item, index) in classList" :key="index">
|
||||
<view
|
||||
class="classItem flex_box"
|
||||
@click="onPageJump('/pages/miniClass/classInfo', item.id)"
|
||||
>
|
||||
<view class="classItem flex_box"
|
||||
@click="onPageJump('/pages/miniClass/classInfo', item.id)">
|
||||
<view class="img" style="overflow: hidden">
|
||||
<image
|
||||
v-if="item.icon && item.icon != ''"
|
||||
:src="item.icon"
|
||||
mode="aspectFit"
|
||||
></image>
|
||||
<image
|
||||
v-else
|
||||
src="@/static/my_04.png"
|
||||
mode="widthFix"
|
||||
></image>
|
||||
<image v-if="item.icon && item.icon != ''" :src="item.icon" mode="aspectFit">
|
||||
</image>
|
||||
<image v-else src="@/static/my_04.png" mode="widthFix"></image>
|
||||
</view>
|
||||
<view class="textBox flex_box">
|
||||
<view class="">
|
||||
@@ -228,22 +149,15 @@
|
||||
</view>
|
||||
<!-- 健康超市 -->
|
||||
<view class="supermarketBox" v-if="tjProList.length > 0">
|
||||
<view
|
||||
class="hightLightTitleBox"
|
||||
@click="onPageJump('/pages/course/healthMarket', 2, '健康超市')"
|
||||
>
|
||||
<view class="hightLightTitleBox" @click="onPageJump('/pages/course/healthMarket', 2, '健康超市')">
|
||||
<text>健康超市</text>
|
||||
</view>
|
||||
<view class="supermarket">
|
||||
<view class="borderbb">
|
||||
<view class="main">
|
||||
<view class="flexbox">
|
||||
<view
|
||||
class="item"
|
||||
v-for="(item, index) in tjProList"
|
||||
:key="index"
|
||||
@click="goGoodsDetail(item, 0)"
|
||||
>
|
||||
<view class="item" v-for="(item, index) in tjProList" :key="index"
|
||||
@click="goGoodsDetail(item, 0)">
|
||||
<view class="imgcontainer">
|
||||
<image :src="item.productImages" mode="aspectFit"></image>
|
||||
</view>
|
||||
@@ -251,10 +165,7 @@
|
||||
{{ item.productName }}
|
||||
</view>
|
||||
|
||||
<view
|
||||
class="price"
|
||||
v-if="item.activityPrice && item.activityPrice > 0"
|
||||
>
|
||||
<view class="price" v-if="item.activityPrice && item.activityPrice > 0">
|
||||
¥{{ item.activityPrice }}
|
||||
</view>
|
||||
<view class="price" v-else> ¥{{ item.price }} </view>
|
||||
@@ -280,30 +191,23 @@
|
||||
</view>
|
||||
<scroll-view class="scroll-view_H" scroll-x="true">
|
||||
<!-- <view class=""> -->
|
||||
<view
|
||||
class="item"
|
||||
v-for="(item, index) in seckillList"
|
||||
:key="index"
|
||||
@click="goGoodsDetail(item, 1)"
|
||||
>
|
||||
<view class="item" v-for="(item, index) in seckillList" :key="index"
|
||||
@click="goGoodsDetail(item, 1)">
|
||||
<view class="imgcontainer">
|
||||
<image :src="item.productImages" mode="aspectFit"></image>
|
||||
</view>
|
||||
<view class="name">
|
||||
{{ item.productName }}
|
||||
</view>
|
||||
<view
|
||||
class="price"
|
||||
v-if="item.activityPrice && item.activityPrice > 0"
|
||||
>
|
||||
¥{{ item.activityPrice }}
|
||||
</view>
|
||||
<view class="price" v-else> ¥{{ item.price }} </view>
|
||||
|
||||
<view class="price"> ¥{{ item.price }} </view>
|
||||
<view class="fall">
|
||||
<text class="mprice">¥{{ item.price }}</text>
|
||||
<text class="cprice"
|
||||
>直降<br />¥{{ item.price - item.activityPrice }}</text
|
||||
>
|
||||
<text class="mprice">¥{{
|
||||
item.activityPrice && item.activityPrice > 0
|
||||
? item.activityPrice
|
||||
: item.price
|
||||
}}</text>
|
||||
<text class="cprice">直降<br />¥{{ item.price - item.activityPrice }}</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
@@ -320,20 +224,9 @@
|
||||
<u-icon name="volume-fill" color="#2979ff" size="26"></u-icon>
|
||||
</view>
|
||||
<view class="newscoll">
|
||||
<swiper
|
||||
class="swiper"
|
||||
interval="5000"
|
||||
circular
|
||||
autoplay
|
||||
vertical
|
||||
indicator-dots="false"
|
||||
>
|
||||
<swiper-item
|
||||
class="item"
|
||||
v-for="(item, index) in newsList"
|
||||
:key="index"
|
||||
@click="newsClick(item)"
|
||||
>
|
||||
<swiper class="swiper" interval="5000" circular autoplay vertical indicator-dots="false">
|
||||
<swiper-item class="item" v-for="(item, index) in newsList" :key="index"
|
||||
@click="newsClick(item)">
|
||||
<view class="swiper-item">{{ item.title }}</view>
|
||||
</swiper-item>
|
||||
</swiper>
|
||||
@@ -348,20 +241,12 @@
|
||||
<text>精彩试听</text>
|
||||
</view>
|
||||
<view class="learn flexbox shiting">
|
||||
<view
|
||||
class="item"
|
||||
v-for="(item, index) in tryListenList"
|
||||
:key="index"
|
||||
@click="
|
||||
<view class="item" v-for="(item, index) in tryListenList" :key="index" @click="
|
||||
onPageJump('/pages/course/courseDetail', item.id, item.title)
|
||||
"
|
||||
>
|
||||
">
|
||||
<view class="imgcontainer">
|
||||
<image
|
||||
v-if="item.image == '' || !item.image"
|
||||
src="@/static/nobg.jpg"
|
||||
mode="aspectFit"
|
||||
></image>
|
||||
<image v-if="item.image == '' || !item.image" src="@/static/nobg.jpg" mode="aspectFit">
|
||||
</image>
|
||||
<image v-else :src="item.image" mode="aspectFit"></image>
|
||||
</view>
|
||||
<view class="buyItems flexbox">
|
||||
@@ -375,19 +260,12 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="moreBox shiting">
|
||||
<text @click="onPageJump('/pages/course/tryListen', 1, '精彩试听')"
|
||||
>更多试听</text
|
||||
>
|
||||
<text @click="onPageJump('/pages/course/tryListen', 1, '精彩试听')">更多试听</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view>
|
||||
<u-back-top
|
||||
:scroll-top="scrollTop"
|
||||
bottom="60"
|
||||
:customStyle="bgiStyle"
|
||||
:iconStyle="iconStyle"
|
||||
></u-back-top>
|
||||
<u-back-top :scroll-top="scrollTop" bottom="60" :customStyle="bgiStyle" :iconStyle="iconStyle"></u-back-top>
|
||||
</view>
|
||||
<!-- 应对华为审核,去掉app跳转 -->
|
||||
<view class="appJump">
|
||||
@@ -419,10 +297,7 @@
|
||||
<!-- 公共组件-每个页面必须引入 -->
|
||||
<public-module></public-module>
|
||||
<z-navigation></z-navigation>
|
||||
<common-advertisement
|
||||
ref="commonAdvertisement"
|
||||
:list="advertisementList"
|
||||
></common-advertisement>
|
||||
<common-advertisement ref="commonAdvertisement" :list="advertisementList"></common-advertisement>
|
||||
<!-- <music-play :playList="myList"></music-play> -->
|
||||
</view>
|
||||
</template>
|
||||
@@ -448,7 +323,10 @@ import $http from "@/config/requestConfig.js";
|
||||
import updata from "@/uni_modules/uni-upgrade-center-app/utils/check-update";
|
||||
import advertisement from "@/uni_modules/uni-upgrade-center-app/utils/check-update";
|
||||
// #endif
|
||||
import { mapState, mapMutations } from "vuex";
|
||||
import {
|
||||
mapState,
|
||||
mapMutations
|
||||
} from "vuex";
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
@@ -656,7 +534,10 @@ export default {
|
||||
.then(async (res) => {
|
||||
console.log("考试中", res);
|
||||
if (res.code == 0 && res.classExamUser != null) {
|
||||
obj = { ...res.classExamUser, planEndTime: res.planEndTime };
|
||||
obj = {
|
||||
...res.classExamUser,
|
||||
planEndTime: res.planEndTime
|
||||
};
|
||||
} else {
|
||||
obj = undefined;
|
||||
}
|
||||
@@ -822,6 +703,7 @@ export default {
|
||||
if (res.code == 0) {
|
||||
if (res.result.records.length > 0) {
|
||||
this.seckillList = res.result.records;
|
||||
console.log(this.seckillList, '111111111111111ss')
|
||||
} else {
|
||||
this.seckillList = [];
|
||||
}
|
||||
@@ -1044,8 +926,7 @@ export default {
|
||||
//苹果
|
||||
//因为ios查不到B款app在ios系统手机里面,其实下载了,也是检测不到,所以就不检测了
|
||||
//直接打开B款app,B款app没有的话,会进入回调报错,我们在回调去打开下载链接
|
||||
plus.runtime.launchApplication(
|
||||
{
|
||||
plus.runtime.launchApplication({
|
||||
action: "${schemes}://",
|
||||
},
|
||||
function(e) {
|
||||
@@ -1075,20 +956,25 @@ export default {
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
@import "@/style/mixin.scss";
|
||||
|
||||
.classItemBox {
|
||||
.jianjie {
|
||||
@include bov(2);
|
||||
}
|
||||
}
|
||||
|
||||
.nomargin {
|
||||
margin: 0 !important;
|
||||
}
|
||||
|
||||
.nopadding {
|
||||
padding: 0 !important;
|
||||
}
|
||||
|
||||
.noRadius {
|
||||
border-radius: 0 !important;
|
||||
}
|
||||
|
||||
.appJump {
|
||||
position: fixed;
|
||||
right: 0;
|
||||
@@ -1381,10 +1267,12 @@ export default {
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
|
||||
.moreBtn {
|
||||
color: $themeColor;
|
||||
font-size: 26rpx;
|
||||
}
|
||||
|
||||
.learnBox {
|
||||
background-color: #fff;
|
||||
margin-top: 10px;
|
||||
@@ -1393,6 +1281,7 @@ export default {
|
||||
@include pleft_right(10px);
|
||||
@include mshadow(10px, 1);
|
||||
margin-bottom: 10px;
|
||||
|
||||
.img {
|
||||
width: 100%;
|
||||
height: 180rpx;
|
||||
@@ -1400,10 +1289,12 @@ export default {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.learn {
|
||||
justify-content: space-between;
|
||||
margin-top: 20rpx;
|
||||
flex-wrap: wrap;
|
||||
|
||||
.item {
|
||||
width: 48%;
|
||||
|
||||
@@ -1465,10 +1356,12 @@ export default {
|
||||
height: 80rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.homeTestBox {
|
||||
background-color: #ffaa00;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.children_cate {
|
||||
justify-content: space-evenly;
|
||||
padding: 0 10rpx;
|
||||
@@ -1639,6 +1532,7 @@ export default {
|
||||
padding: 30rpx 20rpx;
|
||||
position: relative;
|
||||
padding-bottom: 40rpx;
|
||||
|
||||
// margin-bottom:60rpx;
|
||||
// height: 400rpx; margin-bottom: 130rpx;
|
||||
.icon_hua_1 {
|
||||
@@ -1722,6 +1616,7 @@ export default {
|
||||
border-bottom-right-radius: 20upx;
|
||||
}
|
||||
}
|
||||
|
||||
.newLeve2 {
|
||||
// box-shadow: 0px 0px 6px 0px rgba(0, 0, 0, 0.3);
|
||||
background-color: #fff;
|
||||
@@ -1730,6 +1625,7 @@ export default {
|
||||
padding-top: 4rpx;
|
||||
// padding-bottom:2rpx;
|
||||
}
|
||||
|
||||
.home_nar {
|
||||
margin: 10px 0;
|
||||
justify-content: space-between;
|
||||
@@ -1774,12 +1670,14 @@ export default {
|
||||
|
||||
.hn_cl_tit.active {
|
||||
background-color: #e4eefa;
|
||||
|
||||
// position: relative;
|
||||
text {
|
||||
color: #3361a5;
|
||||
// font-weight: bold;
|
||||
}
|
||||
}
|
||||
|
||||
// .hn_cl_tit.active::after{
|
||||
// display: block;
|
||||
// transform: rotate(180deg);
|
||||
@@ -1872,44 +1770,54 @@ export default {
|
||||
.imgcontainer {
|
||||
background-color: $imgBg;
|
||||
}
|
||||
|
||||
.classItemBox {
|
||||
margin-top: 20rpx;
|
||||
height: 250rpx;
|
||||
|
||||
swiper-item {
|
||||
padding: 10rpx;
|
||||
width: 90% !important;
|
||||
|
||||
.wid90 {
|
||||
width: 90% !important;
|
||||
}
|
||||
|
||||
.classItem {
|
||||
border: 1px solid #eee;
|
||||
border-radius: 10rpx;
|
||||
padding: 10rpx;
|
||||
}
|
||||
|
||||
padding-right: 20rpx;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
}
|
||||
|
||||
.classItem {
|
||||
.className {
|
||||
font-weight: bold;
|
||||
font-size: 32rpx;
|
||||
}
|
||||
|
||||
.textBox {
|
||||
margin-left: 20rpx;
|
||||
flex: 1;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.img {
|
||||
width: 200rpx;
|
||||
height: 200rpx;
|
||||
overflow: hidden;
|
||||
|
||||
imgage {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.retake {
|
||||
border: 1px solid #fff;
|
||||
color: #fff;
|
||||
|
||||
Reference in New Issue
Block a user