|
|
@@ -1,6 +1,8 @@
|
|
|
<template>
|
|
|
- <view>
|
|
|
-
|
|
|
+ <view class="content-box">
|
|
|
+ <uni-nav-bar fixed="true" statusBar="true" left-icon="back" :title="title" background-color="#F7F9FA"
|
|
|
+ color="#000" @clickLeft="back"></uni-nav-bar>
|
|
|
+
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
|
@@ -8,15 +10,45 @@
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
-
|
|
|
+ title: '',
|
|
|
+ dataObj: {
|
|
|
+
|
|
|
+ },
|
|
|
}
|
|
|
},
|
|
|
+
|
|
|
+
|
|
|
+ onLoad(options) {
|
|
|
+ this.title = options.taskName
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ },
|
|
|
+
|
|
|
methods: {
|
|
|
-
|
|
|
+ // 相机扫码
|
|
|
+ HandlScanCode() {
|
|
|
+ let _this = this
|
|
|
+ uni.scanCode({
|
|
|
+ success: function(res) {
|
|
|
+ console.log(res)
|
|
|
+ }
|
|
|
+ })
|
|
|
+ //_this.Scancodedate('res')
|
|
|
+ },
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
</script>
|
|
|
|
|
|
-<style>
|
|
|
+<style lang="scss" scoped>
|
|
|
+ .content-box {
|
|
|
+ height: 100vh;
|
|
|
+ overflow: hidden;
|
|
|
+ display: flex;
|
|
|
+ flex-direction: column;
|
|
|
|
|
|
-</style>
|
|
|
+ }
|
|
|
+</style>
|