102 lines
2.2 KiB
Vue
102 lines
2.2 KiB
Vue
<template>
|
|
<tpx-page>
|
|
<tpx-layout>
|
|
<template v-slot:body>
|
|
<view class="com-jianju pos-rlt pb-30" style="padding-top: 2rpx;">
|
|
|
|
<view class="blcok-white radius-20">
|
|
<view class="">
|
|
|
|
<view class="">
|
|
<view class="mb-10 font-weight">监听扫码事件key</view>
|
|
<tpx-input v-model:value="submitParam.actionKey" placeholder="actionKey"></tpx-input>
|
|
</view>
|
|
|
|
<view class="mt-30">
|
|
<view class="mb-10 font-weight">扫码结果响应key</view>
|
|
<tpx-input v-model:value="submitParam.codeKey" placeholder="codeKey"></tpx-input>
|
|
</view>
|
|
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
<template v-slot:footer>
|
|
<view class="blcok-white-noradius">
|
|
<u-button @click="handleSubmit()" type="primary" size="large" shape="circle"
|
|
custom-style="height:80rpx;font-size: 30rpx;"
|
|
>确定</u-button>
|
|
</view>
|
|
</template>
|
|
</tpx-layout>
|
|
</tpx-page>
|
|
</template>
|
|
|
|
<script>
|
|
import { USERKEY } from "@/store/actionKey"
|
|
import { encrypt } from "@/common/libs/jsencrypt_utils"
|
|
import { checkParams } from "@/common/validate"
|
|
import { setSessionSystemInfo, getSessionSystemInfo } from "@/session"
|
|
|
|
export default {
|
|
props: {
|
|
},
|
|
computed: {
|
|
|
|
},
|
|
data() {
|
|
let { hongWai } = getSessionSystemInfo()
|
|
return {
|
|
queryOption: {
|
|
|
|
},
|
|
submitParam: {
|
|
...(hongWai || {}),
|
|
},
|
|
submitValidConfig: {
|
|
actionKey: { required: true, requiredMsg: 'actionKey不能为空' },
|
|
codeKey: { required: true, requiredMsg: 'codeKey不能为空' },
|
|
},
|
|
}
|
|
},
|
|
onShareAppMessage() {
|
|
return {
|
|
// title: '',
|
|
// path: 'TODO'
|
|
}
|
|
},
|
|
onLoad(queryOption) {
|
|
this.queryOption = queryOption
|
|
this.initData();
|
|
},
|
|
onUnload() {
|
|
|
|
},
|
|
methods: {
|
|
async initData() {
|
|
|
|
},
|
|
async handleSubmit() {
|
|
await checkParams(this.submitParam, this.submitValidConfig)
|
|
setSessionSystemInfo({
|
|
hongWai: this.submitParam
|
|
})
|
|
this.showToast("保存成功")
|
|
this.goBack()
|
|
},
|
|
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss">
|
|
@import '@/common/uni-nvue.scss';
|
|
|
|
page {
|
|
background-color: #F6F6F6;
|
|
height: 100% !important;
|
|
}
|
|
</style>
|
|
<style scoped lang="scss">
|
|
|
|
</style> |