Compare commits
12 Commits
047cf765da
...
dev/1.0
| Author | SHA1 | Date | |
|---|---|---|---|
| 54c39259a7 | |||
| 15361211b1 | |||
| e301ddc6ec | |||
| a560ad4a5d | |||
| 7f7a18803f | |||
| 42563d7184 | |||
| 14a903f42a | |||
| c9f8614927 | |||
| fe9303bf4c | |||
| e4dfd0ae11 | |||
| 7037d0b083 | |||
| e8a79bd245 |
@@ -65,6 +65,10 @@ export default {
|
|||||||
componentRefresh() {
|
componentRefresh() {
|
||||||
return this.$store.state.componentRefresh;
|
return this.$store.state.componentRefresh;
|
||||||
},
|
},
|
||||||
|
// AI客服配置
|
||||||
|
globalAIKefuConfig() {
|
||||||
|
return this.$store.state.globalAIKefuConfig;
|
||||||
|
},
|
||||||
// 客服配置
|
// 客服配置
|
||||||
servicerConfig() {
|
servicerConfig() {
|
||||||
return this.$store.state.servicerConfig;
|
return this.$store.state.servicerConfig;
|
||||||
|
|||||||
@@ -212,4 +212,4 @@ export default {
|
|||||||
}
|
}
|
||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -183,13 +183,17 @@ export default {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 初始化多语言配置
|
||||||
|
*/
|
||||||
initLanguage() {
|
initLanguage() {
|
||||||
this.langList = this. $langConfig.list();
|
this.langList = this.$langConfig.list();
|
||||||
this.langIndexMap = {};
|
this.langIndexMap = {};
|
||||||
for (let i = 0; i < this.langList.length; i++) {
|
for (let i = 0; i < this.langList.length; i++) {
|
||||||
this.langIndexMap[i] = this.langList[i].value;
|
this.langIndexMap[i] = this.langList[i].value;
|
||||||
}
|
}
|
||||||
const savedLang = uni.getStorageSync('lang');
|
const savedLang = this.$langConfig.getCurrentLocale();
|
||||||
if (savedLang) {
|
if (savedLang) {
|
||||||
for (let i = 0; i < this.langList.length; i++) {
|
for (let i = 0; i < this.langList.length; i++) {
|
||||||
if (this.langList[i].value === savedLang) {
|
if (this.langList[i].value === savedLang) {
|
||||||
@@ -201,24 +205,38 @@ export default {
|
|||||||
this.currentLangIndex = 0;
|
this.currentLangIndex = 0;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 电话联系客服
|
||||||
|
*/
|
||||||
call() {
|
call() {
|
||||||
if (this.tel) {
|
this.customerService.makePhoneCall(this.tel);
|
||||||
uni.makePhoneCall({ phoneNumber: this.tel + '' });
|
|
||||||
} else {
|
|
||||||
uni.showToast({ title: '暂无联系电话', icon: 'none' });
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 切换中英文语言,并刷新当前页面(保留所有参数)
|
||||||
|
*/
|
||||||
toggleLanguage() {
|
toggleLanguage() {
|
||||||
this.currentLangIndex = this.currentLangIndex === 0 ? 1 : 0;
|
this.currentLangIndex = this.currentLangIndex === 0 ? 1 : 0;
|
||||||
const targetLang = this.langIndexMap[this.currentLangIndex];
|
const targetLang = this.langIndexMap[this.currentLangIndex];
|
||||||
this. $langConfig.change(targetLang);
|
|
||||||
|
|
||||||
if (uni.getSystemInfoSync().platform === 'browser') {
|
// 调用语言切换逻辑(设置 storage + 清空缓存)
|
||||||
setTimeout(() => {
|
this.$langConfig.change(targetLang);
|
||||||
window.location.reload();
|
|
||||||
}, 100);
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 打开 AI 智能助手
|
||||||
|
*/
|
||||||
|
openAIChat() {
|
||||||
|
this.$util.redirectTo(this.$util.AI_CHAT_PAGE_URL);
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 打开客服选择对话框
|
||||||
|
*/
|
||||||
|
openCustomerSelectPopup() {
|
||||||
|
this.customerService.openCustomerSelectPopupDialog();
|
||||||
|
},
|
||||||
|
|
||||||
// ✅ 核心方法:统一客服入口
|
// ✅ 核心方法:统一客服入口
|
||||||
handleUnifiedKefuClick() {
|
handleUnifiedKefuClick() {
|
||||||
@@ -312,7 +330,7 @@ export default {
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style lang="scss" scoped>
|
||||||
.fixed-box {
|
.fixed-box {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
right: 0rpx;
|
right: 0rpx;
|
||||||
@@ -333,16 +351,27 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.btn-item {
|
.btn-item {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
text-align: center;
|
||||||
|
flex-direction: column;
|
||||||
|
line-height: 1;
|
||||||
|
margin: 14rpx 0;
|
||||||
|
transition: 0.1s;
|
||||||
|
color: var(--hover-nav-text-color);
|
||||||
|
border-radius: 40rpx;
|
||||||
width: 80rpx;
|
width: 80rpx;
|
||||||
height: 80rpx;
|
height: 80rpx;
|
||||||
background: #fff;
|
padding: 0;
|
||||||
border-radius: 50%;
|
overflow: hidden;
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
justify-content: center;
|
|
||||||
margin: 14rpx 0;
|
|
||||||
box-shadow: 0 2rpx 8rpx rgba(0,0,0,0.1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* 定义共同的背景颜色 */
|
||||||
|
.common-bg {
|
||||||
|
background-color: var(--hover-nav-bg-color);
|
||||||
|
/* 使用变量以保持一致性 */
|
||||||
|
}
|
||||||
|
|
||||||
.btn-item text {
|
.btn-item text {
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
}
|
}
|
||||||
@@ -357,7 +386,6 @@ export default {
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
margin: 14rpx 0;
|
margin: 14rpx 0;
|
||||||
background: #fff;
|
|
||||||
border-radius: 50rpx;
|
border-radius: 50rpx;
|
||||||
width: 80rpx;
|
width: 80rpx;
|
||||||
height: 80rpx;
|
height: 80rpx;
|
||||||
@@ -371,21 +399,7 @@ export default {
|
|||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
}
|
}
|
||||||
|
|
||||||
.unread-badge {
|
|
||||||
position: absolute;
|
|
||||||
top: -5rpx;
|
|
||||||
right: -5rpx;
|
|
||||||
background-color: #ff4544;
|
|
||||||
color: white;
|
|
||||||
border-radius: 20rpx;
|
|
||||||
min-width: 30rpx;
|
|
||||||
height: 30rpx;
|
|
||||||
font-size: 20rpx;
|
|
||||||
line-height: 30rpx;
|
|
||||||
text-align: center;
|
|
||||||
padding: 0 8rpx;
|
|
||||||
box-shadow: 0 2rpx 10rpx rgba(255, 69, 68, 0.3);
|
|
||||||
}
|
|
||||||
|
|
||||||
.ai-icon {
|
.ai-icon {
|
||||||
font-size: 40rpx;
|
font-size: 40rpx;
|
||||||
|
|||||||
@@ -104,7 +104,7 @@
|
|||||||
},
|
},
|
||||||
"router" : {
|
"router" : {
|
||||||
"mode" : "history",
|
"mode" : "history",
|
||||||
"base" : "/hwappx/2811/"
|
"base" : "/hwappx/common/"
|
||||||
},
|
},
|
||||||
"title" : "",
|
"title" : "",
|
||||||
"devServer" : {
|
"devServer" : {
|
||||||
|
|||||||
30
pages.json
30
pages.json
@@ -321,6 +321,12 @@
|
|||||||
"navigationBarTitleText": "AI 客服"
|
"navigationBarTitleText": "AI 客服"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"path": "agreement/contenr",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": ""
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"path": "vr/index",
|
"path": "vr/index",
|
||||||
"style": {
|
"style": {
|
||||||
@@ -912,16 +918,22 @@
|
|||||||
},
|
},
|
||||||
//******************文件模块******************
|
//******************文件模块******************
|
||||||
{
|
{
|
||||||
"path": "files/list",
|
"path": "files/list",
|
||||||
"style": {
|
"style": {
|
||||||
// #ifdef APP-PLUS
|
// #ifdef APP-PLUS
|
||||||
"navigationStyle": "custom",
|
"navigationStyle": "custom",
|
||||||
// #endif
|
// #endif
|
||||||
"navigationBarTitleText": "查看文件"
|
"navigationBarTitleText": "查看文件"
|
||||||
}
|
|
||||||
}
|
}
|
||||||
]
|
},
|
||||||
}
|
{
|
||||||
|
"path": "file-preview/file-preview",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "文件预览"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
],
|
],
|
||||||
"globalStyle": {
|
"globalStyle": {
|
||||||
"navigationBarTextStyle": "black",
|
"navigationBarTextStyle": "black",
|
||||||
|
|||||||
@@ -1,167 +1,159 @@
|
|||||||
<template>
|
<template>
|
||||||
<view :style="themeColor">
|
<view :style="themeColor">
|
||||||
<view :style="{ backgroundColor: bgColor, minHeight: openBottomNav ? 'calc(100vh - 55px)' : '' }"
|
<view :style="{ backgroundColor: bgColor, minHeight: openBottomNav ? 'calc(100vh - 55px)' : '' }"
|
||||||
class="page-img">
|
class="page-img">
|
||||||
<view class="site-info-box"
|
<view class="site-info-box"
|
||||||
v-if="$util.isWeiXin() && followOfficialAccount && followOfficialAccount.isShow && wechatQrcode">
|
v-if="$util.isWeiXin() && followOfficialAccount && followOfficialAccount.isShow && wechatQrcode">
|
||||||
<view class="site-info">
|
<view class="site-info">
|
||||||
<view class="img-box" v-if="siteInfo.logo_square">
|
<view class="img-box" v-if="siteInfo.logo_square">
|
||||||
<image :src="$util.img(siteInfo.logo_square)" mode="aspectFill"></image>
|
<image :src="$util.img(siteInfo.logo_square)" mode="aspectFill"></image>
|
||||||
</view>
|
</view>
|
||||||
<view class="info-box" :style="{ color: '#ffffff' }">
|
<view class="info-box" :style="{ color: '#ffffff' }">
|
||||||
<text class="font-size-base">{{ siteInfo.site_name }}</text>
|
<text class="font-size-base">{{ siteInfo.site_name }}</text>
|
||||||
<text>{{ followOfficialAccount.welcomeMsg }}</text>
|
<text>{{ followOfficialAccount.welcomeMsg }}</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="dite-button" @click="officialAccountsOpen">{{ isEnEnv ? 'Follow Official Account' : '关注公众号'
|
<view class="dite-button" @click="officialAccountsOpen">{{ isEnEnv ? 'Follow Official Account' : '关注公众号'
|
||||||
}}</view>
|
}}</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<diy-index-page v-if="topIndexValue" ref="indexPage" :value="topIndexValue" :bgUrl="safeBgUrl"
|
<!-- <view class="page-header" v-if="diyData.global && diyData.global.navBarSwitch" :style="{ backgroundImage: bgImg }">
|
||||||
:scrollTop="scrollTop" :diyGlobal="diyData.global" class="diy-index-page">
|
<ns-navbar :title-color="textNavColor" :data="diyData.global" :scrollTop="scrollTop" :isBack="false"/>
|
||||||
<template v-slot:components>
|
</view> -->
|
||||||
<diy-group ref="diyGroup" v-if="diyData.value" :diyData="diyData" :scrollTop="scrollTop"
|
|
||||||
:haveTopCategory="true" :followOfficialAccount="followOfficialAccount" />
|
|
||||||
</template>
|
|
||||||
<template v-slot:default>
|
|
||||||
<ns-copyright v-show="isShowCopyRight" />
|
|
||||||
</template>
|
|
||||||
</diy-index-page>
|
|
||||||
|
|
||||||
<view v-else class="bg-index"
|
<diy-index-page v-if="topIndexValue" ref="indexPage" :value="topIndexValue" :bgUrl="bgUrl"
|
||||||
:style="{ backgroundImage: backgroundUrlStyle, paddingTop: paddingTop, marginTop: marginTop }">
|
:scrollTop="scrollTop" :diyGlobal="diyData.global" class="diy-index-page">
|
||||||
<diy-group ref="diyGroup" v-if="diyData.value" :diyData="diyData" :scrollTop="scrollTop"
|
<template v-slot:components>
|
||||||
:followOfficialAccount="followOfficialAccount" />
|
<diy-group ref="diyGroup" v-if="diyData.value" :diyData="diyData" :scrollTop="scrollTop"
|
||||||
<ns-copyright v-show="isShowCopyRight" />
|
:haveTopCategory="true" :followOfficialAccount="followOfficialAccount" />
|
||||||
</view>
|
</template>
|
||||||
|
<template v-slot:default>
|
||||||
|
<ns-copyright v-show="isShowCopyRight" />
|
||||||
|
</template>
|
||||||
|
</diy-index-page>
|
||||||
|
|
||||||
<template v-if="adv.advshow != -1">
|
<view v-else class="bg-index"
|
||||||
<view @touchmove.prevent.stop>
|
:style="{ backgroundImage: backgroundUrl, paddingTop: paddingTop, marginTop: marginTop }">
|
||||||
<uni-popup ref="uniPopupWindow" type="center" class="wap-floating" :maskClick="false">
|
<diy-group ref="diyGroup" v-if="diyData.value" :diyData="diyData" :scrollTop="scrollTop"
|
||||||
<view class="small-bot">
|
:followOfficialAccount="followOfficialAccount" />
|
||||||
<swiper autoplay="true" :circular="true" indicator-active-color="#fff"
|
<ns-copyright v-show="isShowCopyRight" />
|
||||||
indicator-color="rgba(255,255,255,0.6)" :indicator-dots="true" interval="3000">
|
</view>
|
||||||
<swiper-item v-for="(item, index) in adv.list" :key="index">
|
|
||||||
<image class="slide-image" @click="$util.diyRedirectTo(item.link)" height="100%"
|
|
||||||
:src="$util.img(item.imageUrl)" width="100%"></image>
|
|
||||||
</swiper-item>
|
|
||||||
</swiper>
|
|
||||||
<view class="small-bot-close" @click="closePopupWindow">
|
|
||||||
<i class="iconfont icon-round-close" style="color:#fff"></i>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
</uni-popup>
|
|
||||||
</view>
|
|
||||||
</template>
|
|
||||||
|
|
||||||
<!-- 底部tabBar -->
|
<template v-if="adv.advshow != -1">
|
||||||
<view class="page-bottom" v-if="openBottomNav">
|
<view @touchmove.prevent.stop>
|
||||||
<diy-bottom-nav @callback="callback" :name="name" />
|
<uni-popup ref="uniPopupWindow" type="center" class="wap-floating" :maskClick="false">
|
||||||
</view>
|
<view class="small-bot">
|
||||||
|
<!-- <view class="adver-time" wx:if="{{startadv.params.style=='default'&&startadv.params.canclose==1}}">
|
||||||
|
<view bindtap="adverclose">跳过</view>
|
||||||
|
<view class="time">{{clock}}s</view>
|
||||||
|
</view>
|
||||||
|
<view class="adver-time" wx:if="{{startadv.params.style=='default'&&startadv.params.canclose==0}}">
|
||||||
|
<view class="time" style="line-height: 64rpx;">{{clock}}s</view>
|
||||||
|
</view> -->
|
||||||
|
<swiper autoplay="true" :circular="true" indicator-active-color="#fff"
|
||||||
|
indicator-color="rgba(255,255,255,0.6)" :indicator-dots="true" interval="3000">
|
||||||
|
<swiper-item v-for="(item, index) in adv.list" :key="index">
|
||||||
|
<image class="slide-image" @click="$util.diyRedirectTo(item.link)" height="100%"
|
||||||
|
:src="$util.img(item.imageUrl)" width="100%"></image>
|
||||||
|
<!-- <image bindtap="adverclose" class="slide-image" height="100%" src="{{item.imgurl}}" width="100%" wx:if="{{item.click==1}}"></image> -->
|
||||||
|
</swiper-item>
|
||||||
|
</swiper>
|
||||||
|
<view bindtap="adverclose" class="small-bot-close" @click="closePopupWindow">
|
||||||
|
<i class="iconfont icon-round-close" style="color:#fff"></i>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<!-- <view class="image-wrap">
|
||||||
|
<swiper class="swiper" style="width:100%;height: 1200rpx;" :autoplay="true" interval="3000" circular="true" :indicator-dots="true" indicator-color="#000" indicator-active-color="red">
|
||||||
|
<swiper-item class="swiper-item" v-for="(item, index) in adv.list" :key="index" v-if="item.imageUrl" @click="$util.diyRedirectTo(item.link)">
|
||||||
|
<view class="item">
|
||||||
|
<image :src="$util.img(item.imageUrl)" mode="aspectFit" :show-menu-by-longpress="true"/>
|
||||||
|
</view>
|
||||||
|
</swiper-item>
|
||||||
|
</swiper>
|
||||||
|
</view>
|
||||||
|
<text class="iconfont icon-round-close" @click="closePopupWindow"></text> -->
|
||||||
|
</uni-popup>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
<!-- 关注公众号弹窗 -->
|
<!-- 底部tabBar -->
|
||||||
<view @touchmove.prevent class="official-accounts-inner" v-if="wechatQrcode">
|
<view class="page-bottom" v-if="openBottomNav">
|
||||||
<uni-popup ref="officialAccountsPopup" type="center">
|
<diy-bottom-nav @callback="callback" :name="name" />
|
||||||
<view class="official-accounts-wrap">
|
</view>
|
||||||
<image class="content" :src="$util.img(wechatQrcode)" mode="aspectFit"></image>
|
|
||||||
<text class="desc">关注了解更多</text>
|
|
||||||
<text class="close iconfont icon-round-close" @click="officialAccountsClose"></text>
|
|
||||||
</view>
|
|
||||||
</uni-popup>
|
|
||||||
</view>
|
|
||||||
|
|
||||||
<!-- 收藏 -->
|
<!-- 关注公众号弹窗 -->
|
||||||
<uni-popup ref="collectPopupWindow" type="top" class="wap-floating wap-floating-collect">
|
<view @touchmove.prevent class="official-accounts-inner" v-if="wechatQrcode">
|
||||||
<view v-if="showTip" class="collectPopupWindow"
|
<uni-popup ref="officialAccountsPopup" type="center">
|
||||||
:style="{ marginTop: (collectTop + statusBarHeight) * 2 + 'rpx' }">
|
<view class="official-accounts-wrap">
|
||||||
<image :src="$util.img('public/uniapp/index/collect2.png')" mode="aspectFit" />
|
<image class="content" :src="$util.img(wechatQrcode)" mode="aspectFit"></image>
|
||||||
<text @click="closeCollectPopupWindow">我知道了</text>
|
<text class="desc">关注了解更多</text>
|
||||||
</view>
|
<text class="close iconfont icon-round-close" @click="officialAccountsClose"></text>
|
||||||
</uni-popup>
|
</view>
|
||||||
|
</uni-popup>
|
||||||
|
</view>
|
||||||
|
|
||||||
<!-- 选择门店弹出框 -->
|
<!-- 收藏 -->
|
||||||
<view @touchmove.prevent.stop class="choose-store">
|
<uni-popup ref="collectPopupWindow" type="top" class="wap-floating wap-floating-collect">
|
||||||
<uni-popup ref="chooseStorePopup" type="center" :maskClick="false" class="choose-store">
|
<view v-if="showTip" class="collectPopupWindow"
|
||||||
<view class="choose-store-popup">
|
:style="{ marginTop: (collectTop + statusBarHeight) * 2 + 'rpx' }">
|
||||||
<view class="head-wrap" @click="closeChooseStorePopup">请确认门店</view>
|
<image :src="$util.img('public/uniapp/index/collect2.png')" mode="aspectFit" />
|
||||||
<view class="position-wrap">
|
<text @click="closeCollectPopupWindow">我知道了</text>
|
||||||
<text class="iconfont icon-dizhi"></text>
|
</view>
|
||||||
<text class="address">{{ currentPosition }}</text>
|
</uni-popup>
|
||||||
<view class="reposition" @click="reposition"
|
|
||||||
v-if="globalStoreConfig && globalStoreConfig.is_allow_change == 1">
|
<!-- 选择门店弹出框,定位当前位置,展示最近的一个门店 -->
|
||||||
<text class="iconfont icon-dingwei"></text>
|
<view @touchmove.prevent.stop class="choose-store">
|
||||||
<text>重新定位</text>
|
<uni-popup ref="chooseStorePopup" type="center" :maskClick="false" class="choose-store">
|
||||||
</view>
|
<view class="choose-store-popup">
|
||||||
</view>
|
<view class="head-wrap" @click="closeChooseStorePopup">请确认门店</view>
|
||||||
<view class="store-wrap" v-if="nearestStore">
|
<view class="position-wrap">
|
||||||
<text class="tag">当前门店</text>
|
<text class="iconfont icon-dizhi"></text>
|
||||||
<view class="store-name">{{ nearestStore.store_name }}</view>
|
<text class="address">{{ currentPosition }}</text>
|
||||||
<view class="address">{{ nearestStore.show_address }}</view>
|
<view class="reposition" @click="reposition"
|
||||||
<view class="distance" v-if="nearestStore.distance">
|
v-if="globalStoreConfig && globalStoreConfig.is_allow_change == 1">
|
||||||
<text class="iconfont icon-dizhi"></text>
|
<text class="iconfont icon-dingwei"></text>
|
||||||
<text>{{ nearestStore.distance > 1 ? nearestStore.distance + 'km' :
|
<text>重新定位</text>
|
||||||
nearestStore.distance *
|
</view>
|
||||||
1000 +
|
</view>
|
||||||
'm' }}</text>
|
<view class="store-wrap" v-if="nearestStore">
|
||||||
</view>
|
<text class="tag">当前门店</text>
|
||||||
</view>
|
<view class="store-name">{{ nearestStore.store_name }}</view>
|
||||||
<button type="primary" @click="enterStore">确认进入</button>
|
<view class="address">{{ nearestStore.show_address }}</view>
|
||||||
<view class="other-store" @click="chooseOtherStore"
|
<view class="distance" v-if="nearestStore.distance">
|
||||||
v-if="globalStoreConfig && globalStoreConfig.is_allow_change == 1">
|
<text class="iconfont icon-dizhi"></text>
|
||||||
<text>选择其他门店</text>
|
<text>{{ nearestStore.distance > 1 ? nearestStore.distance + 'km' :
|
||||||
<text class="iconfont icon-right"></text>
|
nearestStore.distance *
|
||||||
</view>
|
1000 +
|
||||||
</view>
|
'm' }}</text>
|
||||||
</uni-popup>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<hover-nav :need="true"></hover-nav>
|
<button type="primary" @click="enterStore">确认进入</button>
|
||||||
<privacy-popup ref="privacyPopup"></privacy-popup>
|
<view class="other-store" @click="chooseOtherStore"
|
||||||
<to-top v-if="showTop" @toTop="scrollToTopNative()"></to-top>
|
v-if="globalStoreConfig && globalStoreConfig.is_allow_change == 1">
|
||||||
<ns-login ref="login"></ns-login>
|
<text>选择其他门店</text>
|
||||||
</view>
|
<text class="iconfont icon-right"></text>
|
||||||
</view>
|
</view>
|
||||||
|
</view>
|
||||||
|
</uni-popup>
|
||||||
|
</view>
|
||||||
|
<hover-nav :need="true"></hover-nav>
|
||||||
|
<!-- 隐私协议 -->
|
||||||
|
<privacy-popup ref="privacyPopup"></privacy-popup>
|
||||||
|
<to-top v-if="showTop" @toTop="scrollToTopNative()"></to-top>
|
||||||
|
<ns-login ref="login"></ns-login>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
|
||||||
import diyJs from '@/common/js/diy.js';
|
import diyJs from '@/common/js/diy.js';
|
||||||
import scroll from '@/common/js/scroll-view.js';
|
import scroll from '@/common/js/scroll-view.js';
|
||||||
import indexJs from './public/js/index.js';
|
import indexJs from './public/js/index.js';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
mixins: [diyJs, scroll, indexJs],
|
mixins: [diyJs, scroll, indexJs]
|
||||||
|
|
||||||
data() {
|
|
||||||
return {
|
|
||||||
diyData: { global: {}, value: null },
|
|
||||||
followOfficialAccount: {},
|
|
||||||
wechatQrcode: '',
|
|
||||||
adv: { advshow: -1, list: [] },
|
|
||||||
// ❌ 不要定义 siteInfo、bgUrl,除非你明确知道它们不会冲突
|
|
||||||
};
|
|
||||||
},
|
|
||||||
|
|
||||||
computed: {
|
|
||||||
// ✅ 安全获取 bgUrl(用于 diy-index-page 的 prop)
|
|
||||||
safeBgUrl() {
|
|
||||||
// 优先取全局配置中的 bgUrl,没有则用组件自己的 bgUrl(如有),否则为空
|
|
||||||
return this.diyData?.global?.bgUrl || this.bgUrl || '';
|
|
||||||
},
|
|
||||||
|
|
||||||
// ✅ 安全生成 background-image 样式字符串(用于 fallback 区域)
|
|
||||||
backgroundUrlStyle() {
|
|
||||||
const url = this.diyData?.global?.bgUrl || this.bgUrl || '';
|
|
||||||
return url ? `url(${url})` : 'none';
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
// 如果你的 mixin 中已经处理了数据加载,这里可以留空
|
|
||||||
// 否则建议在 created/mounted 中初始化默认值或请求数据
|
|
||||||
created() {
|
|
||||||
// 可选:如果 mixin 没有初始化 diyData,这里再兜底一次
|
|
||||||
if (!this.diyData) {
|
|
||||||
this.diyData = { global: {}, value: null };
|
|
||||||
}
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@@ -170,86 +162,85 @@ export default {
|
|||||||
@import './public/css/index.scss';
|
@import './public/css/index.scss';
|
||||||
|
|
||||||
.small-bot {
|
.small-bot {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 0;
|
top: 0;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
z-index: 122;
|
z-index: 122;
|
||||||
}
|
}
|
||||||
|
|
||||||
.small-bot swiper {
|
.small-bot swiper {
|
||||||
width: 560rpx;
|
width: 560rpx;
|
||||||
height: 784rpx;
|
height: 784rpx;
|
||||||
margin: 120rpx auto 0;
|
margin: 120rpx auto 0;
|
||||||
border-radius: 10rpx;
|
border-radius: 10rpx;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.small-bot swiper .slide-image {
|
.small-bot swiper .slide-image {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.small-bot-close {
|
.small-bot-close {
|
||||||
width: 66rpx;
|
width: 66rpx;
|
||||||
height: 66rpx;
|
height: 66rpx;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
line-height: 64rpx;
|
line-height: 64rpx;
|
||||||
font-size: 64rpx;
|
font-size: 64rpx;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
margin: 30rpx auto 0;
|
margin: 30rpx auto 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.small-bot-close i {
|
.small-bot-close i {
|
||||||
font-size: 60rpx;
|
font-size: 60rpx;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.swiper /deep/ .uni-swiper-dots-horizontal {
|
.swiper ::v-deep .uni-swiper-dots-horizontal {
|
||||||
left: 40%;
|
left: 40%;
|
||||||
bottom: 40px
|
bottom: 40px
|
||||||
}
|
}
|
||||||
|
|
||||||
.wap-floating>>>.uni-popup__wrapper.uni-custom .uni-popup__wrapper-box {
|
.wap-floating>>>.uni-popup__wrapper.uni-custom .uni-popup__wrapper-box {
|
||||||
background: none !important;
|
background: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.choose-store>>>.goodslist-uni-popup-box {
|
.choose-store>>>.goodslist-uni-popup-box {
|
||||||
width: 80%;
|
width: 80%;
|
||||||
}
|
}
|
||||||
|
|
||||||
/deep/.diy-index-page .uni-popup .uni-popup__wrapper-box {
|
::v-deep .diy-index-page .uni-popup .uni-popup__wrapper-box {
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/deep/ .placeholder {
|
::v-deep .placeholder {
|
||||||
height: 0;
|
height: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/deep/::-webkit-scrollbar {
|
::v-deep ::-webkit-scrollbar {
|
||||||
width: 0;
|
width: 0;
|
||||||
height: 0;
|
height: 0;
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
/deep/ .sku-layer .uni-popup__wrapper.uni-custom .uni-popup__wrapper-box {
|
::v-deep .sku-layer .uni-popup__wrapper.uni-custom .uni-popup__wrapper-box {
|
||||||
max-height: unset !important;
|
max-height: unset !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
/deep/ .mescroll-totop {
|
::v-deep .mescroll-totop {
|
||||||
/* #ifdef H5 */
|
/* #ifdef H5 */
|
||||||
right: 28rpx !important;
|
right: 28rpx !important;
|
||||||
bottom: 200rpx !important;
|
bottom: 200rpx !important;
|
||||||
/* #endif */
|
/* #endif */
|
||||||
/* #ifdef MP-WEIXIN */
|
/* #ifdef MP-WEIXIN */
|
||||||
right: 27rpx !important;
|
right: 27rpx !important;
|
||||||
bottom: 180rpx !important;
|
bottom: 180rpx !important;
|
||||||
/* #endif */
|
/* #endif */
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
4
site.js
4
site.js
@@ -1,4 +1,4 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
baseUrl: "https://xcx6.aigc-quickapp.com/",//修改域名
|
baseUrl: "https://dev.aigc-quickapp.com/",//修改域名
|
||||||
uniacid: 2811,//后台对应uniacid
|
uniacid: 1,//后台对应uniacid
|
||||||
};
|
};
|
||||||
@@ -65,6 +65,7 @@ const store = new Vuex.Store({
|
|||||||
bottomNavHidden: false, // 底部导航是否隐藏,true:隐藏,false:显示
|
bottomNavHidden: false, // 底部导航是否隐藏,true:隐藏,false:显示
|
||||||
aiUnreadCount: 10, // AI未读消息数量
|
aiUnreadCount: 10, // AI未读消息数量
|
||||||
globalAIKefuConfig: null, // AI客服配置
|
globalAIKefuConfig: null, // AI客服配置
|
||||||
|
customerServiceType: 'ai',
|
||||||
globalStoreConfig: null, // 门店配置
|
globalStoreConfig: null, // 门店配置
|
||||||
globalStoreInfo: null, // 门店信息
|
globalStoreInfo: null, // 门店信息
|
||||||
defaultStoreInfo: null, // 默认门店
|
defaultStoreInfo: null, // 默认门店
|
||||||
@@ -159,6 +160,9 @@ const store = new Vuex.Store({
|
|||||||
state.globalAIKefuConfig = value;
|
state.globalAIKefuConfig = value;
|
||||||
uni.setStorageSync('globalAIKefuConfig', value); // 初始化数据调用
|
uni.setStorageSync('globalAIKefuConfig', value); // 初始化数据调用
|
||||||
},
|
},
|
||||||
|
setCustomerServiceType(state, type) {
|
||||||
|
state.customerServiceType = type;
|
||||||
|
},
|
||||||
setGlobalStoreConfig(state, value) {
|
setGlobalStoreConfig(state, value) {
|
||||||
state.globalStoreConfig = value;
|
state.globalStoreConfig = value;
|
||||||
uni.setStorageSync('globalStoreConfig', value); // 初始化数据调用
|
uni.setStorageSync('globalStoreConfig', value); // 初始化数据调用
|
||||||
|
|||||||
Reference in New Issue
Block a user