123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- <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')
- //#ifndef H5
- script.src = '/static/encode.js'
- console.log(1111)
- //#endif
-
- //#ifdef APP-PLUS
- script.src = 'static/encode.js'
- console.log(2222)
- //#endif
-
- document.head.appendChild(script)
- }
- },
- }
- </script>
|