Commit b723b102 authored by xishifeng's avatar xishifeng

bug处理

parent 150d4915
......@@ -11,7 +11,7 @@
<body style="display: none;">
<div id="app">
<header id="header">
<a class="ps-back" href="javascript:(history.length>1?history.go(-1):window.location='/');" id="back_btn"></a>
<a class="ps-back" href="javascript:;" @click.prevent.stop="pageBack" id="back_btn"></a>
<h2 id="title">本周业绩</h2>
</header>
<div class="header_seat"></div>
......
......@@ -34,6 +34,25 @@ require(['vue', 'css!style/achieve_fork.css', 'jquery0325', 'common'],function(V
var _this = this;
clearInterval(_this.testBtn);
},
pageBack: function() {
if(_appToken !== null) {
Compatible({
hrefIos: 'abcd',
paraIos: {
'route': "aabb",
'url': 'back'
},
fnAndroid: function() {
window.android.onBackPressed();
},
fn: function() {
console.warn('error');
}
});
} else {
history.go(-1);
}
},
loadMain: function(){
var _this =this;
this.userLevel = localStorage.getItem('level');
......
......@@ -25,7 +25,8 @@ require(['vue', 'html2canvas', 'css!style/report_achieve.css', 'jquery0325', 'co
'titlename': '本月实收(元)',
'titlename2': '人均实收(元)',
}],
peopleNum: 1
peopleNum: 1,
token: ''
},
components: {
'my-tr1': {
......@@ -51,6 +52,7 @@ require(['vue', 'html2canvas', 'css!style/report_achieve.css', 'jquery0325', 'co
methods: {
loadMain: function() {
var _vueThis = this;
_vueThis.token = localStorage.getItem('token');
//一些信息自动填写
_titleBeforeObj.html(_weekly_data['startdate'] + ' 至 ' + _weekly_data['enddate']);
_titleTempObj.html('汇报人:' + localStorage.getItem('username'));
......@@ -59,6 +61,7 @@ require(['vue', 'html2canvas', 'css!style/report_achieve.css', 'jquery0325', 'co
type: "POST",
url: ServerHostTempC + '/broker/dayStatement',
data: {
'AuthToken': _vueThis.token,
'agent_id': _userInfo['id'],
'time_start': _weekly_data['startdate'],
'time_end': _weekly_data['enddate']
......
......@@ -266,6 +266,7 @@ $(function() {
type: "POST",
url: ServerHostTempC + '/broker/dayStatement',
data: {
'AuthToken': _token,
'agent_id': _id,
'time_start': _weekly_data['startdate'],
'time_end': _weekly_data['enddate']
......
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