generated from chenhao/template-h5
数据字典改按需请求、商城爆款改茶品飘香轮播、分类页支持 pid 定位
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
7083c8d27e
commit
1f98c287cd
Binary file not shown.
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.1 KiB |
@ -99,7 +99,8 @@ export default {
|
|||||||
this._skipWatch = true
|
this._skipWatch = true
|
||||||
this.loadMore()
|
this.loadMore()
|
||||||
this.$emit('refresh', this.list)
|
this.$emit('refresh', this.list)
|
||||||
this._skipWatch = false
|
// 等 params 的 deep watcher 排队回调跑完再解锁,避免同一轮 tick 里被再触发一次
|
||||||
|
this.$nextTick(() => { this._skipWatch = false })
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
10
src/main.js
10
src/main.js
@ -68,12 +68,11 @@ window.__currentPath = () => currentPath;
|
|||||||
app.use(router);
|
app.use(router);
|
||||||
|
|
||||||
import pinia from './stores';
|
import pinia from './stores';
|
||||||
import { useDatadicStore, dictCache } from './stores/datadic';
|
import { useDatadicStore } from './stores/datadic';
|
||||||
import { useUserStore } from './stores/user';
|
import { useUserStore } from './stores/user';
|
||||||
app.use(pinia);
|
app.use(pinia);
|
||||||
|
|
||||||
const datadicStore = useDatadicStore()
|
const datadicStore = useDatadicStore()
|
||||||
datadicStore.init()
|
|
||||||
|
|
||||||
const userStore = useUserStore()
|
const userStore = useUserStore()
|
||||||
|
|
||||||
@ -90,8 +89,11 @@ const userStore = useUserStore()
|
|||||||
// });
|
// });
|
||||||
|
|
||||||
app.config.globalProperties.$datadic = {
|
app.config.globalProperties.$datadic = {
|
||||||
get: (code) => dictCache[code] || null,
|
get: (code) => datadicStore.fetch(code),
|
||||||
getContent: (code) => dictCache[code] ? dictCache[code].contents : '',
|
getContent: async (code) => {
|
||||||
|
const item = await datadicStore.fetch(code)
|
||||||
|
return item ? item.contents : ''
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
app.config.globalProperties.$userInfo = userStore.getUserInfo;
|
app.config.globalProperties.$userInfo = userStore.getUserInfo;
|
||||||
|
|||||||
@ -1,52 +1,16 @@
|
|||||||
import { defineStore } from 'pinia'
|
import { defineStore } from 'pinia'
|
||||||
import { get } from '@/api/http'
|
import { get } from '@/api/http'
|
||||||
|
|
||||||
export let dictCache = {}
|
// 按需请求:调用时才拉,不做本地缓存
|
||||||
|
|
||||||
const SESSION_KEY = 'dict_cache'
|
|
||||||
|
|
||||||
export const useDatadicStore = defineStore('datadic', {
|
export const useDatadicStore = defineStore('datadic', {
|
||||||
state: () => ({
|
|
||||||
dicts: {},
|
|
||||||
loaded: false
|
|
||||||
}),
|
|
||||||
getters: {
|
|
||||||
getByCode: (state) => (code) => {
|
|
||||||
return dictCache[code] || null
|
|
||||||
},
|
|
||||||
getContent: (code) => {
|
|
||||||
const item = dictCache[code]
|
|
||||||
return item ? item.contents : ''
|
|
||||||
}
|
|
||||||
},
|
|
||||||
actions: {
|
actions: {
|
||||||
async init() {
|
async fetch(code) {
|
||||||
// 优先从 sessionStorage 读取缓存
|
|
||||||
const cached = sessionStorage.getItem(SESSION_KEY)
|
|
||||||
if (cached) {
|
|
||||||
try {
|
try {
|
||||||
dictCache = JSON.parse(cached)
|
const res = await get(`/v1/client/CDatadicsClient/${code}`)
|
||||||
this.dicts = dictCache
|
return res?.data || null
|
||||||
this.loaded = true
|
|
||||||
return
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
sessionStorage.removeItem(SESSION_KEY)
|
console.error('数据字典加载失败', code, e)
|
||||||
}
|
return null
|
||||||
}
|
|
||||||
if (this.loaded) return
|
|
||||||
try {
|
|
||||||
// 使用持久请求,防止被路由切换时的 abortAll() 取消
|
|
||||||
const res = await get('/v1/client/CDatadicsClient', undefined, undefined, undefined, true)
|
|
||||||
if (res.status === 200 && res.data) {
|
|
||||||
res.data.forEach(item => {
|
|
||||||
dictCache[item.code] = item
|
|
||||||
})
|
|
||||||
this.dicts = dictCache
|
|
||||||
this.loaded = true
|
|
||||||
sessionStorage.setItem(SESSION_KEY, JSON.stringify(dictCache))
|
|
||||||
}
|
|
||||||
} catch (e) {
|
|
||||||
console.error('数据字典加载失败', e)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1134,53 +1134,74 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.mall_page__hot {
|
.mall_page__hot {
|
||||||
background: #fff;
|
|
||||||
border-radius: 2vw;
|
border-radius: 2vw;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
margin-top: 4vw;
|
margin-top: 4vw;
|
||||||
margin-bottom: 4vw;
|
margin-bottom: 4vw;
|
||||||
|
background-image: linear-gradient(0deg,
|
||||||
|
#ffffff 0%,
|
||||||
|
#d5ecd6 100%);
|
||||||
|
border-radius: 2.67vw;
|
||||||
|
|
||||||
.mall_page__hot_header {
|
.mall_page__hot_header {
|
||||||
.box;
|
.box;
|
||||||
.box-align-center;
|
.box-align-center;
|
||||||
height: 10vw;
|
height: 12.53vw;
|
||||||
padding: 0vw 2.8vw;
|
padding: 2.93vw;
|
||||||
background-color: #ffb43d;
|
|
||||||
color: #a86906;
|
color: #2e5d31;
|
||||||
|
|
||||||
img {
|
img {
|
||||||
width: 4.27vw;
|
width: 4.8vw;
|
||||||
}
|
}
|
||||||
|
|
||||||
b {
|
b {
|
||||||
font-size: 4.8vw;
|
font-size: 4.8vw;
|
||||||
color: #ffffff;
|
color: #000000;
|
||||||
margin: 0 3.6vw 0 1.47vw;
|
margin: 0 3.6vw 0 1.47vw;
|
||||||
}
|
}
|
||||||
|
|
||||||
p {
|
p {
|
||||||
color: #a86906;
|
color: #2e5d31;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.van-swipe {
|
||||||
|
width: calc(100% - 5.86vw);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
.mall_page__hot_list {
|
.mall_page__hot_list {
|
||||||
.box;
|
background-color: #ffffff;
|
||||||
// margin-bottom: 3vw;
|
border-radius: 2.67vw;
|
||||||
padding: 4vw 3.33vw;
|
// padding: 4vw 3.73vw;
|
||||||
overflow-x: auto
|
padding: 4vw 0;
|
||||||
|
margin: 0 2.93vw;
|
||||||
|
|
||||||
|
.van-swipe-item {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(3, 1fr);
|
||||||
|
row-gap: 3.2vw;
|
||||||
|
column-gap: 4vw;
|
||||||
|
box-sizing: border-box;
|
||||||
|
padding: 0 3.73vw;
|
||||||
|
}
|
||||||
|
|
||||||
|
.van-swipe__indicators {
|
||||||
|
bottom: 1.6vw;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.mall_page__hot_item {
|
.mall_page__hot_item {
|
||||||
.box;
|
.box;
|
||||||
.box-tb;
|
.box-tb;
|
||||||
margin-right: 2.67vw;
|
.box-align-start;
|
||||||
width: 34.67vw;
|
width: max-content;
|
||||||
|
|
||||||
img {
|
img {
|
||||||
object-fit: contain;
|
object-fit: contain;
|
||||||
width: 34.67vw;
|
width: 24vw;
|
||||||
height: 34.67vw;
|
height: 24vw;
|
||||||
background-color: #e5e5e5;
|
|
||||||
border-radius: 1.33vw;
|
border-radius: 1.33vw;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1188,23 +1209,17 @@
|
|||||||
font-size: 3.2vw;
|
font-size: 3.2vw;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
line-height: 4vw;
|
line-height: 4vw;
|
||||||
|
min-height: 4vw;
|
||||||
|
max-width: 24.27vw;
|
||||||
color: #333333;
|
color: #333333;
|
||||||
min-height: 8vw;
|
.text-hide(1);
|
||||||
.text-hide(2);
|
margin-top: 1.6vw;
|
||||||
margin-top: 2.8vw;
|
|
||||||
}
|
|
||||||
|
|
||||||
.mall_page__hot_price--original {
|
|
||||||
font-size: 3.2vw;
|
|
||||||
text-decoration: line-through;
|
|
||||||
// line-height: 4.8vw;
|
|
||||||
color: #b1b1b1;
|
|
||||||
margin-top: 1.67vw;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.mall_page__hot_price {
|
.mall_page__hot_price {
|
||||||
font-size: 4vw;
|
font-size: 3.47vw;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
line-height: 4.8vw;
|
||||||
color: #ea3e23;
|
color: #ea3e23;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -84,7 +84,7 @@
|
|||||||
<!-- 用户协议 -->
|
<!-- 用户协议 -->
|
||||||
<van-checkbox icon-size="3.73vw" class="login_page__agreement" v-model="checked"
|
<van-checkbox icon-size="3.73vw" class="login_page__agreement" v-model="checked"
|
||||||
checked-color="var(--main-color)">
|
checked-color="var(--main-color)">
|
||||||
选中即代表同意<a @click.stop="showContract = true">《用户协议》</a>和<a @click.stop="showPolicy = true">《隐私政策》</a>
|
选中即代表同意<a @click.stop="openContract">《用户协议》</a>和<a @click.stop="openPolicy">《隐私政策》</a>
|
||||||
</van-checkbox>
|
</van-checkbox>
|
||||||
|
|
||||||
<!-- 底部链接 -->
|
<!-- 底部链接 -->
|
||||||
@ -106,13 +106,13 @@
|
|||||||
<!-- 用户协议弹窗 -->
|
<!-- 用户协议弹窗 -->
|
||||||
<van-action-sheet v-model:show="showContract" safe-area-inset-bottom title="用户协议" closeable
|
<van-action-sheet v-model:show="showContract" safe-area-inset-bottom title="用户协议" closeable
|
||||||
style="min-height: 50%; padding: 0px 10px 10px 10px">
|
style="min-height: 50%; padding: 0px 10px 10px 10px">
|
||||||
<div class="w100 html" v-html="$datadic.getContent('code_yhxy')"></div>
|
<div class="w100 html" v-html="contractHtml"></div>
|
||||||
</van-action-sheet>
|
</van-action-sheet>
|
||||||
|
|
||||||
<!-- 隐私政策弹窗 -->
|
<!-- 隐私政策弹窗 -->
|
||||||
<van-action-sheet v-model:show="showPolicy" safe-area-inset-bottom title="隐私政策" closeable
|
<van-action-sheet v-model:show="showPolicy" safe-area-inset-bottom title="隐私政策" closeable
|
||||||
style="min-height: 50%; padding: 0px 10px 10px 10px">
|
style="min-height: 50%; padding: 0px 10px 10px 10px">
|
||||||
<div class="w100 html" v-html="$datadic.getContent('code_yszc')"></div>
|
<div class="w100 html" v-html="policyHtml"></div>
|
||||||
</van-action-sheet>
|
</van-action-sheet>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -137,6 +137,8 @@ export default {
|
|||||||
showConfirmPassword: false,
|
showConfirmPassword: false,
|
||||||
showContract: false,
|
showContract: false,
|
||||||
showPolicy: false,
|
showPolicy: false,
|
||||||
|
contractHtml: '',
|
||||||
|
policyHtml: '',
|
||||||
loading: false,
|
loading: false,
|
||||||
smsCode: '', // 接口返回的验证码
|
smsCode: '', // 接口返回的验证码
|
||||||
countdown: {
|
countdown: {
|
||||||
@ -147,6 +149,14 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
async openContract() {
|
||||||
|
this.showContract = true
|
||||||
|
this.contractHtml = await this.$datadic.getContent('code_yhxy')
|
||||||
|
},
|
||||||
|
async openPolicy() {
|
||||||
|
this.showPolicy = true
|
||||||
|
this.policyHtml = await this.$datadic.getContent('code_yszc')
|
||||||
|
},
|
||||||
init() {
|
init() {
|
||||||
// 防止刷新重复处理微信 code
|
// 防止刷新重复处理微信 code
|
||||||
if (sessionStorage.getItem('wx_code_processed') === '1') {
|
if (sessionStorage.getItem('wx_code_processed') === '1') {
|
||||||
|
|||||||
@ -186,6 +186,9 @@ export default {
|
|||||||
if (this.$route.query.id) {
|
if (this.$route.query.id) {
|
||||||
this.changeMainById(Number(this.$route.query.id));
|
this.changeMainById(Number(this.$route.query.id));
|
||||||
}
|
}
|
||||||
|
if (this.$route.query.pid) {
|
||||||
|
this.selectByPid(Number(this.$route.query.pid));
|
||||||
|
}
|
||||||
if (this.$route.query.SortType == 2) {
|
if (this.$route.query.SortType == 2) {
|
||||||
this.searchParams.orderby = 'salenumdown';
|
this.searchParams.orderby = 'salenumdown';
|
||||||
}
|
}
|
||||||
@ -263,6 +266,52 @@ export default {
|
|||||||
this.changeMain(item);
|
this.changeMain(item);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
// 根据 pid 定位到对应层级并激活选中态
|
||||||
|
selectByPid(pid) {
|
||||||
|
const third = this.thirdCategories.find(x => x.id === pid);
|
||||||
|
if (third) {
|
||||||
|
const first = this.firstCategories.find(x => x.id === third.rootId);
|
||||||
|
if (first) {
|
||||||
|
this.mainCategory = first.id;
|
||||||
|
this.typeName = first.name;
|
||||||
|
this.selectedSecond = this.secondCategories.filter(x => x.parentId === first.id);
|
||||||
|
}
|
||||||
|
this.selectedThird = this.thirdCategories.filter(x => x.parentId === third.parentId);
|
||||||
|
this.goodsCategoryIndex = this.selectedThird.findIndex(x => x.id === pid) + 1;
|
||||||
|
this.currentThirdId = pid;
|
||||||
|
this.queryParams.pid = pid;
|
||||||
|
this.refreshProductList();
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.secondCategory = third.parentId;
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
const second = this.secondCategories.find(x => x.id === pid);
|
||||||
|
if (second) {
|
||||||
|
const first = this.firstCategories.find(x => x.id === second.parentId);
|
||||||
|
if (first) {
|
||||||
|
this.mainCategory = first.id;
|
||||||
|
this.typeName = first.name;
|
||||||
|
this.selectedSecond = this.secondCategories.filter(x => x.parentId === first.id);
|
||||||
|
}
|
||||||
|
this.selectedThird = this.thirdCategories.filter(x => x.parentId === pid);
|
||||||
|
this.goodsCategoryIndex = 0;
|
||||||
|
this.currentThirdId = '';
|
||||||
|
this.queryParams.pid = pid;
|
||||||
|
this.refreshProductList();
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.secondCategory = pid;
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
const first = this.firstCategories.find(x => x.id === pid);
|
||||||
|
if (first) {
|
||||||
|
this.changeMain(first);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
this.queryParams.pid = pid;
|
||||||
|
this.refreshProductList();
|
||||||
|
},
|
||||||
changeSecond(e) {
|
changeSecond(e) {
|
||||||
if (e) {
|
if (e) {
|
||||||
this.queryParams.pid = e;
|
this.queryParams.pid = e;
|
||||||
|
|||||||
@ -9,8 +9,8 @@
|
|||||||
<div class="mall_page__banner">
|
<div class="mall_page__banner">
|
||||||
<van-swipe :autoplay="3000" indicator-color="white" @change="onSwipeChange">
|
<van-swipe :autoplay="3000" indicator-color="white" @change="onSwipeChange">
|
||||||
<van-swipe-item v-for="item in data.Carousel">
|
<van-swipe-item v-for="item in data.Carousel">
|
||||||
<a @click="item.link ? $openUrl(item.link) : ''"><img :src="$file(item.img) || '/img/img-avatar-default.png'"
|
<a @click="item.link ? $openUrl(item.link) : ''"><img
|
||||||
width="100%"></a>
|
:src="$file(item.img) || '/img/img-avatar-default.png'" width="100%"></a>
|
||||||
</van-swipe-item>
|
</van-swipe-item>
|
||||||
</van-swipe>
|
</van-swipe>
|
||||||
</div>
|
</div>
|
||||||
@ -41,18 +41,33 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="mall_page__hot" v-if="hotData.length > 0">
|
<div class="mall_page__hot">
|
||||||
<div class="mall_page__hot_header">
|
<div class="mall_page__hot_header">
|
||||||
<img src="/img/icon-hot.png" alt="">
|
<img src="/img/icon-hot.png" alt="">
|
||||||
<b>爆款好物</b>
|
<b>茶品飘香</b>
|
||||||
<p>超多会员已购买</p>
|
<p>精选茶叶礼盒</p>
|
||||||
<span class="r" @click="$navigate('Category?SortType=2')">
|
<span class="r" @click="$navigate('Category?pid=1044')">
|
||||||
查看更多
|
查看更多
|
||||||
<van-icon name="arrow" />
|
<van-icon name="arrow" />
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="mall_page__hot_list">
|
<van-swipe class="mall_page__hot_list" indicator-color="white" :autoplay="3000">
|
||||||
|
<van-swipe-item class="contaniar" v-for="(group, gi) in comHotData" :key="gi">
|
||||||
|
<div class="mall_page__hot_item" v-for="list in group" :key="list.id"
|
||||||
|
@click="$navigate('GoodsDetail?id=' + list.id)">
|
||||||
|
<img :src="$file(list.img)" alt="">
|
||||||
|
<span class="mall_page__hot_title">
|
||||||
|
{{ list.name }}
|
||||||
|
</span>
|
||||||
|
<span class="mall_page__hot_price">
|
||||||
|
¥{{ list.saleprice?.toFixed(2) }}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
</van-swipe-item>
|
||||||
|
</van-swipe>
|
||||||
|
|
||||||
|
<!-- <div class="mall_page__hot_list">
|
||||||
<div class="mall_page__hot_item" v-for="list in hotData" @click="$navigate('GoodsDetail?id=' + list.id)">
|
<div class="mall_page__hot_item" v-for="list in hotData" @click="$navigate('GoodsDetail?id=' + list.id)">
|
||||||
<img :src="$file(list.img)" alt="">
|
<img :src="$file(list.img)" alt="">
|
||||||
<span class="mall_page__hot_title">
|
<span class="mall_page__hot_title">
|
||||||
@ -65,7 +80,7 @@
|
|||||||
¥{{ list.saleprice?.toFixed(2) }}
|
¥{{ list.saleprice?.toFixed(2) }}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div> -->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="mall_page__goods">
|
<div class="mall_page__goods">
|
||||||
@ -148,7 +163,7 @@ export default {
|
|||||||
this.data.Carousel = res.data
|
this.data.Carousel = res.data
|
||||||
this.bgcolor = res.data?.[0]?.bgcolor || ''
|
this.bgcolor = res.data?.[0]?.bgcolor || ''
|
||||||
}),
|
}),
|
||||||
this.$get('/v1/client/EProsClient?recommend=true').then(res => {
|
this.$get('/v1/client/EProsClient?pid=1044&pageSize=100').then(res => {
|
||||||
this.hotData = res.data.items || []
|
this.hotData = res.data.items || []
|
||||||
}),
|
}),
|
||||||
this.$get('/v1/client/EProcatesClient/3').then(res => {
|
this.$get('/v1/client/EProcatesClient/3').then(res => {
|
||||||
@ -175,6 +190,13 @@ export default {
|
|||||||
btnStyle() {
|
btnStyle() {
|
||||||
return this.bgcolor ? { background: this.bgcolor } : {}
|
return this.bgcolor ? { background: this.bgcolor } : {}
|
||||||
},
|
},
|
||||||
|
comHotData() {
|
||||||
|
const groups = []
|
||||||
|
for (let i = 0; i < this.hotData.length; i += 9) {
|
||||||
|
groups.push(this.hotData.slice(i, i + 9))
|
||||||
|
}
|
||||||
|
return groups
|
||||||
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
<div class="balance_page__top">
|
<div class="balance_page__top">
|
||||||
<div class="balance_page__line">
|
<div class="balance_page__line">
|
||||||
<b class="balance_page__title">
|
<b class="balance_page__title">
|
||||||
当前余额 <van-icon name="question-o" @click.stop="showTerm = true"></van-icon>
|
当前余额 <van-icon name="question-o" @click.stop="onShowTerm"></van-icon>
|
||||||
</b>
|
</b>
|
||||||
|
|
||||||
<div v-if="!hide" class="balance_page__record_link" @click="$navigate('CashoutRecord')">
|
<div v-if="!hide" class="balance_page__record_link" @click="$navigate('CashoutRecord')">
|
||||||
@ -124,7 +124,7 @@
|
|||||||
</van-popup>
|
</van-popup>
|
||||||
<van-action-sheet v-model:show="showTerm" safe-area-inset-bottom :title="`${this.$route.meta.title}说明`"
|
<van-action-sheet v-model:show="showTerm" safe-area-inset-bottom :title="`${this.$route.meta.title}说明`"
|
||||||
closeable style="min-height: 50%; padding: 0px 10px 10px 10px">
|
closeable style="min-height: 50%; padding: 0px 10px 10px 10px">
|
||||||
<div class="w100 html" v-html="$datadic.getContent('code_yesm')" />
|
<div class="w100 html" v-html="termHtml" />
|
||||||
</van-action-sheet>
|
</van-action-sheet>
|
||||||
|
|
||||||
</BasePage>
|
</BasePage>
|
||||||
@ -158,6 +158,7 @@ export default {
|
|||||||
},
|
},
|
||||||
loading: false,
|
loading: false,
|
||||||
showTerm: false,
|
showTerm: false,
|
||||||
|
termHtml: '',
|
||||||
list: [],
|
list: [],
|
||||||
isVIP: '',
|
isVIP: '',
|
||||||
hide: false,
|
hide: false,
|
||||||
@ -200,8 +201,9 @@ export default {
|
|||||||
this.searchParams.type = e || '';
|
this.searchParams.type = e || '';
|
||||||
// this.$refs.baselist.refresh();
|
// this.$refs.baselist.refresh();
|
||||||
},
|
},
|
||||||
onShowTerm() {
|
async onShowTerm() {
|
||||||
this.showTerm = true;
|
this.showTerm = true;
|
||||||
|
this.termHtml = await this.$datadic.getContent('code_yesm');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user