Browse Source

2023-12-3

master
guoxing 2 years ago
parent
commit
7842c74a67
  1. 118
      pages/card/card.vue
  2. BIN
      static/OIP-C.jpg
  3. BIN
      static/binding.png
  4. BIN
      static/bomicon/bom_notPack.png
  5. BIN
      static/bomicon/bom_notRecord.png
  6. BIN
      static/bomicon/bom_pack.png
  7. BIN
      static/bomicon/bom_record.png
  8. BIN
      static/card_item.png
  9. BIN
      static/card_item2.png
  10. BIN
      static/hmoe_bj.png
  11. BIN
      static/pack.png
  12. BIN
      static/pack2.png

118
pages/card/card.vue

@ -1,29 +1,45 @@
<template> <template>
<!-- 有列表的时候用 :auto='false' 需要你在onload等调用reload方法 --> <view style="display: flex;flex-direction: column;">
<z-paging ref="paging" v-model="data" @query="queryList" :auto='true'>
<view class="top">
<view class="btn" @click="bind">
<image src="@/static/binding.png" style="width: 20px;height: 20px;"></image>
<text
style="line-height: 35px;font-size: 18px; text-align: center;color: #FE6B00;margin-left: 10px;">绑定新卡</text>
</view>
<view @click="bind"
style="background: #f1f2f3;width: 100%;height: 35px;display: flex;flex-direction: row;justify-content: center;align-items: center;">
<image src="../../static/btn_bj.png" style="width: 15px;height: 15px;"></image>
<text style="line-height: 35px;text-align: center;color: red;margin-left: 5px;">绑定新卡</text>
</view> </view>
<view style="display: flex;flex-direction: column;padding-top: 10px;"> <view style="display: flex;flex-direction: column;
background-color: #fff;
height: 50vh; z-index: 100;
border-top-left-radius: 25px;border-top-right-radius: 25px;margin-top: -20px;">
<z-paging ref="paging" use-page-scroll v-model="data" @query="queryList" :auto='true' hight="30px"
:autoHeight='false'>
<view v-for="(item,index) in data" :key="index" style="display: flex;flex-direction: column;align-items: center;"
<view v-for="(item,index) in data" :key="index"
style="display: flex;flex-direction: column;align-items: center;margin-top: 10px; "
:class="item.showBtn==true?'oragin':'gray'" @click="detail(item)"> :class="item.showBtn==true?'oragin':'gray'" @click="detail(item)">
<view
<!-- <view
style="display: flex;flex-direction: column;border: 1px solid #e29a68;width: 90%;border-radius: 20rpx;margin-top: 8px;"> style="display: flex;flex-direction: column;border: 1px solid #e29a68;width: 90%;border-radius: 20rpx;margin-top: 8px;">
<view class="use"> <view class="use">
<image style="width: 70rpx;height: 70rpx;position: absolute;right: 40px;" <image style="width: 70rpx;height: 70rpx;position: absolute;right: 40px;"
src="../../static/card_line.png"></image> src="../../static/card_line.png"></image>
<image src="../../static/gift.png" style="width: 30px;height: 30px;padding-left: 6px;"></image> <image src="../../static/gift.png" style="width: 30px;height: 30px;padding-left: 6px;">
</image>
<view style="flex: 1;display: flex;flex-direction: column;z-index: 1;"> <view style="flex: 1;display: flex;flex-direction: column;z-index: 1;">
<view style="font-size: 14px;padding: 2px;padding-left: 5px;padding-top: 7px;">{{item.name}} <view style="font-size: 14px;padding: 2px;padding-left: 5px;padding-top: 7px;">
{{item.name}}
</view>
<view style="font-size: 12px;padding-left: 5px;padding-bottom: 6px;">{{item.time}}
</view> </view>
<view style="font-size: 12px;padding-left: 5px;padding-bottom: 6px;">{{item.time}}</view>
</view> </view>
<view v-if="item.showBtn" @click.stop="booking(item.sid)" <view v-if="item.showBtn" @click.stop="booking(item.sid)"
@ -38,16 +54,46 @@
{{item.state}} {{item.state}}
</view> </view>
</view> </view>
</view> -->
<view class="item" :class="{ item2: !item.showBtn }"
style="display: flex;flex-direction: row;width: 85%; margin-left: 10px; margin-right: 10px; padding: 16px; ">
<view style="display: flex;flex-direction: row; align-items: center; flex: 1;">
<image src="@/static/pack.png" mode="aspectFill" v-show="item.showBtn"
style="width: 50px;height: 50px;margin-right: 10px;" />
<image src="@/static/pack2.png" mode="aspectFill" v-show="!item.showBtn"
style="width: 50px;height: 50px;margin-right: 10px;" />
<view style="display: flex;flex-direction: column;margin-right: 10px; ">
<text style="font-size: 12px;color: #333;"> {{item.name}}</text>
<text style="font-size: 12px;color: #999;margin-top: 5px;"> {{item.time}}</text>
<view style="display: flex;flex-direction: row;align-items: center;margin-top: 5px;">
<text style="font-size: 12px;color: #FF7100;"> {{item.pname}}</text>
<text
style="border: 1px #FED4B3 solid;margin-left: 10px;border-radius: 15px;padding: 3px 10px; font-size: 13px; color: #FF6000;">
{{item.state}}</text>
</view> </view>
</view> </view>
<uni-popup ref="inputDialog" type="dialog"> </view>
<uni-popup-dialog ref="inputClose" mode="input" title="绑定新卡" :value="page.remarks" placeholder="请输入卡号" <view style="font-size: 12px;color:#fff;
@confirm="dialogInputConfirm"></uni-popup-dialog> border-radius: 15px; height: 18px;padding: 3px 8px;
</uni-popup> background: -webkit-linear-gradient(left,#FF7405,#FFAD6D);">预约提货</view>
</view>
</view> </view>
</z-paging> </z-paging>
</view>
</view>
</template> </template>
@ -58,7 +104,7 @@
page: { page: {
remarks: '' remarks: ''
}, },
data: [] data: [],
} }
}, },
onLoad() { onLoad() {
@ -66,6 +112,7 @@
// //
this.$refs.paging.reload(true); this.$refs.paging.reload(true);
}) })
}, },
onUnload() { onUnload() {
uni.$off('order'); uni.$off('order');
@ -121,6 +168,43 @@
</script> </script>
<style> <style>
.top {
width: 100%;
height: 60vh;
/* 加载背景图 */
background-image: url(../../static/OIP-C.jpg);
/* 让背景图基于容器大小伸缩 */
background-size: cover;
}
.btn {
margin-top: 45vh;
width: 83%;
margin-left: 30px;
margin-right: 30px;
background-color: #FFF;
border-radius: 20px;
display: flex;
height: 40px;
flex-direction: row;
justify-content: center;
align-items: center;
}
.item {
/* 加载背景图 */
background-image: url(../../static/card_item.png);
/* 让背景图基于容器大小伸缩 */
background-size: cover;
}
.item2 {
/* 加载背景图 */
background-image: url(../../static/card_item2.png);
/* 让背景图基于容器大小伸缩 */
background-size: cover;
}
.use { .use {
display: flex; display: flex;
flex-direction: row; flex-direction: row;

BIN
static/OIP-C.jpg

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

BIN
static/binding.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

BIN
static/bomicon/bom_notPack.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
static/bomicon/bom_notRecord.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1000 B

BIN
static/bomicon/bom_pack.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

BIN
static/bomicon/bom_record.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

BIN
static/card_item.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

BIN
static/card_item2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

BIN
static/hmoe_bj.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 806 KiB

BIN
static/pack.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

BIN
static/pack2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.8 KiB

Loading…
Cancel
Save