diff --git a/api/feedback/index.js b/api/feedback/index.js index 0eb80a0..c1d3b1a 100644 --- a/api/feedback/index.js +++ b/api/feedback/index.js @@ -4,7 +4,9 @@ import request from '@/utils/request' const api = { list: 'user/getFeedBack', shopList: 'store/getStore', - add:'user/addFeedback' + add:'user/addFeedback', + addFeedback: 'feedback/add', + getMyFeedback: 'feedback/list', } // 我的反馈列表 @@ -20,3 +22,14 @@ export const shopList = (param, option) => { export const add=(data)=> { return request.post(api.add, data) } + +// 发布动态 +export function addFeedback(param) { + return request.post(api.addFeedback, { ...param }) +} + + +// 获取动态列表 +export function getMyFeedback(param) { + return request.get(api.getMyFeedback, { ...param }) +} diff --git a/api/squareDynamic/index.js b/api/squareDynamic/index.js new file mode 100644 index 0000000..c9d0b15 --- /dev/null +++ b/api/squareDynamic/index.js @@ -0,0 +1,24 @@ +import request from '@/utils/request' + +// api地址 +const api = { + publishDynamic: 'square/add', + getDynamic: 'square/list', + dynamicLike: 'square/dynamicLike' +} + +// 发布动态 +export function publishDynamic(param) { + return request.post(api.publishDynamic, { ...param }) +} + + +// 获取动态列表 +export function getDynamic(param) { + return request.get(api.getDynamic, { ...param }) +} + +// 动态点赞 +export function dynamicLike(param) { + return request.post(api.dynamicLike, { ...param }) +} \ No newline at end of file diff --git a/pages/activity/newPeople.vue b/pages/activity/newPeople.vue index 7c3426f..21a7bfa 100644 --- a/pages/activity/newPeople.vue +++ b/pages/activity/newPeople.vue @@ -79,7 +79,7 @@ isLoading: true, background: { background: 'url(https://www.royaum.com.cn/static/news/newPeople-bg.png) center top no-repeat', - backgroundSize: '200% auto', + backgroundSize: '500% auto', }, goodList: [], @@ -208,12 +208,12 @@ padding: 100rpx 0; } .newpeople { - background: url(https://www.royaum.com.cn/static/news/newPeople-bg.png) center 24rpx no-repeat; + background: url(https://www.royaum.com.cn/static/news/newPeople-bg.png) center 88rpx no-repeat; background-size: 100% auto; overflow: hidden; &-hd { - height: 288rpx; + height: 376rpx; .rule { right: 0; diff --git a/pages/feedback/form.vue b/pages/feedback/form.vue index 387c9c8..a4248e2 100644 --- a/pages/feedback/form.vue +++ b/pages/feedback/form.vue @@ -6,8 +6,8 @@ *问题类型 - - + + {{ item }} @@ -27,7 +27,7 @@ - + 添加照片 最多5张 @@ -58,6 +58,8 @@ @@ -91,12 +136,13 @@ .top-type { display: flex; margin-bottom: 27rpx; + justify-content: space-between; .type-info { color: #333333; font-size: 30rpx; width: calc(100% - 130rpx); } - uni-text { + text { width: 90rpx; height: 40rpx; background: #EFFBF7; @@ -128,6 +174,7 @@ -webkit-line-clamp: 2; -webkit-box-orient: vertical; text-overflow: ellipsis; + width: 100%; } .mask { position: absolute; diff --git a/pages/index/index.vue b/pages/index/index.vue index fb832bf..eb9e583 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -618,6 +618,12 @@ path: '/pages/squareDynamic/index', type: 2 }, + { + image: `${this.$picUrl}/static/index/g5.png?n=` + new Date().getTime(), + text: "意见反馈", + path: '/pages/feedback/index', + type: 2 + }, ], catagoryList: [], paihangList: [], @@ -682,8 +688,8 @@ data } = await GoodsApi.wxAppStyle({}); if (status == 200) { - console.log(data); - uni.setStorageSync('styleIndex', data.detail || ''); + console.log(data, data.style.style); + uni.setStorageSync('styleIndex', data.style.style || ''); } }, onChangeSeckillCutDownTime(e) { diff --git a/pages/shopList/certificate.vue b/pages/shopList/certificate.vue index 0649384..b15e696 100644 --- a/pages/shopList/certificate.vue +++ b/pages/shopList/certificate.vue @@ -14,7 +14,7 @@ export default { data() { return { - cerList: ['', '', '', '', ''] + cerList: [] }; }, onLoad({ id }) { @@ -28,6 +28,11 @@ }) .then(result => { console.log(result); + const arr = []; + for (const image of result.data.detail.licenseImg) { + arr.push(image.external_url); + } + this.cerList = [...arr]; }) .finally(() => this.loading = false) }, diff --git a/pages/shopList/index.vue b/pages/shopList/index.vue index 73e9681..fabb20b 100644 --- a/pages/shopList/index.vue +++ b/pages/shopList/index.vue @@ -3,19 +3,19 @@ - + - {{ item }} + {{ item.name }} - + @@ -30,10 +30,10 @@ 进店 - - - - ¥{{ good.price }} + + + + ¥{{ good.goods_price_min }} @@ -60,7 +60,7 @@ return { search: '', categoryId: '', - activeFilter: '默认', + activeFilter: '', shopsList: [ // { // logo: '', @@ -89,7 +89,11 @@ loadTitle: '', loading: false, finished: false, - filterItems: ['默认', '销量', '好评'] + filterItems: [ + { name: '默认', key: ''}, + { name: '销量', key: 'sale'}, + { name: '好评', key: 'score'}, + ] }; }, computed: { @@ -112,6 +116,12 @@ }) }, }, + activeFilter() { + this.page = 1; + this.finished = false; + this.shopsList = []; + this.getshopsList(); + }, }, onLoad() { this.getshopsList(); @@ -133,10 +143,10 @@ } this.loadTitle = ""; Api.getShopList({ - filter: this.activeFilter, + sort: this.activeFilter, page: this.page++, - limit: this.limit, - keyword: this.search, + pageSize: this.limit, + search: this.search, }) .then(result => { console.log(result); @@ -272,6 +282,9 @@ font-size: 30rpx; line-height: 40rpx; // flex: 1; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; } .label { height: 40rpx; @@ -283,6 +296,7 @@ margin-left: 20rpx; color: #FFFFFF; font-size: 22rpx; + flex-shrink: 0; } } .info-bottom { diff --git a/pages/shopList/shopPage.vue b/pages/shopList/shopPage.vue index 2c16919..f7d61d1 100644 --- a/pages/shopList/shopPage.vue +++ b/pages/shopList/shopPage.vue @@ -27,11 +27,11 @@ - + - {{ shopDetail.name }} + {{ shopDetail.shop_name }} - {{ shopDetail.label }} + {{ shopDetail.shop_label }} 证书 @@ -39,10 +39,10 @@ - - + + - + {{ item.name }} @@ -50,7 +50,7 @@ - + {{ item.name }} @@ -81,6 +81,9 @@ + + + @@ -91,6 +94,8 @@ @@ -312,6 +379,8 @@ } .shop-info { display: flex; + margin-top: 30rpx; + padding: 0 24rpx; .logo { width: 90rpx; height: 90rpx; @@ -319,7 +388,6 @@ margin-right: 10rpx; } .info-box { - margin-top: 30rpx; .name { font-size: 30rpx; color: #fff; @@ -543,12 +611,31 @@ } } } + .toCart { + position: fixed; + bottom: 170rpx; + right: 26rpx; + width: 80rpx; + height: 80rpx; + border-radius: 50%; + opacity: 1; + z-index: 999; + display: flex; + align-items: center; + justify-content: center; + background: #F34A40; + + image { + width: 60%; + height: 60%; + } + } .toTop { position: fixed; - bottom: 120rpx; - right: 16rpx; - width: 99rpx; - height: 99rpx; + bottom: 65rpx; + right: 26rpx; + width: 80rpx; + height: 80rpx; border-radius: 50%; opacity: 1; z-index: 999; diff --git a/pages/squareDynamic/index.vue b/pages/squareDynamic/index.vue index 0617427..f7034e2 100644 --- a/pages/squareDynamic/index.vue +++ b/pages/squareDynamic/index.vue @@ -10,30 +10,30 @@ - + {{ showFullCont.includes(index) ? item.content : calcContentWidth(item.content).splitStr }} 全文 - - + + 复制文案 - + 下载图片 - + {{ item.likeNum }} @@ -55,30 +55,32 @@