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) => { export const aboutUsApi = (data) => {
return request.post('operation/OpurchaseGoodsOffer/offer', 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': case 'prew':
httpApi = 'https://test.shop.lihaink.cn' //预发布环境 httpApi = 'https://test.shop.lihaink.cn' //预发布环境
httpSix = 'https://ceshi-new-wokr.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' wsApi = 'wss://test.shop.lihaink.cn'
break; break;
default: default:
httpApi = "https://crmeb-test.shop.lihaink.cn" // 测试 httpApi = "https://crmeb-test.shop.lihaink.cn" // 测试
httpSix = 'https://ceshi-new-wokr.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 = 'ws://192.168.1.22:8324'
wsApi = 'wss://crmeb-test.shop.lihaink.cn' wsApi = 'wss://crmeb-test.shop.lihaink.cn'
} }

View File

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

View File

@ -93,7 +93,13 @@
"navigationBarTitleText": "账户绑定" "navigationBarTitleText": "账户绑定"
} }
}, },
{
"path": "pages/bindSupplier/index",
"style": {
"enablePullDownRefresh": false,
"navigationBarTitleText": "供应商入驻"
}
},
{ {
"path": "pages/gather/gather", "path": "pages/gather/gather",
"style": { "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 { import {
HTTP_REQUEST_URL_TWO, HTTP_REQUEST_URL_TWO,
HEADER, HEADER,
TOKENNAME
} from '@/config/app'; } from '@/config/app';
import { import {
checkLogin checkLogin
@ -18,14 +18,12 @@ import {
import store from '../store'; import store from '../store';
import pako from '../plugin/pako/pako.es5.min.js' import pako from '../plugin/pako/pako.es5.min.js'
let TOKENNAME = 'Token' // let TOKENNAME = 'Token'
function toLogin() { function toLogin() {
} }
console.log(HTTP_REQUEST_URL_TWO, 'HTTP_REQUEST_URL_TWO')
function decompress(str) { function decompress(str) {
return pako.inflateRaw(base64ToUint8Array(str), { return pako.inflateRaw(base64ToUint8Array(str), {
to: 'string' to: 'string'
@ -93,6 +91,10 @@ function baseRequest(url, method, data, {
header: header, header: header,
data: data || {}, data: data || {},
success: (res) => { success: (res) => {
if (res.data.code == 1) {
reslove(res.data, res);
}
if (res.data && res.data.encode) { if (res.data && res.data.encode) {
try { try {
res.data = JSON.parse(decompress(res.data.data)); res.data = JSON.parse(decompress(res.data.data));