修改 华为商城相机问题
This commit is contained in:
@@ -1,9 +1,14 @@
|
||||
<template>
|
||||
<Cn-page :loading='loading'>
|
||||
<view slot='body'>
|
||||
<view class='index'>
|
||||
<uni-card title="设备信息" sub-title="副标题" v-for="item in 3" :key="item"
|
||||
thumbnail="/static/real_time_data.png">
|
||||
<Cn-page :loading="loading">
|
||||
<view slot="body">
|
||||
<view class="index">
|
||||
<uni-card
|
||||
title="设备信息"
|
||||
sub-title="副标题"
|
||||
v-for="item in 3"
|
||||
:key="item"
|
||||
thumbnail="/static/real_time_data.png"
|
||||
>
|
||||
<view class="footer">
|
||||
<text>设备基础信息 </text>
|
||||
<view class="footer-btn" @click="del">移除</view>
|
||||
@@ -16,41 +21,41 @@
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
data () {
|
||||
data() {
|
||||
return {
|
||||
loading: false
|
||||
loading: false,
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
del(){
|
||||
del() {
|
||||
uni.showModal({
|
||||
title: '提示',
|
||||
content: '确定要移除该设备权限吗?',
|
||||
success: function (res) {
|
||||
if (res.confirm) {
|
||||
console.log('用户点击确定');
|
||||
console.log('用户点击确定')
|
||||
} else if (res.cancel) {
|
||||
console.log('用户点击取消');
|
||||
console.log('用户点击取消')
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
})
|
||||
},
|
||||
newDevice () {
|
||||
newDevice() {
|
||||
uni.scanCode({
|
||||
onlyFromCamera: true,
|
||||
success: function (res) {
|
||||
console.log('条码类型:' + res.scanType);
|
||||
console.log('条码内容:' + res.result);
|
||||
console.log('条码类型:' + res.scanType)
|
||||
console.log('条码内容:' + res.result)
|
||||
uni.navigateTo({
|
||||
url: '/pages/gateway/newDevice'
|
||||
url: '/pages/gateway/newDevice',
|
||||
})
|
||||
}
|
||||
});
|
||||
|
||||
},
|
||||
})
|
||||
},
|
||||
}
|
||||
},
|
||||
}
|
||||
</script>
|
||||
<style lang='scss'>
|
||||
<style lang="scss">
|
||||
.index {
|
||||
.footer {
|
||||
display: flex;
|
||||
@@ -69,5 +74,4 @@ export default {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
</style>
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user