WechatOwnerService/pages/login/registerProtocol.vue
2025-10-14 11:57:13 +08:00

43 lines
752 B
Vue

<template>
<view class="padding">
<jyf-parser :html="protocol" ref="article"></jyf-parser>
</view>
</template>
<script>
import {
getRegisterProtocol
} from '../../api/common/commonApi.js';
import jyfParser from "@/components/jyf-parser/jyf-parser";
export default {
data() {
return {
protocol: '',
type:'protocol'
}
},
onLoad(options) {
this.type = options.type;
this._loadProtocol();
},
components: {
jyfParser
},
methods: {
_loadProtocol: function() {
let _that = this;
getRegisterProtocol().then(_data => {
_that.protocol = _data[0].userProtocol
if(_that.type == 'secure'){
_that.protocol = _data[0].merchantProtocol
}
})
}
}
}
</script>
<style>
</style>