Merge branch 'dev' into test
This commit is contained in:
+23
@@ -101,3 +101,26 @@ export function receiveSojoumGroupBuyGift(params) {
|
|||||||
login: true
|
login: true
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 旅居礼品卡送礼入口轮播图
|
||||||
|
* @param {*} params
|
||||||
|
* @returns
|
||||||
|
*/
|
||||||
|
export function fetchSojoumGroupBuyGiftCarousel(params) {
|
||||||
|
return request.get("/travel/giftCardTravelBanner",params, {
|
||||||
|
login: true
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 计算旅居团购礼品订单价格
|
||||||
|
* @param {*} params
|
||||||
|
* @returns
|
||||||
|
*/
|
||||||
|
|
||||||
|
export function computedSojoumGroupBuyGiftOrderPrice(params) {
|
||||||
|
return request.post("/travel/giftCardOrder/computed/" + params.key, params, {
|
||||||
|
login: true
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|||||||
+7
-4
@@ -110,9 +110,9 @@ export function getSaleList(params) {
|
|||||||
// }
|
// }
|
||||||
|
|
||||||
// 旅居详情
|
// 旅居详情
|
||||||
// export function getJiaLouDetail(id) {
|
export function getJiaLouDetail1(id) {
|
||||||
// return request.get('/countyFamous/sojourn/' + id, {}, {login: true})
|
return request.get('/countyFamous/sojourn/' + id, {}, {login: true})
|
||||||
// }
|
}
|
||||||
|
|
||||||
// 旅居资讯数据
|
// 旅居资讯数据
|
||||||
export function getJiaLouNews(params) {
|
export function getJiaLouNews(params) {
|
||||||
@@ -153,7 +153,10 @@ export function postJiaLouNewsZan(data) {
|
|||||||
export function postJiaLouShare(id) {
|
export function postJiaLouShare(id) {
|
||||||
return request.get('/countyFamous/sojourn/poster/' + id, {login: true})
|
return request.get('/countyFamous/sojourn/poster/' + id, {login: true})
|
||||||
}
|
}
|
||||||
|
// 分享旅居1
|
||||||
|
export function postTravelShare(id) {
|
||||||
|
return request.get('/travel/poster/' + id, {login: true})
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* 获取旅居列表
|
* 获取旅居列表
|
||||||
* countyId int 县城ID
|
* countyId int 县城ID
|
||||||
|
|||||||
@@ -24,7 +24,8 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
showImg: false,
|
showImg: false,
|
||||||
settingInfo: {}
|
settingInfo: {},
|
||||||
|
localCityName: uni.getStorageSync('locationCityName') || ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
@@ -42,7 +43,7 @@ export default {
|
|||||||
},
|
},
|
||||||
enterAiChat() {
|
enterAiChat() {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/aiChat/views/index?click=1&cityName=' + this.cityName
|
url: '/aiChat/views/index?click=1&cityName=' + (this.cityName || this.localCityName)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
"versionName" : "4.0.0",
|
"versionName" : "4.0.0",
|
||||||
"versionCode" : 4,
|
"versionCode" : 4,
|
||||||
"transformPx" : false,
|
"transformPx" : false,
|
||||||
|
"sassImplementationName" : "node-sass",
|
||||||
/* 5+App特有相关 */
|
/* 5+App特有相关 */
|
||||||
"app-plus" : {
|
"app-plus" : {
|
||||||
"usingComponents" : true,
|
"usingComponents" : true,
|
||||||
|
|||||||
+8
-94
@@ -22,12 +22,6 @@
|
|||||||
"navigationBarTitleText": "登录"
|
"navigationBarTitleText": "登录"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"path": "pages/user/RetrievePassword/index",
|
|
||||||
"style": {
|
|
||||||
"navigationBarTitleText": "重置密码"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"path": "pages/home/index",
|
"path": "pages/home/index",
|
||||||
"style": {
|
"style": {
|
||||||
@@ -51,7 +45,7 @@
|
|||||||
{
|
{
|
||||||
"path": "pages/home/newZone",
|
"path": "pages/home/newZone",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "新品专区",
|
"navigationBarTitleText": "甄选好礼",
|
||||||
"navigationBarBackgroundColor": "#FFFFFF"
|
"navigationBarBackgroundColor": "#FFFFFF"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -94,12 +88,6 @@
|
|||||||
"navigationBarTitleText": "搜索"
|
"navigationBarTitleText": "搜索"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"path": "pages/NotDefined/index",
|
|
||||||
"style": {
|
|
||||||
"navigationBarTitleText": "404"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"path": "pages/cloud/haveFun",
|
"path": "pages/cloud/haveFun",
|
||||||
"style": {
|
"style": {
|
||||||
@@ -140,18 +128,6 @@
|
|||||||
"navigationBarTitleText": "商品评价"
|
"navigationBarTitleText": "商品评价"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"path": "pages/shop/GoodsPromotion/index",
|
|
||||||
"style": {
|
|
||||||
"navigationBarTitleText": "促销商品"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "pages/shop/HotNewGoods/index",
|
|
||||||
"style": {
|
|
||||||
"navigationBarTitleText": "热门商品"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"path": "pages/shop/GoodsCon/index",
|
"path": "pages/shop/GoodsCon/index",
|
||||||
"style": {
|
"style": {
|
||||||
@@ -185,43 +161,12 @@
|
|||||||
"navigationBarTitleText": "收货地址"
|
"navigationBarTitleText": "收货地址"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"path": "pages/user/promotion/Poster/index",
|
|
||||||
"style": {
|
|
||||||
"navigationBarTitleText": "推广名片"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "pages/user/signIn/Sign/index",
|
|
||||||
"style": {
|
|
||||||
"navigationBarTitleText": "签到"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "pages/user/signIn/SignRecord/index",
|
|
||||||
"style": {
|
|
||||||
"navigationBarTitleText": "签到记录"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"path": "pages/user/promotion/CashAudit/index",
|
"path": "pages/user/promotion/CashAudit/index",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "提现结果"
|
"navigationBarTitleText": "提现结果"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"path": "pages/user/promotion/PromoterOrder/index",
|
|
||||||
"style": {
|
|
||||||
"navigationBarTitleText": "分销详情"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "pages/user/promotion/PromoterList/index",
|
|
||||||
"style": {
|
|
||||||
"navigationBarTitleText": "分销列表",
|
|
||||||
"navigationBarBackgroundColor": "#FFFFFF"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"path": "pages/user/promotion/UserPromotion/index",
|
"path": "pages/user/promotion/UserPromotion/index",
|
||||||
"style": {
|
"style": {
|
||||||
@@ -255,12 +200,6 @@
|
|||||||
"navigationBarTitleText": "我的积分"
|
"navigationBarTitleText": "我的积分"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"path": "pages/user/UserVip/index",
|
|
||||||
"style": {
|
|
||||||
"navigationBarTitleText": "用户vip"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"path": "pages/user/promotion/UserCash/index",
|
"path": "pages/user/promotion/UserCash/index",
|
||||||
"style": {
|
"style": {
|
||||||
@@ -343,13 +282,6 @@
|
|||||||
"navigationBarBackgroundColor": "#FFFFFF"
|
"navigationBarBackgroundColor": "#FFFFFF"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"path": "pages/user/MemberUpgradeIntro/MemberUpgradeIntro",
|
|
||||||
"style": {
|
|
||||||
"navigationBarTitleText": "升级说明",
|
|
||||||
"navigationBarBackgroundColor": "#FFFFFF"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"path": "pages/VideoPlayBackList/VideoPlayBackList",
|
"path": "pages/VideoPlayBackList/VideoPlayBackList",
|
||||||
"style": {
|
"style": {
|
||||||
@@ -364,31 +296,6 @@
|
|||||||
"navigationBarBackgroundColor": "#FFFFFF"
|
"navigationBarBackgroundColor": "#FFFFFF"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"path": "pages/user/UpgradeElectronicProtocol/UpgradeElectronicProtocol",
|
|
||||||
"style": {
|
|
||||||
"navigationBarTitleText": "升级",
|
|
||||||
"navigationBarBackgroundColor": "#FFFFFF"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "pages/user/UpgradeProtocolDetail/UpgradeProtocolDetail",
|
|
||||||
"style": {
|
|
||||||
"navigationBarTitleText": "共享股东协议"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "pages/LiveAndShortVideo/LiveAndShortVideo",
|
|
||||||
"style": {
|
|
||||||
"navigationBarTitleText": "直播/视频"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"path": "pages/LiveBroadcastList/LiveBroadcastList",
|
|
||||||
"style": {
|
|
||||||
"navigationBarTitleText": "直播列表"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"path": "pages/user/UserFavorite/UserFavorite",
|
"path": "pages/user/UserFavorite/UserFavorite",
|
||||||
"style": {
|
"style": {
|
||||||
@@ -726,6 +633,13 @@
|
|||||||
"navigationStyle": "custom"
|
"navigationStyle": "custom"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"path": "views/oldSojumStore",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "",
|
||||||
|
"navigationStyle": "custom"
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"path": "views/housekeeperDetail",
|
"path": "views/housekeeperDetail",
|
||||||
"style": {
|
"style": {
|
||||||
|
|||||||
+120
-3
@@ -45,6 +45,8 @@
|
|||||||
autoplay
|
autoplay
|
||||||
circular
|
circular
|
||||||
style="height: 510rpx;"
|
style="height: 510rpx;"
|
||||||
|
:duration="500"
|
||||||
|
@animationfinish="bindSwiperInstance($event, 'banner')"
|
||||||
>
|
>
|
||||||
<block
|
<block
|
||||||
v-for="(item, bannerIndex) in banner"
|
v-for="(item, bannerIndex) in banner"
|
||||||
@@ -114,6 +116,8 @@
|
|||||||
circular
|
circular
|
||||||
autoplay
|
autoplay
|
||||||
:interval="3000"
|
:interval="3000"
|
||||||
|
:duration="500"
|
||||||
|
@animationfinish="bindSwiperInstance($event, 'homestay')"
|
||||||
>
|
>
|
||||||
<swiper-item
|
<swiper-item
|
||||||
v-for="(stay, stayIndex) in contentHomestay"
|
v-for="(stay, stayIndex) in contentHomestay"
|
||||||
@@ -183,7 +187,24 @@
|
|||||||
</swiper-item>
|
</swiper-item>
|
||||||
</swiper> -->
|
</swiper> -->
|
||||||
<view class="new-zone-wrap">
|
<view class="new-zone-wrap">
|
||||||
<view v-if="indexVideo" class="kd" id="xkd">
|
<image @click="toNewZone" class="bg-img" :src="newZone.indexBackgroundImage" mode="aspectFit|aspectFill|widthFix" lazy-load="false"></image>
|
||||||
|
<view class="swiper-wrap-zx v12-mt-2">
|
||||||
|
<swiper :autoplay="swiperInstances.newZone" @change="changeIndex" :current="currentIndex" next-margin="40rpx" previous-margin="80rpx" circular style="width: 100%;height: 400rpx;" interval="3000" :duration="500" @animationfinish="bindSwiperInstance($event, 'newZone')">
|
||||||
|
<swiper-item v-for="(item, index) in newZone.indexProducts" :key="index" class="s-item" :class="{'n-actived': currentIndex !== index}">
|
||||||
|
<view class="zx-item" @click="toNewZone">
|
||||||
|
<image :src="item.productImage" style="width: 192rpx; height: 192rpx; border-radius:10rpx"></image>
|
||||||
|
<view class="v12-pa-2">
|
||||||
|
<view class="v12-font-28 more-t v12-font-bold" style="text-align: center;">{{ item.productName }}</view>
|
||||||
|
<view class="v12-primary-text v12-font-bold price-wrap" style="text-align: center;">
|
||||||
|
<text class="v12-font-16">¥</text>
|
||||||
|
<text class="v12-font-24">{{ item.productPrice }}</text>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</swiper-item>
|
||||||
|
</swiper>
|
||||||
|
</view>
|
||||||
|
<!-- <view v-if="indexVideo" class="kd" id="xkd">
|
||||||
<view class="img-wrap" style="padding-top: 10rpx; box-sizing:border-box">
|
<view class="img-wrap" style="padding-top: 10rpx; box-sizing:border-box">
|
||||||
<image style="width: 112rpx; height:26rpx" :src="webUrl + '/orderIcon/kd.png'" mode="heightFix|widthFix"></image>
|
<image style="width: 112rpx; height:26rpx" :src="webUrl + '/orderIcon/kd.png'" mode="heightFix|widthFix"></image>
|
||||||
</view>
|
</view>
|
||||||
@@ -215,7 +236,7 @@
|
|||||||
</swiper-item>
|
</swiper-item>
|
||||||
</swiper>
|
</swiper>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view> -->
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -284,6 +305,8 @@
|
|||||||
circular
|
circular
|
||||||
autoplay
|
autoplay
|
||||||
:interval="3000"
|
:interval="3000"
|
||||||
|
:duration="500"
|
||||||
|
@animationfinish="bindSwiperInstance($event, 'productSwiper')"
|
||||||
>
|
>
|
||||||
<swiper-item
|
<swiper-item
|
||||||
v-for="(swiperItem, swiperIndex) in item.list"
|
v-for="(swiperItem, swiperIndex) in item.list"
|
||||||
@@ -312,6 +335,7 @@
|
|||||||
<!-- v9 老用户弹窗 -->
|
<!-- v9 老用户弹窗 -->
|
||||||
|
|
||||||
<u-popup
|
<u-popup
|
||||||
|
v-if="isOldUserPopupShow"
|
||||||
mode="center"
|
mode="center"
|
||||||
bgColor="transparent"
|
bgColor="transparent"
|
||||||
:show="isOldUser && oldUserPopup.image && lotteryCanDraw"
|
:show="isOldUser && oldUserPopup.image && lotteryCanDraw"
|
||||||
@@ -381,6 +405,7 @@ import {
|
|||||||
getLocationSetting,
|
getLocationSetting,
|
||||||
openLocationSettting
|
openLocationSettting
|
||||||
} from "@/utils/common"
|
} from "@/utils/common"
|
||||||
|
import { getWeixinShareConfig } from '@/api/public'
|
||||||
export default {
|
export default {
|
||||||
name: 'IndexPage',
|
name: 'IndexPage',
|
||||||
components: {
|
components: {
|
||||||
@@ -393,6 +418,7 @@ export default {
|
|||||||
mixins: [pageListenMixins, goCartMixin, GuideMixins],
|
mixins: [pageListenMixins, goCartMixin, GuideMixins],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
isOldUserPopupShow: 0,
|
||||||
webUrl: this.$VUE_APP_RESOURCES_URL,
|
webUrl: this.$VUE_APP_RESOURCES_URL,
|
||||||
// 状态栏高度
|
// 状态栏高度
|
||||||
statusBarHeight: 20,
|
statusBarHeight: 20,
|
||||||
@@ -431,7 +457,17 @@ export default {
|
|||||||
tabIconPostion: {},
|
tabIconPostion: {},
|
||||||
messageIcon: {},
|
messageIcon: {},
|
||||||
recommendKeyword: [],
|
recommendKeyword: [],
|
||||||
keywordIndex: 0
|
keywordIndex: 0,
|
||||||
|
shareData: {},
|
||||||
|
currentIndex: 0,
|
||||||
|
// 轮播组件实例
|
||||||
|
swiperInstances: {
|
||||||
|
productSwiper: true,
|
||||||
|
homestay: true,
|
||||||
|
banner: true,
|
||||||
|
festival: true,
|
||||||
|
newZone: true,
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
@@ -452,6 +488,15 @@ export default {
|
|||||||
_this.statusBarHeight = statusBar
|
_this.statusBarHeight = statusBar
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
getWeixinShareConfig().then(res => {
|
||||||
|
const { success, data } = res
|
||||||
|
if (success) {
|
||||||
|
this.shareData = data
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
onShow() {
|
||||||
|
this.pageToShowHandle()
|
||||||
},
|
},
|
||||||
onHide() {
|
onHide() {
|
||||||
this.pageToHideHandle()
|
this.pageToHideHandle()
|
||||||
@@ -459,7 +504,46 @@ export default {
|
|||||||
onPageScroll(e) {
|
onPageScroll(e) {
|
||||||
this.scrollTop = e.scrollTop
|
this.scrollTop = e.scrollTop
|
||||||
},
|
},
|
||||||
|
onShareTimeline() {
|
||||||
|
uni.updateShareMenu({
|
||||||
|
isPrivateMessage: false,
|
||||||
|
withShareTicket: false
|
||||||
|
})
|
||||||
|
return {
|
||||||
|
title: this.shareData.title || this.share.title,
|
||||||
|
query: '',
|
||||||
|
imageUrl: this.shareData.image || this.share.imageUrl
|
||||||
|
}
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
changeIndex(e) {
|
||||||
|
this.currentIndex = e.detail.current
|
||||||
|
},
|
||||||
|
// 页面显示时恢复轮播
|
||||||
|
pageToShowHandle() {
|
||||||
|
// 恢复所有轮播组件的自动播放
|
||||||
|
this.swiperInstances = {
|
||||||
|
productSwiper: true,
|
||||||
|
homestay: true,
|
||||||
|
banner: true,
|
||||||
|
festival: true,
|
||||||
|
newZone: true,
|
||||||
|
}
|
||||||
|
},
|
||||||
|
// 页面隐藏时暂停轮播
|
||||||
|
pageToHideHandle() {
|
||||||
|
this.swiperInstances = {
|
||||||
|
productSwiper: false,
|
||||||
|
homestay: false,
|
||||||
|
banner: false,
|
||||||
|
festival: false,
|
||||||
|
newZone: false,
|
||||||
|
}
|
||||||
|
},
|
||||||
|
// 绑定轮播组件实例
|
||||||
|
bindSwiperInstance(e, key) {
|
||||||
|
// this.swiperInstances[key] = e.detail
|
||||||
|
},
|
||||||
changeRecommendKeyword(e) {
|
changeRecommendKeyword(e) {
|
||||||
this.keywordIndex = e
|
this.keywordIndex = e
|
||||||
},
|
},
|
||||||
@@ -1345,6 +1429,7 @@ export default {
|
|||||||
_this.$set(_this, 'contentHomestay', data.contentHomestayV2 || [])
|
_this.$set(_this, 'contentHomestay', data.contentHomestayV2 || [])
|
||||||
_this.$set(_this, 'contentFestival', data.contentFestivalV2 || [])
|
_this.$set(_this, 'contentFestival', data.contentFestivalV2 || [])
|
||||||
_this.$set(_this, 'newZone', data.newGoods || [])
|
_this.$set(_this, 'newZone', data.newGoods || [])
|
||||||
|
_this.$set(_this, 'isOldUserPopupShow', data.isOldUserPopupShow || 0)
|
||||||
_this.indexVideo = data.indexVideo ? data.indexVideo.videoUrl : ''
|
_this.indexVideo = data.indexVideo ? data.indexVideo.videoUrl : ''
|
||||||
_this.bastLeftList = []
|
_this.bastLeftList = []
|
||||||
_this.bastRightList = []
|
_this.bastRightList = []
|
||||||
@@ -1531,6 +1616,30 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="less">
|
<style scoped lang="less">
|
||||||
|
.n-actived{
|
||||||
|
// bottom: 20rpx !important;
|
||||||
|
.zx-item {
|
||||||
|
transform: scale(0.8);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.s-item{
|
||||||
|
height: fit-content !important;
|
||||||
|
bottom: 10rpx;
|
||||||
|
}
|
||||||
|
.zx-item{
|
||||||
|
width: 192rpx;
|
||||||
|
background: #fff;
|
||||||
|
border-radius: 16rpx;
|
||||||
|
transition: all 0.3s ease-in-out;
|
||||||
|
}
|
||||||
|
.swiper-wrap-zx{
|
||||||
|
position: absolute;
|
||||||
|
bottom: 20rpx;
|
||||||
|
z-index: 2;
|
||||||
|
/* height: 50%; */
|
||||||
|
width: 100%;
|
||||||
|
left: 0;
|
||||||
|
}
|
||||||
.swiper-item {
|
.swiper-item {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
@@ -1814,6 +1923,14 @@ export default {
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
|
position: relative;
|
||||||
|
.bg-img{
|
||||||
|
height: 100%;
|
||||||
|
width: 100%;
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
}
|
||||||
.kd{
|
.kd{
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 266rpx;
|
height: 266rpx;
|
||||||
|
|||||||
+80
-7
@@ -11,7 +11,7 @@
|
|||||||
</swiper-item>
|
</swiper-item>
|
||||||
</swiper> -->
|
</swiper> -->
|
||||||
<view class="swiper-wrap">
|
<view class="swiper-wrap">
|
||||||
<swiper @change="handleChange" style="height: 100%;" autoplay circular next-margin="460rpx" interval="4000">
|
<swiper @change="handleChange" style="height: 100%;" autoplay circular next-margin="460rpx" interval="4000">
|
||||||
<swiper-item v-for="(item, index) in details.newProducts" :key="index" @click="toGoods(item)">
|
<swiper-item v-for="(item, index) in details.newProducts" :key="index" @click="toGoods(item)">
|
||||||
<view class="new-card" :class="{'is-actived': current == index}">
|
<view class="new-card" :class="{'is-actived': current == index}">
|
||||||
<image :src="item.productCover" class="new-card-img" mode="heightFix|widthFix"></image>
|
<image :src="item.productCover" class="new-card-img" mode="heightFix|widthFix"></image>
|
||||||
@@ -29,8 +29,31 @@
|
|||||||
</swiper>
|
</swiper>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="v12-align-center tabs-wrap v1-py-1 v12-my-4">
|
||||||
<view class="v12-mt-2 v12-align-center">
|
<view class="tab-item v12-font-bold" v-for="(tab, index) in tabs" :key="index" @click="handleClick(index, tab)">
|
||||||
|
{{ tab.cateName }}
|
||||||
|
<view class="tab-line" v-if="activeIndex == index"></view>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
</view>
|
||||||
|
<view class="product-wrap v12-mt-3">
|
||||||
|
<view class="product-card" v-for="(item, index) in products" :key="index" @click="toGoods(item)">
|
||||||
|
<image :src="item.productImage" class="product-card-img" mode="heightFix|widthFix"></image>
|
||||||
|
<view class="new-info">
|
||||||
|
<view class="v12-font-26 more-t" style="width: 100%;">{{ item.productName }}</view>
|
||||||
|
<view style="width: 100%;" class="v12-font-bold v12-primary-text v12-align-center v12-justify-between">
|
||||||
|
<view>
|
||||||
|
<text>¥</text>
|
||||||
|
<text class=" v12-font-36">{{ item.productPrice }}</text>
|
||||||
|
</view>
|
||||||
|
<view>
|
||||||
|
<u-icon :name="webUrl + '/home/icon-cart.png'" size="24"></u-icon>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<!-- <view class="v12-mt-2 v12-align-center">
|
||||||
<view class="primary-title" v-if="details.contentTitle">
|
<view class="primary-title" v-if="details.contentTitle">
|
||||||
{{ details.contentTitle }}
|
{{ details.contentTitle }}
|
||||||
<view class="title-line"></view>
|
<view class="title-line"></view>
|
||||||
@@ -42,7 +65,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="cover-img v12-mt-2" v-for="(item, index) in details.contents" :key="index" @click="toGoods(item)">
|
<view class="cover-img v12-mt-2" v-for="(item, index) in details.contents" :key="index" @click="toGoods(item)">
|
||||||
<image :src="item.contentImage" class="cover-img" mode="heightFix|widthFix"></image>
|
<image :src="item.contentImage" class="cover-img" mode="heightFix|widthFix"></image>
|
||||||
</view>
|
</view> -->
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
@@ -50,13 +73,19 @@ import { queryNewZone } from '@/api/activity'
|
|||||||
export default{
|
export default{
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
webUrl: this.$VUE_APP_RESOURCES_URL,
|
||||||
details: {},
|
details: {},
|
||||||
current: 0,
|
current: 0,
|
||||||
|
tabs: [],
|
||||||
|
activeIndex: 0,
|
||||||
|
products: []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
queryNewZone().then(res => {
|
queryNewZone().then(res => {
|
||||||
this.details = res.data
|
this.details = res.data
|
||||||
|
this.tabs = res.data.categories
|
||||||
|
this.handleClick(0, this.tabs[0])
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
@@ -66,6 +95,10 @@ export default{
|
|||||||
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
handleClick(index, tab) {
|
||||||
|
this.activeIndex = index
|
||||||
|
this.products = tab.products
|
||||||
|
},
|
||||||
handleChange(e) {
|
handleChange(e) {
|
||||||
this.current = e.detail.current
|
this.current = e.detail.current
|
||||||
},
|
},
|
||||||
@@ -78,10 +111,50 @@ export default{
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
.product-card{
|
||||||
|
width: 342rpx;
|
||||||
|
height: 520rpx;
|
||||||
|
background: #fff;
|
||||||
|
border-radius: 20rpx;
|
||||||
|
margin-bottom: 20rpx;
|
||||||
|
}
|
||||||
|
.product-card-img{
|
||||||
|
width: 344rpx;
|
||||||
|
height: 344rpx;
|
||||||
|
background: rgba(169,56,56,0.39);
|
||||||
|
border-radius: 20rpx;
|
||||||
|
}
|
||||||
|
.product-wrap{
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
}
|
||||||
|
.tab-line{
|
||||||
|
position: absolute;
|
||||||
|
bottom: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 6rpx;
|
||||||
|
background: linear-gradient(to right, #C52733 0%, rgba(202,56,67,0.92) 51%, rgba(255,255,255,0) 100%);
|
||||||
|
border-radius: 6rpx;
|
||||||
|
}
|
||||||
|
.tabs-wrap{
|
||||||
|
overflow: auto;
|
||||||
|
justify-content: space-between;
|
||||||
|
}
|
||||||
|
.tab-item{
|
||||||
|
margin-right: 20rpx;
|
||||||
|
white-space: nowrap;
|
||||||
|
position: relative;
|
||||||
|
&:last-child{
|
||||||
|
margin-right: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
.new-info{
|
.new-info{
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
padding: 20rpx;
|
||||||
}
|
}
|
||||||
.box-emp{
|
.box-emp{
|
||||||
width: 100%;
|
width: 100%;
|
||||||
@@ -92,7 +165,7 @@ export default{
|
|||||||
width: fit-content;
|
width: fit-content;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
background: #C52733;
|
background: #C52733;
|
||||||
font-size: 28rpx;
|
font-size: 30rpx;
|
||||||
padding: 4rpx 20rpx;
|
padding: 4rpx 20rpx;
|
||||||
}
|
}
|
||||||
.swiper-wrap{
|
.swiper-wrap{
|
||||||
@@ -104,7 +177,7 @@ export default{
|
|||||||
}
|
}
|
||||||
.new-card{
|
.new-card{
|
||||||
width: 220rpx;
|
width: 220rpx;
|
||||||
height: 240rpx;
|
// height: 240rpx;
|
||||||
background: #fff;
|
background: #fff;
|
||||||
border-radius: 20rpx;
|
border-radius: 20rpx;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
@@ -160,7 +233,7 @@ export default{
|
|||||||
}
|
}
|
||||||
.new-zone-page{
|
.new-zone-page{
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
background-color: #fff;
|
// background-color: #fff;
|
||||||
padding: 20rpx;
|
padding: 20rpx;
|
||||||
}
|
}
|
||||||
.banner-zone{
|
.banner-zone{
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
v-model="keyword"
|
v-model="keyword"
|
||||||
:inputStyle="inputStyle"
|
:inputStyle="inputStyle"
|
||||||
:showAction="false"
|
:showAction="false"
|
||||||
placeholder="请输入商品名/订单号"
|
placeholder="请输入商品名/订单号/团购名称"
|
||||||
shape="round"
|
shape="round"
|
||||||
bgColor="#FFF"
|
bgColor="#FFF"
|
||||||
@search="changeType"
|
@search="changeType"
|
||||||
|
|||||||
@@ -688,6 +688,43 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
onShareTimeline() {
|
||||||
|
uni.updateShareMenu({
|
||||||
|
isPrivateMessage: false,
|
||||||
|
withShareTicket: false
|
||||||
|
})
|
||||||
|
const storeName = this.storeInfo.storeName
|
||||||
|
const promise = new Promise(async (resolve, reject) => {
|
||||||
|
let result = null
|
||||||
|
let query = `id=${this.id}&partnerId=${this.userInfo.uid}`
|
||||||
|
if (this.source === 'famous') {
|
||||||
|
result = await famousGoodsShareImage(this.id)
|
||||||
|
}
|
||||||
|
if (this.source === 'kill') {
|
||||||
|
result = await secKillGoodsShareImage(this.activityId)
|
||||||
|
query += `&activityId=${this.activityId}`
|
||||||
|
}
|
||||||
|
if (result && result.status === 200) {
|
||||||
|
resolve({
|
||||||
|
title: storeName,
|
||||||
|
query,
|
||||||
|
imageUrl: result.data
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
resolve({
|
||||||
|
title: storeName,
|
||||||
|
query,
|
||||||
|
imageUrl: this.storeInfo.image
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
return {
|
||||||
|
title: storeName,
|
||||||
|
query: `id=${this.id}&partnerId=${this.userInfo.uid}`,
|
||||||
|
imageUrl: this.storeInfo.image,
|
||||||
|
promise
|
||||||
|
}
|
||||||
|
},
|
||||||
onLoad(options) {
|
onLoad(options) {
|
||||||
// test data
|
// test data
|
||||||
console.log("getLaunchOptionsSync", uni.getLaunchOptionsSync())
|
console.log("getLaunchOptionsSync", uni.getLaunchOptionsSync())
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -44,6 +44,18 @@ export const themeMixins = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
onShareTimeline() {
|
||||||
|
uni.updateShareMenu({
|
||||||
|
isPrivateMessage: false,
|
||||||
|
withShareTicket: false
|
||||||
|
})
|
||||||
|
const title = this.pageData.forwardTitle || this.share.title
|
||||||
|
return {
|
||||||
|
title,
|
||||||
|
query: `id=${this.pageData.id}`,
|
||||||
|
imageUrl: this.pageData.forwardImage || this.share.imageUrl
|
||||||
|
}
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
topImageClick() {
|
topImageClick() {
|
||||||
if (this.templateProperties.page1CouponEnable === 1 && this.templateProperties.page1CouponId) {
|
if (this.templateProperties.page1CouponEnable === 1 && this.templateProperties.page1CouponId) {
|
||||||
|
|||||||
@@ -499,7 +499,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="info">
|
<view class="info">
|
||||||
<view class="intro more-t">
|
<view class="intro more-t">
|
||||||
{{ jiaLou.intro }}
|
{{ jiaLou.intro || '' }}
|
||||||
</view>
|
</view>
|
||||||
<view class="name-wrap">
|
<view class="name-wrap">
|
||||||
<image
|
<image
|
||||||
@@ -711,6 +711,7 @@
|
|||||||
@ok="handleOk"
|
@ok="handleOk"
|
||||||
/>
|
/>
|
||||||
<FunctionGuide @hide="setGuide('countyFamousIndex')" :maxStep="2" :guideData="functionGuideData" ref="FunctionGuide"></FunctionGuide>
|
<FunctionGuide @hide="setGuide('countyFamousIndex')" :maxStep="2" :guideData="functionGuideData" ref="FunctionGuide"></FunctionGuide>
|
||||||
|
<AiEntrance />
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -743,12 +744,14 @@ import cookie from '@/utils/store/cookie'
|
|||||||
import { pageListenMixins } from '@/mixins/pageListenMixins'
|
import { pageListenMixins } from '@/mixins/pageListenMixins'
|
||||||
import FunctionGuide from '@/components/FunctionGuide'
|
import FunctionGuide from '@/components/FunctionGuide'
|
||||||
import GuideMixins from '@/mixins/GuideMixins'
|
import GuideMixins from '@/mixins/GuideMixins'
|
||||||
|
import AiEntrance from '@/components/aiChat/entrance'
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
imgBox,
|
imgBox,
|
||||||
XddProductItem,
|
XddProductItem,
|
||||||
ProductWindow,
|
ProductWindow,
|
||||||
FunctionGuide
|
FunctionGuide,
|
||||||
|
AiEntrance
|
||||||
},
|
},
|
||||||
mixins: [pageListenMixins, goCartMixin, GuideMixins],
|
mixins: [pageListenMixins, goCartMixin, GuideMixins],
|
||||||
data() {
|
data() {
|
||||||
@@ -818,6 +821,17 @@ export default {
|
|||||||
countyId: null,
|
countyId: null,
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
onShareAppMessage() {
|
||||||
|
uni.updateShareMenu({
|
||||||
|
isPrivateMessage: false,
|
||||||
|
withShareTicket: false
|
||||||
|
})
|
||||||
|
return {
|
||||||
|
title: this.inn.countyName || this.share.title,
|
||||||
|
path: '/pkg_product/views/famousQianxianShop?id=' + this.id,
|
||||||
|
imageUrl: this.inn.cover || this.share.imageUrl
|
||||||
|
}
|
||||||
|
},
|
||||||
// 必须在页面加 onPageScroll(e){} ,才能滑动显示背景
|
// 必须在页面加 onPageScroll(e){} ,才能滑动显示背景
|
||||||
onPageScroll(e) {
|
onPageScroll(e) {
|
||||||
this.scrollData = e
|
this.scrollData = e
|
||||||
@@ -1432,7 +1446,11 @@ export default {
|
|||||||
uni.navigateTo({ url: `/pkg_product/views/famousQianxianTheme?id=${item.id}` })
|
uni.navigateTo({ url: `/pkg_product/views/famousQianxianTheme?id=${item.id}` })
|
||||||
},
|
},
|
||||||
sujoumeClickHandle(item) {
|
sujoumeClickHandle(item) {
|
||||||
uni.navigateTo({ url: '/pkg_product/views/sojoumStore?id=' + item.id })
|
if(item.dataType === 'countyFamousSojourn') {
|
||||||
|
uni.navigateTo({ url: '/pkg_product/views/oldSojumStore?id=' + item.id })
|
||||||
|
return
|
||||||
|
}
|
||||||
|
uni.navigateTo({ url: '/pkg_product/views/sojoumStore?id=' + item.id })
|
||||||
},
|
},
|
||||||
industryTabItemClick(index) {
|
industryTabItemClick(index) {
|
||||||
if (index === this.industryTabIndex) return
|
if (index === this.industryTabIndex) return
|
||||||
|
|||||||
@@ -102,6 +102,7 @@
|
|||||||
duration="10000">
|
duration="10000">
|
||||||
<swiper-item v-for="(img, idx) in c.images" :key="idx">
|
<swiper-item v-for="(img, idx) in c.images" :key="idx">
|
||||||
<image
|
<image
|
||||||
|
@click="previewHero(c.images, img)"
|
||||||
:src="img"
|
:src="img"
|
||||||
class="swiper-img"
|
class="swiper-img"
|
||||||
mode="aspectFill" />
|
mode="aspectFill" />
|
||||||
@@ -151,7 +152,7 @@
|
|||||||
<!-- 图片 -->
|
<!-- 图片 -->
|
||||||
<view class="v12-mt-3 v12-px-3">
|
<view class="v12-mt-3 v12-px-3">
|
||||||
<view v-for="(img, idx) in detail.detailImages" :key="idx" >
|
<view v-for="(img, idx) in detail.detailImages" :key="idx" >
|
||||||
<image :src="img" class="v12-radius-40" style="width: 100%;" mode="aspectFill" />
|
<image :src="img" class="v12-radius-40" style="width: 100%;" mode="aspectFill" @click="previewHero(detail.detailImages, img)" />
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="bottom-space"></view>
|
<view class="bottom-space"></view>
|
||||||
@@ -238,6 +239,11 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
previewHero(urls, current) {
|
||||||
|
console.log(urls);
|
||||||
|
|
||||||
|
uni.previewImage({ urls, current })
|
||||||
|
},
|
||||||
toGift(){
|
toGift(){
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
// + '&couponId=' + coupId
|
// + '&couponId=' + coupId
|
||||||
@@ -509,14 +515,27 @@ export default {
|
|||||||
.val { color: #666; text-align: right; }
|
.val { color: #666; text-align: right; }
|
||||||
.gallery-img { width: 100%; margin-bottom: 16rpx; border-radius: 12rpx; overflow: hidden; }
|
.gallery-img { width: 100%; margin-bottom: 16rpx; border-radius: 12rpx; overflow: hidden; }
|
||||||
.bottom-space { height: 140rpx; }
|
.bottom-space { height: 140rpx; }
|
||||||
.bottom-bar { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1rpx solid #eee; display: flex; align-items: center; justify-content: space-between; padding: 16rpx 24rpx; }
|
.bottom-bar {
|
||||||
.total { font-size: 28rpx; color: #111; font-weight: 700; }
|
position: fixed;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
|
background: #fff;
|
||||||
|
border-top: 1rpx solid #eee;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
padding: 0 20rpx 20rpx 30rpx;
|
||||||
|
height: 140rpx;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
.total { font-size: 30rpx; color: #111; font-weight: 700; }
|
||||||
.bar-actions { display: flex; gap: 16rpx; }
|
.bar-actions { display: flex; gap: 16rpx; }
|
||||||
.mini-btn {
|
.mini-btn {
|
||||||
padding: 10rpx 22rpx;
|
padding: 10rpx 22rpx;
|
||||||
border: 1rpx solid #ccc;
|
border: 1rpx solid #ccc;
|
||||||
border-radius: 132rpx;
|
border-radius: 132rpx;
|
||||||
font-size: 26rpx;
|
font-size: 30rpx;
|
||||||
color: #333;
|
color: #333;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@@ -526,7 +545,7 @@ export default {
|
|||||||
border-radius: 132rpx;
|
border-radius: 132rpx;
|
||||||
background: #C52733;
|
background: #C52733;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
font-size: 26rpx;
|
font-size: 30rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
@@ -625,14 +644,13 @@ export default {
|
|||||||
.val { color: #666; text-align: right; }
|
.val { color: #666; text-align: right; }
|
||||||
.gallery-img { width: 100%; margin-bottom: 16rpx; border-radius: 12rpx; overflow: hidden; }
|
.gallery-img { width: 100%; margin-bottom: 16rpx; border-radius: 12rpx; overflow: hidden; }
|
||||||
.bottom-space { height: 140rpx; }
|
.bottom-space { height: 140rpx; }
|
||||||
.bottom-bar { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1rpx solid #eee; display: flex; align-items: center; justify-content: space-between; padding: 16rpx 24rpx; }
|
.total { font-size: 30rpx; color: #111; font-weight: 700; }
|
||||||
.total { font-size: 28rpx; color: #111; font-weight: 700; }
|
|
||||||
.bar-actions { display: flex; gap: 16rpx; }
|
.bar-actions { display: flex; gap: 16rpx; }
|
||||||
.mini-btn {
|
.mini-btn {
|
||||||
padding: 10rpx 22rpx;
|
padding: 10rpx 22rpx;
|
||||||
border: 1rpx solid #ccc;
|
border: 1rpx solid #ccc;
|
||||||
border-radius: 132rpx;
|
border-radius: 132rpx;
|
||||||
font-size: 26rpx;
|
font-size: 30rpx;
|
||||||
color: #333;
|
color: #333;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@@ -642,7 +660,7 @@ export default {
|
|||||||
border-radius: 132rpx;
|
border-radius: 132rpx;
|
||||||
background: #C52733;
|
background: #C52733;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
font-size: 26rpx;
|
font-size: 30rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
@@ -720,4 +738,4 @@ export default {
|
|||||||
background: #CE4852;
|
background: #CE4852;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -113,7 +113,7 @@
|
|||||||
<view
|
<view
|
||||||
v-if="tabIndex === 0"
|
v-if="tabIndex === 0"
|
||||||
class="city-item"
|
class="city-item"
|
||||||
@click="goStore(item.cityId, item.cityName)"
|
@click="goStore(item.id, item.cityName, item.cityId)"
|
||||||
>
|
>
|
||||||
<image
|
<image
|
||||||
:src="item.icon"
|
:src="item.icon"
|
||||||
@@ -364,9 +364,9 @@ export default {
|
|||||||
this.label = label
|
this.label = label
|
||||||
this.searchReq()
|
this.searchReq()
|
||||||
},
|
},
|
||||||
goStore(id, name) {
|
goStore(id, name, cityId) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url: '/pkg_product/views/healthSanctum?city=' + id +'&cityName=' + name
|
url: '/pkg_product/views/healthSanctum?city=' + id +'&cityName=' + name + '&goodCityId=' + cityId
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
goGoods(id) {
|
goGoods(id) {
|
||||||
|
|||||||
@@ -43,8 +43,7 @@
|
|||||||
<view class="v12-justify-between sanctup-items v12-mt-3">
|
<view class="v12-justify-between sanctup-items v12-mt-3">
|
||||||
<view v-for="(item, index) in items" :key="index" class="v12-pa-1" @click="toStore(item)">
|
<view v-for="(item, index) in items" :key="index" class="v12-pa-1" @click="toStore(item)">
|
||||||
<view class="img">
|
<view class="img">
|
||||||
<image class="img" :src="item.cover"></image>
|
<video
|
||||||
<!-- <video
|
|
||||||
class="img"
|
class="img"
|
||||||
:src="item.cover"
|
:src="item.cover"
|
||||||
:play-btn-position="center"
|
:play-btn-position="center"
|
||||||
@@ -52,8 +51,10 @@
|
|||||||
:show-center-play-btn="flase"
|
:show-center-play-btn="flase"
|
||||||
:show-play-btn="false"
|
:show-play-btn="false"
|
||||||
:controls="false"
|
:controls="false"
|
||||||
|
:poster="item.cover + '?vframe/jpg/offset/1'"
|
||||||
v-if="item.coverType === 2">
|
v-if="item.coverType === 2">
|
||||||
</video> -->
|
</video>
|
||||||
|
<image v-else class="img" :src="item.cover"></image>
|
||||||
<view class="v12-white-text address">
|
<view class="v12-white-text address">
|
||||||
<image
|
<image
|
||||||
class="map-icon v12-mr-1"
|
class="map-icon v12-mr-1"
|
||||||
@@ -62,7 +63,7 @@
|
|||||||
<text class="v12-font-28">{{ item.areaName }}</text>
|
<text class="v12-font-28">{{ item.areaName }}</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="v12-font-bold v12-font-28 v12-mt-1 more-t desc-txt">{{ item.intro }}</view>
|
<view v-if="item.intro" class="v12-font-bold v12-font-28 v12-mt-1 more-t desc-txt">{{ item.intro }}</view>
|
||||||
<view class="v12-justify-start v12-align-center v12-my-1">
|
<view class="v12-justify-start v12-align-center v12-my-1">
|
||||||
<view class="atr">
|
<view class="atr">
|
||||||
<image class="atr" :src="item.avatar"></image>
|
<image class="atr" :src="item.avatar"></image>
|
||||||
@@ -126,9 +127,9 @@ export default {
|
|||||||
getList() {
|
getList() {
|
||||||
const params = {
|
const params = {
|
||||||
// countyId: this.cityId,
|
// countyId: this.cityId,
|
||||||
cityId: this.cityId,
|
goodCityId: this.cityId,
|
||||||
wellnessPlaceCateId : this.categoryId,
|
wellnessPlaceCateId : this.categoryId,
|
||||||
shopType: 'wellness',
|
shopType: 'wellnessCate',
|
||||||
page: 1,
|
page: 1,
|
||||||
limit: 9999
|
limit: 9999
|
||||||
}
|
}
|
||||||
@@ -144,8 +145,8 @@ export default {
|
|||||||
},
|
},
|
||||||
getTop() {
|
getTop() {
|
||||||
const params = {
|
const params = {
|
||||||
cityId: this.cityId,
|
goodCityId: this.cityId,
|
||||||
shopType: 'wellness',
|
shopType: 'wellnessTop',
|
||||||
page: 1,
|
page: 1,
|
||||||
limit: 9999
|
limit: 9999
|
||||||
}
|
}
|
||||||
@@ -155,7 +156,16 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
toStore(item) {
|
toStore(item) {
|
||||||
uni.navigateTo({ url: '/pkg_product/views/sojoumStore?id=' + item.id })
|
if(item.dataType === 'wellnessPlace'){
|
||||||
|
this.$yrouter.push({
|
||||||
|
path: '/pagesInn/inn/innHome',
|
||||||
|
query: {
|
||||||
|
id: item.hotelId
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}else{
|
||||||
|
uni.navigateTo({ url: '/pkg_product/views/sojoumStore?id=' + item.id })
|
||||||
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view v-if="isSearch" class="search-res-wrap">
|
<view v-if="isSearch" class="search-res-wrap">
|
||||||
<view class="v12-justify-between sanctup-items v12-mt-3">
|
<view class="v12-justify-between sanctup-items v12-mt-3">
|
||||||
<view v-for="(item, index) in items" :key="index" class="v12-pa-1" @click="toStore(item.hotelId)">
|
<view v-for="(item, index) in items" :key="index" class="v12-pa-1" @click="toStore(item)">
|
||||||
<view class="img">
|
<view class="img">
|
||||||
<image class="img" :src="item.cover" v-if="item.coverType === 1"></image>
|
<image class="img" :src="item.cover" v-if="item.coverType === 1"></image>
|
||||||
<video
|
<video
|
||||||
@@ -25,12 +25,12 @@
|
|||||||
<text class="v12-font-28">{{ item.areaName }}</text>
|
<text class="v12-font-28">{{ item.areaName }}</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="v12-font-bold v12-font-28 v12-mt-1 more-t desc-txt">{{ item.content }}</view>
|
<view class="v12-font-bold v12-font-28 v12-mt-1 more-t desc-txt">{{ item.intro }}</view>
|
||||||
<view class="v12-justify-start v12-align-center v12-my-1">
|
<view class="v12-justify-start v12-align-center v12-my-1">
|
||||||
<view class="atr">
|
<view class="atr">
|
||||||
<image class="atr" :src="item.logo"></image>
|
<image class="atr" :src="item.avatar"></image>
|
||||||
</view>
|
</view>
|
||||||
<view class="v12-font-26 v12-ml-2 v12-dark-text one-t">{{ item.hotelName }}</view>
|
<view class="v12-font-26 v12-ml-2 v12-dark-text one-t">{{ item.name }}</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -45,6 +45,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { getCategory,getWellnessPlace } from '@/api/health'
|
import { getCategory,getWellnessPlace } from '@/api/health'
|
||||||
|
import { getJiaLouList } from '@/api/qianxian'
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
@@ -63,23 +64,27 @@ export default {
|
|||||||
const params = {
|
const params = {
|
||||||
goodCityId: this.goodCityId,
|
goodCityId: this.goodCityId,
|
||||||
categoryId: '',
|
categoryId: '',
|
||||||
keyword: this.keyword,
|
name: this.keyword.trim(),
|
||||||
page: 1,
|
page: 1,
|
||||||
limit: 9999
|
limit: 9999
|
||||||
}
|
}
|
||||||
getWellnessPlace(params).then(res => {
|
getJiaLouList(params).then(res => {
|
||||||
this.items = res.data.records
|
this.items = res.data.records
|
||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
this.isSearch = true
|
this.isSearch = true
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
toStore(id) {
|
toStore(item) {
|
||||||
this.$yrouter.push({
|
if(item.dataType === 'wellnessPlace'){
|
||||||
path: '/pagesInn/inn/innHome',
|
this.$yrouter.push({
|
||||||
query: {
|
path: '/pagesInn/inn/innHome',
|
||||||
id: id
|
query: {
|
||||||
}
|
id: item.hotelId
|
||||||
})
|
}
|
||||||
|
})
|
||||||
|
}else{
|
||||||
|
uni.navigateTo({ url: '/pkg_product/views/sojoumStore?id=' + item.id })
|
||||||
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -196,8 +196,10 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.img-item {
|
.img-item {
|
||||||
|
display: block;
|
||||||
width: 160rpx;
|
width: 160rpx;
|
||||||
height: 160rpx;
|
height: 160rpx;
|
||||||
|
transform: scale(1.33);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -87,12 +87,17 @@
|
|||||||
class="img-nodata"
|
class="img-nodata"
|
||||||
/>
|
/>
|
||||||
</view>
|
</view>
|
||||||
|
<AiEntrance />
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { getIch, getIchRecommend } from '@/api/heritage'
|
import { getIch, getIchRecommend } from '@/api/heritage'
|
||||||
|
import AiEntrance from '@/components/aiChat/entrance'
|
||||||
export default {
|
export default {
|
||||||
|
components: {
|
||||||
|
AiEntrance
|
||||||
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
webUrl: this.$VUE_APP_RESOURCES_URL,
|
webUrl: this.$VUE_APP_RESOURCES_URL,
|
||||||
|
|||||||
@@ -42,8 +42,8 @@
|
|||||||
{{ record.intro }}
|
{{ record.intro }}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="v12-mt-3 v12-align-center">
|
<view class="v12-mt-3 v12-align-center" style="flex-wrap: wrap;">
|
||||||
<view v-for="tag in record.tags" :key="tag" class="v12-primary-text v12-primary-border v12-radius-100 tag-item v12-mr-2">{{ tag }}</view>
|
<view v-for="tag in record.tags" :key="tag" class="v12-primary-text v12-primary-border v12-radius-100 tag-item v12-mr-2 v12-mb-2">{{ tag }}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="v12-mt-2 v12-font-24" style="color: #666">
|
<view class="v12-mt-2 v12-font-24" style="color: #666">
|
||||||
{{ record.desc }}
|
{{ record.desc }}
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -45,7 +45,16 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="order-section">
|
||||||
|
<view class="info-item">
|
||||||
|
<text class="label">团购总价</text>
|
||||||
|
<text class="value">¥{{orderInfo.travelGroupOrderInfo.travelGroupProduct.price}}</text>
|
||||||
|
</view>
|
||||||
|
<view class="info-item" style="margin-bottom: 0rpx;">
|
||||||
|
<text class="label">满减优惠</text>
|
||||||
|
<text class="value">¥{{orderInfo.couponPrice}}</text>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
<!-- 核销码 -->
|
<!-- 核销码 -->
|
||||||
<view class="verify-section" v-if="orderInfo._status && ['1','2'].includes(orderInfo._status._type)">
|
<view class="verify-section" v-if="orderInfo._status && ['1','2'].includes(orderInfo._status._type)">
|
||||||
<view class="verify-title v12-font-28 v12-primary-text">核销码:{{orderInfo.verifyCode}}</view>
|
<view class="verify-title v12-font-28 v12-primary-text">核销码:{{orderInfo.verifyCode}}</view>
|
||||||
@@ -271,8 +280,8 @@ export default {
|
|||||||
})
|
})
|
||||||
this.getSojoumOrderDetail();
|
this.getSojoumOrderDetail();
|
||||||
}
|
}
|
||||||
}).finally(() => {
|
|
||||||
uni.hideLoading();
|
uni.hideLoading();
|
||||||
|
}).finally(() => {
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
getMonthDay() {
|
getMonthDay() {
|
||||||
@@ -557,7 +566,7 @@ export default {
|
|||||||
left: 0;
|
left: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
padding: 20rpx 30rpx;
|
padding: 26rpx 30rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
box-shadow: 0 -2rpx 10rpx rgba(0, 0, 0, 0.05);
|
box-shadow: 0 -2rpx 10rpx rgba(0, 0, 0, 0.05);
|
||||||
|
|||||||
@@ -303,7 +303,7 @@
|
|||||||
<image :src="webUrl + '/home/管家角标.png'" class="star-icon" />
|
<image :src="webUrl + '/home/管家角标.png'" class="star-icon" />
|
||||||
</view>
|
</view>
|
||||||
<view class="desc more-t v12-font-bold">
|
<view class="desc more-t v12-font-bold">
|
||||||
{{ item.desc }}
|
{{ item.intro }}
|
||||||
</view>
|
</view>
|
||||||
<view class="tag-list">
|
<view class="tag-list">
|
||||||
<view v-for="(tag, i) in item.tags" :key="i" class="tag">{{ tag }}</view>
|
<view v-for="(tag, i) in item.tags" :key="i" class="tag">{{ tag }}</view>
|
||||||
@@ -350,7 +350,7 @@ import {
|
|||||||
postJiaLouNewsView,
|
postJiaLouNewsView,
|
||||||
postJiaLouNewsZan,
|
postJiaLouNewsZan,
|
||||||
postJiaLouZan,
|
postJiaLouZan,
|
||||||
postJiaLouShare,
|
postTravelShare,
|
||||||
getJiaLouProductList,
|
getJiaLouProductList,
|
||||||
getJiaLouStewardList,
|
getJiaLouStewardList,
|
||||||
getJiaLouNewsList
|
getJiaLouNewsList
|
||||||
@@ -540,7 +540,7 @@ export default {
|
|||||||
},
|
},
|
||||||
changeShare() {
|
changeShare() {
|
||||||
uni.showLoading()
|
uni.showLoading()
|
||||||
postJiaLouShare(this.id).then(res => {
|
postTravelShare(this.id).then(res => {
|
||||||
this.posterUrl = res.data
|
this.posterUrl = res.data
|
||||||
this.showShare = !this.showShare
|
this.showShare = !this.showShare
|
||||||
}).finally(() => {
|
}).finally(() => {
|
||||||
|
|||||||
@@ -434,15 +434,28 @@ export default {
|
|||||||
.text-card .plain-text { font-size: 26rpx; color: #666; line-height: 40rpx; letter-spacing: 2px;}
|
.text-card .plain-text { font-size: 26rpx; color: #666; line-height: 40rpx; letter-spacing: 2px;}
|
||||||
|
|
||||||
.bottom-space { height: 140rpx; }
|
.bottom-space { height: 140rpx; }
|
||||||
.bottom-bar { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1rpx solid #eee; display: flex; align-items: center; justify-content: space-between; padding: 16rpx 24rpx; }
|
.bottom-bar {
|
||||||
.total { font-size: 28rpx; color: #111; font-weight: 700; }
|
position: fixed;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
|
background: #fff;
|
||||||
|
border-top: 1rpx solid #eee;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
padding: 0 20rpx 20rpx 30rpx;
|
||||||
|
height: 140rpx;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
.total { font-size: 30rpx; color: #111; font-weight: 700; }
|
||||||
.total .highlight { color: #C52733; font-weight: 700; }
|
.total .highlight { color: #C52733; font-weight: 700; }
|
||||||
.bar-actions { display: flex; gap: 16rpx; }
|
.bar-actions { display: flex; gap: 16rpx; }
|
||||||
.mini-btn {
|
.mini-btn {
|
||||||
padding: 10rpx 22rpx;
|
padding: 10rpx 22rpx;
|
||||||
border: 1rpx solid #ccc;
|
border: 1rpx solid #ccc;
|
||||||
border-radius: 32rpx;
|
border-radius: 32rpx;
|
||||||
font-size: 26rpx;
|
font-size: 30rpx;
|
||||||
color: #333;
|
color: #333;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
@@ -452,7 +465,7 @@ export default {
|
|||||||
border-radius: 32rpx;
|
border-radius: 32rpx;
|
||||||
background: #C52733;
|
background: #C52733;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
font-size: 26rpx;
|
font-size: 30rpx;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,34 +3,33 @@
|
|||||||
:show="show"
|
:show="show"
|
||||||
mode="bottom"
|
mode="bottom"
|
||||||
round="40rpx"
|
round="40rpx"
|
||||||
@close="close"
|
|
||||||
:customStyle="{height: '600rpx'}"
|
:customStyle="{height: '600rpx'}"
|
||||||
closeable>
|
@close="close"
|
||||||
<view class="cover-picker">
|
>
|
||||||
<view class="cover-title">选择封面</view>
|
<view class="cover-picker v12-pt-4">
|
||||||
<swiper
|
<swiper
|
||||||
:current="currentIndex"
|
:current="currentIndex"
|
||||||
:autoplay="false"
|
:autoplay="false"
|
||||||
:circular="true"
|
:circular="true"
|
||||||
:indicator-dots="false"
|
:indicator-dots="false"
|
||||||
@change="onChange"
|
@change="onChange"
|
||||||
previous-margin="200rpx"
|
previous-margin="180rpx"
|
||||||
next-margin="180rpx"
|
next-margin="180rpx"
|
||||||
class="cover-swiper"
|
class="cover-swiper"
|
||||||
>
|
>
|
||||||
<swiper-item v-for="(item, index) in list" :key="index">
|
<swiper-item v-for="(item, i) in list" :key="i" class="cover-swiper-item" :class="{'n-actived' : currentIndex !== i}">
|
||||||
<view class="cover-item" >
|
<view class="cover-item" >
|
||||||
<view class="img-wrap" :class="currentIndex === index ? 'v12-mt-10' : 'v12-mt-18'">
|
<view class="img-wrap">
|
||||||
<view class="pro-img-wrap " :style="{
|
<view class="pro-img-wrap " :style="{
|
||||||
left: (item.productImageX*2 || 0) + 'rpx',
|
left: (item.productImageX*2 || 0) + 'rpx',
|
||||||
top: (item.productImageY*2 || -40) + 'rpx'
|
top: (item.productImageY*2 || -40) + 'rpx'
|
||||||
}">
|
}">
|
||||||
<image :src="product.image" class="pro-cover-image" mode="widthFix|heightFix" />
|
<image :src="product.image" class="pro-cover-image" mode="widthFix|heightFix" />
|
||||||
</view>
|
</view>
|
||||||
<image :src="item.cover" class="cover-image" mode="widthFix|heightFix" />
|
<image :src="item.cover" class="cover-image" mode="widthFix" />
|
||||||
<view class="message-text" :style="{top: currentIndex !== index ? '260rpx' : '220rpx'}">{{ message }}</view>
|
<!-- <view class="message-text" :style="{top: currentIndex !== index ? '260rpx' : '220rpx'}">{{ message }}</view> -->
|
||||||
</view>
|
</view>
|
||||||
<view class="cover-name">{{ item.name }} </view>
|
<!-- <view class="cover-name">{{ item.name }} </view> -->
|
||||||
</view>
|
</view>
|
||||||
</swiper-item>
|
</swiper-item>
|
||||||
</swiper>
|
</swiper>
|
||||||
@@ -80,10 +79,12 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
close() {
|
close() {
|
||||||
|
this.currentIndex = 0
|
||||||
this.$emit('update:show', false)
|
this.$emit('update:show', false)
|
||||||
},
|
},
|
||||||
onChange(e) {
|
onChange(e) {
|
||||||
this.currentIndex = e.detail.current
|
this.currentIndex = e.detail.current
|
||||||
|
this.$forceUpdate()
|
||||||
},
|
},
|
||||||
confirm() {
|
confirm() {
|
||||||
this.$emit('confirm', this.list[this.currentIndex])
|
this.$emit('confirm', this.list[this.currentIndex])
|
||||||
@@ -94,6 +95,18 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="less" scoped>
|
<style lang="less" scoped>
|
||||||
|
.n-actived{
|
||||||
|
.cover-item{
|
||||||
|
transform: scale(0.8);
|
||||||
|
margin-bottom: -70rpx !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
.cover-swiper-item{
|
||||||
|
height: fit-content !important;
|
||||||
|
bottom: 0;
|
||||||
|
overflow: visible;
|
||||||
|
}
|
||||||
.message-text{
|
.message-text{
|
||||||
position: absolute;
|
position: absolute;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
@@ -105,24 +118,24 @@ export default {
|
|||||||
margin: auto;
|
margin: auto;
|
||||||
}
|
}
|
||||||
.pro-cover-image{
|
.pro-cover-image{
|
||||||
width: 218rpx;
|
width: 320rpx;
|
||||||
height: 218rpx;
|
height: 320rpx;
|
||||||
|
border-radius: 16rpx;
|
||||||
}
|
}
|
||||||
.pro-img-wrap{
|
.pro-img-wrap{
|
||||||
position: absolute;
|
position: absolute;
|
||||||
width: 218rpx;
|
width: 320rpx;
|
||||||
height: 218rpx;
|
height: 320rpx;
|
||||||
left: 0;
|
left: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
/*border: 10rpx solid #FDF0D3;*/
|
/*border: 10rpx solid #FDF0D3;*/
|
||||||
top: -40px;
|
top: -40px;
|
||||||
border-radius: 16rpx;
|
border-radius: 16rpx;
|
||||||
overflow: hidden;
|
|
||||||
}
|
}
|
||||||
.img-wrap{
|
.img-wrap{
|
||||||
position: relative;
|
position: relative;
|
||||||
transition: all .2s ease-in-out;
|
overflow: visible;
|
||||||
}
|
}
|
||||||
.tips{
|
.tips{
|
||||||
font-size: 24rpx;
|
font-size: 24rpx;
|
||||||
@@ -146,9 +159,12 @@ export default {
|
|||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
overflow: visible;
|
||||||
|
transition: all .3s ease-in-out;
|
||||||
|
margin-bottom: 30rpx;
|
||||||
.cover-image {
|
.cover-image {
|
||||||
width: 340rpx;
|
width: 420rpx;
|
||||||
height: 560rpx;
|
// height: 580rpx;
|
||||||
border-radius: 16rpx;
|
border-radius: 16rpx;
|
||||||
transition: all .2s ease-in-out;
|
transition: all .2s ease-in-out;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,10 +1,10 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="dialog-conent" v-show="isLogin">
|
<view class="dialog-conent" v-show="isLogin">
|
||||||
<view class="gift-card-modal" >
|
<view class="gift-card-modal" >
|
||||||
<image class="bg-image" :src="!card.isBlind ? card.cover : card.blindBoxImage" mode="aspectFit|aspectFill|widthFix" lazy-load="false"></image>
|
<image class="bg-image" :src="!card.isBlind ? card.cover : card.blindBoxImage" mode="widthFix" lazy-load="false"></image>
|
||||||
<view v-if="card.isBlind !== 1" class="image-wrap" :style="{
|
<view v-if="card.isBlind !== 1" class="image-wrap" :style="{
|
||||||
top: card.productImageY*2 + 'rpx',
|
top: card.productImageY*2 + 'rpx',
|
||||||
left: card.productImageX*2 + 'rpx'
|
left: card.productImageX*2+ 'rpx'
|
||||||
}">
|
}">
|
||||||
<image v-if="!isTravelGroup" class="pro-image" :src="card.giftProducts[0].productImage" mode="aspectFit|aspectFill|widthFix" lazy-load="false">
|
<image v-if="!isTravelGroup" class="pro-image" :src="card.giftProducts[0].productImage" mode="aspectFit|aspectFill|widthFix" lazy-load="false">
|
||||||
|
|
||||||
@@ -35,19 +35,19 @@
|
|||||||
<u-icon :name="webUrl + '/icon/share.png'" ></u-icon>
|
<u-icon :name="webUrl + '/icon/share.png'" ></u-icon>
|
||||||
</button>
|
</button>
|
||||||
</view>
|
</view>
|
||||||
<view v-if="myGift.isCurrentUser === 1 && !card.isBlind" @click="toOrder" style="z-index: 10; display: flex;flex-direction: column;align-items: center;">
|
<view v-if="myGift.isCurrentUser === 1 && !card.isBlind" @click="toOrder" style="z-index: 10; display: flex;flex-direction: column;align-items: center;margin-top:200rpx;">
|
||||||
<view class="address-btn v12-white-text v12-primary">
|
<view class="address-btn v12-white-text v12-primary">
|
||||||
您已领取礼包
|
您已领取礼包
|
||||||
</view>
|
</view>
|
||||||
<view class="info-btn v12-text-center v12-font-32 v12-mt-3">查看礼包详情>></view>
|
<view class="info-btn v12-text-center v12-font-32 v12-mt-3">查看礼包详情>></view>
|
||||||
</view>
|
</view>
|
||||||
<view v-if="myGift.isCurrentUser === 1 && card.isBlind" style="z-index: 10; display: flex;flex-direction: column;align-items: center;">
|
<view v-if="myGift.isCurrentUser === 1 && card.isBlind" style="z-index: 10; display: flex;flex-direction: column;align-items: center;margin-top:200rpx;">
|
||||||
<view style="width: fit-content;" class="address-btn v12-white-text v12-primary" @click="toOrder">
|
<view style="width: fit-content;" class="address-btn v12-white-text v12-primary" @click="toOrder">
|
||||||
您已领取礼包,去看看>>
|
您已领取礼包,去看看>>
|
||||||
</view>
|
</view>
|
||||||
<view class="info-btn v12-text-center v12-font-32 v12-mt-3" @click.stop="searchGift">我也要送礼</view>
|
<view class="info-btn v12-text-center v12-font-32 v12-mt-3" @click.stop="searchGift">我也要送礼</view>
|
||||||
</view>
|
</view>
|
||||||
<view v-if="isReceive && myGift.isCurrentUser !== 1" @click="toHome" style="z-index: 10; display: flex;flex-direction: column;align-items: center;">
|
<view v-if="isReceive && myGift.isCurrentUser !== 1" @click="toHome" style="z-index: 10; display: flex;flex-direction: column;align-items: center;margin-top:200rpx;">
|
||||||
<view class="address-btn v12-white-text v12-primary">
|
<view class="address-btn v12-white-text v12-primary">
|
||||||
礼包已被领取
|
礼包已被领取
|
||||||
</view>
|
</view>
|
||||||
@@ -64,13 +64,13 @@
|
|||||||
<u-icon :name="webUrl + '/icon/share.png'" ></u-icon>
|
<u-icon :name="webUrl + '/icon/share.png'" ></u-icon>
|
||||||
</button>
|
</button>
|
||||||
</view>
|
</view>
|
||||||
<view v-if="card.isOverReceive === 1" @click="toHome" style="z-index: 10; display: flex;flex-direction: column;align-items: center;">
|
<view v-if="card.isOverReceive === 1" @click="toHome" style="z-index: 10; display: flex;flex-direction: column;align-items: center;margin-top:200rpx;">
|
||||||
<view class="address-btn v12-white-text v12-primary">
|
<view class="address-btn v12-white-text v12-primary">
|
||||||
礼包已被领取
|
礼包已被领取
|
||||||
</view>
|
</view>
|
||||||
<view class="info-btn v12-text-center v12-font-32 v12-mt-3" style="z-index: 10">去商城看看>></view>
|
<view class="info-btn v12-text-center v12-font-32 v12-mt-3" style="z-index: 10">去商城看看>></view>
|
||||||
</view>
|
</view>
|
||||||
<view v-if="card.isUserReceive === 1 && card.isOverReceive === 0" style="z-index: 10; display: flex;flex-direction: column;align-items: center;">
|
<view v-if="card.isUserReceive === 1 && card.isOverReceive === 0" style="z-index: 10; display: flex;flex-direction: column;align-items: center;margin-top:200rpx;">
|
||||||
<view style="width: fit-content;" class="address-btn v12-white-text v12-primary" @click="toOrder">
|
<view style="width: fit-content;" class="address-btn v12-white-text v12-primary" @click="toOrder">
|
||||||
您已领取礼包,去看看>>
|
您已领取礼包,去看看>>
|
||||||
</view>
|
</view>
|
||||||
@@ -326,10 +326,11 @@ export default {
|
|||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-content: center;
|
align-content: center;
|
||||||
|
margin-top: 200rpx;
|
||||||
}
|
}
|
||||||
.bg-image{
|
.bg-image{
|
||||||
width: 340rpx;
|
width: 420rpx;
|
||||||
height: 560rpx;
|
/* height: 560rpx; */
|
||||||
position: absolute;
|
position: absolute;
|
||||||
border-radius: 16rpx;
|
border-radius: 16rpx;
|
||||||
top: 0;
|
top: 0;
|
||||||
@@ -360,8 +361,8 @@ export default {
|
|||||||
height: 296rpx;
|
height: 296rpx;
|
||||||
}
|
}
|
||||||
.image-wrap{
|
.image-wrap{
|
||||||
width: 218rpx;
|
width: 320rpx;
|
||||||
height: 218rpx;
|
height: 320rpx;
|
||||||
/*border: 10rpx solid #FDF0D3;*/
|
/*border: 10rpx solid #FDF0D3;*/
|
||||||
border-radius: 16rpx;
|
border-radius: 16rpx;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
@@ -371,8 +372,9 @@ export default {
|
|||||||
margin: auto;
|
margin: auto;
|
||||||
}
|
}
|
||||||
.pro-image{
|
.pro-image{
|
||||||
width: 218rpx;
|
width: 320rpx;
|
||||||
height: 218rpx;
|
height: 320rpx;
|
||||||
|
border-radius: 16rpx;
|
||||||
/* border-radius: 30rpx; */
|
/* border-radius: 30rpx; */
|
||||||
}
|
}
|
||||||
.auto-text-color {
|
.auto-text-color {
|
||||||
@@ -417,7 +419,7 @@ export default {
|
|||||||
}
|
}
|
||||||
.gift-card-modal {
|
.gift-card-modal {
|
||||||
height: 560rpx;
|
height: 560rpx;
|
||||||
width: 340rpx;
|
width: 420rpx;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
z-index: 999;
|
z-index: 999;
|
||||||
/* margin-top: 100rpx; */
|
/* margin-top: 100rpx; */
|
||||||
|
|||||||
@@ -1,23 +1,8 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="gift-page" v-if="(goodsInfo.productInfo && goodsInfo.productInfo.storeName) || isGroupBuy">
|
<view class="gift-page" v-if="(goodsInfo.productInfo && goodsInfo.productInfo.storeName) || isGroupBuy">
|
||||||
<view class="top-card" v-if="!isPayOk ">
|
<view class="top-card" v-if="!isPayOk ">
|
||||||
<view class="v12-justify-between v12-pa-2">
|
<view class="v12-justify-between" @click="handleShowCover">
|
||||||
<view>
|
<image class="popCover" :src="popupCover" mode="widthFix" lazy-load="false"></image>
|
||||||
<view></view>
|
|
||||||
<view class="v12-font-28 v12-secondary-dark-text v12-d-flex">
|
|
||||||
<u-icon :name="webUrl + '/icon/gift-primary.png'"></u-icon>
|
|
||||||
<!-- 送礼寄语 -->
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
<view class="v12-primary-text v12-font-26 v12-d-flex v12-align-center">
|
|
||||||
<image class="custom-cover" :src="webUrl + '/icon/custom.png'" mode="heightFix" lazy-load="false">
|
|
||||||
|
|
||||||
</image>
|
|
||||||
<view @click="handleShowCover">{{ cover }}封面</view>
|
|
||||||
<view>
|
|
||||||
<u-icon name="arrow-right" color="#c52733"></u-icon>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="gift-good-card">
|
<view class="gift-good-card">
|
||||||
@@ -96,7 +81,7 @@
|
|||||||
<text class="v12-dark-text v12-font-30">{{ isGroupBuy ? goodsInfo.price : computedResult.totalPrice }}</text>
|
<text class="v12-dark-text v12-font-30">{{ isGroupBuy ? goodsInfo.price : computedResult.totalPrice }}</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="v12-justify-between v12-align-center v12-font-28 v12-mt-1" v-if="!isGroupBuy">
|
<view class="v12-justify-between v12-align-center v12-font-28 v12-mt-1">
|
||||||
<view class="v12-font-24 v12-dark-text">平台折扣:</view>
|
<view class="v12-font-24 v12-dark-text">平台折扣:</view>
|
||||||
<view>
|
<view>
|
||||||
-
|
-
|
||||||
@@ -104,7 +89,7 @@
|
|||||||
<text class="v12-dark-text v12-font-30">{{ computedResult.discountPrice }}</text>
|
<text class="v12-dark-text v12-font-30">{{ computedResult.discountPrice }}</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="v12-justify-between v12-align-center v12-font-28 v12-mt-1" v-if="!isGroupBuy">
|
<view class="v12-justify-between v12-align-center v12-font-28 v12-mt-1">
|
||||||
<view class="v12-font-24 v12-dark-text v12-align-center">
|
<view class="v12-font-24 v12-dark-text v12-align-center">
|
||||||
<view class="">
|
<view class="">
|
||||||
优惠券:
|
优惠券:
|
||||||
@@ -126,7 +111,7 @@
|
|||||||
<view class="v12-font-bold">合计:</view>
|
<view class="v12-font-bold">合计:</view>
|
||||||
<view class="">
|
<view class="">
|
||||||
<text class="v12-primary-text v12-font-bold v12-font-22">¥</text>
|
<text class="v12-primary-text v12-font-bold v12-font-22">¥</text>
|
||||||
<text class="v12-primary-text v12-font-bold v12-font-28">{{ isGroupBuy ? goodsInfo.price : computedResult.payPrice }}</text>
|
<text class="v12-primary-text v12-font-bold v12-font-28">{{ computedResult.payPrice }}</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -161,7 +146,7 @@
|
|||||||
ref='payPwdPop'
|
ref='payPwdPop'
|
||||||
showMoney
|
showMoney
|
||||||
v-if="isShowPayPwdPop"
|
v-if="isShowPayPwdPop"
|
||||||
:money="isGroupBuy ? goodsInfo.price : payPrice"
|
:money="payPrice"
|
||||||
:show="isShowPayPwdPop"
|
:show="isShowPayPwdPop"
|
||||||
@close="isShowPayPwdPop = false"
|
@close="isShowPayPwdPop = false"
|
||||||
@finish="pwdPopFinish"
|
@finish="pwdPopFinish"
|
||||||
@@ -200,7 +185,9 @@ import {
|
|||||||
getGiftCardSendOrderAmount,
|
getGiftCardSendOrderAmount,
|
||||||
getGiftCardResend,
|
getGiftCardResend,
|
||||||
createGroupBuyGift,
|
createGroupBuyGift,
|
||||||
createSojoumGroupBuyGift
|
createSojoumGroupBuyGift,
|
||||||
|
fetchSojoumGroupBuyGiftCarousel,
|
||||||
|
computedSojoumGroupBuyGiftOrderPrice
|
||||||
} from '@/api/gift'
|
} from '@/api/gift'
|
||||||
import { weappPay } from "@/libs/wechat";
|
import { weappPay } from "@/libs/wechat";
|
||||||
import {mapGetters} from "vuex";
|
import {mapGetters} from "vuex";
|
||||||
@@ -256,13 +243,18 @@ export default {
|
|||||||
showPopup: false,
|
showPopup: false,
|
||||||
blindImage: '',
|
blindImage: '',
|
||||||
isGroupBuy: false,
|
isGroupBuy: false,
|
||||||
|
popupCover: ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
async couponId(value) {
|
async couponId(value) {
|
||||||
this.couponIndex = this.couponList['usable']?.findIndex(item => item.id === +value)
|
this.couponIndex = this.couponList['usable']?.findIndex(item => item.id === +value)
|
||||||
this.couponTitle = this.couponList['usable']?.[this.couponIndex]?.couponTitle
|
this.couponTitle = this.couponList['usable']?.[this.couponIndex]?.couponTitle
|
||||||
await this.computedPrice(this.goodsInfo.cartNum, 1)
|
if(this.isGroupBuy) {
|
||||||
|
await this.computedTravelGroupPrice(false)
|
||||||
|
} else {
|
||||||
|
await this.computedPrice(this.goodsInfo.cartNum, 1)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(opts) {
|
onLoad(opts) {
|
||||||
@@ -275,6 +267,9 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
this.getGift()
|
this.getGift()
|
||||||
}
|
}
|
||||||
|
fetchSojoumGroupBuyGiftCarousel().then(res => {
|
||||||
|
this.popupCover = res.data[0]
|
||||||
|
})
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
...mapGetters(["userInfo"]),
|
...mapGetters(["userInfo"]),
|
||||||
@@ -294,14 +289,23 @@ export default {
|
|||||||
imageUrl: this.shareImage
|
imageUrl: this.shareImage
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// onReady() {
|
|
||||||
// this.$nextTick(() => {
|
|
||||||
// this.$refs.textarea.setFormatter(val => {
|
|
||||||
// return val.length > 30 ? val.substring(0, 30) : val
|
|
||||||
// })
|
|
||||||
// })
|
|
||||||
// },
|
|
||||||
methods: {
|
methods: {
|
||||||
|
// 团购价计算
|
||||||
|
computedTravelGroupPrice(useDefaultCouponId) {
|
||||||
|
const params = {
|
||||||
|
key: this.orderKey,
|
||||||
|
couponId: this.couponId
|
||||||
|
}
|
||||||
|
computedSojoumGroupBuyGiftOrderPrice(params).then(res => {
|
||||||
|
this.computedResult = res.data.result
|
||||||
|
this.couponList = res.data.result.couponList
|
||||||
|
this.payPrice = res.data.result.payPrice
|
||||||
|
this.$forceUpdate()
|
||||||
|
if(useDefaultCouponId) {
|
||||||
|
this.couponId = res.data.result.defaultCouponId || 0
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
handleShowCover() {
|
handleShowCover() {
|
||||||
this.showCoverPicker = true
|
this.showCoverPicker = true
|
||||||
},
|
},
|
||||||
@@ -320,12 +324,20 @@ export default {
|
|||||||
if(!item.id) {
|
if(!item.id) {
|
||||||
this.couponId = 0
|
this.couponId = 0
|
||||||
this.couponTitle = ''
|
this.couponTitle = ''
|
||||||
this.computedPrice(this.goodsInfo.cartNum, 1)
|
if(this.isGroupBuy) {
|
||||||
|
this.computedTravelGroupPrice(false)
|
||||||
|
} else {
|
||||||
|
this.computedPrice(this.goodsInfo.cartNum, 1)
|
||||||
|
}
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
this.couponId = item.id
|
this.couponId = item.id
|
||||||
this.couponTitle = item.couponTitle
|
this.couponTitle = item.couponTitle
|
||||||
this.computedPrice(this.goodsInfo.cartNum, 1)
|
if(this.isGroupBuy) {
|
||||||
|
this.computedTravelGroupPrice(false)
|
||||||
|
} else {
|
||||||
|
this.computedPrice(this.goodsInfo.cartNum, 1)
|
||||||
|
}
|
||||||
},
|
},
|
||||||
makeAgain() {
|
makeAgain() {
|
||||||
const params = {
|
const params = {
|
||||||
@@ -462,6 +474,7 @@ export default {
|
|||||||
message : this.message || '礼笺轻启,礼藏心意',
|
message : this.message || '礼笺轻启,礼藏心意',
|
||||||
canTransfer: this.canTransfer ? 1 : 0,
|
canTransfer: this.canTransfer ? 1 : 0,
|
||||||
passwordPay: this.payPassword || '',
|
passwordPay: this.payPassword || '',
|
||||||
|
couponId: this.couponId,
|
||||||
payType: this.payType,
|
payType: this.payType,
|
||||||
} : {
|
} : {
|
||||||
orderKey: this.orderKey,
|
orderKey: this.orderKey,
|
||||||
@@ -586,6 +599,7 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.giftNotice = res.data.giftCardGiftNotice
|
this.giftNotice = res.data.giftCardGiftNotice
|
||||||
|
this.computedTravelGroupPrice(true)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@@ -734,4 +748,8 @@ export default {
|
|||||||
background: #fff;
|
background: #fff;
|
||||||
border-radius: 30rpx;
|
border-radius: 30rpx;
|
||||||
}
|
}
|
||||||
|
.popCover{
|
||||||
|
width: 100%;
|
||||||
|
border-radius: 16rpx;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
@@ -33,7 +33,6 @@
|
|||||||
<image
|
<image
|
||||||
:src="cart.productInfo.image"
|
:src="cart.productInfo.image"
|
||||||
class="img"
|
class="img"
|
||||||
mode="widthFix"
|
|
||||||
/>
|
/>
|
||||||
</view>
|
</view>
|
||||||
<view class="gift-good-info">
|
<view class="gift-good-info">
|
||||||
@@ -56,7 +55,6 @@
|
|||||||
<image
|
<image
|
||||||
:src="item.giftInfoTravelGroup.travelGroupProductInfo.mainImage"
|
:src="item.giftInfoTravelGroup.travelGroupProductInfo.mainImage"
|
||||||
class="img"
|
class="img"
|
||||||
mode="widthFix"
|
|
||||||
/>
|
/>
|
||||||
</view>
|
</view>
|
||||||
<view class="gift-good-info">
|
<view class="gift-good-info">
|
||||||
@@ -65,7 +63,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="price-wrap">
|
<view class="price-wrap">
|
||||||
<view class="price">
|
<view class="price">
|
||||||
<text class="prefix">¥</text>{{ item.giftInfoTravelGroup.travelGroupProductInfo.price }}
|
<text class="prefix">¥</text>{{ item.payPrice }}
|
||||||
</view>
|
</view>
|
||||||
<view class="num">已领取{{item.giftInfoTravelGroup.receiveNum}}/{{ item.giftInfoTravelGroup.totalNum }}</view>
|
<view class="num">已领取{{item.giftInfoTravelGroup.receiveNum}}/{{ item.giftInfoTravelGroup.totalNum }}</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -147,7 +145,6 @@
|
|||||||
<image
|
<image
|
||||||
:src="cart.productInfo.image"
|
:src="cart.productInfo.image"
|
||||||
class="img"
|
class="img"
|
||||||
mode="widthFix"
|
|
||||||
/>
|
/>
|
||||||
</view>
|
</view>
|
||||||
<view class="gift-good-info">
|
<view class="gift-good-info">
|
||||||
@@ -178,7 +175,6 @@
|
|||||||
<image
|
<image
|
||||||
:src="item.travelGroupProductInfo.mainImage"
|
:src="item.travelGroupProductInfo.mainImage"
|
||||||
class="img"
|
class="img"
|
||||||
mode="widthFix"
|
|
||||||
/>
|
/>
|
||||||
</view>
|
</view>
|
||||||
<view class="gift-good-info">
|
<view class="gift-good-info">
|
||||||
|
|||||||
+2
-2
@@ -1214,18 +1214,18 @@ export function uploadVideo(videoPath, callback) {
|
|||||||
name: "file",
|
name: "file",
|
||||||
success: res => {
|
success: res => {
|
||||||
if (callback) {
|
if (callback) {
|
||||||
|
uni.hideLoading()
|
||||||
callback(JSON.parse(res.data).link)
|
callback(JSON.parse(res.data).link)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
fail: err => {
|
fail: err => {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: "上传视频失败" + err,
|
title: "视频大小不能超过500MB",
|
||||||
icon: "none",
|
icon: "none",
|
||||||
duration: 2000
|
duration: 2000
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
complete: res => {
|
complete: res => {
|
||||||
uni.hideLoading()
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user