From 805b194fe8e8401354e968d96a3b385eb7de0a9e Mon Sep 17 00:00:00 2001 From: jia <1451658316@qq.com> Date: Wed, 27 Sep 2023 12:10:39 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=BB=E8=BE=91=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/community.js | 6 ++++-- api/store.js | 10 +++++----- config/app.js | 4 ++-- pages/chat/customer_list/index.vue | 30 ++++++++++++++++++++++-------- pages/index/index.vue | 8 ++------ pages/store/home/index.vue | 16 +++++----------- 6 files changed, 40 insertions(+), 34 deletions(-) diff --git a/api/community.js b/api/community.js index fe9ec77..23d5d09 100644 --- a/api/community.js +++ b/api/community.js @@ -7,7 +7,7 @@ // +---------------------------------------------------------------------- // | Author: CRMEB Team // +---------------------------------------------------------------------- -import request from "@/utils/request.js"; +import request from "@/utils/requesta.js"; /** 获取话题分类*/ export function getTopicList() { @@ -83,7 +83,9 @@ export function videoList(data) { } /**自己的视频列表*/ export function deoList(id) { - return request.get(`community/show/${id}`); + return request.get(`community/show/${id}`, { + noAuth: true + }); } export function myVideoList(id,data) { diff --git a/api/store.js b/api/store.js index 3659801..ed9b774 100644 --- a/api/store.js +++ b/api/store.js @@ -1,4 +1,5 @@ import request from "@/utils/request.js"; +import requestb from "@/utils/requestb.js"; /** * 扫码查询商品 @@ -578,8 +579,7 @@ export function vicinityStoreApi(data) { 商家入驻 -- 获取商户入驻申请协议内容 */ export function agreeiness(data) { - return request.get(`business/agree`, data, { noAuth: true }); -} - - - + return request.get(`business/agree`, data, { + noAuth: true + }); +} \ No newline at end of file diff --git a/config/app.js b/config/app.js index 346d3c5..2182f5b 100644 --- a/config/app.js +++ b/config/app.js @@ -9,8 +9,8 @@ let httpApiThree let httpApiFour // 在打包之前请检查当前环境是否正确 -// const env = 'dev'; // 开发 -const env = 'prod'; // 生产 +const env = 'dev'; // 开发 +// const env = 'prod'; // 生产 // const env = 'prew'; // 预上线 switch (env) { diff --git a/pages/chat/customer_list/index.vue b/pages/chat/customer_list/index.vue index da48440..517c85c 100644 --- a/pages/chat/customer_list/index.vue +++ b/pages/chat/customer_list/index.vue @@ -62,6 +62,9 @@ serviceList, serviceUserList } from "@/api/user"; + import { + getUserInfo + } from '@/api/user.js'; import { mapGetters } from "vuex"; export default { name: "CustomerList", @@ -88,13 +91,9 @@ computed: mapGetters(['isLogin','viewColor']), onLoad(optios) { this.type = optios.type; - this.mer_id = optios.mer_id; - if(this.isLogin){ - this.getList(this.mer_id) - } else { - this.isAuto = true; - this.isShowAuth = true - } + + + this.getindex() }, onShow(option) { if(this.isLogin){ @@ -119,6 +118,21 @@ this.clear = true; }, methods: { + //获取商户信息 + getindex(){ + getUserInfo().then(res => { + + this.mer_id = res.data.service.mer_id; + if(this.isLogin){ + this.getList(this.mer_id) + } else { + this.isAuto = true; + this.isShowAuth = true + } + // this.getList(this.mer_id) + // this.getList(res.data.service.mer_id, true); + }); + }, onLoadFun() { this.isShowAuth = false; this.getList(this.mer_id); @@ -217,7 +231,7 @@ }, }; -