feat: 新建utils文件夹
This commit is contained in:
@@ -4,10 +4,19 @@ export default defineAppConfig({
|
|||||||
'pages/my/index',
|
'pages/my/index',
|
||||||
|
|
||||||
],
|
],
|
||||||
|
permission: {
|
||||||
|
"scope.userLocation": {
|
||||||
|
desc: "你的位置信息将用于小程序位置接口的效果展示", // 高速公路行驶持续后台定位
|
||||||
|
},
|
||||||
|
},
|
||||||
|
requiredPrivateInfos: ["getLocation", "chooseLocation",'chooseAddress'],
|
||||||
window: {
|
window: {
|
||||||
backgroundTextStyle: 'light',
|
backgroundTextStyle: 'light',
|
||||||
navigationBarBackgroundColor: '#fff',
|
navigationBarBackgroundColor: '#fff',
|
||||||
navigationBarTitleText: 'WeChat',
|
navigationBarTitleText: 'WeChat',
|
||||||
navigationBarTextStyle: 'black'
|
navigationBarTextStyle: 'black'
|
||||||
|
},
|
||||||
|
// 设置后,空对象代表可以使用小程序原生组件
|
||||||
|
usingComponents: {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { View, Text, Image } from "@tarojs/components";
|
import { View, Text, Image, Button, Icon } from "@tarojs/components";
|
||||||
import { useLoad } from "@tarojs/taro";
|
import { useLoad } from "@tarojs/taro";
|
||||||
import Taro from "@tarojs/taro";
|
import Taro from "@tarojs/taro";
|
||||||
import {
|
import {
|
||||||
@@ -36,28 +36,36 @@ const my = () => {
|
|||||||
<AtTag size="small">女</AtTag>
|
<AtTag size="small">女</AtTag>
|
||||||
</View>
|
</View>
|
||||||
</View>
|
</View>
|
||||||
<View></View>
|
|
||||||
|
|
||||||
|
|
||||||
{/* 列表 */}
|
{/* 列表 */}
|
||||||
<AtListItem
|
<View className="mylist">
|
||||||
title="标题文字1"
|
<AtListItem
|
||||||
arrow="right"
|
title="标题文字1"
|
||||||
thumb="https://img12.360buyimg.com/jdphoto/s72x72_jfs/t6160/14/2008729947/2754/7d512a86/595c3aeeNa89ddf71.png"
|
arrow="right"
|
||||||
/>
|
thumb="https://img12.360buyimg.com/jdphoto/s72x72_jfs/t6160/14/2008729947/2754/7d512a86/595c3aeeNa89ddf71.png"
|
||||||
<AtListItem
|
/>
|
||||||
title="标题文字2"
|
<AtListItem
|
||||||
note="描述信息"
|
title="标题文字2"
|
||||||
arrow="right"
|
// note="描述信息"
|
||||||
thumb="http://img10.360buyimg.com/jdphoto/s72x72_jfs/t5872/209/5240187906/2872/8fa98cd/595c3b2aN4155b931.png"
|
arrow="right"
|
||||||
/>
|
thumb="http://img10.360buyimg.com/jdphoto/s72x72_jfs/t5872/209/5240187906/2872/8fa98cd/595c3b2aN4155b931.png"
|
||||||
<AtListItem
|
/>
|
||||||
title="标题文字3"
|
<AtListItem
|
||||||
note="描述信息"
|
title="联系客服"
|
||||||
extraText="详细信息"
|
// note="描述信息"
|
||||||
arrow="right"
|
// extraText="详细信息"
|
||||||
thumb="http://img12.360buyimg.com/jdphoto/s72x72_jfs/t10660/330/203667368/1672/801735d7/59c85643N31e68303.png"
|
arrow="right"
|
||||||
/>
|
thumb="http://img12.360buyimg.com/jdphoto/s72x72_jfs/t10660/330/203667368/1672/801735d7/59c85643N31e68303.png"
|
||||||
|
/>
|
||||||
|
</View>
|
||||||
|
|
||||||
|
|
||||||
|
{/* 个人客服 */}
|
||||||
|
{/* <View className="wechat">
|
||||||
|
<Button open-type="contact" className="wecahtBtn">
|
||||||
|
联系客服
|
||||||
|
</Button>
|
||||||
|
</View> */}
|
||||||
</View>
|
</View>
|
||||||
|
|
||||||
{/* 底部tabbar */}
|
{/* 底部tabbar */}
|
||||||
|
|||||||
@@ -11,6 +11,28 @@
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
background-color: yellow;
|
background-color: yellow;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.mylist {
|
||||||
|
margin-top: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wechat {
|
||||||
|
padding-left: 35px;
|
||||||
|
padding-right: 35px;
|
||||||
|
// background-color: yellow;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: center;
|
||||||
|
// justify-content: center;
|
||||||
|
.wecahtBtn {
|
||||||
|
width: 100%;
|
||||||
|
// background-color: aqua;
|
||||||
|
.van-button__text {
|
||||||
|
position: relative;
|
||||||
|
left: -245px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.tabbbarDiv {
|
.tabbbarDiv {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|||||||
0
src/utils/index.js
Normal file
0
src/utils/index.js
Normal file
Reference in New Issue
Block a user