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 a2bf0a0..547978c 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,
@@ -254,15 +254,6 @@ export default {
file: file,
});
},
- // 上传图片视频
- uploadfile({ file }) {
- const params = {
- file: file
- }
- console.log(params);
-
- return vm.$u.post('Upload/uploadfile', params);
- },
}
}
}
\ No newline at end of file
diff --git a/components/mine/order-item/index.vue b/components/mine/order-item/index.vue
index cc7cb64..8000b77 100644
--- a/components/mine/order-item/index.vue
+++ b/components/mine/order-item/index.vue
@@ -17,7 +17,7 @@
总价:¥99.00,实付款¥99
- 2020.05.17
+ {{ order.add_time | date }}
@@ -25,6 +25,7 @@
查看物流
+ 取消支付
立即支付
联系官方客服
提交官方审核
@@ -70,7 +71,7 @@ export default {
methods: {
toDetailsPage() {
uni.navigateTo({
- url: '/pageE/order/Details?order.order_state=' + this.order.order_state
+ url: '/pageE/order/Details?id=' + this.order.order_id
});
},
toLogistics() {
@@ -184,6 +185,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/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..4366878 100644
--- a/pageE/more/Complaints.vue
+++ b/pageE/more/Complaints.vue
@@ -1,33 +1,30 @@
-
-
- {{ item.fb_content }}
-
-
+
+
+
+ {{ item.fb_content }}
+
+
+
+
+
+ 后台回复:
+ {{ item.reply_content }}
+
+
+
+ {{ reply_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..0fcd1a4 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": {
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/static/js/common.js b/static/js/common.js
index dc9b353..8d5a5a9 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-店铺头像
* @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);
}