parent
88e639c9ea
commit
a2b654185b
15 changed files with 112 additions and 60 deletions
@ -1,14 +1,41 @@ |
||||
import { Image } from '@tarojs/components' |
||||
import Taro, { useShareAppMessage, useShareTimeline } from '@tarojs/taro' |
||||
import './index.less' |
||||
|
||||
export default function Customer() { |
||||
|
||||
useShareAppMessage((res) => { |
||||
return { |
||||
title: '五色花', |
||||
path: '/pages/Home/index' |
||||
} |
||||
}) |
||||
|
||||
useShareTimeline(() => { |
||||
return { |
||||
title: '五色花', |
||||
path: '/pages/Home/index' |
||||
} |
||||
}) |
||||
|
||||
const handleLongPress = () => { |
||||
Taro.scanCode({ |
||||
success: (res) => { |
||||
console.log(44, res) |
||||
}, |
||||
fail: () => { |
||||
|
||||
}, |
||||
}) |
||||
} |
||||
|
||||
return ( |
||||
<Image |
||||
src='https://oss.jm-kid.com/wx_5colorflower/icons/customer.svg' |
||||
className='pic' |
||||
mode='aspectFill' |
||||
show-menu-by-longpress |
||||
onLongPress={handleLongPress} |
||||
></Image> |
||||
) |
||||
} |
||||
|
Loading…
Reference in new issue