|
@@ -1,8 +1,8 @@
|
|
|
-import OHeader from '@/components/o-header'
|
|
|
-import request from '@/helpers/request'
|
|
|
-import { browser } from '@/helpers/utils'
|
|
|
-import { state } from '@/state'
|
|
|
-import { defineComponent } from 'vue'
|
|
|
+import OHeader from '@/components/m-header';
|
|
|
+import request from '@/helpers/request';
|
|
|
+import { browser } from '@/helpers/utils';
|
|
|
+import { state } from '@/state';
|
|
|
+import { defineComponent } from 'vue';
|
|
|
|
|
|
// 预览协议 - 原生实名认证使用
|
|
|
export default defineComponent({
|
|
@@ -10,21 +10,21 @@ export default defineComponent({
|
|
|
data() {
|
|
|
return {
|
|
|
protocolHTML: '' as any
|
|
|
- }
|
|
|
+ };
|
|
|
},
|
|
|
async mounted() {
|
|
|
try {
|
|
|
// 判断是否有协议内容
|
|
|
if (!this.protocolHTML) {
|
|
|
const { data } = await request.get(
|
|
|
- state.platformApi + '/open/userContractRecord/queryLatestContractTemplate',
|
|
|
+ '/edu-app/open/userContractRecord/queryLatestContractTemplate',
|
|
|
{
|
|
|
params: {
|
|
|
contractType: 'WITHDRAW'
|
|
|
}
|
|
|
}
|
|
|
- )
|
|
|
- this.protocolHTML = data.contractTemplateContent || ''
|
|
|
+ );
|
|
|
+ this.protocolHTML = data.contractTemplateContent || '';
|
|
|
}
|
|
|
} catch {
|
|
|
//
|
|
@@ -36,9 +36,8 @@ export default defineComponent({
|
|
|
{browser().isApp && <OHeader />}
|
|
|
<div
|
|
|
style="font-size: 14px;padding: 12px;color: #333;line-height: 1.4;"
|
|
|
- v-html={this.protocolHTML}
|
|
|
- ></div>
|
|
|
+ v-html={this.protocolHTML}></div>
|
|
|
</div>
|
|
|
- )
|
|
|
+ );
|
|
|
}
|
|
|
-})
|
|
|
+});
|