[更新]
This commit is contained in:
@@ -19,16 +19,8 @@ Page({
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad (options) {
|
||||
// 判断是否由分享进入
|
||||
// if(options.type == "share"){
|
||||
// // 写入缓存
|
||||
// this.setData({
|
||||
// parentId: options.parent_id
|
||||
// })
|
||||
// }
|
||||
|
||||
// 获取二维码
|
||||
wx.$api.user.publicCode('mini', 'recharge', 'pages/userStored/userStored?type=share').then(res=>{
|
||||
wx.$api.user.publicCode('mini', 'recharge', 'pages/userStored/userStored?type=shareStored').then(res=>{
|
||||
this.setData({
|
||||
qrcode : res.data.qrcode,
|
||||
userInfo : res.data.user
|
||||
@@ -173,19 +165,19 @@ Page({
|
||||
onShareAppMessage(){
|
||||
return {
|
||||
title : this.data.userInfo.nickname + "邀请您进入本时生活",
|
||||
imageUrl: "",
|
||||
path : "/pages/userStored/userStored?parent_id=" + this.data.userInfo.user_id + "&type=share",
|
||||
}
|
||||
path : "/pages/userStored/userStored?parent_id=" + this.data.userInfo.user_id + "&type=shareStored",
|
||||
imageUrl: "/static/img/storedCode.png"
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* 用户点击右上角分享朋友圈
|
||||
*/
|
||||
onShareTimeline: function () {
|
||||
return {
|
||||
title : this.data.userInfo.nickname + "邀请您进入本时生活",
|
||||
path : "/pages/userStored/userStored?parent_id=" + this.data.userInfo.user_id + "&type=share",
|
||||
imageUrl: ''
|
||||
}
|
||||
}
|
||||
// onShareTimeline: function () {
|
||||
// return {
|
||||
// title : this.data.userInfo.nickname + "邀请您进入本时生活",
|
||||
// path : "/pages/userStored/userStored?parent_id=" + this.data.userInfo.user_id + "&type=shareStored",
|
||||
// imageUrl: "/static/img/storedCode.png"
|
||||
// }
|
||||
// }
|
||||
})
|
||||
@@ -15,17 +15,12 @@ Page({
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad (options) {
|
||||
// 判断是否由分享进入
|
||||
if(options.type == "share"){
|
||||
this.setData({
|
||||
parentId: options.parent_id
|
||||
})
|
||||
|
||||
// 写入缓存
|
||||
wx.setStorage({
|
||||
key : 'parentId',
|
||||
data : options.parent_id
|
||||
})
|
||||
if(options.type){
|
||||
getApp().globalData.shareObj = {
|
||||
type : options.type,
|
||||
goodsId : '',
|
||||
userId : options.parent_id
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
@@ -27,19 +27,23 @@
|
||||
<text>¥{{item.worth}}</text>(满{{item.full}}减{{item.worth}})
|
||||
</view>
|
||||
</view>
|
||||
<view bindtap="userNav" data-url="/pages/rights/rights?rightsId={{item.right_config_id}}&parentid={{parentId}}" class="userStoredCont-rights-btn">立即儲值</view>
|
||||
<view bindtap="userNav" data-url="/pages/rights/rights?rightsId={{item.right_config_id}}&orderType=shareStored" class="userStoredCont-rights-btn">立即儲值</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<navigator url="/pages/userStored/storedCode/storedCode" hover-class="none" class="userStoredBtn"
|
||||
wx:if="{{canShare}}">
|
||||
储值分享
|
||||
</navigator>
|
||||
</block>
|
||||
<view class="pack-center pages-hint" wx:else>
|
||||
<image src="/static/img/staff_null.png"></image>
|
||||
<view>暂无订单</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 漂浮窗 -->
|
||||
<movable-area class="indexFloat" wx:if="{{canShare}}">
|
||||
<movable-view y="400" direction="vertical" class="indexFloat-movable">
|
||||
<navigator hover-class="none" url="/pages/userStored/storedCode/storedCode" class="indexFloat-img">
|
||||
<image src="/static/img/index_float_01.png" mode="aspectFill"></image>
|
||||
</navigator>
|
||||
</movable-view>
|
||||
</movable-area>
|
||||
@@ -172,24 +172,23 @@
|
||||
margin-top: 35rpx;
|
||||
}
|
||||
|
||||
/* 分享按钮 */
|
||||
.userStoredBtn {
|
||||
background: #bca585;
|
||||
border-radius: 80rpx;
|
||||
margin: 40rpx 30rpx;
|
||||
width: calc(100% - 60rpx);
|
||||
line-height: 80rpx;
|
||||
text-align: center;
|
||||
color: #ffffff;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
|
||||
/* 漂浮弹出层 */
|
||||
/* .indexFloat {
|
||||
.indexFloat {
|
||||
position: fixed;
|
||||
height: 70%;
|
||||
width: 130rpx;
|
||||
right: 20rpx;
|
||||
bottom: 60rpx;
|
||||
bottom: 40rpx;
|
||||
z-index: 99;
|
||||
}
|
||||
|
||||
.indexFloat-movable {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 150rpx;
|
||||
z-index: 99;
|
||||
}
|
||||
|
||||
@@ -197,4 +196,4 @@
|
||||
width: 130rpx;
|
||||
height: 130rpx;
|
||||
margin-bottom: 20rpx;
|
||||
} */
|
||||
}
|
||||
Reference in New Issue
Block a user