Authored by xuqi

use my uid

@@ -43,7 +43,7 @@ const index = (req, res) => { @@ -43,7 +43,7 @@ const index = (req, res) => {
43 }; 43 };
44 44
45 const getAddressList = (req, res) => { 45 const getAddressList = (req, res) => {
46 - addressModel.getAddressDataAsync('8050484', 20).then(result => { 46 + addressModel.getAddressDataAsync('7566245', 20).then(result => {
47 if (result.data) { 47 if (result.data) {
48 let defaultAd = _.find(result.data, o => o.is_default === 'Y'); 48 let defaultAd = _.find(result.data, o => o.is_default === 'Y');
49 49
@@ -9,7 +9,7 @@ @@ -9,7 +9,7 @@
9 const orderModel = require('../models/order'); 9 const orderModel = require('../models/order');
10 10
11 const index = (req, res, next) => { 11 const index = (req, res, next) => {
12 - orderModel.index('8050484').then(result => { 12 + orderModel.index('7566245').then(result => {
13 13
14 // 设置头部路径索引focus 14 // 设置头部路径索引focus
15 result.data.bcNavFocus = 2; 15 result.data.bcNavFocus = 2;
@@ -43,15 +43,16 @@ const index = (req, res, next) => { @@ -43,15 +43,16 @@ const index = (req, res, next) => {
43 } 43 }
44 ]; 44 ];
45 45
46 - res.render('order', {  
47 - content: result.data 46 + res.display('order', {
  47 + content: result.data,
  48 + defaultHeader: false
48 }); 49 });
49 }).catch(next); 50 }).catch(next);
50 }; 51 };
51 52
52 // 订单金额计算 53 // 订单金额计算
53 const compute = (req, res, next) => { 54 const compute = (req, res, next) => {
54 - orderModel.compute('8050484', req.query.coin).then(result => { 55 + orderModel.compute('7566245', req.query.coin).then(result => {
55 res.send(result); 56 res.send(result);
56 }).catch(next); 57 }).catch(next);
57 }; 58 };
@@ -69,7 +70,7 @@ const orderSub = (req, res, next) => { @@ -69,7 +70,7 @@ const orderSub = (req, res, next) => {
69 return; 70 return;
70 } 71 }
71 72
72 - orderModel.submit('8050484', other).then(result => { 73 + orderModel.submit('7566245', other).then(result => {
73 res.send(result); 74 res.send(result);
74 }).catch(next); 75 }).catch(next);
75 }; 76 };