mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-25 06:09:11 +08:00
优化代码
This commit is contained in:
parent
707b3cd4d6
commit
6cbfa956ae
8
app.js
8
app.js
@ -36,11 +36,11 @@ let opts = {
|
||||
//app.use('/callComponent',proxy('http://api.demo.winqi.cn:8012',opts));
|
||||
|
||||
|
||||
//app.use('/callComponent',proxy('http://api.demo.winqi.cn:8012',opts));
|
||||
//app.use('/app',proxy('http://api.demo.winqi.cn:8012',opts));
|
||||
app.use('/callComponent',proxy('http://api.demo.winqi.cn:8012',opts));
|
||||
app.use('/app',proxy('http://api.demo.winqi.cn:8012',opts));
|
||||
|
||||
app.use('/callComponent',proxy('http://192.168.1.106:8012',opts));
|
||||
app.use('/app',proxy('http://192.168.1.106:8012',opts));
|
||||
// app.use('/callComponent',proxy('http://192.168.1.106:8012',opts));
|
||||
// app.use('/app',proxy('http://192.168.1.106:8012',opts));
|
||||
|
||||
//app.use('/callComponent',proxy('http://192.168.1.16:8012',opts));
|
||||
//app.use('/app',proxy('http://192.168.1.16:8012',opts));
|
||||
|
||||
53
public/pages/admin/goldBuyCartManage/goldBuyCartManage.html
Normal file
53
public/pages/admin/goldBuyCartManage/goldBuyCartManage.html
Normal file
@ -0,0 +1,53 @@
|
||||
<div>
|
||||
<div class="row">
|
||||
<div class="col-lg-12">
|
||||
<div class="ibox">
|
||||
<div class="ibox-title">
|
||||
<h5>购买记录</h5>
|
||||
<div class="ibox-tools" style="top:10px;">
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<div class="ibox-content">
|
||||
|
||||
<table class="footable table table-stripped toggle-arrow-tiny" data-page-size="15">
|
||||
<thead>
|
||||
<tr>
|
||||
<th class="text-center">交易编号</th>
|
||||
<th class="text-center">商户名称</th>
|
||||
<th class="text-center">金额</th>
|
||||
<th class="text-center">数量</th>
|
||||
<th class="text-center">金币类型</th>
|
||||
<th class="text-center">购买人</th>
|
||||
<th class="text-center">购买时间</th>
|
||||
<th class="text-center">备注</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr v-for="systemGoldSetting in goldBuyCartManageInfo.systemGoldSettings">
|
||||
<td class="text-center">{{systemGoldSetting.busiId}}</td>
|
||||
<td class="text-center">{{systemGoldSetting.storeName}}</td>
|
||||
<td class="text-center">{{systemGoldSetting.amount}}</td>
|
||||
<td class="text-center">{{systemGoldSetting.goldCount}}</td>
|
||||
<td class="text-center">{{systemGoldSetting.goldTypeName}}</td>
|
||||
<td class="text-center">{{systemGoldSetting.buyerName}}</td>
|
||||
<td class="text-center">{{systemGoldSetting.createTime}}</td>
|
||||
<td class="text-center">{{systemGoldSetting.remark}}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="7">
|
||||
<ul class="pagination float-right"></ul>
|
||||
</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
<!-- 分页 -->
|
||||
<vc:create path="frame/pagination"></vc:create>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
74
public/pages/admin/goldBuyCartManage/goldBuyCartManage.js
Normal file
74
public/pages/admin/goldBuyCartManage/goldBuyCartManage.js
Normal file
@ -0,0 +1,74 @@
|
||||
/**
|
||||
入驻小区
|
||||
**/
|
||||
(function(vc){
|
||||
var DEFAULT_PAGE = 1;
|
||||
var DEFAULT_ROWS = 10;
|
||||
vc.extends({
|
||||
data:{
|
||||
goldBuyCartManageInfo:{
|
||||
systemGoldSettings:[],
|
||||
total:0,
|
||||
records:1,
|
||||
moreCondition:false,
|
||||
settingId:'',
|
||||
conditions:{
|
||||
title:'',
|
||||
|
||||
}
|
||||
}
|
||||
},
|
||||
_initMethod:function(){
|
||||
vc.component._listSystemGoldSettings(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
},
|
||||
_initEvent:function(){
|
||||
|
||||
vc.on('systemGoldSettingManage','listSystemGoldSetting',function(_param){
|
||||
vc.component._listSystemGoldSettings(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
});
|
||||
vc.on('pagination','page_event',function(_currentPage){
|
||||
vc.component._listSystemGoldSettings(_currentPage,DEFAULT_ROWS);
|
||||
});
|
||||
},
|
||||
methods:{
|
||||
_listSystemGoldSettings:function(_page, _rows){
|
||||
|
||||
vc.component.goldBuyCartManageInfo.conditions.page = _page;
|
||||
vc.component.goldBuyCartManageInfo.conditions.row = _rows;
|
||||
var param = {
|
||||
params:vc.component.goldBuyCartManageInfo.conditions
|
||||
};
|
||||
|
||||
//发送get请求
|
||||
vc.http.apiGet('/goldBusiness/queryGoldBusiness',
|
||||
param,
|
||||
function(json,res){
|
||||
var _goldBuyCartManageInfo=JSON.parse(json);
|
||||
vc.component.goldBuyCartManageInfo.total = _goldBuyCartManageInfo.total;
|
||||
vc.component.goldBuyCartManageInfo.records = _goldBuyCartManageInfo.records;
|
||||
vc.component.goldBuyCartManageInfo.systemGoldSettings = _goldBuyCartManageInfo.data;
|
||||
vc.emit('pagination','init',{
|
||||
total:vc.component.goldBuyCartManageInfo.records,
|
||||
currentPage:_page
|
||||
});
|
||||
},function(errInfo,error){
|
||||
console.log('请求失败处理');
|
||||
}
|
||||
);
|
||||
},
|
||||
_querySystemGoldSettingMethod:function(){
|
||||
vc.component._listSystemGoldSettings(DEFAULT_PAGE, DEFAULT_ROWS);
|
||||
|
||||
},
|
||||
_moreCondition:function(){
|
||||
if(vc.component.goldBuyCartManageInfo.moreCondition){
|
||||
vc.component.goldBuyCartManageInfo.moreCondition = false;
|
||||
}else{
|
||||
vc.component.goldBuyCartManageInfo.moreCondition = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
});
|
||||
})(window.vc);
|
||||
Loading…
Reference in New Issue
Block a user