|
|
@@ -1,7 +1,6 @@
|
|
|
<!-- index.wxml -->
|
|
|
<scroll-view class="scrollarea" id="scroll-view" scroll-y="{{popupShow ? false : true}}" type="list" bindscroll="onScrollView" bounces="{{ false }}" enhanced enable-passive="true" scroll-into-view="{{scrolIntoView}}" scroll-top="{{ scrollTop }}">
|
|
|
<view class="container">
|
|
|
- <!-- <view class="topShadow"></view> -->
|
|
|
<view class="slider-count">{{current + 1}}/{{imgList.length + 1}}</view>
|
|
|
<swiper class="bannerSwiper" indicator-dots="{{false}}" autoplay="{{autoplay}}" interval="{{interval}}" duration="{{duration}}" bindchange="changeSwiper">
|
|
|
<swiper-item>
|
|
|
@@ -9,10 +8,6 @@
|
|
|
<block wx:if="{{bannerImageloaded}}">
|
|
|
<image class="bg" src="https://oss.dayaedu.com/ktyq/1738923944096.png"></image>
|
|
|
<video style="height: {{videoHeight}};" object-fit="contain" bindplay="onBannerVideoPlay" picture-in-picture-mode="[]" id="bannerVideo" src="https://oss.dayaedu.com/ktyq/17337413498130cfedaf1.mp4"></video>
|
|
|
- <!-- poster="https://oss.dayaedu.com/ktyq/1738923944096.png" -->
|
|
|
- <!-- https://oss.dayaedu.com/ktyq/17334015356119a704b08.mp4 100M -->
|
|
|
- <!-- https://oss.dayaedu.com/ktyq/1733405365311b760c974.mp4 30M -->
|
|
|
- <!-- https://oss.dayaedu.com/ktyq/17334057618630fc77dba.mp4 60M -->
|
|
|
</block>
|
|
|
<block wx:if="{{ !bannerPlay }}">
|
|
|
<image bindload="onBannerVideoLoad" src="https://oss.dayaedu.com/ktyq/1738923944096.png"></image>
|
|
|
@@ -22,7 +17,6 @@
|
|
|
</swiper-item>
|
|
|
<swiper-item wx:for="{{ imgList }}" wx:key="index">
|
|
|
<view class="swiper-item ">
|
|
|
- <!-- bind:tap="onPreivewBannerImg" -->
|
|
|
<image src="{{ item }}" data-src="{{ item }}"></image>
|
|
|
</view>
|
|
|
</swiper-item>
|
|
|
@@ -41,16 +35,6 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <!-- <view class="scroll-current-item" wx:if="{{!isOverSaled && selected.id }}">
|
|
|
- 您已选中:
|
|
|
- <text>{{ selected.typeName }}</text>
|
|
|
- ,合计:
|
|
|
- <text>¥ {{ selected.showSalePrice }}</text>
|
|
|
- <block wx:if="{{ selected.originalPrice > selected.salePrice }}">
|
|
|
- ,已优惠:
|
|
|
- <text>¥ {{ selected.discountPrice }}</text>
|
|
|
- </block>
|
|
|
- </view> -->
|
|
|
<view class="goodsSection">
|
|
|
<view class="title">
|
|
|
<view class="before"></view>
|
|
|
@@ -62,16 +46,6 @@
|
|
|
<image id="type1" mode="widthFix" src="https://oss.dayaedu.com/ktyq/1739353790443.png" data-src="https://oss.dayaedu.com/ktyq/1739353790443.png"></image>
|
|
|
<image mode="widthFix" src="https://oss.dayaedu.com/ktyq/1739353815962.png" data-src="https://oss.dayaedu.com/ktyq/1739353815962.png"></image>
|
|
|
<image mode="widthFix" src="https://oss.dayaedu.com/ktyq/1739353843494.png" data-src="https://oss.dayaedu.com/ktyq/1739353843494.png"></image>
|
|
|
- <!-- <image mode="widthFix" src="https://oss.dayaedu.com/ktyq/173339759143825859f65.png" data-src="https://oss.dayaedu.com/ktyq/173339759143825859f65.png"></image> -->
|
|
|
- <!-- <view id="type3" class="liu-section">
|
|
|
- <view class="liu-img1">
|
|
|
- <image mode="widthFix" src="https://oss.dayaedu.com/ktyq/1733457722973.png" data-src="https://oss.dayaedu.com/ktyq/1733457722973.png"></image>
|
|
|
- </view>
|
|
|
- <view class="liu-img2">
|
|
|
- <image mode="widthFix" src="https://oss.dayaedu.com/ktyq/173340695604938755d8b.png" data-src="https://oss.dayaedu.com/ktyq/173340695604938755d8b.png"></image>
|
|
|
- </view>
|
|
|
- </view> -->
|
|
|
- <!-- <image id="type2" class="type2s" mode="widthFix" src="https://oss.dayaedu.com/ktyq/1732617388991.png" data-src="https://oss.dayaedu.com/ktyq/1732617388991.png"></image> -->
|
|
|
<view id="type3" class="type2s title-section">
|
|
|
<image src="./images/title1.png" class="title"></image>
|
|
|
<view class="topSection">
|
|
|
@@ -80,12 +54,8 @@
|
|
|
</view>
|
|
|
<view class="titleVideoSection">
|
|
|
<view class="video-section">
|
|
|
- <!-- <video object-fit="contain" show-center-play-btn="{{false}}" picture-in-picture-mode="[]" controls="{{titleControls}}" bindplay="onTitlePlay" class="videoItem" id="titleVideo" src="https://oss.dayaedu.com/ktyq/1733395673461fc6123ca.mp4"></video> -->
|
|
|
- <!-- <image id="type2" mode="widthFix" src="https://oss.dayaedu.com/ktyq/1739353862133.png" data-src="https://oss.dayaedu.com/ktyq/1739353862133.png"></image> -->
|
|
|
<image mode="widthFix" bind:tap="onPreivewDetailImg2" src="https://oss.dayaedu.com/ktyq/03/1772461866051.png" data-src="https://oss.dayaedu.com/ktyq/03/1772461866051.png" />
|
|
|
</view>
|
|
|
-
|
|
|
- <!-- <image wx:if="{{!titleControls}}" bind:tap="onTItleVideoPlay" src="./images/icon-video.png" class="icon-video"></image> -->
|
|
|
</view>
|
|
|
<view class="content2">实践知真章,合作学校仅用两节课便完成母亲节主题演奏</view>
|
|
|
</view>
|
|
|
@@ -114,107 +84,69 @@
|
|
|
</view>
|
|
|
<view class="btnSection">
|
|
|
<button bind:tap="onBuyShop" type="primary" disabled="{{ isOverSaled }}">立即购买</button>
|
|
|
- <view class="btnInnerFree" wx:if="{{ selected.giftFlag }}">
|
|
|
- 当天激活
|
|
|
- <text>赠{{selected.giftLongTime}}</text>
|
|
|
- </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
+
|
|
|
+ <!-- 购买弹窗 -->
|
|
|
<view class="popup-section" wx:if="{{popupShow}}">
|
|
|
<view class="popup-mask" bind:tap="onClose"></view>
|
|
|
<view class="popup-container">
|
|
|
<image catch:tap="onClose" src="./images/icon-close.png" class="iconClose"></image>
|
|
|
- <view class="shop-section">
|
|
|
- <view class="main-goods">
|
|
|
- <view class="showPrice">
|
|
|
- <view class="left">
|
|
|
- <view class="left-top">
|
|
|
- <image class="t1" src="./images/t1.png"></image>
|
|
|
- </view>
|
|
|
- <view class="left-bottom">
|
|
|
- <view class="currentPrice">
|
|
|
- <text class="stuff">¥</text>
|
|
|
- <text class="priceZ">{{ selected.integerPart || 0 }}</text>
|
|
|
- <text class="priceF">.{{ selected.decimalPart || '00' }}</text>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <view class="right">
|
|
|
- <view class="right-top">
|
|
|
- <block wx:if="{{ selected.originalPrice > selected.salePrice }}">
|
|
|
- <view class="originPrice">日常价<text>¥{{ selected.originalPrice || '0.00' }}</text></view>
|
|
|
- <text style="padding: 0 6rpx">|</text>
|
|
|
- </block>
|
|
|
- <view class="saleNum">已售10W+</view>
|
|
|
- </view>
|
|
|
- <view class="right-bottom">
|
|
|
- <view class="shopName">{{ selected.name }}</view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <view class="goodsInfo">
|
|
|
- <text class="desc">选择期限</text>
|
|
|
- <view class="goodsList">
|
|
|
- <view wx:for="{{ list }}" wx:key="index" class="goodsItem {{ item.id == selected.id ? 'selected' : '' }} {{ item.stockNum <= 0 ? 'nosale' : '' }}" bind:tap="onSelectGoods" data-id="{{ item.id }}">
|
|
|
- <image class="select-arrow" src="./images/icon-down-arrow.png"></image>
|
|
|
- <image class="imgSale" wx:if="{{ item.stockNum <= 0 }}" src="./images/nosale.png"></image>
|
|
|
- <image class="pic" src="{{ item.pic }}"></image>
|
|
|
- <view class="nameorprice">
|
|
|
- <view class="name">{{ item.typeName }}</view>
|
|
|
- <view class="price">¥{{ item.showSalePrice }}</view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- <!-- <image wx:if="{{ list.length > 3 }}" bind:tap="onLookMore" class="iconMore" src="./images/icon-more.png"></image> -->
|
|
|
+
|
|
|
+ <!-- 用户类型切换 -->
|
|
|
+ <view class="user-type-tabs">
|
|
|
+ <view class="tab-item {{ userTypes === 'student' ? 'active' : '' }}" bind:tap="onSwitchUserType" data-type="student">学生端</view>
|
|
|
+ <view class="tab-item {{ userTypes === 'teacher' ? 'active' : '' }}" bind:tap="onSwitchUserType" data-type="teacher">老师端</view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <!-- 商品信息卡片 -->
|
|
|
+ <view class="product-info-card">
|
|
|
+ <view class="product-badge">
|
|
|
+ <text class="duration-text">{{ selected.typeName || '14天' }}</text>
|
|
|
+ <text class="user-label">学生端</text>
|
|
|
</view>
|
|
|
- <!-- <view class="combo-section">
|
|
|
- <view class="combo-title">
|
|
|
- 超值组合,乐器随心选
|
|
|
- <text class="select-one">(可选1件)</text>
|
|
|
+ <view class="product-detail">
|
|
|
+ <view class="product-name">{{ selected.name || '老师端-器乐数字AI畅享卡' }}</view>
|
|
|
+ <view class="price-line">
|
|
|
+ <text class="price-tag">到手价</text>
|
|
|
+ <text class="price-num">¥{{ selected.showSalePrice || '388.00' }}</text>
|
|
|
</view>
|
|
|
- <view class="combo-tips">乐器图片仅供参考,具体产品请以实物为准</view>
|
|
|
- <view class="combo-list">
|
|
|
- <view class="combo-item {{ item.id === selectInstrumentId ? 'active' : '' }}" wx:for="{{ instrumentList }}" wx:key="index" bind:tap="onSelectInstrument" data-id="{{ item.id }}">
|
|
|
- <image src="./images/check-good.png" wx:if="{{ item.id === selectInstrumentId }}" class="check-good" />
|
|
|
- <image class="combo-item-img" src="{{ item.pic }}"></image>
|
|
|
- <view class="combo-item-name">{{ item.name }}</view>
|
|
|
- <view class="combo-item-price">¥ {{ item.showSalePrice }}</view>
|
|
|
- <view class="combo-item-origin">日常价<text>¥ {{ item.showOriginalPrice }}</text></view>
|
|
|
- </view>
|
|
|
+ <view class="origin-line">
|
|
|
+ <text class="origin-tag">日常价</text>
|
|
|
+ <text class="origin-num">¥{{ selected.originalPrice || '2900.00' }}</text>
|
|
|
+ <text class="divider">|</text>
|
|
|
+ <text class="sold-count">已售10W+</text>
|
|
|
</view>
|
|
|
- </view> -->
|
|
|
- </view>
|
|
|
- <view class="popupBottom">
|
|
|
- <!-- 有选择商品的时候 -->
|
|
|
- <view class="current-item" wx:if="{{!isOverSaled && selected.id}}">
|
|
|
- <view class="current-item-text">您已选择:</view>
|
|
|
- <text>{{ formatSelectGood.typeName }}</text>
|
|
|
- ,合计:
|
|
|
- <text>¥ {{ formatSelectGood.showSalePrice }}</text>
|
|
|
- <block wx:if="{{ formatSelectGood.originalPrice > formatSelectGood.salePrice }}">
|
|
|
- ,已省<text style="padding-left: 6rpx;">¥ {{ formatSelectGood.discountPrice }}</text>
|
|
|
- </block>
|
|
|
</view>
|
|
|
- <view class="btnGroup">
|
|
|
- <view class="left-section">
|
|
|
- <image mode="widthFix" src="./images/icon1.png" class="icon1" />
|
|
|
- <view class="currentPrice2">
|
|
|
- <text class="stuff">¥</text>
|
|
|
- <text class="priceZ">{{ formatSelectGood.integerPart || "0" }}</text>
|
|
|
- <text class="priceF">.{{ formatSelectGood.decimalPart || '00' }}</text>
|
|
|
- </view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <!-- 选择期限 -->
|
|
|
+ <view class="period-select-section">
|
|
|
+ <view class="section-label">选择期限</view>
|
|
|
+ <view class="period-options">
|
|
|
+ <view wx:for="{{ periodList }}" wx:key="value" class="period-btn {{ selectedPeriod === item.value ? 'active' : '' }}" bind:tap="onSelectPeriod" data-value="{{ item.value }}">
|
|
|
+ {{ item.label }}
|
|
|
</view>
|
|
|
- <button type="primary" catch:tap="onSubmit">去结算</button>
|
|
|
- <!-- <view class="btnInnerFree" wx:if="{{ selected.giftFlag }}">
|
|
|
- 当天激活
|
|
|
- <text>赠{{selected.giftLongTime}}</text>
|
|
|
- </view> -->
|
|
|
</view>
|
|
|
</view>
|
|
|
+
|
|
|
+ <!-- 额外赠送 -->
|
|
|
+ <view class="gift-section" wx:if="{{ showBonusGift }}">
|
|
|
+ <text class="gift-desc">满1年额外赠送2个月</text>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <!-- 底部结算栏 -->
|
|
|
+ <view class="settlement-bar">
|
|
|
+ <view class="select-summary">
|
|
|
+ <text class="summary-label">选中:</text>
|
|
|
+ <text class="summary-content">{{ userTypes === 'teacher' ? '老师端' : '学生端' }}/{{ selected.typeName || '14天' }},</text>
|
|
|
+ <text class="summary-save">已省¥{{ formatSelectGood.discountPrice || '2512.00' }}</text>
|
|
|
+ </view>
|
|
|
+ <button class="submit-btn" catch:tap="onSubmit">立即购买</button>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<!-- 客服功能 -->
|
|
|
<service wx:if="{{serviceShow}}"></service>
|
|
|
-</scroll-view>
|
|
|
+</scroll-view>
|