我的资产调整首页调整提交企业认证接口调整

This commit is contained in:
唐明明
2021-09-13 17:51:11 +08:00
parent c0ef48f7cf
commit ac59089e29
83 changed files with 7251 additions and 2958 deletions

View File

@@ -13,15 +13,6 @@
<label>企业名称</label>
<input type="text" v-model="name" placeholder="输入企业名称" />
</view>
<view class="inputs">
<label>企业类型</label>
<picker v-if="type.length > 0" :range="type" :value="typeIndex" range-key="name" @change="changePicker" data-type="type">
<view class="picker-text nowrap">
{{type[typeIndex].name}}
<uni-icons class="picker-icon" type="arrowdown"></uni-icons>
</view>
</picker>
</view>
<view class="inputs">
<label>企业行业</label>
<picker v-if="industry.length > 0" :range="industry" :value="industryIndex" range-key="title" @change="changePicker" data-type="industry">
@@ -31,6 +22,13 @@
</view>
</picker>
</view>
<view class="inputs">
<label>经营类目</label>
<view class="picker-text" @click="opnePopup">
选择经营类目
<uni-icons class="picker-icon" type="arrowdown"></uni-icons>
</view>
</view>
<view class="inputs">
<label>法人姓名</label>
<input type="text" v-model="corporate" placeholder="输入法人姓名" />
@@ -51,6 +49,21 @@
<button type="default" size="default" @click="submitApplies">提交认证</button>
</view>
</view>
<!-- 经营类目 -->
<uni-popup ref="categoryPopup">
<view class="category-popup">
<view class="header">
<view class="title">经营类目</view>
<view class="subtitle">请选择经营类目</view>
</view>
<view class="category-flex">
<view class="category-flex-item" :class="{'show' : item.check}" v-for="(item, index) in category" :key="index" @click="item.check = !item.check">{{item.name}}</view>
</view>
<view class="btns">
<button type="default" size="default" @click="affirmCategory">确定</button>
</view>
</view>
</uni-popup>
</view>
</template>
@@ -67,22 +80,22 @@
org : "",
logo : "",
license : "",
type : [],
industry : [],
typeIndex : 0,
industryIndex: 0,
reason : ''
reason : '',
category : [],
categorys : []
};
},
created(){
// 读取配置信息
appliesCreate().then(res=>{
console.log(res)
this.industry = res.industries
this.type = res.type
this.formType = this.$Route.query.formType
this.name = res.info.name
this.typeIndex = res.type.findIndex(val => val.id === res.info.type.id) || 0
this.industryIndex = res.industries.findIndex(val => val.industry_id === res.info.industry.industry_id) || 0
this.category = res.info.categories
if(this.formType === 'put'){
appliesInfo().then(formValue => {
this.corporate = formValue.certification.name
@@ -91,7 +104,10 @@
this.logo = formValue.cover
this.license = formValue.certification.license
}).catch(valueErr => {
console.log(valueErr)
uni.showToast({
title: valueErr.message,
icon : 'none'
})
})
}
}).catch(err =>{
@@ -102,9 +118,22 @@
})
},
methods:{
// 选择经营类目
opnePopup(){
this.$refs.categoryPopup.open('bottom')
},
// 确认选择类目
affirmCategory(){
this.categorys = []
for(let val of this.category){
if(val.check){
this.categorys.push(val.category_id)
}
}
this.$refs.categoryPopup.close()
},
// 提交信息
submitApplies(){
let method = this.formType === 'put' ? 'PUT' : 'POST'
applies({
name : this.name,
@@ -113,8 +142,8 @@
user_name : this.corporate,
id_card : this.identity,
code : this.org,
type : this.type[this.typeIndex].id,
industry_id : this.industry[this.industryIndex].industry_id,
categories : this.categorys
}, method).then(res => {
uni.showModal({
title : '提示',
@@ -135,28 +164,23 @@
// 选择器
changePicker(e){
let changeType = e.target.dataset.type,
changeVlae = e.detail.value
switch(changeType){
case 'type':
this.typeIndex = changeVlae
break
case 'industry':
this.industryIndex = changeVlae
break
}
this.industryIndex = e.detail.value
},
// 上传图片
updImg(type){
uni.chooseImage({
count : 1,
success : choose => {
let paths = choose.tempFilePaths
uploading(paths).then(res => {
this[type] = res.url
console.log(this[type])
success : path => {
uploads([{
uri : path.tempFilePaths[0]
}]).then(res => {
this[type] = res.url[0]
}).catch(err => {
uni.showToast({
title: err.message,
icon : 'none'
})
})
}
})
@@ -255,5 +279,46 @@
}
}
}
// 经营类目
.category-popup{
background: #F5F5F5;
padding: 0 $padding * 2 $padding * 2 $padding * 2;
.header{
padding-bottom: $padding;
}
.category-flex{
margin: 0 -10rpx;
display: flex;
flex-wrap: wrap;
.category-flex-item{
margin: 10rpx;
background: white;
width: calc(33.33% - 20rpx);
line-height: 90rpx;
text-align: center;
font-size: $title-size-m;
@extend .nowrap;
&.show{
color: white;
background-color: $text-price;
}
}
}
.btns{
padding-top: $padding * 2;
button{
background: $text-price;
border-radius: 0;
height: 90rpx;
line-height: 90rpx;
font-size: $title-size;
color: white;
font-weight: bold;
&::after{
border: none;
}
}
}
}
}
</style>

View File

@@ -9,15 +9,6 @@
<label>企业名称</label>
<input type="text" v-model="name" placeholder="输入企业名称" />
</view>
<view class="inputs">
<label>企业类型</label>
<picker v-if="type.length > 0" :range="type" :value="typeIndex" range-key="name" @change="changePicker" data-type="type">
<view class="picker-text nowrap">
{{type[typeIndex].name}}
<uni-icons class="picker-icon" type="arrowdown"></uni-icons>
</view>
</picker>
</view>
<view class="inputs">
<label>企业行业</label>
<picker v-if="industry.length > 0" :range="industry" :value="industryIndex" range-key="title" @change="changePicker" data-type="industry">
@@ -40,16 +31,13 @@
data() {
return {
name : "",
type : [],
industry : [],
typeIndex : 0,
industryIndex: 0
};
},
created(){
createConfig().then(res=>{
this.type = res.type
this.industry = res.industries
this.industry = res
})
},
methods:{
@@ -57,7 +45,6 @@
next(){
inits({
name : this.name,
type : this.type[this.typeIndex].id,
industry_id : this.industry[this.industryIndex].industry_id
}).then(res => {
this.$Router.push({name: 'Prompt'})

View File

@@ -1,13 +1,17 @@
<template>
<view class="content">
<view class="content" v-if="!loging">
<!-- 基础信息 -->
<view class="info-card">
<view class="cover">
<view class="cover-add vertical">
<image src="@/static/icons/add-icon.png" mode="widthFix"></image>
<view>员工寸照</view>
<view class="cover-add vertical" @click="updCover">
<block v-if="cover != ''">
<image :src="cover" mode="aspectFill"></image>
</block>
<block v-else>
<image class="cover-default" src="@/static/icons/add-icon.png" mode="widthFix"></image>
<view>员工寸照</view>
</block>
</view>
<!-- <image src="@/static/dev/good_cover_00.jpg" mode="aspectFill"></image> -->
</view>
<view class="info-text">
<view class="info-inputs">
@@ -32,54 +36,99 @@
<!-- 权限设置 -->
<view class="title">权限设置</view>
<view class="jurisdiction">
<view class="item">
<label>
<view class="item-title">运营者权限</view>
<view class="item-info">管理推广设置等模块权限可使用体验版小程序</view>
<checkbox class="item-checkbox" color="#c82626" />
</label>
</view>
<view class="item">
<label>
<view class="item-title">开发者权限</view>
<view class="item-info">开发模块权限可使用体验版小程序开发者工具IDE</view>
<checkbox class="item-checkbox" color="#c82626" />
</label>
</view>
<view class="item">
<label>
<view class="item-title">数据分析者基础分析</view>
<view class="item-info">统计模块权限可使用体验版小程序</view>
<checkbox class="item-checkbox" color="#c82626" />
</label>
</view>
<checkbox-group @change="permissionChange">
<view class="item" v-for="(item, index) in permissions" :key="index">
<label>
<view class="item-title">{{item.title}}</view>
<view class="item-info">{{item.description}}</view>
<checkbox class="item-checkbox" color="#c82626" :value="item.permission_id" />
</label>
</view>
</checkbox-group>
</view>
<!-- 按钮 -->
<view class="add-btns">
<button size="default">确认添加</button>
<button size="default" @click="onAddEmployees">确认添加</button>
</view>
</view>
</template>
<script>
import { employeesConfig, addEmployees } from '@/apis/interfaces/employees'
import { uploads } from '@/apis/interfaces/uploading'
export default {
data() {
return {
section : [
{name: '技术部', id: 0},
{name: '市场部', id: 1},
{name: '南岗店', id: 2}
],
sectionIndex: 0,
name : '',
phone : '',
job : ''
loging : true,
section : [],
permissions : [],
permissionIds: [],
sectionIndex : 0,
cover : '',
name : '',
phone : '',
job : ''
};
},
created() {
employeesConfig().then(res => {
this.section = res.store
this.permissions = res.permissions
this.loging = false
})
},
methods:{
// 选择部门
pickerChange(e){
this.sectionIndex = e.detail.value
},
// 权限选择
permissionChange(e){
this.permissionIds = e.detail.value
},
// 上传照片
updCover(){
uni.chooseImage({
crop: {width: 229, height: 320},
success: path=> {
uploads([{
uri : path.tempFilePaths[0]
}]).then(res => {
this.cover = res.url[0]
}).catch(err => {
uni.showToast({
title: err.message,
icon : 'none'
})
})
}
})
},
// 添加员工
onAddEmployees(){
addEmployees({
name : this.name,
mobileNo : this.phone,
job : this.job,
cover : this.cover,
position : 1,
order : 0,
store_id : this.section[this.sectionIndex].store_id,
permission : this.permissionIds
}).then(res => {
uni.showModal({
title : '提示',
content : res,
success : () => {
this.$Router.back()
}
})
}).catch(err => {
uni.showToast({
title: err.message,
icon : 'none'
})
})
}
}
}
@@ -147,6 +196,10 @@
height: 100%;
text-align: center;
image{
width: 229rpx;
height: 320rpx;
}
image.cover-default{
width: 128rpx;
}
color: $text-gray-m;

View File

@@ -2,7 +2,7 @@
<view>
<!-- 状态栏 -->
<nv :config="nvConfig" @nvTabTap="onNvTab" @nvBtnTap="onRightBtn"></nv>
<block v-if="tabIndex === 0">
<block v-if="tabIndex === 1">
<!-- 推荐商家 -->
<view class="block-title">
<view class="title">
@@ -42,7 +42,7 @@
<uni-rate
:readonly="true"
color="#ddd"
active-color="#c82626"
active-color="#e93340"
:value="item.star"
:size="14"
/>
@@ -61,11 +61,11 @@
<industry-list :list="busList" @on-industry="onOpenWechat"/>
</block>
<!-- 易货商城 -->
<block v-if="tabIndex === 1">
<block v-if="tabIndex === 0">
<view class="header-back">
<!-- 轮播图 -->
<view class="banner">
<swiper class="banner-swiper" indicator-color="#c82626" indicator-active-color="#f8f8f8" indicator-dots autoplay>
<swiper class="banner-swiper" indicator-color="#e93340" indicator-active-color="#f8f8f8" indicator-dots autoplay>
<swiper-item v-for="(item, index) in banners" :key="index">
<image class="cover" :src="item.cover" mode="aspectFill"></image>
</swiper-item>
@@ -137,12 +137,12 @@
tabIndex : 0,
nvConfig : {
tabArr: [
{title:'广场', active:true},
{title:'易货'}
{title:'易货商城', active:true},
{title:'企业广场'}
],
color: '#FFF',
hideback: true,
bgColor: '#c82626',
bgColor: '#e93340',
btn: [{
icon: '/static/icons/search-icon.png',
@@ -166,7 +166,7 @@
};
},
created() {
this.getCompanies()
this.getMall()
},
methods:{
// tab
@@ -177,7 +177,7 @@
else this.nvConfig.tabArr[i].active = false
}
this.tabIndex = tabIndex
if(this.goods.length <= 0) this.getMall()
if(tabIndex == 1 && this.recommendBus.length <= 0) this.getCompanies()
},
// 搜索
onRightBtn(e){
@@ -190,7 +190,6 @@
// 企业广场
getCompanies(){
companies().then(res=>{
console.log(res)
this.recommendBus = res.positions
this.hotBus = res.hot
this.industryBus = [{title: '全部', industry_id: ''}, ...res.industries]
@@ -251,15 +250,21 @@
plus.share.getServices(res => {
let sweixin = null;
for(let val of res){
console.log(val)
if(val.id === weixin){
if(val.id === 'weixin'){
sweixin = val
return
}
}
sweixin ? sweixin.launchMiniProgram({
id: e.original_id
}):plus.nativeUI.alert('当前环境不支持微信操作!');
if(sweixin != null){
sweixin.launchMiniProgram({
id : e.original_id,
path: 'pages/index/index?scene=' + e.company_id,
})
}else{
uni.showToast({
title: '当前环境不支持打开微信小程序',
icon : 'none'
})
}
})
}
}

View File

@@ -131,10 +131,11 @@
skus_assets : '',
skus_charge : '',
skus_number : '',
skus_stock : ''
skus_stock : '',
};
},
methods: {
methods: {
}
}
</script>

View File

@@ -33,7 +33,7 @@
:size="14"
/>
</view>
<view class="openbtn">进店</view>
<view class="openbtn" @click="onOpenWechat">进店</view>
</view>
<!-- 产品规格 -->
<view class="size">
@@ -72,15 +72,16 @@
return {
loding : true,
goodsObj: {},
identity: ''
identity: '',
company : {}
};
},
created() {
goods(this.$Route.query.id || 16).then(res=>{
console.log(res)
this.loding = false
this.goodsObj = res
this.identity = res.identity.id || ''
this.company = res.company
})
},
methods:{
@@ -99,6 +100,28 @@
qty : this.goodsObj.skus[0].number
}
})
},
// 打开微信小程序
onOpenWechat(){
plus.share.getServices(res => {
let sweixin = null;
for(let val of res){
if(val.id === 'weixin'){
sweixin = val
}
}
if(sweixin != null){
sweixin.launchMiniProgram({
id : this.company.original_id,
path: 'pages/index/index?scene=' + this.company.company_id
})
}else{
uni.showToast({
title: '当前环境不支持打开微信小程序',
icon : 'none'
})
}
})
}
}
}

View File

@@ -14,16 +14,41 @@
</template>
<template v-slot:footer="goods">
<view class="footer-btns">
<button class="button-item" size="mini">销毁</button>
<button class="button-item" size="mini">下架</button>
<block v-if="status == '1'">
<button class="button-item" size="mini" @click="openLay(goods.value, 'goodsBurn')">燃烧</button>
<button class="button-item" size="mini" @click="openLay(goods.value, 'goodsMint')">增发</button>
<button class="button-item" size="mini" @click="goodsOffsale(goods.value.goods_id)">下架</button>
</block>
<block v-if="status == '3'">
<button class="button-item" size="mini" @click="goodsOnsale(goods.value.goods_id)">上架</button>
</block>
<block v-if="status == '0' || status == '2'">
<button class="button-item" size="mini">修改</button>
<button class="button-item" size="mini" @click="goodsRemove(goods.value.goods_id)">删除</button>
</block>
</view>
</template>
</goodsList>
<!-- 燃烧 增发 弹窗 -->
<uni-popup ref="popupLay" :safe-area="true" background-color="#ffffff">
<view class="popup">
<view class="title">库存{{stockType == 'goodsMint' ? '增发': '燃烧'}}</view>
<view class="des">
剩余库存
<text>{{itemGoods.stock}}</text>
</view>
<view class="des">
数量
<uni-number-box v-model='stock' :min="1" :max="stockType == 'goodsBurn' ? itemGoods.stock : 9999"></uni-number-box>
</view>
<view class="btn" @click="additionalOrBurning">确认</view>
</view>
</uni-popup>
</view>
</template>
<script>
import { managesGoodsIndex } from '@/apis/interfaces/goods'
import { managesGoodsIndex, managesGoodsOffsale, managesGoodsOnsale, managesGoodsBurn, managesGoodsMint, managesGoodsCreateBefore } from '@/apis/interfaces/goods'
import goodsList from '@/components/goods-list/goods-list'
export default {
components: {
@@ -31,9 +56,12 @@
},
data() {
return {
status : 1,
goods : [],
pages : {}
status : 1,
goods : [],
pages : {},
itemGoods : {},
stock : 1,
stockType : ''
};
},
onShow() {
@@ -53,9 +81,80 @@
}).then(res => {
this.goods = res.data
this.pages = res.page
console.log(res)
})
}
},
// 下架
goodsOffsale(id){
let index = this.goods.findIndex(val => val.goods_id == id)
managesGoodsOffsale(id).then(res => {
this.goods.splice(index,1)
if(this.goods.length === 0) this.getList()
}).catch(err => {
uni.showToast({
title: err.message,
icon: 'none'
})
})
},
// 燃烧,增发
openLay(item, type){
this.itemGoods = item
this.stockType = type
this.stock = 1
this.$refs.popupLay.open('bottom')
},
// 提交燃烧,增发
additionalOrBurning(){
let data = {
id : this.itemGoods.goods_id,
stock: this.stock
}
switch (this.stockType){
case 'goodsBurn':
managesGoodsBurn({...data}).then(res => {
let goodsIndex = this.goods.findIndex(val => val.goods_id === this.itemGoods.goods_id)
this.itemGoods.stock -= data.stock
this.$refs.popupLay.close()
}).catch(err => {
uni.showToast({
title: err.message,
icon : 'none'
})
})
break;
case 'goodsMint':
managesGoodsMint({...data}).then(res => {
let goodsIndex = this.goods.findIndex(val => val.goods_id === this.itemGoods.goods_id)
this.itemGoods.stock += data.stock
this.$refs.popupLay.close()
}).catch(err => {
uni.showToast({
title: err.message,
icon : 'none'
})
})
break;
default:
uni.showToast({
title: '类型错误',
icon : 'none'
})
break;
}
},
// 上架
goodsOnsale(id){
let index = this.goods.findIndex(val => val.goods_id == id)
managesGoodsOnsale(id).then(res => {
this.goods.splice(index,1)
if(this.goods.length === 0) this.getList()
}).catch(err => {
uni.showToast({
title: err.message,
icon: 'none'
})
})
}
},
onNavigationBarButtonTap() {
this.$Router.push({name: 'GoodsMagAdd'})
@@ -102,12 +201,46 @@
height: 60rpx;
line-height: 60rpx;
border-radius: 0;
width: calc(50% - 20rpx);
flex: 1;
background: $border-color-lg;
color: $text-gray;
&::after{
border: none;
}
}
}
// 增发燃烧弹窗
.popup {
width: 100%;
background-color: #fff;
padding-bottom: $padding;
.title {
font-size: 36rpx;
text-align: center;
padding: 50rpx 30rpx 30rpx 30rpx;
font-weight: bold;
}
.btn {
background-color: $text-price;
height: 90rpx;
line-height: 90rpx;
text-align: center;
color: #fff;
font-weight: bold;
font-size: $title-size;
margin: $padding * 2;
}
.des {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
box-sizing: border-box;
padding: $padding $padding * 2;
color: $text-gray;
text{
color: $text-color;
}
}
}
</style>

View File

@@ -2,222 +2,301 @@
<view>
<!-- 用户信息 -->
<view class="user">
<view class="user-tool">
<image src="@/static/icons/user_icon_00.png" mode="widthFix"></image>
</view>
<view class="user-content">
<view class="user-info">
<image class="info-cover" src="../../static/dev/good_cover_00.jpg" mode="aspectFill"></image>
<view class="info-nickname">唐明明</view>
<view class="info-tags">
<text class="info-tags-item">企业认证</text>
<text class="info-tags-item">SSS企业</text>
<image class="info-cover" src="../../static/dev/good_cover_00.jpg" mode="aspectFill"></image>
<view class="info-nickname">唐明明</view>
<view class="info-signa">潮流就是我的态度</view>
<view class="info-tags">
<text class="info-tags-item identity">普通用户</text>
<text class="info-tags-item vip">PULS企业</text>
</view>
</view>
<view class="user-tabs">
<view class="user-tabs-item" :class="{'show': tabsIndex === 0}" @click="tabsIndex = 0">管理中心</view>
<view class="user-tabs-item" :class="{'show': tabsIndex === 1}" @click="tabsIndex = 1">我的推广</view>
</view>
</view>
<!-- 消息 -->
<view class="user-ad">
<uni-icons class="user-ad-icon" type="sound-filled" color="#e93340"></uni-icons>
<swiper class="user-ad-swiper" :interval="3000" autoplay vertical circular>
<swiper-item>
<view class="user-ad-item">恭喜用户0101成功开通PLUS企业会员</view>
</swiper-item>
<swiper-item>
<view class="user-ad-item">恭喜用户0101成功开通PLUS企业会员</view>
</swiper-item>
</swiper>
</view>
<block v-if="tabsIndex === 0">
<!-- 我的资产 -->
<view class="user-group">
<view class="title">
<view class="title-text">我的资产</view>
</view>
<view class="group-flex group-flex-4">
<view class="item">
<view class="item-num">0</view>
<view class="item-title">原石</view>
</view>
<view class="item">
<view class="item-num">0</view>
<view class="item-title">贡献值</view>
</view>
<view class="item">
<view class="item-num">0</view>
<view class="item-title">易币</view>
</view>
<view class="item">
<view class="item-num">0</view>
<view class="item-title">零钱</view>
</view>
</view>
<view class="user-sign">签到</view>
</view>
<view class="user-total">
<view class="total-item">
<view class="total-number">0</view>
<view class="total-text">商品收藏</view>
<!-- 我的权证 -->
<view class="user-group">
<view class="title">
<view class="title-text">我的权证</view>
</view>
<view class="total-item">
<view class="total-number">0</view>
<view class="total-text">店铺收藏</view>
</view>
<view class="total-item">
<view class="total-number">0</view>
<view class="total-text">浏览记录</view>
</view>
<view class="total-item">
<view class="total-number">0</view>
<view class="total-text">优惠券</view>
<view class="group-flex group-flex-4">
<view class="item">
<view class="item-num">0</view>
<view class="item-title">权证持有</view>
</view>
<view class="item">
<view class="item-num">0</view>
<view class="item-title">权证转让</view>
</view>
<view class="item">
<view class="item-num">0</view>
<view class="item-title">已使用</view>
</view>
<view class="item">
<view class="item-num">0</view>
<view class="item-title">已提货</view>
</view>
</view>
</view>
<view class="user-vip">
<view class="vip-text">开通会员获得更多的权益</view>
<view class="vip-btn">立即开通</view>
</view>
</view>
<!-- 易货订单 -->
<view class="user-group">
<view class="title">
<view class="title-text">易货订单</view>
<view class="title-more">
全部订单
<uni-icons class="title-icon" color="#999" type="arrowright" size="14" />
<!-- 我的权证 -->
<view class="user-group">
<view class="group-flex group-flex-4">
<view class="item">
<image class="item-cover" src="@/static/icons/user_icon_01.png" mode="aspectFill"></image>
<view class="item-title">商品收藏</view>
</view>
<view class="item">
<image class="item-cover" src="@/static/icons/user_icon_02.png" mode="aspectFill"></image>
<view class="item-title">关注企业</view>
</view>
<view class="item">
<image class="item-cover" src="@/static/icons/user_icon_03.png" mode="aspectFill"></image>
<view class="item-title">我的优惠券</view>
</view>
<view class="item">
<image class="item-cover" src="@/static/icons/user_icon_04.png" mode="aspectFill"></image>
<view class="item-title">地址管理</view>
</view>
</view>
</view>
<view class="group-flex order-flex">
<view class="item">
<image class="item-cover" src="@/static/icons/order_icon_00.png" mode="aspectFill"></image>
<view class="item-title">待付款</view>
</block>
<block v-else-if="tabsIndex === 1">
<!-- 我的权证 -->
<view class="user-group">
<view class="title">
<view class="title-text">推广数据</view>
</view>
<view class="item">
<image class="item-cover" src="@/static/icons/order_icon_01.png" mode="aspectFill"></image>
<view class="item-title">待发货</view>
</view>
<view class="item">
<image class="item-cover" src="@/static/icons/order_icon_02.png" mode="aspectFill"></image>
<view class="item-title">待提货</view>
</view>
<view class="item">
<image class="item-cover" src="@/static/icons/order_icon_03.png" mode="aspectFill"></image>
<view class="item-title">待评价</view>
</view>
<view class="item">
<image class="item-cover" src="@/static/icons/order_icon_04.png" mode="aspectFill"></image>
<view class="item-title">退货售后</view>
<view class="group-flex group-flex-2">
<view class="item">
<view class="item-num">0</view>
<view class="item-title">推广人数</view>
</view>
<view class="item">
<view class="item-num">0</view>
<view class="item-title">推广企业</view>
</view>
</view>
</view>
</view>
<!-- 易货中心管理 -->
<view class="user-group">
<view class="title">
<view class="title-text">易货中心管理</view>
<view class="title-more">
交易中心
<uni-icons class="title-icon" color="#999" type="arrowright" size="14" />
<!-- 排名信息 -->
<view class="user-group">
<view class="title">
<view class="title-text">全站推广人数排名</view>
</view>
<view>
推广人数排名
</view>
</view>
<view class="group-flex group-flex-3">
<view class="item">
<image class="item-cover" src="@/static/icons/user_icon_00.png" mode="aspectFill"></image>
<view class="item-title">上架中</view>
<!-- 排名信息 -->
<view class="user-group">
<view class="title">
<view class="title-text">全站推广企业排名</view>
</view>
<view class="item">
<image class="item-cover" src="@/static/icons/user_icon_01.png" mode="aspectFill"></image>
<view class="item-title">寄存中</view>
</view>
<view class="item">
<image class="item-cover" src="@/static/icons/user_icon_02.png" mode="aspectFill"></image>
<view class="item-title">低价求购</view>
<view>
推广企业排名
</view>
</view>
</view>
<!-- 我的资产 -->
<view class="user-group">
<view class="title">
<view class="title-text">我的资产</view>
</view>
<view class="group-flex group-flex-4">
<view class="item">
<view class="item-num">0</view>
<view class="item-title">原石</view>
</view>
<view class="item">
<view class="item-num">0</view>
<view class="item-title">贡献值</view>
</view>
<view class="item">
<view class="item-num">0</view>
<view class="item-title">易币</view>
</view>
<view class="item">
<view class="item-num">0</view>
<view class="item-title">零钱</view>
</view>
</view>
</view>
<!-- 管理工具 -->
<view class="user-group">
<view class="title">
<view class="title-text">管理工具</view>
</view>
<view class="group-flex group-flex-4">
<view class="item">
<image class="item-cover" src="@/static/icons/order_icon_00.png" mode="aspectFill"></image>
<view class="item-title">店铺管理</view>
</view>
<view class="item">
<image class="item-cover" src="@/static/icons/order_icon_01.png" mode="aspectFill"></image>
<view class="item-title">员工管理</view>
</view>
<view class="item">
<image class="item-cover" src="@/static/icons/order_icon_02.png" mode="aspectFill"></image>
<view class="item-title">营销管理</view>
</view>
<view class="item">
<image class="item-cover" src="@/static/icons/order_icon_02.png" mode="aspectFill"></image>
<view class="item-title">产品管理</view>
</view>
<view class="item">
<image class="item-cover" src="@/static/icons/order_icon_02.png" mode="aspectFill"></image>
<view class="item-title">核销管理</view>
</view>
<view class="item">
<image class="item-cover" src="@/static/icons/order_icon_02.png" mode="aspectFill"></image>
<view class="item-title">卡券管理</view>
</view>
</view>
</view>
<!-- 推广海报 -->
<carousel :img-list="imgList" url-key="url" @selected="selectedBanner"/>
</block>
<!-- 版权信息 -->
<view class="copyright">易品新境 beta 1.0.0</view>
</view>
</template>
<script>
import carousel from '@/components/vear-carousel/vear-carousel'
export default {
components: {
carousel
},
data() {
return {
tabsIndex: 1,
imgList: [{
url: 'https://img9.51tietu.net/pic/2019-091200/vgkpidei2tjvgkpidei2tj.jpg',
id: 1
},{
url: 'https://img9.51tietu.net/pic/2019-091200/euzekmi5m23euzekmi5m23.jpg',
id: 2
},{
url: 'https://img9.51tietu.net/pic/2019-091200/143tt0ta4sr143tt0ta4sr.jpg',
id: 3
}]
}
},
methods: {
// outLogin(){
// this.$store.commit('setToken', '')
// }
selectedBanner(item, index) {
console.log('🥒', item, index)
}
}
}
</script>
<style lang="scss" scoped>
// 退出按钮
.out-login{
padding: 0 $padding;
button{
background: $text-price;
height: 90rpx;
line-height: 90rpx;
color: white;
font-size: $title-size;
border-radius: $radius;
font-weight: bold;
&::after{
border: none;
}
}
}
// 消息通知
.user-ad{
position: relative;
background: white;
margin: $margin;
border-radius: $radius;
line-height: 90rpx;
padding: 0 $padding;
font-size: $title-size-m;
.user-ad-icon{
position: absolute;
}
.user-ad-swiper{
height: 90rpx;
padding-left: 50rpx;
.user-ad-item{
color: $text-gray;
@extend .nowrap;
}
}
}
// 用户
.user{
background: #f3f4f8;
@extend .ios-top;
.user-tool{
@extend .ios-top;
background: $text-price;
color: white;
padding-left: $padding;
padding-right: $padding;
padding-bottom: 200rpx;
line-height: 90rpx;
text-align: right;
font-size: $title-size-m;
image{
width: 58rpx;
}
}
.user-content{
padding: ($padding*3) $padding 0;
display: flex;
justify-content: space-between;
align-items: center;
.user-info{
position: relative;
width: 80%;
padding-left: $padding + 88;
height: 98rpx;
margin: -140rpx $margin 0 $margin;
background: white;
border-radius: $radius;
text-align: center;
padding: 0 $padding ($padding + 50);
.info-cover{
width: 128rpx;
height: 128rpx;
border-radius: 50%;
border:solid 4rpx white;
margin-top: -64rpx;
box-sizing: border-box;
.info-cover{
position: absolute;
left: 0;
top: 0;
vertical-align: top;
height: 98rpx;
width: 98rpx;
border-radius: 50%;
}
.info-nickname{
line-height: 55rpx;
font-size: $title-size + 4;
font-weight: bold;
}
.info-tags{
font-size: $title-size-sm - 4;
.info-tags-item{
background: #333333;
margin-right: $margin/2;
color: #e9dabb;
padding: 0 ($padding/2);
border-radius: 20rpx;
line-height: 40rpx;
display: inline-block;
margin-bottom: $margin/2;
}
.info-nickname{
font-weight: bold;
font-size: $title-size + 4;
line-height: 50rpx;
}
.info-signa{
line-height: 50rpx;
color: $text-gray;
font-size: $title-size-sm;
}
.info-tags{
padding: ($padding/2) 0 0;
font-size: $title-size-sm - 2;
.info-tags-item{
background: $text-price;
color: white;
margin: 0 ($margin/2);
padding: 0 ($padding/2);
line-height: 40rpx;
display: inline-block;
border-radius: 20rpx;
&.identity{
background-image: linear-gradient(to right, #e75e44, #e93340);
}
&.vip{
background-image: linear-gradient(to right, #f8e5c0, #d6a46a);
color: #8d4928;
}
}
}
.user-sign{
background: white;
width: 130rpx;
height: 60rpx;
line-height: 60rpx;
}
.user-tabs{
margin-top: -33rpx;
text-align: center;
.user-tabs-item{
display: inline-block;
width: 240rpx;
height: 66rpx;
line-height: 66rpx;
text-align: center;
background-color: white;
border:solid 1rpx $border-color;
font-size: $title-size-m;
&.show{
background: $text-price;
color: white;
border-color: $text-price;
}
}
}
.user-total{
padding: $padding ($padding - 10);
display: flex;
@@ -225,7 +304,7 @@
position: relative;
margin: 0 ($margin/3);
text-align: center;
width: calc(25% - #{$margin - 10});
width: calc(33.33% - #{$margin - 10});
.total-number{
font-size: $title-size;
font-weight: bold;
@@ -249,29 +328,6 @@
}
}
}
.user-vip{
display: flex;
justify-content: space-between;
background: #333333;
margin: 0 $margin;
border-radius: $radius $radius 0 0;
padding: $padding;
.vip-text{
line-height: 50rpx;
width: calc(100% - 180rpx);
color: #e9dabb;
font-size: $title-size-m;
}
.vip-btn{
background-color: #e9dabb;
color: #333333;
line-height: 50rpx;
width: 160rpx;
text-align: center;
border-radius: 25rpx;
font-size: $title-size-sm;
}
}
}
// 用户功能组
.user-group{
@@ -317,9 +373,10 @@
font-size: $title-size + 4;
}
.item-cover{
width: 62rpx;
height: 62rpx;
width: 72rpx;
height: 72rpx;
vertical-align: top;
margin-bottom: 10rpx;
}
.item-title{
font-size: $title-size-sm - 2;
@@ -341,6 +398,12 @@
width: calc(33.33% - #{$padding - 10});
}
}
.group-flex-2{
@extend .order-flex;
.item{
width: calc(50% - #{$padding - 10});
}
}
// 易品新境
.copyright{

View File

@@ -3,7 +3,7 @@
<view class="create-form">
<view class="header">
<view @click="updLogo">
<image class="logo" v-if="cover.showpath" :src="cover.showpath" mode="aspectFill" />
<image class="logo" style="border: none;" v-if="cover.showpath" :src="cover.showpath" mode="aspectFill" />
<image class="logo" v-else src="@/static/icons/add-icon.png" mode="aspectFill" />
</view>
<view class="inputs">

View File

@@ -68,6 +68,7 @@
methods:{
// tabs筛选
onTbas(type){
console.log(type)
getDate(type).then(res => {
this.tabsIndex = type
this.dateValue = res
@@ -123,7 +124,7 @@
// tabs
.tabs{
position: fixed;
z-index: 9;
z-index: 99;
top: 0;
left: 0;
width: 100%;

View File

@@ -148,6 +148,9 @@
</view>
</view>
</view>
<view class="">
<button type="default" @click="outLogin">退出登录</button>
</view>
<!-- 版权信息 -->
<view class="copyright">易品新境 beta 1.0.0</view>
</view>
@@ -161,7 +164,9 @@
}
},
methods: {
outLogin(){
this.$store.commit('setToken', '')
}
}
}
</script>