|
|
|
@ -19,23 +19,30 @@ |
|
|
|
|
<view class="block_1 flex-col"> |
|
|
|
|
|
|
|
|
|
<view class="list_1 flex-col"> |
|
|
|
|
<view class="list-items_1 flex-col" v-for="(item, index) in loopData0" :key="index"> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<view class="list-items_1 flex-col" v-for="(item, index) in list" :key="index" |
|
|
|
|
v-if="list.length>0"> |
|
|
|
|
<view class="text-wrapper_1 flex-row justify-between"> |
|
|
|
|
<text class="text_2">2号台桌</text> |
|
|
|
|
<text class="text_3">取酒码:1111</text> |
|
|
|
|
<text class="text_2">{{item.product_name}}</text> |
|
|
|
|
<text class="text_3">取酒码:{{item.code}}</text> |
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<view class="text-wrapper_2 flex-row justify-between"> |
|
|
|
|
<text class="text_4">到期时间1231</text> |
|
|
|
|
<text class="text_5">x1</text> |
|
|
|
|
<text class="text_4">到期时间:{{item.out_time}}</text> |
|
|
|
|
<text class="text_5">x{{item.now_num}}</text> |
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<view class="text-wrapper_3 flex-row"> |
|
|
|
|
<text class="text_6">存酒时间200000</text> |
|
|
|
|
<text class="text_6">存酒时间:{{item.c_time}}</text> |
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<view v-if="list.length==0"> |
|
|
|
|
<view style="color: white;text-align: center;font-size: 20px;">暂无记录</view> |
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
@ -45,29 +52,43 @@ |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<script> |
|
|
|
|
import { |
|
|
|
|
getcunjiu |
|
|
|
|
} from '@/api/api.js' |
|
|
|
|
import { |
|
|
|
|
HTTP_REQUEST_URL |
|
|
|
|
} from '@/config/app'; |
|
|
|
|
export default { |
|
|
|
|
|
|
|
|
|
data() { |
|
|
|
|
return { |
|
|
|
|
imgHost: HTTP_REQUEST_URL, |
|
|
|
|
getHeight: this.$util.getWXStatusHeight(), |
|
|
|
|
list: [], |
|
|
|
|
loopData0: [{ |
|
|
|
|
lanhutext0: '2号桌台', |
|
|
|
|
lanhutext1: '取酒码:0301', |
|
|
|
|
lanhutext2: '到期时间:2024-10-26', |
|
|
|
|
lanhutext3: 'x2', |
|
|
|
|
lanhutext4: '存酒时间:2024-10-26 15:00:00' |
|
|
|
|
} |
|
|
|
|
], |
|
|
|
|
lanhutext0: '2号桌台', |
|
|
|
|
lanhutext1: '取酒码:0301', |
|
|
|
|
lanhutext2: '到期时间:2024-10-26', |
|
|
|
|
lanhutext3: 'x2', |
|
|
|
|
lanhutext4: '存酒时间:2024-10-26 15:00:00' |
|
|
|
|
}], |
|
|
|
|
constants: {} |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|
onLoad() { |
|
|
|
|
this.getData() |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
goarrow() { |
|
|
|
|
uni.navigateBack() |
|
|
|
|
}, |
|
|
|
|
getData() { |
|
|
|
|
console.log(4555) |
|
|
|
|
getcunjiu().then(res => { |
|
|
|
|
this.list = res.data |
|
|
|
|
|
|
|
|
|
}).catch(err => { |
|
|
|
|
|
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|