|
|
|
@ -17,7 +17,7 @@ |
|
|
|
|
</view> |
|
|
|
|
<u-search shape="round" :disabled="true" placeholder="iPhone 15" bg-color="#ffffff" :show-action="false"></u-search> |
|
|
|
|
</view> |
|
|
|
|
<view class="chat" v-if="current == 0"> |
|
|
|
|
<view class="chat" v-if="current == 0" @click="toChat()"> |
|
|
|
|
<u-icon name="chat" color="#000000" size="70"></u-icon> |
|
|
|
|
<view class="badge"> |
|
|
|
|
4 |
|
|
|
@ -29,7 +29,7 @@ |
|
|
|
|
<view :class="tabCurrent==index?'tabItem active':'tabItem'" @click="changeGoodsType(index)" v-for="(item,index) in tabList" :key="index"> |
|
|
|
|
{{item.name}} |
|
|
|
|
<view class="flag" v-if="tabCurrent==index" > |
|
|
|
|
<image :src="$picUrl+'/static/index/line.png'" mode=""></image> |
|
|
|
|
<image :src="$picUrl+'/static/index/line.png'"></image> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<!-- <u-tabs :list="tabList" name="name" font-size="28" active-color="#F6393D" |
|
|
|
@ -44,7 +44,7 @@ |
|
|
|
|
<view class="gridRows"> |
|
|
|
|
<view class="gridItem" v-for="(item,index) in gridList" @click="goPage(item.path,item.type)" :key="index"> |
|
|
|
|
<view class="imageC"> |
|
|
|
|
<image :src="item.image" mode=""></image> |
|
|
|
|
<image :src="item.image"></image> |
|
|
|
|
</view> |
|
|
|
|
<text>{{item.text}}</text> |
|
|
|
|
</view> |
|
|
|
@ -52,7 +52,7 @@ |
|
|
|
|
<view class="gridRows secondRows" :style="{'height': isToggle == false?'160rpx':'auto'}"> |
|
|
|
|
<view class="gridItem" v-for="(item,index) in catagoryList" :key="index"> |
|
|
|
|
<view class="imageC"> |
|
|
|
|
<image :src="item.image?item.image.external_url:''" mode=""></image> |
|
|
|
|
<image :src="item.image?item.image.external_url:''"></image> |
|
|
|
|
</view> |
|
|
|
|
<text>{{item.name}}</text> |
|
|
|
|
</view> |
|
|
|
@ -64,27 +64,27 @@ |
|
|
|
|
<u-icon v-else style="margin-left: 10rpx;" name="arrow-up"></u-icon> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="firstContent"> |
|
|
|
|
<image :src="$picUrl+'/static/index/new.png'" class="firstBg"></image> |
|
|
|
|
<view class="firstContent" @click="goNewUser"> |
|
|
|
|
<image :src="$picUrl+'/static/index/new.png'" class="firstBg"></image> |
|
|
|
|
<view class="firstInfo"> |
|
|
|
|
<view class="fTitle" @click="goNewUser"> |
|
|
|
|
<view class="fTitle"> |
|
|
|
|
<image :src="$picUrl+'/static/index/xinren.png'" class="firstTitle"></image> |
|
|
|
|
<text>查看更多</text> |
|
|
|
|
<!-- <text></text> --> |
|
|
|
|
</view> |
|
|
|
|
<view class="couponInfo"> |
|
|
|
|
<view class="left"> |
|
|
|
|
<text class="flag">¥</text> |
|
|
|
|
<text class="num">2516</text> |
|
|
|
|
<text class="num">{{couList.reduce_price}}</text> |
|
|
|
|
<view class="couponName"> |
|
|
|
|
<view>新人券包</view> |
|
|
|
|
<view style="font-size: 20rpx;">领取后7天内有效</view> |
|
|
|
|
<view>{{couList.name}}</view> |
|
|
|
|
<view style="font-size: 20rpx;">领取后{{couList.expire_day}}天内有效</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="line"> |
|
|
|
|
<!-- <view class="line"> |
|
|
|
|
|
|
|
|
|
</view> |
|
|
|
|
</view> --> |
|
|
|
|
<view class="lingqu"> |
|
|
|
|
<view class="lqBtn">去领取</view> |
|
|
|
|
<!-- <view class="lqBtn">去领取</view> --> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
@ -102,7 +102,7 @@ |
|
|
|
|
</view> |
|
|
|
|
<view class="more">查看更多<u-icon style="margin-left:10rpx;" name="arrow-right"></u-icon></view> |
|
|
|
|
<view class="dapaiContent" @click="goBigGoods" v-if="dapaiList.length>0"> |
|
|
|
|
<view class="dapaiItem" v-for="(item,index) in dapaiList" :key="index"> |
|
|
|
|
<view class="dapaiItem" v-for="(item,index) in dapaiList" :key="index" @click="goJump('/pages/goods/detail?goodsId=' + item.goods_id)"> |
|
|
|
|
<view class="picContent"> |
|
|
|
|
<image :src="item.goods_image"></image> |
|
|
|
|
</view> |
|
|
|
@ -124,17 +124,19 @@ |
|
|
|
|
<view class="more">查看更多<u-icon style="margin-left:10rpx;" name="arrow-right"></u-icon></view> |
|
|
|
|
<view class="rest"> |
|
|
|
|
<text>本场剩余</text> |
|
|
|
|
<view class="date-time"> |
|
|
|
|
<text class="time">02</text> |
|
|
|
|
<text class="da">:</text> |
|
|
|
|
<text class="time">15</text> |
|
|
|
|
<text class="da">:</text> |
|
|
|
|
<text class="time">55</text> |
|
|
|
|
</view> |
|
|
|
|
<u-count-down :timestamp="seckillCutDownTime" format="HH:mm:ss" autoStart @change="onChangeSeckillCutDownTime"> |
|
|
|
|
<view class="date-time"> |
|
|
|
|
<text class="time">{{timeData.hours>10?timeData.hours:'0'+timeData.hours}}</text> |
|
|
|
|
<text class="da">:</text> |
|
|
|
|
<text class="time">{{ timeData.minutes>10?timeData.minutes:'0'+timeData.minutes}}</text> |
|
|
|
|
<text class="da">:</text> |
|
|
|
|
<text class="time">{{ timeData.seconds>10?timeData.seconds:'0'+timeData.seconds}}</text> |
|
|
|
|
</view> |
|
|
|
|
</u-count-down> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="goods-list"> |
|
|
|
|
<view class="list" v-for="(item, index) in seckillList" :key="index"> |
|
|
|
|
<view class="list" v-for="(item, index) in seckillList" :key="index" @click="goJump('/pages/goods/detail?goodsId=' + item.goods_id)"> |
|
|
|
|
<view class="pictrue"> |
|
|
|
|
<image :src="item.goods_image"></image> |
|
|
|
|
</view> |
|
|
|
@ -166,7 +168,7 @@ |
|
|
|
|
<view class="more" @click="goNewGoods">查看更多<u-icon name="arrow-right"></u-icon></view> |
|
|
|
|
<scroll-view scroll-x="true"> |
|
|
|
|
<view class="right1Good"> |
|
|
|
|
<view class="right1Item" v-for="(item,index) in xinpinList" :key="index"> |
|
|
|
|
<view class="right1Item" v-for="(item,index) in xinpinList" :key="index" @click="goJump('/pages/goods/detail?goodsId=' + item.goods_id)"> |
|
|
|
|
<image :src="item.goods_image"></image> |
|
|
|
|
<view class="priceBox"> |
|
|
|
|
<image :src="$picUrl+'/static/index/price.png'" mode="heightFix"></image> |
|
|
|
@ -182,7 +184,7 @@ |
|
|
|
|
<image :src="$picUrl+'/static/index/paihangbang.png'" mode="widthFix" @click="rankIng" class="title"></image> |
|
|
|
|
<view class="more" @click="rankIng">查看更多<u-icon name="arrow-right"></u-icon></view> |
|
|
|
|
<view class="right1Good"> |
|
|
|
|
<view class="right1Item" v-for="(item,index) in paihangList" :key="index"> |
|
|
|
|
<view class="right1Item" v-for="(item,index) in paihangList" :key="index" @click="goJump('/pages/goods/detail?goodsId=' + item.goods_id)"> |
|
|
|
|
<image :src="item.goods_image"></image> |
|
|
|
|
<view class="priceBox"> |
|
|
|
|
<image :src="$picUrl+'/static/index/price.png'" mode="heightFix"></image> |
|
|
|
@ -226,9 +228,6 @@ |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view v-show="current==1"> |
|
|
|
|
<view class="toTop"> |
|
|
|
|
<image src="@/static/toTop.png"></image> |
|
|
|
|
</view> |
|
|
|
|
<view class="secondSection"> |
|
|
|
|
<image class="shopImage" :src="cityInfo.imageList?cityInfo.imageList[0]:''"></image> |
|
|
|
|
<view class="content"> |
|
|
|
@ -250,7 +249,7 @@ |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="zixun"> |
|
|
|
|
<view class="zixunItem"> |
|
|
|
|
<view class="zixunItem" @click="openWx()"> |
|
|
|
|
<image src="/static/user/weChat.png" mode="widthFix" class="weChat"></image> |
|
|
|
|
<view class="askText"> |
|
|
|
|
咨询 |
|
|
|
@ -291,20 +290,20 @@ |
|
|
|
|
<view class="diannei"> |
|
|
|
|
<view class="dianneiTitle"> |
|
|
|
|
<text>店内现货</text> |
|
|
|
|
<view class="lookMore"> |
|
|
|
|
<view class="lookMore" @click="goJump('/pages/user/vip/goods')"> |
|
|
|
|
查看更多 |
|
|
|
|
<u-icon name="arrow-right"></u-icon> |
|
|
|
|
<u-icon name="arrow-right" color="#909090"></u-icon> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<scroll-view scroll-x="true" style="height: 164rpx;"> |
|
|
|
|
<view class="dianneiContent"> |
|
|
|
|
<view class="dianneiItem" v-for="(item,index) in dapaiList" :key="index"> |
|
|
|
|
<scroll-view class="dianneiContent" scroll-x="true" style="height: 164rpx;"> |
|
|
|
|
<view class="dianneiItem" v-for="(item,index) in dapaiList" :key="index" @click="goJump('/pages/goods/detail?goodsId=' + item.goods_id)" > |
|
|
|
|
<image :src="item.goods_image"></image> |
|
|
|
|
<view class="itemTitle"> |
|
|
|
|
{{item.goods_name}} |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<!-- <view class="dianneiContent"> |
|
|
|
|
</view> --> |
|
|
|
|
</scroll-view> |
|
|
|
|
</view> |
|
|
|
|
<view class="diannei"> |
|
|
|
@ -312,36 +311,36 @@ |
|
|
|
|
<text>同城服务</text> |
|
|
|
|
<view class="lookMore"> |
|
|
|
|
查看更多 |
|
|
|
|
<u-icon name="arrow-right"></u-icon> |
|
|
|
|
<u-icon name="arrow-right" color="#909090"></u-icon> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<scroll-view scroll-x="true" style="height: 290rpx;"> |
|
|
|
|
<view class="serviceConent"> |
|
|
|
|
<view class="serviceItem" v-for="(item,index) in weixiuList" :key="index"> |
|
|
|
|
<image :src="item.image" mode=""></image> |
|
|
|
|
<scroll-view class="serviceConent" scroll-x="true" style="height: 260rpx;"> |
|
|
|
|
<!-- <view class="serviceConent"> --> |
|
|
|
|
<view class="serviceItem" v-for="(item,index) in serveList" :key="index" @click="openServe(index)"> |
|
|
|
|
<image :src="item.image_url" mode=""></image> |
|
|
|
|
<view class="itemTitle"> |
|
|
|
|
{{item.name}} |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<!-- </view> --> |
|
|
|
|
</scroll-view> |
|
|
|
|
</view> |
|
|
|
|
<view class="comment"> |
|
|
|
|
<view class="commentTitle"> |
|
|
|
|
<text>门店评价(1)</text> |
|
|
|
|
<!-- <view class="lookMore"> |
|
|
|
|
<text>门店评价({{cityInfo.evaluate?cityInfo.evaluate.length:''}})</text> |
|
|
|
|
<view class="lookMore" @click="openPinlun()"> |
|
|
|
|
查看更多 |
|
|
|
|
<u-icon name="arrow-right"></u-icon> |
|
|
|
|
</view> --> |
|
|
|
|
<u-icon name="arrow-right" color="#909090"></u-icon> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="commentItem"> |
|
|
|
|
<view class="commentItem" v-for="(a,i) in cityInfo.evaluate" :key="i"> |
|
|
|
|
<view class="left"> |
|
|
|
|
<view class="commentAvatar"> |
|
|
|
|
<image :src="cityInfo.evaluate?cityInfo.evaluate.image:''" mode=""></image> |
|
|
|
|
<text>{{cityInfo.evaluate?cityInfo.evaluate.nickname:''}}</text> |
|
|
|
|
<image :src="a.image" mode=""></image> |
|
|
|
|
<text>{{a.nickname}}</text> |
|
|
|
|
</view> |
|
|
|
|
<view class="commentText"> |
|
|
|
|
{{cityInfo.evaluate?cityInfo.evaluate.content:''}} |
|
|
|
|
{{a.content}} |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<!-- <view class="right"> |
|
|
|
@ -351,13 +350,13 @@ |
|
|
|
|
<view class="commentTitle" style="padding:26rpx 0 16rpx 0;" @click="goJump('/pages/news/consult/store')"> |
|
|
|
|
<text>门店相册</text> |
|
|
|
|
<view class="lookMore"> |
|
|
|
|
<u-icon name="arrow-right"></u-icon> |
|
|
|
|
<u-icon name="arrow-right" color="#909090"></u-icon> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<scroll-view scroll-x="true" style="height: 150rpx;"> |
|
|
|
|
<scroll-view scroll-x="true" style="height: 130rpx;"> |
|
|
|
|
<view class="commentContent"> |
|
|
|
|
<view class="serviceItem" v-for="(item,index) in cityInfo.imageList" :key="index"> |
|
|
|
|
<image :src="item.image" mode=""></image> |
|
|
|
|
<view class="serviceItem" v-for="(item,index) in cityInfo.imageList" :key="index" @click="previewImage(index)"> |
|
|
|
|
<image :src="item"></image> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</scroll-view> |
|
|
|
@ -368,7 +367,7 @@ |
|
|
|
|
门店历史 |
|
|
|
|
</view> |
|
|
|
|
<u-time-line> |
|
|
|
|
<u-time-line-item nodeTop="6" style="display: flex;"> |
|
|
|
|
<u-time-line-item nodeTop="6" v-for="(a,i) in cityInfo.history" :key="i" style="display: flex;"> |
|
|
|
|
<!-- 此处自定义了左边内容,用一个图标替代 --> |
|
|
|
|
<template v-slot:node> |
|
|
|
|
<view class="u-node"> |
|
|
|
@ -379,9 +378,9 @@ |
|
|
|
|
</template> |
|
|
|
|
<template v-slot:content> |
|
|
|
|
<view style="margin-bottom:26rpx"> |
|
|
|
|
<view class="u-order-title">{{cityInfo.history?cityInfo.history.time:''}}</view> |
|
|
|
|
<view class="u-order-title" style="margin-top:10rpx">{{a.time}}</view> |
|
|
|
|
<view class="u-order-desc"> |
|
|
|
|
{{cityInfo.history?cityInfo.history.contenmt:''}} |
|
|
|
|
{{a.contenmt}} |
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
</view> |
|
|
|
@ -413,17 +412,23 @@ |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
<view class="toTop" v-if="isTop" @click="openScrollTo()"> |
|
|
|
|
<image src="@/static/toTop.png"></image> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</template> |
|
|
|
|
<script> |
|
|
|
|
import * as GoodsApi from '@/api/home/index.js'; |
|
|
|
|
import * as limit from '@/api/sharp/home.js'; |
|
|
|
|
import * as Api from '@/api/goods' |
|
|
|
|
import * as activity from '@/api/activity' |
|
|
|
|
import * as newFunApi from '@/api/newFun' |
|
|
|
|
export default{ |
|
|
|
|
data(){ |
|
|
|
|
return{ |
|
|
|
|
|
|
|
|
|
isTop:true, |
|
|
|
|
isTop: false, |
|
|
|
|
// background: { |
|
|
|
|
// backgroundColor: 'transparent', |
|
|
|
|
// }, |
|
|
|
@ -439,41 +444,18 @@ |
|
|
|
|
tabCurrent:0, |
|
|
|
|
swiperList:[`${this.$picUrl}/static/index/guanggao.png`], |
|
|
|
|
gridList:[ |
|
|
|
|
{image:`${this.$picUrl}/static/index/g1.png`,text:"预售专区",path:'/pages/activity/presale',type:1}, |
|
|
|
|
{image:`${this.$picUrl}/static/index/g1.png`,text:"预售专区",path:'/pages/activity/presale',type:2}, |
|
|
|
|
{image:`${this.$picUrl}/static/index/g2.png`,text:"邀请有礼",path:'/pages/invite/index',type:1}, |
|
|
|
|
{image:`${this.$picUrl}/static/index/g3.png`,text:"领券中心",path:'/pages/news/coupon/index',type:1}, |
|
|
|
|
{image:`${this.$picUrl}/static/index/g4.png`,text:"安装报修",path:'/pages/serve/index',type:3}, |
|
|
|
|
{image:`${this.$picUrl}/static/index/g5.png`,text:"上门回收",path:'/pages/news/recycling/index',type:1}, |
|
|
|
|
{image:`${this.$picUrl}/static/index/g3.png`,text:"领券中心",path:'/pages/news/coupon/index',type:2}, |
|
|
|
|
{image:`${this.$picUrl}/static/index/g4.png`,text:"安装报修",path:'/pages/serve/index',type: 3}, |
|
|
|
|
{image:`${this.$picUrl}/static/index/g5.png`,text:"上门回收",path:'/pages/news/recycling/index',type:2}, |
|
|
|
|
], |
|
|
|
|
catagoryList:[], |
|
|
|
|
paihangList:[], |
|
|
|
|
dapaiList:[], |
|
|
|
|
seckillList:[ |
|
|
|
|
// {image:`${this.$picUrl}/static/index/goods1.png`,price:"372",linePrice:'2420'}, |
|
|
|
|
// {image:`${this.$picUrl}/static/index/goods.png`,price:"372",linePrice:'2420'}, |
|
|
|
|
// {image:`${this.$picUrl}/static/index/goods1.png`,price:"372",linePrice:'2420'}, |
|
|
|
|
// {image:`${this.$picUrl}/static/index/goods.png`,price:"372",linePrice:'2420'}, |
|
|
|
|
// {image:`${this.$picUrl}/static/index/goods1.png`,price:"372",linePrice:'2420'}, |
|
|
|
|
// {image:`${this.$picUrl}/static/index/goods.png`,price:"372",linePrice:'2420'}, |
|
|
|
|
// {image:`${this.$picUrl}/static/index/goods1.png`,price:"372",linePrice:'2420'}, |
|
|
|
|
], |
|
|
|
|
xinpinList:[ |
|
|
|
|
// {image:`${this.$picUrl}/static/index/goods.png`,price:"1428"}, |
|
|
|
|
// {image:`${this.$picUrl}/static/index/goods1.png`,price:"1428"}, |
|
|
|
|
// {image:`${this.$picUrl}/static/index/goods.png`,price:"1428"}, |
|
|
|
|
], |
|
|
|
|
|
|
|
|
|
goodsRecommend:[ |
|
|
|
|
// {image:`${this.$picUrl}/static/index/goods.png`,price:"7599",linePrice:'7089',name:'iphone13 绿色 128GBiphone13 绿色 128GBiphone13 绿色 128GB',comment:'200+',rate:'99',isOwn:true,isExperss:1}, |
|
|
|
|
// {image:`${this.$picUrl}/static/index/goods1.png`,price:"7599",linePrice:'7089',name:'iphone13 绿色 128GB',comment:'200+',rate:'99',isOwn:true,isExperss:0}, |
|
|
|
|
// {image:`${this.$picUrl}/static/index/goods.png`,price:"7599",linePrice:'7089',name:'iphone13 绿色 128GB',comment:'200+',rate:'99',isOwn:true,isExperss:0}, |
|
|
|
|
// {image:`${this.$picUrl}/static/index/goods1.png`,price:"7599",linePrice:'7089',name:'iphone13 绿色 128GB',comment:'200+',rate:'99',isOwn:true,isExperss:1}, |
|
|
|
|
// {image:`${this.$picUrl}/static/index/goods.png`,price:"7599",linePrice:'7089',name:'iphone13 绿色 128GB',comment:'200+',rate:'99',isOwn:true,isExperss:0}, |
|
|
|
|
// {image:`${this.$picUrl}/static/index/goods1.png`,price:"7599",linePrice:'7089',name:'iphone13 绿色 128GB',comment:'200+',rate:'99',isOwn:true,isExperss:1}, |
|
|
|
|
// {image:`${this.$picUrl}/static/index/goods.png`,price:"7599",linePrice:'7089',name:'iphone13 绿色 128GB',comment:'200+',rate:'99',isOwn:true,isExperss:1}, |
|
|
|
|
// {image:`${this.$picUrl}/static/index/goods1.png`,price:"7599",linePrice:'7089',name:'iphone13 绿色 128GB',comment:'200+',rate:'99',isOwn:true,isExperss:1}, |
|
|
|
|
// {image:`${this.$picUrl}/static/index/goods.png`,price:"7599",linePrice:'7089',name:'iphone13 绿色 128GB',comment:'200+',rate:'99',isOwn:true,isExperss:1}, |
|
|
|
|
], |
|
|
|
|
seckillList:[], |
|
|
|
|
xinpinList:[], |
|
|
|
|
goodsRecommend:[], |
|
|
|
|
isToggle: false, |
|
|
|
|
//第二 |
|
|
|
|
count: 4, |
|
|
|
@ -493,24 +475,80 @@ |
|
|
|
|
{image:`${this.$picUrl}/static/index/goods.png`,price:"7599",linePrice:'7089',name:'iphone13 绿色 128GB',comment:'200+',rate:'99',isOwn:true,isExperss:1}, |
|
|
|
|
], |
|
|
|
|
weixiuList:[ |
|
|
|
|
{image:`/static/weixiu.png`,name:'维修'}, |
|
|
|
|
{image:`/static/weixiu.png`,name:'安装'}, |
|
|
|
|
{image:`/static/weixiu.png`,name:'维修'}, |
|
|
|
|
], |
|
|
|
|
commentList:[ |
|
|
|
|
{image:`/static/11.png`,name:'维修'}, |
|
|
|
|
{image:`/static/11.png`,name:'维修'}, |
|
|
|
|
{image:`/static/11.png`,name:'维修'}, |
|
|
|
|
{image:`/static/11.png`,name:'维修'}, |
|
|
|
|
], |
|
|
|
|
cityInfo:{ |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
cityInfo:{}, |
|
|
|
|
serveList: [], |
|
|
|
|
couList: [], |
|
|
|
|
timeData: {}, |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
methods:{ |
|
|
|
|
|
|
|
|
|
onChangeSeckillCutDownTime(e){ |
|
|
|
|
this.timeData = e |
|
|
|
|
}, |
|
|
|
|
//跳转会话列表 |
|
|
|
|
toChat() { |
|
|
|
|
if(!uni.getStorageSync("AccessToken")){ |
|
|
|
|
uni.navigateTo({ |
|
|
|
|
url: "/pages/login/index" |
|
|
|
|
}) |
|
|
|
|
return ; |
|
|
|
|
} |
|
|
|
|
uni.navigateTo({ |
|
|
|
|
url: "/pages/news/user/message" |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
//查看全部评论 |
|
|
|
|
openPinlun(){ |
|
|
|
|
uni.navigateTo({ |
|
|
|
|
url: "/pages/news/consult/comment" |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
//咨询 |
|
|
|
|
openWx(){ |
|
|
|
|
uni.navigateTo({ |
|
|
|
|
url: "/pages/news/consult/index" |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
//门店图片预览 |
|
|
|
|
previewImage(i){ |
|
|
|
|
uni.previewImage({ |
|
|
|
|
current: this.cityInfo.imageList[i], |
|
|
|
|
urls: this.cityInfo.imageList |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
//跳转服务 |
|
|
|
|
openServe(i){ |
|
|
|
|
uni.navigateTo({ |
|
|
|
|
url: "/pages/activity/intimate?index="+ i |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
/** |
|
|
|
|
* 获取服务列表 |
|
|
|
|
*/ |
|
|
|
|
async getServeList() { |
|
|
|
|
const {status, message, data} = await newFunApi.serverCategoryList({}); |
|
|
|
|
if(status == 200){ |
|
|
|
|
this.serveList = data.list |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
// 获取新人礼包劵 |
|
|
|
|
async getCoupons() { |
|
|
|
|
const { |
|
|
|
|
status, |
|
|
|
|
message, |
|
|
|
|
data |
|
|
|
|
} = await activity.couponList(); |
|
|
|
|
if (status == 200) { |
|
|
|
|
let arr = {} |
|
|
|
|
if(data.list && data.list.length > 0){ |
|
|
|
|
arr = data.list.filter(a=>a.coupon_type == 10)[0] |
|
|
|
|
} |
|
|
|
|
this.couList = arr |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
search() { |
|
|
|
|
// 跳转商品搜索 |
|
|
|
|
uni.navigateTo({ |
|
|
|
@ -536,6 +574,10 @@ |
|
|
|
|
}) |
|
|
|
|
return ; |
|
|
|
|
} |
|
|
|
|
}else if(type == 2){ |
|
|
|
|
uni.navigateTo({ |
|
|
|
|
url |
|
|
|
|
}) |
|
|
|
|
}else{ |
|
|
|
|
uni.switchTab({ |
|
|
|
|
url |
|
|
|
@ -547,7 +589,6 @@ |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
changeGoodsType(index) { |
|
|
|
|
console.log(index,"00",this.tabList) |
|
|
|
|
this.tabCurrent = index; |
|
|
|
|
this.catagoryList = this.tabList[index].children; |
|
|
|
|
this.getRankingList(this.tabList[index].category_id) |
|
|
|
@ -582,7 +623,10 @@ |
|
|
|
|
limit.data().then(result => { |
|
|
|
|
let seckillList = []; |
|
|
|
|
if(result.data.tabbar && result.data.tabbar.length > 0){ |
|
|
|
|
this.seckillCutDownTime = result.data.tabbar[0].count_down_time; |
|
|
|
|
let count_down_time = result.data.tabbar[0].count_down_time.replace(/-/g, '/'); |
|
|
|
|
this.seckillCutDownTime = Math.ceil((new Date(count_down_time).getTime() - new Date().getTime())); |
|
|
|
|
}else{ |
|
|
|
|
this.seckillCutDownTime = 0 |
|
|
|
|
} |
|
|
|
|
if(result.data.goodsList && result.data.goodsList.data.length > 0){ |
|
|
|
|
seckillList = result.data.goodsList.data; |
|
|
|
@ -704,14 +748,14 @@ |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
changeHome(val){ |
|
|
|
|
console.log(val,"000") |
|
|
|
|
this.current = val; |
|
|
|
|
}, |
|
|
|
|
getCityInfo(){ |
|
|
|
|
const that =this |
|
|
|
|
GoodsApi.cityInfo().then(res => { |
|
|
|
|
if (res.status == 200) { |
|
|
|
|
that.cityInfo = res.data |
|
|
|
|
that.cityInfo = res.data; |
|
|
|
|
uni.setStorageSync("cityInfo",res.data) |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
.finally(() => {}) |
|
|
|
@ -728,8 +772,13 @@ |
|
|
|
|
}, |
|
|
|
|
openMap() { |
|
|
|
|
uni.openLocation({ |
|
|
|
|
latitude: this.cityInfo.latitude, |
|
|
|
|
longitude: this.cityInfo.longitude |
|
|
|
|
latitude: Number(this.cityInfo.latitude), |
|
|
|
|
longitude: Number(this.cityInfo.longitude) |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
openScrollTo(){ |
|
|
|
|
uni.pageScrollTo({ |
|
|
|
|
scrollTop: 0 |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
@ -738,14 +787,14 @@ |
|
|
|
|
this.getSeckill() |
|
|
|
|
this.getSuggest() |
|
|
|
|
this.getCityInfo() |
|
|
|
|
|
|
|
|
|
this.getCoupons(); |
|
|
|
|
this.getServeList(); |
|
|
|
|
}, |
|
|
|
|
onPageScroll(e) { |
|
|
|
|
if (e.scrollTop === 0 ) { // 当滚动到顶部且向下滑动时为true |
|
|
|
|
|
|
|
|
|
this.isTop = true |
|
|
|
|
if (e.scrollTop <= 200 ) { // 当滚动到顶部且向下滑动时为true |
|
|
|
|
this.isTop = false |
|
|
|
|
} else { |
|
|
|
|
this.isTop = false |
|
|
|
|
this.isTop = true |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
} |
|
|
|
@ -988,7 +1037,7 @@ |
|
|
|
|
display: flex; |
|
|
|
|
justify-content:center; |
|
|
|
|
align-items: center; |
|
|
|
|
margin-top:24rpx; |
|
|
|
|
margin-top: 50rpx; |
|
|
|
|
.flag{ |
|
|
|
|
font-size: 46rpx; |
|
|
|
|
font-family: PingFang SC, PingFang SC; |
|
|
|
@ -1151,11 +1200,13 @@ |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
.qianggou{ |
|
|
|
|
padding:10rpx 20rpx; |
|
|
|
|
width: 694rpx; |
|
|
|
|
height: 234rpx; |
|
|
|
|
padding: 10rpx 20rpx; |
|
|
|
|
background: linear-gradient(180deg, #FFF8F8 0%, #FFFFFF 100%); |
|
|
|
|
border-radius: 4px 4px 4px 4px; |
|
|
|
|
opacity: 1; |
|
|
|
|
margin-top:18rpx; |
|
|
|
|
border-radius: 8rpx; |
|
|
|
|
margin-top: 18rpx; |
|
|
|
|
box-sizing: border-box; |
|
|
|
|
position: relative; |
|
|
|
|
.more{ |
|
|
|
|
font-size: 20rpx; |
|
|
|
@ -1168,7 +1219,6 @@ |
|
|
|
|
.title{ |
|
|
|
|
display: flex; |
|
|
|
|
align-items: center; |
|
|
|
|
justify-content: space-between; |
|
|
|
|
&>image{ |
|
|
|
|
width:160rpx; |
|
|
|
|
height:auto; |
|
|
|
@ -1440,6 +1490,7 @@ |
|
|
|
|
} |
|
|
|
|
.secondSection{ |
|
|
|
|
padding-bottom: 40rpx; |
|
|
|
|
margin-top: 20rpx; |
|
|
|
|
.shopImage{ |
|
|
|
|
height:484rpx; |
|
|
|
|
width:100%; |
|
|
|
@ -1596,10 +1647,8 @@ |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
.diannei{ |
|
|
|
|
padding:20rpx; |
|
|
|
|
padding:10rpx 26rpx; |
|
|
|
|
margin-top:10rpx; |
|
|
|
|
margin: 10rpx 26rpx 0 26rpx; |
|
|
|
|
margin: 20rpx 26rpx 0 26rpx; |
|
|
|
|
background: #fff; |
|
|
|
|
border-radius: 4px 4px 4px 4px; |
|
|
|
|
.dianneiTitle{ |
|
|
|
@ -1621,12 +1670,17 @@ |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
.dianneiContent{ |
|
|
|
|
display: flex; |
|
|
|
|
align-items: center; |
|
|
|
|
flex-wrap: nowrap; |
|
|
|
|
white-space: nowrap; |
|
|
|
|
margin-top:14rpx; |
|
|
|
|
.lookMore{ |
|
|
|
|
font-size: 24rpx; |
|
|
|
|
font-weight: 400; |
|
|
|
|
color: #909090; |
|
|
|
|
} |
|
|
|
|
.dianneiItem{ |
|
|
|
|
width: 20%; |
|
|
|
|
text-align: center; |
|
|
|
|
display: inline-block; |
|
|
|
|
image{ |
|
|
|
|
width:104rpx; |
|
|
|
|
height:104rpx; |
|
|
|
@ -1645,15 +1699,12 @@ |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
.serviceConent{ |
|
|
|
|
display: flex; |
|
|
|
|
align-items: center; |
|
|
|
|
flex-wrap: nowrap; |
|
|
|
|
|
|
|
|
|
white-space: nowrap; |
|
|
|
|
margin-top:26rpx; |
|
|
|
|
.serviceItem{ |
|
|
|
|
width: 32%; |
|
|
|
|
// width: 202rpx; |
|
|
|
|
width: 202rpx; |
|
|
|
|
height: 246rpx; |
|
|
|
|
display: inline-block; |
|
|
|
|
position: relative; |
|
|
|
|
margin-right: 26rpx; |
|
|
|
|
// justify-content: space-between; |
|
|
|
@ -1682,12 +1733,15 @@ |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
.comment{ |
|
|
|
|
padding:20rpx; |
|
|
|
|
padding:44rpx 40rpx; |
|
|
|
|
margin-top:10rpx; |
|
|
|
|
margin: 10rpx 26rpx 0 26rpx; |
|
|
|
|
margin: 20rpx 26rpx 0 26rpx; |
|
|
|
|
background: #fff; |
|
|
|
|
border-radius: 4px 4px 4px 4px; |
|
|
|
|
.lookMore{ |
|
|
|
|
font-size: 24rpx; |
|
|
|
|
font-weight: 400; |
|
|
|
|
color: #909090; |
|
|
|
|
} |
|
|
|
|
.commentTitle{ |
|
|
|
|
display:flex; |
|
|
|
|
align-items: center; |
|
|
|
@ -1753,7 +1807,7 @@ |
|
|
|
|
display: flex; |
|
|
|
|
flex-wrap: nowrap; |
|
|
|
|
.serviceItem{ |
|
|
|
|
width: 200rpx; |
|
|
|
|
width: 196rpx; |
|
|
|
|
height: 140rpx; |
|
|
|
|
border-radius:4px; |
|
|
|
|
opacity: 1; |
|
|
|
@ -1769,12 +1823,9 @@ |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
.history{ |
|
|
|
|
|
|
|
|
|
background: #FFFFFF; |
|
|
|
|
border-radius: 4px 4px 4px 4px; |
|
|
|
|
opacity: 1; |
|
|
|
|
margin-top:16rpx; |
|
|
|
|
margin:16rpx 26rpx; |
|
|
|
|
margin: 20rpx 26rpx; |
|
|
|
|
padding:20rpx 34rpx; |
|
|
|
|
.title{ |
|
|
|
|
|
|
|
|
@ -1793,10 +1844,9 @@ |
|
|
|
|
opacity: 1; |
|
|
|
|
border: 2px solid #F21C1C; |
|
|
|
|
margin-top:10rpx; |
|
|
|
|
margin-right:20rpx; |
|
|
|
|
margin-right:0; |
|
|
|
|
} |
|
|
|
|
.u-order-title{ |
|
|
|
|
|
|
|
|
|
font-size: 24rpx; |
|
|
|
|
font-family: PingFang SC, PingFang SC; |
|
|
|
|
font-weight: 400; |
|
|
|
|