diff --git a/app.json b/app.json
index 485ee6b..979bee0 100644
--- a/app.json
+++ b/app.json
@@ -23,8 +23,6 @@
"pages/order/pay",
"pages/order/detail",
"pages/order/order",
- "pages/return_goods/index",
- "pages/return_goods/return_goods",
"pages/collection/collection",
"pages/comment/comment",
"pages/coupon/index",
@@ -51,7 +49,9 @@
"pages/store/myStore",
"pages/userinfo/userinfo",
"pages/set/password",
- "pages/member/member"
+ "pages/member/member",
+ "pages/aftersales/aftersales",
+ "pages/aftersales/index"
],
"window": {
"backgroundTextStyle": "light",
diff --git a/images/huanhuo.png b/images/huanhuo.png
new file mode 100644
index 0000000..42c6243
Binary files /dev/null and b/images/huanhuo.png differ
diff --git a/images/tuihuo.png b/images/tuihuo.png
new file mode 100644
index 0000000..f3875c4
Binary files /dev/null and b/images/tuihuo.png differ
diff --git a/images/tuikuan.png b/images/tuikuan.png
new file mode 100644
index 0000000..2a52483
Binary files /dev/null and b/images/tuikuan.png differ
diff --git a/pages/return_goods/return_goods.js b/pages/aftersales/aftersales.js
similarity index 63%
rename from pages/return_goods/return_goods.js
rename to pages/aftersales/aftersales.js
index b55b9a4..abf9944 100644
--- a/pages/return_goods/return_goods.js
+++ b/pages/aftersales/aftersales.js
@@ -1,4 +1,4 @@
-// pages/return_goods/return_goods.js
+// pages/aftersales/aftersales.js
var app = getApp()
var WXAPI = require('../../utils/server.js');
Page({
@@ -7,9 +7,11 @@ Page({
* 页面的初始数据
*/
data: {
- itemList: [],
- itemList_text:'退货退款',
- tapIndex:1
+ refund_only_status:false,
+ return_refund_status:false,
+ exchange_goods_status:false,
+ isbatch: false,
+ orderType:'',
},
actionSheetTap: function () {
var that = this;
@@ -37,50 +39,35 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
- var otype = options.type ? options.type:false;
+ // var otype = options.type ? options.type:false;
console.log(options)
- this.setData({
- bgcolor: app.d.bf_color,
- id: options.id,
- oid:options.oid,
- otype: otype
- });
- this.loadate();
+ // this.setData({
+ // id: options.id,
+ // oid:options.oid,
+ // otype: otype
+ // });
+ this.loadData(options.orderId);
},
- loadate: function (e) {
+ loadData: function (orderId) {
var that = this;
- wx.request({
- url: app.d.ceshiUrl + '&action=order&m=return_type',
- method: 'post',
- data: {
- id: that.data.id,
- oid: that.data.oid,
- },
- header: {
- 'Content-Type': 'application/x-www-form-urlencoded'
- },
- success: function (res) {
- var status = res.data.status;
- if (status == 1) {
- var arrayType = res.data.arrayType, itemList = [];
- for (var i = 0; i < arrayType.length; i++) {
- itemList.push(arrayType[i].text);
- }
-
- that.setData({
- itemList: itemList,
- arrayType: res.data.arrayType,
- itemList_text: res.data.itemList_text,
- tapIndex: res.data.tapIndex
- });
- } else {
- wx.showToast({
- title: res.data.err,
- duration: 2000
- });
- }
- },
- });
+ WXAPI.returnMethod({
+ accessId: app.globalData.accessId,
+ storeId: 239,
+ storeType: 1,
+ order_details_id: orderId,
+ }).then(res => {
+ if (res.code == 200) {
+ var data = res.data
+ that.setData({
+ order: data.list,
+ status: data.status,
+ refund_only_status: data.refund_only_status,
+ return_refund_status: data.return_refund_status,
+ exchange_goods_status: data.exchange_goods_status,
+ orderType: data.orderType
+ });
+ }
+ })
},
remarkInput: function (e) {
this.setData({
@@ -134,7 +121,7 @@ Page({
success: 2000
});
wx.redirectTo({
- url: '/pages/return_goods/index?currentTab=0&otype=whole',
+ url: '/pages/aftersales/index?currentTab=0&otype=whole',
});
} else {
wx.showToast({
diff --git a/pages/return_goods/return_goods.json b/pages/aftersales/aftersales.json
similarity index 63%
rename from pages/return_goods/return_goods.json
rename to pages/aftersales/aftersales.json
index 26b6cf4..76036fa 100644
--- a/pages/return_goods/return_goods.json
+++ b/pages/aftersales/aftersales.json
@@ -1,3 +1,4 @@
{
+ "usingComponents": {},
"navigationBarTitleText": "申请售后"
}
\ No newline at end of file
diff --git a/pages/aftersales/aftersales.wxml b/pages/aftersales/aftersales.wxml
new file mode 100644
index 0000000..f25bd68
--- /dev/null
+++ b/pages/aftersales/aftersales.wxml
@@ -0,0 +1,74 @@
+
+
+
+
+
+
+
+ {{ item.p_name }}
+
+
+
+ ¥{{item.p_price}}
+
+ x{{ item.num }}
+
+ {{ item.size }}
+
+
+
+
+
+
+
+
+
+ 仅退款
+
+ 未收到货,或与客服协商同意仅退款
+
+
+
+
+
+
+
+ 退货退款
+
+ 已收到货,需要退还已收到的货物
+
+
+
+
+
+
+
+
+ 换货
+
+ 确认收货,需要更换已收到的货物
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/aftersales/aftersales.wxss b/pages/aftersales/aftersales.wxss
new file mode 100644
index 0000000..46e792c
--- /dev/null
+++ b/pages/aftersales/aftersales.wxss
@@ -0,0 +1,147 @@
+/* pages/aftersales/aftersales.wxss */
+.page{
+ width: 100%
+}
+.container{
+ background-color: #F4F5F6;
+}
+.order_goods{
+ /* border-radius: 0px 0px 24rpx 24rpx; */
+ margin-bottom: 20rpx;
+}
+
+.order_two {
+ padding: 30rpx;
+ display: flex;
+ background-color: #fff;
+ margin-right: 0;
+}
+.shopImg{
+ width: 216rpx;
+ height: 216rpx;
+ border-radius: 16rpx;
+ margin-right: 24rpx;
+}
+.order_two_a {
+ flex: 1;
+ display: flex;
+ flex-direction: column;
+ justify-content: space-around;
+ height: 216rpx;
+}
+.price_num {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ font-size: 32rpx;
+ color: #FA5151;
+}
+.price_num .price{
+ font-weight: 600;
+}
+.price .price_symbol{
+ font-size: 24rpx;
+}
+.order_p_name {
+ text-align: start;
+ height: auto;
+ margin: 0 0 20rpx 0;
+ font-size: 32rpx;
+ color: #333333;
+ overflow:hidden;
+ text-overflow:ellipsis;
+ display: -webkit-box;
+ -webkit-line-clamp: 2;
+ -webkit-box-orient: vertical;
+}
+.color_one{
+ text-align: start;
+ max-width: 440rpx;
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ font-size: 24rpx;
+ color: #999999;
+}
+.color_two {
+ color: #999999;
+}
+.return_pay {
+ display: flex;
+ padding: 30rpx;
+ background-color: white;
+ align-items: center;
+ /* border-bottom: 1rpx solid #eee; */
+}
+.return_right{
+ display: flex;
+ flex-direction: column;
+ /* justify-content: space-between; */
+ /* align-items: center; */
+}
+.status{
+ display: flex;
+ align-items: center;
+}
+.status view{
+ margin-left: 20rpx;
+ font-size: 32rpx;
+ color: black;
+}
+.return_right text{
+ margin-top: 10rpx;
+ font-size: 28rpx;
+ color: #999999;
+}
+.arrow{
+ position: absolute;
+ right: 26rpx;
+ width: 26rpx;
+ height: 26rpx;
+}
+/*
+.return_right>view {
+ font-size: 28rpx;
+ color: #999999;
+}
+
+.return_right>view {
+ justify-content: flex-start;
+ font-size: 32rpx;
+ color:#333333;
+ margin-bottom: 8rpx;
+}
+
+.return_right>div img {
+ margin-right: 20rpx;
+} */
+
+.p_name {
+ width: 100%;
+ display: -webkit-box;
+ -webkit-box-orient: vertical;
+ -webkit-line-clamp: 2;
+ overflow: hidden;
+}
+
+/* 优化 */
+.yh-order-two-div {
+ margin-right: 40rpx;
+ width: 61%;
+}
+
+.yh-line {
+ height: 30rpx;
+ width: 100%;
+ background-color: #eee;
+}
+
+.return_right_img {
+ width: 48rpx;
+ height: 48rpx;
+}
+.color_one{
+ overflow: hidden;
+ text-overflow:ellipsis;
+ white-space: nowrap;
+}
diff --git a/pages/return_goods/index.js b/pages/aftersales/index.js
similarity index 99%
rename from pages/return_goods/index.js
rename to pages/aftersales/index.js
index c086db5..7bf5efb 100644
--- a/pages/return_goods/index.js
+++ b/pages/aftersales/index.js
@@ -1,4 +1,4 @@
-// pages/return_goods/index.js
+// pages/aftersales/index.js
var app = getApp();
var WXAPI = require('../../utils/server.js');
function initSubMenuDisplay() {
diff --git a/pages/return_goods/index.json b/pages/aftersales/index.json
similarity index 63%
rename from pages/return_goods/index.json
rename to pages/aftersales/index.json
index a1637cd..362a8e2 100644
--- a/pages/return_goods/index.json
+++ b/pages/aftersales/index.json
@@ -1,3 +1,4 @@
{
+ "usingComponents": {},
"navigationBarTitleText": "退货管理"
}
\ No newline at end of file
diff --git a/pages/return_goods/index.wxml b/pages/aftersales/index.wxml
similarity index 99%
rename from pages/return_goods/index.wxml
rename to pages/aftersales/index.wxml
index 85b4235..ac8ff4a 100644
--- a/pages/return_goods/index.wxml
+++ b/pages/aftersales/index.wxml
@@ -1,4 +1,4 @@
-
+
@@ -160,4 +160,4 @@
-
\ No newline at end of file
+
diff --git a/pages/aftersales/index.wxss b/pages/aftersales/index.wxss
new file mode 100644
index 0000000..a9008cc
--- /dev/null
+++ b/pages/aftersales/index.wxss
@@ -0,0 +1,333 @@
+/* pages/aftersales/index.wxss */
+.swiper-tab{
+ width: 100%;
+ border-bottom: 1px solid #eee;
+ text-align: center;
+ line-height: 80rpx;
+ background: #fff;
+ position: fixed;
+ top: 0;
+ z-index: 999;
+ }
+.swiper-tab-list{
+font-size: 12px;
+display: inline-block;
+width: 50%;
+color: #666;
+}
+.on{
+color: #dd2727;
+border-bottom: 5rpx solid #dd2727;
+}
+.tab_statu{
+float: right;
+font-size: 13px;
+color: #FF6347;
+}
+.swiper-box{
+display: block;
+height: 100%;
+width: 100%;
+overflow: hidden;
+}
+
+.clearbutton{
+ background: #fff;
+ display: inline-block;
+ margin:3% 3% 2% 3%;
+ color: #dd2727;
+ font-size: 14px;
+ width: 94%;
+}
+.shop{
+ background: #fafafa;
+ padding: 4%;
+ border-bottom:1px solid #eee;
+}
+.shop checkbox{
+ margin-top: 27px;
+ }
+.sh_slt{
+ width: 65px;
+ height: 65px;
+ overflow: hidden;
+ margin-right: 4%;
+ float: left;
+}
+.sp_text{
+ display:flex;
+ line-height: 20px;
+ width: 100%;
+ text-align: left;
+ padding-left:8px;
+}
+.sp_tit{
+ width: 100%;
+ overflow: hidden;
+ font-size: 12px;
+ -webkit-line-clamp:2;
+}
+.sp_neb{
+ width: 100%;
+ overflow: hidden;
+ font-size: 12px;
+ color: #999;
+}
+.sp_jg{
+ width: 30%;
+ overflow: hidden;
+ font-size: 13px;
+ color: #fc0628;
+}
+.guige{
+ font-size:12px;
+ color:#808080;
+ text-align:right;
+}
+.dle{
+ color: #999;
+ font-size: 12px;
+ float: right;
+}
+.dle image{
+ width: 18px;
+ height: 18px;
+ vertical-align: sub;
+}
+.jk_bottom{
+ position: fixed;
+ bottom: 0;
+ background: #fff;
+ width: 100%;
+ display: inline-flex;
+ border-bottom: 1px solid #eee;
+ font-size: 14px;
+ color: #999;
+}
+.jk_bottom checkbox{
+ margin: 4% 0 4% 4%;
+}
+.jk_bottom .heji{
+ margin-top: 5.5%;
+ width: 30%;
+ text-align: right;
+}
+.jk_bottom .all{
+ margin-top: 5.5%;
+ padding-left: 2%;
+}
+.jk_bottom .js_button{
+ background: #dd2727;
+ float: right;
+ color: #fff;
+ font-size: 16px;
+ text-align: center;
+ width: 40%;
+ position: absolute;
+ right: 0;
+ line-height: 50px;
+}
+.c_t60{
+ clear: both;
+ height: 1px;
+ padding-top: 48px;
+}
+.blue{
+color: #42b1ff;
+}
+.mr_5{
+ margin-right: 5px;
+}
+.list{
+border-bottom: 4px solid #eee;
+}
+.top{
+padding: 2% 4%;
+font-size:12px;
+}
+.sbut{
+background:#EE7600;
+border-radius: 10px;
+text-align:center;
+color:#fff;
+height:20px;
+margin-top:8px;
+}
+
+.sbutt{
+background:#EE7600;
+border-radius:10px;
+text-align:center;
+color:#fff;
+height:17px;
+margin:0;
+width:25%;
+font-size:12px;
+}
+
+/*优惠券 */
+.orderDetails {
+border-bottom: 10px solid #f3f3f3;
+background: #fff;
+}
+.orderListTitle {
+height: 100rpx;
+line-height: 100rpx;
+border-bottom: 1rpx solid #f3f3f3;
+}
+.orderListTitle .userImg {
+float: left;
+width: 70rpx;
+height: 70rpx;
+border-radius: 35rpx;
+margin: 15rpx;
+}
+.orderListTitle .userImg image {
+border-radius: 35rpx;
+width: 100%;
+height: 100%;
+}
+.orderListTitle .userName {
+padding-right: 50rpx;
+background: url(../../../images/member_list_arrow.png) no-repeat 90% center;
+background-size: 35rpx 35rpx;
+}
+.orderListTitle .orderStatus {
+float: right;
+margin-right: 20rpx;
+color: #2f7b27;
+font-size: 34rpx;
+}
+.orderListDetails {
+margin: 10px;
+display: flex;
+height: 200rpx;
+border-bottom: 1rpx solid #f3f3f3;
+border:2px solid #ff4081;
+border-radius: 20rpx;
+}
+.orderListDetails .productImg {
+flex: 1.3;
+height: 217rpx;
+margin-top: 20rpx;
+margin-left: 20rpx;
+}
+.orderListDetails .productImg image {
+width: 100%;
+height: 100%;
+}
+.orderListDetails .productInfo {
+flex: 1.5;
+padding: 20rpx 10rpx;
+text-align: center;
+}
+.productInfo image{
+width: 82px;
+height: 82px;
+}
+.pr {
+flex: 2.6;
+padding: 0 10rpx;
+line-height: 44rpx;
+}
+.classname {
+font-size: 25rpx;
+color: #ccc;
+}
+.coupon_box{
+display:flex;
+flex-direction:row;
+justify-content:space-between;
+align-items:center;
+margin-top:5px;
+width:90%;
+margin:10px auto;
+}
+.coupon_left{
+width: 78%;
+position:relative;
+background: #fff;
+border-radius:5px;
+height:120px;
+line-height:120px;
+}
+.coupon_right{
+width:22%;
+background:#ff6347;
+position:relative;
+height:120px;
+text-align:center;
+color:#fff;
+border-radius:5px;
+font-size:20px;
+
+}
+.right_y{
+position:absolute;
+width:25px;
+height:25px;
+border-radius:50%;
+background:#eee;
+top:48px;
+right:-13px;
+
+}
+.right_z{
+position:absolute;
+width:25px;
+height:25px;
+border-radius:50%;
+background:#eee;
+top:48px;
+left:-13px;
+}
+.gs{
+display:inline-block;
+font-size:14px;
+color:#666;
+margin-left:10px;
+}
+
+.p_all {
+border-bottom:1px solid #eee;
+}
+.drawer_screen {
+width: 100%;
+height: 100%;
+position: fixed;
+top: 0;
+left: 0;
+background: #000;
+opacity: 0.2;
+overflow: hidden;
+z-index: 1000;
+color: #fff;
+}
+
+.drawer_attr_box {
+width: 100%;
+height: 80%;
+position: fixed;
+bottom: 0;
+left: 0;
+z-index: 2000;
+background: #fff;
+}
+.thxq{
+padding: 10px;
+font-size: 13px;
+}
+.Withdraw{
+padding: 10px 0;
+font-size: 13px;
+display:flex;
+height:25px;
+}
+.cash{
+border-bottom:1px solid #eee;
+width:80%;
+margin:auto;
+}
+.Withdraw view{
+line-height:25px;
+}
\ No newline at end of file
diff --git a/pages/comment/comment.js b/pages/comment/comment.js
index 0e7e937..601909f 100644
--- a/pages/comment/comment.js
+++ b/pages/comment/comment.js
@@ -16,18 +16,6 @@ Page({
},
onLoad: function (options) {
that = this;
- // 设备信息
- wx.getSystemInfo({
- success: function (res) {
- that.setData({
- screenWidth: res.windowWidth,
- screenHeight: res.windowHeight,
- pixelRatio: res.pixelRatio,
- imageWidth: res.windowWidth / 4 - 10
- });
- }
- });
-
var orderId = options.ordersn; // 订单号
var user_id = app.globalData.userInfo.openid; // 微信id
var pid = options.pid; // 商品id
@@ -42,56 +30,35 @@ Page({
} else {
attribute_id = '';
}
- wx.request({
- url: app.d.ceshiUrl + '&action=product&m=comment',
- method: 'post',
- data: {
- order_id: orderId, // 订单号
- user_id: user_id, //微信id
- pid: pid, // 商品id
- attribute_id: attribute_id, // 属性id
- },
- header: {
- 'Content-Type': 'application/x-www-form-urlencoded'
- },
- success: function (res) {
- var status = res.data.status;
- if (status == 1) {
- var commentList = res.data.commentList;
- if (commentList.length > 1) {
- // 初始化评论选项为好评
- for (var i = 0, len = commentList.length; i < len; i++) {
- commentList[i].commentType = 'GOOD';
- commentList[i].images = [];
- commentList[i].id = i;
- commentList[i].addHide = commentList[i].images.length;
- }
- } else {
- commentList[0].commentType = 'GOOD';
- commentList[0].images = '';
- commentList[0].id = 0;
- commentList[0].addHide = commentList[0].images.length;
+ WXAPI.commentList({
+ accessId: app.globalData.accessId,
+ storeId: 239,
+ storeType: 1,
+ order_id: orderId, // 订单号
+ pid: pid, // 商品id
+ attribute_id: attribute_id, // 属性id
+ }).then(res => {
+ if (res.code == 200) {
+ var data = res.data
+ var commentList = data.commentList;
+ if (commentList.length > 1) {
+ // 初始化评论选项为好评
+ for (var i = 0, len = commentList.length; i < len; i++) {
+ commentList[i].commentType = 'GOOD';
+ commentList[i].images = [];
+ commentList[i].id = i;
+ commentList[i].addHide = commentList[i].images.length;
}
- that.setData({
- commentList: commentList,
- bgcolor: '#09bb07',
- orderId: orderId,
- remind: ''
- });
} else {
- wx.showToast({
- title: '已经评论过了哦,亲!',
- duration: 2000
- });
- wx.navigateBack({
- delta: 2
- });
+ commentList[0].commentType = 'GOOD';
+ commentList[0].images = '';
+ commentList[0].id = 0;
+ commentList[0].addHide = commentList[0].images.length;
}
- },
- fail: function () {
- wx.showToast({
- title: '网络异常!',
- duration: 2000
+ that.setData({
+ commentList: commentList,
+ orderId: orderId,
+ remind: ''
});
}
})
@@ -103,42 +70,7 @@ Page({
var id = e.target.id;
var that = this;
// 选择图片
- wx.chooseImage({
- count: 3, // 默认9
- sizeType: ['compressed'],
- sourceType: ['album', 'camera'], // 可以指定来源是相册还是相机,默认二者都有
- success: function (res) {
- // 返回选定照片的本地文件路径列表,tempFilePath可以作为img标签的src属性显示图片
- var tempFilePaths = res.tempFilePaths;
- var commentList = that.data.commentList;
- var images = commentList[id].images;
- if (images.length > 2) {
- wx.showToast({
- title: '亲!最多上传3张哦!',
- icon: 'none',
- duration: 2000
- });
- } else {
- if (images) {
- images = images.concat(tempFilePaths);
- } else {
- images = tempFilePaths;
- }
- // 循环设置数据
- for (var i = 0, len = commentList.length; i < len; i++) {
- if (i == id) {
- commentList[id].images = images;
- commentList[id].addHide = commentList[id].images.length;
- }
- }
-
- that.setData({
- commentList: commentList,
- addHide: commentList[id].images.length
- });
- }
- }
- })
+
},
//删除图片
delete: function (e) {
diff --git a/pages/order/detail.js b/pages/order/detail.js
index 89fcccb..b913644 100644
--- a/pages/order/detail.js
+++ b/pages/order/detail.js
@@ -97,11 +97,11 @@ Page({
yuan: 0, //临时储存先前的总价格
d_yuan: 0, //抵扣余额显示
},
- return_goods: function (e) {
+ aftersales: function (e) {
var that = this, id = e.target.dataset.orderId;
var sNo = that.data.sNo;
wx.redirectTo({
- url: "../return_goods/return_goods?id=" + id + "&type=1&oid=" + sNo
+ url: "../aftersales/aftersales?id=" + id + "&type=1&oid=" + sNo
})
},
@@ -508,6 +508,24 @@ Page({
url: "/pages/order/payment?orderId="+data.sNo+"&price="+data.z_price,
})
},
+ //申请售后
+ afterSalesOrder: function(e) {
+ var that = this;
+ var info = e.currentTarget.dataset.info
+ wx.navigateTo({
+ url:"/pages/aftersales/aftersales?orderId="+info.list[0].id
+ })
+ // WXAPI.orderRemind({
+ // accessId: app.globalData.accessId,
+ // storeId: 239,
+ // storeType: 1,
+ // order_id: info.id,
+ // }).then(res => {
+ // if (res.code == 200) {
+ // that.reloadData();
+ // }
+ // })
+ },
//提醒发货
orderRemind: function(e) {
var that = this;
@@ -577,7 +595,7 @@ Page({
var that = this;
var info = e.currentTarget.dataset.info
wx.navigateTo({
- url:"/pages/order/detail?id="+info.id
+ url:"/pages/comment/comment?id="+info.id
})
},
diff --git a/pages/order/detail.wxml b/pages/order/detail.wxml
index 75208e0..8c6b2e8 100644
--- a/pages/order/detail.wxml
+++ b/pages/order/detail.wxml
@@ -140,10 +140,12 @@
立即付款
+ 申请售后
提醒发货
提醒发货
+ 申请售后
查看物流
确认收货
diff --git a/pages/order/order.js b/pages/order/order.js
index 478c4eb..f1af316 100644
--- a/pages/order/order.js
+++ b/pages/order/order.js
@@ -209,7 +209,7 @@ Page({
var that = this;
var info = e.currentTarget.dataset.info
wx.navigateTo({
- url:"/pages/order/detail?id="+info.id
+ url:"/pages/comment/comment?id="+info.id
})
},
diff --git a/pages/order/order.wxss b/pages/order/order.wxss
index b95735d..eae0a14 100644
--- a/pages/order/order.wxss
+++ b/pages/order/order.wxss
@@ -10,7 +10,7 @@ page{
white-space: nowrap;
}
.tab-itemActive{
- color: #454553;
+ color: #333333;
width: 20%;
height: 100rpx;
line-height: 100rpx;
@@ -20,7 +20,7 @@ page{
display: inline-block;
}
.tab-item {
- color: #9fa5b6;
+ color: #999999;
width: 20%;
height: 100rpx;
line-height: 100rpx;
diff --git a/pages/return_goods/index.wxss b/pages/return_goods/index.wxss
deleted file mode 100644
index c2e5d5f..0000000
--- a/pages/return_goods/index.wxss
+++ /dev/null
@@ -1,332 +0,0 @@
-.swiper-tab{
- width: 100%;
- border-bottom: 1px solid #eee;
- text-align: center;
- line-height: 80rpx;
- background: #fff;
- position: fixed;
- top: 0;
- z-index: 999;
- }
-.swiper-tab-list{
- font-size: 12px;
- display: inline-block;
- width: 50%;
- color: #666;
- }
-.on{
- color: #dd2727;
- border-bottom: 5rpx solid #dd2727;
- }
- .tab_statu{
- float: right;
- font-size: 13px;
- color: #FF6347;
-}
-.swiper-box{
- display: block;
- height: 100%;
- width: 100%;
- overflow: hidden;
- }
-
-.clearbutton{
- background: #fff;
- display: inline-block;
- margin:3% 3% 2% 3%;
- color: #dd2727;
- font-size: 14px;
- width: 94%;
-}
-.shop{
- background: #fafafa;
- padding: 4%;
- border-bottom:1px solid #eee;
-}
-.shop checkbox{
- margin-top: 27px;
- }
-.sh_slt{
- width: 65px;
- height: 65px;
- overflow: hidden;
- margin-right: 4%;
- float: left;
-}
-.sp_text{
- display:flex;
- line-height: 20px;
- width: 100%;
- text-align: left;
- padding-left:8px;
-}
-.sp_tit{
- width: 100%;
- overflow: hidden;
- font-size: 12px;
- -webkit-line-clamp:2;
-}
-.sp_neb{
- width: 100%;
- overflow: hidden;
- font-size: 12px;
- color: #999;
-}
-.sp_jg{
- width: 30%;
- overflow: hidden;
- font-size: 13px;
- color: #fc0628;
-}
-.guige{
- font-size:12px;
- color:#808080;
- text-align:right;
-}
-.dle{
- color: #999;
- font-size: 12px;
- float: right;
-}
-.dle image{
- width: 18px;
- height: 18px;
- vertical-align: sub;
-}
-.jk_bottom{
- position: fixed;
- bottom: 0;
- background: #fff;
- width: 100%;
- display: inline-flex;
- border-bottom: 1px solid #eee;
- font-size: 14px;
- color: #999;
-}
-.jk_bottom checkbox{
- margin: 4% 0 4% 4%;
-}
-.jk_bottom .heji{
- margin-top: 5.5%;
- width: 30%;
- text-align: right;
-}
-.jk_bottom .all{
- margin-top: 5.5%;
- padding-left: 2%;
-}
-.jk_bottom .js_button{
- background: #dd2727;
- float: right;
- color: #fff;
- font-size: 16px;
- text-align: center;
- width: 40%;
- position: absolute;
- right: 0;
- line-height: 50px;
-}
-.c_t60{
- clear: both;
- height: 1px;
- padding-top: 48px;
-}
-.blue{
- color: #42b1ff;
-}
-.mr_5{
- margin-right: 5px;
-}
-.list{
- border-bottom: 4px solid #eee;
-}
-.top{
- padding: 2% 4%;
- font-size:12px;
-}
-.sbut{
- background:#EE7600;
- border-radius: 10px;
- text-align:center;
- color:#fff;
- height:20px;
- margin-top:8px;
-}
-
-.sbutt{
- background:#EE7600;
- border-radius:10px;
- text-align:center;
- color:#fff;
- height:17px;
- margin:0;
- width:25%;
- font-size:12px;
-}
-
-/*优惠券 */
-.orderDetails {
- border-bottom: 10px solid #f3f3f3;
- background: #fff;
-}
-.orderListTitle {
- height: 100rpx;
- line-height: 100rpx;
- border-bottom: 1rpx solid #f3f3f3;
-}
-.orderListTitle .userImg {
- float: left;
- width: 70rpx;
- height: 70rpx;
- border-radius: 35rpx;
- margin: 15rpx;
-}
-.orderListTitle .userImg image {
- border-radius: 35rpx;
- width: 100%;
- height: 100%;
-}
-.orderListTitle .userName {
- padding-right: 50rpx;
- background: url(../../../images/member_list_arrow.png) no-repeat 90% center;
- background-size: 35rpx 35rpx;
-}
-.orderListTitle .orderStatus {
- float: right;
- margin-right: 20rpx;
- color: #2f7b27;
- font-size: 34rpx;
-}
-.orderListDetails {
- margin: 10px;
- display: flex;
- height: 200rpx;
- border-bottom: 1rpx solid #f3f3f3;
- border:2px solid #ff4081;
- border-radius: 20rpx;
-}
-.orderListDetails .productImg {
- flex: 1.3;
- height: 217rpx;
- margin-top: 20rpx;
- margin-left: 20rpx;
-}
-.orderListDetails .productImg image {
- width: 100%;
- height: 100%;
-}
-.orderListDetails .productInfo {
- flex: 1.5;
- padding: 20rpx 10rpx;
- text-align: center;
-}
-.productInfo image{
- width: 82px;
- height: 82px;
-}
-.pr {
- flex: 2.6;
- padding: 0 10rpx;
- line-height: 44rpx;
-}
-.classname {
- font-size: 25rpx;
- color: #ccc;
-}
-.coupon_box{
-display:flex;
-flex-direction:row;
-justify-content:space-between;
-align-items:center;
-margin-top:5px;
-width:90%;
-margin:10px auto;
-}
-.coupon_left{
- width: 78%;
- position:relative;
- background: #fff;
- border-radius:5px;
- height:120px;
- line-height:120px;
-}
-.coupon_right{
- width:22%;
-background:#ff6347;
-position:relative;
-height:120px;
-text-align:center;
-color:#fff;
-border-radius:5px;
-font-size:20px;
-
-}
-.right_y{
-position:absolute;
-width:25px;
-height:25px;
-border-radius:50%;
-background:#eee;
-top:48px;
-right:-13px;
-
-}
-.right_z{
-position:absolute;
-width:25px;
-height:25px;
-border-radius:50%;
-background:#eee;
-top:48px;
-left:-13px;
-}
-.gs{
- display:inline-block;
- font-size:14px;
- color:#666;
- margin-left:10px;
-}
-
-.p_all {
- border-bottom:1px solid #eee;
-}
-.drawer_screen {
- width: 100%;
- height: 100%;
- position: fixed;
- top: 0;
- left: 0;
- background: #000;
- opacity: 0.2;
- overflow: hidden;
- z-index: 1000;
- color: #fff;
-}
-
-.drawer_attr_box {
- width: 100%;
- height: 80%;
- position: fixed;
- bottom: 0;
- left: 0;
- z-index: 2000;
- background: #fff;
-}
-.thxq{
- padding: 10px;
- font-size: 13px;
-}
-.Withdraw{
- padding: 10px 0;
- font-size: 13px;
- display:flex;
- height:25px;
-}
-.cash{
- border-bottom:1px solid #eee;
- width:80%;
- margin:auto;
-}
-.Withdraw view{
- line-height:25px;
-}
\ No newline at end of file
diff --git a/pages/return_goods/return_goods.wxml b/pages/return_goods/return_goods.wxml
deleted file mode 100644
index 4870627..0000000
--- a/pages/return_goods/return_goods.wxml
+++ /dev/null
@@ -1,20 +0,0 @@
-
- 请填写售后信息
-
-
\ No newline at end of file
diff --git a/pages/return_goods/return_goods.wxss b/pages/return_goods/return_goods.wxss
deleted file mode 100644
index 571f3eb..0000000
--- a/pages/return_goods/return_goods.wxss
+++ /dev/null
@@ -1,65 +0,0 @@
-.w100{ width: 100%}
-.p_all{
- background: #fff;
- width: 92%;
- padding:2% 4%;
- color: #666;
- font-size: 14px;
- display: block;
- line-height: 25px;
-}
-.p_all01{
- width: 92%;
- padding:4%;
- color: #666;
- font-size: 14px;
- display: block;
- line-height: 25px;
-}
-.p_all text{
- width: 100%;
- display: block;
-}
-.iconWarn{
- vertical-align:top;padding-right:2px;
-}
-
-.iconClear{
- float:right;
- padding-top: 5px;
- padding-left: 10px;
- padding-right:10px;
- margin-top:-36px;
- height: 28px;
-}
-
-.inputStyle{
- height: 36px;
- line-height: 36px;
- padding-left: 2px;
- border:1px solid #ddd;
- border-radius: 3px;
- width: 100%;
-}
-
-.tips{
- margin-bottom:10px;
-}
-.x_right{
- width:16px;
- height: 18px;
- display:inline-block;
- vertical-align: middle;
- /* float: right; */
-}
-.zhifu{
- background: #fff;
- margin-bottom: 1px;
- padding: 4%;
- width: 92%;
- font-size: 14px;
- color: #666;
-}
-.min_60{
- min-height: 60px;
-}
\ No newline at end of file
diff --git a/pages/user/user.wxml b/pages/user/user.wxml
index 65b67d7..57280b7 100644
--- a/pages/user/user.wxml
+++ b/pages/user/user.wxml
@@ -135,8 +135,8 @@
待评价
-
-
+
+
{{th}}
diff --git a/utils/server.js b/utils/server.js
index a8de4a4..64572a3 100644
--- a/utils/server.js
+++ b/utils/server.js
@@ -208,6 +208,10 @@ module.exports = {
messageList: (data) => { //查看店铺信息
return requestServer('app.message.index', 'post', data)
},
-
-
+ commentList: (data) => { //评价
+ return requestServer('app.product.comment', 'post', data)
+ },
+ returnMethod: (data) => { //申请售后
+ return requestServer('app.order.return_method', 'post', data)
+ },
}
\ No newline at end of file