活动按钮状态流转

This commit is contained in:
2026-03-25 15:53:37 +08:00
commit 37346e790f
2762 changed files with 240282 additions and 0 deletions

View File

@@ -0,0 +1,91 @@
<!-- +----------------------------------------------------------------------
| 麦沃德科技赋能开发者助力商协会发展
+----------------------------------------------------------------------
| Copyright (c) 20172024 www.wdsxh.cn All rights reserved.
+----------------------------------------------------------------------
| 沃德商协会系统并不是自由软件不加密并不代表开源未经许可不可自由转售和商用
+----------------------------------------------------------------------
| Author: MY WORLD Team <bd@maiwd.cn> www.maiwd.cn
+----------------------------------------------------------------------
| 图文详情 开发者: 麦沃德科技半夏
+---------------------------------------------------------------------- -->
<template>
<view class="container">
<!-- 标题栏 -->
<title-bar title="详情"></title-bar>
<!-- 内容区 -->
<view class="container-main" v-if="loadEnd">
<mp-html :content="imageTextContent" />
</view>
</view>
</template>
<script>
export default {
data() {
return {
// 加载完成
loadEnd: false,
// 图文类型 1.轮播图图文2.底部导航图文3.商城轮播图图文
imageTextType: 1,
// 图文Id
imageTextId: null,
// 图文内容
imageTextContent: ''
};
},
onLoad(option) {
this.imageTextType = option.type
this.imageTextId = option.id
uni.showLoading({
title: "加载中"
})
this.getImageText(() => {
this.loadEnd = true
uni.hideLoading()
})
},
methods: {
// 获取图文内容
getImageText(fn) {
let url = ""
if (this.imageTextType == 1) url = "main.carouselDetails"
else if (this.imageTextType == 2) url = "main.tabbarDetails"
else if (this.imageTextType == 3) url = "mall.carouselDetails"
else return
this.$util.request(url, {
id: this.imageTextId
}).then(res => {
if (fn) fn()
if (res.code == 1) {
this.imageTextContent = res.data.content
} else {
uni.showToast({
title: res.msg,
icon: 'none'
})
}
}).catch(error => {
if (fn) fn()
console.error('获取图文详情 ', error)
})
},
},
}
</script>
<style lang="scss">
page {
background: #fff;
}
.container {
.container-main {
padding: 32rpx;
font-size: 32rpx;
line-height: 60rpx;
color: #666;
}
}
</style>

29
pages/webview/webview.vue Normal file
View File

@@ -0,0 +1,29 @@
<!-- +----------------------------------------------------------------------
| 麦沃德科技赋能开发者助力商协会发展
+----------------------------------------------------------------------
| Copyright (c) 20172024 www.wdsxh.cn All rights reserved.
+----------------------------------------------------------------------
| 沃德商协会系统并不是自由软件不加密并不代表开源未经许可不可自由转售和商用
+----------------------------------------------------------------------
| Author: MY WORLD Team <bd@maiwd.cn> www.maiwd.cn
+----------------------------------------------------------------------
| 外部网页 开发者: 麦沃德科技半夏
+---------------------------------------------------------------------- -->
<template>
<view>
<web-view :src="path"></web-view>
</view>
</template>
<script>
export default {
data() {
return {
path: ""
}
},
onLoad(option) {
this.path = decodeURIComponent(option.path)
}
}
</script>