银耀uniapp
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

43 lines
778 B

<template>
<view style="padding: 27rpx; 30rpx">
<rich-text :nodes="companyInfo.com_buy_agreement"></rich-text>
</view>
</template>
<script>
import {getCompanyInfo} from '@/api/public.js'
export default {
data() {
return {
companyInfo: {
com_service_phone: '',
com_group_qrcode: '',
com_slogan: '',
com_logo: '',
com_work_time: '',
com_service_qrcode: '',
com_buy_agreement: ''
}
};
},
onLoad() {
getCompanyInfo().then(res =>{
res.data.forEach(item => {
console.log(item);
this.companyInfo[item.menuName] = item.value
})
})
},
methods: {
onCall() {
uni.makePhoneCall({
phoneNumber: this.companyInfo.com_service_phone
})
}
}
}
</script>
<style lang="scss">
</style>