|
|
@@ -135,6 +135,7 @@ import { list } from "@/mixins";
|
|
|
import { mapGetters } from "vuex";
|
|
|
import NotLogin from "@/components/not-login";
|
|
|
import { getShopInfo } from "@/utils/auth";
|
|
|
+import { shopAll } from '@/api/common'
|
|
|
export default {
|
|
|
name: "me",
|
|
|
components: {
|
|
|
@@ -176,6 +177,17 @@ export default {
|
|
|
},
|
|
|
showAllShop () {
|
|
|
this.$refs.shopSelectComponent.dropdownShow = true;
|
|
|
+
|
|
|
+ this.$refs.shopSelectComponent.shopList = []
|
|
|
+ shopAll().then(res=>{
|
|
|
+ if(res.code == 1){
|
|
|
+ if (!this.$util.isEmpty(res.data)){
|
|
|
+ res.data.forEach((i) => {
|
|
|
+ this.$refs.shopSelectComponent.shopList.push({id:i.id,name:i.shopName})
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
},
|
|
|
async init () {
|
|
|
const { data } = await mainMy();
|