Преглед изворни кода

优化pad端商品订单状态

yuhao пре 2 година
родитељ
комит
8c058f294b
2 измењених фајлова са 6 додато и 4 уклоњено
  1. 3 2
      src/pages/customerMan/myOrder/index.vue
  2. 3 2
      src/pages/payUser/myOrder/index.vue

+ 3 - 2
src/pages/customerMan/myOrder/index.vue

@@ -174,11 +174,12 @@ status: 5 -->
174 174
               <el-table-column prop="status" label="状态" show-overflow-tooltip>
175 175
                 <template slot-scope="scope">
176 176
                   <div :class="'classShow' + scope.$index">
177
-                    {{
177
+                    <!-- {{
178 178
                       scope.row.status == 1 || scope.row.status == 2
179 179
                         ? goodStatus[scope.row.status]
180 180
                         : goodStatus[goodStatus.length - 1]
181
-                    }}
181
+                    }} -->
182
+                    {{scope.row.status==2||scope.row.status==3?'已取货':scope.row.status==0?'未支付':scope.row.status==1?'待取货':'已取消'}}
182 183
                   </div>
183 184
                 </template>
184 185
               </el-table-column>

+ 3 - 2
src/pages/payUser/myOrder/index.vue

@@ -179,11 +179,12 @@ status: 5 -->
179 179
               <el-table-column prop="status" label="状态" show-overflow-tooltip>
180 180
                 <template slot-scope="scope">
181 181
                   <div :class="'classShow' + scope.$index">
182
-                    {{
182
+                    <!-- {{
183 183
                       scope.row.status == 1 || scope.row.status == 2
184 184
                         ? goodStatus[scope.row.status]
185 185
                         : goodStatus[goodStatus.length - 1]
186
-                    }}
186
+                    }} -->
187
+                    {{scope.row.status==2||scope.row.status==3?'已取货':scope.row.status==0?'未支付':scope.row.status==1?'待取货':'已取消'}}
187 188
                   </div>
188 189
                 </template>
189 190
               </el-table-column>