123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148 |
- <template>
- <view class="page">
- <view class="top">
- <view class="wd">
- <view class="qw"><image src="../../static/ls.jpg" class="head"></image></view>
- <view class="xs">
- <view>登录 / 注册</view>
- <view class="mt10">张玲</view>
- </view>
- </view>
- <image src="../../static/bj.jpg" mode="aspectFill"></image>
- </view>
- <view class="main">
- <view class="flex menu">
- <view class="f">
- <view class="icon" style="background-color: #607D8B"></view>
- <view class="title">我的预约</view>
- </view>
- <view class="f">
- <view class="icon" style="background-color: #e23e33;"></view>
- <view class="title">我的投诉</view>
- </view>
- <view class="f">
- <view class="icon" style="background-color: #2cc937;"></view>
- <view class="title">我的评论</view>
- </view>
- <view class="f">
- <view class="icon" style="background-color: #2196F3;"></view>
- <view class="title">我的旅途</view>
- </view>
- </view>
- <view class="list">
- <view class="item hr">
- <text class="icon ic"></text>
- <text>个人资料</text>
- <text class="icon arrow"></text>
- </view>
- <view class="item hr">
- <text class="icon ic"></text>
- <text>关于我们</text>
- <text class="icon arrow"></text>
- </view>
- </view>
- </view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- ip: this.$http.urls.ip,
- goods_list: []
- };
- },
- onLoad(e) {
- //this.init();
- },
- methods: {
- init() {
- this.$http.request({
- url: this.$http.urls.home,
- success: res => {
- this.goods_list = res.data.data.goods_list;
- }
- });
- //let user={id:35,nickName:'微信用户',openId:'oD2_E4sMkz3zF_0xjhX_C4vaI_xo',sex:0,phone:'13097850972',token:'eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6Ijc2NTVmOGM0LWY3YTAtNGU0Mi04MDU3LTdkNTA4NGY5NjE2NyJ9.f6xqQVYkm6zlfhZFbCOyj1-iOZtpkHJbUyCB2MNtTW-jgz1_9zcKKOdnw9uX_WJ_2VNrgOn6R5hmQAIm79YIZw'}
- // uni.setStorageSync('user',user);
- },
- detail(item) {
- uni.navigateTo({ url: '/pages/goods/detail?id=' + item.id });
- }
- }
- };
- </script>
- <style lang="scss">
- .top {
- position: relative;
- height: 300px;
- color: white;
- .wd {
- position: absolute;
- top: 70px;
- left: 20px;
- z-index: 111111;
- .head {
- width: 75px;
- height: 75px;
- border-radius: 50%;
- }
- .xs {
- margin-left: 100px;
- width: 100%;
- font-weight: bold;
- margin-top: 10px;
- }
- }
- image {
- width: 100%;
- height: 300px;
- position: absolute;
- }
- }
- .main {
- padding: 15px 15px 50px 15px;
- width: 100%;
- margin-top: -50px;
- overflow: hidden;
- position: absolute;
- .menu {
- background-color: white;
- border-radius: 10px;
- padding: 15px;
- width: 100%;
- box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
- .icon {
- font-size: 30px;
- background-color: red;
- width: 38px;
- height: 38px;
- border-radius: 5px;
- margin: 0 auto;
- color: white;
- padding: 3px;
- }
- .title {
- padding-top: 4px;
- font-size: 13px;
- }
- }
- .list {
- margin-top: 10px;
- box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
- .item {
- padding: 15px;
- .ic {
- font-size: 20px;
- padding-right: 10px;
- }
- .arrow {
- margin-top: 6px;
- font-size: 20px;
- }
- }
- }
- }
- </style>
|