[更新]
This commit is contained in:
@@ -39,16 +39,15 @@ Page({
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad(options) {
|
||||
// 判断是否由分享进入
|
||||
if(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
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面显示
|
||||
*/
|
||||
@@ -242,14 +241,14 @@ Page({
|
||||
canId = e.currentTarget.dataset.id,
|
||||
canFrom = e.currentTarget.dataset.from,
|
||||
canRightid = e.currentTarget.dataset.rightid
|
||||
if(!canBuy) {
|
||||
wx.showToast({
|
||||
title : canText,
|
||||
icon : 'none',
|
||||
duration: 2000
|
||||
})
|
||||
return
|
||||
}
|
||||
// if(!canBuy) {
|
||||
// wx.showToast({
|
||||
// title : canText,
|
||||
// icon : 'none',
|
||||
// duration: 2000
|
||||
// })
|
||||
// return
|
||||
// }
|
||||
|
||||
wx.getStorage({
|
||||
key : 'token',
|
||||
|
||||
@@ -33,7 +33,8 @@
|
||||
bindchange="swiperChange">
|
||||
<swiper-item wx:for="{{adverts}}" wx:key="adverts" bindtap="navigato" data-url="{{item.url}}">
|
||||
<image class="banner-img" src="{{item.cover}}" show-menu-by-longpress="true" mode="aspectFill"
|
||||
bindtap="clickImg" data-img="{{item.qrcode}}" data-url="{{item.url}}" data-channel="{{item.channel}}">
|
||||
bindtap="clickImg" data-img="{{item.qrcode}}" data-url="{{item.url}}"
|
||||
data-channel="{{item.channel}}">
|
||||
</image>
|
||||
<i class="light"></i>
|
||||
</swiper-item>
|
||||
@@ -149,11 +150,14 @@
|
||||
</block>
|
||||
|
||||
<!-- 漂浮窗 -->
|
||||
<view class="indexFloat">
|
||||
<view bindtap="userUrl" data-url="/pages/favour/favour" class="indexFloat-img">
|
||||
<image src="https://lifetest.ysd-bs.com/storage/materials/2021/08/06/index_float_00.png" mode="aspectFill" class="indexFloat-animation"></image>
|
||||
</view>
|
||||
<view bindtap="userUrl" data-url="/pages/code/code" class="indexFloat-img">
|
||||
<image src="/static/img/index_float_01.png" mode="aspectFill"></image>
|
||||
</view>
|
||||
</view>
|
||||
<movable-area class="indexFloat">
|
||||
<movable-view y="340" direction="vertical" class="indexFloat-movable">
|
||||
<view bindtap="userUrl" data-url="/pages/favour/favour" class="indexFloat-img">
|
||||
<image src="https://lifetest.ysd-bs.com/storage/materials/2021/08/06/index_float_00.png"
|
||||
mode="aspectFill" class="indexFloat-animation"></image>
|
||||
</view>
|
||||
<view bindtap="userUrl" data-url="/pages/code/code" class="indexFloat-img">
|
||||
<image src="/static/img/index_float_01.png" mode="aspectFill"></image>
|
||||
</view>
|
||||
</movable-view>
|
||||
</movable-area>
|
||||
@@ -691,8 +691,19 @@ page {
|
||||
/* 漂浮弹出层 */
|
||||
.indexFloat {
|
||||
position: fixed;
|
||||
height: 70%;
|
||||
width: 110rpx;
|
||||
right: 20rpx;
|
||||
bottom: 30rpx;
|
||||
bottom: 0;
|
||||
z-index: 99;
|
||||
}
|
||||
|
||||
.indexFloat-movable {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 280rpx;
|
||||
z-index: 99;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user