用户登录流程开发接口对接

This commit is contained in:
唐明明
2021-08-09 17:20:38 +08:00
parent 3c3d946eb5
commit bfea54eb8f
37 changed files with 8399 additions and 8539 deletions

View File

@@ -30,6 +30,9 @@ const request = (parameter) => {
'Accept': 'application/json',
'Authorization': store.getters.getToken || ''
}
console.log('发送数据调试用', parameter)
// 请求实例
return new Promise((resolve, reject) => {
uni.request({
@@ -83,9 +86,6 @@ const errToast = (code) => {
icon : 'none'
})
break;
case 401:
console.log('重新登录')
break;
}
}

View File

@@ -9,7 +9,7 @@
import request from '../index'
// 一键登录
const auth = (data) => {
const keyAuth = (data) => {
return request({
url: 'user/socialite/login/unicloud/app',
method: 'POST',
@@ -17,6 +17,26 @@ const auth = (data) => {
})
}
export {
auth
// 验证码登录
const smsAuth = (data) =>{
return request({
url: "user/auth/sms",
method: 'POST',
data: data
})
}
// 获取验证码
const getSms = (data) =>{
return request({
url: "user/auth/verify",
method: 'POST',
data: data
})
}
export {
keyAuth,
smsAuth,
getSms
}

View File

@@ -1,97 +1,89 @@
{
"pages": [{
"path": "pages/guide/index",
"name": "Guide",
"style": {
"navigationStyle":"custom"
}
}, {
"path": "pages/index/index",
"name": "Index"
}, {
"path": "pages/user/index",
"name": "User",
"style": {
"navigationBarTitleText": "我的",
"transparentTitle": "auto"
}
}, {
"path": "pages/login/login",
"name": "Login"
}, {
"path": "pages/login/sms",
"name": "Sms"
}, {
"path": "pages/company/auth",
"style": {
"navigationBarTitleText": "企业认证",
"enablePullDownRefresh": false
}
}, {
"path": "pages/vip/index",
"style": {
"navigationBarTitleText": "会员",
"enablePullDownRefresh": false
}
}, {
"path": "pages/vip/pay",
"style": {
"navigationBarTitleText": "会员支付",
"enablePullDownRefresh": false
}
}, {
"path": "pages/order/index",
"style": {
"navigationBarTitleText": "订单列表",
"enablePullDownRefresh": false
}
}, {
"path": "pages/order/details",
"style": {
"navigationBarTitleText": "订单详情",
"enablePullDownRefresh": false
}
}, {
"path": "pages/order/submit",
"style": {
"navigationBarTitleText": "提交订单",
"enablePullDownRefresh": false
}
}, {
"path": "pages/property/cash",
"style": {
"navigationBarTitleText": "现金账户",
"enablePullDownRefresh": false
}
}, {
"path": "pages/property/eb",
"style": {
"navigationBarTitleText": "EB账户",
"enablePullDownRefresh": false
}
},
{
"path": "pages/property/integral",
"style": {
"navigationBarTitleText": "贡献值",
"enablePullDownRefresh": false
}
},
{
"path": "pages/property/token",
"style": {
"navigationBarTitleText": "数权账户",
"enablePullDownRefresh": false
}
},
"pages": [
{
"path": "pages/equity/index",
"name": "Equity",
"style":{
"navigationBarTitleText":"企业广场",
"navigationStyle":"custom"
}
},{
"path": "pages/market/index",
"name": "Market",
"style": {
"navigationBarTitleText":"转让市场",
"titleNView": {
"backgroundColor": "#FFFFFF",
"buttons": [
{
"text": "成交历史",
"fontSize": "14",
"width": "80",
"color": "#555555"
}
]
}
}
},{
"path": "pages/store/index",
"name": "Store"
},{
"path": "pages/property/index",
"name": "Property"
},{
"path" : "pages/goods/details",
"style": {
"navigationBarTitleText":"",
"titleNView": {
"backgroundColor": "#FFFFFF",
"type": "transparent",
"buttons": [
{
"text": "分享",
"fontSize": "12",
"color": "#555555"
}
]
}
}
},{
"path": "pages/login/login",
"name": "Login",
"style": {
"navigationBarTitleText": "",
"navigationBarBackgroundColor": "#FFFFFF",
"disableScroll": true
}
},{
"path" : "pages/company/registered",
"name" : "Registered",
"style":{
"navigationBarTitleText": ""
}
},{
"path" : "pages/company/prompt",
"name" : "Prompt",
"style":{
"navigationBarTitleText": "",
"navigationBarBackgroundColor": "#FFFFFF",
"disableScroll": true,
"titleNView": {
"backgroundColor": "#FFFFFF",
"buttons": [
{
"text": "先逛一逛",
"fontSize": "14",
"width": "80",
"color": "#555555"
}
]
}
}
},{
"path": "pages/vip/index",
"name": "Vip",
"style": {
"navigationBarTitleText": "我的会员"
}
}
],
"tabBar": {
@@ -100,23 +92,23 @@
"backgroundColor": "#FFFFFF",
"borderStyle": "white",
"list": [{
"pagePath": "pages/index/index",
"text": "易",
"pagePath": "pages/equity/index",
"text": "通证权易",
"iconPath": "static/tabBar/tabBar_icon_00.png",
"selectedIconPath": "static/tabBar/tabBar_show_00.png"
}, {
"pagePath": "pages/property/token",
"text": "数权",
"pagePath": "pages/market/index",
"text": "转让市场",
"iconPath": "static/tabBar/tabBar_icon_01.png",
"selectedIconPath": "static/tabBar/tabBar_show_01.png"
}, {
"pagePath": "pages/property/integral",
"text": "贡献值",
"pagePath": "pages/store/index",
"text": "企业工具",
"iconPath": "static/tabBar/tabBar_icon_02.png",
"selectedIconPath": "static/tabBar/tabBar_show_02.png"
}, {
"pagePath": "pages/user/index",
"text": "我的",
"pagePath": "pages/property/index",
"text": "我的资产",
"iconPath": "static/tabBar/tabBar_icon_03.png",
"selectedIconPath": "static/tabBar/tabBar_show_03.png"
}]

61
pages/company/prompt.vue Normal file
View File

@@ -0,0 +1,61 @@
<template>
<view class="content">
<image class="cover" src="@/static/dev/guide_cover_00.png" mode="widthFix"></image>
<view class="title">恭喜您已注册成功</view>
<view class="sub-title">开通会员认证企业信息立即获得授信易货额即可开始易货之旅</view>
<button class="vip-button" type="default" @click="$Router.push({name: 'Vip'})">开通会员</button>
</view>
</template>
<script>
export default {
data() {
return {
};
},
onNavigationBarButtonTap(e){
this.$Router.pushTab({name: "Equity"})
}
}
</script>
<style lang="scss" scoped>
.content{
padding: $padding * 2;
background: white;
height: 100vh;
width: 100vw;
box-sizing: border-box;
@extend .vertical;
text-align: center;
.cover{
width: 46vw;
margin-bottom: 10vh;
}
.title{
font-size: $title-size + 14;
font-weight: bold;
line-height: 90rpx;
}
.sub-title{
font-size: $title-size-m;
color: $text-gray;
text-align: center;
}
.vip-button{
margin-top: 10vh;
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

@@ -0,0 +1,143 @@
<template>
<view class="content">
<view class="header">
<view class="title">企业注册</view>
<view class="subtitle">填写企业基础行业获取企业/商家权益</view>
</view>
<view class="white-box">
<view class="inputs">
<label>企业名称</label>
<input type="text" v-model="name" placeholder="输入企业名称" />
</view>
<view class="inputs">
<label>企业类型</label>
<picker @change="changePicker" data-type="type">
<view class="picker-text nowrap">
选择企业类型
<uni-icons class="picker-icon" type="arrowdown"></uni-icons>
</view>
</picker>
</view>
<view class="inputs">
<label>企业行业</label>
<picker @change="changePicker" data-type="industry">
<view class="picker-text nowrap">
选择企业行业
<uni-icons class="picker-icon" type="arrowdown"></uni-icons>
</view>
</picker>
</view>
<view class="btns">
<button type="default" size="default" @click="next">下一步</button>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
name : "",
type : [],
industry : [],
typeIndex : 0,
industryIndex: 0
};
},
methods:{
// 提交信息
next(){
console.log(this.name)
console.log('提交信息')
this.$Router.push({name: 'Prompt'})
},
//选择器
changePicker(e){
let changeType = e.target.dataset.type,
changeVlae = e.target.dataset.value
switch(changeType){
case 'type':
this.typeIndex = changeVlae
break
case 'industry':
this.industryIndex = changeVlae
break
}
}
}
}
</script>
<style lang="scss" scoped>
.content{
.header{
height: 20vh;
@extend .vertical;
.title{
text-align: center;
font-size: $title-size + 14;
font-weight: bold;
line-height: 90rpx;
}
.subtitle{
font-size: $title-size-m;
color: $text-gray;
text-align: center;
}
}
.white-box{
background-color: white;
border-radius: $radius $radius 0 0;
min-height: 80vh;
padding: $padding * 2;
box-sizing: border-box;
.inputs{
position: relative;
margin-top: $margin;
background: white;
border-bottom: solid 1rpx $border-color;
padding-left: 200rpx;
line-height: 90rpx;
min-height: 90rpx;
label{
position: absolute;
top: 0;
left: 0;
width: 200rpx;
font-size: $title-size;
}
input{
height: 90rpx;
line-height: 90rpx;
font-size: $title-size;
}
.picker-text{
position: relative;
padding-right: 90rpx;
.picker-icon{
position: absolute;
right: 0;
top: 0;
}
}
}
.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

@@ -2,11 +2,13 @@
<view>
<!-- 状态栏 -->
<nv :config="nvConfig" @nvTabTap="onNvTab"></nv>
<block v-if="tabIndex === 0">
<!-- 搜索 -->
<view class="search">
搜索
<navigator class="nav" url="#">搜索企业/行业</navigator>
</view>
<!-- 推荐商家 -->
<view class="block-title">推荐商家</view>
<scroll-view scroll-x class="recommended">
<block v-for="(item, index) in 4" :key="index">
<view class="item-box">
@@ -30,6 +32,10 @@
</block>
</scroll-view>
<!-- 热易商家 -->
<view class="block-title">
热易商家
<navigator class="more" url="#">查看更多</navigator>
</view>
<swiper class="hot-swiper">
<swiper-item v-for="(item, index) in 3" :key="index">
<view class="hot-box">
@@ -64,6 +70,42 @@
<view class="industry-item">住宿餐饮</view>
<view class="industry-item">建筑建材</view>
</scroll-view>
<!-- 商家 -->
</block>
<!-- 易货商城 -->
<block v-if="tabIndex === 1">
<!-- 搜索 -->
<view class="search">
<navigator class="nav" url="#">搜索企业/行业</navigator>
</view>
<!-- 轮播图 -->
<view class="banner">
<swiper class="banner-swiper">
<swiper-item>
<view class="swiper-item">1</view>
</swiper-item>
<swiper-item>
<view class="swiper-item">2</view>
</swiper-item>
</swiper>
</view>
<!-- 分类 -->
<view class="classify">
<view class="classify-item" v-for="(item, index) in 10" :key="index">
<image src="" mode="aspectFill"></image>
<view class="">餐饮美食</view>
</view>
</view>
<!-- 提醒信息 -->
<swiper class="notice">
<swiper-item>
<view class="swiper-item">公告信息</view>
</swiper-item>
</swiper>
<!-- 每日推荐 -->
<!-- 限时抢购 -->
<!-- 优选商品 -->
</block>
</view>
</template>
@@ -71,12 +113,14 @@
export default{
data() {
return {
tabIndex: 0,
nvConfig: {
tabArr: [
{title:'企业广场', active:true},
{title:'易货商城'}
{title:'广场', active:true},
{title:'易货'}
],
color: "#555"
color: "#555",
hideback: true
}
};
},
@@ -87,6 +131,7 @@
if(i == tabIndex) this.nvConfig.tabArr[i].active = true
else this.nvConfig.tabArr[i].active = false
}
this.tabIndex = tabIndex
}
}
}
@@ -96,7 +141,7 @@
// 行业分类
.industry-tabs{
white-space:nowrap;
padding: $padding 0;
padding: 0 0 $padding 0;
.industry-item{
margin-left: $margin;
display: inline-block;
@@ -209,6 +254,33 @@
}
}
}
// 搜索
.search{
padding: $padding;
.nav{
background: white;
border-radius: $radius/2;
height: 70rpx;
line-height: 70rpx;
text-align: center;
box-shadow: 0 0 6rpx 6rpx rgba($color: #000000, $alpha: .02);
font-size: $title-size-lg;
color: $text-gray-m;
}
}
// 模块标题
.block-title{
padding: 0 $padding;
font-weight: bold;
color: $text-color;
display: flex;
justify-content: space-between;
.more{
font-size: $title-size-m;
font-weight: normal;
color: $text-gray;
}
}
</style>
<!-- goods: [

264
pages/goods/details.vue Normal file
View File

@@ -0,0 +1,264 @@
<template>
<view class="content">
<!-- 轮播主图 -->
<view class="goods-covers">
<swiper class="swiper">
<swiper-item>
<image class="swiper-item" src="https://yanxuan-item.nosdn.127.net/b3cc0eadfe8581b8bc86f428b18a5ea8.png" mode="aspectFill"/>
</swiper-item>
<swiper-item>
<image class="swiper-item" src="https://yanxuan-item.nosdn.127.net/a7f8652eeecb2c0e1915120b1d986510.png" mode="aspectFill"/>
</swiper-item>
<swiper-item>
<image class="swiper-item" src="https://yanxuan-item.nosdn.127.net/afb05e6fc75e7476729146214450f0ae.png" mode="aspectFill"/>
</swiper-item>
</swiper>
</view>
<!-- 产品详情 -->
<view class="goods-content">
<view class="header">
<view class="title">谷风一木3层软抽面巾纸 6/</view>
<view class="sub-title">进口原木浆 和风高颜值</view>
<view class="flex-box">
<view class="price"><text></text>100.00</view>
<view class="sales">累计易货10次</view>
</view>
</view>
<!-- 商家信息 -->
<view class="store">
<view class="title">宜家哈尔滨旗舰店</view>
<image class="logo" src="@/static/dev/good_cover_06.jpg" mode="aspectFill"></image>
<view class="rate">
<uni-rate
:readonly="true"
color="#ddd"
active-color="#c82626"
:value="2.5"
:size="14"
/>
</view>
<view class="openbtn">进店</view>
</view>
<!-- 产品规格 -->
<view class="size">
<view class="size-item nowrap">
<label class="title">产品规格</label>
17个功能分区理性展现
</view>
<view class="size-item nowrap">
<label class="title">限制</label>
特价商品不可与优惠券叠加使用
</view>
<view class="size-item nowrap">
<label class="title">服务</label>
易货严选自营30天无忧退换不可用券国内部分地区不可配送
</view>
</view>
<!-- 产品详情 -->
<view class="product">
<image src="https://yanxuan-item.nosdn.127.net/15b6eb17fd2dfc10824d19262d579115.jpg" mode="widthFix"></image>
<image src="https://yanxuan-item.nosdn.127.net/64bba3712d2de3afbd01209ddc8a144c.jpg" mode="widthFix"></image>
<image src="https://yanxuan-item.nosdn.127.net/e361196cfdc93e697214cb8b73715d7b.jpg" mode="widthFix"></image>
<image src="https://yanxuan-item.nosdn.127.net/b508dcfc9b597e0563fb9703084df968.jpg" mode="widthFix"></image>
<image src="https://yanxuan-item.nosdn.127.net/47aea2602cdc2d74f7c1470845b10228.jpg" mode="widthFix"></image>
<image src="https://yanxuan-item.nosdn.127.net/47aea2602cdc2d74f7c1470845b10228.jpg" mode="widthFix"></image>
<image src="https://yanxuan-item.nosdn.127.net/a93ea06bab7212b3d09b58a4ef6ef992.jpg" mode="widthFix"></image>
<image src="https://yanxuan-item.nosdn.127.net/48062fd41ab8345e4d89dcc9ae882a83.jpg" mode="widthFix"></image>
<image src="https://yanxuan-item.nosdn.127.net/c6144d9afbfa23dae5127d71b27f9286.jpg" mode="widthFix"></image>
<image src="https://yanxuan-item.nosdn.127.net/d36cbe3e7a3a51ad5809ace03a2ec11a.jpg" mode="widthFix"></image>
<image src="https://yanxuan-item.nosdn.127.net/55152a8961ac3e4315bf0e9078c201de.jpg" mode="widthFix"></image>
<image src="https://yanxuan-item.nosdn.127.net/e1daf70033b4a560ea3a163b7b2901ba.jpg" mode="widthFix"></image>
<image src="https://yanxuan-item.nosdn.127.net/86a0fa00f375e4b266a528d2c4cc35fd.jpg" mode="widthFix"></image>
<image src="https://yanxuan-item.nosdn.127.net/71bac1bfd70aeb8d6b97eae4f4d4af67.jpg" mode="widthFix"></image>
<image src="https://yanxuan-item.nosdn.127.net/2a536f0650b2a2cbb53373e758f0439e.jpg" mode="widthFix"></image>
</view>
</view>
<!-- footer -->
<view class="footer">
<button class="btn" size="default">立即购买</button>
</view>
</view>
</template>
<script>
export default {
data() {
return {
};
}
}
</script>
<style lang="scss" scoped>
.content{
position: relative;
padding-top: 100%;
}
// 轮播图
.goods-covers{
position: fixed;
top: 0;
left: 0;
z-index: 1;
background: #3F536E;
width: 100%;
padding-top: 100%;
.swiper{
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
.swiper-item{
width: 100%;
height: 100%;
}
}
}
// 商品详情
.goods-content{
position: relative;
z-index: 2;
background-color: white;
margin-top: -$margin;
border-radius: $radius $radius 0 0;
padding-bottom: calc((#{$padding} * 2) + (env(safe-area-inset-bottom) / 2) + 90rpx);
padding-bottom: calc((#{$padding} * 2) + (constant(safe-area-inset-bottom) / 2) + 90rpx);
// 详情
.header{
padding: ($padding*2) $padding $padding;
.title{
font-size: $title-size;
font-weight: bold;
line-height: 50rpx;
}
.sub-title{
line-height: 40rpx;
font-size: $title-size-sm;
color: $text-gray;
padding-bottom: $padding/3;
}
.flex-box{
display: flex;
justify-content: space-between;
line-height: 90rpx;
.price{
font-weight: bold;
color: $text-price;
font-size: $title-size + 14;
text{
font-size: 70%;
}
width: calc(60% - #{$padding});
}
.sales{
font-size: $title-size-sm;
color: $text-gray;
width: 40%;
text-align: right;
}
}
}
// 店铺
.store{
position: relative;
margin: 0 $margin;
background: #F8F8F8;
border-radius: $radius/2;
padding: $padding 200rpx $padding (118rpx + $padding);
min-height: 98rpx;
.logo{
position: absolute;
left: $margin;
top: $margin;
width: 98rpx;
height: 98rpx;
border-radius: $radius/2;
}
.title{
font-size: $title-size-lg;
font-weight: bold;
line-height: 60rpx;
color: $text-color;
}
// rate
.openbtn{
width: 140rpx;
position: absolute;
right: $margin;
top: 50%;
background: $text-price;
color: white;
height: 60rpx;
line-height: 60rpx;
text-align: center;
font-size: $title-size-m;
margin-top: -30rpx;
}
}
// 产品规格
.size{
margin-top: $margin;
border-top: solid 20rpx #F8F8F8;
border-bottom: solid 20rpx #F8F8F8;
.size-item{
position: relative;
padding: 0 $padding 0 ($padding + 150);
line-height: 90rpx;
font-size: $title-size-m;
&::after{
position: absolute;
left: $margin;
right: 0;
bottom: 0;
content: " ";
height: 1rpx;
background-color: $border-color;
}
&:last-child::after{
display: none;
}
.title{
position: absolute;
left: $margin;
top: 0;
font-weight: bold;
}
}
}
// 产品详情
.product{
image{
vertical-align: top;
width: 100%;
}
}
}
// 立即购买
.footer{
padding: $padding;
background: white;
position: fixed;
bottom: 0;
left: 0;
width: 100%;
z-index: 99;
box-sizing: border-box;
.btn[size='default']{
width: 100%;
height: 90rpx;
line-height: 90rpx;
padding: 0;
border-radius: 0;
box-sizing: border-box;
background: $text-price;
color: white;
font-weight: bold;
font-size: $title-size;
margin-bottom: calc(env(safe-area-inset-bottom) / 2);
margin-bottom: calc(constant(safe-area-inset-bottom) / 2);
}
}
</style>

View File

@@ -1,7 +1,7 @@
<template>
<view>
<view class="guide-swiper">
<button class="guide-btn" size="default">开启我的易货之旅</button>
<view class="guide-swiper" v-if="show">
<button class="guide-btn" size="default" @click="openApp">开启我的易货之旅</button>
<swiper @change="swiperChange">
<swiper-item v-for="(item, index) in swiperArray" :key="index">
<view class="swiper-content">
@@ -30,6 +30,7 @@
export default {
data() {
return {
show: false,
swiperCurrent: 0,
swiperArray : [{
title : "打造B2B2C",
@@ -42,9 +43,28 @@
}]
};
},
mounted() {
// 检查是否直接进入首页
uni.showLoading()
let spread = this.$store.getters.getSpread || uni.getStorageSync('spread')
setTimeout(()=>{
uni.hideLoading()
if(!spread){
this.$Router.pushTab({name: 'Equity'})
return
}
// 此处请求轮播屏数据
this.show = true
}, 500)
},
methods:{
swiperChange(e){
this.swiperCurrent = e.detail.current
},
// 进入首页
openApp(){
this.$store.commit('setSpread', false)
this.$Router.pushTab({name: 'Equity'})
}
}
}

View File

@@ -1,23 +0,0 @@
<template>
<view class="content">
</view>
</template>
<script>
export default {
data() {
return {
}
},
methods: {
}
}
</script>
<style>
</style>

View File

@@ -1,70 +1,203 @@
<template>
<view class="content">
<button type="default" @click="login">登录</button>
<view class="title">易品新境</view>
<view class="inputs phone">
<label class="label">+86</label>
<input type="number" placeholder="输入您的手机号码" v-model="phone"/>
</view>
<view class="inputs sms">
<input type="number" placeholder="输入短信验证码" v-model="code"/>
<button
class="sms-btn"
type="default"
size="mini"
:disabled="phone == '' || getSms"
@click="getPhoneCode"
>{{getSms ? '重新发送' + smsTime + 's': '发送验证码'}}</button>
</view>
<button class="btn" type="default" :disabled="phone == '' || code == ''" @click="login">登录</button>
<!-- 快捷登录 -->
<view class="quick">
<view class="quick-title">快捷登录</view>
<view class="quick-box">
<image class="quick-icon" src="@/static/icons/wechat.png" mode="widthFix"></image>
</view>
</view>
<!-- 用户登录注册协议 -->
<view class="agreement">未注册的手机号验证后将自动创建账号登录即表示同意接收<navigator url="">用户隐私规格</navigator><navigator url="">用户服务协议</navigator></view>
</view>
</template>
<script>
import { auth } from '@/apis/interfaces/auth'
import { getSms, smsAuth } from '@/apis/interfaces/auth'
export default {
data() {
return {
phone : "18245180131",
code : "",
smsTime : 60,
getSms : false
}
},
onLoad() {
},
methods: {
// 用户登录
login(){
uni.login({
provider: 'univerify',
univerifyStyle: {
fullScreen: true,
authButton: {
normalColor : "#c82626",
borderRadius: 0
},
buttons: {
list: [{
provider : "微信",
iconPath : "/static/icons/wechat.png"
}]
},
otherLoginButton: {
borderColor : "#c82626",
title : "其他手机号码登录",
borderRadius: 0,
textColor : "#c82626"
},
privacyTerm: {
privacyItems: [{
url : "https://baidu.com",
title : "用户服务协议"
}]
}
},
success : result => {
auth({
access_token: result.authResult.access_token,
openid : result.authResult.openid
smsAuth({
mobileNo: this.phone,
code : this.code
}).then(res => {
console.log(res)
this.$store.commit('setToken', res.token_type + '' + res.access_token)
if(!res.is_company){
this.$Router.replace({name: "Registered"})
return
}
}).catch(err => {
uni.showToast({
title: err.message,
icon : "none"
})
})
},
fail : err => {
// 获取验证码
getPhoneCode(){
let outTime
getSms({
mobileNo: this.phone
}).then(res => {
uni.showToast({
title: err.errMsg
title: res,
icon : "none"
})
console.log(err)
this.getSms = true
outTime = setInterval(()=>{
if(this.smsTime <= 1){
this.getSms = false
this.smsTime = 60
clearInterval('outTime')
}
this.smsTime -= 1
},1000)
}).catch(err => {
uni.showToast({
title: err.message,
icon : "none"
})
})
}
}
}
</script>
<style>
<style lang="scss" scoped>
.content{
height: 100vh;
width: 100vw;
padding: $padding * 3;
box-sizing: border-box;
background: white;
.inputs{
background: $border-color-lg;
border: solid 1rpx $border-color;
position: relative;
margin-top: $margin;
height: 80rpx;
line-height: 80rpx;
input{
width: 100%;
height: 80rpx;
line-height: 80rpx;
padding: 0 $padding;
border: none;
box-sizing: border-box;
font-size: $title-size-lg;
}
&.phone{
padding-left: 120rpx;
.label{
position: absolute;
left: 0;
top: 0;
width: 120rpx;
text-align: center;
border-right: solid 1rpx $border-color;
font-size: $title-size-lg;
}
}
&.sms{
padding-right: 200rpx;
.sms-btn[size='mini']{
width: 200rpx;
height: 80rpx;
line-height: 80rpx;
position: absolute;
top: 0;
right: 0;
padding: 0;
margin: 0;
border-radius: 0;
border-left: solid 1rpx $border-color;
color: $text-price;
font-size: $title-size-lg;
&::after{
border: none;
}
&[disabled]{
color: rgba($color: $text-price, $alpha: .6);
background: $border-color-lg;
}
}
}
}
.title{
text-align: center;
font-size: $title-size + 6;
font-weight: bold;
color: $text-color;
margin-bottom: 100rpx;
}
.btn{
background: $text-price;
color: white;
border-radius: 0;
margin-top: $margin;
font-size: $title-size;
line-height: 90rpx;
height: 90rpx;
font-weight: bold;
&::after{
border: none;
}
&[disabled]{
background: rgba($color: $text-price, $alpha: .6);
}
}
.quick{
padding-top: $padding * 3;
text-align: center;
.quick-title{
text-align: center;
color: $text-gray;
font-size: $title-size-sm;
padding-bottom: $padding;
}
.quick-box{
display: flex;
justify-content: center;
.quick-icon{
width: 78rpx;
}
}
}
.agreement{
padding-top: $padding * 4;
font-size: $title-size-sm;
color: $text-gray;
navigator{
color: $text-price;
display: inline-block;
padding: 0 10rpx;
}
}
}
</style>

View File

@@ -1,22 +0,0 @@
<template>
<view>
短信登录
</view>
</template>
<script>
export default {
data() {
return {
}
},
methods: {
}
}
</script>
<style>
</style>

129
pages/market/index.vue Normal file
View File

@@ -0,0 +1,129 @@
<template>
<view>
<view class="tabs">
<view class="tabs-item" :class="{'show': tabIndex == 0}" @click="onTabs" data-index="0">最新</view>
<view class="tabs-item" :class="{'show': tabIndex == 1}" @click="onTabs" data-index="1">
价格
<image
class="icon"
mode="widthFix" :src="require(marketType == 'low' ? '@/static/icons/market_icon_low.png': '@/static/icons/market_icon_high.png')"
/>
</view>
</view>
<view class="lists">
<view class="item" v-for="(item, index) in 10" :key="index">
<image class="cover" src="@/static/dev/good_cover_00.jpg" mode="aspectFill"></image>
<view class="content">
<view class="title nowrap">易品新境权证<text>*1</text></view>
<view class="text nowrap">谷风一木3层软抽面巾纸</view>
<view class="text nowrap">转让方温文尔雅的小阿玉</view>
<view class="text nowrap">Hashdjsakljkljfl3213dsaHKLDJS82231csa</view>
</view>
<view class="price">21000.00/</view>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
tabIndex : 0,
marketType : 'low',
marketArray : []
};
},
methods:{
onTabs(e){
let index = e.target.dataset.index
if(index == 0 && index == this.tabIndex) return
if(index == 1 && index == this.tabIndex) this.marketType = this.marketType == 'low' ? 'high': 'low'
this.tabIndex = index
}
}
}
</script>
<style lang="scss" scoped>
.tabs{
position: fixed;
top: 0;
left: 0;
z-index: 9;
width: 100%;
display: flex;
justify-content: space-around;
background: white;
height: 70rpx;
line-height: 70rpx;
text-align: center;
.tabs-item{
font-size: $title-size-m;
color: $text-gray;
.icon{
width: 32rpx;
height: 32rpx;
vertical-align: middle;
margin-left: $margin / 3;
margin-bottom: 4rpx;
}
&.show{
color: $text-price;
}
}
}
// 列表
.lists{
padding: 70rpx $padding $padding;
.item{
min-height: 168rpx;
position: relative;
background: white;
border-radius: $radius/2;
margin-top: $margin;
padding: $padding;
.cover{
position: absolute;
left: $padding;
top: $padding;
width: 168rpx;
height: 168rpx;
}
.content{
padding-left: calc(168rpx + #{$padding});
.title{
position: relative;
font-size: $title-size-lg;
color: $text-color;
font-weight: bold;
line-height: 52rpx;
padding-right: 60rpx;
text{
position: absolute;
right: 0;
top: 0;
width: 60rpx;
text-align: right;
font-weight: normal;
}
}
.text{
font-size: $title-size-sm;
color: $text-gray;
height: 40rpx;
line-height: 40rpx;
}
}
.price{
margin-top: $margin - 10;
padding-top: $padding - 10;
font-size: $title-size-m;
text-align: right;
border-top: solid 1rpx $border-color;
font-weight: bold;
color: $text-price;
}
}
}
</style>

View File

@@ -1,6 +1,6 @@
<template>
<view>
资产
</view>
</template>
@@ -9,14 +9,11 @@
data() {
return {
}
},
methods: {
};
}
}
</script>
<style>
<style lang="scss">
</style>

31
pages/store/index.vue Normal file
View File

@@ -0,0 +1,31 @@
<template>
<view>
<view class="">店铺</view>
<!-- 登录 -->
<button type="default" @click="login">登录</button>
</view>
</template>
<script>
import userAuth from '@/public/userAuth'
export default {
data() {
return {
}
},
methods: {
login(){
let auth = new userAuth()
auth.Login()
// auth.keyLogin()
// auth.smsLogin()
}
}
}
</script>
<style>
</style>

View File

@@ -1,234 +0,0 @@
<template>
<view>
<!-- 用户信息 -->
<view class="user">
唐明明
</view>
<!-- 收藏 -->
<view class="tool-block">
<view class="tool-content">
<view class="item">
<image class="item-cover" src="" mode="aspectFill"></image>
<view class="item-title">商品收藏</view>
</view>
<view class="item">
<image class="item-cover" src="" mode="aspectFill"></image>
<view class="item-title">店铺收藏</view>
</view>
<view class="item">
<image class="item-cover" src="" mode="aspectFill"></image>
<view class="item-title">浏览记录</view>
</view>
<view class="item">
<image class="item-cover" src="" mode="aspectFill"></image>
<view class="item-title">优惠券</view>
</view>
</view>
</view>
<!-- 易货订单 -->
<view class="tool-block">
<view class="title">
<view class="title-mian">
易货订单
</view>
<view class="title-more">
全部订单<uni-icons type="arrowright" size="30" />
</view>
</view>
<view class="order-content">
<view class="item">
<image class="item-cover" src="" mode="aspectFill"></image>
<view class="item-title">待付款</view>
</view>
<view class="item">
<image class="item-cover" src="" mode="aspectFill"></image>
<view class="item-title">待发货</view>
</view>
<view class="item">
<image class="item-cover" src="" mode="aspectFill"></image>
<view class="item-title">待提货</view>
</view>
<view class="item">
<image class="item-cover" src="" mode="aspectFill"></image>
<view class="item-title">待评价</view>
</view>
<view class="item">
<image class="item-cover" src="" mode="aspectFill"></image>
<view class="item-title">退换货</view>
</view>
</view>
</view>
<!-- 易货中心 -->
<view class="tool-block">
<view class="title">
<view class="title-mian">
易货中心管理
</view>
<view class="title-more">
交易中心<uni-icons type="arrowright" size="30" />
</view>
</view>
<view class="tool-content">
<view class="item">
<image class="item-cover" src="" mode="aspectFill"></image>
<view class="item-title">上架中</view>
</view>
<view class="item">
<image class="item-cover" src="" mode="aspectFill"></image>
<view class="item-title">寄存中</view>
</view>
<view class="item">
<image class="item-cover" src="" mode="aspectFill"></image>
<view class="item-title">低价求购</view>
</view>
</view>
</view>
<!-- 我的资产 -->
<view class="tool-block">
<view class="title">
<view class="title-mian">
我的资产
</view>
</view>
<view class="tool-content">
<view class="item">
<image class="item-cover" src="" mode="aspectFill"></image>
<view class="item-title">原石</view>
</view>
<view class="item">
<image class="item-cover" src="" mode="aspectFill"></image>
<view class="item-title">贡献值</view>
</view>
<view class="item">
<image class="item-cover" src="" mode="aspectFill"></image>
<view class="item-title">易币</view>
</view>
<view class="item">
<image class="item-cover" src="" mode="aspectFill"></image>
<view class="item-title">零钱</view>
</view>
</view>
</view>
<!-- 管理工具 -->
<view class="tool-block">
<view class="title">
<view class="title-mian">
管理工具
</view>
</view>
<view class="tool-content">
<view class="item">
<image class="item-cover" src="" mode="aspectFill"></image>
<view class="item-title">店铺管理</view>
</view>
<view class="item">
<image class="item-cover" src="" mode="aspectFill"></image>
<view class="item-title">员工管理</view>
</view>
<view class="item">
<image class="item-cover" src="" mode="aspectFill"></image>
<view class="item-title">营销管理</view>
</view>
<view class="item">
<image class="item-cover" src="" mode="aspectFill"></image>
<view class="item-title">产品管理</view>
</view>
<view class="item">
<image class="item-cover" src="" mode="aspectFill"></image>
<view class="item-title">核销管理</view>
</view>
<view class="item">
<image class="item-cover" src="" mode="aspectFill"></image>
<view class="item-title">卡券管理</view>
</view>
</view>
</view>
<!-- 版权信息 -->
<view class="copyright">易品新境 beta 1.0.0</view>
</view>
</template>
<script>
export default {
data() {
return {
}
},
methods: {
}
}
</script>
<style lang="scss">
// 用户卡片
.user{
background: white;
margin: $margin;
border-radius: $radius;
box-shadow: 0 0 4rpx 4rpx rgba($color: #000000, $alpha: .02);
text-align: center;
padding: $padding * 2;
}
// 工具块
.tool-block{
background: white;
margin: $margin;
border-radius: $radius;
box-shadow: 0 0 4rpx 4rpx rgba($color: #000000, $alpha: .02);
.title{
display: flex;
justify-content: space-between;
border-bottom: solid 1rpx $border-color-lg;
padding: ($padding - 10) $padding ($padding/2);
.title-mian{
font-size: $title-size + 4;
font-weight: bold;
line-height: 60rpx;
color: $text-color;
}
.title-more{
font-size: $title-size-lg;
color: $text-gray;
line-height: 60rpx;
}
}
}
// 营销工具
.tool-content{
padding: $padding - 10;
display: flex;
flex-wrap: wrap;
.item{
width: calc(25% - #{($margin / 3) * 2});
margin: ($margin/2) ($margin / 3);
text-align: center;
.item-cover{
background: #999999;
width: 68rpx;
height: 68rpx;
vertical-align: top;
}
.item-title{
font-size: $title-size-sm;
padding-top: $padding/3;
color: $text-gray;
}
}
}
// 订单
.order-content{
@extend .tool-content;
.item{
width: calc(20% - #{($margin / 3) * 2});
}
}
// 易品新境
.copyright{
padding: $padding 0 ($padding * 2);
text-align: center;
font-size: $title-size-sm;
color: $text-gray-m;
}
</style>

View File

@@ -0,0 +1,352 @@
<template>
<view>
<!-- 用户信息 -->
<view class="user">
<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>
</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>
<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>
</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>
</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>
</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>
</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>
</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>
<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 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>
<!-- 版权信息 -->
<view class="copyright">易品新境 beta 1.0.0</view>
</view>
</template>
<script>
export default {
data() {
return {
}
},
methods: {
}
}
</script>
<style lang="scss" scoped>
// 用户
.user{
background: #f3f4f8;
@extend .ios-top;
.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;
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;
}
}
}
.user-sign{
background: white;
width: 130rpx;
height: 60rpx;
line-height: 60rpx;
text-align: center;
font-size: $title-size-m;
}
}
.user-total{
padding: $padding ($padding - 10);
display: flex;
.total-item{
position: relative;
margin: 0 ($margin/3);
text-align: center;
width: calc(25% - #{$margin - 10});
.total-number{
font-size: $title-size;
font-weight: bold;
line-height: 50rpx;
}
.total-text{
font-size: $title-size-sm;
line-height: 40rpx;
}
&::before{
position: absolute;
right: -($margin/3);
top: 25%;
height: 50%;
content: " ";
width: 1rpx;
background: #c2c4c1;
}
&:last-child::before{
display: none;
}
}
}
.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{
margin: $margin;
background: white;
border-radius: $radius;
.title{
padding: $padding $padding ($padding - 10);
display: flex;
justify-content: space-between;
border-bottom: solid 1rpx $border-color;
align-items: center;
.title-text{
line-height: 40rpx;
font-size: $title-size;
}
.title-more{
height: 40rpx;
line-height: 40rpx;
font-size: $title-size-sm;
color: $text-gray-m;
}
.title-icon{
vertical-align: middle;
}
}
.group-flex{
display: flex;
padding: $padding - 10;
flex-wrap: wrap;
.item{
margin: $padding / 3;
text-align: center;
}
}
}
// 易货订单
.order-flex{
.item{
width: calc(20% - #{$padding - 10});
.item-num{
font-weight: bold;
font-size: $title-size + 4;
}
.item-cover{
width: 62rpx;
height: 62rpx;
vertical-align: top;
}
.item-title{
font-size: $title-size-sm - 2;
color: $text-gray-m;
line-height: 40rpx;
}
}
}
// 工具内容
.group-flex-4{
@extend .order-flex;
.item{
width: calc(25% - #{$padding - 10});
}
}
.group-flex-3{
@extend .order-flex;
.item{
width: calc(33.33% - #{$padding - 10});
}
}
// 易品新境
.copyright{
padding: $padding 0 ($padding * 2);
text-align: center;
font-size: $title-size-sm;
color: $text-gray-m;
}
</style>

View File

@@ -1,6 +1,6 @@
<template>
<view>
会员主页
开通会员
</view>
</template>

View File

@@ -1,84 +0,0 @@
/**
* Web唐明明
* 匆匆数载恍如梦,岁月迢迢华发增。
* 碌碌无为枉半生,一朝惊醒万事空。
* moduleName: 一键登录
*/
import { auth } from '@/apis/interfaces/auth'
import store from '@/store/index'
import { router } from '@/router'
class keyPhone {
constructor(config) {
this.config = {
fullScreen: true,
authButton: {
normalColor: "#c82626",
borderRadius: 0
},
buttons: {
list: [{
provider: "微信",
iconPath: "/static/icons/wechat.png"
}]
},
otherLoginButton: {
borderColor: "#c82626",
title: "其他手机号码登录",
borderRadius: 0,
textColor: "#c82626"
},
privacyTerm: {
privacyItems: [{
url: "https://baidu.com",
title: "用户服务协议"
}]
}
}
}
// 一键登录
keyAuth() {
return new Promise((resolve, reject) => {
wx.login({
provider : 'univerify',
univerifyStyle : this.config,
success : phoneToken => {
let data = phoneToken.authResult
auth({
access_token: data.access_token,
openid : data.openid
}).then(res => {
store.commit('setToken', res.token_type + ' ' + res.access_token)
resolve({
is_new: res.is_new
})
uni.closeAuthView()
})
},
fail : err => {
switch(err.code) {
case '30002':
console.log('其他登录方式')
// router.push({name: 'Sms'})
break
case '30008':
this.wxAuth()
break
}
}
})
})
}
// 微信登录
wxAuth() {
uni.showToast({
title: '微信登录',
icon : 'none'
})
}
}
export default new keyPhone()

33
public/userAuth.js Normal file
View File

@@ -0,0 +1,33 @@
/**
* Web唐明明
* 匆匆数载恍如梦,岁月迢迢华发增。
* 碌碌无为枉半生,一朝惊醒万事空。
* moduleName: 登录
*/
import { router } from '../router'
class userAuth {
constructor() {
}
// 预登录
Login(){
uni.preLogin({
provider: "univerify",
success : res=> {
console.log(res)
},
fail : err=> {
router.push({name: "Login"})
}
})
}
// 一键登录
keyLogin(){
console.log('一键登录')
}
}
export default userAuth

View File

@@ -16,18 +16,9 @@ const router = createRouter({
// 全局路由前置守卫
router.beforeEach((to, from, next) => {
const token = store.getters.getToken || uni.getStorageSync('token')
// 检查是否需要登录
if(to.meta.auth && token === ''){
next({
name: 'Login',
NAVTYPE: 'replaceAll'
})
return
}
if(to.name === 'Welcome'){
next({
name: 'ChainIndex',
NAVTYPE: 'replaceAll'
})
keyPhone.keyAuth()
return
}
next();

Binary file not shown.

After

Width:  |  Height:  |  Size: 733 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 489 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 487 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 944 B

View File

@@ -12,17 +12,25 @@ Vue.use(Vuex)
export default new Vuex.Store({
state: {
token: uni.getStorageSync('token') || ''
token : uni.getStorageSync('token') || '',
spread: uni.getStorageSync('spread')
},
getters: {
getToken: state => {
return state.token
},
getSpread: state => {
return state.spread
}
},
mutations: {
setToken(state, tokenString) {
state.token = tokenString
uni.setStorageSync('token', tokenString)
},
setSpread(state, value) {
state.spread = value
uni.setStorageSync('spread', value)
}
}
})

View File

@@ -1,8 +1,8 @@
var isReady=false;var onReadyCallbacks=[];
var isServiceReady=false;var onServiceReadyCallbacks=[];
var __uniConfig = {"pages":["pages/guide/index","pages/index/index","pages/user/index","pages/login/login","pages/login/sms","pages/company/auth","pages/vip/index","pages/vip/pay","pages/order/index","pages/order/details","pages/order/submit","pages/property/cash","pages/property/eb","pages/property/integral","pages/property/token","pages/equity/index"],"window":{"navigationBarTextStyle":"black","navigationBarTitleText":"易货","navigationBarBackgroundColor":"#F8F8F8","backgroundColor":"#F8F8F8"},"tabBar":{"color":"#bababa","selectedColor":"#c82626","backgroundColor":"#FFFFFF","borderStyle":"white","list":[{"pagePath":"pages/index/index","text":"易","iconPath":"static/tabBar/tabBar_icon_00.png","selectedIconPath":"static/tabBar/tabBar_show_00.png"},{"pagePath":"pages/property/token","text":"数权","iconPath":"static/tabBar/tabBar_icon_01.png","selectedIconPath":"static/tabBar/tabBar_show_01.png"},{"pagePath":"pages/property/integral","text":"贡献值","iconPath":"static/tabBar/tabBar_icon_02.png","selectedIconPath":"static/tabBar/tabBar_show_02.png"},{"pagePath":"pages/user/index","text":"我的","iconPath":"static/tabBar/tabBar_icon_03.png","selectedIconPath":"static/tabBar/tabBar_show_03.png"}]},"nvueCompiler":"uni-app","nvueStyleCompiler":"uni-app","renderer":"auto","splashscreen":{"alwaysShowBeforeRender":false,"autoclose":true},"appname":"易品新境","compilerVersion":"3.1.22","entryPagePath":"pages/equity/index","entryPageQuery":"","realEntryPagePath":"pages/guide/index","networkTimeout":{"request":60000,"connectSocket":60000,"uploadFile":60000,"downloadFile":60000}};
var __uniRoutes = [{"path":"/pages/guide/index","meta":{"isQuit":true},"window":{"navigationStyle":"custom"}},{"path":"/pages/index/index","meta":{"isQuit":true,"isTabBar":true},"window":{}},{"path":"/pages/user/index","meta":{"isQuit":true,"isTabBar":true},"window":{"navigationBarTitleText":"我的","transparentTitle":"auto"}},{"path":"/pages/login/login","meta":{},"window":{}},{"path":"/pages/login/sms","meta":{},"window":{}},{"path":"/pages/company/auth","meta":{},"window":{"navigationBarTitleText":"企业认证","enablePullDownRefresh":false}},{"path":"/pages/vip/index","meta":{},"window":{"navigationBarTitleText":"会员","enablePullDownRefresh":false}},{"path":"/pages/vip/pay","meta":{},"window":{"navigationBarTitleText":"会员支付","enablePullDownRefresh":false}},{"path":"/pages/order/index","meta":{},"window":{"navigationBarTitleText":"订单列表","enablePullDownRefresh":false}},{"path":"/pages/order/details","meta":{},"window":{"navigationBarTitleText":"订单详情","enablePullDownRefresh":false}},{"path":"/pages/order/submit","meta":{},"window":{"navigationBarTitleText":"提交订单","enablePullDownRefresh":false}},{"path":"/pages/property/cash","meta":{},"window":{"navigationBarTitleText":"现金账户","enablePullDownRefresh":false}},{"path":"/pages/property/eb","meta":{},"window":{"navigationBarTitleText":"EB账户","enablePullDownRefresh":false}},{"path":"/pages/property/integral","meta":{"isQuit":true,"isTabBar":true},"window":{"navigationBarTitleText":"贡献值","enablePullDownRefresh":false}},{"path":"/pages/property/token","meta":{"isQuit":true,"isTabBar":true},"window":{"navigationBarTitleText":"数权账户","enablePullDownRefresh":false}},{"path":"/pages/equity/index","meta":{},"window":{"navigationBarTitleText":"企业广场","navigationStyle":"custom"}}];
var __uniConfig = {"pages":["pages/equity/index","pages/market/index","pages/store/index","pages/property/index","pages/goods/details","pages/login/login","pages/company/registered","pages/company/prompt","pages/vip/index"],"window":{"navigationBarTextStyle":"black","navigationBarTitleText":"易货","navigationBarBackgroundColor":"#F8F8F8","backgroundColor":"#F8F8F8"},"tabBar":{"color":"#bababa","selectedColor":"#c82626","backgroundColor":"#FFFFFF","borderStyle":"white","list":[{"pagePath":"pages/equity/index","text":"通证权易","iconPath":"static/tabBar/tabBar_icon_00.png","selectedIconPath":"static/tabBar/tabBar_show_00.png"},{"pagePath":"pages/market/index","text":"转让市场","iconPath":"static/tabBar/tabBar_icon_01.png","selectedIconPath":"static/tabBar/tabBar_show_01.png"},{"pagePath":"pages/store/index","text":"企业工具","iconPath":"static/tabBar/tabBar_icon_02.png","selectedIconPath":"static/tabBar/tabBar_show_02.png"},{"pagePath":"pages/property/index","text":"我的资产","iconPath":"static/tabBar/tabBar_icon_03.png","selectedIconPath":"static/tabBar/tabBar_show_03.png"}]},"nvueCompiler":"uni-app","nvueStyleCompiler":"uni-app","renderer":"auto","splashscreen":{"alwaysShowBeforeRender":false,"autoclose":true},"appname":"易品新境","compilerVersion":"3.1.22","entryPagePath":"pages/vip/index","entryPageQuery":"","realEntryPagePath":"pages/equity/index","networkTimeout":{"request":60000,"connectSocket":60000,"uploadFile":60000,"downloadFile":60000}};
var __uniRoutes = [{"path":"/pages/equity/index","meta":{"isQuit":true,"isTabBar":true},"window":{"navigationStyle":"custom"}},{"path":"/pages/market/index","meta":{"isQuit":true,"isTabBar":true},"window":{"navigationBarTitleText":"转让市场","titleNView":{"backgroundColor":"#FFFFFF","buttons":[{"text":"成交历史","fontSize":"14","width":"80","color":"#555555"}]}}},{"path":"/pages/store/index","meta":{"isQuit":true,"isTabBar":true},"window":{}},{"path":"/pages/property/index","meta":{"isQuit":true,"isTabBar":true},"window":{}},{"path":"/pages/goods/details","meta":{},"window":{"navigationBarTitleText":"","titleNView":{"backgroundColor":"#FFFFFF","type":"transparent","buttons":[{"text":"分享","fontSize":"12","color":"#555555"}]}}},{"path":"/pages/login/login","meta":{},"window":{"navigationBarTitleText":"","navigationBarBackgroundColor":"#FFFFFF","disableScroll":true}},{"path":"/pages/company/registered","meta":{},"window":{"navigationBarTitleText":""}},{"path":"/pages/company/prompt","meta":{},"window":{"navigationBarTitleText":"","navigationBarBackgroundColor":"#FFFFFF","disableScroll":true,"titleNView":{"backgroundColor":"#FFFFFF","buttons":[{"text":"先逛一逛","fontSize":"14","width":"80","color":"#555555"}]}}},{"path":"/pages/vip/index","meta":{},"window":{"navigationBarTitleText":"我的会员"}}];
__uniConfig.onReady=function(callback){if(__uniConfig.ready){callback()}else{onReadyCallbacks.push(callback)}};Object.defineProperty(__uniConfig,"ready",{get:function(){return isReady},set:function(val){isReady=val;if(!isReady){return}const callbacks=onReadyCallbacks.slice(0);onReadyCallbacks.length=0;callbacks.forEach(function(callback){callback()})}});
__uniConfig.onServiceReady=function(callback){if(__uniConfig.serviceReady){callback()}else{onServiceReadyCallbacks.push(callback)}};Object.defineProperty(__uniConfig,"serviceReady",{get:function(){return isServiceReady},set:function(val){isServiceReady=val;if(!isServiceReady){return}const callbacks=onServiceReadyCallbacks.slice(0);onServiceReadyCallbacks.length=0;callbacks.forEach(function(callback){callback()})}});
service.register("uni-app-config",{create(a,b,c){if(!__uniConfig.viewport){var d=b.weex.config.env.scale,e=b.weex.config.env.deviceWidth,f=Math.ceil(e/d);Object.assign(__uniConfig,{viewport:f,defaultFontSize:Math.round(f/20)})}return{instance:{__uniConfig:__uniConfig,__uniRoutes:__uniRoutes,global:void 0,window:void 0,document:void 0,frames:void 0,self:void 0,location:void 0,navigator:void 0,localStorage:void 0,history:void 0,Caches:void 0,screen:void 0,alert:void 0,confirm:void 0,prompt:void 0,fetch:void 0,XMLHttpRequest:void 0,WebSocket:void 0,webkit:void 0,print:void 0}}}});

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1 +1 @@
{"@platforms":["android","iPhone","iPad"],"id":"__UNI__CD19AAD","name":"易品新境","version":{"name":"1.0.0","code":"100"},"description":"易品新境为商家提供营销引流工具","launch_path":"__uniappview.html","developer":{"name":"","email":"","url":""},"permissions":{"OAuth":{},"UniNView":{"description":"UniNView原生渲染"}},"plus":{"useragent":{"value":"uni-app","concatenate":true},"splashscreen":{"autoclose":false,"waiting":true,"delay":0},"popGesture":"close","launchwebview":{"id":"1","kernel":"WKWebview"},"statusbar":{"immersed":"supportedDevice","style":"dark","background":"#F8F8F8"},"usingComponents":true,"nvueStyleCompiler":"uni-app","compilerVersion":3,"safearea":{"bottom":{"offset":"none"}},"distribute":{"google":{"permissions":["\u003cuses-permission android:name\u003d\"android.permission.CHANGE_NETWORK_STATE\"/\u003e","\u003cuses-permission android:name\u003d\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/\u003e","\u003cuses-permission android:name\u003d\"android.permission.VIBRATE\"/\u003e","\u003cuses-permission android:name\u003d\"android.permission.READ_LOGS\"/\u003e","\u003cuses-permission android:name\u003d\"android.permission.ACCESS_WIFI_STATE\"/\u003e","\u003cuses-feature android:name\u003d\"android.hardware.camera.autofocus\"/\u003e","\u003cuses-permission android:name\u003d\"android.permission.ACCESS_NETWORK_STATE\"/\u003e","\u003cuses-permission android:name\u003d\"android.permission.CAMERA\"/\u003e","\u003cuses-permission android:name\u003d\"android.permission.GET_ACCOUNTS\"/\u003e","\u003cuses-permission android:name\u003d\"android.permission.READ_PHONE_STATE\"/\u003e","\u003cuses-permission android:name\u003d\"android.permission.CHANGE_WIFI_STATE\"/\u003e","\u003cuses-permission android:name\u003d\"android.permission.WAKE_LOCK\"/\u003e","\u003cuses-permission android:name\u003d\"android.permission.FLASHLIGHT\"/\u003e","\u003cuses-feature android:name\u003d\"android.hardware.camera\"/\u003e","\u003cuses-permission android:name\u003d\"android.permission.WRITE_SETTINGS\"/\u003e"]},"apple":{},"plugins":{"oauth":{"univerify":{}},"audio":{"mp3":{"description":"Android平台录音支持MP3格式文件"}}}},"allowsInlineMediaPlayback":true,"uni-app":{"compilerVersion":"3.1.22","control":"uni-v3","nvueCompiler":"uni-app","renderer":"auto","nvue":{"flex-direction":"column"},"nvueLaunchMode":"normal"},"tabBar":{"color":"#bababa","selectedColor":"#c82626","backgroundColor":"#FFFFFF","borderStyle":"rgba(255,255,255,0.4)","list":[{"pagePath":"pages/index/index","text":"易","iconPath":"static/tabBar/tabBar_icon_00.png","selectedIconPath":"static/tabBar/tabBar_show_00.png"},{"pagePath":"pages/property/token","text":"数权","iconPath":"static/tabBar/tabBar_icon_01.png","selectedIconPath":"static/tabBar/tabBar_show_01.png"},{"pagePath":"pages/property/integral","text":"贡献值","iconPath":"static/tabBar/tabBar_icon_02.png","selectedIconPath":"static/tabBar/tabBar_show_02.png"},{"pagePath":"pages/user/index","text":"我的","iconPath":"static/tabBar/tabBar_icon_03.png","selectedIconPath":"static/tabBar/tabBar_show_03.png"}],"height":"50px"},"launch_path":"__uniappview.html","arguments":"{\"pathName\":\"pages/equity/index\",\"query\":\"\"}"}}
{"@platforms":["android","iPhone","iPad"],"id":"__UNI__CD19AAD","name":"易品新境","version":{"name":"1.0.0","code":"100"},"description":"易品新境为商家提供营销引流工具","launch_path":"__uniappview.html","developer":{"name":"","email":"","url":""},"permissions":{"OAuth":{},"UniNView":{"description":"UniNView原生渲染"}},"plus":{"useragent":{"value":"uni-app","concatenate":true},"splashscreen":{"autoclose":false,"waiting":true,"delay":0},"popGesture":"close","launchwebview":{"id":"1","kernel":"WKWebview"},"statusbar":{"immersed":"supportedDevice","style":"dark","background":"#F8F8F8"},"usingComponents":true,"nvueStyleCompiler":"uni-app","compilerVersion":3,"safearea":{"bottom":{"offset":"none"}},"distribute":{"google":{"permissions":["\u003cuses-permission android:name\u003d\"android.permission.CHANGE_NETWORK_STATE\"/\u003e","\u003cuses-permission android:name\u003d\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/\u003e","\u003cuses-permission android:name\u003d\"android.permission.VIBRATE\"/\u003e","\u003cuses-permission android:name\u003d\"android.permission.READ_LOGS\"/\u003e","\u003cuses-permission android:name\u003d\"android.permission.ACCESS_WIFI_STATE\"/\u003e","\u003cuses-feature android:name\u003d\"android.hardware.camera.autofocus\"/\u003e","\u003cuses-permission android:name\u003d\"android.permission.ACCESS_NETWORK_STATE\"/\u003e","\u003cuses-permission android:name\u003d\"android.permission.CAMERA\"/\u003e","\u003cuses-permission android:name\u003d\"android.permission.GET_ACCOUNTS\"/\u003e","\u003cuses-permission android:name\u003d\"android.permission.READ_PHONE_STATE\"/\u003e","\u003cuses-permission android:name\u003d\"android.permission.CHANGE_WIFI_STATE\"/\u003e","\u003cuses-permission android:name\u003d\"android.permission.WAKE_LOCK\"/\u003e","\u003cuses-permission android:name\u003d\"android.permission.FLASHLIGHT\"/\u003e","\u003cuses-feature android:name\u003d\"android.hardware.camera\"/\u003e","\u003cuses-permission android:name\u003d\"android.permission.WRITE_SETTINGS\"/\u003e"]},"apple":{},"plugins":{"oauth":{"univerify":{}},"audio":{"mp3":{"description":"Android平台录音支持MP3格式文件"}}}},"allowsInlineMediaPlayback":true,"uni-app":{"compilerVersion":"3.1.22","control":"uni-v3","nvueCompiler":"uni-app","renderer":"auto","nvue":{"flex-direction":"column"},"nvueLaunchMode":"normal"},"tabBar":{"color":"#bababa","selectedColor":"#c82626","backgroundColor":"#FFFFFF","borderStyle":"rgba(255,255,255,0.4)","list":[{"pagePath":"pages/equity/index","text":"通证权易","iconPath":"static/tabBar/tabBar_icon_00.png","selectedIconPath":"static/tabBar/tabBar_show_00.png"},{"pagePath":"pages/market/index","text":"转让市场","iconPath":"static/tabBar/tabBar_icon_01.png","selectedIconPath":"static/tabBar/tabBar_show_01.png"},{"pagePath":"pages/store/index","text":"企业工具","iconPath":"static/tabBar/tabBar_icon_02.png","selectedIconPath":"static/tabBar/tabBar_show_02.png"},{"pagePath":"pages/property/index","text":"我的资产","iconPath":"static/tabBar/tabBar_icon_03.png","selectedIconPath":"static/tabBar/tabBar_show_03.png"}],"height":"50px"},"launch_path":"__uniappview.html","arguments":"{\"pathName\":\"pages/vip/index\",\"query\":\"\"}"}}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 733 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 489 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 487 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 944 B