diff --git a/app.js b/app.js index c5e3ae43d..06a598c93 100755 --- a/app.js +++ b/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)); diff --git a/public/pages/admin/goldBuyCartManage/goldBuyCartManage.html b/public/pages/admin/goldBuyCartManage/goldBuyCartManage.html new file mode 100644 index 000000000..b1e87fc96 --- /dev/null +++ b/public/pages/admin/goldBuyCartManage/goldBuyCartManage.html @@ -0,0 +1,53 @@ +
+
+
+
+
+
购买记录
+
+ +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
交易编号商户名称金额数量金币类型购买人购买时间备注
{{systemGoldSetting.busiId}}{{systemGoldSetting.storeName}}{{systemGoldSetting.amount}}{{systemGoldSetting.goldCount}}{{systemGoldSetting.goldTypeName}}{{systemGoldSetting.buyerName}}{{systemGoldSetting.createTime}}{{systemGoldSetting.remark}}
+
    +
    + + +
    +
    +
    +
    + +
    \ No newline at end of file diff --git a/public/pages/admin/goldBuyCartManage/goldBuyCartManage.js b/public/pages/admin/goldBuyCartManage/goldBuyCartManage.js new file mode 100644 index 000000000..372d23287 --- /dev/null +++ b/public/pages/admin/goldBuyCartManage/goldBuyCartManage.js @@ -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);