123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136 |
- <template>
- <view class="body">
- <view class="content">
- <u-toast ref="uToast" />
- <view >
- <!-- <scroll-view :scroll-top="scrollTop" scroll-y="true" class="scroll-Y" @scrolltolower="lower" lower-threshold="100" >
-
- </scroll-view> -->
- <view class="paddingOder">
- <view class="model" v-for="(item,index) in noticeList" :key=index>
- <ul>
- <li>
- <view class="Number">
- <p style="width: 1vw; height: 1vw; background-color: blue; border-radius: 50%; margin-top: 2vw; margin-right: 2vw;"></p>
- <p>单号:</p>
- <p style="margin-left: 2vw;">{{item.no}}</p>
- </view>
- <view class="playOder">
- <p style="width: 1vw; height: 1vw; background-color: red; border-radius: 50%; margin-top: 2vw; margin-right: 2vw;"></p>
- <p>商品名称:</p>
- <p style="margin-left: 2vw;">{{item.product_name}}</p>
- </view>
- <view class="playOder">
- <p style="width: 1vw; height: 1vw; background-color: grey; border-radius: 50%; margin-top: 2vw; margin-right: 2vw;"></p>
- <p>价格:</p>
- <p style="margin-left: 2vw; color: red;">¥{{item.price}}</p>
- </view>
- <view class="playOder">
- <p style="width: 1vw; height: 1vw; background-color: green; border-radius: 50%; margin-top: 2vw; margin-right: 2vw;"></p>
- <p>状态:</p>
- <p style="margin-left: 2vw; color: #fed204;">{{item.status_text}}</p>
- </view>
-
- </li>
- <!-- <li> <image style="width: 20vw; height: 20vw; margin-top: 2vw;" :src="item.imgLink"></image></li> -->
- </ul>
- </view>
- </view>
- </view>
- </view>
- </view>
- </template>
- <script>
-
- export default{
-
- data(){
- return{
- trailerKeyboardShow:true,
- control:false,
- scrollTop: 0,
- token:'',
- noticeList:[],
- page:1,
- totals:'',
- pageSize:'',
- status:1
- }
- },
- onLoad() {
- this.getNoticeLists()
- },
- methods:{
- // lower(e){
- // if(this.pageSize*this.page<this.totals){
- // this.page+=1
- // this.getNoticeLists(this.page,this.status)
- // }
-
- // },
- getNoticeLists(){
- this.$api.getorderlist(res=>{
- if(res.code==0){
- this.noticeList= res.data
- }else{
- this.errorToast(res.msg)
- }
- })
- },
- errorToast(msg){
- this.$refs.uToast.show({
- title: msg,
- type: 'error',
- duration:2000
- })
- },
- },
-
- }
- </script>
- <style scoped lang="scss">
- .body{
- width: 100vw;
- height: 99vh;
- box-sizing: border-box;
- padding: 0 2vw;
- background-color: #fafafa ;
- }
- .paddingOder{
- width: 96vw;
- height: 93vh;
- background-color: #fafafa;
- border-radius: 8px;
- .model{
- width: 96vw;
- height: 26vw;
- box-sizing: border-box;
- padding: 0 3vw;
- background-color: white;
- border-radius: 20px;
- margin-top: 2vw;
- ul{
- display: flex;
- justify-content: space-between;
- li{
- .Number{
- font-size: 0.8rem;
- display: flex;
- margin-top: 1vw;
- }
- .playOder{
- display: flex;
- font-size: 0.75rem;
- margin-top: 1vw;
- color:#808080;
- }
- }
- li:nth-child(2){
- line-height: 20vw;
- color: red;
- }
- }
- }
- }
- </style>
|