功能完善
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
import store from '../store/index';
|
||||
export default {
|
||||
// qq 237524947 wx15d4269d3210863d
|
||||
//BASEURI: 'http://localhost:8083/api/',
|
||||
BASEURI: 'http://127.0.0.1:8083/api/',
|
||||
ADMINURI: 'http://127.0.0.1:8085/',
|
||||
ESURI: 'http://127.0.0.1:8081/',
|
||||
BASEURI: 'http://mall.yyundong.com/portalapi/api/',
|
||||
// BASEURI: 'http://www.yyundong.com:8083/api/',
|
||||
ADMINURI: 'http://mall.yyundong.com/adminapi/',
|
||||
ESURI: 'http://www.yyundong.com:8081/',
|
||||
h5Appid: 'wxb4660f37187c0b8e', // h5微信登录的appId 暂时测试用
|
||||
source: 1, //1 weixinApplet 2 h5Source 3 pcSource 4 android 5ios
|
||||
es: {
|
||||
@@ -52,8 +52,8 @@ export default {
|
||||
shopDetail: 'single/store/shopDetail', // 门店详情
|
||||
storeClassList: 'single/store/storeClass/list', // 商户内部分类
|
||||
storeCommentList: 'single/store/storeComment/list', // 商户评论
|
||||
noticeList: 'single/home/notice/list',
|
||||
noticeDetail: 'single/home/notice/detail',
|
||||
noticeList: 'single/home/notice/list',
|
||||
noticeDetail: 'single/home/notice/detail',
|
||||
},
|
||||
member: {
|
||||
applyMember: 'single/user/applyMember', // 会员升级等级
|
||||
@@ -74,9 +74,9 @@ export default {
|
||||
storeDetail1: 'single/store/detail1', // 商户详情 带用户
|
||||
store: 'single/store/home', // 商户主页
|
||||
storeList: 'single/store/store/list', // 商户列表
|
||||
memberTagList: 'single/user/memberTag/list', // 商户列表
|
||||
addStoreComment: 'single/store/addStoreComment', // 商户addStoreComment
|
||||
memberBlanceLogList: 'single/user/memberBlanceLog/list',
|
||||
memberTagList: 'single/user/memberTag/list', // 商户列表
|
||||
addStoreComment: 'single/store/addStoreComment', // 商户addStoreComment
|
||||
memberBlanceLogList: 'single/user/memberBlanceLog/list',
|
||||
},
|
||||
build: {
|
||||
getBuildNoticeByPage: 'single/build/getBuildNoticeByPage', // 所有社区和房间
|
||||
@@ -93,7 +93,7 @@ export default {
|
||||
|
||||
},
|
||||
goods: {
|
||||
tagGoodsList: 'single/pms/tag/goods', // 查询标签商品
|
||||
tagGoodsList: 'single/pms/tag/goods', // 查询标签商品
|
||||
goodsPromoto: 'single/sms/detail', // 单个商品的优惠详情
|
||||
secskillDetail: 'single/pms/secskill/detail', // 查询秒杀商品详情信息
|
||||
groupGoodsDetail: 'single/pms/goodsGroup/detail', // 查询拼团商品详情信息
|
||||
@@ -258,6 +258,7 @@ export default {
|
||||
|
||||
let token = uni.getStorageSync('token') || '';
|
||||
let fullurl = this.BASEURI + endpoint;
|
||||
console.log("fullurl",fullurl);
|
||||
var contentType = 'application/x-www-form-urlencoded';
|
||||
|
||||
data.authorization = token;
|
||||
@@ -272,11 +273,6 @@ export default {
|
||||
// 'authorization1': Authorization || ''
|
||||
},
|
||||
});
|
||||
console.log('fullurl,',fullurl)
|
||||
console.log('data,',data)
|
||||
console.log('token,',token)
|
||||
console.log('error,',error)
|
||||
console.log('res,',res)
|
||||
if (load) {
|
||||
uni.hideLoading();
|
||||
}
|
||||
@@ -311,9 +307,10 @@ export default {
|
||||
console.log(fullurl);
|
||||
console.log(res.data.data);
|
||||
if (res.data.code == 200) {
|
||||
console.log("===>>>");
|
||||
return res.data.data;
|
||||
} else {
|
||||
|
||||
console.log(">>>>>=");
|
||||
if (res.data) {
|
||||
if (!res.data.msg) {
|
||||
res.data.msg = res.data.data;
|
||||
|
||||
Reference in New Issue
Block a user