diff --git a/components/coupon/coupon.js b/components/coupon/coupon.js new file mode 100644 index 0000000000000000000000000000000000000000..95200dd00f993ced634c2d2aabeb670f9092efc1 --- /dev/null +++ b/components/coupon/coupon.js @@ -0,0 +1,27 @@ +// components/coupon/coupon.js +Component({ + + options:{ + multipleSlots:true + }, + /** + * 组件的属性列表 + */ + properties: { + + }, + + /** + * 组件的初始数据 + */ + data: { + + }, + + /** + * 组件的方法列表 + */ + methods: { + + } +}) diff --git a/components/coupon/coupon.json b/components/coupon/coupon.json new file mode 100644 index 0000000000000000000000000000000000000000..e8cfaaf80c404eb97d3cf8b6277ec15f37e6905e --- /dev/null +++ b/components/coupon/coupon.json @@ -0,0 +1,4 @@ +{ + "component": true, + "usingComponents": {} +} \ No newline at end of file diff --git a/components/coupon/coupon.wxml b/components/coupon/coupon.wxml new file mode 100644 index 0000000000000000000000000000000000000000..e4a940672c1e2f168c8570c24777744203044bc2 --- /dev/null +++ b/components/coupon/coupon.wxml @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/components/coupon/coupon.wxss b/components/coupon/coupon.wxss new file mode 100644 index 0000000000000000000000000000000000000000..b1717ce04efd008343e0de34532141169e87faaf --- /dev/null +++ b/components/coupon/coupon.wxss @@ -0,0 +1,50 @@ +.card{ + width: 100%; + height: 100%; + display: flex; + flex-direction: row; + align-items: center; + box-sizing: border-box; + padding: 6% 4%; + font-size: 34rpx; + background-color: white; +} +.card .left{ + width: 26%; + height: 100%; + display: flex; + flex-direction: row; + justify-content: space-around; + align-items: center; + border-right: 1rpx solid rgba(0,0,0,.15); +} +.left .left_img{ + width: 45%; + height: 0; + padding-bottom: 50%; + overflow: hidden; +} +.left .left_text{ + width: 43%; + height: 0; + padding-bottom: 50%; + overflow: hidden; + white-space: pre-wrap; + word-wrap: normal; +} +.card .right{ + flex: 1; + height: 100%; + overflow: hidden; +} +.right .right_text{ + width: 100%; + height: 100%; + box-sizing: border-box; + padding: 1rpx 15rpx; + display: -webkit-box; + -webkit-box-orient: vertical; + -webkit-line-clamp: 2; + text-overflow: ellipsis; + overflow: hidden; +} \ No newline at end of file diff --git a/img/localSDK.png b/img/localSDK.png new file mode 100644 index 0000000000000000000000000000000000000000..1dadf8183f428386a70a996cee34dee173c12da1 Binary files /dev/null and b/img/localSDK.png differ diff --git a/pages/coupon/coupon.js b/pages/coupon/coupon.js new file mode 100644 index 0000000000000000000000000000000000000000..5cd111ffe94467c3c4dc6d7e88a16b4df86623bc --- /dev/null +++ b/pages/coupon/coupon.js @@ -0,0 +1,66 @@ +// pages/coupon/coupon.js +Page({ + + /** + * 页面的初始数据 + */ + data: { + + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad: function (options) { + + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady: function () { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow: function () { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide: function () { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload: function () { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh: function () { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom: function () { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage: function () { + + } +}) \ No newline at end of file diff --git a/pages/coupon/coupon.json b/pages/coupon/coupon.json new file mode 100644 index 0000000000000000000000000000000000000000..ffda0a0f85778fa87cf8169ac80a11a06213f4bc --- /dev/null +++ b/pages/coupon/coupon.json @@ -0,0 +1,5 @@ +{ + "usingComponents": { + "y-coupon":"/components/coupon/coupon" + } +} \ No newline at end of file diff --git a/pages/coupon/coupon.wxml b/pages/coupon/coupon.wxml new file mode 100644 index 0000000000000000000000000000000000000000..ca76e895be4d217331e1e93327a1bfafa0725e50 --- /dev/null +++ b/pages/coupon/coupon.wxml @@ -0,0 +1,5 @@ + + + 今日头条 + uagiuagfiuagf以按广东省覅蒛以爱的功夫撒个 + \ No newline at end of file diff --git a/pages/coupon/coupon.wxss b/pages/coupon/coupon.wxss new file mode 100644 index 0000000000000000000000000000000000000000..d3471725458c4af25ad12613ef1e85bb1c13daf6 --- /dev/null +++ b/pages/coupon/coupon.wxss @@ -0,0 +1 @@ +/* pages/coupon/coupon.wxss */ \ No newline at end of file diff --git a/pages/index/index.js b/pages/index/index.js new file mode 100644 index 0000000000000000000000000000000000000000..533b55fddc53af4e94b291a236f7550cf1946b89 --- /dev/null +++ b/pages/index/index.js @@ -0,0 +1,78 @@ +// pages/index/index.js +Page({ + + /** + * 页面的初始数据 + */ + data: { + + }, + + gonotice(){ + wx.navigateTo({ + url: '../notices/notices', + }) + }, + + gocoupon(){ + wx.navigateTo({ + url: '../coupon/coupon', + }) + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad: function (options) { + + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady: function () { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow: function () { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide: function () { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload: function () { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh: function () { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom: function () { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage: function () { + + } +}) \ No newline at end of file diff --git a/pages/index/index.json b/pages/index/index.json new file mode 100644 index 0000000000000000000000000000000000000000..8835af0699ccec004cbe685ef938cd2d63ea7037 --- /dev/null +++ b/pages/index/index.json @@ -0,0 +1,3 @@ +{ + "usingComponents": {} +} \ No newline at end of file diff --git a/pages/index/index.wxml b/pages/index/index.wxml new file mode 100644 index 0000000000000000000000000000000000000000..c7955dcf1eb89a465d671a23e69dcdf18e019dd8 --- /dev/null +++ b/pages/index/index.wxml @@ -0,0 +1,6 @@ + + 去康康“日期组件扩展组件”——高自定义程度、可精确到分、秒 + + + 去康康“优惠券组件”——左右布局,支持slot,可自定义文字 + \ No newline at end of file diff --git a/pages/index/index.wxss b/pages/index/index.wxss new file mode 100644 index 0000000000000000000000000000000000000000..e1ff812d063ff374986187e99bcf2eb2d5f3bace --- /dev/null +++ b/pages/index/index.wxss @@ -0,0 +1,15 @@ +Page{ + width: 100%; + min-height: 100vh; + display: flex; + flex-direction: column; + justify-content: space-around; + align-items: center; +} + +view{ + width: 100%; + height: 96rpx; + background-color: rgba(0,0,0,.2); + overflow: hidden; +} \ No newline at end of file diff --git a/pages/notices/notices.wxml b/pages/notices/notices.wxml index 2955f304f68c98de02961134d072fb1db644d93c..164f82e8177fd1c77d92e6f8c6ed1d9d7040acae 100644 --- a/pages/notices/notices.wxml +++ b/pages/notices/notices.wxml @@ -1,6 +1,4 @@
- - 通知时间 @@ -10,6 +8,4 @@ - -