first commit

This commit is contained in:
Jane Doe
2025-03-04 15:25:38 +08:00
commit 4ad00dedd5
188 changed files with 7420 additions and 0 deletions

119
pages/faq/faq.js Normal file
View File

@@ -0,0 +1,119 @@
const n = getApp();
Page({
data: {
list: null
},
onLoad: function() {
wx.showShareMenu({
withShareTicket: true,
menus: ["shareAppMessage", "shareTimeline"]
});
},
saveImage: function(e) {
const n = e.currentTarget.dataset.url;
wx.showActionSheet({
itemList: ["保存图片"],
success: function(e) {
if (e.tapIndex === 0) {
wx.downloadFile({
url: n,
success: function(res) {
if (res.statusCode === 200) {
wx.saveImageToPhotosAlbum({
filePath: res.tempFilePath,
success: function() {
wx.showToast({
title: "保存成功",
icon: "success",
duration: 2000
});
},
fail: function(err) {
console.log(err);
wx.showToast({
title: "保存失败",
icon: "none",
duration: 2000
});
}
});
}
},
fail: function(err) {
console.log(err);
wx.showToast({
title: "下载失败",
icon: "none",
duration: 2000
});
}
});
}
},
fail: function(err) {
console.log(err);
}
});
},
onShow: function() {
const e = this;
n.check_status()
.then(function(res) {
console.log("获取文章信息", res);
e.setData({
list: res.data.data.list
});
})
.catch(function(err) {
console.error("获取文章信息失败:", err);
})
.finally(function() {
console.log("check_status调用完成");
});
},
onAdClick: function() {
n.广告();
},
onShareAppMessage: function() {
return {
title: "推荐一款免费又超好用的视频文案创作工具,分享给大家一起使用",
path: "/pages/index/index?uuid=" + wx.getStorageSync("uuid"),
imageUrl: "/images/share.jpg",
success: function() {
wx.showToast({
title: "分享成功",
icon: "success",
duration: 2000
});
},
fail: function() {
wx.showToast({
title: "分享失败",
icon: "none",
duration: 2000
});
}
};
},
onShareTimeline: function() {
return {
title: "推荐一款免费又超好用的视频文案创作工具,分享给大家一起使用",
path: "/pages/index/index?uuid=" + wx.getStorageSync("uuid"),
imageUrl: "/images/share.jpg",
success: function() {
wx.showToast({
title: "分享成功",
icon: "success",
duration: 2000
});
},
fail: function() {
wx.showToast({
title: "分享失败",
icon: "none",
duration: 2000
});
}
};
}
});

7
pages/faq/faq.json Normal file
View File

@@ -0,0 +1,7 @@
{
"navigationBarTitleText": "使用教程",
"navigationBarBackgroundColor": "#222238",
"navigationBarTextStyle": "white",
"component": true,
"usingComponents": {}
}

19
pages/faq/faq.wxml Normal file
View File

@@ -0,0 +1,19 @@
<view class="container">
<view class="title">帮助文档</view>
<view class="section">
<view class="section-title">教程列表</view>
<view class="section-content">
<navigator class="article-link" url="/pages/webview/webview?url={{item.url}}" wx:for="{{list}}" wx:key="index"> {{item.title}} </navigator>
</view>
</view>
<view class="section">
<view class="section-title">联系我们</view>
<view class="section-content help">
<text style="color: #a790e2;text-align: center;display: block;">【保存二维码扫码添加下载机器人】</text>
<image bindlongtap="saveImage" class="user-qun" data-url="https://file.guimiaokeji.com/%E5%B9%BF%E5%91%8A/1.jpg" mode="aspectFit" src="https://file.guimiaokeji.com/%E5%B9%BF%E5%91%8A/1.jpg"></image>
</view>
</view>
<!-- <view bindtap="onAdClick" class="advertisement">
<image src="https://file.guimiaokeji.com/kecheng.png"></image>
</view> -->
</view>

73
pages/faq/faq.wxss Normal file
View File

@@ -0,0 +1,73 @@
page {
background-color: #222238;
border-top: 1px solid hsla(0,31%,87%,.5);
}
.container {
padding: 20rpx;
}
.title {
color: #a790e2;
font-size: 36rpx;
font-weight: 700;
margin-bottom: 20rpx;
text-align: center;
}
.section {
border-radius: 10rpx;
box-shadow: 0 4rpx 8rpx rgba(0,0,0,.1);
margin-bottom: 30rpx;
padding: 20rpx;
width: 100%;
}
.section-title {
border-bottom: 2rpx solid hsla(0,31%,87%,.5);
color: #fff;
font-size: 30rpx;
font-weight: 700;
margin-bottom: 20rpx;
padding-bottom: 10rpx;
}
.section-content {
padding-left: 20rpx;
}
.article-link {
background-color: #333;
border-radius: 5rpx;
color: #fff;
display: block;
font-size: 28rpx;
margin-bottom: 20rpx;
padding: 10rpx;
transition: all .3s ease;
}
.article-link:hover {
background-color: #e6f2ff;
box-shadow: 0 4rpx 8rpx rgba(0,0,0,.1);
color: #a790e2;
}
.help,.user-qun {
margin-top: 20rpx;
}
.user-qun {
border-radius: 10rpx;
box-shadow: 0 4rpx 8rpx rgba(0,0,0,.1);
width: 100%;
}
.advertisement {
margin: 5px 0;
width: 100%;
z-index: 9999;
}
.advertisement image {
width: 100%;
}