mirror of
https://gitee.com/java110/WechatOwnerService.git
synced 2026-02-24 05:46:04 +08:00
43 lines
752 B
Vue
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>
|