mui.init({
	beforeback: function() { //获得父页面的webview
		var list = plus.webview.currentWebview().opener(); //触发父页面的自定义事件(refresh),从而进行刷新
		mui.fire(list, 'reload');
		//返回true,继续页面关闭逻辑
		return true;
	}
})

mui.plusReady(function() {

	var self = plus.webview.currentWebview();
	var data_href = self.data_href;
	if(data_href == 'all') {
		$('.title').html('全部订单');
	}
	if(data_href == 'waitPay') {
		$('.title').html('待付款');
	}
	if(data_href == 'waitDeliver') {
		$('.title').html('待发货');
	}
	if(data_href == 'waitReceive') {
		$('.title').html('待收货');
	}
	if(data_href == 'waitAppraise') {
		$('.title').html('待评价');
	}
	if(data_href == 'abnormal') {
		$('.title').html('退款/售后');
	}
	if(data_href == 'zgall') {
		$('.title').html('助购吧全部订单');
	}
	if(data_href == 'zgwaitDeliver') {
		$('.title').html('助购吧待发货');
	}
	if(data_href == 'zgwaitReceive') {
		$('.title').html('助购吧待收货');
	}
	if(data_href == 'zgwaitAppraise') {
		$('.title').html('助购吧待评价');
	}
	if(data_href == 'zgabnormal') {
		$('.title').html('助购吧退款售后');
	}
	if(data_href == 'mzgwaitConfirm') {
		$('.title').html('我的助购吧待确认');
	}
	if(data_href == 'mzgwaitPaid') {
		$('.title').html('我的助购吧待付款');
	}
	if(data_href == 'mzgwaitUpload') {
		$('.title').html('我的助购吧待上传凭证');
	}
	if(data_href == 'mzgwaitReceive') {
		$('.title').html('我的助购吧待收货');
	}
	localStorage.setItem('order_class', data_href);
	var bSize = 64 + (+localStorage.getItem('ipxSizeTop')) + 'px';
	var sub = plus.webview.create('indentcon.html', data_href, {
		top: bSize,
		bottom: '0px',
		scrollIndicator: 'none'
	});
	self.append(sub);

})