|
|
@@ -4,8 +4,8 @@
|
|
|
<!-- <view v-if="isWeiXin" class="shadow">
|
|
|
<image src="/static/image/tabbar/weixinShadow.png" mode="aspectFit"></image>
|
|
|
</view> -->
|
|
|
- <view class="top">
|
|
|
- <view class="title">
|
|
|
+ <view class="main-top">
|
|
|
+ <view class="main-title">
|
|
|
<!-- <view class="play-explain" @tap="$refs.regulation.open()">
|
|
|
<image class="small-img" src="/static/image/new_home/ckgz.png" mode="widthFix"></image>
|
|
|
<text>查看规则</text>
|
|
|
@@ -15,38 +15,38 @@
|
|
|
<text>买家须知</text>
|
|
|
</view> -->
|
|
|
|
|
|
- <view class="kf" @click="zxkf()"><image class="small-img" src="https://www.chaomangdao.com/image/new_home/kf.png" mode="widthFix"></image></view>
|
|
|
+ <view class="service" @click="zxkf()"><image class="main-left-icon" src="https://www.chaomangdao.com/image/new_home/kf.png" mode="widthFix"></image></view>
|
|
|
</view>
|
|
|
- <view class="left-cd">
|
|
|
+ <view class="main-left">
|
|
|
<!-- <view class="details_title_mp3" @click="changePlay">
|
|
|
<image :class="['bjtb', isPlay && 'run']" :src="isPlay ? '/static/image/home/bofang@2x.png' : '/static/image/home/guanbiyinyue@2x.png'" mode="widthFix"></image>
|
|
|
</view> -->
|
|
|
- <view class="oval1" @click="toMyBox()">
|
|
|
- <image class="small-img" src="../../static/image/new_home/tbxg.png" mode="widthFix"></image>
|
|
|
+ <view class="main-left-icon" @click="toMyBox()">
|
|
|
+ <image class="main-left-icon-bg" src="../../static/image/new_home/tbxg.png" mode="widthFix"></image>
|
|
|
<!-- <span>物品盒柜</span> -->
|
|
|
</view>
|
|
|
- <view class="right" @click="wfashuiming()">
|
|
|
- <image class="small-img" src="../../static/image/new_home/wfsm.png" mode="widthFix"></image>
|
|
|
+ <view class="main-left-right" @click="wfashuiming()">
|
|
|
+ <image class="main-left-icon" src="../../static/image/new_home/wfsm.png" mode="widthFix"></image>
|
|
|
<!-- <span>玩法说明</span> -->
|
|
|
</view>
|
|
|
</view>
|
|
|
<lunbobox></lunbobox>
|
|
|
- <view class="loop-container">
|
|
|
+ <view class="banner">
|
|
|
<!-- 图片轮播主区域 -->
|
|
|
- <view class="loop-image-main">
|
|
|
- <view class="box-image-bj"><image src="../../static/image/new_home/box-images-bj.png" mode=""></image></view>
|
|
|
+ <view class="banner-main">
|
|
|
+ <view class="banner-main-bg"><image src="../../static/image/new_home/box-images-bj.png" mode=""></image></view>
|
|
|
<prize-flying v-if="currBox" :box-id="currBox.box_id"></prize-flying>
|
|
|
<!-- 图片轮播 -->
|
|
|
- <image class="arrow arrow-left" src="../../static/image/new_home/arrow-left.png" mode="widthFix" @click="prev"></image>
|
|
|
- <image class="arrow arrow-right" src="../../static/image/new_home/arrow-right.png" mode="widthFix" @click="next"></image>
|
|
|
- <view class="loop-image-warapper">
|
|
|
- <swiper class="swiper" circular :current="loopData.current" @change="loopItemChange($event.detail.current)">
|
|
|
+ <image class="banner-item banner-item-left" src="../../static/image/new_home/arrow-left.png" mode="widthFix" @click="prev"></image>
|
|
|
+ <image class="banner-item banner-item-right" src="../../static/image/new_home/arrow-right.png" mode="widthFix" @click="next"></image>
|
|
|
+ <view class="banner-item-main">
|
|
|
+ <swiper class="banner-swper" circular :current="loopData.current" @change="loopItemChange($event.detail.current)">
|
|
|
<template v-for="(item, index) in loopData.list">
|
|
|
<swiper-item :key="index">
|
|
|
- <view :class="['image-box']">
|
|
|
+ <view :class="['banner-image-box']">
|
|
|
<template>
|
|
|
<image
|
|
|
- :class="['box-banner']"
|
|
|
+ :class="['banner-banner']"
|
|
|
:src="
|
|
|
item.box_banner_images[0].indexOf('http') == -1
|
|
|
? 'https://www.chaomangdao.com' + item.box_banner_images[0]
|
|
|
@@ -66,7 +66,7 @@
|
|
|
<image src="/h5/static/image/new_home/dizhuo.png" mode="heightFix"></image>
|
|
|
</view> -->
|
|
|
<!-- 手指 -->
|
|
|
- <view class="finger"><image src="../../static/image/new_home/sz.png" mode="heightFix"></image></view>
|
|
|
+ <view class="fingerAnimation"><image src="../../static/image/new_home/sz.png" mode="heightFix"></image></view>
|
|
|
<!-- 盲盒奖品 -->
|
|
|
<!-- <view class="prize" @click="goCurrMessage()">
|
|
|
<image src="/h5/static/image/new_home/mhjp.png" mode="heightFix"></image>
|
|
|
@@ -76,25 +76,10 @@
|
|
|
<view class="price-container">
|
|
|
<text class="price">¥{{ price }}.00元/个</text>
|
|
|
</view>
|
|
|
- <!-- 文字轮播 -->
|
|
|
- <!-- <view class="loop-label-warapper">
|
|
|
- <swiper class="swiper" :indicator-dots="true" :previous-margin="loopData.margin" :next-margin="loopData.margin"
|
|
|
- :current="loopData.current" @change="loopItemChange($event.detail.current)">
|
|
|
- <template v-for="(item, index) in loopData.list">
|
|
|
- <swiper-item :key="index" :class="[loopData.current == index && 'label-active']">
|
|
|
- <view :class="['label-box']" @click="loopItemChange(index)">
|
|
|
- <view :class="['loop-label']">
|
|
|
- <text>{{item.box_name}}</text>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </swiper-item>
|
|
|
- </template>
|
|
|
- </swiper>
|
|
|
- </view> -->
|
|
|
<!-- 图片文字轮播 -->
|
|
|
- <view class="loop-label-warapper">
|
|
|
+ <view class="fontbanner">
|
|
|
<swiper
|
|
|
- class="swiper"
|
|
|
+ class="fontbanner-swiper"
|
|
|
circular
|
|
|
:indicator-dots="true"
|
|
|
:previous-margin="loopData.margin"
|
|
|
@@ -104,12 +89,12 @@
|
|
|
>
|
|
|
<template v-for="(item, index) in loopData.list">
|
|
|
<swiper-item :key="index" :class="[loopData.current == index && 'label-active']">
|
|
|
- <view :class="['label-box']" @click="loopItemChange(index)">
|
|
|
- <view :class="['loop-image-label']">
|
|
|
+ <view :class="['fontbanner-box']" @click="loopItemChange(index)">
|
|
|
+ <view :class="['fontbanner-bg-box']">
|
|
|
<image
|
|
|
:src="item.box_foot_images.indexOf('http') == -1 ? 'https://www.chaomangdao.com' + item.box_foot_images : item.box_foot_images"
|
|
|
mode="aspectFit"
|
|
|
- class="loop-image-label-img"
|
|
|
+ class="fontbanner-bg-box-img"
|
|
|
></image>
|
|
|
<text>{{ item.box_name }}</text>
|
|
|
</view>
|
|
|
@@ -124,7 +109,7 @@
|
|
|
<view class="bottom">
|
|
|
<view>
|
|
|
<!-- 下方按钮区 -->
|
|
|
- <view class="button-container">
|
|
|
+ <view class="btn">
|
|
|
<view class="side-btn" @click="haveTry()"><image src="/static/image/new_home/swmhan.png" mode="widthFix"></image></view>
|
|
|
<view class="center-btn" @click="selectNum()">
|
|
|
<image src="/static/image/new_home/khan.png" mode="widthFix"></image>
|
|
|
@@ -151,16 +136,16 @@
|
|
|
</view>
|
|
|
</view> -->
|
|
|
</view>
|
|
|
- <uni-popup ref="num-popup" type="bottom" :mask-click="false">
|
|
|
- <view class="num-popup">
|
|
|
+ <uni-popup ref="choose-number" type="bottom" :mask-click="false">
|
|
|
+ <view class="choose-number">
|
|
|
<view class="popup-close" @click="closeNumPopup"><image src="https://www.chaomangdao.com/image/home/guanbi@2x.png" mode=""></image></view>
|
|
|
- <view class="num-button-group">
|
|
|
+ <view class="number-item">
|
|
|
<view class="num-button" @click="createOder(1)">
|
|
|
<image src="../../static/image/new_home/btn-1.png" mode="widthFix"></image>
|
|
|
<text>一发入魂</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="num-button-group">
|
|
|
+ <view class="number-item">
|
|
|
<view class="num-button" @click="createOder(5)">
|
|
|
<image src="../../static/image/new_home/btn-3.png" mode="widthFix"></image>
|
|
|
<text>五连绝世</text>
|
|
|
@@ -179,18 +164,18 @@
|
|
|
</uni-popup>
|
|
|
<uni-popup ref="regulation" :mask-click="false">
|
|
|
<view class="regulation">
|
|
|
- <view class="regulation_close" @click="$refs.regulation.close()"><image src="https://www.chaomangdao.com/image/home/guanbi@2x.png" mode=""></image></view>
|
|
|
- <view class="regulation_name">玩法规则</view>
|
|
|
- <view class="regulation_main">
|
|
|
+ <view class="regulation-close" @click="$refs.regulation.close()"><image src="https://www.chaomangdao.com/image/home/guanbi@2x.png" mode=""></image></view>
|
|
|
+ <view class="regulation-name">玩法规则</view>
|
|
|
+ <view class="regulation-main">
|
|
|
<scroll-view scroll-y="true" class="scroll-view"><u-parse :content="message"></u-parse></scroll-view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</uni-popup>
|
|
|
<uni-popup ref="regulation_1" :mask-click="false">
|
|
|
<view class="regulation_1">
|
|
|
- <view class="regulation_close" @click="$refs.regulation_1.close()"><image src="https://www.chaomangdao.com/image/home/guanbi@2x.png" mode=""></image></view>
|
|
|
- <view class="regulation_name">买家须知</view>
|
|
|
- <view class="regulation_main">
|
|
|
+ <view class="regulation-close" @click="$refs.regulation_1.close()"><image src="https://www.chaomangdao.com/image/home/guanbi@2x.png" mode=""></image></view>
|
|
|
+ <view class="regulation-name">买家须知</view>
|
|
|
+ <view class="regulation-main">
|
|
|
<scroll-view scroll-y="true" class="scroll-view"><u-parse :content="mjxz"></u-parse></scroll-view>
|
|
|
</view>
|
|
|
</view>
|
|
|
@@ -428,7 +413,7 @@ export default {
|
|
|
this.xh = true;
|
|
|
this.type = 0;
|
|
|
this.boxNum = 1;
|
|
|
- this.$refs['num-popup'].open();
|
|
|
+ this.$refs['choose-number'].open();
|
|
|
},
|
|
|
//创建订单
|
|
|
createOder(num) {
|
|
|
@@ -438,7 +423,7 @@ export default {
|
|
|
//创建订单成功或者试玩返回结果
|
|
|
closeNumPopup() {
|
|
|
//关闭数量弹窗
|
|
|
- this.$refs['num-popup'].close();
|
|
|
+ this.$refs['choose-number'].close();
|
|
|
},
|
|
|
//展示结果
|
|
|
showResult(result) {
|
|
|
@@ -528,23 +513,23 @@ function isWeiXin() {
|
|
|
/deep/ .uni-swiper-dots {
|
|
|
display: none;
|
|
|
}
|
|
|
-.left-cd {
|
|
|
+.main-left {
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
z-index: 99;
|
|
|
position: absolute;
|
|
|
top: 1vh;
|
|
|
right: 40rpx;
|
|
|
- .oval span,
|
|
|
- .oval1 span,
|
|
|
- .right span {
|
|
|
+ .oval,
|
|
|
+ .main-left-icon,
|
|
|
+ .main-left-right {
|
|
|
text-align: center;
|
|
|
display: block;
|
|
|
color: #ffffff;
|
|
|
margin: 10rpx;
|
|
|
}
|
|
|
}
|
|
|
-.oval1 {
|
|
|
+.main-left-icon {
|
|
|
margin: 20rpx;
|
|
|
}
|
|
|
uni-page-body {
|
|
|
@@ -558,14 +543,14 @@ uni-page-body {
|
|
|
background: #ffffff;
|
|
|
border-radius: 20rpx;
|
|
|
position: relative;
|
|
|
- .regulation_close {
|
|
|
+ .regulation-close {
|
|
|
position: absolute;
|
|
|
width: 44rpx;
|
|
|
height: 44rpx;
|
|
|
top: 30rpx;
|
|
|
right: 30rpx;
|
|
|
}
|
|
|
- .regulation_name {
|
|
|
+ .regulation-name {
|
|
|
padding: 40rpx 0;
|
|
|
text-align: center;
|
|
|
font-size: 30rpx;
|
|
|
@@ -606,7 +591,7 @@ uni-page-body {
|
|
|
width: 40rpx;
|
|
|
}
|
|
|
}
|
|
|
-.kf {
|
|
|
+.service {
|
|
|
position: absolute;
|
|
|
box-shadow: 0px 4rpx 6rpx 2rpx #5ca6c8;
|
|
|
background-color: #fff;
|
|
|
@@ -664,51 +649,51 @@ page {
|
|
|
flex-direction: column;
|
|
|
}
|
|
|
|
|
|
- .top {
|
|
|
+ .main-top {
|
|
|
flex: 0.6;
|
|
|
- .loop-container {
|
|
|
+ .banner {
|
|
|
background: url(https://www.chaomangdao.com/image/hzbj.gif);
|
|
|
- .loop-image-main {
|
|
|
+ .banner-main {
|
|
|
margin-bottom: 20rpx;
|
|
|
position: relative;
|
|
|
// height: 452rpx;
|
|
|
height: 600rpx;
|
|
|
margin-top: 300rpx;
|
|
|
- .arrow {
|
|
|
+ .banner-item {
|
|
|
width: 60rpx;
|
|
|
position: absolute;
|
|
|
top: 50%;
|
|
|
transform: translateY(-20%);
|
|
|
z-index: 99;
|
|
|
- &.arrow-left {
|
|
|
+ &.banner-item-left {
|
|
|
left: 80rpx;
|
|
|
}
|
|
|
- &.arrow-right {
|
|
|
+ &.banner-item-right {
|
|
|
right: 80rpx;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- .loop-image-warapper {
|
|
|
+ .banner-item-main {
|
|
|
position: absolute;
|
|
|
height: 100%;
|
|
|
width: 100%;
|
|
|
- .swiper {
|
|
|
+ .banner-swper {
|
|
|
height: 100%;
|
|
|
}
|
|
|
- .image-box {
|
|
|
+ .banner-image-box {
|
|
|
display: flex;
|
|
|
justify-content: center;
|
|
|
height: 100%;
|
|
|
- .box-banner {
|
|
|
+ .banner-banner {
|
|
|
height: 70%;
|
|
|
}
|
|
|
- .box-banner-0 {
|
|
|
+ .banner-banner-0 {
|
|
|
width: 118px;
|
|
|
height: 60%;
|
|
|
position: absolute;
|
|
|
bottom: 0;
|
|
|
}
|
|
|
- .box-banner-1 {
|
|
|
+ .banner-banner-1 {
|
|
|
position: absolute;
|
|
|
top: 60px;
|
|
|
height: 50%;
|
|
|
@@ -724,7 +709,7 @@ page {
|
|
|
margin: 0 auto;
|
|
|
}
|
|
|
}
|
|
|
- .finger {
|
|
|
+ .fingerAnimation {
|
|
|
position: absolute;
|
|
|
z-index: 21;
|
|
|
height: 140rpx;
|
|
|
@@ -739,17 +724,17 @@ page {
|
|
|
z-index: 22;
|
|
|
}
|
|
|
}
|
|
|
- .loop-label-warapper {
|
|
|
+ .fontbanner {
|
|
|
height: 260rpx;
|
|
|
margin-top: 18rpx;
|
|
|
- .label-box {
|
|
|
+ .fontbanner-box {
|
|
|
height: 100%;
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: center;
|
|
|
box-shadow: 3px 0px 0px 3px #45bfff;
|
|
|
}
|
|
|
- .swiper {
|
|
|
+ .fontbanner-swiper {
|
|
|
// background: url(https://www.chaomangdao.com/image/text-bj.png);
|
|
|
// background-size: 100% 100%;
|
|
|
height: 260rpx;
|
|
|
@@ -773,7 +758,7 @@ page {
|
|
|
color: #94a9ee;
|
|
|
}
|
|
|
}
|
|
|
- .loop-image-label {
|
|
|
+ .fontbanner-bg-box {
|
|
|
transition: 0.3s;
|
|
|
background: linear-gradient(white, 80%, lightgrey);
|
|
|
padding: 2px;
|
|
|
@@ -782,7 +767,7 @@ page {
|
|
|
// height: 247rpx;
|
|
|
width: 210rpx;
|
|
|
text-align: center;
|
|
|
- // .loop-image-label-img {
|
|
|
+ // .fontbanner-bg-box-img {
|
|
|
// height: 185rpx;
|
|
|
// }
|
|
|
image {
|
|
|
@@ -804,7 +789,7 @@ page {
|
|
|
color: #7494fe;
|
|
|
}
|
|
|
}
|
|
|
- .loop-image-label {
|
|
|
+ .fontbanner-bg-box {
|
|
|
border: 2px solid #45bfff;
|
|
|
}
|
|
|
}
|
|
|
@@ -817,7 +802,7 @@ page {
|
|
|
.bottom {
|
|
|
margin-top: 20rpx;
|
|
|
flex: 0.4;
|
|
|
- .button-container {
|
|
|
+ .btn {
|
|
|
flex: 1;
|
|
|
margin-top: 20rpx;
|
|
|
display: flex;
|
|
|
@@ -885,12 +870,12 @@ page {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-.small-img {
|
|
|
+.main-left-icon {
|
|
|
width: 80rpx;
|
|
|
margin: 0 auto;
|
|
|
}
|
|
|
//选择数量弹窗
|
|
|
-.num-popup {
|
|
|
+.choose-number {
|
|
|
background: #ffffff;
|
|
|
border-radius: 10px 10px 0px 0px;
|
|
|
padding: 50px 25px 90px 25px;
|
|
|
@@ -901,7 +886,7 @@ page {
|
|
|
height: 44rpx;
|
|
|
position: absolute;
|
|
|
}
|
|
|
- .num-button-group {
|
|
|
+ .number-item {
|
|
|
display: flex;
|
|
|
justify-content: center;
|
|
|
gap: 50rpx;
|
|
|
@@ -988,7 +973,7 @@ page {
|
|
|
transform: rotate(360deg);
|
|
|
}
|
|
|
}
|
|
|
-.loop-image-warapper {
|
|
|
+.banner-item-main {
|
|
|
animation: updown 2s infinite;
|
|
|
-webkit-animation: updown 2s infinite;
|
|
|
}
|
|
|
@@ -1003,7 +988,7 @@ page {
|
|
|
transform: scale(0.7);
|
|
|
}
|
|
|
}
|
|
|
-.finger {
|
|
|
+.fingerAnimation {
|
|
|
animation: rotates 2.8s infinite;
|
|
|
-webkit-animation: rotates 2.8s infinite;
|
|
|
}
|
|
|
@@ -1019,7 +1004,7 @@ page {
|
|
|
height: 480rpx !important;
|
|
|
}
|
|
|
}
|
|
|
-.box-image-bj {
|
|
|
+.banner-main-bg {
|
|
|
// background: url(../../static/image/new_home/box-images-bj.png);
|
|
|
background-size: 100% 100%;
|
|
|
height: 500rpx;
|