Commit 6fa5939e authored by haiyoucuv's avatar haiyoucuv

init

parent 462597df
...@@ -2,7 +2,8 @@ ...@@ -2,7 +2,8 @@
"pages": [ "pages": [
"pages/index/index", "pages/index/index",
"pages/logs/logs", "pages/logs/logs",
"pages/my/my" "pages/my/my",
"pages/activity/activity"
], ],
"window": { "window": {
"navigationBarTextStyle": "black", "navigationBarTextStyle": "black",
...@@ -20,7 +21,7 @@ ...@@ -20,7 +21,7 @@
"selectedIconPath": "assets/tabbar/homeA.png" "selectedIconPath": "assets/tabbar/homeA.png"
}, },
{ {
"pagePath": "pages/logs/logs", "pagePath": "pages/activity/activity",
"text": "活动", "text": "活动",
"iconPath": "assets/tabbar/actD.png", "iconPath": "assets/tabbar/actD.png",
"selectedIconPath": "assets/tabbar/actA.png" "selectedIconPath": "assets/tabbar/actA.png"
......
{
"usingComponents": {},
"backgroundColor": "#FAFFEE"
}
\ No newline at end of file
/* pages/activity/activity.wxss */
.act_root {
background-color: #FAFFEE;
background-image: url("https://yun.duiba.com.cn/polaris/actBg.5a666aec020bafc3f10a1a967a564c792ccbef72.jpg");
background-size: 750rpx 1624rpx;
background-repeat: no-repeat;
width: 750rpx;
min-height: 100vh;
position: absolute;
.act_swiper {
margin: 421rpx auto 0;
//position: absolute;
//left: 39.5rpx;
//top: 421rpx;
width: 671rpx;
height: 411rpx;
border: 2rpx solid #c5da92;
border-radius: 25rpx;
background-image: url("https://yun.duiba.com.cn/polaris/%E5%9B%BE%E5%B1%82%20541.3c7ff6d4bed9f88be00c52551b05b54d94d1fd95.png");
background-size: 100% 100%;
// 阴影 距离3px 扩展0% 大小31px 颜色#96a376
box-shadow: 3rpx 0 31rpx #96a376;
}
.act_prod_list {
margin: 48rpx auto 0;
//position: absolute;
//left: 0;
//top: 880rpx;
//width: 750rpx;
display: flex;
align-content: center;
justify-content: start;
flex-wrap: wrap;
padding-left: 27rpx;
}
.act_prod_item {
width: 322rpx;
height: 437rpx;
background-image: url("https://yun.duiba.com.cn/polaris/prodBg.7c5f65092f2ed3c582891a1be9bb105da4b4bd26.png");
background-size: 100% 100%;
margin: 5rpx 15rpx 35rpx;
}
}
\ No newline at end of file
// pages/activity/activity.ts
Page({
/**
* 页面的初始数据
*/
data: {
prodList: [
{
img: "",
introduce: "",
prompt: "",
logo: "",
},
{
img: "",
introduce: "",
prompt: "",
logo: "",
},
{
img: "",
introduce: "",
prompt: "",
logo: "",
},
{
img: "",
introduce: "",
prompt: "",
logo: "",
},
{
img: "",
introduce: "",
prompt: "",
logo: "",
},
]
},
/**
* 生命周期函数--监听页面加载
*/
onLoad() {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})
\ No newline at end of file
<!--pages/activity/activity.wxml-->
<view class="act_root">
<view class="act_swiper"/>
<view class="act_prod_list">
<view class="act_prod_item" wx:for="{{prodList}}">
</view>
</view>
</view>
\ No newline at end of file
...@@ -2,14 +2,12 @@ ...@@ -2,14 +2,12 @@
"name": "miniprogram-ts-less-quickstart", "name": "miniprogram-ts-less-quickstart",
"version": "1.0.0", "version": "1.0.0",
"description": "", "description": "",
"scripts": { "scripts": {},
},
"keywords": [], "keywords": [],
"author": "", "author": "",
"license": "", "license": "",
"dependencies": { "dependencies": {},
},
"devDependencies": { "devDependencies": {
"miniprogram-api-typings": "^2.8.3-1" "miniprogram-api-typings": "^3.12.2"
} }
} }
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
}, },
"coverView": false, "coverView": false,
"postcss": false, "postcss": false,
"minified": false, "minified": true,
"enhance": false, "enhance": false,
"showShadowRootInWxmlPanel": false, "showShadowRootInWxmlPanel": false,
"packNpmRelationList": [], "packNpmRelationList": [],
......
...@@ -4,5 +4,6 @@ ...@@ -4,5 +4,6 @@
"setting": { "setting": {
"compileHotReLoad": true, "compileHotReLoad": true,
"preloadBackgroundData": false "preloadBackgroundData": false
} },
"libVersion": "3.0.2"
} }
\ No newline at end of file
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1
miniprogram-api-typings@^3.12.2:
version "3.12.2"
resolved "http://npm.dui88.com:80/miniprogram-api-typings/-/miniprogram-api-typings-3.12.2.tgz#88f9a43e5a7ab9162d848feee0e876f9bae52585"
integrity sha512-OJB2uVAfhycX4teG/zEVpoThushQqLOx946XACDpVc6OQydiJWjn7djVzvNCbv0VOA7sbHGPQp/RkXD9vMCDEw==
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment