修改小程序目录,删除示例小程序
This commit is contained in:
4
miniprogram/src/pages/residents/code.config.js
Normal file
4
miniprogram/src/pages/residents/code.config.js
Normal file
@@ -0,0 +1,4 @@
|
||||
export default definePageConfig({
|
||||
navigationBarTitleText: '身份码'
|
||||
})
|
||||
|
8
miniprogram/src/pages/residents/code.css
Normal file
8
miniprogram/src/pages/residents/code.css
Normal file
@@ -0,0 +1,8 @@
|
||||
.time-text {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
#qrcode {
|
||||
width: 70vw;
|
||||
height: 70vw;
|
||||
}
|
21
miniprogram/src/pages/residents/code.vue
Normal file
21
miniprogram/src/pages/residents/code.vue
Normal file
@@ -0,0 +1,21 @@
|
||||
<template>
|
||||
<view style="background-color: #F6F6F6;height: 100%;">
|
||||
<image src="../../image/home.jpg" style="width: 100%;height: 130px;"></image>
|
||||
</view>
|
||||
<view style="text-align: center; margin-top: 100px;">
|
||||
<view><text>{{ stuId }} {{ name }}</text></view>
|
||||
<image id="qrcode" src="{{imgUrl}}"></image>
|
||||
<view><text class="time-text">{{ time }}</text></view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import './code.css'
|
||||
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
Reference in New Issue
Block a user