|
@@ -41,11 +41,11 @@
|
|
|
<view class="log bg2"></view>
|
|
|
<p>扫码开关</p>
|
|
|
</view>
|
|
|
- <view class="list_child">
|
|
|
+ <view class="list_child" @tap="uppops">
|
|
|
<view class="log bg3"></view>
|
|
|
<p>工作方式</p>
|
|
|
</view>
|
|
|
- <view class="list_child">
|
|
|
+ <view class="list_child" @tap="uphelp">
|
|
|
<view class="log bg4"></view>
|
|
|
<p>帮助</p>
|
|
|
</view>
|
|
@@ -68,6 +68,23 @@
|
|
|
<view class="cancel" @tap="()=>topup()">取消</view>
|
|
|
</view>
|
|
|
</z-popup>
|
|
|
+ <z-popup v-model="allshow">
|
|
|
+ <view class="popup_title">
|
|
|
+ <p>请选择工作方式</p>
|
|
|
+ </view>
|
|
|
+ <view class="popup_content">
|
|
|
+ <ul>
|
|
|
+ <li v-for="(item, index) in lists" :key="index" @tap="()=>selectup(index)">
|
|
|
+ <p>{{item.name}}</p>
|
|
|
+ <view class="start" v-if="action === index ? true: false">
|
|
|
+ <img src="../../static/gou.png" alt="">
|
|
|
+ </view>
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+ <view class="top"></view>
|
|
|
+ <view class="cancel" @tap="()=>topup()">取消</view>
|
|
|
+ </view>
|
|
|
+ </z-popup>
|
|
|
</view>
|
|
|
</template>
|
|
|
<script>
|
|
@@ -83,6 +100,7 @@
|
|
|
intentServer:null,
|
|
|
navname: '我的',
|
|
|
all: false,
|
|
|
+ allshow: false,
|
|
|
action: '',
|
|
|
list: [{
|
|
|
name: '相机'
|
|
@@ -92,7 +110,15 @@
|
|
|
},
|
|
|
{
|
|
|
name: 'RFID读取器'
|
|
|
- }]
|
|
|
+ }],
|
|
|
+ lists: [
|
|
|
+ {
|
|
|
+ name: '单次扫描'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ name: '连续扫描'
|
|
|
+ }
|
|
|
+ ]
|
|
|
}
|
|
|
},
|
|
|
created(option) {
|
|
@@ -126,15 +152,25 @@
|
|
|
url: "/pages/individual/index"
|
|
|
})
|
|
|
},
|
|
|
+ uphelp () {
|
|
|
+ uni.redirectTo({
|
|
|
+ url: "/pages/help/index"
|
|
|
+ })
|
|
|
+ },
|
|
|
uppop () {
|
|
|
uni.hideTabBar({})
|
|
|
this.all = true
|
|
|
},
|
|
|
+ uppops () {
|
|
|
+ uni.hideTabBar({})
|
|
|
+ this.allshow = true
|
|
|
+ },
|
|
|
selectup (index) {
|
|
|
this.action = index
|
|
|
},
|
|
|
topup () {
|
|
|
this.all = false
|
|
|
+ this.allshow = false
|
|
|
uni.showTabBar()//显示导航栏
|
|
|
}
|
|
|
},
|