feat: nfc写入样式

This commit is contained in:
yangzhe 2025-04-16 09:07:43 +08:00
parent f0fcc94f79
commit d82d03f694
4 changed files with 37 additions and 12 deletions

12
App.vue
View File

@ -79,20 +79,20 @@ export default {
const normalTabBar = [ const normalTabBar = [
{ {
pagePath: "/pages/index/planList", pagePath: "/pages/index/planList",
iconPath: "/static/tab/list.png", iconPath: "/static/tab/planList.png",
selectedIconPath: "/static/tab/list_cur.png", selectedIconPath: "/static/tab/planList-active.png",
text: "计划", text: "计划",
}, },
{ {
pagePath: "/pages/index/index", pagePath: "/pages/index/index",
iconPath: "/static/tab/home.png", iconPath: "/static/tab/admin-home.png",
selectedIconPath: "/static/tab/home_cur.png", selectedIconPath: "/static/tab/admin-home-acitve.png",
text: "首页", text: "首页",
}, },
{ {
pagePath: "/pages/user/index", pagePath: "/pages/user/index",
iconPath: "/static/tab/my.png", iconPath: "/static/tab/admin-my.png",
selectedIconPath: "/static/tab/my_cur.png", selectedIconPath: "/static/tab/admin-my-active.png",
text: "设置", text: "设置",
}, },
]; ];

View File

@ -31,7 +31,7 @@
<view class="dialog-image-container"> <view class="dialog-image-container">
<!-- 替换为实际的图片路径 --> <!-- 替换为实际的图片路径 -->
<image <image
src="/static/images/nfc-dialog-icon.png" src="/static/adminImg/nfc-result.png"
mode="widthFix" mode="widthFix"
class="dialog-image" class="dialog-image"
></image> ></image>

View File

@ -46,7 +46,12 @@
<view v-for="i in 80" class="item-box"> <view v-for="i in 80" class="item-box">
<view class="item-title">子区域{{ i }}</view> <view class="item-title">子区域{{ i }}</view>
<view v-if="i % 2 === 0" class="btn-have btn">已绑定</view> <view v-if="i % 2 === 0" class="btn-have btn">已绑定</view>
<view v-if="i % 2 !== 0" class="btn-none btn">去绑定</view> <view
v-if="i % 2 !== 0"
class="btn-none btn"
@click="showDialog = true"
>去绑定</view
>
</view> </view>
</scroll-view> </scroll-view>
</view> </view>
@ -57,16 +62,27 @@
@click="changeFn" @click="changeFn"
v-model:value="selectShow" v-model:value="selectShow"
></u-action-sheet> ></u-action-sheet>
<bind-dialog
:visible="showDialog"
@close="showDialog = false"
@changeBinding="onChangeBinding"
@confirm="onConfirm"
></bind-dialog>
<u-tabbar :list="vuex_tabbar"></u-tabbar> <u-tabbar :list="vuex_tabbar"></u-tabbar>
</view> </view>
</template> </template>
<script> <script>
import { loginApi } from "@/api/apiList"; import { loginApi } from "@/api/apiList";
import BindDialog from "@/pages/adminNfc/components/bindDialog.vue"; //
export default { export default {
components: {
BindDialog,
},
data() { data() {
return { return {
keyword: "", keyword: "",
selectShow: false, selectShow: false,
showDialog: false,
selectVal: "全部", selectVal: "全部",
options: [ options: [
{ {
@ -125,6 +141,15 @@ export default {
console.log(val, "val--"); console.log(val, "val--");
this.tabCurrent = val; this.tabCurrent = val;
}, },
onChangeBinding() {
console.log("点击了更换绑定");
//
},
onConfirm() {
console.log("点击了知道了");
//
},
}, },
}; };
</script> </script>
@ -156,14 +181,14 @@ export default {
} }
} }
.card-left { .card-left {
background: url("/static/adminImg/icon-bg1.png") no-repeat right 32rpx bottom 20rpx / background: url("/static/adminImg/icon-bg1.png") no-repeat right 32rpx
60rpx 60rpx; bottom 20rpx / 60rpx 60rpx;
background-color: #4974f3; background-color: #4974f3;
} }
.card-right { .card-right {
margin-left: 20rpx; margin-left: 20rpx;
background: url("/static/adminImg/icon-bg2.png") no-repeat right 32rpx bottom 20rpx / background: url("/static/adminImg/icon-bg2.png") no-repeat right 32rpx
60rpx 60rpx; bottom 20rpx / 60rpx 60rpx;
background-color: #53d5a9; background-color: #53d5a9;
} }
} }

View File

Before

Width:  |  Height:  |  Size: 9.8 KiB

After

Width:  |  Height:  |  Size: 9.8 KiB