feat(uniapp_v2): 二开功能迁移与小程序主包优化
- 从 uniapp 迁移 HJF 页面、API、组件及用户/订单相关改动 - queue、assets 使用独立分包以降低主包体积 - 修复首页单根节点与支付结果页 v-if 链 - 关闭 HjfDemoPanel 全局注册;uniNoticeBar 注释 $getAppWebview 避免 __webviewId__ 报错 - 配置域名与 manifest 应用名称;cache/store 防御性处理 Made-with: Cursor
This commit is contained in:
70
pro_v3.5.1/view/uniapp_v2/pages/index/components/hotspot.vue
Normal file
70
pro_v3.5.1/view/uniapp_v2/pages/index/components/hotspot.vue
Normal file
@@ -0,0 +1,70 @@
|
||||
<template>
|
||||
<view class="w-full" :style="[hotspotWrapStyle]" v-if="!dataConfig.isHide">
|
||||
<view class="hotspot">
|
||||
<image :src="dataConfig.picStyle.url" mode="widthFix" class="image" :style="[imageRadius]"></image>
|
||||
<view v-for="(item, index) in dataConfig.picStyle.list" :key="item.number" :style="{
|
||||
top: `${item.starY}rpx`,
|
||||
left: `${item.starX}rpx`,
|
||||
width: `${item.areaWidth}rpx`,
|
||||
height: `${item.areaHeight}rpx`,
|
||||
}" class="area" @click="goPage(item.link)"></view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
props: {
|
||||
dataConfig: {
|
||||
type: Object,
|
||||
default: () => {}
|
||||
},
|
||||
isSortType: {
|
||||
type: String | Number,
|
||||
default: 0
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {}
|
||||
},
|
||||
computed: {
|
||||
imageRadius() {
|
||||
let borderRadius = `${this.dataConfig.fillet.val * 2}rpx`;
|
||||
if (this.dataConfig.fillet.type) {
|
||||
borderRadius =
|
||||
`${this.dataConfig.fillet.valList[0].val * 2}rpx ${this.dataConfig.fillet.valList[1].val * 2}rpx ${this.dataConfig.fillet.valList[3].val * 2}rpx ${this.dataConfig.fillet.valList[2].val * 2}rpx`;
|
||||
}
|
||||
return {
|
||||
'border-radius': borderRadius,
|
||||
};
|
||||
},
|
||||
hotspotWrapStyle() {
|
||||
return {
|
||||
'padding': `${this.dataConfig.topConfig.val * 2}rpx ${this.dataConfig.prConfig.val * 2}rpx ${this.dataConfig.bottomConfig.val * 2}rpx`,
|
||||
'margin-top': `${this.dataConfig.mbConfig.val * 2}rpx`,
|
||||
'background': this.dataConfig.bottomBgColor.color[0].item,
|
||||
};
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
goPage(link) {
|
||||
this.$util.JumpPath(link);
|
||||
},
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.hotspot {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
.image {
|
||||
display: block;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.area {
|
||||
position: absolute;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user