diff --git a/App.vue b/App.vue index 3783774..336e5c8 100644 --- a/App.vue +++ b/App.vue @@ -10,9 +10,7 @@ export default { uni.hideTabBar() }, globalData: { - // baseURL : 'http://192.168.0.110:8092/api/', baseURL: VUE_APP_API_URL+ '/', - // baseURL : 'https://cloud.api.cyjyyjy.com/api/', userInfo: null, navHeight: 0, navTopHeight: 0, @@ -28,7 +26,6 @@ export default { onShow(e) { this.globalData.scene = e.scene - // console.log(this.globalData.scene,'this.globalData.scene') //隐藏系统tabbar uni.hideTabBar(); var query = {}; @@ -251,7 +248,7 @@ export default { setMenuHeight() { uni.getSystemInfo({ success: res => { - console.log(res); + console.log(res,'resaaaaa') this.globalData.navTopHeight = res.statusBarHeight; this.globalData.CustomBar = res.statusBarHeight + 45; this.globalData.systemInfo = res; @@ -262,10 +259,12 @@ export default { } }); let menuButtonObj = uni.getMenuButtonBoundingClientRect(); - this.globalData.menuTop = menuButtonObj.top; // console.log(menuButtonObj) - - this.globalData.menuHeight = menuButtonObj.height; - this.globalData.navHeight = menuButtonObj.height + (menuButtonObj.top - this.globalData.navTopHeight); + console.log(menuButtonObj,'menuButtonObj') + this.globalData.menuTop = menuButtonObj.top; + this.globalData.menuHeight = menuButtonObj.height; + this.globalData.topHeight = menuButtonObj.top + menuButtonObj.height; + this.globalData.topLeft = menuButtonObj.left; + this.globalData.navHeight = menuButtonObj.top; }, getInfo() { diff --git a/api/home.js b/api/home.js new file mode 100644 index 0000000..c9f0ea3 --- /dev/null +++ b/api/home.js @@ -0,0 +1,23 @@ +import request from '@/utils/request' + + +export function getIndexData(q){ + return request.get('index', q, {login: false}) +} + + +/* + * 文章列表 + * */ +export function getArticle(q) { + return request.get("/article/list", q, { + login: false + }); +} + +/* + * 文章详情 + * */ +export function getArticleDetail(q) { + return request.get("/article/details/" + q.id); +} \ No newline at end of file diff --git a/api/store.js b/api/store.js index feaf32c..dce9e26 100644 --- a/api/store.js +++ b/api/store.js @@ -92,14 +92,6 @@ export function getProducts(q) { }); } -/* - * 文章列表 - * */ -export function getArticle(q) { - return request.get("/article/list", q, { - login: true - }); -} /* * 商品详情 @@ -288,3 +280,4 @@ export function storeListApi(data) { login: false }); } + diff --git a/api/user.js b/api/user.js index 95c245d..2f3ff4d 100644 --- a/api/user.js +++ b/api/user.js @@ -31,6 +31,12 @@ export function addTemp(data) { login: true, }) } +//删除运费模板 +export function delTemp(data) { + return request.delete('/user/shippingtemplate?ids=' + data, { + login: true, + }) +} //获取运费模板列表 export function getTempList(data) { @@ -38,6 +44,12 @@ export function getTempList(data) { login: true, }) } +//获取运费模板详情 +export function getTempDetail(data) { + return request.get('/user/shippingtemplate/getTemplatesDetail?id='+data, { + login: true, + }) +} /** * 用户登录 diff --git a/components/quick-skeleton/quick-skeleton.vue b/components/quick-skeleton/quick-skeleton.vue new file mode 100644 index 0000000..a6e413f --- /dev/null +++ b/components/quick-skeleton/quick-skeleton.vue @@ -0,0 +1,169 @@ + + + + + diff --git a/components/sSwiper.vue b/components/sSwiper.vue new file mode 100644 index 0000000..d6d0b49 --- /dev/null +++ b/components/sSwiper.vue @@ -0,0 +1,66 @@ + + + + + diff --git a/components/vSwiper.vue b/components/vSwiper.vue index c034ebc..7f802fd 100644 --- a/components/vSwiper.vue +++ b/components/vSwiper.vue @@ -1,15 +1,19 @@ \ No newline at end of file + .pay-box .img2 { + height: 1235rpx; + } + diff --git a/pages/user/goodsManage/index.vue b/pages/user/goodsManage/index.vue index 0ff4540..5fdb2d7 100644 --- a/pages/user/goodsManage/index.vue +++ b/pages/user/goodsManage/index.vue @@ -1,10 +1,10 @@