瀏覽代碼

no message

linwenxin 1 年之前
父節點
當前提交
34a5c0da0f
共有 2 個文件被更改,包括 12 次插入2 次删除
  1. 9 0
      src/api/common.js
  2. 3 2
      src/components/Shortcut/index.vue

+ 9 - 0
src/api/common.js

@@ -9,6 +9,15 @@ export function lbsAmapRegion(params) {
   })
 }
 
+export function commonCompanywechatGet(params) {
+  return request({
+    url: '/common/companywechat/get',
+    method: 'post',
+    params
+  })
+}
+
+
 // 模板下载
 export function commonTemplateDownload(params, name) {
   return getBlob({

+ 3 - 2
src/components/Shortcut/index.vue

@@ -87,7 +87,7 @@ import { mapMutations, mapActions, mapGetters } from 'vuex'
 import vScrollView from 'v-scroll-view'
 // import { notifyMyList, notifyMyRead } from '@/api/notificationCenter/eventAnnouncement'
 import { EventBus } from '@/utils/eventBus'
-import { getDetail } from "@/api/merchant";
+import { commonCompanywechatGet } from "@/api/common";
 export default {
   components: { vScrollView },
   data() {
@@ -125,7 +125,8 @@ export default {
       this_.updateUnreadNotice()
       this_.timeId = setTimeout(dingshiqingqiu, 2000);
     })()
-    getDetail({ adminUserId: this.userInfo.companyWechatId }).then(res => {
+    commonCompanywechatGet({ id: this.userInfo.companyWechatId }).then(res => {
+      console.log(res)
       this.QRcodeList = []
       if (res.data.qrcode1) {
         this.QRcodeList.push({