Browse Source

Merge branch 'dev' of http://git.ycjcjy.com/shigongli/miniapp-v2 into dev

李志伟 3 years ago
parent
commit
a59118550e

+ 2
- 0
src/components/CollectList/MyCollect/index.jsx View File

17
   const targetType = item.targetType
17
   const targetType = item.targetType
18
   const star = parseFloat(((item.sweetScore + item.environmentScore + item.serviceScore) / 3).toFixed(1));
18
   const star = parseFloat(((item.sweetScore + item.environmentScore + item.serviceScore) / 3).toFixed(1));
19
 
19
 
20
+
21
+
20
   const handleDetail = () => {
22
   const handleDetail = () => {
21
     targetType == "shop_package" ? Taro.navigateTo({ url: `/pages/details/foodDetails/foodDetails?id=${item.shopId}` })
23
     targetType == "shop_package" ? Taro.navigateTo({ url: `/pages/details/foodDetails/foodDetails?id=${item.shopId}` })
22
       : targetType == "tourist" ? Taro.navigateTo({ url: `/pages/details/mjDetails/sceneryDetails?id=${item.targetId}` })
24
       : targetType == "tourist" ? Taro.navigateTo({ url: `/pages/details/mjDetails/sceneryDetails?id=${item.targetId}` })

+ 0
- 2
src/components/CouponCard/Media/style.less View File

1
-
2
 .coupun-media {
1
 .coupun-media {
3
   display: flex;
2
   display: flex;
4
-
5
   &_header {
3
   &_header {
6
     flex: none;
4
     flex: none;
7
     box-sizing: border-box;
5
     box-sizing: border-box;

+ 2
- 1
src/pages/index/tabs/Mine.jsx View File

50
       lang: 'zh_CN',
50
       lang: 'zh_CN',
51
       desc: "获取你的昵称、头像、地区及性别",
51
       desc: "获取你的昵称、头像、地区及性别",
52
       success: (res) => {
52
       success: (res) => {
53
+        console.log("🚀 ~ file: Mine.jsx ~ line 53 ~ handleGetUserProfile ~ res", res)
53
         const data = {
54
         const data = {
54
           ...res,
55
           ...res,
55
           sessionKey,
56
           sessionKey,
116
           <view className='User-info-all'>
117
           <view className='User-info-all'>
117
             <view onClick={handleGetUserProfile} className='User-name'>{hasAvatar ? person.nickName : '点击授权头像'}</view>
118
             <view onClick={handleGetUserProfile} className='User-name'>{hasAvatar ? person.nickName : '点击授权头像'}</view>
118
             <view className='User-phone'>{person.phone.replace(/^(\d{3})\d{4}(\d+)/, "$1****$2") || ''}</view>
119
             <view className='User-phone'>{person.phone.replace(/^(\d{3})\d{4}(\d+)/, "$1****$2") || ''}</view>
119
-            <image className='User-sex' src={person.sex === 1 ? boy : girl} />
120
+            {/* <image className='User-sex' src={person.sex === 1 ? boy : girl} /> */}
120
           </view>
121
           </view>
121
           {/* 切换身份 */}
122
           {/* 切换身份 */}
122
           <view onClick={ShowMoldeOn} className='User-info-cutover'>
123
           <view onClick={ShowMoldeOn} className='User-info-cutover'>

+ 1
- 1
src/pages/index/tabs/Recommend.jsx View File

75
   // })
75
   // })
76
 
76
 
77
   return (
77
   return (
78
-    <view style={{ height: '100%', overflow: 'hidden', display: 'flex',   flexDirection:'column' }}>
78
+    <view style={{ height: '100%', overflow: 'hidden', display: 'flex', flexDirection: 'column' }}>
79
       <view className='search' onClick={onSearch} >
79
       <view className='search' onClick={onSearch} >
80
         <input className='searchInput' disabled />
80
         <input className='searchInput' disabled />
81
         <image className='searchicon' src={iconsearch} />
81
         <image className='searchicon' src={iconsearch} />