소스 검색

修改售后列表

pangqijun 1 년 전
부모
커밋
c8035aa42f
3개의 변경된 파일30개의 추가작업 그리고 6개의 파일을 삭제
  1. 1 1
      pages/order/index.vue
  2. 1 1
      pages/users/user_return_list/index.vue
  3. 28 4
      pages/users/user_return_list/module/mescrollUni-item.vue

+ 1 - 1
pages/order/index.vue

@@ -89,7 +89,7 @@
 								</text>
 							</view>
 							<view class="a-b2">
-								<image src="http://www.gzzzyd.com/groupon/order_details/微信@2x.png" mode="scaleToFill" @click="openPopup(item.qrCode)"></image>
+								<image src="http://www.gzzzyd.com/groupon/order_details/微信@2x.png" mode="scaleToFill" v-if="item.qrCoded" @click="openPopup(item.qrCode)"></image>
 								<image src="http://www.gzzzyd.com/groupon/order_details/电话键盘_填充@2x.png" mode="scaleToFill" @click="callPhone(item.phone)"></image>
 							</view>
 						</view>

+ 1 - 1
pages/users/user_return_list/index.vue

@@ -45,7 +45,7 @@
 					title: '全部',
 					id: '0'
 				}, {
-					title: '申请中',
+					title: '处理中',
 					id: '1'
 				},{
 					title: '已退款',

+ 28 - 4
pages/users/user_return_list/module/mescrollUni-item.vue

@@ -57,6 +57,11 @@
 				</view>
 			</view>
 
+      <view class="op-area">
+<!--        <button v-if="item.status == 3" class="action-btn" @click="cancelOrder(item.afterSalesNo)">上传物流单号</button>-->
+        <button class="action-btn" @click="cancelOrder(item.afterSalesNo)">上传物流单号</button>
+      </view>
+
 		</view>
 
 	</mescroll-uni>
@@ -134,17 +139,14 @@
 					size: 10,
 					state:this.index
 				}
-
 				getUserAfterSalesList(httpData).then((res) => {
-
 					//联网成功的回调,隐藏下拉刷新和上拉加载的状态;
 					this.mescroll.endSuccess(res.data.records.length,res.data.records.length === 10);
 					//设置列表数据
 					if (page.num === 1) this.list = []; //如果是第一页需手动制空列表
 					if (res.data.records.length > 0){
-						this.list = this.list.concat(res.data.records.redias); //追加新数据
+						this.list = this.list.concat(res.data.records); //追加新数据
 					}
-					console.log("+++++++++++++++++++++",this.list)
 				}).catch((err) => {
 					//联网失败, 结束加载
 					this.mescroll.endErr();
@@ -170,4 +172,26 @@
 <style>
 	@import '/static/css/common.css';
 	@import './index.rpx.css';
+
+  .op-area {
+    height: 120 rpx;
+    display: flex;
+    justify-content: flex-end;
+    line-height: 120 rpx;
+    padding: 20 rpx 0;
+    text-align: right;
+  }
+
+  .action-btn {
+    min-width: 200rpx;
+    background: #FFF7F8;
+    border-radius: 32rpx;
+    border: 2rpx solid #B22338;
+    margin-right: 30rpx;
+    height: 64rpx;
+    font-size: 24rpx;
+    font-weight: 400;
+    color: #B22338;
+    line-height: 64rpx;
+  }
 </style>