Initial commit

This commit is contained in:
admin
2025-12-08 14:39:07 +08:00
commit 9d4f78656b
782 changed files with 66418 additions and 0 deletions

View File

@@ -0,0 +1 @@
App({})

View File

@@ -0,0 +1,13 @@
{
"pages":[
"pages/index/index",
"pages/jump/jump"
],
"window":{
"backgroundTextStyle":"light",
"navigationBarBackgroundColor": "#fff",
"navigationBarTitleText": "mp-html",
"navigationBarTextStyle":"black"
},
"style": "v2"
}

View File

@@ -0,0 +1,32 @@
const html = require('../../content')
Page({
data: {
html: '',
tagStyle: {
table: 'box-sizing: border-box; border-top: 1px solid #dfe2e5; border-left: 1px solid #dfe2e5;',
th: 'border-right: 1px solid #dfe2e5; border-bottom: 1px solid #dfe2e5;',
td: 'border-right: 1px solid #dfe2e5; border-bottom: 1px solid #dfe2e5;',
li: 'margin: 5px 0;'
}
},
onLoad () {
// 模拟网络请求
setTimeout(() => {
this.setData({
html
})
}, 200)
},
load () {
console.log('dom 树加载完毕')
},
ready (e) {
console.log('ready 事件触发:', e)
},
imgtap (e) {
console.log('imgtap 事件触发:', e)
},
linktap (e) {
console.log('linktap 事件触发:', e)
}
})

View File

@@ -0,0 +1,5 @@
{
"usingComponents": {
"mp-html": "/components/mp-html/index"
}
}

View File

@@ -0,0 +1,3 @@
<mp-html container-style="padding:20px" content="{{html}}" domain="https://mp-html.oss-cn-hangzhou.aliyuncs.com" lazy-load scroll-table selectable use-anchor tag-style="{{tagStyle}}" bindload="load" bindready="ready" bindimgtap="imgtap" bindlinktap="linktap">
加载中...
</mp-html>

View File

@@ -0,0 +1 @@
Page({})

View File

@@ -0,0 +1 @@
{}

View File

@@ -0,0 +1 @@
<view>跳转测试页面</view>

View File

@@ -0,0 +1,13 @@
{
"description": "项目配置文件",
"setting": {
"urlCheck": true,
"es6": true,
"postcss": true,
"minified": true,
"newFeature": true
},
"compileType": "miniprogram",
"appid": "touristappid",
"projectname": "mp-html"
}