|
@@ -84,7 +84,6 @@ class Index extends Component {
|
|
|
// }
|
|
|
|
|
|
Taro.api.room.apieshouselist({page_size: 2}).then(res => {
|
|
|
- console.log(res.list)
|
|
|
this.setState({
|
|
|
newRoomList: res.list || []
|
|
|
})
|
|
@@ -923,6 +922,22 @@ class Index extends Component {
|
|
|
)
|
|
|
}
|
|
|
|
|
|
+ testClick () {
|
|
|
+ const edClick = Taro.getStorageSync('APP_edClick')
|
|
|
+ if (edClick && edClick === 'yes') {
|
|
|
+
|
|
|
+ } else {
|
|
|
+ const themeObj = Taro.getStorageSync('APP_themeObj')
|
|
|
+ Taro.setClipboardData({
|
|
|
+ data: themeObj.header_bg[0].option1 || '¥DDnPGBaxpDbu2ALP¥',
|
|
|
+ success: function() {
|
|
|
+ Taro.hideToast()
|
|
|
+ Taro.setStorageSync('APP_edClick', 'yes')
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
render () {
|
|
|
const { scrollTop, curScrollObj } = this.state
|
|
@@ -938,6 +953,7 @@ class Index extends Component {
|
|
|
scrollWithAnimation
|
|
|
scrollTop={scrollTop}
|
|
|
onScroll={this.onScroll.bind(this)}
|
|
|
+ onClick={this.testClick.bind(this)}
|
|
|
className="l-scroll-view">
|
|
|
<View className="scoped-header">
|
|
|
{/* <Image className="img" src={themeObj.header_bg[0].icon} /> */}
|