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

chore: 调整代码结构

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