登录封装
This commit is contained in:
@@ -62,9 +62,16 @@
|
||||
.con{
|
||||
display: grid;
|
||||
grid-template-columns: 260px auto;
|
||||
grid-template-rows: 50px 50px;
|
||||
font-size: $font_size_medium;
|
||||
color: $color_font_three;
|
||||
.des_text{
|
||||
display: flex;
|
||||
margin-bottom: 16px;
|
||||
text{
|
||||
flex:1;
|
||||
@include common_ellipsis(1);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.product_color{
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
import { Button, Image, RichText, Swiper, SwiperItem, View } from '@tarojs/components'
|
||||
import { Button, Image, RichText, Swiper, SwiperItem, Text, View } from '@tarojs/components'
|
||||
import Taro, { useDidShow, useRouter, useShareAppMessage } from '@tarojs/taro';
|
||||
import classnames from "classnames";
|
||||
import DesSwiper from './components/swiper';
|
||||
@@ -103,6 +103,10 @@ export default (props:params) => {
|
||||
}
|
||||
})
|
||||
|
||||
useDidShow(() => {
|
||||
Taro.getCurrentPages()
|
||||
})
|
||||
|
||||
|
||||
return (
|
||||
<View className={styles.main}>
|
||||
@@ -127,10 +131,10 @@ export default (props:params) => {
|
||||
<View className={styles.des_data}>
|
||||
<View className={styles.title}>详情参数</View>
|
||||
<View className={styles.con}>
|
||||
<View>编号:0770</View>
|
||||
<View>幅宽:160cm</View>
|
||||
<View>克重:160g</View>
|
||||
<View>成分:67.6%棉24%涤纶6.4%氨纶%氨纶</View>
|
||||
<View className={styles.des_text}>编号:<Text>0770</Text></View>
|
||||
<View className={styles.des_text}>幅宽:<Text>160cm</Text></View>
|
||||
<View className={styles.des_text}>克重:<Text>160g</Text></View>
|
||||
<View className={styles.des_text}>成分:<Text>67.6%棉24%涤纶6.4%氨纶%氨纶氨纶%氨纶</Text></View>
|
||||
</View>
|
||||
</View>
|
||||
<View className={styles.product_color}>
|
||||
|
||||
@@ -46,12 +46,32 @@ export default () => {
|
||||
console.log('12123')
|
||||
}, 1000)
|
||||
}
|
||||
|
||||
|
||||
|
||||
const goto = function (e) {
|
||||
var t = this
|
||||
Taro.navigateTo({
|
||||
url: '/pages/details/index',
|
||||
events: {
|
||||
// 为指定事件添加一个监听器,获取被打开页面传送到当前页面的数据
|
||||
backFromTargetPage: function (backData) {
|
||||
console.log('好啦,可以在这里写你的逻辑了', backData)
|
||||
if (backData.from == 'page2') {
|
||||
// 监听到 page2 返回
|
||||
console.log('好啦,可以在这里写你的逻辑了', backData)
|
||||
t.setData({
|
||||
isBackFromPage2: !0
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
return (
|
||||
<MoveBtn onClick={() => setShowShopCart(!showShopCart)}>
|
||||
|
||||
<View className={styles.main}>
|
||||
<View onClick={(e) => goto(e)}>aaa</View>
|
||||
<Swiper/>
|
||||
<View className={styles.search}>
|
||||
<View className={styles.search_collect}>我的收藏</View>
|
||||
|
||||
Reference in New Issue
Block a user