1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <template>
- <view style="visibility: hidden;">
- <view class="phone-password-lli" :myflag="myflag" :change:myflag="PSLLI.doPasswordlli(password)"></view>
- </view>
- </template>
- <script>
- export default {
- name: "password-lli",
- props: {
- password: {
- type: [String,Number],
- default: ''
- }
- },
- data() {
- return {
- myflag: 0
- };
- },
- methods: {
- lliPassword() {
- this.myflag++
- },
- getPassword(data) {
- this.$emit('lli-password',data);
- }
- }
- }
- </script>
- <script module="PSLLI" lang="renderjs">
- export default {
- methods: {
- doPasswordlli(password) {
- if (window.lli) {
- this.$ownerInstance.callMethod('getPassword', window.lli.encode(password))
- }
- }
- },
- mounted() {
- if (window.lli && typeof window.lli.encode === 'function') {
- } else {
- const script = document.createElement('script')
- script.src = '/mdist/static/encode.js'
- document.head.appendChild(script)
- }
- },
- }
- </script>
|