diff --git a/api/gift.js b/api/gift.js index 436bdbb..3f33c62 100644 --- a/api/gift.js +++ b/api/gift.js @@ -101,3 +101,26 @@ export function receiveSojoumGroupBuyGift(params) { 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 + }) +} diff --git a/api/qianxian.js b/api/qianxian.js index fd97dc6..ae02d43 100644 --- a/api/qianxian.js +++ b/api/qianxian.js @@ -110,9 +110,9 @@ export function getSaleList(params) { // } // 旅居详情 -// export function getJiaLouDetail(id) { -// return request.get('/countyFamous/sojourn/' + id, {}, {login: true}) -// } +export function getJiaLouDetail1(id) { + return request.get('/countyFamous/sojourn/' + id, {}, {login: true}) +} // 旅居资讯数据 export function getJiaLouNews(params) { @@ -153,7 +153,10 @@ export function postJiaLouNewsZan(data) { export function postJiaLouShare(id) { 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 diff --git a/components/aiChat/entrance.vue b/components/aiChat/entrance.vue index ccbb31d..84abd48 100644 --- a/components/aiChat/entrance.vue +++ b/components/aiChat/entrance.vue @@ -24,7 +24,8 @@ export default { data() { return { showImg: false, - settingInfo: {} + settingInfo: {}, + localCityName: uni.getStorageSync('locationCityName') || '' } }, created() { @@ -42,7 +43,7 @@ export default { }, enterAiChat() { uni.navigateTo({ - url: '/aiChat/views/index?click=1&cityName=' + this.cityName + url: '/aiChat/views/index?click=1&cityName=' + (this.cityName || this.localCityName) }) } } diff --git a/manifest.json b/manifest.json index 9b381af..b482ced 100644 --- a/manifest.json +++ b/manifest.json @@ -5,6 +5,7 @@ "versionName" : "4.0.0", "versionCode" : 4, "transformPx" : false, + "sassImplementationName" : "node-sass", /* 5+App特有相关 */ "app-plus" : { "usingComponents" : true, diff --git a/pages.json b/pages.json index c5abb3a..b9c2321 100644 --- a/pages.json +++ b/pages.json @@ -22,12 +22,6 @@ "navigationBarTitleText": "登录" } }, - { - "path": "pages/user/RetrievePassword/index", - "style": { - "navigationBarTitleText": "重置密码" - } - }, { "path": "pages/home/index", "style": { @@ -51,7 +45,7 @@ { "path": "pages/home/newZone", "style": { - "navigationBarTitleText": "新品专区", + "navigationBarTitleText": "甄选好礼", "navigationBarBackgroundColor": "#FFFFFF" } }, @@ -94,12 +88,6 @@ "navigationBarTitleText": "搜索" } }, - { - "path": "pages/NotDefined/index", - "style": { - "navigationBarTitleText": "404" - } - }, { "path": "pages/cloud/haveFun", "style": { @@ -140,18 +128,6 @@ "navigationBarTitleText": "商品评价" } }, - { - "path": "pages/shop/GoodsPromotion/index", - "style": { - "navigationBarTitleText": "促销商品" - } - }, - { - "path": "pages/shop/HotNewGoods/index", - "style": { - "navigationBarTitleText": "热门商品" - } - }, { "path": "pages/shop/GoodsCon/index", "style": { @@ -185,43 +161,12 @@ "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", "style": { "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", "style": { @@ -255,12 +200,6 @@ "navigationBarTitleText": "我的积分" } }, - { - "path": "pages/user/UserVip/index", - "style": { - "navigationBarTitleText": "用户vip" - } - }, { "path": "pages/user/promotion/UserCash/index", "style": { @@ -343,13 +282,6 @@ "navigationBarBackgroundColor": "#FFFFFF" } }, - { - "path": "pages/user/MemberUpgradeIntro/MemberUpgradeIntro", - "style": { - "navigationBarTitleText": "升级说明", - "navigationBarBackgroundColor": "#FFFFFF" - } - }, { "path": "pages/VideoPlayBackList/VideoPlayBackList", "style": { @@ -364,31 +296,6 @@ "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", "style": { @@ -726,6 +633,13 @@ "navigationStyle": "custom" } }, + { + "path": "views/oldSojumStore", + "style": { + "navigationBarTitleText": "", + "navigationStyle": "custom" + } + }, { "path": "views/housekeeperDetail", "style": { diff --git a/pages/home/index.vue b/pages/home/index.vue index 997a61b..6f70caf 100644 --- a/pages/home/index.vue +++ b/pages/home/index.vue @@ -45,6 +45,8 @@ autoplay circular style="height: 510rpx;" + :duration="500" + @animationfinish="bindSwiperInstance($event, 'banner')" > --> - + + + + + + + + {{ item.productName }} + + + {{ item.productPrice }} + + + + + + + @@ -284,6 +305,8 @@ circular autoplay :interval="3000" + :duration="500" + @animationfinish="bindSwiperInstance($event, 'productSwiper')" > { + const { success, data } = res + if (success) { + this.shareData = data + } + }) + }, + onShow() { + this.pageToShowHandle() }, onHide() { this.pageToHideHandle() @@ -459,7 +504,46 @@ export default { onPageScroll(e) { 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: { + 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) { this.keywordIndex = e }, @@ -1345,6 +1429,7 @@ export default { _this.$set(_this, 'contentHomestay', data.contentHomestayV2 || []) _this.$set(_this, 'contentFestival', data.contentFestivalV2 || []) _this.$set(_this, 'newZone', data.newGoods || []) + _this.$set(_this, 'isOldUserPopupShow', data.isOldUserPopupShow || 0) _this.indexVideo = data.indexVideo ? data.indexVideo.videoUrl : '' _this.bastLeftList = [] _this.bastRightList = [] @@ -1531,6 +1616,30 @@ export default { \ No newline at end of file + diff --git a/pkg_product/views/healthList.vue b/pkg_product/views/healthList.vue index 532683e..cea6db4 100644 --- a/pkg_product/views/healthList.vue +++ b/pkg_product/views/healthList.vue @@ -113,7 +113,7 @@ - --> + + {{ item.areaName }} - {{ item.intro }} + {{ item.intro }} @@ -126,9 +127,9 @@ export default { getList() { const params = { // countyId: this.cityId, - cityId: this.cityId, + goodCityId: this.cityId, wellnessPlaceCateId : this.categoryId, - shopType: 'wellness', + shopType: 'wellnessCate', page: 1, limit: 9999 } @@ -144,8 +145,8 @@ export default { }, getTop() { const params = { - cityId: this.cityId, - shopType: 'wellness', + goodCityId: this.cityId, + shopType: 'wellnessTop', page: 1, limit: 9999 } @@ -155,7 +156,16 @@ export default { }) }, 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 }) + } }, } } diff --git a/pkg_product/views/healthSearch.vue b/pkg_product/views/healthSearch.vue index 4dcc2e4..e330e45 100644 --- a/pkg_product/views/healthSearch.vue +++ b/pkg_product/views/healthSearch.vue @@ -5,7 +5,7 @@ - + - {{ item.content }} + {{ item.intro }} - + - {{ item.hotelName }} + {{ item.name }} @@ -45,6 +45,7 @@ + + \ No newline at end of file diff --git a/pkg_product/views/sojoumOrderDetails.vue b/pkg_product/views/sojoumOrderDetails.vue index a2f98d3..a65e28a 100644 --- a/pkg_product/views/sojoumOrderDetails.vue +++ b/pkg_product/views/sojoumOrderDetails.vue @@ -45,7 +45,16 @@ - + + + 团购总价 + ¥{{orderInfo.travelGroupOrderInfo.travelGroupProduct.price}} + + + 满减优惠 + ¥{{orderInfo.couponPrice}} + + 核销码:{{orderInfo.verifyCode}} @@ -271,8 +280,8 @@ export default { }) this.getSojoumOrderDetail(); } - }).finally(() => { uni.hideLoading(); + }).finally(() => { }) }, getMonthDay() { @@ -557,7 +566,7 @@ export default { left: 0; right: 0; background-color: #fff; - padding: 20rpx 30rpx; + padding: 26rpx 30rpx; display: flex; justify-content: space-between; box-shadow: 0 -2rpx 10rpx rgba(0, 0, 0, 0.05); diff --git a/pkg_product/views/sojoumStore.vue b/pkg_product/views/sojoumStore.vue index dfbf196..4b94765 100644 --- a/pkg_product/views/sojoumStore.vue +++ b/pkg_product/views/sojoumStore.vue @@ -303,7 +303,7 @@ - {{ item.desc }} + {{ item.intro }} {{ tag }} @@ -350,7 +350,7 @@ import { postJiaLouNewsView, postJiaLouNewsZan, postJiaLouZan, - postJiaLouShare, + postTravelShare, getJiaLouProductList, getJiaLouStewardList, getJiaLouNewsList @@ -540,7 +540,7 @@ export default { }, changeShare() { uni.showLoading() - postJiaLouShare(this.id).then(res => { + postTravelShare(this.id).then(res => { this.posterUrl = res.data this.showShare = !this.showShare }).finally(() => { diff --git a/pkg_product/views/submitOrder.vue b/pkg_product/views/submitOrder.vue index c2dd0ca..be74950 100644 --- a/pkg_product/views/submitOrder.vue +++ b/pkg_product/views/submitOrder.vue @@ -434,15 +434,28 @@ export default { .text-card .plain-text { font-size: 26rpx; color: #666; line-height: 40rpx; letter-spacing: 2px;} .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: 28rpx; color: #111; font-weight: 700; } +.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: 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; } .bar-actions { display: flex; gap: 16rpx; } .mini-btn { padding: 10rpx 22rpx; border: 1rpx solid #ccc; border-radius: 32rpx; - font-size: 26rpx; + font-size: 30rpx; color: #333; display: flex; align-items: center; @@ -452,7 +465,7 @@ export default { border-radius: 32rpx; background: #C52733; color: #fff; - font-size: 26rpx; + font-size: 30rpx; display: flex; align-items: center; } diff --git a/pkg_user/views/gift/components/CoverPicker.vue b/pkg_user/views/gift/components/CoverPicker.vue index 1a5f7b1..3c5587c 100644 --- a/pkg_user/views/gift/components/CoverPicker.vue +++ b/pkg_user/views/gift/components/CoverPicker.vue @@ -3,34 +3,33 @@ :show="show" mode="bottom" round="40rpx" - @close="close" :customStyle="{height: '600rpx'}" - closeable> - - 选择封面 + @close="close" + > + - + - + - - {{ message }} + + - {{ item.name }} + @@ -80,10 +79,12 @@ export default { }, methods: { close() { + this.currentIndex = 0 this.$emit('update:show', false) }, onChange(e) { this.currentIndex = e.detail.current + this.$forceUpdate() }, confirm() { this.$emit('confirm', this.list[this.currentIndex]) @@ -94,6 +95,18 @@ export default { \ No newline at end of file diff --git a/pkg_user/views/giftList.vue b/pkg_user/views/giftList.vue index cc20d98..a7de037 100644 --- a/pkg_user/views/giftList.vue +++ b/pkg_user/views/giftList.vue @@ -33,7 +33,6 @@ @@ -56,7 +55,6 @@ @@ -65,7 +63,7 @@ - {{ item.giftInfoTravelGroup.travelGroupProductInfo.price }} + {{ item.payPrice }} 已领取{{item.giftInfoTravelGroup.receiveNum}}/{{ item.giftInfoTravelGroup.totalNum }} @@ -147,7 +145,6 @@ @@ -178,7 +175,6 @@ diff --git a/utils/index.js b/utils/index.js index 86debbe..093911b 100644 --- a/utils/index.js +++ b/utils/index.js @@ -1214,18 +1214,18 @@ export function uploadVideo(videoPath, callback) { name: "file", success: res => { if (callback) { + uni.hideLoading() callback(JSON.parse(res.data).link) } }, fail: err => { uni.showToast({ - title: "上传视频失败" + err, + title: "视频大小不能超过500MB", icon: "none", duration: 2000 }); }, complete: res => { - uni.hideLoading() } }); }