```
chore(brand): 统一将品牌名从雄戈小酒更改为橙虎小酒 - 更新alisms插件配置中的签名值 - 修改shopro插件中所有SQL脚本的品牌名称引用 - 更新商城配置、商品分类、演示数据中的品牌名称 - 替换后台登录页面的品牌标识 - 更新汇付分账配置中的媒介名称 - 修改登录预览生成脚本中的品牌显示 ```
这个提交包含在:
@@ -85,7 +85,6 @@ const TOOL_NAME_ALIAS = {
|
||||
|
||||
const EXTRA_ICON_MAP = {
|
||||
'在线客服': 'uicon-server-man',
|
||||
'开启直播': 'uicon-play-circle',
|
||||
'我的预约': 'uicon-calendar'
|
||||
};
|
||||
|
||||
@@ -122,7 +121,7 @@ export default {
|
||||
|
||||
Object.keys(apiMap).forEach(name => {
|
||||
if (catalogNames.includes(name)) return;
|
||||
if (name === '开启直播' && this.userInfo?.is_live != 1) return;
|
||||
if (name === '开启直播') return;
|
||||
const remote = apiMap[name];
|
||||
merged.push({
|
||||
name,
|
||||
@@ -135,7 +134,7 @@ export default {
|
||||
|
||||
return merged.filter(item => {
|
||||
if (isHiddenTool(item)) return false;
|
||||
return item.name !== '开启直播' || this.userInfo?.is_live == 1;
|
||||
return item.name !== '开启直播';
|
||||
});
|
||||
}
|
||||
},
|
||||
@@ -155,9 +154,6 @@ export default {
|
||||
if (data.name === '我的预约' && !data.path) {
|
||||
data.path = '/pages/user/rob-order';
|
||||
}
|
||||
if (data.name === '开启直播' && !data.path) {
|
||||
data.path = '/pages/user/live';
|
||||
}
|
||||
if (!data.path) {
|
||||
uni.showToast({ title: '功能暂未开放', icon: 'none' });
|
||||
return;
|
||||
|
||||
@@ -1,108 +0,0 @@
|
||||
<template>
|
||||
<view class="live-el u-m-p-20 u-m-b-10" v-if="showLive">
|
||||
<view class="head">
|
||||
<text class="head-title">{{ detail.name }}</text>
|
||||
<view class="head-more u-flex u-col-center" @tap="$Router.push('/pages/app/live/list')">
|
||||
<text class="u-m-r-10 more-text">更多直播</text>
|
||||
<text class="iconfont icon-youjiantou-tianchong more-icon"></text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 大图 -->
|
||||
<view v-if="liveType == 1" v-for="live in liveList" :key="live.id"><shopro-live-card :type="1" :detail="live"></shopro-live-card></view>
|
||||
|
||||
<!-- 小图 -->
|
||||
<view class="content-two" v-if="liveType == 2">
|
||||
<view class="content-two__item" v-for="live in liveList" :key="live.id">
|
||||
<shopro-live-card :type="2" :detail="live" :wh="345">
|
||||
<block slot="liveGoods"><text></text></block>
|
||||
</shopro-live-card>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
/**
|
||||
* 自定义之直播卡片
|
||||
* @property {Object} detail - 直播信息
|
||||
*/
|
||||
export default {
|
||||
components: {},
|
||||
data() {
|
||||
return {
|
||||
liveList: [],
|
||||
showLive: this.detail.ids,
|
||||
liveType: this.detail.style
|
||||
};
|
||||
},
|
||||
props: {
|
||||
detail: {}
|
||||
},
|
||||
created() {
|
||||
this.showLive && this.getLiveList();
|
||||
},
|
||||
computed: {},
|
||||
methods: {
|
||||
// 直播列表
|
||||
getLiveList() {
|
||||
let that = this;
|
||||
that.$http('common.live', {
|
||||
type: 'all',
|
||||
ids: that.detail.ids
|
||||
}).then(res => {
|
||||
if (res.code === 1) {
|
||||
that.liveList = res.data;
|
||||
}
|
||||
});
|
||||
},
|
||||
goRoom(live) {
|
||||
wx.navigateTo({
|
||||
url: `plugin-private://wx2b03c6e691cd7370/pages/live-player-plugin?room_id=${live.room_id}`
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.live-el {
|
||||
background: #fff;
|
||||
padding: 30rpx 20rpx;
|
||||
.head {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
&-title {
|
||||
font-size: 32rpx;
|
||||
font-weight: bold;
|
||||
color: rgba(51, 51, 51, 1);
|
||||
}
|
||||
&-more {
|
||||
.more-text {
|
||||
font-size: 22rpx;
|
||||
font-weight: 500;
|
||||
color: #333333;
|
||||
}
|
||||
.more-icon {
|
||||
font-size: 24rpx;
|
||||
color: #333333;
|
||||
}
|
||||
}
|
||||
}
|
||||
// 双图直播
|
||||
.content-two {
|
||||
width: 710rpx;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
&__item {
|
||||
margin-right: 20rpx;
|
||||
margin-top: 20rpx;
|
||||
width: 345rpx;
|
||||
&:nth-child(2n) {
|
||||
margin-right: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -31,9 +31,6 @@
|
||||
<sh-seckill v-if="item.type === 'seckill'" :detail="item.content"></sh-seckill>
|
||||
<sh-groupon v-if="false && item.type === 'groupon'" :detail="item.content"></sh-groupon>
|
||||
<sh-richtext v-if="item.type === 'rich-text'" :richId="item.content.id"></sh-richtext>
|
||||
<!-- #ifdef MP-WEIXIN -->
|
||||
<sh-live v-if="item.type === 'live' && HAS_LIVE" :detail="item.content"></sh-live>
|
||||
<!-- #endif -->
|
||||
</block>
|
||||
</view>
|
||||
<!-- 1+3 业务专区 -->
|
||||
@@ -89,13 +86,6 @@
|
||||
import ShoproProtocol from '@/components/shopro-protocol/shopro-protocol.vue'
|
||||
import checkVersion from '@/pages/lq-upgrade/checkVersion.js'
|
||||
|
||||
// #ifdef MP-WEIXIN
|
||||
import {
|
||||
HAS_LIVE
|
||||
} from '@/env';
|
||||
import shLive from './components/sh-live.vue';
|
||||
// #endif
|
||||
|
||||
import {
|
||||
mapMutations,
|
||||
mapActions,
|
||||
@@ -119,16 +109,10 @@
|
||||
privacyModal,
|
||||
homeHead,
|
||||
homeZoneGrid,
|
||||
ShoproProtocol,
|
||||
// #ifdef MP-WEIXIN
|
||||
shLive
|
||||
// #endif
|
||||
ShoproProtocol
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
// #ifdef MP-WEIXIN
|
||||
HAS_LIVE: HAS_LIVE,
|
||||
// #endif
|
||||
isRefresh: true,
|
||||
|
||||
enable: false, //是否开启吸顶。
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
<view class="brand-block">
|
||||
|
||||
<text class="brand-title u-ellipsis-1">{{ navTitle || '雄戈小酒' }}</text>
|
||||
<text class="brand-title u-ellipsis-1">{{ navTitle || '橙虎小酒' }}</text>
|
||||
|
||||
<text class="brand-tagline u-ellipsis-1">臻选酱香 · 品质生活</text>
|
||||
|
||||
@@ -172,7 +172,7 @@ export default {
|
||||
|
||||
type: String,
|
||||
|
||||
default: '雄戈小酒'
|
||||
default: '橙虎小酒'
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
<sh-cell v-if="item.type === 'nav-list'" :list="item.content.list"></sh-cell>
|
||||
<!-- 九宫格列表 -->
|
||||
<view class="" style="width: 100%;padding-left: 20rpx;padding-right: 20rpx;box-sizing: border-box;">
|
||||
<sh-grid v-if="item.type === 'grid-list'" :isLive="userData.is_live" :list="item.content.list"></sh-grid>
|
||||
<sh-grid v-if="item.type === 'grid-list'" :list="item.content.list"></sh-grid>
|
||||
</view>
|
||||
<!-- 钱包 -->
|
||||
<view class="" style="width: 100%;padding-left: 20rpx;padding-right: 20rpx;box-sizing: border-box;">
|
||||
|
||||
@@ -49,10 +49,6 @@
|
||||
<sh-wallet v-if="item.type === 'wallet-card'"></sh-wallet>
|
||||
<!-- 订单卡片 -->
|
||||
<sh-order-card v-if="item.type === 'order-card'"></sh-order-card>
|
||||
<!-- 直播 -->
|
||||
<!-- #ifdef MP-WEIXIN -->
|
||||
<sh-live v-if="item.type === 'live' && HAS_LIVE" :detail="item.content"></sh-live>
|
||||
<!-- #endif -->
|
||||
</block>
|
||||
</view>
|
||||
<!-- 分类选项卡 -->
|
||||
@@ -102,13 +98,6 @@
|
||||
} from 'vuex';
|
||||
import { filterHiddenTools } from '@/shopro/utils/hidden-tools';
|
||||
|
||||
// #ifdef MP-WEIXIN
|
||||
import {
|
||||
HAS_LIVE
|
||||
} from '@/env';
|
||||
import shLive from './components/sh-live.vue';
|
||||
// #endif
|
||||
|
||||
// #ifdef H5
|
||||
let listenMove = document.body; //禁止手机h5下拉刷新带动整个页面。
|
||||
let handle = function(e) {
|
||||
@@ -134,17 +123,11 @@
|
||||
shSearch,
|
||||
shCategoryTabs,
|
||||
shoproLoading,
|
||||
shPicAds,
|
||||
// #ifdef MP-WEIXIN
|
||||
shLive
|
||||
// #endif
|
||||
shPicAds
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
pageData: false,
|
||||
// #ifdef MP-WEIXIN
|
||||
HAS_LIVE: HAS_LIVE,
|
||||
// #endif
|
||||
enable: false, //是否开启吸顶。
|
||||
isScorll: false,
|
||||
viewTemplate: [], //自定义模板数据
|
||||
|
||||
在新工单中引用
屏蔽一个用户