diff --git a/README.md b/README.md
index d7273e7..762c8f6 100644
--- a/README.md
+++ b/README.md
@@ -44,9 +44,9 @@ unescapeHTML(temp){}
/**
* 上传文件(只能单文件上传)
* @param { String } url 服务器 url
+* @param { String } name 上传类型 goods-商品图片 avatar-用户头像 video-视频 store_logo-店铺logo store_banner-店铺banner store_avatar-店铺头像
* @param { String } filePath 要上传文件资源的路径
-* @param { String } type 上传文件验证类型 默认: img 可选: video
* @return { object } promise 对象 resolve 返回文件服务器地址 reject 返回错误信息
*/
-uploadFile({ url, filePath, type = 'img' } = {}) {}
+uploadFile({ url, name, filePath }) {}
```
\ No newline at end of file
diff --git a/common/api/user.js b/common/api/user.js
index 48b4f37..b96416f 100644
--- a/common/api/user.js
+++ b/common/api/user.js
@@ -216,7 +216,7 @@ export default {
page: page,
});
},
- // 意见反馈列表
+ // 意见反馈列表
getFeedbackList({ page }) {
return vm.$u.post('Member/feedbackList', {
page: page,
@@ -230,14 +230,15 @@ export default {
});
},
// 订单列表
- getOrderList({ page, type }) {
+ getOrderList({ page, type, refund_state }) {
let params = { page: page };
- if(type >= 0) Object.assign(params, {state_type: type})
- return vm.$u.post('Goods/orderList', params);
+ if(type >= 0 || typeof type == 'string') Object.assign(params, {state_type: type});
+ if(refund_state) Object.assign(params, {refund_state: refund_state});
+ return vm.$u.post('Order/orderList', params);
},
// 订单详情
getOrderInfo({ order_id }) {
- return vm.$u.post('Goods/orderInfo', { order_id: order_id });
+ return vm.$u.post('Order/orderInfo', { order_id: order_id });
},
// 查询订单的评价信息
getOrderEvaluateInfo({ id }) {
@@ -245,23 +246,15 @@ export default {
},
// 订单评价/修改评价
updateOrderEvaluate({ id, content, scores_one, scores_two, scores_three, file }) {
- return vm.$u.post('Order/orderEvaluate', {
+ let params = {
id: id,
content: content,
scores_one: scores_one,
scores_two: scores_two,
scores_three: scores_three,
- file: file,
- });
- },
- // 上传图片视频
- uploadfile({ file }) {
- const params = {
- file: file
}
- console.log(params);
-
- return vm.$u.post('Upload/uploadfile', params);
+ if(file) Object.assign(params, { file: file });
+ return vm.$u.post('Order/orderEvaluate', params);
},
// 信息模块
messageIndex({ }) {
diff --git a/components/mine/order-item/index.vue b/components/mine/order-item/index.vue
index cc7cb64..eda2f40 100644
--- a/components/mine/order-item/index.vue
+++ b/components/mine/order-item/index.vue
@@ -5,10 +5,10 @@
{{ order.extend_store.store_name }}
- {{ order.order_state | viewState }}
+ {{ state }}
-
+
{{ goods.goods_name }}
@@ -17,72 +17,65 @@
总价:¥99.00,实付款¥99
- 2020.05.17
+ {{ order.add_time | date }}
- 查看物流
-
+ 查看物流
+
+ 取消支付
立即支付
- 联系官方客服
- 提交官方审核
+ 联系官方客服
+ 提交官方审核
@@ -184,6 +177,9 @@ export default {
.logistics, .comment, .payment {
@include btn-class($width: 160rpx, $color: rgba(255,119,15,1));
}
+ .calcel {
+ @include btn-class($width: 160rpx, $color: rgba(155,153,153,1));
+ }
.service {
@include btn-class($width: 216rpx, $color: rgba(155,153,153,1));
}
diff --git a/pageB/search/index.vue b/pageB/search/index.vue
index c781c58..d5ce68b 100644
--- a/pageB/search/index.vue
+++ b/pageB/search/index.vue
@@ -6,7 +6,9 @@
'font-size':'32rpx',
'color':'#FF780F',
'overflow':'unset'
- }">
+ }"
+ @search="search"
+ >
搜索发现
@@ -23,6 +25,18 @@ export default {
return{
keyword:""
}
+ },
+ methods:{
+ search(value){
+ // console.log(value)
+ this.$u.route({
+ url:"/pageB/search/out",
+ params:{
+ value,
+ type:"shop"
+ }
+ })
+ }
}
}
diff --git a/pageB/search/out.vue b/pageB/search/out.vue
index a161faf..f50b8ca 100644
--- a/pageB/search/out.vue
+++ b/pageB/search/out.vue
@@ -4,8 +4,8 @@
-
-
+
+
@@ -25,6 +25,18 @@
+
+ 销量
+
+ 价格
+
+
+
+
+
+ 好评
+
+
\ No newline at end of file
diff --git a/pageE/mine/EditUserInfo.vue b/pageE/mine/EditUserInfo.vue
index 91fc9c1..c5276bd 100644
--- a/pageE/mine/EditUserInfo.vue
+++ b/pageE/mine/EditUserInfo.vue
@@ -80,7 +80,8 @@ export default {
this.avatar = res.tempFilePaths[0];
common.uploadFile({
url: url,
- filePath: res.tempFilePaths[0]
+ name: 'avatar',
+ filePath: res.tempFilePaths[0]
}).then(result => {
this.avatar = result;
}, error => {
diff --git a/pageE/mine/MemberServe.vue b/pageE/mine/MemberServe.vue
index 575dfa1..af082c6 100644
--- a/pageE/mine/MemberServe.vue
+++ b/pageE/mine/MemberServe.vue
@@ -17,7 +17,10 @@
预计进度
- {{ memberInfo.next_grade_exppoints_diff }}
+
+
+
+
@@ -151,6 +154,10 @@ export default {
font-size: 48rpx;
font-weight: 500;
color: rgba(255,255,255,1);
+ > image {
+ width: 52rpx;
+ height: 35rpx;
+ }
}
}
}
diff --git a/pageE/more/Complaints.vue b/pageE/more/Complaints.vue
index 7c99502..4bd99e3 100644
--- a/pageE/more/Complaints.vue
+++ b/pageE/more/Complaints.vue
@@ -1,33 +1,30 @@
-
-
- {{ item.fb_content }}
-
-
+
+
+
+ {{ item.fb_content }}
+
+
+
+
+
+ 后台回复:
+ {{ item.reply_content }}
+
+
+
+ {{ item.fb_time }}
-
- 后台回复:
- {{ item.reply_content }}
-
-
-
- {{ reply_time }}
-
-
+
+
\ No newline at end of file
diff --git a/pageE/tool/ManicureOrder.vue b/pageE/tool/ManicureOrder.vue
index c0bf180..c8db2d9 100644
--- a/pageE/tool/ManicureOrder.vue
+++ b/pageE/tool/ManicureOrder.vue
@@ -1,14 +1,18 @@
-
+
- 美甲时间:
-
- {{ time }}
+ 美甲时间:
+
+ {{ time }}
+
+
+ 美甲地址:
+
确认订单
@@ -22,6 +26,7 @@ export default {
return {
name: '',
time: '',
+ address: '四川省攀枝花市银江镇',
params: {
year: true,
month: true,
@@ -96,8 +101,11 @@ export default {
&:not(:last-child) {
margin-bottom: 2rpx;
}
+ .title {
+ font-size: 30rpx;
+ }
}
- .order-name {
+ .order-address {
display: flex;
align-items: center;
> view {
@@ -105,18 +113,24 @@ export default {
color: rgba(51,51,51,1);
}
> input {
+ padding-left: 20rpx;
flex: 1;
- text-align: right;
+ font-size: 28rpx;
}
}
.order-date {
display: flex;
align-items: center;
justify-content: space-between;
- > img {
+ > image {
width: 14rpx;
height :24rpx;
}
+ .time {
+ padding-left: 20rpx;
+ flex: 1;
+ text-align: left;
+ }
}
}
.order-btn {
diff --git a/pages.json b/pages.json
index d7ac6c5..2f06b28 100644
--- a/pages.json
+++ b/pages.json
@@ -715,6 +715,19 @@
}
}
},
+ {
+ "path": "setting/ShieldUsers",
+ "style": {
+ "navigationBarTitleText": "屏蔽用户",
+ "app-plus": {
+ "titleSize": "36px",
+ "titleNView": {
+ "titleColor": "#333333",
+ "backgroundColor": "#FFFFFF"
+ }
+ }
+ }
+ },
{
"path": "order/Index",
"style": {
@@ -736,7 +749,7 @@
"titleSize": "36px",
"titleNView": {
"titleColor": "#FFFFFF",
- "backgroundColor": "rgba(255,255,255,0)"
+ "backgroundColor": "#ff780f"
},
"backButton": {
"color": "#FFFFFF"
diff --git a/pages/mine/index.vue b/pages/mine/index.vue
index d870fd4..24780df 100644
--- a/pages/mine/index.vue
+++ b/pages/mine/index.vue
@@ -2,10 +2,10 @@
-
+
- {{ userInfo.member_nickname }}
+ {{ userInfo.member_nickname }}
勋章
diff --git a/pages/shop/index.vue b/pages/shop/index.vue
index 15447f0..7445999 100644
--- a/pages/shop/index.vue
+++ b/pages/shop/index.vue
@@ -6,7 +6,9 @@
{{ area }}
-
+
+
+
@@ -91,6 +93,12 @@ export default {
this.getGoodsRecommend();
},
methods: {
+ sousuo(){
+ // console.log(123)
+ this.$u.route({
+ url:"pageB/search/index"
+ })
+ },
getShopTopList() {
this.$u.api.getShopTopList().then((res)=>{
if (res.errCode == 0) {
diff --git a/static/js/common.js b/static/js/common.js
index dc9b353..1fdfede 100644
--- a/static/js/common.js
+++ b/static/js/common.js
@@ -12,23 +12,26 @@ const common = {
/**
* 上传文件(只能单文件上传)
* @param { String } url 服务器 url
+ * @param { String } name 上传类型 goods-商品图片 avatar-用户头像 video-视频 store_logo-店铺logo store_banner-店铺banner store_avatar-店铺头像 common-其他图片
* @param { String } filePath 要上传文件资源的路径
- * @param { String } type 上传文件验证类型 默认: img 可选: video
* @return { object } promise 对象 resolve 返回文件服务器地址 reject 返回错误信息
*/
- uploadFile({ url, filePath, type = 'img' } = {}) {
+ uploadFile({ url, name, filePath }) {
const token = uni.getStorageSync('token');
const promise = new Promise((resolve, reject) => {
uni.uploadFile({
url: url,
header: { "authorization": 'Bearer' + " " + token },
filePath: filePath,
- name: 'file',
- formData: { type: type },
+ name: name,
+ formData: {
+ name: name,
+ },
success: uploadFileRes => {
const data = JSON.parse(uploadFileRes.data);
+ // console.log(data);
if(data.errCode == 0) {
- resolve(data.data.url);
+ resolve(data.data);
} else {
reject(data.message);
}