tmp: 部分代码与UnishopV5结合,但是代码有严重缺陷
This commit is contained in:
46
pages_tool/login/aggrement.vue
Normal file
46
pages_tool/login/aggrement.vue
Normal file
@@ -0,0 +1,46 @@
|
||||
<template>
|
||||
<page-meta :page-style="themeColor"></page-meta>
|
||||
<view>
|
||||
<view class="aggrement-info" v-if="aggrement && aggrement.content">
|
||||
<ns-mp-html :content="aggrement.content"></ns-mp-html>
|
||||
</view>
|
||||
<loading-cover ref="loadingCover"></loading-cover>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
aggrement: null,
|
||||
type: 'SERVICE'
|
||||
}
|
||||
},
|
||||
onLoad(option) {
|
||||
this.type = option.type || ''
|
||||
this.getaggrementInfo();
|
||||
},
|
||||
methods: {
|
||||
getaggrementInfo() {
|
||||
this.$api.sendRequest({
|
||||
url: '/api/register/aggrement',
|
||||
data: {
|
||||
type: this.type
|
||||
},
|
||||
success: res => {
|
||||
if (res.code >= 0) {
|
||||
this.aggrement = res.data;
|
||||
}
|
||||
if(this.$refs.loadingCover) this.$refs.loadingCover.hide();
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.aggrement-info{
|
||||
padding: 20rpx;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user