| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160 |
- <template>
- <view class="intro-page common">
- <view class="top-class"></view>
- <view class="title">个人中心</view>
- <view class="head">
- <u-row class="row-class" justify="flex-end">
- <u-col span="4">
- <image class="logo-rules"
- src="https://hyscancode.oss-cn-hangzhou.aliyuncs.com/xiaochengxu/qilang/common/rules.png"
- @click="openDetail" />
- </u-col>
- </u-row>
- </view>
- <view class="content">
- <view class="">
- <u-row customStyle="margin-bottom: 10px">
- <u-col span="4">
- <image class="tubiao"
- :src="image"
- mode="aspectFit" />
- </u-col>
- <u-col span="8">
- <view class="jf_phone">
- {{userPhone}}
- </view>
- </u-col>
- </u-row>
- </view>
- <view class="content_title">
- 我的服务
- </view>
- <view class="content_text">
- <u-row style="height: 200rpx;">
- <u-col span="4" textAlign="center" @click="jumpScanLog">
- <image class="tubiao" src="https://hyscancode.oss-cn-hangzhou.aliyuncs.com/xiaochengxu/qilang/scan.png" mode="aspectFit" />
- <view class="text-class">
- 扫码记录
- </view>
- </u-col>
- </u-row>
- </view>
- <view class="return_view">
- <view class="return-button" @click="goBack()">返回</view>
- </view>
- </view>
- <!-- <CustomTabbar />-->
- </view>
- </template>
- <script>
- import CustomTabbar from '@/components/tabbar_common.vue';
- import {
- getMiniCustomerUserInfo
- } from '@/api/scan';
- export default {
- components: {
- CustomTabbar
- },
- data() {
- return {
- userPhone: '',
- point: 0,
- image:'https://hyscancode.oss-cn-hangzhou.aliyuncs.com/xiaochengxu/qilang/common/logo.png'
- }
- },
- onLoad() {
- this.initUserData();
- },
- methods: {
- openDetail() {
- uni.navigateTo({
- url: '/pages/qilang/index/rules'
- });
- },
- initUserData() {
- let that = this;
- getMiniCustomerUserInfo().then(res => {
- if (res.code === 0) {
- that.userPhone = res.data.phone;
- that.point = res.data.point;
- if (res.data.image !== '' && res.data.image != null){
- that.image = res.data.image;
- }
- console.log(that.point);
- }
- })
- },
- goBack() {
- uni.navigateBack();
- },
- jumpScanLog() {
- uni.navigateTo({
- url: '/pages/qilang/record/record'
- });
- },
- }
- }
- </script>
- <style lang="scss" scoped>
- @import url('../../../static/scss/common_qilang.css');
- .row-class {
- height: 80rpx;
- }
- .content_text {
- height: calc(100% - 300rpx);
- }
- .content_title {
- font-weight: 700;
- font-size: 38rpx;
- color: #333333;
- margin-bottom: 10rpx;
- margin-left: 30rpx;
- }
- .content {
- height: 64vh;
- border-radius: 10rpx;
- margin: 16vh 40rpx 0vh 40rpx;
- padding: 10rpx 24rpx;
- overflow: auto;
- align-items: center;
- justify-content: center;
- border-radius: 48px;
- background: #FDE2B1;
- border: 6px solid #FB911b;
- }
- .tubiao {
- background-size: cover;
- /* 确保背景图片自适应填充整个容器 */
- background-position: center;
- /* 背景图片居中显示 */
- background-repeat: no-repeat;
- /* 防止背景图重复 */
- height: 120rpx;
- width: 100%;
- }
- .text-class {
- font-weight: 600;
- font-size: 16px;
- color: #333333;
- }
- .jf_phone {
- font-weight: bold;
- font-size: 30rpx;
- color: #000000;
- margin-bottom: 10rpx;
- }
- </style>
|