支付状态颜色改动
This commit is contained in:
		
							parent
							
								
									8817bad96c
								
							
						
					
					
						commit
						0e85a92e51
					
				|  | @ -2,7 +2,7 @@ | ||||||
|     <view class="order-item-wrapper flex flex-col box-border" @click="goDetail"> |     <view class="order-item-wrapper flex flex-col box-border" @click="goDetail"> | ||||||
|         <view class="nav-info flex flex-justify-between" > |         <view class="nav-info flex flex-justify-between" > | ||||||
|             <view>订单编号:{{ detail.order_no }}</view> |             <view>订单编号:{{ detail.order_no }}</view> | ||||||
|             <view>{{ stateConfig[detail.state] }}</view> |             <view :style="{color:stateColor[detail.state] || ''}">{{ stateConfig[detail.state] }}</view> | ||||||
|         </view> |         </view> | ||||||
|         <view class="order-info"> |         <view class="order-info"> | ||||||
|             <view class="content flex"> |             <view class="content flex"> | ||||||
|  | @ -33,7 +33,7 @@ | ||||||
|  </template> |  </template> | ||||||
|   |   | ||||||
|  <script setup> |  <script setup> | ||||||
|     import { stateConfig } from '../config'; |     import { stateConfig, stateColor } from '../config'; | ||||||
|     const props = defineProps({ |     const props = defineProps({ | ||||||
|         detail:{ |         detail:{ | ||||||
|             type:Object, |             type:Object, | ||||||
|  |  | ||||||
|  | @ -57,6 +57,11 @@ export const stateConfig = { | ||||||
|     9: '订单取消' |     9: '订单取消' | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  | export const stateColor = { | ||||||
|  |     2: '#FF8400',   | ||||||
|  |     7: '#FF0000',   | ||||||
|  | } | ||||||
|  | 
 | ||||||
| export const tabs = [{ | export const tabs = [{ | ||||||
|   tabName:'全部订单', |   tabName:'全部订单', | ||||||
|   state:0, |   state:0, | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue