This commit is contained in:
zmj 2024-05-17 19:19:01 +08:00
parent 07016fbf15
commit ee738e9f80
6 changed files with 1394 additions and 10 deletions

View File

@ -34,4 +34,13 @@ export const OpurchaseGoodsOfferApi = (data) => {
export const aboutUsApi = (data) => {
return request.post('operation/OpurchaseGoodsOffer/offer', data);
}
export const applysApi = (data) => {
return request.post('shop/index/apply', data);
}
export const merchatTypeApi = (data) => {
return request.get('shop/index/merchat_type', data);
}

View File

@ -29,13 +29,14 @@ switch (env) {
case 'prew':
httpApi = 'https://test.shop.lihaink.cn' //预发布环境
httpSix = 'https://ceshi-new-wokr.lihaink.cn'
httpTwo = 'https://erp.lihaink.cn'
httpTwo = 'http://192.168.1.22:8546'
wsApi = 'wss://test.shop.lihaink.cn'
break;
default:
httpApi = "https://crmeb-test.shop.lihaink.cn" // 测试
httpSix = 'https://ceshi-new-wokr.lihaink.cn'
httpTwo = 'https://erp.lihaink.cn'
// httpTwo = 'https://erp.lihaink.cn'
httpTwo = 'http://192.168.1.22:8546'
// wsApi = 'ws://192.168.1.22:8324'
wsApi = 'wss://crmeb-test.shop.lihaink.cn'
}

View File

@ -2,8 +2,8 @@
"name": "惠农生活",
"appid": "__UNI__3A527D1",
"description": "",
"versionName": "2.0.53",
"versionCode": 2053,
"versionName": "2.0.55",
"versionCode": 2055,
"transformPx": false,
/* 5+App */
"app-plus": {
@ -350,4 +350,4 @@
}
}
}
}
}

View File

@ -93,7 +93,13 @@
"navigationBarTitleText": "账户绑定"
}
},
{
"path": "pages/bindSupplier/index",
"style": {
"enablePullDownRefresh": false,
"navigationBarTitleText": "供应商入驻"
}
},
{
"path": "pages/gather/gather",
"style": {

1366
pages/bindSupplier/index.vue Normal file

File diff suppressed because it is too large Load Diff

View File

@ -10,7 +10,7 @@
import {
HTTP_REQUEST_URL_TWO,
HEADER,
TOKENNAME
} from '@/config/app';
import {
checkLogin
@ -18,14 +18,12 @@ import {
import store from '../store';
import pako from '../plugin/pako/pako.es5.min.js'
let TOKENNAME = 'Token'
// let TOKENNAME = 'Token'
function toLogin() {
}
console.log(HTTP_REQUEST_URL_TWO, 'HTTP_REQUEST_URL_TWO')
function decompress(str) {
return pako.inflateRaw(base64ToUint8Array(str), {
to: 'string'
@ -93,6 +91,10 @@ function baseRequest(url, method, data, {
header: header,
data: data || {},
success: (res) => {
if (res.data.code == 1) {
reslove(res.data, res);
}
if (res.data && res.data.encode) {
try {
res.data = JSON.parse(decompress(res.data.data));