Commit 1de3ec8c authored by mqf_0707's avatar mqf_0707

canvas路径优化

parent f016bbb1
export default {
pages: [
'pages/index/index'
'pages/index/index',
'pages/packageComs/comsTest/comsTest'
],
subPackages: [
{
......
......@@ -21,7 +21,7 @@ const ContainerFit = forwardRef((props, ref) => {
<ScrollView className={styles['scroll-container']}
scrollY scrollTop={scrollTop}
onScroll={(e) => onScroll(e)}
onScrollToUpper={() => console.warn(1)}
onScrollToUpper={() => {}}
scrollWithAnimation
trapScroll={false}
>
......
......@@ -25,8 +25,8 @@ const SwiperView = (props) => {
duration=1000,
interval=1500,
disableTouch=false,
swiperGroup={width:400,height:750,overflow:'visible'},
swiperContent={width:400,height:700,backgroundColor:'#fff',backgroundImage:'',borderRadius:25},
swiperGroup={width:400,height:500,overflow:'visible'},
swiperContent={width:400,height:700,backgroundColor:'#eee',backgroundImage:'',borderRadius:25},
imgContent={width:300},
textContent={width:200,height:60},
showLeftRightBtn=true,
......
......@@ -61,6 +61,7 @@
justify-content: center;
align-items: center;
flex-direction: column;
transform: scale(0.8);
.checkPic {
width: 60px;
......@@ -99,7 +100,7 @@
}
}
&.current_item {
transform: scale(1.2);
transform: scale(1);
.item_img_content {
.img{}
.text_content{
......
......@@ -5,6 +5,6 @@ export default {
enableShareAppMessage: true,
usingComponents: {
'member-modal': '../../components/_miniprogram/memberModal/memberModal',
'canvas-comp': '../../../components/_miniprogram/comBlank/comBlank'
'canvas-comp': '../../components/_miniprogram/comBlank/comBlank'
}
}
\ No newline at end of file
import React, { useRef, useState } from 'react'
import React, { useRef, useState, useEffect } from 'react'
import { View, Image } from '@tarojs/components'
import Taro, { useShareAppMessage, useDidShow, getApp } from '@tarojs/taro'
import classnames from 'classnames'
......@@ -14,7 +14,6 @@ import TasksModal from '@/components/_tb_modal/TasksModal/TasksModal'
import JackpotModal from '@/components/_tb_modal/JackpotModal'
import styles from './index.module.less'
import tbcc from 'tbcc-sdk-ts'
import { useEffect } from 'react'
const { navigateTo, openDetail, showSharePanel } = tbcc.tb
const { getImgShareUrl, checkIsMember, validateActivityStatus } = tbcc.utils
......@@ -209,7 +208,7 @@ function Index() {
onClose={() => setDoHelpModalVisible(false)}
/>
}
{<member-modal expend={memberVisible} sellerId={98563612} onClose={onClose} onAuthFail={onAuthFail} onAuthSuccess={onAuthSuccess} />}
{<member-modal expend={memberVisible} onClose={onClose} onAuthFail={onAuthFail} onAuthSuccess={onAuthSuccess} />}
{false && <canvas-comp />}
</>
)
......
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