diff --git a/pages/user/assistance/assistance_success.js b/pages/user/assistance/assistance_success.js new file mode 100644 index 0000000..280c870 --- /dev/null +++ b/pages/user/assistance/assistance_success.js @@ -0,0 +1,85 @@ +var auth = require("../../../utils/auth.js"), rq = require("../../../utils/request.js"); +var e = getApp(), app = e, s = e.globalData.setting, os = s, app_d = e.globalData; +var regeneratorRuntime = require('../../../utils/runtime.js'); +Page({ + + /** + * 页面的初始数据 + */ + data: { + iurl: s.imghost, + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad: function (options) { + + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady: function () { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow: function () { + + }, + + + // 初始化判断微信余额 + async weixin() { + var user_id = getApp().globalData.user_id; + var store_id = os.stoid; + await getApp().request.promiseGet("/api/weshop/marketing/help/act/judge", { + data: { + user_id: user_id, + store_id: store_id + } + }).then(res => { + console.log("是什么东西", res.data.code); + + }) + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide: function () { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload: function () { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh: function () { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom: function () { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage: function () { + + } +}) \ No newline at end of file diff --git a/pages/user/assistance/assistance_success.json b/pages/user/assistance/assistance_success.json new file mode 100644 index 0000000..5467480 --- /dev/null +++ b/pages/user/assistance/assistance_success.json @@ -0,0 +1,7 @@ +{ + "usingComponents": { + "warn": "/components/long_warn/long_warn", + "my_confirm": "/components/my_confirm/my_confirm", + "nav_b": "/components/nav_b/nav_b" + } +} \ No newline at end of file diff --git a/pages/user/assistance/assistance_success.wxml b/pages/user/assistance/assistance_success.wxml new file mode 100644 index 0000000..173aabc --- /dev/null +++ b/pages/user/assistance/assistance_success.wxml @@ -0,0 +1,39 @@ + + + + + 你好 + + + 助力成功,自己也差拆一个吧~ + + + + + + + + + 活动时间:5月23日-6月15日 + + + +我也要参加 +已有126人领取礼盒 + + + + + + \ No newline at end of file diff --git a/pages/user/assistance/assistance_success.wxss b/pages/user/assistance/assistance_success.wxss new file mode 100644 index 0000000..a7130a5 --- /dev/null +++ b/pages/user/assistance/assistance_success.wxss @@ -0,0 +1,61 @@ +page{ + background: #d01119; + width: 100%; + height: 100% + +} +.top-back{ + width: 100%; + height: 60%; + background-repead:no-repead; + background-size:100% 100%; + +} +.user_img{ + width: 70rpx; + height: 70rpx; + margin-right: 15rpx; + +} +.user_assis{ + width: 85%; + margin: auto; + padding-top: 50rpx; +} +.caption_title{ + margin-top: 60rpx; + margin-bottom: 30rpx; +} +.assis_liba{ + width: 50%; + margin: auto; + height: 340rpx; + +} +.activity_time{ + border-bottom: 1rpx solid #fff; + margin: auto; + display: inline; +} +.cklie_button{ + margin: auto; + width: 60%; + height: 80rpx; + border-radius: 50rpx; + margin-top: 20rpx; + background: #fbda0e; + color:#d01119; + line-height: 80rpx; + letter-spacing: 5rpx; + box-shadow: 0rpx 7rpx 0rpx 0rpx rgb(245, 119, 6); + font-size: 44rpx; + margin-bottom: 40rpx; +} +.con_div{ +z-index: 15; +position: fixed; +top: 0; +left: 0; +height: 100%; +width: 100%; +} \ No newline at end of file diff --git a/pages/user/assistance/friend_assistance.js b/pages/user/assistance/friend_assistance.js new file mode 100644 index 0000000..7dab41e --- /dev/null +++ b/pages/user/assistance/friend_assistance.js @@ -0,0 +1,90 @@ +var auth = require("../../../utils/auth.js"), rq = require("../../../utils/request.js"); +var e = getApp(), app = e, s = e.globalData.setting, os = s, app_d = e.globalData; +var regeneratorRuntime = require('../../../utils/runtime.js'); +Page({ + + /** + * 页面的初始数据 + */ + data: { + iurl: s.imghost, + is_show:0,//显示弹框 + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad: function (options) { + + }, + + + // 跳转到助力成功页 + participate_activity:function(){ + wx.navigateTo({ + url: '/pages/user/assistance/assistance_success', + }) + }, + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady: function () { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow: function () { + + }, + //点击开启礼盒 + cklie_button:function(){ + this.setData({ is_show:1}); + }, + //点击关闭礼盒 + clike_none:function(){ + this.setData({ is_show:0}); + }, + //导航球 + close: function () { + var th = this; + var nav_b = th.selectComponent("#nav_b"); //组件的id + nav_b.close_box(); + nav_b.set_name("助力", ""); + }, + /** + * 生命周期函数--监听页面隐藏 + */ + onHide: function () { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload: function () { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh: function () { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom: function () { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage: function () { + + } +}) \ No newline at end of file diff --git a/pages/user/assistance/friend_assistance.json b/pages/user/assistance/friend_assistance.json new file mode 100644 index 0000000..2ee27f1 --- /dev/null +++ b/pages/user/assistance/friend_assistance.json @@ -0,0 +1,7 @@ +{ + "usingComponents": { + "warn": "/components/long_warn/long_warn", + "my_confirm": "/components/my_confirm/my_confirm", + "nav_b": "/components/nav_b/nav_b" + } +} \ No newline at end of file diff --git a/pages/user/assistance/friend_assistance.wxml b/pages/user/assistance/friend_assistance.wxml new file mode 100644 index 0000000..a0301c5 --- /dev/null +++ b/pages/user/assistance/friend_assistance.wxml @@ -0,0 +1,38 @@ + + + + 你好 + + + 拜托拜托,帮我拆礼盒得好礼~ + + + + + + + + + 活动时间:5月23日-6月15日 + + + +帮他拆礼盒 +已有126人领取礼盒 + + + + + + 我也要参加 + + 已成功帮你的小伙伴助力! + + + + + + + + + \ No newline at end of file diff --git a/pages/user/assistance/friend_assistance.wxss b/pages/user/assistance/friend_assistance.wxss new file mode 100644 index 0000000..28e3b98 --- /dev/null +++ b/pages/user/assistance/friend_assistance.wxss @@ -0,0 +1,107 @@ +page{ + background: #d01119; + width: 100%; + height: 100% + +} +.top-back{ + width: 100%; + height: 60%; + background-repead:no-repead; + background-size:100% 100%; + +} +.user_img{ + width: 70rpx; + height: 70rpx; + margin-right: 15rpx; + +} +.user_assis{ + width: 85%; + margin: auto; + padding-top: 50rpx; +} +.caption_title{ + margin-top: 60rpx; + margin-bottom: 30rpx; +} +.assis_liba{ + width: 50%; + margin: auto; + height: 340rpx; + +} +.activity_time{ + border-bottom: 1rpx solid #fff; + margin: auto; + display: inline; +} +.cklie_button{ + margin: auto; + width: 60%; + height: 80rpx; + border-radius: 50rpx; + margin-top: 20rpx; + background: #fbda0e; + color:#d01119; + line-height: 80rpx; + letter-spacing: 5rpx; + box-shadow: 0rpx 7rpx 0rpx 0rpx rgb(245, 119, 6); + font-size: 44rpx; + margin-bottom: 40rpx; +} +.con_div{ +z-index: 15; +position: fixed; +top: 0; +left: 0; +height: 100%; +width: 100%; +} +.layer-img{ + width: 100%; + height: 515rpx; + background-repead:no-repead; + background-size:100% 100%; +} +.libao_frame{ +z-index: 15; +position: fixed; +width: 70%; +top: 37.5%; +left: 50%; +transform: translate(-50%, -50%); +height: auto; + +} +.button-img{ + width: 60%; + margin: auto; + color: #d01119; + height: 75rpx; + line-height: 72rpx; + background-repead:no-repead; + background-size:100% 100%; + position: absolute; + left: 19%; + bottom: 43%; +} +.success{ + position: absolute; + left: 23%; + bottom: 36%; +} +.link_div{ + width: 3rpx; + height: 125rpx; + background: #fff; + margin: auto; + +} +.close-none{ +width: 70rpx; +height: 70rpx; + +} +