<script>
export default {
data() {
return {
adlist:[],
goods_th:"",
active:0,
rightHeightArr:[],
rightScrollVal:0,
}
},
async onLoad() {
const db = uniCloud.database();
const goodst = db.collection('goods')
.field( 'categoryId,price , title as gtitle , image as gimage' )
.getTemp();
const categ = db.collection('category')
.field('_id,title,image')
.getTemp();
let g = await db.collection(goodst,categ)
.field('categ{image},title,gtitle,gimage,price')
.get();
this.adlist = g.result.data
console.log('adlist',adlist)
},
methods: {
activeChange(index){
this.active=index
this.rightScrollVal = this.rightHeightArr[index]
},
}
}
</script>
0 个回复