Commit a3d88967 by 李嘉林

Merge branch 'nativehome_tst' of http://code.mayi888.com/chengmo/mayi-mp-shop into nativehome_tst

parents ea95e1c7 6c752c52
import { requestGET } from "@/utils/request.js";
// 添加商品
export function getWxContact() {
return requestGET(`${process.env.OLSHOP_URL}/shop/get_shop_customer_service_config`);
export function getWxContact({ shopCode }) {
return requestGET(`${process.env.OLSHOP_URL}/shop/get_shop_customer_service_config?shopCode=${shopCode}`);
}
\ No newline at end of file
......@@ -33,6 +33,7 @@
<script>
import { getUserLocation } from "../../utils/wxIndex.js";
import { getWxContact } from "@/api/wxContact.js";
import { getStoreInfo } from "@/utils/mayi";
import pathToNavigation from '@/utils/pathToNavigation'
const app = getApp();
const { log } = app;
......@@ -61,7 +62,8 @@ export default {
});
},
onShow() {
getWxContact().then(res => {
const { offlineShopCode } = getStoreInfo();
getWxContact({ shopCode: offlineShopCode }).then(res => {
if (res.data.code == 200) {
const result = res.data.data
if (result.whetherOpenCustomerChannel == 0) {
......
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