|
|
@@ -14,9 +14,9 @@
|
|
|
|
|
|
<view class="scroll-view-css">
|
|
|
<swiper class="swiper " circular :autoplay="true" :interval="3000" :duration="500" :current='BanenerCurrent' @change="onSwiperChange">
|
|
|
- <swiper-item v-for="(item,i) in 3" :key="i">
|
|
|
- <image class="swiper-item" src="@/static/img/my/lqzx-bg.png" mode="scaleToFill"></image>
|
|
|
- <view class="swiper-num fc-f">{{BanenerCurrent + 1}}/3</view>
|
|
|
+ <swiper-item v-for="(item,i) in obj.image" :key="i">
|
|
|
+ <image class="swiper-item" :src="item" mode="aspectFill" @click="lookImg(obj.image,i)"></image>
|
|
|
+ <view class="swiper-num fc-f">{{BanenerCurrent}}/{{obj.image.length}}</view>
|
|
|
</swiper-item>
|
|
|
</swiper>
|
|
|
|
|
|
@@ -26,9 +26,9 @@
|
|
|
|
|
|
<view class="card-money">
|
|
|
<view class="">
|
|
|
- <span class="fs-28 fc-f fw-600">¥</span><span class="fs-48 fc-f fw-600">90.8</span>
|
|
|
+ <span class="fs-28 fc-f fw-600">¥</span><span class="fs-48 fc-f fw-600">{{obj.price||''}}</span>
|
|
|
</view>
|
|
|
- <view class="fs-24 fw-400 fc-f text-line-through">原价100.0</view>
|
|
|
+ <view class="fs-24 fw-400 fc-f text-line-through">原价{{obj.line_price||''}}</view>
|
|
|
</view>
|
|
|
|
|
|
<view class="info-1-time">
|
|
|
@@ -43,20 +43,20 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="card-bottom box-border-box p-24">
|
|
|
- <view class="fs-36 fc-3 fw-600 text-overflow-ellipsis mb-32">巧妙借助猪猪一身雪白的特点巧妙借助猪猪一身雪白的特点巧妙借助猪猪一身雪白的</view>
|
|
|
+ <view class="card-bottom box-border-box">
|
|
|
+ <view class="fs-36 fc-3 fw-600 text-overflow-ellipsis mb-32">{{obj.title||''}}</view>
|
|
|
<view class="jd-f mb-12">
|
|
|
<view class="jd-1"></view>
|
|
|
- <view class="jd-2" :style="{width:setWidth(182,92)+'rpx'}"></view>
|
|
|
+ <view class="jd-2" :style="{width:setWidth(obj.number,obj.sales)+'rpx'}"></view>
|
|
|
</view>
|
|
|
<view class="flex-justify-space align-items-center">
|
|
|
<view class="">
|
|
|
<span class="fs-24 fc-9">已团</span>
|
|
|
- <span class="fs-24 fc-3">90</span>
|
|
|
+ <span class="fs-24 fc-3">{{obj.sales||''}}</span>
|
|
|
</view>
|
|
|
<view class="">
|
|
|
<span class="fs-24 fc-9">剩余</span>
|
|
|
- <span class="fs-24 fc-3">90</span>
|
|
|
+ <span class="fs-24 fc-3">{{obj.number - obj.sales||''}}</span>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -65,10 +65,7 @@
|
|
|
<image class="pwxq" src="@/static/img/buy/tgxq.png" mode="scaleToFill"></image>
|
|
|
|
|
|
<view class="box-border-box plr-24">
|
|
|
- <view class="box-card box-border-box p-24 fs-30 fc-0">
|
|
|
- 套餐内日描述套餐内日描述套餐内日描述套餐 内日描述套餐内日描述套餐内日描述套餐内日描述套餐内日描述
|
|
|
- <image src="../static/img/my/bg.png" mode=""></image>
|
|
|
- </view>
|
|
|
+ <view class="box-card box-border-box p-24 fs-30 fc-0" v-html="obj.content"></view>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
@@ -76,7 +73,7 @@
|
|
|
<view class="flex-justify-space">
|
|
|
<view class="align-items-flex-end box-1">
|
|
|
<span class="fs-28 fc-FB3D03 fw-600">¥</span>
|
|
|
- <span class="fs-44 fc-FB3D03 fw-600">19.5</span>
|
|
|
+ <span class="fs-44 fc-FB3D03 fw-600">{{obj.deposit||''}}</span>
|
|
|
</view>
|
|
|
<view class="text-align-center box-2 fs-32 fc-f fw-600" @click="toSave()">{{bText}}</view>
|
|
|
</view>
|
|
|
@@ -85,10 +82,12 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+ import {groupInfo} from '@/api/groupOrder.js';
|
|
|
import tools from "@/service/tools";
|
|
|
export default {
|
|
|
data(){
|
|
|
return{
|
|
|
+ id:"",
|
|
|
BanenerCurrent:1,
|
|
|
showTime:false,
|
|
|
isTimeEnd:false,
|
|
|
@@ -99,12 +98,34 @@
|
|
|
m:'',
|
|
|
s:'',
|
|
|
},
|
|
|
+
|
|
|
+ obj:{
|
|
|
+ image:[],
|
|
|
+ },
|
|
|
+ }
|
|
|
+ },
|
|
|
+ onLoad(e) {
|
|
|
+ if(e.id){
|
|
|
+ this.id = e.id;
|
|
|
+ this.getInfo();
|
|
|
}
|
|
|
},
|
|
|
onShow() {
|
|
|
- this.setCountDown('2024-6-21 12:45:00');
|
|
|
+
|
|
|
},
|
|
|
methods:{
|
|
|
+ getInfo(){
|
|
|
+ let school_id = uni.getStorageSync('school_id');
|
|
|
+ groupInfo({school_id:school_id,id:this.id}).then((res)=>{
|
|
|
+ if(res.code === 1){
|
|
|
+ this.obj = res.data;
|
|
|
+ this.setCountDown(this.obj.end_time);
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+ lookImg(list,i){
|
|
|
+ tools.lookBigImg(i,list);
|
|
|
+ },
|
|
|
toBack(){
|
|
|
tools.leftClick()
|
|
|
},
|
|
|
@@ -150,7 +171,7 @@
|
|
|
toSave(){
|
|
|
if(!this.isTimeEnd){
|
|
|
uni.navigateTo({
|
|
|
- url:'/pages-buy/save-order'
|
|
|
+ url:'/pages-buy/save-order?id=' + this.obj.id
|
|
|
})
|
|
|
}
|
|
|
},
|
|
|
@@ -227,6 +248,7 @@
|
|
|
width: 100%;
|
|
|
position: relative;
|
|
|
height: 386rpx;
|
|
|
+
|
|
|
.card-top{
|
|
|
width: 100%;
|
|
|
height: 148rpx;
|
|
|
@@ -247,6 +269,7 @@
|
|
|
}
|
|
|
}
|
|
|
.card-bottom{
|
|
|
+ padding: 24rpx 24rpx 0 24rpx;
|
|
|
width: 702rpx;
|
|
|
height: 234rpx;
|
|
|
border-radius: 20rpx;
|