Commit 1de3ec8c authored by mqf_0707's avatar mqf_0707

canvas路径优化

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