diff --git a/api/inn.js b/api/inn.js
index 928a72f..364d657 100644
--- a/api/inn.js
+++ b/api/inn.js
@@ -266,5 +266,11 @@ export function shareTown(id) {
return request.get("/ancientTown/poster/" + id, {login: true})
}
+/**
+ * 获取用户店铺列表
+ */
+export function getMerchantApply() {
+ return request.get("/merchantApply/userHotels", {}, {login: true})
+}
diff --git a/components/CouponsPopup.vue b/components/CouponsPopup.vue
index 6e42d75..ebd0171 100644
--- a/components/CouponsPopup.vue
+++ b/components/CouponsPopup.vue
@@ -204,12 +204,14 @@ export default {
selectCoupon(id) {
this.couponId = id
this.selectItem = this.list.find(e => e.id === id) || {}
+ // this.$emit('select', this.selectItem)
this.list.map(item => {
item.checked = id === item.id
})
},
setCoupon() {
if (this.current === 1) return
+ console.log(this.current, '====1=======');
uni.setStorageSync('couponId', this.couponId)
this.$emit('change', this.selectItem || {})
this.$emit('ok', this.couponId)
diff --git a/components/FunctionGuide.vue b/components/FunctionGuide.vue
index 08dfffa..0f761b1 100644
--- a/components/FunctionGuide.vue
+++ b/components/FunctionGuide.vue
@@ -1,5 +1,5 @@
-
@@ -446,7 +451,8 @@ import {
setTopHotelNew,
getHotelNewsZan,
getHotelShareBackgroundImage,
- hotelNewsView
+ hotelNewsView,
+ getMerchantApply
} from "@/api/inn.js"
import {formatDateTime} from "@/utils"
import {getUrlParam} from "@/utils/common.js"
@@ -454,14 +460,16 @@ import imgBox from '@/components/imageTypeSet/imagebox.vue'
import cookie from "@/utils/store/cookie"
import {addStore, removeStore} from "@/api/favorite"
import { pageListenMixins } from '@/mixins/pageListenMixins'
-
+import homeList from "../components/jin-edit/homeList.vue"
export default {
components: {
- imgBox
+ imgBox,
+ homeList
},
mixins: [pageListenMixins],
data() {
return {
+ homeList: [],
webUrl: this.$VUE_APP_RESOURCES_URL,
isLoad: false,
activeIndex: 0,
@@ -543,7 +551,7 @@ export default {
break
}
if (id) {
- this.id = id || null
+ this.id = uni.getStorageSync('homeId') || id
this.partnerId = options.partnerId || null
} else {
let obj = uni.getEnterOptionsSync()
@@ -587,7 +595,36 @@ export default {
}
this.fetchInnDetail()
},
+ watch: {
+ activeIndex: {
+ handler(val) {
+ console.log(val);
+ if (val === 1) {
+ this.fetchInnInfoList()
+ }
+ },
+ deep: true,
+ immediate: true
+ }
+ },
methods: {
+ goHome(e) {
+ this.id = e.id
+ if(this.activeIndex !==1) {
+ this.activeInde = 1
+ } else {
+ this.fetchInnInfoList()
+ }
+ this.fetchInnDetail()
+ },
+ changeHome() {
+ uni.showLoading()
+ getMerchantApply().then(res => {
+ this.$refs.homeList.open(res.data || [])
+ }).finally(() => {
+ uni.hideLoading()
+ })
+ },
changeShare() {
this.showShare = !this.showShare
},
@@ -1065,11 +1102,9 @@ export default {
background: #fff;
.name {
- padding: 8rpx 6rpx;
+ padding: 0 6rpx;
font-size: 26rpx;
- line-height: 36rpx;
color: #333333;
- height: 70rpx;
}
.price-line {
diff --git a/pkg_common/views/roomLogs.vue b/pkg_common/views/roomLogs.vue
index ca79a90..045e4df 100644
--- a/pkg_common/views/roomLogs.vue
+++ b/pkg_common/views/roomLogs.vue
@@ -28,7 +28,7 @@
{{ item.last_msg.created_at }}
- {{ item.last_msg.msg_type===0?item.last_msg.msg_content:'[图片]' }}
+ {{ item.last_msg.msg_type===0?item.last_msg.msg_content:'[图片]' }}
{{ item.unread_num < 99 ? item.unread_num : '99+' }}
diff --git a/pkg_join/views/index.vue b/pkg_join/views/index.vue
index a14d938..6cfc395 100644
--- a/pkg_join/views/index.vue
+++ b/pkg_join/views/index.vue
@@ -51,7 +51,8 @@ export default {
hasSupplier: null,
hasWholesaler: null,
images: null,
- pageKeyId: Object.freeze('merchantApplyIndex')
+ pageKeyId: Object.freeze('merchantApplyIndex'),
+ canApplyHotel: false
}
},
onLoad(options) {
@@ -63,6 +64,7 @@ export default {
this.hasHotel = data.hasHotel
this.hasSupplier = data.hasSupplier
this.hasWholesaler = data.hasWholesaler
+ this.canApplyHotel = data.canApplyHotel
})
},
methods: {
@@ -83,11 +85,14 @@ export default {
}
break
case 'shop':
- if (this.hasHotel === 1) {
- this.$yrouter.push('/pagesInn/inn/innHome?id='+this.hotelId)
- } else {
- this.$yrouter.push('/pkg_join/views/shop?partnerId=' + this.partnerId)
+ if (!this.canApplyHotel) {
+ uni.showToast({ // 使用uni-app官方提示API
+ title: '您的店铺数量已到达上限,不能继续申请店铺',
+ icon: 'none'
+ })
+ return
}
+ this.$yrouter.push('/pkg_join/views/shop?partnerId=' + this.partnerId)
break
case 'wholesaler':
if (this.hasWholesaler === 1) {
diff --git a/pkg_join/views/supplier.vue b/pkg_join/views/supplier.vue
index 852af77..bcc0684 100644
--- a/pkg_join/views/supplier.vue
+++ b/pkg_join/views/supplier.vue
@@ -732,6 +732,8 @@ export default {
const local = uni.getStorageSync(type) || {}
const local_form = uni.getStorageSync(type + '_form') || {}
this.quaPics = uni.getStorageSync(type + '_quaPics') || []
+ console.log(this.quaPics, 'this.quaPics');
+
if(!local_form.serviceTime) {
local_form.serviceTime = '00:00'
}
@@ -894,9 +896,11 @@ export default {
})
}
// 商家资质
- this.quaPics = []
const quaPicsTemp = this.form.qualification && this.form.qualification.split(',') || []
if (quaPicsTemp.length > 0) {
+ console.log(quaPicsTemp, 'quaPicsTemp--------');
+
+ this.quaPics = []
quaPicsTemp.map(item => {
if (item) {
this.quaPics.push({url: item})
diff --git a/pkg_product/views/famousQianxianShop.vue b/pkg_product/views/famousQianxianShop.vue
index 3fb6193..a987516 100644
--- a/pkg_product/views/famousQianxianShop.vue
+++ b/pkg_product/views/famousQianxianShop.vue
@@ -844,6 +844,7 @@ export default {
scrollTop: 100,
duration: 300
})
+ console.log(res.top);
const imgs = [
{
url: this.webUrl + '/引导页素材/千县名品/Group 4/Group 4-1.png',
@@ -851,7 +852,7 @@ export default {
position: 'absolute',
zIndex: 99,
width: '366rpx',
- top: 460*2+'rpx',
+ top: (res.top-180)*2+'rpx',
left: 80*2+'rpx',
height: '167rpx',
/* px: ; */
@@ -864,7 +865,7 @@ export default {
position: 'absolute',
zIndex: 99,
width: '117rpx',
- top: 440*2+'rpx',
+ top: (res.top-200)*2+'rpx',
left: -60*2+'rpx',
right: 0,
margin: 'auto',
@@ -878,7 +879,7 @@ export default {
position: 'absolute',
zIndex: 99,
width: '117rpx',
- top: 440*2+'rpx',
+ top: (res.top-200)*2+'rpx',
left: 200*2+'rpx',
height: '46rpx',
},
diff --git a/pkg_user/components/invinbg-image-cropper/invinbg-image-cropper.vue b/pkg_user/components/invinbg-image-cropper/invinbg-image-cropper.vue
index 7e2a75e..cbb47f6 100644
--- a/pkg_user/components/invinbg-image-cropper/invinbg-image-cropper.vue
+++ b/pkg_user/components/invinbg-image-cropper/invinbg-image-cropper.vue
@@ -491,7 +491,7 @@
position: relative;
/* width: 40px; */
/* height: 40px; */
- background: #fff;
+ /* background: #fff; */
border-radius: 20px;
padding: 10px;
display: inline-block;
diff --git a/pkg_user/views/gift/components/GiftCard.vue b/pkg_user/views/gift/components/GiftCard.vue
index ffed8c7..4d21961 100644
--- a/pkg_user/views/gift/components/GiftCard.vue
+++ b/pkg_user/views/gift/components/GiftCard.vue
@@ -24,17 +24,17 @@
-
+
您已领取礼包
- 查看礼包详情>>
+ 查看礼包详情>>
-
+
礼包已被领取
- 去商城看看>>
+ 去商城看看>>
@@ -176,6 +176,18 @@ export default {