#
whycq
2024-07-08 c69b2a0ccd8ed4fe8f11b7bad34bc00b0aa2aaf7
pages/order/orderList.vue
@@ -1,5 +1,19 @@
<template>
   <view>
      <view class="status_bar">
         <!-- 这里是状态栏 -->
      </view>
      <uni-nav-bar left-icon="left" background-color="#f8f8f8" title="组托上架" @clickLeft="back"  :fixed="true"
         :border="false" rightWidth="160rpx" leftWidth="160rpx"
         >
         <block slot="right">
            <view class="city">
               <view>
                  <text class="uni-nav-bar-text">{{store}}</text>
               </view>
            </view>
         </block>
       </uni-nav-bar>
      <view class="card" v-for="item in menuList" @click="chose(item)">
         {{item}}
      </view>
@@ -12,15 +26,25 @@
         return {
            baseUrl: '',
            token: '',
            storeId: 0,
            store: '',
            menuList: []
         }
      },
      onShow() {
         this.baseUrl = uni.getStorageSync('baseUrl');
         this.token = uni.getStorageSync('token');
         this.storeId = uni.getStorageSync('store')
         if (this.storeId == 1) {
            this.store = '宁波仓'
         }
         if (this.storeId == 2) {
            this.store = '新昌仓'
         }
         this.getOrderNoList()
      },
      methods: {
         back() { uni.navigateBack({}) },
         getOrderNoList() {
            let that = this
            uni.request({
@@ -61,6 +85,7 @@
</script>
<style>
   @import url('../../static/css/wms.css/wms.css');
   .card {
      margin: 20rpx;
      padding: 30rpx;