Merge pull request '更新' (#13) from master into dev

dev
pnfwtvqce 1 year ago
commit db421bc551

@ -5,7 +5,7 @@ Page({
* 页面的初始数据 * 页面的初始数据
*/ */
data: { data: {
currentPage: '' // 初始值为空
}, },
/** /**
@ -62,5 +62,18 @@ Page({
*/ */
onShareAppMessage() { onShareAppMessage() {
},
showPage1: function() {
this.setData({
currentPage: 'page1',// 显示页面1
});
},
showPage2: function() {
this.setData({
currentPage: 'page2', // 显示页面2
});
} }
}) })

@ -1 +1,12 @@
<text>纪念哦</text> <view class="button-container">
<button bindtap="showPage1" class="b1">纪念票</button>
<button bindtap="showPage2" class="b2">纪念册</button>
</view>
<view wx:if="{{currentPage === 'page1'}}" class="v1" style="width:max-width; height:1000rpx;">
<text>1</text>>
</view>
<view wx:if="{{currentPage === 'page2'}}" class="v2" style="width:max-width; height:1000rpx;">
<text>2</text>>
</view>

@ -1 +1,23 @@
/* pages/commemorate/commemorate.wxss */ /* pages/commemorate/commemorate.wxss */
.button-container {
display: flex;
flex-direction: row;
justify-content: space-between;
background-color:rgb(99, 195, 240)
}
.b1 {
background-color: rgb(171, 238, 16);
}
.b2 {
background-color: rgb(221, 218, 55);
}
.v1 {
background-color: rgb(99, 195, 240);
}
.v2 {
background-color: rgb(99, 195, 240);
}

@ -1,52 +0,0 @@
{
"description": "项目配置文件",
"packOptions": {
"ignore": [],
"include": []
},
"setting": {
"bundle": false,
"userConfirmedBundleSwitch": false,
"urlCheck": true,
"scopeDataCheck": false,
"coverView": true,
"es6": true,
"postcss": true,
"compileHotReLoad": false,
"lazyloadPlaceholderEnable": false,
"preloadBackgroundData": false,
"minified": true,
"autoAudits": false,
"newFeature": false,
"uglifyFileName": false,
"uploadWithSourceMap": true,
"useIsolateContext": true,
"nodeModules": false,
"enhance": true,
"useMultiFrameRuntime": true,
"useApiHook": true,
"useApiHostProcess": true,
"showShadowRootInWxmlPanel": true,
"packNpmManually": false,
"enableEngineNative": false,
"packNpmRelationList": [],
"minifyWXSS": true,
"showES6CompileOption": false,
"minifyWXML": true,
"babelSetting": {
"ignore": [],
"disablePlugins": [],
"outputPath": ""
},
"ignoreUploadUnusedFiles": true
},
"compileType": "miniprogram",
"libVersion": "2.19.4",
"appid": "wx7f67447c72994c39",
"projectname": "miniprogram-92",
"condition": {},
"editorSetting": {
"tabIndent": "insertSpaces",
"tabSize": 2
}
}
Loading…
Cancel
Save