Commit a275ebbb authored by zhengke's avatar zhengke

no message

parent dc967491
...@@ -39,20 +39,28 @@ ...@@ -39,20 +39,28 @@
</view> </view>
</div> </div>
<auth
v-if="showAuth"
@changeuserinfo="reloadUserinfo"
@gbAuth="gbAuth"
></auth>
</div> </div>
</template> </template>
<script> <script>
import auth from "@/components/auth/index";
import search from "@/components/search/index"; import search from "@/components/search/index";
import tabbars from "@/components/tabbar/index"; import tabbars from "@/components/tabbar/index";
import uniIndexedList from "@/components/uni-indexed-list/uni-indexed-list"; import uniIndexedList from "@/components/uni-indexed-list/uni-indexed-list";
export default { export default {
components: { components: {
auth,
search, search,
tabbars, tabbars,
uniIndexedList uniIndexedList
}, },
data() { data() {
return { return {
showAuth:false,
cat_style:2, cat_style:2,
isloading: true, isloading: true,
pageTitle: "选择品牌", pageTitle: "选择品牌",
...@@ -162,7 +170,8 @@ ...@@ -162,7 +170,8 @@
}, { }, {
letter: '#', letter: '#',
data: [] data: []
}] }],
u:{}
}; };
}, },
watch: { watch: {
...@@ -219,7 +228,19 @@ ...@@ -219,7 +228,19 @@
if(option.Id){ if(option.Id){
this.classObj.Id = 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() { mounted() {
this.contentHeightB = this.$utils.calcContentHeight(-40)+'px'; this.contentHeightB = this.$utils.calcContentHeight(-40)+'px';
...@@ -243,6 +264,15 @@ ...@@ -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 ` this.marginStyle=`${this.styleStr.top??0}px ${this.styleStr.right??0}px ${this.styleStr.bottom??0}px ${this.styleStr.left??0}px `
}, },
methods: { methods: {
reloadUserinfo() {
this.u = uni.getStorageSync("mall_UserInfo");
// this.showAuth=false;
this.getBrand()
},
//关闭登录窗口
gbAuth() {
uni.navigateBack();
},
// 我要估价 // 我要估价
bindClick(e){ bindClick(e){
uni.navigateTo({ 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