mirror of
https://gitee.com/beijing_hongye_huicheng/lilishop-uniapp.git
synced 2025-12-17 16:05:53 +08:00
修改楼层装修中商品装修出现的默认不显示bug
This commit is contained in:
@@ -33,12 +33,22 @@ export default {
|
|||||||
return {
|
return {
|
||||||
selected: {
|
selected: {
|
||||||
index: 0,
|
index: 0,
|
||||||
val: "精选",
|
val: "",
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
props: ["res"],
|
props: ["res"],
|
||||||
mounted() {},
|
watch: {
|
||||||
|
res: {
|
||||||
|
handler(val) {
|
||||||
|
// 监听父级的值 如果有值将值赋给selected
|
||||||
|
if (val) {
|
||||||
|
this.selected.val = this.res.list[0].listWay[0].type;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
immediate: true,
|
||||||
|
},
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
handleClick(item) {
|
handleClick(item) {
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
|
|||||||
Reference in New Issue
Block a user