12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625 |
- <template>
- <view>
- <view class="detail-header">
- <!-- <image :src="shop.imgUrl"></image>-->
- <view class="head">
- <view class="info">
- <view class="title">{{shop.storeName|truncate(10)}}</view>
- <view class="address">{{shop.address.address|truncate(15)}}</view>
- </view>
- <image class="shopIcon" :src="shop.storePicUrl"></image>
- <!-- <view class="card">-->
- <!-- </view>-->
- </view>
- <van-tabs :active="active" @change="onChange" sticky>
- <van-tab title="点 单">
- <view class="container">
- <scroll-view class="left-menu" scroll-y="true">
- <block v-for="(type, index) in types" :key="index">
- <view class="menu-item" :class="{ active: index === activeIndex }" @tap="scrollToElement('type_'+ (index+1))" >{{ type.productTypeName }}</view>
- </block>
- </scroll-view>
- <scroll-view class="right-content" scroll-y="true" style="height: calc(100vh - 100rpx);" @scroll="onScroll" :scroll-into-view="scrollIntoView">
- <block v-for="(type, index) in types" :key="index">
- <view style="font-weight: bolder;font-size: 30rpx;margin-left: 10rpx;margin-top: 2px" :id='"type_"+ (index+1)'>{{type.productTypeName}}</view>
- <block v-for="(product, idx) in getProjectsByType(index)" :key="idx">
- <!-- <van-card ></van-card>-->
- <my-card :product="product" card-height="200rpx" card-width="210px"></my-card>
- </block>
- </block>
- <view style="height: 60px; width: 100%;"></view>
- <!-- <block v-for="(product, index) in products" :key="index">-->
- <!-- <view class="product-item">{{ product.name }}</view>-->
- <!-- </block>-->
- </scroll-view>
- </view>
- </van-tab>
- <van-tab title="评 价">
- <view class="review-container">
- <!-- <view class="header">-->
- <!-- <view class="title">商品评论</view>-->
- <!-- <view class="filter">-->
- <!-- <text>默认时间排序</text>-->
- <!-- </view>-->
- <!-- </view>-->
- <view class="review-list">
- <view class="review-item" v-for="(review, index) in sortedReviews" :key="index">
- <view class="item-header">
- <view class="user-info">
- <image class="avatar" :src="review.avatar" mode="aspectFill"></image>
- <text class="username">{{ review.username }}</text>
- </view>
- <view class="rating">
- <van-rate :value="review.rating" readonly />
- </view>
- </view>
- <view class="review-content">{{ review.content }}</view>
- <view class="item-footer">
- <text class="date">{{ formatDate(review.date) }}</text>
- <view class="actions">
- <van-icon name="like-o" @click="like(index)" :class="{ liked: review.liked }" />
- <van-icon name="warning-o" @click="showActionSheet(index)" />
- </view>
- </view>
- </view>
- <view class="add-review-btn" @click="showReviewModal = true">我要评论</view>
- <van-popup :show="showReviewModal" position="bottom" round :close-on-click-overlay="true" @close="closeReviewModal">
- <view class="review-modal">
- <view class="modal-header">发表评论</view>
- <view class="modal-content">
- <van-rate :value="newReview.rating" size="25" allow-half void-color="#eee" @change="onRate"/>
- <van-field :value="contentValue" rows="4" autosize type="textarea" @change="onContentChange" maxlength="200" placeholder="请输入评论内容" show-word-limit />
- </view>
- <view class="modal-footer" >
- <van-button type="primary" size="small" @click="submitReview">发表</van-button>
- </view>
- </view>
- </van-popup>
- </view>
- <van-action-sheet :show="showSheet" :actions="actions" @select="onSelect" />
- </view>
- </van-tab>
- <van-tab title="监 控">
- <view v-if="active === 2" class="monitor-view">
- <video class="monitor-video" :src="videoSrc" :autoplay="true" :loop="true" :muted="true" :show-play-btn="false" :controls="false" :objectFit="fill" ></video>
- <view class="monitor-info">
- <image class="monitor-img" src="../..//static/vedio/1.jpg" mode="aspectFit"></image>
- <text class="monitor-text">请去PC端查看更多内容</text>
- </view>
- <video
- id="myVideo"
- :src="videoSrc"
- :controls="controls"
- :autoplay="autoplay"
- style="width: 100%; height: 300px;"
- ></video>
- <!-- <video></video>-->
- </view>
- </van-tab>
- <!-- <van-tab title="标签 4">内容 4</van-tab>-->
- </van-tabs>
- </view>
- <view v-show="active === 0">
- <view class="order">
- <view class="order-footer">
- <view class="discount-info" @click="showPop">
- <div class="icon-container">
- <van-icon name="balance-o" size="30"></van-icon>
- <div class="badge" v-show="total()>0">{{ total() }}</div>
- </div>^
- </view>
- <view class="order-action">
- <view class="order-detail" @click="showOrderDetail">
- <text>¥0</text>
- <text>免配送费</text>
- </view>
- <view class="pay-button" @click="navigateToPayment">
- <text v-show="checkedGoodsAmount()<0">¥{{ 20 }}起送</text>
- <text v-show="checkedGoodsAmount()>=
- 0">¥{{ checkedGoodsAmount()}}</text>
- </view>
- </view>
- </view>
- </view>
- </view>
- <!-- <view class="shop-container">-->
- <!-- <van-tabs :active="active " @change="onChange" swipeable sticky :ellipsis="false">-->
- <!-- <van-tab title="全部饮品" name='all' sticky>-->
- <!-- </van-tab>-->
- <!-- <van-tab v-for="(item,index) in types " :key="index" :title="item.name" :name='item.id' >-->
- <!--<!– <my-menu-index :projects='projects'></my-menu-index>–>-->
- <!-- </van-tab>-->
- <!-- </van-tabs>-->
- <!-- </view>-->
- </view>
- </template>
- <script>
- import {mapState,mapMutations,mapGetters} from'vuex'
- export default {
- onLoad(args) {
- console.log(args.shopID, 'shopdetail')
- this.shop=this.getShopById()(args.shopID)
- console.log(args,"啊啊啊")
- console.log(this.shop.address.address)
- this.distance=this.getDistance()(10)
- this.products=this.shop.products
- let types=this.shop.productTypes
- this.types=types
- // for (let i=0;i<types.length;i++){
- // this.types.push( { id: i+1, name: types[i] } )
- // }
- // console.log(this.getDistance()(10))
- // console.log(this.shop,"是吗")
- // console.log(this.projects)
- console.log(this.types)
- console.log(this.products)
- // console.log(this.getShopById(args.shopID)())
- },
- data() {
- return {
- videoSrc: '../../static/vedio/1.mp4',
- showReviewModal: false,
- newReview: {
- avatar: this.getAvatarUrl(), // 默认头像
- username: this.getUserName(),
- rating: 5,
- content: '',
- date: new Date().toISOString().slice(0, 10),
- liked: false
- },
- contentValue: '',
- reviews: [
- {
- avatar: '../../static/avator/1.jpg',
- username: '张三',
- rating: 5,
- content: '这家水果店的苹果真是太好吃了,甜度刚刚好,口感也很脆甜。',
- date: '2024-05-01',
- liked: false
- },
- {
- avatar: '../../static/avator/2.jpg',
- username: '李斯',
- rating: 4,
- content: '香蕉的品质一般,个头较小,但口感还可以。',
- date: '2024-04-28',
- liked: false
- },
- {
- avatar: '../../static/avator/3.jpg',
- username: '辛雨东',
- rating: 3,
- content: '橘子的甜度不够,希望下次能够更甜一些。',
- date: '2024-04-25',
- liked: false
- },
- {
- avatar: '../../static/avator/4.jpg',
- username: '默认名称200151024',
- rating: 5,
- content: '这家店的樱桃真是太棒了,个头大颗颗饱满,甜度也刚刚好,非常满意!',
- date: '2024-04-20',
- liked: false
- },{
- avatar: '../../static/avator/5.jpg',
- username: '李晓',
- rating: 4,
- content: '草莓新鲜可口,个头也很大,值得推荐。',
- date: '2024-04-20',
- liked: false
- },
- {
- avatar: '../../static/avator/6.jpg',
- username: '钱齐星',
- rating: 5,
- content: '西瓜非常甜脆,吃起来非常解渴,很满意。',
- date: '2024-04-20',
- liked: false
- },
- {
- avatar: '../../static/avator/7.jpg',
- username: '刘王雪',
- rating: 3,
- content: '柚子的味道不错,但个头偏小,希望可以选到更大的。',
- date: '2024-04-20',
- liked: false
- }
- ],
- showSheet: false,
- actions: [{ name: '我要举报' }, { name: '取消' }],
- currentIndex: -1,
- shop: {},
- projects: [],
- distance:0,
- active: 0,
- //
- types: [
- { id: '1', productName: '类型1' },
- { id: '2', productName: '类型2' },
- { id: '3', productName: '类型3' },
- // 其他类型...
- ],
- products: [
- { type: '1', name: '商品1' },
- { type: '1', name: '商品1' },
- { type: '1', name: '商品1' },
- { type: '1', name: '商品1' },
- { type: '1', name: '商品1' },
- { type: '1', name: '商品1' },
- { type: '1', name: '商品1' },
- { type: '1', name: '商品1' },
- { type: '1', name: '商品2' },
- { type: '1', name: '商品2' },
- { type: '1', name: '商品2' },
- { type: '1', name: '商品2' },
- { type: '1', name: '商品2' },
- { type: '2', name: '商品3' },
- { type: '2', name: '商品3' },
- { type: '2', name: '商品3' },
- { type: '2', name: '商品3' },
- { type: '2', name: '商品4' },
- { type: '2', name: '商品4' },
- { type: '2', name: '商品4' },
- { type: '2', name: '商品4' },
- { type: '3', name: '商品5' },
- // 其他商品...
- ],
- scrollIntoView: ''
- };
- },
- computed: {
- sortedReviews() {
- return this.reviews.sort((a, b) => new Date(b.date) - new Date(a.date))
- },
- newReviewContent() {
- return this.newReview.content.toString();
- },
- }, watch: {
- newReviewContent(newVal) {
- this.contentValue = newVal;
- }
- },
- methods: {
- ...mapGetters('m_shop',['getTypeById','getProductById']),
- ...mapGetters('m_user',['getUserName','getAvatarUrl']),
- onContentChange(event) {
- console.log(event)
- this.newReview.content = event.detail;
- },
- onRate(event) {
- console.log(event)
- this.newReview.rating = event.detail;
- },
- scrollToElement: function(target) {
- console.log('滚不滚')
- this.scrollIntoView = target; // 滚动到指定元素
- },submitReview() {
- console.log(this.newReview)
- // return
- if (this.newReview.content.trim() !== '') {
- console.log('来了')
- this.reviews.unshift(this.newReview);
- this.newReview = {
- avatar: this.getAvatarUrl(),
- username: this.getUserName(),
- rating: 5,
- content: '',
- date: new Date().toISOString().slice(0, 10),
- liked: false
- };
- this.showReviewModal = false;
- }
- console.log(this.reviews,"reviews")
- },
- closeReviewModal() {
- this.showReviewModal = false;
- this.newReview.content = '';
- },
- showPop() {
- },
- ...mapGetters('m_shop', {'getShopById':'getShopById', 'getDistance':'getDistance'}),
- ...mapGetters('m_proj',{'getProjects':'getProjects','getTypes':'getTypes'}),
- ...mapGetters('m_cart', {'total':'total','checkedGoodsAmount':'checkedGoodsAmount'}),//total:计算数量,checkedGoodsAmount:计算总价
- //
- getProjectsByType(idx){
- // console.log(idx)
- // console.log(this.products)
- let mp={
- 0:[1,2,4,5],
- 1:[3,2,4,6],
- 2:[8,9,7,6],
- 3:[10,11,12,13],
- 4:[14,15,16,10],
- 5:[10,3,13,2],
- }
- let ret=[]
- if (!mp[idx]) return
- for (let i=0;i<mp[idx].length;i++){
- ret.push(this.products[mp[idx][i]-1])
- }
- console.log(ret)
- return ret
- },
- onChange(event) {
- console.log(event)
- console.log(this.active)
- this.active = event.detail.index;
- console.log(this.active)
- },
- scrollToView(index) {
- const typeId = this.types[index].id;
- this.activeIndex = index;
- this.$nextTick(() => {
- uni.pageScrollTo({
- selector: `#type_${typeId}`,
- duration: 300
- });
- });
- },
- onScroll(event) {
- const scrollTop = event.detail.scrollTop;
- const types = this.types;
- let currentTypeIndex = 0;
- for (let i = 0; i < types.length; i++) {
- const typeId = types[i].id;
- const query = uni.createSelectorQuery();
- query.select('#type_' + typeId).boundingClientRect();
- query.exec((res) => {
- if (res && res[0] && res[0].top <= 0) {
- currentTypeIndex = i;
- }
- });
- }
- this.activeIndex = currentTypeIndex;
- },
- showOrderDetail() {
- // 显示订单详情界面的逻辑
- },
- pay() {
- // 付款逻辑
- },
- formatDate(dateStr) {
- const date = new Date(dateStr)
- const year = date.getFullYear()
- const month = String(date.getMonth() + 1).padStart(2, '0')
- const day = String(date.getDate()).padStart(2, '0')
- return `${year}-${month}-${day}`
- },
- like(index) {
- this.reviews[index].liked = !this.reviews[index].liked
- },
- showActionSheet(index) {
- this.currentIndex = index
- this.showSheet = true
- },
- onSelect(event) {
- if (event.detail.name === '我要举报') {
- // 执行举报操作
- console.log(`举报第${this.currentIndex + 1}条评论`)
- uni.showToast({
- title: '举报成功',
- icon: 'success',
- duration: 3000
- });
- }
- this.showSheet = false
- },
- navigateToPayment() {
- uni.navigateTo({
- url: '/subpkg/payment/payment?shopTitle=' + this.shop.storeName+'&shopId=' + this.shop.id
- });
- }
- },
- filters: {
- formatPrice(price) {
- return '¥' + price.toFixed(2);
- },
- // 字数过长用...限制
- truncate(value, length = 10) {
- if (!value) return '';
- if (value.length > length) {
- return value.slice(0, length) + '...';
- }
- return value;
- }
- }
- }
- </script>
- <style lang="scss">
- .icon-container {
- position: relative;
- display: inline-block;
- }
- .badge {
- position: absolute;
- top: -5px;
- right: -5px;
- background-color: red;
- color: white;
- border-radius: 50%;
- padding: 2px 6px;
- font-size: 12px;
- }
- page {
- background-color: #f5f5f5;
- //overflow: hidden;
- }
- .head{
- display: flex;
- align-items: center;
- justify-content: center;
- .info{
- //上下布局
- display: flex;
- flex-direction: column;
- align-items: center;
- .title{
- font-weight: bold;
- font-size: 40rpx;
- margin-bottom: 20rpx;
- }
- .address{
- font-size: 30rpx;
- color: #999;
- margin-bottom: 20rpx;
- }
- }
- image{
- width: 130rpx;
- height: 130rpx;
- border-radius: 2%;
- margin-right: 20rpx;
- margin-left: 20rpx;
- }
- }
- .header {
- display: flex;
- align-items: center;
- justify-content: center;
- width: 100%;
- height: 130rpx;
- position: fixed;
- top: 0;
- z-index: 900;
- background-color: #fff;
- box-shadow: 0 0 10rpx rgba(0, 0, 0, .05);
- .left {
- flex: 0 0 60%;
- display: flex;
- flex-direction: column;
- justify-content: center;
- .title {
- width: 90%;
- color: #343434;
- font-size: 30rpx;
- font-weight: bold;
- text-overflow: ellipsis;
- white-space: nowrap;
- overflow: hidden;
- }
- .address {
- width: 90%;
- color: #999;
- font-size: 26rpx;
- padding-top: 6rpx;
- text-overflow: ellipsis;
- white-space: nowrap;
- overflow: hidden;
- }
- }
- .right {
- flex: 0 0 35%;
- display: flex;
- flex-direction: column;
- align-items: flex-end;
- .type {
- display: flex;
- width: 180rpx;
- height: 60rpx;
- border-radius: 100rpx;
- align-items: center;
- justify-content: center;
- font-size: 26rpx;
- .name {
- background-color: #343434;
- color: #fff;
- width: 86rpx;
- border-radius: 100rpx;
- display: flex;
- align-items: center;
- justify-content: center;
- height: 54rpx;
- transition: all .3s;
- }
- .text {
- width: 86rpx;
- display: flex;
- align-items: center;
- justify-content: center;
- color: #fff;
- }
- }
- .more {
- color: #999;
- font-size: 24rpx;
- display: flex;
- align-items: center;
- padding-top: 6rpx;
- icon {
- padding-left: 4rpx;
- }
- }
- }
- }
- .goodsBox {
- width: 100%;
- display: flex;
- .left {
- flex: 0 0 28%;
- .menuList {
- overflow-y: scroll;
- padding-bottom: 20rpx;
- .menu {
- color: #999999;
- font-size: 26rpx;
- padding: 30rpx 10rpx;
- text-align: center;
- background-color: transparent;
- border-left: 6rpx solid transparent;
- transition: all 0.6s;
- }
- .active {
- font-weight: bold;
- background-color: #FFFFFF;
- }
- }
- }
- .right {
- flex: 0 0 72%;
- background-color: #FFFFFF;
- .swiperBpx {
- width: 95%;
- margin: 0 auto;
- padding-top: 14rpx;
- position: relative;
- swiper {
- height: 220rpx;
- .swiper-item {
- width: 100%;
- height: 100%;
- display: flex;
- align-items: center;
- justify-content: center;
- color: #FFFFFF;
- font-size: 56rpx;
- }
- }
- .swiperDots {
- position: absolute;
- left: 0;
- right: 0;
- bottom: 12rpx;
- display: flex;
- justify-content: center;
- height: 10rpx;
- .dot {
- margin: 0 5rpx;
- width: 25rpx;
- height: 4rpx;
- background: #fff;
- border-radius: 20rpx;
- transition: all 0.6s;
- opacity: 0.5;
- }
- .active {
- opacity: 1;
- }
- }
- }
- .goodsList{
- width: 95%;
- margin: 0 auto;
- .gheader{
- font-weight: bold;
- font-size: 26rpx;
- display: flex;
- height: 100rpx;
- align-items: center;
- }
- .goods{
- display: flex;
- position: relative;
- padding-bottom: 20rpx;
- margin-bottom: 20rpx;
- .left{
- flex: 0 0 30%;
- display: flex;
- .image{
- width: 140rpx;
- height: 140rpx;
- background-color: #f5f5f5;
- border-radius: 6rpx;
- overflow: hidden;
- position: relative;
- .icon{
- position: absolute;
- top: 0;
- left: 0;
- }
- .none{
- position: absolute;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- background-color: rgba(255,255,255,.6);
- display: flex;
- align-items: center;
- justify-content: center;
- font-size: 26rpx;
- color: #999;
- }
- }
- }
- .right{
- flex: 0 0 70%;
- .title{
- color:#343434;
- font-size:26rpx;
- font-weight:bold;
- }
- .intro{
- color:#999;
- font-size:24rpx;
- overflow: hidden;
- text-overflow: ellipsis;
- display: -webkit-box;
- -webkit-line-clamp: 2;
- -webkit-box-orient: vertical;
- padding-top: 4rpx;
- }
- .box{
- display:flex;
- align-items:center;
- padding-top: 10rpx;
- position: relative;
- .price{
- color:#343434;
- font-size:28rpx;
- font-weight:bold;
- flex: 0 0 50%
- }
- .button{
- flex: 0 0 50%;
- display: flex;
- justify-content: flex-end;
- .text{
- background-color: #d3aa79;
- color: #fff;
- font-size: 24rpx;
- padding: 4rpx 16rpx;
- border-radius: 100rpx;
- }
- }
- }
- }
- }
- }
- }
- }
- .footer{
- position:fixed;
- bottom: 140rpx;
- width:92%;
- left:0;
- right: 0;
- height:80rpx;
- margin: 0 auto;
- border-radius: 100rpx;
- background-color:#fff;
- display:flex;
- align-items:center;
- z-index:899;
- box-shadow: 0 0 20rpx rgba(0,0,0,.05);
- .label{
- color: #fff;
- width: 100%;
- height: 100%;
- display: flex;
- align-items: center;
- justify-content: center;
- }
- .left{
- flex: 0 0 70%;
- display: flex;
- align-items: center;
- justify-content: flex-end;
- height: 100%;
- .cart{
- position: absolute;
- width: 180rpx;
- height: 100%;
- left: 0;
- color: #343434;
- font-size: 26rpx;
- display: flex;
- align-items: center;
- justify-content: center;
- icon{
- padding-right: 8rpx;
- }
- text{
- position: absolute;
- top: -8rpx;
- right: -12rpx;
- background-color: #d3aa79;
- border-radius: 100%;
- width: 36rpx;
- height: 36rpx;
- display: flex;
- align-items: center;
- justify-content: center;
- color: #fff;
- font-size: 24rpx;
- }
- }
- .price{
- color:#343434;
- font-size:30rpx;
- padding-right: 30rpx;
- font-weight: bold;
- }
- }
- .right{
- flex: 0 0 30%;
- height: 100%;
- border-top-right-radius: 100rpx;
- border-bottom-right-radius: 100rpx;
- overflow: hidden;
- .button{
- width: 100%;
- height: 100%;
- color: #FFFFFF;
- display: flex;
- align-items: center;
- justify-content: center;
- background-color:#d3aa79;
- }
- .none{
- background-color:#bbbbbb;
- }
- }
- }
- .footerX{
- bottom: 166rpx;
- }
- .showPopBox{
- position: fixed;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- background-color: rgba(0,0,0,.5);
- z-index: 970;
- transition: all 0.3s;
- .bg{
- position: absolute;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- z-index: 971;
- }
- .showContent{
- position: absolute;
- z-index: 972;
- width: 100%;
- max-height: 600rpx;
- bottom: 120rpx;
- background-color: #fff;
- left: 0;
- .sheade{
- width: 100%;
- background-color: #f2f2f2;
- font-size: 24rpx;
- height: 56rpx;
- display: flex;
- align-items: center;
- .left{
- flex: 0 0 50%;
- .text{
- color: #999;
- padding-left: 20rpx;
- }
- }
- .right{
- flex: 0 0 50%;
- .text{
- color: #999;
- display: flex;
- align-items: center;
- justify-content: flex-end;
- padding-right: 20rpx;
- icon{
- padding-right: 6rpx;
- }
- }
- }
- }
- .sconten{
- max-height: 544rpx;
- overflow-y: scroll;
- .goods{
- width: 95%;
- margin: 0 auto;
- display: flex;
- align-items: center;
- border-bottom: 1px dashed #f5f5f5;
- height: 110rpx;
- .left{
- flex: 0 0 60%;
- .title{
- color:#343434;
- }
- .label{
- color:#999;
- font-size: 24rpx;
- }
- }
- .right{
- flex: 0 0 40%;
- display: flex;
- align-items: center;
- justify-content: flex-end;
- .price{
- flex: 0 0 40%;
- color:#343434;
- }
- .buy{
- display: flex;
- align-items: center;
- justify-content: center;
- flex: 0 0 60%;
- input{
- text-align: center;
- color:#343434;
- }
- text{
- color: #999;
- font-size: 24rpx;
- }
- }
- }
- }
- }
- }
- .infoContent{
- position: absolute;
- z-index: 972;
- width: 100%;
- max-height: 55vh;
- top: 130rpx;
- background-color: #fff;
- left: 0;
- overflow-y: scroll;
- padding-bottom: 20rpx;
- padding-top: 10rpx;
- .label{
- width: 95%;
- margin: 0 auto;
- padding: 12rpx 0;
- .title{
- color: #343434;
- font-size: 26rpx;
- }
- .text{
- color: #999;
- font-size: 24rpx;
- padding-top: 4rpx;
- }
- }
- .images{
- display: flex;
- align-items: center;
- flex-wrap: wrap;
- padding-top: 6rpx;
- .image{
- width: 200rpx;
- height: 200rpx;
- border: 2rpx solid #f5f5f5;
- background-color: #f5f5f5;
- margin-right: 20rpx;
- position: relative;
- .text{
- position: absolute;
- bottom: 0;
- left: 0;
- width: 100%;
- background-color: rgba(255,255,255,.6);
- height: 50rpx;
- display: flex;
- align-items: center;
- justify-content: center;
- color: #666;
- font-size: 26rpx;
- }
- }
- }
- }
- .goodsConten{
- position: absolute;
- z-index: 972;
- width: 80%;
- background-color: #fff;
- border-radius: 10rpx;
- padding-bottom: 20rpx;
- margin-top: -5vh;
- box-shadow: 0 10rpx 20rpx rgba(0,0,0,.06);
- .image{
- width: 100%;
- height: 320rpx;
- display: flex;
- align-items: center;
- justify-content: center;
- position: relative;
- icon{
- position: absolute;
- }
- }
- .title{
- width: 90%;
- margin: 0 auto;
- padding-top: 10rpx;
- padding-bottom: 10rpx;
- color: #343434;
- font-weight: bold;
- }
- .moreBox{
- width: 90%;
- margin: 0 auto;
- .label{
- padding-bottom: 10rpx;
- .stitle{
- padding-bottom: 10rpx;
- text{
- color: #999;
- font-size: 26rpx;
- }
- }
- .specBox{
- display: flex;
- flex-wrap: wrap;
- .spec{
- border: 1px solid #eee;
- padding: 8rpx 20rpx;
- margin-right: 12rpx;
- font-size: 24rpx;
- color: #999999;
- }
- .active{
- color: #FFFFFF;
- }
- }
- }
- .more{
- padding-bottom: 20rpx;
- .labtit{
- color: #999;
- font-size: 26rpx;
- padding-top: 10rpx;
- }
- .intro{
- color: #999;
- font-size: 24rpx;
- }
- }
- }
- .gfooter{
- border-top: 1px solid #f5f5f5;
- padding-top: 20rpx;
- .price{
- width: 90%;
- margin: 0 auto;
- display: flex;
- padding: 10rpx 0;
- align-items: center;
- justify-content: center;
- .left{
- flex: 0 0 65%;
- .text{
- color: #d3aa79;
- font-size: 32rpx;
- font-weight: bold;
- display: flex;
- align-items: center;
- text{
- text-decoration: line-through;
- color: #999;
- font-size: 26rpx;
- margin-left: 10rpx;
- font-weight: normal;
- }
- }
- .label{
- color: #999;
- font-size: 24rpx;
- }
- }
- .right{
- flex: 0 0 35%;
- display: flex;
- justify-content: flex-end;
- .buy{
- display: flex;
- align-items: center;
- input{
- text-align: center;
- color:#343434;
- }
- }
- }
- }
- .button{
- width: 90%;
- margin: 0 auto;
- margin-top: 20rpx;
- background-color: #d3aa79;
- color: #fff;
- height: 66rpx;
- display: flex;
- align-items: center;
- justify-content: center;
- border-radius: 100rpx;
- font-size: 26rpx;
- }
- .none{
- background-color: #cccccc;
- }
- }
- }
- }
- .couponsIcon{
- position: fixed;
- bottom: 230rpx;
- width: 100rpx;
- height: 100rpx;
- left: 60rpx;
- }
- .showCoupons{
- position: fixed;
- width: 100%;
- height: 100%;
- top: 0;
- left: 0;
- background-color: rgba(0,0,0,.5);
- z-index: 999;
- display: flex;
- align-items: center;
- justify-content: center;
- .bg{
- position: absolute;
- width: 100%;
- height: 100%;
- top: 0;
- left: 0;
- z-index: 1000;
- }
- .coupons{
- position: absolute;
- width: 600rpx;
- height: 568rpx;
- border-radius: 10rpx;
- z-index: 1001;
- transition: all 0.6s;
- margin-top: -10%;
- .headerTitle{
- position: absolute;
- top: 76rpx;
- width: 100%;
- text-align: center;
- color: #af8859;
- font-size: 26rpx;
- }
- .listBox{
- width: 72%;
- margin: 0 auto;
- margin-top: 50rpx;
- position: absolute;
- left: 0;
- right: 0;
- top: 100rpx;
- height: 260rpx;
- border-bottom-left-radius: 20%;
- border-bottom-right-radius: 20%;
- overflow: hidden;
- .list{
- display:flex;
- align-items:center;
- width:99%;
- height:120rpx;
- justify-content:center;
- border-radius:4rpx;
- position: relative;
- overflow:hidden;
- padding: 2rpx;
- margin: 0 auto;
- margin-bottom: 20rpx;
- .left{
- width:35%;
- display:flex;
- flex-direction:column;
- align-items:center;
- justify-content:center;
- height:120rpx;
- border:2rpx solid #f5f5f5;
- border-right:none;
- .price{
- color:#d3aa79;
- font-size:42rpx;
- font-weight:500;
- display:flex;
- text{
- font-size:26rpx;
- padding-top:6rpx;
- padding-right:2rpx;
- }
- }
- .text{
- color:#999;
- font-size:22rpx;
- }
- }
- .active{
- position:absolute;
- width:2rpx;
- height:80rpx;
- left:34%;
- border-right:2rpx dashed #eee;
- display:flex;
- align-items:center;
- justify-content:center;
- .top{
- width:20rpx;
- height:20rpx;
- background-color:#fff;
- border-radius:100%;
- position:absolute;
- top:-30rpx;
- border:2rpx solid #f5f5f5;
- }
- .buttom{
- width:20rpx;
- height:20rpx;
- background-color:#fff;
- border-radius:100%;
- position:absolute;
- bottom:-30rpx;
- border:2rpx solid #f5f5f5;;
- }
- }
- .right{
- width:65%;
- height:120rpx;
- display:flex;
- flex-direction:column;
- justify-content:center;
- border:2rpx solid #f5f5f5;
- border-left:none;
- .title{
- color:#343434;
- font-weight:500;
- font-size:26rpx;
- width:90%;
- margin:0 auto;
- overflow:hidden;
- text-overflow:ellipsis;
- white-space:nowrap;
- }
- .times{
- color:#999;
- font-size:24rpx;
- padding-top:10rpx;
- width:90%;
- margin:0 auto;
- overflow:hidden;
- text-overflow:ellipsis;
- white-space:nowrap;
- }
- }
- }
- }
- .buttonBox{
- width: 80%;
- margin: 0 auto;
- height: 70rpx;
- display:flex;
- align-items:flex-end;
- justify-content:center;
- position: absolute;
- bottom: 36rpx;
- left: 0;
- right: 0;
- .button{
- background-color:#af8859;
- width:100%;
- height:100%;
- display:flex;
- align-items:center;
- justify-content:center;
- color:#fff;
- border-radius:4rpx;
- font-size: 26rpx;
- }
- }
- .close{
- position: absolute;
- left: 0;
- right: 0;
- margin: 0 auto;
- width: 100rpx;
- display: flex;
- align-items: center;
- justify-content: center;
- height: 100rpx;
- }
- }
- }
- .showShare{
- position: fixed;
- width: 100%;
- height: 100%;
- top: 0;
- left: 0;
- background-color: rgba(0,0,0,.5);
- z-index: 999;
- display: flex;
- align-items: center;
- justify-content: center;
- .bg{
- position: absolute;
- width: 100%;
- height: 100%;
- top: 0;
- left: 0;
- z-index: 1000;
- }
- .share{
- position: absolute;
- width: 500rpx;
- background-color: #FFFFFF;
- border-radius: 10rpx;
- z-index: 1001;
- transition: all 0.6s;
- .title{
- font-weight: bold;
- display: flex;
- align-items: center;
- justify-content: center;
- padding: 38rpx 0 30rpx;
- }
- .box{
- display: flex;
- align-items: center;
- justify-content: center;
- padding-bottom: 38rpx;
- .label{
- flex: 0 0 45%;
- display: flex;
- align-items: center;
- flex-direction: column;
- justify-content: center;
- position: relative;
- .text{
- font-size: 24rpx;
- }
- button{
- position: absolute;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- opacity: 0;
- }
- }
- }
- .haibao{
- width: 90%;
- margin: 0 auto;
- display: flex;
- flex-direction: column;
- align-items: center;
- image{
- width: 400rpx;
- height: 600rpx;
- border: 1px solid #f5f5f5;
- border-radius: 6rpx;
- }
- .save{
- color: #FFFFFF;
- width: 280rpx;
- height: 60rpx;
- border-radius: 100rpx;
- font-size: 24rpx;
- display: flex;
- align-items: center;
- justify-content: center;
- margin: 30rpx 0;
- }
- }
- }
- }
- .container {
- display: flex;
- }
- .left-menu {
- flex: 1;
- }
- .right-content {
- flex: 2;
- }
- .menu-item {
- padding: 10px;
- border-bottom: 1px solid #ccc;
- color: #333;
- }
- .menu-item.active {
- color: red; /* 激活状态的颜色 */
- }
- .product-item {
- padding: 10px;
- border-bottom: 1px solid #ccc;
- }
- .order-footer {
- position: fixed;
- bottom: 0;
- left: 0;
- right: 0;
- display: flex;
- justify-content: space-between;
- align-items: center;
- background-color: #333;
- color: #fff;
- padding: 10px;
- }
- .discount-info {
- font-size: 14px;
- }
- .order-action {
- display: flex;
- }
- .order-detail {
- background-color: #666;
- padding: 15px 20px; /* 增加了padding */
- border-radius: 20px 0 0 20px; /* 增加了圆角半径 */
- font-size: 16px; /* 增加了字体大小 */
- }
- .pay-button {
- background-color: #ff6700;
- padding: 15px 20px; /* 增加了padding */
- border-radius: 0 20px 20px 0; /* 增加了圆角半径 */
- font-size: 18px; /* 增加了字体大小 */
- }
- .review-container {
- padding: 20rpx;
- background-color: #f7f7f7;
- .add-review-btn {
- margin-top: 20rpx;
- background-color: #07c160;
- color: #fff;
- font-size: 28rpx;
- text-align: center;
- padding: 20rpx;
- border-radius: 10rpx;
- }
- .review-modal {
- background-color: #fff;
- padding: 30rpx;
- .modal-header {
- font-size: 36rpx;
- font-weight: bold;
- text-align: center;
- margin-bottom: 30rpx;
- }
- .modal-content {
- margin-bottom: 30rpx;
- }
- .modal-footer {
- text-align: right;
- }
- }
- }
- .header {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-bottom: 20rpx;
- .title {
- font-size: 32rpx;
- font-weight: bold;
- }
- .filter {
- font-size: 26rpx;
- color: #666;
- }
- }
- .review-list {
- background-color: #fff;
- border-radius: 10rpx;
- box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.1);
- padding: 20rpx;
- }
- .review-item {
- padding: 20rpx 0;
- border-bottom: 1px solid #eee;
- &:last-child {
- border-bottom: none;
- }
- .item-header {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-bottom: 10rpx;
- .user-info {
- display: flex;
- align-items: center;
- .avatar {
- width: 60rpx;
- height: 60rpx;
- border-radius: 50%;
- margin-right: 10rpx;
- }
- .username {
- font-size: 28rpx;
- color: #333;
- }
- }
- .rating {
- font-size: 24rpx;
- color: #ffd21e;
- }
- }
- .review-content {
- font-size: 26rpx;
- color: #666;
- line-height: 1.5;
- margin-bottom: 10rpx;
- }
- .item-footer {
- display: flex;
- justify-content: space-between;
- align-items: center;
- .date {
- font-size: 24rpx;
- color: #999;
- }
- .actions {
- .van-icon-like-o,
- .van-icon-warning-o {
- font-size: 24rpx;
- margin-left: 10rpx;
- color: #999;
- }
- .liked {
- color: #ff6600;
- }
- }
- }
- }
- .monitor-view {
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- height: 500rpx;
- }
- .monitor-video {
- width: 100%;
- height: 300rpx;
- }
- .monitor-info {
- display: flex;
- flex-direction: column;
- align-items: center;
- margin-top: 20rpx;
- }
- .monitor-img {
- width: 200rpx;
- height: 200rpx;
- }
- .monitor-text {
- margin-top: 30rpx;
- font-size: 50rpx;
- color: #666;
- }
- </style>
|