提交 f55f2ff8 authored 作者: 彭涛's avatar 彭涛

bug修复

上级 57badcbb
...@@ -73,7 +73,7 @@ ...@@ -73,7 +73,7 @@
"provider" : "wxaf8f505686ddf66a" "provider" : "wxaf8f505686ddf66a"
} }
}, },
"appid" : "wx45bb68de16ddddb7", "appid" : "wxb21370ac25ee51b0",
"setting" : { "setting" : {
"urlCheck" : true, "urlCheck" : true,
"es6" : true, "es6" : true,
......
...@@ -38,9 +38,9 @@ ...@@ -38,9 +38,9 @@
<view :class="{'border_bottom':tabIndex == 2}" @click="tabClick(2)">委托拼团的企业</view> <view :class="{'border_bottom':tabIndex == 2}" @click="tabClick(2)">委托拼团的企业</view>
</view> </view>
<!-- 暂无企业start --> <!-- 暂无企业start -->
<view class="fail_dialog_box" v-if="concludeList.length==0&&(tabIndex==1||tabIndex==3)"> <view class="fail_dialog_hint" v-if="concludeList.length==0&&(tabIndex==1||tabIndex==3)">
<view class="fail_dialog_box_hint">暂无企业,请去绑定企业</view> <view class="fail_dialog_hint_text">暂无企业,请去绑定企业</view>
<view class="fail_dialog_box_btn"> <view class="fail_dialog_hint_btn">
<!-- <view class="btn_cnacle" @click="linkBack">取消</view> --> <!-- <view class="btn_cnacle" @click="linkBack">取消</view> -->
<view @click="linkToBind">去绑定</view> <view @click="linkToBind">去绑定</view>
</view> </view>
...@@ -418,6 +418,11 @@ ...@@ -418,6 +418,11 @@
that.successDialog = true that.successDialog = true
uni.removeStorageSync('concludeList') uni.removeStorageSync('concludeList')
uni.removeStorageSync('entrustList') uni.removeStorageSync('entrustList')
} else {
uni.showToast({
title: res.msg,
icon: 'none'
})
} }
}) })
} }
...@@ -431,11 +436,11 @@ ...@@ -431,11 +436,11 @@
}).then(res => { }).then(res => {
if (res.code == 500) { if (res.code == 500) {
// 仅为测试所用(返回具体错误信息) // 仅为测试所用(返回具体错误信息)
uni.showToast({ // uni.showToast({
title: res.msg, // title: res.msg,
icon: 'none' // icon: 'none'
}) // })
// this.failDialog = true this.failDialog = true
let text = res.msg let text = res.msg
if (text.indexOf('I') > -1 || text.indexOf('a') > -1) { if (text.indexOf('I') > -1 || text.indexOf('a') > -1) {
this.failDialogBtnShow = true this.failDialogBtnShow = true
...@@ -447,13 +452,10 @@ ...@@ -447,13 +452,10 @@
} else if (text.indexOf('b') > -1) { } else if (text.indexOf('b') > -1) {
this.hintText = '该企业已参与独立询价套餐,不能参与拼团' this.hintText = '该企业已参与独立询价套餐,不能参与拼团'
this.btnText = '我知道了' this.btnText = '我知道了'
} } else if (text.indexOf('X') > -1) {
// else if (text.indexOf('X') > -1) { this.hintText = '该企业已参与过同年度其他拼团套餐,不能参与该套餐'
// this.failDialogBtnShow = true this.btnText = '我知道了'
// this.hintText = '该企业已参与过同年度其他拼团套餐,是否退出已参与的拼团套餐并替换成该拼团套餐' } else if (text.indexOf('J') > -1) {
// this.btnText = '替换成该套餐'
// }
else if (text.indexOf('J') > -1) {
this.hintText = '该企业的用电性质不符合' this.hintText = '该企业的用电性质不符合'
this.btnText = '我知道了' this.btnText = '我知道了'
} else if (text.indexOf('f') > -1) { } else if (text.indexOf('f') > -1) {
...@@ -762,6 +764,46 @@ ...@@ -762,6 +764,46 @@
border-radius: 16rpx; border-radius: 16rpx;
} }
// 暂无企业
.fail_dialog_hint {
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
width: 560rpx;
height: 300rpx;
background-color: #fff;
border-radius: 16rpx;
.fail_dialog_hint_text {
display: flex;
align-items: center;
justify-content: center;
padding: 40rpx 60rpx;
height: 200rpx;
font-size: 28rpx;
color: #666;
}
.fail_dialog_hint_btn {
display: flex;
align-items: center;
justify-content: space-around;
height: auto;
border-top: 1rpx solid #f4f5f7;
view {
flex: 1;
height: 100rpx;
line-height: 100rpx;
text-align: center;
font-size: 34rpx;
font-weight: 500;
color: #1989fa;
}
}
}
// 弹窗 // 弹窗
.fail_dialog { .fail_dialog {
position: absolute; position: absolute;
......
const erp = erp || {}; //wxb21370ac25ee51b0,//wx45bb68de16ddddb7 const erp = erp || {}; //wxb21370ac25ee51b0,//wx45bb68de16ddddb7
// const DOMAIN = 'http://192.168.1.107:9099/'; // 峰煜 // const DOMAIN = 'http://192.168.1.107:9099/'; // 峰煜
const DOMAIN = 'https://dev.diaosaas.com/diaoyun/' //测试 // const DOMAIN = 'https://dev.diaosaas.com/diaoyun/' //测试
// const DOMAIN = 'http://192.168.1.178:9099/' // 国禄 // const DOMAIN = 'http://192.168.1.178:9099/' // 国禄
// const DOMAIN = 'http://192.168.1.197:9099/' // 志就 // const DOMAIN = 'http://192.168.1.197:9099/' // 志就
// const DOMAIN = 'https://fire.huoshitou.net/diaoyun/' // 正式 const DOMAIN = 'https://fire.huoshitou.net/diaoyun/' // 正式
const HOST = DOMAIN + 'api/' const HOST = DOMAIN + 'api/'
erp.login = HOST + 'loginAndRegister/login' // 登录 erp.login = HOST + 'loginAndRegister/login' // 登录
......
...@@ -16506,10 +16506,10 @@ Object.defineProperty(exports, "__esModule", { value: true });exports.default = ...@@ -16506,10 +16506,10 @@ Object.defineProperty(exports, "__esModule", { value: true });exports.default =
"use strict"; "use strict";
Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var erp = erp || {}; //wxb21370ac25ee51b0,//wx45bb68de16ddddb7 Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;var erp = erp || {}; //wxb21370ac25ee51b0,//wx45bb68de16ddddb7
// const DOMAIN = 'http://192.168.1.107:9099/'; // 峰煜 // const DOMAIN = 'http://192.168.1.107:9099/'; // 峰煜
var DOMAIN = 'https://dev.diaosaas.com/diaoyun/'; //测试 // const DOMAIN = 'https://dev.diaosaas.com/diaoyun/' //测试
// const DOMAIN = 'http://192.168.1.178:9099/' // 国禄 // const DOMAIN = 'http://192.168.1.178:9099/' // 国禄
// const DOMAIN = 'http://192.168.1.197:9099/' // 志就 // const DOMAIN = 'http://192.168.1.197:9099/' // 志就
// const DOMAIN = 'https://fire.huoshitou.net/diaoyun/' // 正式 var DOMAIN = 'https://fire.huoshitou.net/diaoyun/'; // 正式
var HOST = DOMAIN + 'api/'; var HOST = DOMAIN + 'api/';
erp.login = HOST + 'loginAndRegister/login'; // 登录 erp.login = HOST + 'loginAndRegister/login'; // 登录
......
...@@ -578,6 +578,11 @@ var _api = _interopRequireDefault(__webpack_require__(/*! ../../static/util/api. ...@@ -578,6 +578,11 @@ var _api = _interopRequireDefault(__webpack_require__(/*! ../../static/util/api.
that.successDialog = true; that.successDialog = true;
uni.removeStorageSync('concludeList'); uni.removeStorageSync('concludeList');
uni.removeStorageSync('entrustList'); uni.removeStorageSync('entrustList');
} else {
uni.showToast({
title: res.msg,
icon: 'none' });
} }
}); });
} }
...@@ -591,11 +596,11 @@ var _api = _interopRequireDefault(__webpack_require__(/*! ../../static/util/api. ...@@ -591,11 +596,11 @@ var _api = _interopRequireDefault(__webpack_require__(/*! ../../static/util/api.
then(function (res) { then(function (res) {
if (res.code == 500) { if (res.code == 500) {
// 仅为测试所用(返回具体错误信息) // 仅为测试所用(返回具体错误信息)
uni.showToast({ // uni.showToast({
title: res.msg, // title: res.msg,
icon: 'none' }); // icon: 'none'
// })
// this.failDialog = true _this2.failDialog = true;
var text = res.msg; var text = res.msg;
if (text.indexOf('I') > -1 || text.indexOf('a') > -1) { if (text.indexOf('I') > -1 || text.indexOf('a') > -1) {
_this2.failDialogBtnShow = true; _this2.failDialogBtnShow = true;
...@@ -607,25 +612,22 @@ var _api = _interopRequireDefault(__webpack_require__(/*! ../../static/util/api. ...@@ -607,25 +612,22 @@ var _api = _interopRequireDefault(__webpack_require__(/*! ../../static/util/api.
} else if (text.indexOf('b') > -1) { } else if (text.indexOf('b') > -1) {
_this2.hintText = '该企业已参与独立询价套餐,不能参与拼团'; _this2.hintText = '该企业已参与独立询价套餐,不能参与拼团';
_this2.btnText = '我知道了'; _this2.btnText = '我知道了';
} else if (text.indexOf('X') > -1) {
_this2.hintText = '该企业已参与过同年度其他拼团套餐,不能参与该套餐';
_this2.btnText = '我知道了';
} else if (text.indexOf('J') > -1) {
_this2.hintText = '该企业的用电性质不符合';
_this2.btnText = '我知道了';
} else if (text.indexOf('f') > -1) {
_this2.hintText = '该企业的月竟分成合同的分成比例高于拼团的月竟最高分成比例,不能参与拼团';
_this2.btnText = '我知道了';
} else if (text.indexOf('h') > -1) {
_this2.hintText = '该企业的固定价差合同的固定价差高于拼团的最高保底价差,不能参与拼团';
_this2.btnText = '我知道了';
} else {
_this2.hintText = '该企业不满足拼团的峰平谷要求,无法参与拼团';
_this2.btnText = '我知道了';
} }
// else if (text.indexOf('X') > -1) {
// this.failDialogBtnShow = true
// this.hintText = '该企业已参与过同年度其他拼团套餐,是否退出已参与的拼团套餐并替换成该拼团套餐'
// this.btnText = '替换成该套餐'
// }
else if (text.indexOf('J') > -1) {
_this2.hintText = '该企业的用电性质不符合';
_this2.btnText = '我知道了';
} else if (text.indexOf('f') > -1) {
_this2.hintText = '该企业的月竟分成合同的分成比例高于拼团的月竟最高分成比例,不能参与拼团';
_this2.btnText = '我知道了';
} else if (text.indexOf('h') > -1) {
_this2.hintText = '该企业的固定价差合同的固定价差高于拼团的最高保底价差,不能参与拼团';
_this2.btnText = '我知道了';
} else {
_this2.hintText = '该企业不满足拼团的峰平谷要求,无法参与拼团';
_this2.btnText = '我知道了';
}
} else { } else {
} }
......
...@@ -221,6 +221,55 @@ ...@@ -221,6 +221,55 @@
background: #ccc; background: #ccc;
border-radius: 16rpx; border-radius: 16rpx;
} }
.groupCompany .fail_dialog_hint {
position: absolute;
left: 50%;
top: 50%;
-webkit-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
width: 560rpx;
height: 300rpx;
background-color: #fff;
border-radius: 16rpx;
}
.groupCompany .fail_dialog_hint .fail_dialog_hint_text {
display: -webkit-box;
display: -webkit-flex;
display: flex;
-webkit-box-align: center;
-webkit-align-items: center;
align-items: center;
-webkit-box-pack: center;
-webkit-justify-content: center;
justify-content: center;
padding: 40rpx 60rpx;
height: 200rpx;
font-size: 28rpx;
color: #666;
}
.groupCompany .fail_dialog_hint .fail_dialog_hint_btn {
display: -webkit-box;
display: -webkit-flex;
display: flex;
-webkit-box-align: center;
-webkit-align-items: center;
align-items: center;
-webkit-justify-content: space-around;
justify-content: space-around;
height: auto;
border-top: 1rpx solid #f4f5f7;
}
.groupCompany .fail_dialog_hint .fail_dialog_hint_btn view {
-webkit-box-flex: 1;
-webkit-flex: 1;
flex: 1;
height: 100rpx;
line-height: 100rpx;
text-align: center;
font-size: 34rpx;
font-weight: 500;
color: #1989fa;
}
.groupCompany .fail_dialog { .groupCompany .fail_dialog {
position: absolute; position: absolute;
left: 0; left: 0;
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
}, },
"compileType": "miniprogram", "compileType": "miniprogram",
"libVersion": "", "libVersion": "",
"appid": "wx45bb68de16ddddb7", "appid": "wxb21370ac25ee51b0",
"projectname": "gangshi", "projectname": "gangshi",
"condition": { "condition": {
"search": { "search": {
......
const erp = erp || {}; //wxb21370ac25ee51b0,//wx45bb68de16ddddb7 const erp = erp || {}; //wxb21370ac25ee51b0,//wx45bb68de16ddddb7
// const DOMAIN = 'http://192.168.1.107:9099/'; // 峰煜 // const DOMAIN = 'http://192.168.1.107:9099/'; // 峰煜
const DOMAIN = 'https://dev.diaosaas.com/diaoyun/' //测试 // const DOMAIN = 'https://dev.diaosaas.com/diaoyun/' //测试
// const DOMAIN = 'http://192.168.1.178:9099/' // 国禄 // const DOMAIN = 'http://192.168.1.178:9099/' // 国禄
// const DOMAIN = 'http://192.168.1.197:9099/' // 志就 // const DOMAIN = 'http://192.168.1.197:9099/' // 志就
// const DOMAIN = 'https://fire.huoshitou.net/diaoyun/' // 正式 const DOMAIN = 'https://fire.huoshitou.net/diaoyun/' // 正式
const HOST = DOMAIN + 'api/' const HOST = DOMAIN + 'api/'
erp.login = HOST + 'loginAndRegister/login' // 登录 erp.login = HOST + 'loginAndRegister/login' // 登录
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论