Commit a275ebbb authored by zhengke's avatar zhengke

no message

parent dc967491
......@@ -39,20 +39,28 @@
</view>
</div>
<auth
v-if="showAuth"
@changeuserinfo="reloadUserinfo"
@gbAuth="gbAuth"
></auth>
</div>
</template>
<script>
import auth from "@/components/auth/index";
import search from "@/components/search/index";
import tabbars from "@/components/tabbar/index";
import uniIndexedList from "@/components/uni-indexed-list/uni-indexed-list";
export default {
components: {
auth,
search,
tabbars,
uniIndexedList
},
data() {
return {
showAuth:false,
cat_style:2,
isloading: true,
pageTitle: "选择品牌",
......@@ -162,7 +170,8 @@
}, {
letter: '#',
data: []
}]
}],
u:{}
};
},
watch: {
......@@ -219,7 +228,19 @@
if(option.Id){
this.classObj.Id = option.Id
}
this.getBrand()
this.u = uni.getStorageSync("mall_UserInfo");
if (!this.u) {
this.u = {
nickName: "未登录",
avatarUrl: "",
};
this.isloading = false
this.showAuth = true;
} else {
this.getBrand()
}
},
mounted() {
this.contentHeightB = this.$utils.calcContentHeight(-40)+'px';
......@@ -243,6 +264,15 @@
this.marginStyle=`${this.styleStr.top??0}px ${this.styleStr.right??0}px ${this.styleStr.bottom??0}px ${this.styleStr.left??0}px `
},
methods: {
reloadUserinfo() {
this.u = uni.getStorageSync("mall_UserInfo");
// this.showAuth=false;
this.getBrand()
},
//关闭登录窗口
gbAuth() {
uni.navigateBack();
},
// 我要估价
bindClick(e){
uni.navigateTo({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment