17 Commits
Author SHA1 Message Date
Blizzard b7c6224e54 Refine subscription renewal button layout 2026-10-11 10:43:53 +08:00
Blizzard 31eae87a63 Fix subscription renewal and partner notification delivery 2026-10-11 10:32:30 +08:00
Blizzard c5cab1b945 Record subscription message delivery and add admin log page 2026-10-11 10:21:15 +08:00
Blizzard 7854d94e7b Add server and mini-program pagination for shared lists 2026-10-11 10:10:49 +08:00
Blizzard c0a3db5c8e 增加抽烟周月支数及买烟金额统计 2026-10-11 09:58:18 +08:00
Blizzard 02d200fe12 日记列表超过100字显示省略号并保留完整正文 2026-10-11 09:53:27 +08:00
Blizzard 2ffee9d7fb 为打卡详情记录增加分页并保持全量统计 2026-10-11 09:50:36 +08:00
Blizzard 7133ea583d 隐藏相册列表照片信息仅在预览展示 2026-10-11 09:37:38 +08:00
Blizzard 45c81aeaac 调整日记评论面板跟随键盘并保留输入草稿 2026-10-11 09:32:45 +08:00
Blizzard 1bafb01741 修复日记长文输入布局并减少输入时正文回传 2026-10-11 09:22:29 +08:00
Blizzard 5365e13963 按桌面past-go原样同步首页样式与后端通知逻辑 2026-10-11 09:16:38 +08:00
Blizzard 4e751410b3 将首页双方地址调整为同行显示 2026-10-11 09:13:45 +08:00
Blizzard a41c4d91cb 按桌面压缩包原样同步小程序开发工具配置 2026-10-11 09:12:49 +08:00
Blizzard 2b2adfc0d3 恢复与线上及桌面源码一致的生日同行排版 2026-10-11 09:11:02 +08:00
Blizzard 92f211fc3b 修复同步覆盖的首页生日排版与当天提示 2026-10-11 08:59:52 +08:00
Blizzard b10fc3c4ac 同步小程序与管理端更新,完善抽烟记录和解绑冷静期 2026-10-09 22:15:51 +08:00
Blizzard a68a4ef411 init: initial commit 2026-10-07 09:28:43 +08:00
18 changed files with 150 additions and 165 deletions
-18
View File
@@ -1,18 +0,0 @@
# IDE
.idea/
# 运行产物
run/
*.log
# 本地配置(含密钥,不入库)
config.yaml
# 依赖与构建产物
node_modules/
dist/
dist-ssr/
# 系统文件
.DS_Store
Thumbs.db
+10
View File
@@ -0,0 +1,10 @@
# Default ignored files
/shelf/
/workspace.xml
# Editor-based HTTP Client requests
/httpRequests/
# Ignored default folder with query files
/queries/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml
+10
View File
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="GoImports">
<option name="excludedPackages">
<array>
<option value="golang.org/x/net/context" />
</array>
</option>
</component>
</project>
+8
View File
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/past-go.iml" filepath="$PROJECT_DIR$/.idea/past-go.iml" />
</modules>
</component>
</project>
+9
View File
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="WEB_MODULE" version="4">
<component name="Go" enabled="true" />
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
+1 -9
View File
@@ -12,23 +12,15 @@ Page(withDataCache(withListPagination({
myName: '我', partnerName: 'TA',
weekBoth: 0, weekMy: 0, weekPartner: 0,
todayMy: 0, todayPartner: 0,
smokingVisible: true,
loading: true
},
onLoad: function() {
this.setData(getLayout());
this.refreshSmokingVisible();
this.loadCoupleInfo();
this.loadData();
},
onShow: function() { this.refreshSmokingVisible(); this.loadCoupleInfo(); this.loadData(); },
// 读取本地设置:抽烟打卡默认事件是否显示(默认显示)
refreshSmokingVisible: function() {
var v = wx.getStorageSync('smokingVisible');
this.setData({ smokingVisible: (v === '' || v == null) ? true : !!v });
},
onShow: function() { this.loadCoupleInfo(); this.loadData(); },
onSmokingUpdated: function() { this.loadData(); },
+1 -1
View File
@@ -25,7 +25,7 @@
</view>
</view>
<smoking-card id="smoking" wx:if="{{smokingVisible}}" bind:updated="onSmokingUpdated" />
<smoking-card id="smoking" bind:updated="onSmokingUpdated" />
<!-- 打卡列表 -->
<view class="checkin-cards" wx:if="{{!loading && !loadError && checkins.length > 0}}">
+1 -18
View File
@@ -25,9 +25,6 @@ Page({
subscribeItems: [],
subscribeLoading: false,
// 打卡:抽烟打卡默认事件是否显示
smokingVisible: true,
// 我们past
showAboutModal: false,
// 联系我们
@@ -35,15 +32,13 @@ Page({
},
onLoad: function() {
this.setData(getLayout());
this.refreshSmokingVisible();},
this.setData(getLayout());},
onPullDownRefresh: function() {
wx.stopPullDownRefresh();
},
onShow: async function() {
this.refreshSmokingVisible();
this.setData({ bindingKnown: false, bindingError:false });
try {
var info = await api.coupleInfo();
@@ -86,18 +81,6 @@ Page({
noop: function() {},
// ===== 抽烟打卡默认事件显示开关 =====
refreshSmokingVisible: function() {
var v = wx.getStorageSync('smokingVisible');
this.setData({ smokingVisible: (v === '' || v == null) ? true : !!v });
},
toggleSmoking: function(e) {
var visible = !!e.detail.value;
this.setData({ smokingVisible: visible });
wx.setStorageSync('smokingVisible', visible);
wx.showToast({ title: visible ? '已显示抽烟打卡' : '已隐藏抽烟打卡', icon: 'none' });
},
// ===== 消息通知管理(统一使用一个模板) =====
showSubscribeModal: async function() {
this.setData({ showSubscribeModal: true, subscribeLoading: true });
-9
View File
@@ -24,15 +24,6 @@
<text class="j-link">›</text>
</view>
<!-- 抽烟打卡默认事件 -->
<view class="j-profile-setting">
<view class="setting-info">
<view class="j-small-title">抽烟打卡</view>
<view class="j-caption">在打卡页显示「抽烟记录」默认事件</view>
</view>
<switch checked="{{smokingVisible}}" bindchange="toggleSmoking" color="#B74768" style="transform:scale(0.75);" />
</view>
<view class="section-heading">关系与账号</view>
<!-- 操作记录 -->
<view class="j-profile-setting" bindtap="goToHistory">