Commit 6b56de7b by liangjianmin

css

parent a4bcd530
......@@ -11,6 +11,18 @@
-moz-osx-font-smoothing: grayscale;
}
.icon-a-riqi12:before {
content: "\e75e";
}
.icon-riqi2:before {
content: "\e75f";
}
.icon-a-riqi2:before {
content: "\e760";
}
.icon-jinggao2:before {
content: "\e75d";
}
......
.mine-index{
padding-top: 24rpx;
.logged-in {
margin: 0 24rpx;
padding: 0 24rpx;
height: 184rpx;
background: #ffffff;
border-radius: 4rpx;
.uni-img {
width: 101rpx;
height: 101rpx;
border-radius: 50%;
}
.text {
margin-left: 38rpx;
.mb16{
margin-bottom: 16rpx;
}
.t1 {
font-size: 28rpx;
color: #1E2021;
line-height: 40rpx;
}
.t2 {
font-size: 22rpx;
color: #6e767a;
line-height: 30rpx;
}
.t3 {
font-size: 22rpx;
color: #404547;
line-height: 30rpx;
margin-left: 16rpx;
}
}
.iconfont{
font-size: 32rpx;
color: #197ADB;
margin-right: 12rpx;
}
.tt{
font-size: 22rpx;
color: #197ADB;
}
}
.not-logged-in {
margin: 0 24rpx;
padding: 0 24rpx 59rpx 24rpx;
height: 184rpx;
background: #ffffff;
border-radius: 4rpx;
align-items: flex-end;
.uni-img {
width: 101rpx;
height: 101rpx;
border-radius: 50%;
}
.text {
margin-left: 38rpx;
.t1 {
font-size: 28rpx;
color: #197adb;
margin-bottom: 20rpx;
}
.t2 {
font-size: 22rpx;
color: #6e767a;
}
.t3 {
font-size: 22rpx;
color: #404547;
margin-left: 16rpx;
}
}
.iconfont{
font-size: 32rpx;
color: #197ADB;
margin-right: 12rpx;
}
.tt{
font-size: 22rpx;
color: #197adb;
}
}
.list{
margin-top: 24rpx;
padding: 0 24rpx;
.box{
padding: 0 24rpx;
height: 88rpx;
background: #FFFFFF;
border-radius: 4rpx;
margin-bottom: 24rpx;
&:last-child{
margin-bottom: 0rpx;
}
.iconfont{
color: #9CA8AD;
font-size: 36rpx;
margin-right: 20rpx;
}
.tt{
font-size: 28rpx;
color: #1E2021;
}
.text{
font-size: 22rpx;
color: #6E767A;
}
}
}
.exit{
margin: 64rpx 24rpx 0 24rpx;
height: 88rpx;
background: #197ADB;
border-radius: 4rpx;
font-size: 28rpx;
color: #FFFFFF;
}
}
<template>
<view class="mine-index"></view>
<view class="mine-index">
<template v-if="!isLogin">
<view class="not-logged-in row bothSide" @click="toUrl">
<view class="row verCenter">
<image class="uni-img" src="http://img.ichunt.com/images/ichunt/minProgram/scmMinProgram/9cea8db75c06e38dd737b302d7336068.png" mode="aspectFill"></image>
<view class="text column">
<text class="t1">未登录</text>
<view>
<text class="t2">手机号:</text>
<text class="t3">未登录</text>
</view>
</view>
</view>
<view>
<text class="iconfont icon-jinggao1"></text>
<text class="tt">未绑定</text>
</view>
</view>
</template>
<template v-else>
<view class="logged-in row bothSide verCenter">
<view class="row verCenter">
<image class="uni-img" src="http://img.ichunt.com/images/ichunt/minProgram/scmMinProgram/9cea8db75c06e38dd737b302d7336068.png" mode="aspectFill"></image>
<view class="text column">
<text class="t1">深圳市猎芯科技有限公司</text>
<view>
<text class="t2">手机号:</text>
<text class="t3">15012479484</text>
</view>
<view>
<text class="t2">最近登录:</text>
<text class="t3">2021-08-23 16:22</text>
</view>
</view>
</view>
<view>
<text class="iconfont icon-jinggao1"></text>
<text class="tt">已绑定</text>
</view>
</view>
<view class="list column">
<view class="box row bothSide verCenter">
<view class="row verCenter">
<text class="iconfont icon-riqi2"></text>
<text class="tt">绑定邮箱</text>
</view>
<view class="text">cyp@ichunt.com</view>
</view>
<view class="box row bothSide verCenter">
<view class="row verCenter">
<text class="iconfont icon-a-riqi12"></text>
<text class="tt">签约状态</text>
</view>
<view class="text">已签约</view>
</view>
<view class="box row bothSide verCenter">
<view class="row verCenter">
<text class="iconfont icon-a-riqi2"></text>
<text class="tt">我的业务</text>
</view>
<view class="text">陈小姐 15012479484</view>
</view>
<view class="box row bothSide verCenter">
<view class="row verCenter">
<text class="iconfont icon-a-riqi2"></text>
<text class="tt">我的商务</text>
</view>
<view class="text">陈小姐 15012479484</view>
</view>
</view>
<view class="exit row rowCenter verCenter">退出账号</view>
</template>
</view>
</template>
<script>
import { API } from '@/util/api.js';
export default {
data() {
return {};
return {
isLogin: false
};
},
onLoad(options) {},
onShow() {
this.getData();
},
onShareTimeline(res) {
return {
title: '',
imageUrl: ''
};
},
methods: {}
methods: {
getData() {
this.request(API.UserInfo, 'POST', {}, true).then(res => {
if (res.err_code === 0) {
this.isLogin = true;
}
});
},
toUrl() {
uni.navigateTo({
url: '/pages/mine/auth'
});
}
}
};
</script>
<style lang="scss">
<style lang="scss">
@import '../../assets/css/mine/index.scss';
</style>

1.8 KB | W: | H:

1.83 KB | W: | H:

static/ico2_s.png
static/ico2_s.png
static/ico2_s.png
static/ico2_s.png
  • 2-up
  • Swipe
  • Onion skin
No preview for this file type
This diff could not be displayed because it is too large.
@font-face {
font-family: "iconfont";
src: url(data:font/ttf;base64,AAEAAAALAIAAAwAwR1NVQiCLJXoAAAE4AAAAVE9TLzI9akotAAABjAAAAGBjbWFw6J0wKAAAAhAAAAHgZ2x5ZsWvX9gAAAQEAAAEEGhlYWQd2NghAAAA4AAAADZoaGVhB94DigAAALwAAAAkaG10eCQAAAAAAAHsAAAAJGxvY2EEkgW6AAAD8AAAABRtYXhwARkAZgAAARgAAAAgbmFtZRCjPLAAAAgUAAACZ3Bvc3SVdA3aAAAKfAAAAHgAAQAAA4D/gABcBAAAAAAABAAAAQAAAAAAAAAAAAAAAAAAAAkAAQAAAAEAAFrNtghfDzz1AAsEAAAAAADdXMoOAAAAAN1cyg4AAP/rBAADHQAAAAgAAgAAAAAAAAABAAAACQBaAAYAAAAAAAIAAAAKAAoAAAD/AAAAAAAAAAEAAAAKADAAPgACREZMVAAObGF0bgAaAAQAAAAAAAAAAQAAAAQAAAAAAAAAAQAAAAFsaWdhAAgAAAABAAAAAQAEAAQAAAABAAgAAQAGAAAAAQAAAAQEAAGQAAUAAAKJAswAAACPAokCzAAAAesAMgEIAAACAAUDAAAAAAAAAAAAAAAAAAAAAA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xwCez75+QAAABIA3gABAAAAAAAAABMAAAABAAAAAAABAAgAEwABAAAAAAACAAcAGwABAAAAAAADAAgAIgABAAAAAAAEAAgAKgABAAAAAAAFAAsAMgABAAAAAAAGAAgAPQABAAAAAAAKACsARQABAAAAAAALABMAcAADAAEECQAAACYAgwADAAEECQABABAAqQADAAEECQACAA4AuQADAAEECQADABAAxwADAAEECQAEABAA1wADAAEECQAFABYA5wADAAEECQAGABAA/QADAAEECQAKAFYBDQADAAEECQALACYBY0NyZWF0ZWQgYnkgaWNvbmZvbnRpY29uZm9udFJlZ3VsYXJpY29uZm9udGljb25mb250VmVyc2lvbiAxLjBpY29uZm9udEdlbmVyYXRlZCBieSBzdmcydHRmIGZyb20gRm9udGVsbG8gcHJvamVjdC5odHRwOi8vZm9udGVsbG8uY29tAEMAcgBlAGEAdABlAGQAIABiAHkAIABpAGMAbwBuAGYAbwBuAHQAaQBjAG8AbgBmAG8AbgB0AFIAZQBnAHUAbABhAHIAaQBjAG8AbgBmAG8AbgB0AGkAYwBvAG4AZgBvAG4AdABWAGUAcgBzAGkAbwBuACAAMQAuADAAaQBjAG8AbgBmAG8AbgB0AEcAZQBuAGUAcgBhAHQAZQBkACAAYgB5ACAAcwB2AGcAMgB0AHQAZgAgAGYAcgBvAG0AIABGAG8AbgB0AGUAbABsAG8AIABwAHIAbwBqAGUAYwB0AC4AaAB0AHQAcAA6AC8ALwBmAG8AbgB0AGUAbABsAG8ALgBjAG8AbQAAAgAAAAAAAAAKAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAJAQIBAwEEAQUBBgEHAQgBCQEKAAhqaW5nZ2FvMghqaW5nZ2FvMQhhLXJpcWkxMQVyaXFpMQphLWppbmdnYW8zB2EtcmlxaTEEcmlxaQdqaW5nZ2FvAAA=) format('truetype');
src: url(data:font/ttf;base64,AAEAAAALAIAAAwAwR1NVQiCLJXoAAAE4AAAAVE9TLzI9akowAAABjAAAAGBjbWFwmPnseQAAAhwAAAIKZ2x5Zgg/cB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AAAAAAAAADAECAQMBBAEFAQYBBwEIAQkBCgELAQwBDQAIYS1yaXFpMTIFcmlxaTIHYS1yaXFpMghqaW5nZ2FvMghqaW5nZ2FvMQhhLXJpcWkxMQVyaXFpMQphLWppbmdnYW8zB2EtcmlxaTEEcmlxaQdqaW5nZ2FvAAAAAAA=) format('truetype');
}
.iconfont {
font-family: "iconfont" !important;
......@@ -9,6 +9,15 @@
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.icon-a-riqi12:before {
content: "\e75e";
}
.icon-riqi2:before {
content: "\e75f";
}
.icon-a-riqi2:before {
content: "\e760";
}
.icon-jinggao2:before {
content: "\e75d";
}
......
......@@ -8168,7 +8168,7 @@ function normalizeComponent (
*/
var request = function request() {var url = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'GET';var param = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};var Loading = arguments.length > 3 ? arguments[3] : undefined;
var token = uni.getStorageSync('userToken');
var token = uni.getStorageSync('token');
if (token) {
var params = Object.assign(param, {
......@@ -8188,7 +8188,8 @@ var request = function request() {var url = arguments.length > 0 && arguments[0]
}
var header = {
"Content-Type": "application/json; charset=utf-8" };
"Content-Type": "application/json; charset=utf-8",
"Authorization": token };
return new Promise(function (resolve, reject) {
......
......@@ -130,23 +130,161 @@ __webpack_require__.r(__webpack_exports__);
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0; //
/* WEBPACK VAR INJECTION */(function(uni) {Object.defineProperty(exports, "__esModule", { value: true });exports.default = void 0;
var _api = __webpack_require__(/*! @/util/api.js */ 12); //
//
//
//
var _default =
{
data: function data() {
return {};
},
onLoad: function onLoad(options) {},
onShareTimeline: function onShareTimeline(res) {
return {
title: '',
imageUrl: '' };
},
methods: {} };exports.default = _default;
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
var _default = { data: function data() {return { isLogin: false };}, onLoad: function onLoad(options) {}, onShow: function onShow() {this.getData();}, onShareTimeline: function onShareTimeline(res) {return { title: '', imageUrl: '' };}, methods: { getData: function getData() {var _this = this;this.request(_api.API.UserInfo, 'POST', {}, true).then(function (res) {if (res.err_code === 0) {_this.isLogin = true;}});}, toUrl: function toUrl() {uni.navigateTo({ url: '/pages/mine/auth' });} } };exports.default = _default;
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./node_modules/@dcloudio/uni-mp-weixin/dist/index.js */ 1)["default"]))
/***/ }),
......
<view class="mine-index"></view>
\ No newline at end of file
<view class="mine-index"><block wx:if="{{!isLogin}}"><view data-event-opts="{{[['tap',[['toUrl',['$event']]]]]}}" class="not-logged-in row bothSide" bindtap="__e"><view class="row verCenter"><image class="uni-img" src="http://img.ichunt.com/images/ichunt/minProgram/scmMinProgram/9cea8db75c06e38dd737b302d7336068.png" mode="aspectFill"></image><view class="text column"><text class="t1">未登录</text><view><text class="t2">手机号:</text><text class="t3">未登录</text></view></view></view><view><text class="iconfont icon-jinggao1"></text><text class="tt">未绑定</text></view></view></block><block wx:else><view class="logged-in row bothSide verCenter"><view class="row verCenter"><image class="uni-img" src="http://img.ichunt.com/images/ichunt/minProgram/scmMinProgram/9cea8db75c06e38dd737b302d7336068.png" mode="aspectFill"></image><view class="text column"><text class="t1">深圳市猎芯科技有限公司</text><view><text class="t2">手机号:</text><text class="t3">15012479484</text></view><view><text class="t2">最近登录:</text><text class="t3">2021-08-23 16:22</text></view></view></view><view><text class="iconfont icon-jinggao1"></text><text class="tt">已绑定</text></view></view><view class="list column"><view class="box row bothSide verCenter"><view class="row verCenter"><text class="iconfont icon-riqi2"></text><text class="tt">绑定邮箱</text></view><view class="text">cyp@ichunt.com</view></view><view class="box row bothSide verCenter"><view class="row verCenter"><text class="iconfont icon-a-riqi12"></text><text class="tt">签约状态</text></view><view class="text">已签约</view></view><view class="box row bothSide verCenter"><view class="row verCenter"><text class="iconfont icon-a-riqi2"></text><text class="tt">我的业务</text></view><view class="text">陈小姐 15012479484</view></view><view class="box row bothSide verCenter"><view class="row verCenter"><text class="iconfont icon-a-riqi2"></text><text class="tt">我的商务</text></view><view class="text">陈小姐 15012479484</view></view></view><view class="exit row rowCenter verCenter">退出账号</view></block></view>
\ No newline at end of file
......@@ -76,4 +76,126 @@ image {
color: #1e2021;
font-weight: bold;
}
.mine-index {
padding-top: 24rpx;
}
.mine-index .logged-in {
margin: 0 24rpx;
padding: 0 24rpx;
height: 184rpx;
background: #ffffff;
border-radius: 4rpx;
}
.mine-index .logged-in .uni-img {
width: 101rpx;
height: 101rpx;
border-radius: 50%;
}
.mine-index .logged-in .text {
margin-left: 38rpx;
}
.mine-index .logged-in .text .mb16 {
margin-bottom: 16rpx;
}
.mine-index .logged-in .text .t1 {
font-size: 28rpx;
color: #1E2021;
line-height: 40rpx;
}
.mine-index .logged-in .text .t2 {
font-size: 22rpx;
color: #6e767a;
line-height: 30rpx;
}
.mine-index .logged-in .text .t3 {
font-size: 22rpx;
color: #404547;
line-height: 30rpx;
margin-left: 16rpx;
}
.mine-index .logged-in .iconfont {
font-size: 32rpx;
color: #197ADB;
margin-right: 12rpx;
}
.mine-index .logged-in .tt {
font-size: 22rpx;
color: #197ADB;
}
.mine-index .not-logged-in {
margin: 0 24rpx;
padding: 0 24rpx 59rpx 24rpx;
height: 184rpx;
background: #ffffff;
border-radius: 4rpx;
-webkit-box-align: end;
-webkit-align-items: flex-end;
align-items: flex-end;
}
.mine-index .not-logged-in .uni-img {
width: 101rpx;
height: 101rpx;
border-radius: 50%;
}
.mine-index .not-logged-in .text {
margin-left: 38rpx;
}
.mine-index .not-logged-in .text .t1 {
font-size: 28rpx;
color: #197adb;
margin-bottom: 20rpx;
}
.mine-index .not-logged-in .text .t2 {
font-size: 22rpx;
color: #6e767a;
}
.mine-index .not-logged-in .text .t3 {
font-size: 22rpx;
color: #404547;
margin-left: 16rpx;
}
.mine-index .not-logged-in .iconfont {
font-size: 32rpx;
color: #197ADB;
margin-right: 12rpx;
}
.mine-index .not-logged-in .tt {
font-size: 22rpx;
color: #197adb;
}
.mine-index .list {
margin-top: 24rpx;
padding: 0 24rpx;
}
.mine-index .list .box {
padding: 0 24rpx;
height: 88rpx;
background: #FFFFFF;
border-radius: 4rpx;
margin-bottom: 24rpx;
}
.mine-index .list .box:last-child {
margin-bottom: 0rpx;
}
.mine-index .list .box .iconfont {
color: #9CA8AD;
font-size: 36rpx;
margin-right: 20rpx;
}
.mine-index .list .box .tt {
font-size: 28rpx;
color: #1E2021;
}
.mine-index .list .box .text {
font-size: 22rpx;
color: #6E767A;
}
.mine-index .exit {
margin: 64rpx 24rpx 0 24rpx;
height: 88rpx;
background: #197ADB;
border-radius: 4rpx;
font-size: 28rpx;
color: #FFFFFF;
}
......@@ -71,6 +71,12 @@
"pathName": "pages/mine/login",
"query": "",
"scene": null
},
{
"name": "pages/mine/index",
"pathName": "pages/mine/index",
"query": "",
"scene": null
}
]
}
......

1.8 KB | W: | H:

1.83 KB | W: | H:

unpackage/dist/dev/mp-weixin/static/ico2_s.png
unpackage/dist/dev/mp-weixin/static/ico2_s.png
unpackage/dist/dev/mp-weixin/static/ico2_s.png
unpackage/dist/dev/mp-weixin/static/ico2_s.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -4,48 +4,49 @@ import API_BASE from '../util/api.js'
*/
const request = (url = '', type = 'GET', param = {}, Loading) => {
const token = uni.getStorageSync('userToken');
const token = uni.getStorageSync('token');
if (token) {
var params = Object.assign(param, {
token: token
});
} else {
var params = param;
}
if (token) {
var params = Object.assign(param, {
token: token
});
} else {
var params = param;
}
//是否启动加载
if (Loading) {
uni.showLoading({
title: '加载中...'
});
}
//是否启动加载
if (Loading) {
uni.showLoading({
title: '加载中...'
});
}
const header = {
"Content-Type": "application/json; charset=utf-8"
};
const header = {
"Content-Type": "application/json; charset=utf-8",
"Authorization": token
};
return new Promise((resolve, reject) => {
uni.request({
method: type,
url: url,
data: params,
header: header,
dataType: 'json',
}).then((response) => {
if (Loading) {
uni.hideLoading();
}
let [error, res] = response;
resolve(res.data);
}).catch(error => {
uni.hideLoading();
let [err, res] = error;
reject(err);
})
});
return new Promise((resolve, reject) => {
uni.request({
method: type,
url: url,
data: params,
header: header,
dataType: 'json',
}).then((response) => {
if (Loading) {
uni.hideLoading();
}
let [error, res] = response;
resolve(res.data);
}).catch(error => {
uni.hideLoading();
let [err, res] = error;
reject(err);
})
});
}
/**
......@@ -53,20 +54,20 @@ const request = (url = '', type = 'GET', param = {}, Loading) => {
*/
const getPlatform = () => {
let platform = undefined;
let platform = undefined;
// #ifdef APP-PLUS
platform = 'APP';
// #endif
// #ifdef APP-PLUS
platform = 'APP';
// #endif
// #ifdef MP-WEIXIN
platform = 'MP-WEIXIN';
// #endif
// #ifdef MP-WEIXIN
platform = 'MP-WEIXIN';
// #endif
return platform;
return platform;
}
module.exports = {
request,
getPlatform
request,
getPlatform
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment