修正网页版上部分组件无法识别的问题

This commit is contained in:
zhl 2021-12-16 14:26:11 +08:00
parent a33be949e9
commit db6cb7f7bd
3 changed files with 8 additions and 2 deletions

View File

@ -1,4 +1,4 @@
const DATA_BASE = 'http://154.8.214.202:8030'
const DATA_BASE = 'https://sps.kingsome.cn'
export const searchGames = (params: any) => {
let data = {skip: 0, limit: 10}

View File

@ -49,6 +49,7 @@
<script lang="ts">
import { Component, Vue, Watch } from 'vue-property-decorator'
import { IGameInfo } from '@/modules/gameinfo'
import {uniIcons, uniCard, uniTag} from '@dcloudio/uni-ui'
declare module 'vue/types/vue' {
interface Vue {
@ -59,6 +60,11 @@ declare module 'vue/types/vue' {
@Component({
name: 'BegImgCell',
props: ['gData'],
components:{
uniIcons,
uniCard,
uniTag
}
})
export default class extends Vue{
private collect = false

View File

@ -21,7 +21,7 @@
<view class="price-list" v-if="priceList.length > 0">
<view class="price-title">低价排名</view>
<uni-list>
<uni-list-item v-for="item in priceList" :key="item.gameId" >
<uni-list-item v-for="item in priceList" :key="item.id" >
<price-cell :data="item"></price-cell>
</uni-list-item>
<uni-list-item>