Commit 54f78d90 authored by peco's avatar peco

feat: title组件

parent 84475c0a
<template>
<view class="count-to" :style="{height: `${height}px`,}">
<BasicText :elementInfo="elementInfo"></BasicText>
<!-- <BasicText :elementInfo="elementInfo"></BasicText> -->
<NormalTitle :elementInfo="elementInfo"></NormalTitle>
<!-- warning:count-to的font-size单位为rpx -->
<u-count-to :start-val="startVal" :end-val="endVal" separator="," :color="elementInfo.option.countTo.color" :font-size="getFontSize()"></u-count-to>
</view>
......
<template>
<view class="normal-image">
<BasicText :elementInfo="elementInfo"></BasicText>
<!-- <BasicText :elementInfo="elementInfo"></BasicText> -->
<NormalTitle :elementInfo="elementInfo"></NormalTitle>
<u-empty
v-if="!elementInfo.option.images.list.length"></u-empty>
<u-image class="uimage"
......
<template>
<view >
<BasicText :elementInfo="elementInfo"></BasicText>
<!-- <BasicText :elementInfo="elementInfo"></BasicText> -->
<NormalTitle :elementInfo="elementInfo"></NormalTitle>
<scroll-view scroll-x="true" >
<view class="scroll-view_H">
<u-table >
......
<template>
<view v-if="elementInfo.option.title.show">
<a
@click="onClick(elementInfo.option.title.link)"
:style="{
'color': elementInfo.option.title.textStyle.color,
'font-size': `${elementInfo.option.title.textStyle.fontSize}px`,
'font-weight': elementInfo.option.title.textStyle.fontWeight,
'text-align': elementInfo.option.title.left,
}">
{{elementInfo.option.title.text}}
</a>
</view>
</template>
<script>
export default {
name: "NormalTitle",
props: {
elementInfo: {
type: Object,
required: true
}
},
data() {
return {
};
},
methods: {
onClick(url) {
if (url != '') {
uni.navigateTo({
url:'../../pages/webView/webView/webView?url=' + encodeURIComponent(url)
})
}
}
}
}
</script>
<style lang="scss" scoped>
</style>
<template>
<view class="chart-num" :style="{height: `${height}px`,}">
<BasicText :elementInfo="elementInfo"></BasicText>
<!-- <BasicText :elementInfo="elementInfo"></BasicText> -->
<NormalTitle :elementInfo="elementInfo"></NormalTitle>
<ul class="box-item marginTop20">
<li v-for="(item, index) in orderNum" :key="index"
:class="{'number-item': !isNaN(item), 'mark-item': isNaN(item)}" :style="{
......
......@@ -50,6 +50,15 @@
}
}
,{
"path" : "pages/webView/webView/webView",
"style" :
{
"navigationBarTitleText": "",
"enablePullDownRefresh": false
}
}
],
"globalStyle": {
"navigationBarTextStyle": "black",
......
<template>
<view>
<web-view :src="url" :progress="false">
</web-view>
</view>
</template>
<script>
export default {
data() {
return {
url: ''
}
},
onLoad(option) {
this.$data.url =decodeURIComponent(option.url)
},
methods: {
}
}
</script>
<style>
</style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment