上传代码

This commit is contained in:
2025-08-18 14:20:34 +08:00
commit 527fd07910
2408 changed files with 427370 additions and 0 deletions

View File

@ -0,0 +1 @@
<view class="page"><view class="page-section"><view>请不要一进入小程序就弹框授权,建议先了解小程序的服务内容</view><button type="primary" onTap="getAuthCode"> 获取授权码 </button></view></view>

View File

@ -0,0 +1,24 @@
"use strict";
const common_vendor = require("../../common/vendor.js");
Page({
onLoad() {
},
data: {},
getAuthCode: () => {
my.getAuthCode({
scopes: "auth_user",
success: ({ authCode }) => {
my.alert({
content: authCode
});
console.log(authCode);
}
});
}
});
const _sfc_main = {};
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
return {};
}
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
my.createPage(MiniProgramPage);

View File

@ -0,0 +1,6 @@
{
"defaultTitle": "校内超市",
"pullRefresh": false,
"titleBarColor": "#4095e5",
"usingComponents": {}
}