Commit f2999cf2 authored by Junling Bu's avatar Junling Bu
Browse files

chore: 调整代码结构

parent 1315bc8d
module.exports = { module.exports = {
NODE_ENV: '"production"', NODE_ENV: '"production"',
ENV_CONFIG: '"dep"', ENV_CONFIG: '"dep"',
BASE_API: '"https://www.menethil.com.cn/admin"' BASE_API: '"http://122.152.206.172:8080/admin"'
} }
...@@ -137,12 +137,12 @@ ...@@ -137,12 +137,12 @@
</style> </style>
<script> <script>
import {listGroupon, publishGroupon, deleteGroupon, editGroupon} from '@/api/groupon' import { listGroupon, publishGroupon, deleteGroupon, editGroupon } from '@/api/groupon'
import BackToTop from '@/components/BackToTop' import BackToTop from '@/components/BackToTop'
export default { export default {
name: 'GoodsList', name: 'GoodsList',
components: {BackToTop}, components: { BackToTop },
data() { data() {
return { return {
list: [], list: [],
...@@ -163,14 +163,14 @@ ...@@ -163,14 +163,14 @@
goodsId: '', goodsId: '',
discount: '', discount: '',
discountMember: '', discountMember: '',
expireTime: undefined, expireTime: undefined
}, },
dialogFormVisible: false, dialogFormVisible: false,
dialogStatus: '', dialogStatus: '',
textMap: { textMap: {
update: '编辑', update: '编辑',
create: '创建' create: '创建'
}, }
} }
}, },
created() { created() {
...@@ -207,7 +207,7 @@ ...@@ -207,7 +207,7 @@
goodsId: '', goodsId: '',
discount: '', discount: '',
discountMember: '', discountMember: '',
expireTime: undefined, expireTime: undefined
} }
}, },
handleCreate() { handleCreate() {
......
...@@ -93,12 +93,12 @@ ...@@ -93,12 +93,12 @@
</style> </style>
<script> <script>
import {listRecord} from '@/api/groupon' import { listRecord } from '@/api/groupon'
import BackToTop from '@/components/BackToTop' import BackToTop from '@/components/BackToTop'
export default { export default {
name: 'GoodsList', name: 'GoodsList',
components: {BackToTop}, components: { BackToTop },
data() { data() {
return { return {
list: [], list: [],
...@@ -113,7 +113,7 @@ ...@@ -113,7 +113,7 @@
}, },
goodsDetail: '', goodsDetail: '',
detailDialogVisible: false, detailDialogVisible: false,
downloadLoading: false, downloadLoading: false
} }
}, },
created() { created() {
......
...@@ -5,7 +5,7 @@ spring: ...@@ -5,7 +5,7 @@ spring:
encoding: UTF-8 encoding: UTF-8
server: server:
port: 8082 port: 8080
logging: logging:
level: level:
......
...@@ -182,8 +182,12 @@ public class WxAddressController { ...@@ -182,8 +182,12 @@ public class WxAddressController {
if(address == null){ if(address == null){
return ResponseUtil.badArgument(); return ResponseUtil.badArgument();
} }
Integer id = address.getId();
if(id == null){
return ResponseUtil.badArgumentValue();
}
addressService.delete(address.getId()); addressService.delete(id);
return ResponseUtil.ok(); return ResponseUtil.ok();
} }
} }
\ No newline at end of file
...@@ -61,6 +61,7 @@ public class WxHomeController { ...@@ -61,6 +61,7 @@ public class WxHomeController {
* newGoodsList: xxx, * newGoodsList: xxx,
* hotGoodsList: xxx, * hotGoodsList: xxx,
* topicList: xxx, * topicList: xxx,
* grouponList: xxx,
* floorGoodsList: xxx * floorGoodsList: xxx
* } * }
* } * }
......
// 以下是业务服务器API地址 // 以下是业务服务器API地址
// 本机开发时使用 // 本机开发时使用
// var WxApiRoot = 'http://localhost:8080/wx/'; var WxApiRoot = 'http://localhost:8080/wx/';
// 局域网测试使用 // 局域网测试使用
// var WxApiRoot = 'http://192.168.0.101:8080/wx/'; // var WxApiRoot = 'http://192.168.0.101:8080/wx/';
// 云平台部署时使用 // 云平台部署时使用
// var WxApiRoot = 'http://122.152.206.172:8080/wx/'; // var WxApiRoot = 'http://122.152.206.172:8080/wx/';
// 云平台上线时使用 // 云平台上线时使用
var WxApiRoot = 'https://www.menethil.com.cn/wx/'; // var WxApiRoot = 'https://www.menethil.com.cn/wx/';
module.exports = { module.exports = {
IndexUrl: WxApiRoot + 'home/index', //首页数据接口 IndexUrl: WxApiRoot + 'home/index', //首页数据接口
......
{ {
"navigationBarTitleText": "我的团购", "navigationBarTitleText": "我的团购",
"usingComponents": { "usingComponents": {
"zan-capsule": "../../../dist/capsule/index" "zan-capsule": "../../../lib/zanui-weapp/capsule/index"
} }
} }
\ No newline at end of file
...@@ -2,6 +2,6 @@ ...@@ -2,6 +2,6 @@
"navigationBarTitleText": "", "navigationBarTitleText": "",
"usingComponents": { "usingComponents": {
"zan-capsule": "../../dist/capsule/index" "zan-capsule": "../../lib/zanui-weapp/capsule/index"
} }
} }
\ No newline at end of file
...@@ -107,6 +107,11 @@ Page({ ...@@ -107,6 +107,11 @@ Page({
}); });
}; };
}, },
aboutUs: function () {
wx.navigateTo({
url: '/pages/about/about'
});
},
exitLogin: function() { exitLogin: function() {
wx.showModal({ wx.showModal({
title: '', title: '',
......
Supports Markdown
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