新增员工管理等
This commit is contained in:
@@ -31,13 +31,13 @@ const request = (parameter) => {
|
|||||||
'Authorization': store.getters.getToken || ''
|
'Authorization': store.getters.getToken || ''
|
||||||
}
|
}
|
||||||
|
|
||||||
|
console.log('parameterDbug', parameter)
|
||||||
|
|
||||||
// 加载提示
|
// 加载提示
|
||||||
uni.showLoading({
|
uni.showLoading({
|
||||||
title: '加载中',
|
title: '加载中',
|
||||||
mask : true
|
mask : true
|
||||||
});
|
});
|
||||||
|
|
||||||
console.log('dbug', parameter)
|
|
||||||
// 请求实例
|
// 请求实例
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
uni.request({
|
uni.request({
|
||||||
|
|||||||
@@ -33,9 +33,8 @@
|
|||||||
<view class="general-item" @click="$Router.push({name: 'Employees'})">
|
<view class="general-item" @click="$Router.push({name: 'Employees'})">
|
||||||
<view class="number">{{wordData.middle.employees || 0}}</view>
|
<view class="number">{{wordData.middle.employees || 0}}</view>
|
||||||
<view class="text">员工数量</view>
|
<view class="text">员工数量</view>
|
||||||
<!-- <uni-icons type="arrowright" size="14" color="#555"></uni-icons> -->
|
|
||||||
</view>
|
</view>
|
||||||
<view class="general-item">
|
<view class="general-item" @click="$Router.push({name: 'GoodsMag'})">
|
||||||
<view class="number">{{wordData.middle.sale || 0}}</view>
|
<view class="number">{{wordData.middle.sale || 0}}</view>
|
||||||
<view class="text">在售权证</view>
|
<view class="text">在售权证</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -51,27 +50,27 @@
|
|||||||
</view>
|
</view>
|
||||||
<!-- 店铺订单管理 -->
|
<!-- 店铺订单管理 -->
|
||||||
<view class="tool-flex order">
|
<view class="tool-flex order">
|
||||||
<view class="order-item">
|
<view class="order-item" @click="$Router.push({name: 'Order', params: {type: 'deliver'}})">
|
||||||
<view class="number" v-if="wordData.order.not_shipped > 0">{{wordData.order.not_shipped}}</view>
|
<view class="number" v-if="wordData.order.not_shipped > 0">{{wordData.order.not_shipped}}</view>
|
||||||
<image class="icon" src="@/static/icons/order_icon_01.png" mode="aspectFill"></image>
|
<image class="icon" src="@/static/icons/order_icon_01.png" mode="aspectFill"></image>
|
||||||
<view class="title">待发货</view>
|
<view class="title">待发货</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="order-item">
|
<view class="order-item" @click="$Router.push({name: 'Order', params: {type: 'shipped'}})">
|
||||||
<view class="number" v-if="wordData.order.already_shipped > 0">{{wordData.order.already_shipped}}</view>
|
<view class="number" v-if="wordData.order.already_shipped > 0">{{wordData.order.already_shipped}}</view>
|
||||||
<image class="icon" src="@/static/icons/order_icon_02.png" mode="aspectFill"></image>
|
<image class="icon" src="@/static/icons/order_icon_02.png" mode="aspectFill"></image>
|
||||||
<view class="title">已发货</view>
|
<view class="title">已发货</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="order-item">
|
<view class="order-item" @click="$Router.push({name: 'Order', params: {type: 'sign'}})">
|
||||||
<view class="number" v-if="wordData.order.not_pick > 0">{{wordData.order.not_pick}}</view>
|
<view class="number" v-if="wordData.order.not_pick > 0">{{wordData.order.not_pick}}</view>
|
||||||
<image class="icon" src="@/static/icons/order_icon_03.png" mode="aspectFill"></image>
|
<image class="icon" src="@/static/icons/order_icon_03.png" mode="aspectFill"></image>
|
||||||
<view class="title">待提货</view>
|
<view class="title">待提货</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="order-item">
|
<view class="order-item" @click="$Router.push({name: 'Order', params: {type: 'take'}})">
|
||||||
<view class="number" v-if="wordData.order.already_pick > 0">{{wordData.order.already_pick}}</view>
|
<view class="number" v-if="wordData.order.already_pick > 0">{{wordData.order.already_pick}}</view>
|
||||||
<image class="icon" src="@/static/icons/order_icon_00.png" mode="aspectFill"></image>
|
<image class="icon" src="@/static/icons/order_icon_00.png" mode="aspectFill"></image>
|
||||||
<view class="title">已提货</view>
|
<view class="title">已提货</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="order-item">
|
<view class="order-item" @click="$Router.push({name: 'Sales'})">
|
||||||
<view class="number" v-if="wordData.order.after_sale > 0">{{wordData.order.after_sale}}</view>
|
<view class="number" v-if="wordData.order.after_sale > 0">{{wordData.order.after_sale}}</view>
|
||||||
<image class="icon" src="@/static/icons/order_icon_04.png" mode="aspectFill"></image>
|
<image class="icon" src="@/static/icons/order_icon_04.png" mode="aspectFill"></image>
|
||||||
<view class="title">退换货</view>
|
<view class="title">退换货</view>
|
||||||
@@ -79,19 +78,19 @@
|
|||||||
</view>
|
</view>
|
||||||
<!-- 店铺工具 -->
|
<!-- 店铺工具 -->
|
||||||
<view class="tool-flex store">
|
<view class="tool-flex store">
|
||||||
<view class="store-item">
|
<view class="store-item" @click="$Router.push({name: 'Verification'})">
|
||||||
<image class="icon" src="@/static/icons/tool_icon_00.png" mode="aspectFill"></image>
|
<image class="icon" src="@/static/icons/tool_icon_00.png" mode="aspectFill"></image>
|
||||||
<view class="title">扫码验证</view>
|
<view class="title">扫码验证</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="store-item">
|
<view class="store-item" @click="$Router.push({name: 'GoodsMag'})">
|
||||||
<image class="icon" src="@/static/icons/tool_icon_01.png" mode="aspectFill"></image>
|
<image class="icon" src="@/static/icons/tool_icon_01.png" mode="aspectFill"></image>
|
||||||
<view class="title">商品权证</view>
|
<view class="title">商品权证</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="store-item">
|
<view class="store-item" @click="$Router.push({name: 'CouponsMag'})">
|
||||||
<image class="icon" src="@/static/icons/tool_icon_02.png" mode="aspectFill"></image>
|
<image class="icon" src="@/static/icons/tool_icon_02.png" mode="aspectFill"></image>
|
||||||
<view class="title">优惠券管理</view>
|
<view class="title">优惠券管理</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="store-item">
|
<view class="store-item" @click="$Router.push({name: 'Collection'})">
|
||||||
<image class="icon" src="@/static/icons/tool_icon_03.png" mode="aspectFill"></image>
|
<image class="icon" src="@/static/icons/tool_icon_03.png" mode="aspectFill"></image>
|
||||||
<view class="title">收款管理</view>
|
<view class="title">收款管理</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -114,7 +113,7 @@
|
|||||||
<image class="icon" src="@/static/icons/tool_icon_07.png" mode="aspectFill"></image>
|
<image class="icon" src="@/static/icons/tool_icon_07.png" mode="aspectFill"></image>
|
||||||
<view class="title">部门/门店</view>
|
<view class="title">部门/门店</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="store-item">
|
<view class="store-item" @click="$Router.push({name: 'Employees'})">
|
||||||
<image class="icon" src="@/static/icons/tool_icon_08.png" mode="aspectFill"></image>
|
<image class="icon" src="@/static/icons/tool_icon_08.png" mode="aspectFill"></image>
|
||||||
<view class="title">员工管理</view>
|
<view class="title">员工管理</view>
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
@@ -64,7 +64,7 @@
|
|||||||
},
|
},
|
||||||
"payment" : {
|
"payment" : {
|
||||||
"weixin" : {
|
"weixin" : {
|
||||||
"__platform__" : [ "ios", "android" ],
|
"__platform__" : [ "android" ],
|
||||||
"appid" : "wx222fbe58feee7819",
|
"appid" : "wx222fbe58feee7819",
|
||||||
"UniversalLinks" : ""
|
"UniversalLinks" : ""
|
||||||
}
|
}
|
||||||
|
|||||||
89
pages.json
89
pages.json
@@ -119,6 +119,24 @@
|
|||||||
"navigationBarTitleText": "确认订单",
|
"navigationBarTitleText": "确认订单",
|
||||||
"navigationBarBackgroundColor":"#FFFFFF"
|
"navigationBarBackgroundColor":"#FFFFFF"
|
||||||
}
|
}
|
||||||
|
},{
|
||||||
|
"path" : "pages/order/index",
|
||||||
|
"name" : "Order",
|
||||||
|
"style" :{
|
||||||
|
"navigationBarTitleText": "订单管理"
|
||||||
|
}
|
||||||
|
},{
|
||||||
|
"path" : "pages/order/details",
|
||||||
|
"name" : "OrderDetails",
|
||||||
|
"style" :{
|
||||||
|
"navigationBarTitleText": "订单详情"
|
||||||
|
}
|
||||||
|
},{
|
||||||
|
"path" : "pages/order/sales",
|
||||||
|
"name" : "Sales",
|
||||||
|
"style":{
|
||||||
|
"navigationBarTitleText": "售后"
|
||||||
|
}
|
||||||
},{
|
},{
|
||||||
"path" : "pages/goods/lists",
|
"path" : "pages/goods/lists",
|
||||||
"name" : "goodsList",
|
"name" : "goodsList",
|
||||||
@@ -147,7 +165,26 @@
|
|||||||
"navigationBarBackgroundColor":"#FFFFFF"
|
"navigationBarBackgroundColor":"#FFFFFF"
|
||||||
}
|
}
|
||||||
},{
|
},{
|
||||||
"path" : "pages/store/employees",
|
"path" : "pages/store/basics",
|
||||||
|
"name" : "Basics",
|
||||||
|
"style" :{
|
||||||
|
"navigationBarTitleText": "基础信息",
|
||||||
|
"app-plus":{
|
||||||
|
"titleNView": {
|
||||||
|
"backgroundColor": "#FFFFFF",
|
||||||
|
"buttons": [
|
||||||
|
{
|
||||||
|
"text": "保存",
|
||||||
|
"fontSize": "16",
|
||||||
|
"width": "80",
|
||||||
|
"color": "#c82626"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},{
|
||||||
|
"path" : "pages/employees/list",
|
||||||
"name" : "Employees",
|
"name" : "Employees",
|
||||||
"style" : {
|
"style" : {
|
||||||
"navigationBarTitleText": "员工",
|
"navigationBarTitleText": "员工",
|
||||||
@@ -166,23 +203,47 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},{
|
},{
|
||||||
"path" : "pages/store/basics",
|
"path" : "pages/employees/add",
|
||||||
"name" : "Basics",
|
"name" : "addEmployees",
|
||||||
"style":{
|
"style":{
|
||||||
"navigationBarTitleText": "基础信息",
|
"navigationBarTitleText": "添加员工",
|
||||||
"app-plus":{
|
"navigationBarBackgroundColor":"#FFFFFF"
|
||||||
"titleNView": {
|
|
||||||
"backgroundColor": "#FFFFFF",
|
|
||||||
"buttons": [
|
|
||||||
{
|
|
||||||
"text": "保存",
|
|
||||||
"fontSize": "16",
|
|
||||||
"width": "80",
|
|
||||||
"color": "#c82626"
|
|
||||||
}
|
}
|
||||||
]
|
},{
|
||||||
|
"path" : "pages/goods/management",
|
||||||
|
"name" : "GoodsMag",
|
||||||
|
"style":{
|
||||||
|
"navigationBarTitleText": "商品权证"
|
||||||
}
|
}
|
||||||
|
},{
|
||||||
|
"path" : "pages/goods/add",
|
||||||
|
"name" : "GoodsMagAdd",
|
||||||
|
"style":{
|
||||||
|
"navigationBarTitleText": "添加权证"
|
||||||
}
|
}
|
||||||
|
},{
|
||||||
|
"path" : "pages/coupons/index",
|
||||||
|
"name" : "Coupons",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "优惠券"
|
||||||
|
}
|
||||||
|
},{
|
||||||
|
"path" : "pages/coupons/management",
|
||||||
|
"name" : "CouponsMag",
|
||||||
|
"style":{
|
||||||
|
"navigationBarTitleText": "优惠券管理"
|
||||||
|
}
|
||||||
|
},{
|
||||||
|
"path" : "pages/verification/index",
|
||||||
|
"name" : "Verification",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "扫码验证"
|
||||||
|
}
|
||||||
|
},{
|
||||||
|
"path" : "pages/verification/details",
|
||||||
|
"name" : "VerificationDetails",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "核销券详情"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
|||||||
19
pages/coupons/index.vue
Normal file
19
pages/coupons/index.vue
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
<template>
|
||||||
|
<view>
|
||||||
|
优惠券
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss">
|
||||||
|
|
||||||
|
</style>
|
||||||
19
pages/coupons/management.vue
Normal file
19
pages/coupons/management.vue
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
<template>
|
||||||
|
<view>
|
||||||
|
优惠券管理
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss">
|
||||||
|
|
||||||
|
</style>
|
||||||
193
pages/employees/add.vue
Normal file
193
pages/employees/add.vue
Normal file
@@ -0,0 +1,193 @@
|
|||||||
|
<template>
|
||||||
|
<view class="content">
|
||||||
|
<!-- 基础信息 -->
|
||||||
|
<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>
|
||||||
|
<!-- <image src="@/static/dev/good_cover_00.jpg" mode="aspectFill"></image> -->
|
||||||
|
</view>
|
||||||
|
<view class="info-text">
|
||||||
|
<view class="info-inputs">
|
||||||
|
<input type="text" v-model="name" placeholder="姓名"/>
|
||||||
|
</view>
|
||||||
|
<view class="info-inputs">
|
||||||
|
<input type="number" v-model="phone" placeholder="手机号码"/>
|
||||||
|
</view>
|
||||||
|
<view class="info-inputs">
|
||||||
|
<input type="text" v-model="job" placeholder="职业"/>
|
||||||
|
</view>
|
||||||
|
<view class="info-inputs">
|
||||||
|
<picker :range="section" range-key="name" @change="pickerChange">
|
||||||
|
<view class="picker-text">
|
||||||
|
{{section[sectionIndex].name}}
|
||||||
|
<uni-icons class="icon" type="arrowdown" color="#555"></uni-icons>
|
||||||
|
</view>
|
||||||
|
</picker>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<!-- 权限设置 -->
|
||||||
|
<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>
|
||||||
|
</view>
|
||||||
|
<!-- 按钮 -->
|
||||||
|
<view class="add-btns">
|
||||||
|
<button size="default">确认添加</button>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
section : [
|
||||||
|
{name: '技术部', id: 0},
|
||||||
|
{name: '市场部', id: 1},
|
||||||
|
{name: '南岗店', id: 2}
|
||||||
|
],
|
||||||
|
sectionIndex: 0,
|
||||||
|
name : '',
|
||||||
|
phone : '',
|
||||||
|
job : ''
|
||||||
|
};
|
||||||
|
},
|
||||||
|
methods:{
|
||||||
|
// 选择部门
|
||||||
|
pickerChange(e){
|
||||||
|
this.sectionIndex = e.detail.value
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.content{
|
||||||
|
min-height: 100vh;
|
||||||
|
@extend .ios-bottom;
|
||||||
|
.title{
|
||||||
|
padding: ($padding/2) $padding;
|
||||||
|
color: $text-gray;
|
||||||
|
}
|
||||||
|
.jurisdiction{
|
||||||
|
background: white;
|
||||||
|
.item{
|
||||||
|
position: relative;
|
||||||
|
padding: $padding 150rpx $padding $padding;
|
||||||
|
&::after{
|
||||||
|
position: absolute;
|
||||||
|
left: $padding;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
|
height: 1rpx;
|
||||||
|
content: " ";
|
||||||
|
background: $border-color;
|
||||||
|
}
|
||||||
|
&:last-child::after{
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.item-checkbox{
|
||||||
|
position: absolute;
|
||||||
|
right: $padding;
|
||||||
|
top: 50%;
|
||||||
|
height: 40rpx;
|
||||||
|
width: 40rpx;
|
||||||
|
margin-top: -27rpx;
|
||||||
|
}
|
||||||
|
.item-title{
|
||||||
|
font-size: $title-size;
|
||||||
|
padding-bottom: $margin/3;
|
||||||
|
}
|
||||||
|
.item-info{
|
||||||
|
font-size: $title-size-m;
|
||||||
|
color: $text-gray;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// 基础信息
|
||||||
|
.info-card{
|
||||||
|
background: white;
|
||||||
|
padding: $padding;
|
||||||
|
position: relative;
|
||||||
|
min-height: 238rpx;
|
||||||
|
.cover{
|
||||||
|
position: absolute;
|
||||||
|
top: $padding;
|
||||||
|
left: $padding;
|
||||||
|
background: #f8f8f8;
|
||||||
|
width: 229rpx;
|
||||||
|
height: 320rpx;
|
||||||
|
.cover-add{
|
||||||
|
position: absolute;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
text-align: center;
|
||||||
|
image{
|
||||||
|
width: 128rpx;
|
||||||
|
}
|
||||||
|
color: $text-gray-m;
|
||||||
|
font-size: $title-size-m;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.info-text{
|
||||||
|
padding-left: $padding + 229;
|
||||||
|
.info-inputs{
|
||||||
|
height: 80rpx;
|
||||||
|
line-height: 80rpx;
|
||||||
|
border-bottom: solid 1rpx $border-color;
|
||||||
|
input{
|
||||||
|
height: 80rpx;
|
||||||
|
}
|
||||||
|
.picker-text{
|
||||||
|
position: relative;
|
||||||
|
padding-right: 80rpx;
|
||||||
|
.icon{
|
||||||
|
position: absolute;
|
||||||
|
right: 0;
|
||||||
|
top: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// 添加按钮
|
||||||
|
.add-btns{
|
||||||
|
padding: $padding;
|
||||||
|
button[size='default']{
|
||||||
|
height: 90rpx;
|
||||||
|
line-height: 90rpx;
|
||||||
|
padding: 0;
|
||||||
|
margin: 0;
|
||||||
|
background: $text-price;
|
||||||
|
font-size: $title-size;
|
||||||
|
font-weight: bold;
|
||||||
|
color: white;
|
||||||
|
border-radius: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
108
pages/employees/list.vue
Normal file
108
pages/employees/list.vue
Normal file
@@ -0,0 +1,108 @@
|
|||||||
|
<template>
|
||||||
|
<view class="ios-bottom">
|
||||||
|
<uni-collapse>
|
||||||
|
<uni-collapse-item :show-animation="true" :open="true">
|
||||||
|
<template v-slot:title>
|
||||||
|
<view class="collapse-title">技术部</view>
|
||||||
|
</template>
|
||||||
|
<view class="employees-item" v-for="(item, index) in 10" :key="index">
|
||||||
|
<view class="cover">
|
||||||
|
<block v-if="index === 4">唐</block>
|
||||||
|
<block v-else>
|
||||||
|
<image class="cover-img" src="@/static/dev/good_cover_00.jpg" mode="aspectFill"></image>
|
||||||
|
</block>
|
||||||
|
</view>
|
||||||
|
<view class="content">
|
||||||
|
<view class="nickname nowrap">唐明明</view>
|
||||||
|
<view class="job nowrap">web前端开发</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</uni-collapse-item>
|
||||||
|
<uni-collapse-item :show-animation="true">
|
||||||
|
<template v-slot:title>
|
||||||
|
<view class="collapse-title">市场部</view>
|
||||||
|
</template>
|
||||||
|
<view class="employees-item" v-for="(item, index) in 5" :key="index">
|
||||||
|
<view class="cover">
|
||||||
|
<block v-if="index === 4">唐</block>
|
||||||
|
<block v-else>
|
||||||
|
<image class="cover-img" src="@/static/dev/good_cover_00.jpg" mode="aspectFill"></image>
|
||||||
|
</block>
|
||||||
|
</view>
|
||||||
|
<view class="content">
|
||||||
|
<view class="nickname">唐明明</view>
|
||||||
|
<view class="job">web前端开发</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</uni-collapse-item>
|
||||||
|
</uni-collapse>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {};
|
||||||
|
},
|
||||||
|
onNavigationBarButtonTap() {
|
||||||
|
this.$Router.push({name: 'addEmployees'})
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.collapse-title{
|
||||||
|
padding: 0 $padding;
|
||||||
|
line-height: 90rpx;
|
||||||
|
}
|
||||||
|
.employees-item {
|
||||||
|
background: white;
|
||||||
|
padding: ($padding - 10) $padding;
|
||||||
|
position: relative;
|
||||||
|
&::before {
|
||||||
|
position: absolute;
|
||||||
|
bottom: 0;
|
||||||
|
left: $padding + 98;
|
||||||
|
right: 0;
|
||||||
|
content: ' ';
|
||||||
|
height: 1rpx;
|
||||||
|
background: $border-color;
|
||||||
|
}
|
||||||
|
&:last-child::before {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.cover {
|
||||||
|
position: absolute;
|
||||||
|
top: $padding - 10;
|
||||||
|
left: $padding;
|
||||||
|
background: $text-price;
|
||||||
|
color: white;
|
||||||
|
height: 78rpx;
|
||||||
|
width: 78rpx;
|
||||||
|
line-height: 78rpx;
|
||||||
|
text-align: center;
|
||||||
|
border-radius: 50%;
|
||||||
|
overflow: hidden;
|
||||||
|
.cover-img {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.content {
|
||||||
|
height: 78rpx;
|
||||||
|
padding-left: 98rpx;
|
||||||
|
.nickname{
|
||||||
|
line-height: 48rpx;
|
||||||
|
font-size: $title-size;
|
||||||
|
}
|
||||||
|
.job{
|
||||||
|
line-height: 30rpx;
|
||||||
|
font-size: $title-size-sm;
|
||||||
|
color: $text-gray-m;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -190,10 +190,16 @@
|
|||||||
// 企业广场
|
// 企业广场
|
||||||
getCompanies(){
|
getCompanies(){
|
||||||
companies().then(res=>{
|
companies().then(res=>{
|
||||||
|
console.log(res)
|
||||||
this.recommendBus = res.positions
|
this.recommendBus = res.positions
|
||||||
this.hotBus = res.hot
|
this.hotBus = res.hot
|
||||||
this.industryBus = [{title: '全部',}, ...res.industries]
|
this.industryBus = [{title: '全部',}, ...res.industries]
|
||||||
this.getCompaniesList()
|
this.getCompaniesList()
|
||||||
|
}).catch(err => {
|
||||||
|
uni.showToast({
|
||||||
|
title: err.message,
|
||||||
|
icon : 'none'
|
||||||
|
})
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 企业列表
|
// 企业列表
|
||||||
|
|||||||
19
pages/goods/add.vue
Normal file
19
pages/goods/add.vue
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
<template>
|
||||||
|
<view>
|
||||||
|
添加权证
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss">
|
||||||
|
|
||||||
|
</style>
|
||||||
19
pages/goods/management.vue
Normal file
19
pages/goods/management.vue
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
<template>
|
||||||
|
<view>
|
||||||
|
权证管理
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss">
|
||||||
|
|
||||||
|
</style>
|
||||||
@@ -47,6 +47,7 @@
|
|||||||
mobileNo: this.phone,
|
mobileNo: this.phone,
|
||||||
code : this.code
|
code : this.code
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
|
console.log(res)
|
||||||
this.$store.commit('setToken', res.token_type + ' ' + res.access_token)
|
this.$store.commit('setToken', res.token_type + ' ' + res.access_token)
|
||||||
if(!res.is_company){
|
if(!res.is_company){
|
||||||
this.$Router.replace({name: "Registered"})
|
this.$Router.replace({name: "Registered"})
|
||||||
|
|||||||
@@ -59,8 +59,6 @@
|
|||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<!-- <uni-number-box :min="1" v-model="qty"></uni-number-box> -->
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { buy } from '@/apis/interfaces/order'
|
import { buy } from '@/apis/interfaces/order'
|
||||||
export default {
|
export default {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<view>
|
<view>
|
||||||
|
订单详情
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,17 @@
|
|||||||
<template>
|
<template>
|
||||||
<view>
|
<view>
|
||||||
|
<view class="tabs">
|
||||||
|
<view class="item show">待发货</view>
|
||||||
|
<view class="item">已发货</view>
|
||||||
|
<view class="item">待提货</view>
|
||||||
|
<view class="item">已提货</view>
|
||||||
|
</view>
|
||||||
|
<view class="orders">
|
||||||
|
<view class="item" v-for="(item, index) in 10" :key="index">
|
||||||
|
{{index}}
|
||||||
|
订单信息
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -8,15 +19,50 @@
|
|||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
type: ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
created() {
|
||||||
|
this.type = this.$Route.query.type
|
||||||
|
console.log(this.type)
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style lang="scss" scoped>
|
||||||
|
// tabs
|
||||||
|
.tabs{
|
||||||
|
position: fixed;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
z-index: 99;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-around;
|
||||||
|
background: #F8F8F8;
|
||||||
|
padding: 15rpx 0;
|
||||||
|
font-size: $title-size-lg;
|
||||||
|
color: $text-gray;
|
||||||
|
.item{
|
||||||
|
height: 60rpx;
|
||||||
|
line-height: 60rpx;
|
||||||
|
&.show{
|
||||||
|
color: $text-price;
|
||||||
|
border-bottom: solid 4rpx $text-price;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// 订单管理
|
||||||
|
.orders{
|
||||||
|
padding-top: 90rpx;
|
||||||
|
.item{
|
||||||
|
background: white;
|
||||||
|
margin: ($margin - 10) $margin;
|
||||||
|
border-radius: $radius;
|
||||||
|
padding: $padding;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<view>
|
<view>
|
||||||
员工
|
售后
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -1,27 +1,155 @@
|
|||||||
<template>
|
<template>
|
||||||
<view>
|
<view>
|
||||||
<view class="androidwx">
|
<!-- 用户信息 -->
|
||||||
321312
|
<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="androidwx">
|
|
||||||
321312
|
|
||||||
</view>
|
</view>
|
||||||
<view class="androidwx">
|
<view class="user-sign">签到</view>
|
||||||
321312
|
|
||||||
</view>
|
</view>
|
||||||
<view class="androidwx">
|
<view class="user-total">
|
||||||
321312
|
<view class="total-item">
|
||||||
|
<view class="total-number">0</view>
|
||||||
|
<view class="total-text">商品收藏</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="androidwx">
|
<view class="total-item">
|
||||||
321312
|
<view class="total-number">0</view>
|
||||||
|
<view class="total-text">店铺收藏</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="androidwx">
|
<view class="total-item">
|
||||||
321312
|
<view class="total-number">0</view>
|
||||||
|
<view class="total-text">浏览记录</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="androidwx">
|
<view class="total-item">
|
||||||
321312
|
<view class="total-number">0</view>
|
||||||
|
<view class="total-text">优惠券</view>
|
||||||
</view>
|
</view>
|
||||||
<button type="default" @click="onOut">退出登录</button>
|
</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>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -33,10 +161,192 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
onOut(){
|
|
||||||
this.$store.commit('setToken', '')
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</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>
|
||||||
|
|||||||
@@ -32,7 +32,7 @@
|
|||||||
<view class="name">{{company.name}}</view>
|
<view class="name">{{company.name}}</view>
|
||||||
<view class="faith">诚信{{company.faith}}</view>
|
<view class="faith">诚信{{company.faith}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="btn">{{company.identity}}</view>
|
<view class="btn" @click="$Router.push({name: 'Vip'})">{{company.identity}}</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<!-- 老板 -->
|
<!-- 老板 -->
|
||||||
|
|||||||
19
pages/verification/details.vue
Normal file
19
pages/verification/details.vue
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
<template>
|
||||||
|
<view>
|
||||||
|
核销详情
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss">
|
||||||
|
|
||||||
|
</style>
|
||||||
19
pages/verification/index.vue
Normal file
19
pages/verification/index.vue
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
<template>
|
||||||
|
<view>
|
||||||
|
优惠券核销
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss">
|
||||||
|
|
||||||
|
</style>
|
||||||
@@ -60,6 +60,7 @@ class userAuth {
|
|||||||
uni.preLogin({
|
uni.preLogin({
|
||||||
provider: 'univerify',
|
provider: 'univerify',
|
||||||
success : res=> {
|
success : res=> {
|
||||||
|
console.log(2222)
|
||||||
this.keyLogin().then(() => {
|
this.keyLogin().then(() => {
|
||||||
resolve({
|
resolve({
|
||||||
auth: true
|
auth: true
|
||||||
@@ -79,6 +80,7 @@ class userAuth {
|
|||||||
}
|
}
|
||||||
// 一键登录
|
// 一键登录
|
||||||
keyLogin(){
|
keyLogin(){
|
||||||
|
console.log(denglu)
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
uni.login({
|
uni.login({
|
||||||
provider : 'univerify',
|
provider : 'univerify',
|
||||||
|
|||||||
27
uni_modules/uni-collapse/changelog.md
Normal file
27
uni_modules/uni-collapse/changelog.md
Normal file
@@ -0,0 +1,27 @@
|
|||||||
|
## 1.3.3(2021-08-17)
|
||||||
|
- 优化 show-arrow 属性默认为true
|
||||||
|
## 1.3.2(2021-08-17)
|
||||||
|
- 新增 show-arrow 属性,控制是否显示右侧箭头
|
||||||
|
## 1.3.1(2021-07-30)
|
||||||
|
- 优化 vue3下小程序事件警告的问题
|
||||||
|
## 1.3.0(2021-07-30)
|
||||||
|
- 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834)
|
||||||
|
## 1.2.2(2021-07-21)
|
||||||
|
- 修复 由1.2.0版本引起的 change 事件返回 undefined 的Bug
|
||||||
|
## 1.2.1(2021-07-21)
|
||||||
|
- 优化 组件示例
|
||||||
|
## 1.2.0(2021-07-21)
|
||||||
|
- 新增 组件折叠动画
|
||||||
|
- 新增 value\v-model 属性 ,动态修改面板折叠状态
|
||||||
|
- 新增 title 插槽 ,可定义面板标题
|
||||||
|
- 新增 border 属性 ,显示隐藏面板内容分隔线
|
||||||
|
- 新增 title-border 属性 ,显示隐藏面板标题分隔线
|
||||||
|
- 修复 resize 方法失效的Bug
|
||||||
|
- 修复 change 事件返回参数不正确的Bug
|
||||||
|
- 优化 H5、App 平台自动更具内容更新高度,无需调用 reszie() 方法
|
||||||
|
## 1.1.7(2021-05-12)
|
||||||
|
- 新增 组件示例地址
|
||||||
|
## 1.1.6(2021-02-05)
|
||||||
|
- 优化 组件引用关系,通过uni_modules引用组件
|
||||||
|
## 1.1.5(2021-02-05)
|
||||||
|
- 调整为uni_modules目录规范
|
||||||
@@ -0,0 +1,402 @@
|
|||||||
|
<template>
|
||||||
|
<view class="uni-collapse-item">
|
||||||
|
<!-- onClick(!isOpen) -->
|
||||||
|
<view @click="onClick(!isOpen)" class="uni-collapse-item__title"
|
||||||
|
:class="{'is-open':isOpen &&titleBorder === 'auto' ,'uni-collapse-item-border':titleBorder !== 'none'}">
|
||||||
|
<view class="uni-collapse-item__title-wrap">
|
||||||
|
<slot name="title">
|
||||||
|
<view class="uni-collapse-item__title-box" :class="{'is-disabled':disabled}">
|
||||||
|
<image v-if="thumb" :src="thumb" class="uni-collapse-item__title-img" />
|
||||||
|
<text class="uni-collapse-item__title-text">{{ title }}</text>
|
||||||
|
</view>
|
||||||
|
</slot>
|
||||||
|
</view>
|
||||||
|
<view
|
||||||
|
v-if="showArrow"
|
||||||
|
:class="{ 'uni-collapse-item__title-arrow-active': isOpen, 'uni-collapse-item--animation': showAnimation === true }"
|
||||||
|
class="uni-collapse-item__title-arrow">
|
||||||
|
<uni-icons :color="disabled?'#ddd':'#bbb'" size="14" type="arrowdown" />
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="uni-collapse-item__wrap" :class="{'is--transition':showAnimation}"
|
||||||
|
:style="{height: (isOpen?height:0) +'px'}">
|
||||||
|
<view :id="elId" ref="collapse--hook" class="uni-collapse-item__wrap-content"
|
||||||
|
:class="{open:isheight,'uni-collapse-item--border':border&&isOpen}">
|
||||||
|
<slot></slot>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
// #ifdef APP-NVUE
|
||||||
|
const dom = weex.requireModule('dom')
|
||||||
|
// #endif
|
||||||
|
/**
|
||||||
|
* CollapseItem 折叠面板子组件
|
||||||
|
* @description 折叠面板子组件
|
||||||
|
* @property {String} title 标题文字
|
||||||
|
* @property {String} thumb 标题左侧缩略图
|
||||||
|
* @property {String} name 唯一标志符
|
||||||
|
* @property {Boolean} open = [true|false] 是否展开组件
|
||||||
|
* @property {Boolean} titleBorder = [true|false] 是否显示标题分隔线
|
||||||
|
* @property {Boolean} border = [true|false] 是否显示分隔线
|
||||||
|
* @property {Boolean} disabled = [true|false] 是否展开面板
|
||||||
|
* @property {Boolean} showAnimation = [true|false] 开启动画
|
||||||
|
* @property {Boolean} showArrow = [true|false] 是否显示右侧箭头
|
||||||
|
*/
|
||||||
|
export default {
|
||||||
|
name: 'uniCollapseItem',
|
||||||
|
props: {
|
||||||
|
// 列表标题
|
||||||
|
title: {
|
||||||
|
type: String,
|
||||||
|
default: ''
|
||||||
|
},
|
||||||
|
name: {
|
||||||
|
type: [Number, String],
|
||||||
|
default: ''
|
||||||
|
},
|
||||||
|
// 是否禁用
|
||||||
|
disabled: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false
|
||||||
|
},
|
||||||
|
// #ifdef APP-PLUS
|
||||||
|
// 是否显示动画,app 端默认不开启动画,卡顿严重
|
||||||
|
showAnimation: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false
|
||||||
|
},
|
||||||
|
// #endif
|
||||||
|
// #ifndef APP-PLUS
|
||||||
|
// 是否显示动画
|
||||||
|
showAnimation: {
|
||||||
|
type: Boolean,
|
||||||
|
default: true
|
||||||
|
},
|
||||||
|
// #endif
|
||||||
|
// 是否展开
|
||||||
|
open: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false
|
||||||
|
},
|
||||||
|
// 缩略图
|
||||||
|
thumb: {
|
||||||
|
type: String,
|
||||||
|
default: ''
|
||||||
|
},
|
||||||
|
// 标题分隔线显示类型
|
||||||
|
titleBorder: {
|
||||||
|
type: String,
|
||||||
|
default: 'auto'
|
||||||
|
},
|
||||||
|
border: {
|
||||||
|
type: Boolean,
|
||||||
|
default: true
|
||||||
|
},
|
||||||
|
showArrow:{
|
||||||
|
type: Boolean,
|
||||||
|
default: true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
// TODO 随机生生元素ID,解决百度小程序获取同一个元素位置信息的bug
|
||||||
|
const elId = `Uni_${Math.ceil(Math.random() * 10e5).toString(36)}`
|
||||||
|
return {
|
||||||
|
isOpen: false,
|
||||||
|
isheight: null,
|
||||||
|
height: 0,
|
||||||
|
elId,
|
||||||
|
nameSync: 0
|
||||||
|
}
|
||||||
|
},
|
||||||
|
watch: {
|
||||||
|
open(val) {
|
||||||
|
this.isOpen = val
|
||||||
|
this.onClick(val,'init')
|
||||||
|
}
|
||||||
|
},
|
||||||
|
updated(e) {
|
||||||
|
this.$nextTick(()=> {
|
||||||
|
this.init(true)
|
||||||
|
})
|
||||||
|
},
|
||||||
|
created(){
|
||||||
|
this.collapse = this.getCollapse()
|
||||||
|
this.oldHeight = 0
|
||||||
|
},
|
||||||
|
// #ifndef VUE3
|
||||||
|
// TODO vue2
|
||||||
|
destroyed() {
|
||||||
|
if (this.__isUnmounted) return
|
||||||
|
this.uninstall()
|
||||||
|
},
|
||||||
|
// #endif
|
||||||
|
// #ifdef VUE3
|
||||||
|
// TODO vue3
|
||||||
|
unmounted() {
|
||||||
|
this.__isUnmounted = true
|
||||||
|
this.uninstall()
|
||||||
|
},
|
||||||
|
// #endif
|
||||||
|
mounted() {
|
||||||
|
if (!this.collapse) return
|
||||||
|
if (this.name !== '') {
|
||||||
|
this.nameSync = this.name
|
||||||
|
} else {
|
||||||
|
this.nameSync = this.collapse.childrens.length + ''
|
||||||
|
}
|
||||||
|
if (this.collapse.names.indexOf(this.nameSync) === -1) {
|
||||||
|
this.collapse.names.push(this.nameSync)
|
||||||
|
} else {
|
||||||
|
console.warn(`name 值 ${this.nameSync} 重复`);
|
||||||
|
}
|
||||||
|
if (this.collapse.childrens.indexOf(this) === -1) {
|
||||||
|
this.collapse.childrens.push(this)
|
||||||
|
}
|
||||||
|
this.init()
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
init(type) {
|
||||||
|
// #ifndef APP-NVUE
|
||||||
|
this.getCollapseHeight(type)
|
||||||
|
// #endif
|
||||||
|
// #ifdef APP-NVUE
|
||||||
|
this.getNvueHwight(type)
|
||||||
|
// #endif
|
||||||
|
},
|
||||||
|
uninstall() {
|
||||||
|
if (this.collapse) {
|
||||||
|
this.collapse.childrens.forEach((item, index) => {
|
||||||
|
if (item === this) {
|
||||||
|
this.collapse.childrens.splice(index, 1)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
this.collapse.names.forEach((item, index) => {
|
||||||
|
if (item === this.nameSync) {
|
||||||
|
this.collapse.names.splice(index, 1)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
},
|
||||||
|
onClick(isOpen,type) {
|
||||||
|
if (this.disabled) return
|
||||||
|
this.isOpen = isOpen
|
||||||
|
if (this.isOpen && this.collapse) {
|
||||||
|
this.collapse.setAccordion(this)
|
||||||
|
}
|
||||||
|
if(type !== 'init'){
|
||||||
|
this.collapse.onChange(isOpen,this)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
getCollapseHeight(type, index = 0) {
|
||||||
|
const views = uni.createSelectorQuery().in(this)
|
||||||
|
views
|
||||||
|
.select(`#${this.elId}`)
|
||||||
|
.fields({
|
||||||
|
size: true
|
||||||
|
}, data => {
|
||||||
|
// TODO 百度中可能获取不到节点信息 ,需要循环获取
|
||||||
|
if (index >= 10) return
|
||||||
|
if (!data) {
|
||||||
|
index++
|
||||||
|
this.getCollapseHeight(false, index)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
// #ifdef APP-NVUE
|
||||||
|
this.height = data.height + 1
|
||||||
|
// #endif
|
||||||
|
// #ifndef APP-NVUE
|
||||||
|
this.height = data.height
|
||||||
|
// #endif
|
||||||
|
this.isheight = true
|
||||||
|
if (type) return
|
||||||
|
this.onClick(this.open,'init')
|
||||||
|
})
|
||||||
|
.exec()
|
||||||
|
},
|
||||||
|
getNvueHwight(type) {
|
||||||
|
const result = dom.getComponentRect(this.$refs['collapse--hook'], option => {
|
||||||
|
if (option && option.result && option.size) {
|
||||||
|
// #ifdef APP-NVUE
|
||||||
|
this.height = option.size.height + 1
|
||||||
|
// #endif
|
||||||
|
// #ifndef APP-NVUE
|
||||||
|
this.height = option.size.height
|
||||||
|
// #endif
|
||||||
|
this.isheight = true
|
||||||
|
if (type) return
|
||||||
|
this.onClick(this.open,'init')
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
/**
|
||||||
|
* 获取父元素实例
|
||||||
|
*/
|
||||||
|
getCollapse(name = 'uniCollapse') {
|
||||||
|
let parent = this.$parent;
|
||||||
|
let parentName = parent.$options.name;
|
||||||
|
while (parentName !== name) {
|
||||||
|
parent = parent.$parent;
|
||||||
|
if (!parent) return false;
|
||||||
|
parentName = parent.$options.name;
|
||||||
|
}
|
||||||
|
return parent;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.uni-collapse-item {
|
||||||
|
/* #ifndef APP-NVUE */
|
||||||
|
box-sizing: border-box;
|
||||||
|
|
||||||
|
/* #endif */
|
||||||
|
&__title {
|
||||||
|
/* #ifndef APP-NVUE */
|
||||||
|
display: flex;
|
||||||
|
width: 100%;
|
||||||
|
box-sizing: border-box;
|
||||||
|
/* #endif */
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: center;
|
||||||
|
transition: border-bottom-color .3s;
|
||||||
|
|
||||||
|
// transition-property: border-bottom-color;
|
||||||
|
// transition-duration: 5s;
|
||||||
|
&-wrap {
|
||||||
|
width: 100%;
|
||||||
|
flex: 1;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
&-box {
|
||||||
|
padding: 0 15px;
|
||||||
|
/* #ifndef APP-NVUE */
|
||||||
|
display: flex;
|
||||||
|
width: 100%;
|
||||||
|
box-sizing: border-box;
|
||||||
|
/* #endif */
|
||||||
|
flex-direction: row;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
height: 48px;
|
||||||
|
line-height: 48px;
|
||||||
|
background-color: #fff;
|
||||||
|
color: #303133;
|
||||||
|
font-size: 13px;
|
||||||
|
font-weight: 500;
|
||||||
|
/* #ifdef H5 */
|
||||||
|
cursor: pointer;
|
||||||
|
outline: none;
|
||||||
|
|
||||||
|
/* #endif */
|
||||||
|
&.is-disabled {
|
||||||
|
.uni-collapse-item__title-text {
|
||||||
|
color: $uni-text-color-disable;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
&.uni-collapse-item-border {
|
||||||
|
border-bottom: 1px solid #ebeef5;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.is-open {
|
||||||
|
border-bottom-color: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
&-img {
|
||||||
|
height: $uni-img-size-base;
|
||||||
|
width: $uni-img-size-base;
|
||||||
|
margin-right: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&-text {
|
||||||
|
flex: 1;
|
||||||
|
font-size: $uni-font-size-base;
|
||||||
|
/* #ifndef APP-NVUE */
|
||||||
|
white-space: nowrap;
|
||||||
|
color: inherit;
|
||||||
|
/* #endif */
|
||||||
|
/* #ifdef APP-NVUE */
|
||||||
|
lines: 1;
|
||||||
|
/* #endif */
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
|
|
||||||
|
&-arrow {
|
||||||
|
/* #ifndef APP-NVUE */
|
||||||
|
display: flex;
|
||||||
|
box-sizing: border-box;
|
||||||
|
/* #endif */
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
width: 20px;
|
||||||
|
height: 20px;
|
||||||
|
margin-right: 10px;
|
||||||
|
transform: rotate(0deg);
|
||||||
|
|
||||||
|
&-active {
|
||||||
|
transform: rotate(180deg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
&__wrap {
|
||||||
|
/* #ifndef APP-NVUE */
|
||||||
|
will-change: height;
|
||||||
|
box-sizing: border-box;
|
||||||
|
/* #endif */
|
||||||
|
background-color: #fff;
|
||||||
|
overflow: hidden;
|
||||||
|
position: relative;
|
||||||
|
height: 0;
|
||||||
|
|
||||||
|
&.is--transition {
|
||||||
|
// transition: all 0.3s;
|
||||||
|
transition-property: height, border-bottom-width;
|
||||||
|
transition-duration: 0.3s;
|
||||||
|
/* #ifndef APP-NVUE */
|
||||||
|
will-change: height;
|
||||||
|
/* #endif */
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
&-content {
|
||||||
|
position: absolute;
|
||||||
|
font-size: 13px;
|
||||||
|
color: #303133;
|
||||||
|
// transition: height 0.3s;
|
||||||
|
border-bottom-color: transparent;
|
||||||
|
border-bottom-style: solid;
|
||||||
|
border-bottom-width: 0;
|
||||||
|
|
||||||
|
&.uni-collapse-item--border {
|
||||||
|
border-bottom-width: 1px;
|
||||||
|
border-bottom-color: red;
|
||||||
|
border-bottom-color: #ebeef5;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.open {
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&--animation {
|
||||||
|
transition-property: transform;
|
||||||
|
transition-duration: 0.3s;
|
||||||
|
transition-timing-function: ease;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -0,0 +1,146 @@
|
|||||||
|
<template>
|
||||||
|
<view class="uni-collapse">
|
||||||
|
<slot />
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
<script>
|
||||||
|
/**
|
||||||
|
* Collapse 折叠面板
|
||||||
|
* @description 展示可以折叠 / 展开的内容区域
|
||||||
|
* @tutorial https://ext.dcloud.net.cn/plugin?id=23
|
||||||
|
* @property {String|Array} value 当前激活面板改变时触发(如果是手风琴模式,参数类型为string,否则为array)
|
||||||
|
* @property {Boolean} accordion = [true|false] 是否开启手风琴效果是否开启手风琴效果
|
||||||
|
* @event {Function} change 切换面板时触发,如果是手风琴模式,返回类型为string,否则为array
|
||||||
|
*/
|
||||||
|
export default {
|
||||||
|
name: 'uniCollapse',
|
||||||
|
emits:['change','activeItem','input','update:modelValue'],
|
||||||
|
props: {
|
||||||
|
value: {
|
||||||
|
type: [String, Array],
|
||||||
|
default: ''
|
||||||
|
},
|
||||||
|
modelValue: {
|
||||||
|
type: [String, Array],
|
||||||
|
default: ''
|
||||||
|
},
|
||||||
|
accordion: {
|
||||||
|
// 是否开启手风琴效果
|
||||||
|
type: [Boolean, String],
|
||||||
|
default: false
|
||||||
|
},
|
||||||
|
},
|
||||||
|
data() {
|
||||||
|
return {}
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
// TODO 兼容 vue2 和 vue3
|
||||||
|
dataValue() {
|
||||||
|
let value = (typeof this.value === 'string' && this.value === '') ||
|
||||||
|
(Array.isArray(this.value) && this.value.length === 0)
|
||||||
|
let modelValue = (typeof this.modelValue === 'string' && this.modelValue === '') ||
|
||||||
|
(Array.isArray(this.modelValue) && this.modelValue.length === 0)
|
||||||
|
if (value) {
|
||||||
|
return this.modelValue
|
||||||
|
}
|
||||||
|
if (modelValue) {
|
||||||
|
return this.value
|
||||||
|
}
|
||||||
|
|
||||||
|
return this.value
|
||||||
|
}
|
||||||
|
},
|
||||||
|
watch: {
|
||||||
|
dataValue(val) {
|
||||||
|
this.setOpen(val)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.childrens = []
|
||||||
|
this.names = []
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
this.setOpen(this.dataValue)
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
setOpen(val) {
|
||||||
|
let str = typeof val === 'string'
|
||||||
|
let arr = Array.isArray(val)
|
||||||
|
|
||||||
|
this.childrens.forEach((vm, index) => {
|
||||||
|
if (str) {
|
||||||
|
if (val === vm.nameSync) {
|
||||||
|
if (!this.accordion) {
|
||||||
|
console.warn('accordion 属性为 false ,v-model 类型应该为 array')
|
||||||
|
return
|
||||||
|
}
|
||||||
|
vm.isOpen = true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (arr) {
|
||||||
|
val.forEach(v => {
|
||||||
|
if (v === vm.nameSync) {
|
||||||
|
if (this.accordion) {
|
||||||
|
console.warn('accordion 属性为 true ,v-model 类型应该为 string')
|
||||||
|
return
|
||||||
|
}
|
||||||
|
vm.isOpen = true
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
this.emit(val)
|
||||||
|
},
|
||||||
|
setAccordion(self) {
|
||||||
|
if (!this.accordion) return
|
||||||
|
this.childrens.forEach((vm, index) => {
|
||||||
|
if (self !== vm) {
|
||||||
|
vm.isOpen = false
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
resize() {
|
||||||
|
this.childrens.forEach((vm, index) => {
|
||||||
|
// #ifndef APP-NVUE
|
||||||
|
vm.getCollapseHeight()
|
||||||
|
// #endif
|
||||||
|
// #ifdef APP-NVUE
|
||||||
|
vm.getNvueHwight()
|
||||||
|
// #endif
|
||||||
|
})
|
||||||
|
},
|
||||||
|
onChange(isOpen, self) {
|
||||||
|
let activeItem = []
|
||||||
|
|
||||||
|
if (this.accordion) {
|
||||||
|
activeItem = isOpen ? self.nameSync : ''
|
||||||
|
} else {
|
||||||
|
this.childrens.forEach((vm, index) => {
|
||||||
|
if (vm.isOpen) {
|
||||||
|
activeItem.push(vm.nameSync)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
this.$emit('change', activeItem)
|
||||||
|
this.emit(activeItem)
|
||||||
|
},
|
||||||
|
emit(val){
|
||||||
|
this.$emit('input', val)
|
||||||
|
this.$emit('update:modelValue', val)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.uni-collapse {
|
||||||
|
/* #ifndef APP-NVUE */
|
||||||
|
width: 100%;
|
||||||
|
display: flex;
|
||||||
|
/* #endif */
|
||||||
|
/* #ifdef APP-NVUE */
|
||||||
|
flex: 1;
|
||||||
|
/* #endif */
|
||||||
|
flex-direction: column;
|
||||||
|
background-color: $uni-bg-color;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
88
uni_modules/uni-collapse/package.json
Normal file
88
uni_modules/uni-collapse/package.json
Normal file
@@ -0,0 +1,88 @@
|
|||||||
|
{
|
||||||
|
"id": "uni-collapse",
|
||||||
|
"displayName": "uni-collapse 折叠面板",
|
||||||
|
"version": "1.3.3",
|
||||||
|
"description": "Collapse 组件,可以折叠 / 展开的内容区域。",
|
||||||
|
"keywords": [
|
||||||
|
"uni-ui",
|
||||||
|
"折叠",
|
||||||
|
"折叠面板",
|
||||||
|
"手风琴"
|
||||||
|
],
|
||||||
|
"repository": "https://github.com/dcloudio/uni-ui",
|
||||||
|
"engines": {
|
||||||
|
"HBuilderX": ""
|
||||||
|
},
|
||||||
|
"directories": {
|
||||||
|
"example": "../../temps/example_temps"
|
||||||
|
},
|
||||||
|
"dcloudext": {
|
||||||
|
"category": [
|
||||||
|
"前端组件",
|
||||||
|
"通用组件"
|
||||||
|
],
|
||||||
|
"sale": {
|
||||||
|
"regular": {
|
||||||
|
"price": "0.00"
|
||||||
|
},
|
||||||
|
"sourcecode": {
|
||||||
|
"price": "0.00"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"contact": {
|
||||||
|
"qq": ""
|
||||||
|
},
|
||||||
|
"declaration": {
|
||||||
|
"ads": "无",
|
||||||
|
"data": "无",
|
||||||
|
"permissions": "无"
|
||||||
|
},
|
||||||
|
"npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui"
|
||||||
|
},
|
||||||
|
"uni_modules": {
|
||||||
|
"dependencies": [
|
||||||
|
"uni-icons"
|
||||||
|
],
|
||||||
|
"encrypt": [],
|
||||||
|
"platforms": {
|
||||||
|
"cloud": {
|
||||||
|
"tcb": "y",
|
||||||
|
"aliyun": "y"
|
||||||
|
},
|
||||||
|
"client": {
|
||||||
|
"App": {
|
||||||
|
"app-vue": "y",
|
||||||
|
"app-nvue": "y"
|
||||||
|
},
|
||||||
|
"H5-mobile": {
|
||||||
|
"Safari": "y",
|
||||||
|
"Android Browser": "y",
|
||||||
|
"微信浏览器(Android)": "y",
|
||||||
|
"QQ浏览器(Android)": "y"
|
||||||
|
},
|
||||||
|
"H5-pc": {
|
||||||
|
"Chrome": "y",
|
||||||
|
"IE": "y",
|
||||||
|
"Edge": "y",
|
||||||
|
"Firefox": "y",
|
||||||
|
"Safari": "y"
|
||||||
|
},
|
||||||
|
"小程序": {
|
||||||
|
"微信": "y",
|
||||||
|
"阿里": "y",
|
||||||
|
"百度": "y",
|
||||||
|
"字节跳动": "y",
|
||||||
|
"QQ": "y"
|
||||||
|
},
|
||||||
|
"快应用": {
|
||||||
|
"华为": "u",
|
||||||
|
"联盟": "u"
|
||||||
|
},
|
||||||
|
"Vue": {
|
||||||
|
"vue2": "y",
|
||||||
|
"vue3": "u"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
276
uni_modules/uni-collapse/readme.md
Normal file
276
uni_modules/uni-collapse/readme.md
Normal file
@@ -0,0 +1,276 @@
|
|||||||
|
|
||||||
|
|
||||||
|
## Collapse 折叠面板
|
||||||
|
> **组件名:uni-collapse**
|
||||||
|
> 代码块: `uCollapse`
|
||||||
|
> 关联组件:`uni-collapse-item`、`uni-icons`。
|
||||||
|
|
||||||
|
|
||||||
|
折叠面板用来折叠/显示过长的内容或者是列表。通常是在多内容分类项使用,折叠不重要的内容,显示重要内容。点击可以展开折叠部分。
|
||||||
|
|
||||||
|
> **注意事项**
|
||||||
|
> 为了避免错误使用,给大家带来不好的开发体验,请在使用组件前仔细阅读下面的注意事项,可以帮你避免一些错误。
|
||||||
|
> - 组件需要依赖 `sass` 插件 ,请自行手动安装
|
||||||
|
> - `App` 端默认关闭组件动画 ,因为 `height` 动画开销比较大,会导致页面卡顿,请酌情使用动画
|
||||||
|
> - 如在使用组件过程从发现卡顿严重,请尝试停用组件动画,问题原因如上
|
||||||
|
> - 在小程序端组件内容发生变化,需要手动调用 resize() 方法,手动更新几点信息,避免出现内容错位
|
||||||
|
> - 如需自定义组件默认边框颜色等,请使用插槽自定义内容并合理使用 `border ` 和 `title-border` 属性
|
||||||
|
> - 折叠面板仅支持嵌套使用,请勿单独使用
|
||||||
|
> - 组件支持 nvue ,需要在 `manifest.json > app-plus` 节点下配置 `"nvueStyleCompiler" : "uni-app"`
|
||||||
|
> - 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839
|
||||||
|
|
||||||
|
|
||||||
|
### 安装方式
|
||||||
|
|
||||||
|
本组件符合[easycom](https://uniapp.dcloud.io/collocation/pages?id=easycom)规范,`HBuilderX 2.5.5`起,只需将本组件导入项目,在页面`template`中即可直接使用,无需在页面中`import`和注册`components`。
|
||||||
|
|
||||||
|
如需通过`npm`方式使用`uni-ui`组件,另见文档:[https://ext.dcloud.net.cn/plugin?id=55](https://ext.dcloud.net.cn/plugin?id=55)
|
||||||
|
|
||||||
|
|
||||||
|
### 基本用法
|
||||||
|
|
||||||
|
使用 `title` 属性指定面板显示内容
|
||||||
|
|
||||||
|
使用 `open` 属性默认打开当前面板
|
||||||
|
|
||||||
|
使用 `disabled` 属性禁用面板
|
||||||
|
|
||||||
|
|
||||||
|
```html
|
||||||
|
<uni-collapse>
|
||||||
|
<uni-collapse-item title="默认开启" :open="true">
|
||||||
|
<text>折叠内容</text>
|
||||||
|
</uni-collapse-item>
|
||||||
|
<uni-collapse-item title="折叠内容">
|
||||||
|
<text>折叠内容</text>
|
||||||
|
</uni-collapse-item>
|
||||||
|
<uni-collapse-item title="禁用状态" disabled>
|
||||||
|
<text>折叠内容</text>
|
||||||
|
</uni-collapse-item>
|
||||||
|
</uni-collapse>
|
||||||
|
```
|
||||||
|
|
||||||
|
### 手风琴效果
|
||||||
|
|
||||||
|
使用 `accordion` 属性,可以仅打开一个面板并关闭其他已经打开的面板,效果类似手风琴
|
||||||
|
|
||||||
|
设置 `accordion` 属性时,`open` 属性则生效在最后一个组件
|
||||||
|
|
||||||
|
```html
|
||||||
|
<uni-collapse accordion>
|
||||||
|
<uni-collapse-item title="手风琴效果">
|
||||||
|
<text>折叠内容</text>
|
||||||
|
</uni-collapse-item>
|
||||||
|
<uni-collapse-item title="手风琴效果">
|
||||||
|
<text>折叠内容</text>
|
||||||
|
</uni-collapse-item>
|
||||||
|
<uni-collapse-item title="禁用状态" disabled>
|
||||||
|
<text>折叠内容</text>
|
||||||
|
</uni-collapse-item>
|
||||||
|
</uni-collapse>
|
||||||
|
```
|
||||||
|
|
||||||
|
### 动态设置折叠面板打开状态
|
||||||
|
|
||||||
|
使用 `v-model` 属性,动态设置面板的显示状态
|
||||||
|
|
||||||
|
使用 `name` 属性设置每个面板的唯一标识,如不设置使用默认索引,从字符串 `"0"` 开始记数
|
||||||
|
|
||||||
|
**注意**
|
||||||
|
|
||||||
|
- 如果 `accordion` 属性为 `true` 则 `v-model` 类型为 `String`
|
||||||
|
- 如果 `accordion` 属性为 `false` 则 `v-model` 类型为 `Array`
|
||||||
|
- 请注意 `v-model` 属性与 `open` 属性请勿一起使用 ,建议只使用 `v-model`
|
||||||
|
|
||||||
|
```html
|
||||||
|
<uni-collapse v-model="value">
|
||||||
|
<uni-collapse-item name="key1" title="默认开启">
|
||||||
|
<text>折叠内容</text>
|
||||||
|
</uni-collapse-item>
|
||||||
|
<uni-collapse-item name="key2" title="默认开启">
|
||||||
|
<text>折叠内容</text>
|
||||||
|
</uni-collapse-item>
|
||||||
|
<uni-collapse-item name="key3" title="默认不开启">
|
||||||
|
<text>折叠内容</text>
|
||||||
|
</uni-collapse-item>
|
||||||
|
</uni-collapse>
|
||||||
|
```
|
||||||
|
|
||||||
|
```javascript
|
||||||
|
export default {
|
||||||
|
data(){
|
||||||
|
return {
|
||||||
|
value:['key1','key2'],
|
||||||
|
// 如果设置了 accordion 属性,则使用 string 类型
|
||||||
|
// value:'key1'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
### 使用动画
|
||||||
|
|
||||||
|
使用 `show-animation` 属性开启或关闭面板折叠动画,默认动画开启
|
||||||
|
|
||||||
|
**注意**
|
||||||
|
|
||||||
|
- `App` 端默认关闭组件动画 ,因为 height 动画开销比较大,会导致页面卡顿,请酌情使用动画,如出现明显卡顿,尝试关闭动画
|
||||||
|
|
||||||
|
|
||||||
|
```html
|
||||||
|
<uni-collapse>
|
||||||
|
<uni-collapse-item :show-animation="true" title="开启动画">
|
||||||
|
<text>折叠内容</text>
|
||||||
|
</uni-collapse-item>
|
||||||
|
<uni-collapse-item :show-animation="true" title="开启动画">
|
||||||
|
<text>折叠内容</text>
|
||||||
|
</uni-collapse-item>
|
||||||
|
<uni-collapse-item :show-animation="false" title="不开启动画">
|
||||||
|
<text>折叠内容</text>
|
||||||
|
</uni-collapse-item>
|
||||||
|
</uni-collapse>
|
||||||
|
```
|
||||||
|
|
||||||
|
### 配置图片
|
||||||
|
|
||||||
|
使用 `thumb` 配置图片地址, 可在面板左侧显示一个图片
|
||||||
|
|
||||||
|
如需显示更多内容,如图标等,请见下方自定义插槽的说明
|
||||||
|
|
||||||
|
```html
|
||||||
|
<uni-collapse>
|
||||||
|
<uni-collapse-item title="标题文字"
|
||||||
|
thumb="https://vkceyugu.cdn.bspapp.com/VKCEYUGU-dc-site/460d46d0-4fcc-11eb-8ff1-d5dcf8779628.png">
|
||||||
|
<view class="content">
|
||||||
|
<text class="text">折叠内容主体,可自定义内容及样式</text>
|
||||||
|
</view>
|
||||||
|
</uni-collapse-item>
|
||||||
|
</uni-collapse>
|
||||||
|
```
|
||||||
|
|
||||||
|
### 自定义插槽
|
||||||
|
|
||||||
|
如果需要自定义面板显示,可以使用 `title` 插槽达成完全自定义。下面是一个使用 `uni-list` 的列表示例,需要引入 `uni-list` 组件
|
||||||
|
|
||||||
|
```html
|
||||||
|
<uni-collapse>
|
||||||
|
<!-- 因为list默认带一条分隔线,所以使用 titleBorder="none" 取消面板的分隔线 -->
|
||||||
|
<uni-collapse-item title-border="none" :border="false">
|
||||||
|
<template v-slot:title>
|
||||||
|
<uni-list>
|
||||||
|
<uni-list-item title="标题使用自定义标题插槽" :show-extra-icon="true" :extra-icon="extraIcon">
|
||||||
|
</uni-list-item>
|
||||||
|
</uni-list>
|
||||||
|
</template>
|
||||||
|
<view class="content">
|
||||||
|
<text class="text">折叠内容主体,可自定义内容及样式</text>
|
||||||
|
</view>
|
||||||
|
</uni-collapse-item>
|
||||||
|
</uni-collapse>
|
||||||
|
```
|
||||||
|
|
||||||
|
**注意**
|
||||||
|
|
||||||
|
- 在折叠面板组件中使用list时,在 App-Nvue 下请勿单独使用 uni-list-item,会导致组件无法正常显示,其他平台不做限制
|
||||||
|
- 在默认插槽里使用 uni-list 组件与上方示例一样,直接写在默认插槽里即可
|
||||||
|
|
||||||
|
## API
|
||||||
|
|
||||||
|
### Collapse Props
|
||||||
|
|
||||||
|
|属性名|类型|默认值|说明|
|
||||||
|
|:-:|:-:|:-:|:-:|
|
||||||
|
|value/v-model|String/Array|-|当前激活面板改变时触发(如果是手风琴模式,参数类型为string,否则为array)|
|
||||||
|
|accordion|Boolean|false|是否开启手风琴效果 |
|
||||||
|
|
||||||
|
### Collapse Event
|
||||||
|
|
||||||
|
|事件称名|说明|返回值|
|
||||||
|
|:-:|:-:|:-:|
|
||||||
|
|@change|切换面板时触发 |切换面板时触发,如果是手风琴模式,返回类型为string,否则为array|
|
||||||
|
|
||||||
|
### Collapse Methods
|
||||||
|
|
||||||
|
|方法名称|说明|
|
||||||
|
|:-:|:-:|
|
||||||
|
|resize |更新当前列表高度|
|
||||||
|
|
||||||
|
> **提示**
|
||||||
|
> - resize 方法解决动态添加数据,带动画的折叠面板高度不更新的问题
|
||||||
|
> - 需要在数据渲染完毕之后使用 `resize` 方法。推荐在 `this.$nextTick()` 中使用
|
||||||
|
> - 当前只有小程序端需要调用此方法,H5\App 端已经做了处理,不需要手动更新高度
|
||||||
|
> ```html
|
||||||
|
> <view>
|
||||||
|
> <uni-collapse ref="collapse" v-model="value">
|
||||||
|
> <uni-collapse-item title="默认开启" >
|
||||||
|
> <view class="content">
|
||||||
|
> <text class="text">{{content}}</text>
|
||||||
|
> </view>
|
||||||
|
> </uni-collapse-item>
|
||||||
|
> <uni-collapse-item title="折叠内容">
|
||||||
|
> <view class="content">
|
||||||
|
> <text class="text">折叠内容主体,这是一段比较长内容。默认折叠主要内容,只显示当前项标题。点击标题展开,才能看到这段文字。再次点击标题,折叠内容。</text>
|
||||||
|
> </view>
|
||||||
|
> </uni-collapse-item>
|
||||||
|
> </uni-collapse>
|
||||||
|
> <button class="button" type="primary" @click="add">动态修改内容</button>
|
||||||
|
> </view>
|
||||||
|
> ```
|
||||||
|
> ```javascript
|
||||||
|
> export default {
|
||||||
|
> data() {
|
||||||
|
> return {
|
||||||
|
> value:['0'],
|
||||||
|
> content: '折叠内容主体,可自定义内容及样式,点击按钮修改内容使高度发生变化。',
|
||||||
|
> }
|
||||||
|
> },
|
||||||
|
> methods: {
|
||||||
|
> add() {
|
||||||
|
> if (this.content.length > 35) {
|
||||||
|
> this.content = '折叠内容主体,可自定义内容及样式,点击按钮修改内容使高度发生变化。'
|
||||||
|
> } else {
|
||||||
|
> this.content = '折叠内容主体,这是一段比较长内容。通过点击按钮修改后内容后,使组件高度发生变化,在次点击按钮恢复之前的内容和高度。'
|
||||||
|
> }
|
||||||
|
> // TODO 小程序中不支持自动更新 ,需要手动resize 更新组件高度
|
||||||
|
> // #ifdef MP
|
||||||
|
> this.$nextTick(() => {
|
||||||
|
> this.$refs.collapse.resize()
|
||||||
|
> })
|
||||||
|
> // #endif
|
||||||
|
> }
|
||||||
|
> }
|
||||||
|
> }
|
||||||
|
> ```
|
||||||
|
|
||||||
|
|
||||||
|
### CollapseItem Props
|
||||||
|
|
||||||
|
|属性名|类型|默认值|说明|
|
||||||
|
|:-:|:-:|:-:|:-:|
|
||||||
|
|title|String|-|标题文字|
|
||||||
|
|thumb|String|-|标题左侧缩略图|
|
||||||
|
|disabled|Boolean|false|是否禁用|
|
||||||
|
|open|Boolean|false|是否展开面板|
|
||||||
|
|show-animation|Boolean|false|开启动画|
|
||||||
|
|border|Boolean|true|折叠面板内容分隔线|
|
||||||
|
|title-border|String|auto|折叠面板标题分隔线可选值见下方 **TitleBorder Params**|
|
||||||
|
|show-arrow|Boolean|true|是否显示右侧箭头|
|
||||||
|
|
||||||
|
#### TitleBorder Params
|
||||||
|
|
||||||
|
|参数名|说明|
|
||||||
|
|:-:|:-:|
|
||||||
|
|auto|分隔线自动显示|
|
||||||
|
|none|不显示分隔线|
|
||||||
|
|show|一直显示分隔线|
|
||||||
|
|
||||||
|
### Collapse Slots
|
||||||
|
|
||||||
|
|插槽名|说明|
|
||||||
|
|:-:| :-:|
|
||||||
|
|default|默认插槽|
|
||||||
|
|title|面板标题插槽,如使用此插槽禁用样式效果将失效|
|
||||||
|
|
||||||
|
## 组件示例
|
||||||
|
|
||||||
|
点击查看:[https://hellouniapp.dcloud.net.cn/pages/extUI/collapse/collapse](https://hellouniapp.dcloud.net.cn/pages/extUI/collapse/collapse)
|
||||||
@@ -1 +1 @@
|
|||||||
forceInstall
|
installed
|
||||||
Binary file not shown.
@@ -1,8 +1,8 @@
|
|||||||
|
|
||||||
var isReady=false;var onReadyCallbacks=[];
|
var isReady=false;var onReadyCallbacks=[];
|
||||||
var isServiceReady=false;var onServiceReadyCallbacks=[];
|
var isServiceReady=false;var onServiceReadyCallbacks=[];
|
||||||
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","pages/equity/search","pages/market/logs","pages/order/buy","pages/goods/lists","pages/company/approve","pages/store/visitors","pages/store/customer","pages/store/employees"],"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.2.2","entryPagePath":"pages/equity/index","networkTimeout":{"request":60000,"connectSocket":60000,"uploadFile":60000,"downloadFile":60000}};
|
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","pages/equity/search","pages/market/logs","pages/order/buy","pages/goods/lists","pages/company/approve","pages/store/visitors","pages/store/customer","pages/store/employees","pages/store/basics"],"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.2.3","entryPagePath":"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","navigationBarTextStyle":"white"}},{"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":{"navigationStyle":"custom","navigationBarTitleText":"企业工具","navigationBarTextStyle":"white","navigationBarBackgroundColor":"#c82626"}},{"path":"/pages/property/index","meta":{"isQuit":true,"isTabBar":true},"window":{"navigationBarTitleText":"","navigationStyle":"custom"}},{"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":"会员","navigationBarBackgroundColor":"#1f1b1c","navigationBarTextStyle":"white","backgroundColor":"#fefaef"}},{"path":"/pages/equity/search","meta":{},"window":{"navigationBarTitleText":"搜索"}},{"path":"/pages/market/logs","meta":{},"window":{"navigationBarTitleText":"成交历史"}},{"path":"/pages/order/buy","meta":{},"window":{"navigationBarTitleText":"确认订单","navigationBarBackgroundColor":"#FFFFFF"}},{"path":"/pages/goods/lists","meta":{},"window":{"navigationBarTitleText":"商品列表","navigationBarBackgroundColor":"#FFFFFF"}},{"path":"/pages/company/approve","meta":{},"window":{"navigationBarTitleText":""}},{"path":"/pages/store/visitors","meta":{},"window":{"navigationBarTitleText":"访客统计","navigationBarBackgroundColor":"#FFFFFF"}},{"path":"/pages/store/customer","meta":{},"window":{"navigationBarTitleText":"成交客户","navigationBarBackgroundColor":"#FFFFFF"}},{"path":"/pages/store/employees","meta":{},"window":{"navigationBarTitleText":"员工","titleNView":{"backgroundColor":"#FFFFFF","buttons":[{"text":"添加","fontSize":"16","width":"80","color":"#c82626"}]}}}];
|
var __uniRoutes = [{"path":"/pages/equity/index","meta":{"isQuit":true,"isTabBar":true},"window":{"navigationStyle":"custom","navigationBarTextStyle":"white"}},{"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":{"navigationStyle":"custom","navigationBarTitleText":"企业工具","navigationBarTextStyle":"white","navigationBarBackgroundColor":"#c82626"}},{"path":"/pages/property/index","meta":{"isQuit":true,"isTabBar":true},"window":{"navigationBarTitleText":"","navigationStyle":"custom"}},{"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":"会员","navigationBarBackgroundColor":"#1f1b1c","navigationBarTextStyle":"white","backgroundColor":"#fefaef"}},{"path":"/pages/equity/search","meta":{},"window":{"navigationBarTitleText":"搜索"}},{"path":"/pages/market/logs","meta":{},"window":{"navigationBarTitleText":"成交历史"}},{"path":"/pages/order/buy","meta":{},"window":{"navigationBarTitleText":"确认订单","navigationBarBackgroundColor":"#FFFFFF"}},{"path":"/pages/goods/lists","meta":{},"window":{"navigationBarTitleText":"商品列表","navigationBarBackgroundColor":"#FFFFFF"}},{"path":"/pages/company/approve","meta":{},"window":{"navigationBarTitleText":""}},{"path":"/pages/store/visitors","meta":{},"window":{"navigationBarTitleText":"访客统计","navigationBarBackgroundColor":"#FFFFFF"}},{"path":"/pages/store/customer","meta":{},"window":{"navigationBarTitleText":"成交客户","navigationBarBackgroundColor":"#FFFFFF"}},{"path":"/pages/store/employees","meta":{},"window":{"navigationBarTitleText":"员工","titleNView":{"backgroundColor":"#FFFFFF","buttons":[{"text":"添加","fontSize":"16","width":"80","color":"#c82626"}]}}},{"path":"/pages/store/basics","meta":{},"window":{"navigationBarTitleText":"基础信息","titleNView":{"backgroundColor":"#FFFFFF","buttons":[{"text":"保存","fontSize":"16","width":"80","color":"#c82626"}]}}}];
|
||||||
__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.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()})}});
|
__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}}}});
|
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}}}});
|
||||||
|
|||||||
4
unpackage/dist/build/app-plus/app-service.js
vendored
4
unpackage/dist/build/app-plus/app-service.js
vendored
File diff suppressed because one or more lines are too long
2
unpackage/dist/build/app-plus/app-view.js
vendored
2
unpackage/dist/build/app-plus/app-view.js
vendored
File diff suppressed because one or more lines are too long
2
unpackage/dist/build/app-plus/manifest.json
vendored
2
unpackage/dist/build/app-plus/manifest.json
vendored
@@ -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":{},"Payment":{},"Share":{},"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":{"icons":{"android":{"hdpi":"unpackage/res/icons/72x72.png","xhdpi":"unpackage/res/icons/96x96.png","xxhdpi":"unpackage/res/icons/144x144.png","xxxhdpi":"unpackage/res/icons/192x192.png"},"ios":{"appstore":"unpackage/res/icons/1024x1024.png","ipad":{"app":"unpackage/res/icons/76x76.png","app@2x":"unpackage/res/icons/152x152.png","notification":"unpackage/res/icons/20x20.png","notification@2x":"unpackage/res/icons/40x40.png","proapp@2x":"unpackage/res/icons/167x167.png","settings":"unpackage/res/icons/29x29.png","settings@2x":"unpackage/res/icons/58x58.png","spotlight":"unpackage/res/icons/40x40.png","spotlight@2x":"unpackage/res/icons/80x80.png"},"iphone":{"app@2x":"unpackage/res/icons/120x120.png","app@3x":"unpackage/res/icons/180x180.png","notification@2x":"unpackage/res/icons/40x40.png","notification@3x":"unpackage/res/icons/60x60.png","settings@2x":"unpackage/res/icons/58x58.png","settings@3x":"unpackage/res/icons/87x87.png","spotlight@2x":"unpackage/res/icons/80x80.png","spotlight@3x":"unpackage/res/icons/120x120.png"}}},"splashscreen":{"androidStyle":"common"},"google":{"permissions":["<uses-feature android:name=\"android.hardware.camera\"/>","<uses-feature android:name=\"android.hardware.camera.autofocus\"/>","<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>","<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>","<uses-permission android:name=\"android.permission.CAMERA\"/>","<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>","<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>","<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>","<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>","<uses-permission android:name=\"android.permission.MODIFY_AUDIO_SETTINGS\"/>","<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>","<uses-permission android:name=\"android.permission.READ_LOGS\"/>","<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>","<uses-permission android:name=\"android.permission.VIBRATE\"/>","<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>","<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"]},"apple":{},"plugins":{"oauth":{"univerify":{},"weixin":{"appid":"wx222fbe58feee7819","appsecret":"3d24525a636d7573a8fae885097d5cf7","UniversalLinks":""}},"payment":{"weixin":{"__platform__":["ios","android"],"appid":"wx222fbe58feee7819","UniversalLinks":""}},"share":{"weixin":{"appid":"wx222fbe58feee7819","UniversalLinks":""}},"maps":{},"ad":{},"audio":{"mp3":{"description":"Android平台录音支持MP3格式文件"}}}},"allowsInlineMediaPlayback":true,"uni-app":{"compilerVersion":"3.2.2","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","child":["lauchwebview"],"selected":0},"launch_path":"__uniappview.html"}}
|
{"@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":{},"Payment":{},"Share":{},"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":{"icons":{"android":{"hdpi":"unpackage/res/icons/72x72.png","xhdpi":"unpackage/res/icons/96x96.png","xxhdpi":"unpackage/res/icons/144x144.png","xxxhdpi":"unpackage/res/icons/192x192.png"},"ios":{"appstore":"unpackage/res/icons/1024x1024.png","ipad":{"app":"unpackage/res/icons/76x76.png","app@2x":"unpackage/res/icons/152x152.png","notification":"unpackage/res/icons/20x20.png","notification@2x":"unpackage/res/icons/40x40.png","proapp@2x":"unpackage/res/icons/167x167.png","settings":"unpackage/res/icons/29x29.png","settings@2x":"unpackage/res/icons/58x58.png","spotlight":"unpackage/res/icons/40x40.png","spotlight@2x":"unpackage/res/icons/80x80.png"},"iphone":{"app@2x":"unpackage/res/icons/120x120.png","app@3x":"unpackage/res/icons/180x180.png","notification@2x":"unpackage/res/icons/40x40.png","notification@3x":"unpackage/res/icons/60x60.png","settings@2x":"unpackage/res/icons/58x58.png","settings@3x":"unpackage/res/icons/87x87.png","spotlight@2x":"unpackage/res/icons/80x80.png","spotlight@3x":"unpackage/res/icons/120x120.png"}}},"splashscreen":{"androidStyle":"common"},"google":{"permissions":["<uses-feature android:name=\"android.hardware.camera\"/>","<uses-feature android:name=\"android.hardware.camera.autofocus\"/>","<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>","<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>","<uses-permission android:name=\"android.permission.CAMERA\"/>","<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>","<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>","<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>","<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>","<uses-permission android:name=\"android.permission.MODIFY_AUDIO_SETTINGS\"/>","<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>","<uses-permission android:name=\"android.permission.READ_LOGS\"/>","<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>","<uses-permission android:name=\"android.permission.VIBRATE\"/>","<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>","<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"]},"apple":{},"plugins":{"oauth":{"univerify":{},"weixin":{"appid":"wx222fbe58feee7819","appsecret":"3d24525a636d7573a8fae885097d5cf7","UniversalLinks":""}},"payment":{"weixin":{"__platform__":["android"],"appid":"wx222fbe58feee7819","UniversalLinks":""}},"share":{"weixin":{"appid":"wx222fbe58feee7819","UniversalLinks":""}},"maps":{},"ad":{},"audio":{"mp3":{"description":"Android平台录音支持MP3格式文件"}}}},"allowsInlineMediaPlayback":true,"uni-app":{"compilerVersion":"3.2.3","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","child":["lauchwebview"],"selected":0},"launch_path":"__uniappview.html"}}
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
|
|
||||||
var isReady=false;var onReadyCallbacks=[];
|
var isReady=false;var onReadyCallbacks=[];
|
||||||
var isServiceReady=false;var onServiceReadyCallbacks=[];
|
var isServiceReady=false;var onServiceReadyCallbacks=[];
|
||||||
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","pages/equity/search","pages/market/logs","pages/order/buy","pages/goods/lists","pages/company/approve","pages/store/visitors","pages/store/customer","pages/store/employees","pages/store/basics"],"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.2.2","entryPagePath":"pages/equity/index","networkTimeout":{"request":60000,"connectSocket":60000,"uploadFile":60000,"downloadFile":60000}};
|
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","pages/equity/search","pages/market/logs","pages/order/buy","pages/order/index","pages/order/details","pages/order/sales","pages/goods/lists","pages/company/approve","pages/store/visitors","pages/store/customer","pages/store/basics","pages/employees/list","pages/employees/add","pages/goods/management","pages/goods/add","pages/coupons/index","pages/coupons/management","pages/verification/index","pages/verification/details"],"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.2.3","entryPagePath":"pages/store/index","entryPageQuery":"","networkTimeout":{"request":60000,"connectSocket":60000,"uploadFile":60000,"downloadFile":60000}};
|
||||||
var __uniRoutes = [{"path":"/pages/equity/index","meta":{"isQuit":true,"isTabBar":true},"window":{"navigationStyle":"custom","navigationBarTextStyle":"white"}},{"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":{"navigationStyle":"custom","navigationBarTitleText":"企业工具","navigationBarTextStyle":"white","navigationBarBackgroundColor":"#c82626"}},{"path":"/pages/property/index","meta":{"isQuit":true,"isTabBar":true},"window":{"navigationBarTitleText":"","navigationStyle":"custom"}},{"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":"会员","navigationBarBackgroundColor":"#1f1b1c","navigationBarTextStyle":"white","backgroundColor":"#fefaef"}},{"path":"/pages/equity/search","meta":{},"window":{"navigationBarTitleText":"搜索"}},{"path":"/pages/market/logs","meta":{},"window":{"navigationBarTitleText":"成交历史"}},{"path":"/pages/order/buy","meta":{},"window":{"navigationBarTitleText":"确认订单","navigationBarBackgroundColor":"#FFFFFF"}},{"path":"/pages/goods/lists","meta":{},"window":{"navigationBarTitleText":"商品列表","navigationBarBackgroundColor":"#FFFFFF"}},{"path":"/pages/company/approve","meta":{},"window":{"navigationBarTitleText":""}},{"path":"/pages/store/visitors","meta":{},"window":{"navigationBarTitleText":"访客统计","navigationBarBackgroundColor":"#FFFFFF"}},{"path":"/pages/store/customer","meta":{},"window":{"navigationBarTitleText":"成交客户","navigationBarBackgroundColor":"#FFFFFF"}},{"path":"/pages/store/employees","meta":{},"window":{"navigationBarTitleText":"员工","titleNView":{"backgroundColor":"#FFFFFF","buttons":[{"text":"添加","fontSize":"16","width":"80","color":"#c82626"}]}}},{"path":"/pages/store/basics","meta":{},"window":{"navigationBarTitleText":"基础信息","titleNView":{"backgroundColor":"#FFFFFF","buttons":[{"text":"保存","fontSize":"16","width":"80","color":"#c82626"}]}}}];
|
var __uniRoutes = [{"path":"/pages/equity/index","meta":{"isQuit":true,"isTabBar":true},"window":{"navigationStyle":"custom","navigationBarTextStyle":"white"}},{"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":{"navigationStyle":"custom","navigationBarTitleText":"企业工具","navigationBarTextStyle":"white","navigationBarBackgroundColor":"#c82626"}},{"path":"/pages/property/index","meta":{"isQuit":true,"isTabBar":true},"window":{"navigationBarTitleText":"","navigationStyle":"custom"}},{"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":"会员","navigationBarBackgroundColor":"#1f1b1c","navigationBarTextStyle":"white","backgroundColor":"#fefaef"}},{"path":"/pages/equity/search","meta":{},"window":{"navigationBarTitleText":"搜索"}},{"path":"/pages/market/logs","meta":{},"window":{"navigationBarTitleText":"成交历史"}},{"path":"/pages/order/buy","meta":{},"window":{"navigationBarTitleText":"确认订单","navigationBarBackgroundColor":"#FFFFFF"}},{"path":"/pages/order/index","meta":{},"window":{"navigationBarTitleText":"订单管理"}},{"path":"/pages/order/details","meta":{},"window":{"navigationBarTitleText":"订单详情"}},{"path":"/pages/order/sales","meta":{},"window":{"navigationBarTitleText":"售后"}},{"path":"/pages/goods/lists","meta":{},"window":{"navigationBarTitleText":"商品列表","navigationBarBackgroundColor":"#FFFFFF"}},{"path":"/pages/company/approve","meta":{},"window":{"navigationBarTitleText":""}},{"path":"/pages/store/visitors","meta":{},"window":{"navigationBarTitleText":"访客统计","navigationBarBackgroundColor":"#FFFFFF"}},{"path":"/pages/store/customer","meta":{},"window":{"navigationBarTitleText":"成交客户","navigationBarBackgroundColor":"#FFFFFF"}},{"path":"/pages/store/basics","meta":{},"window":{"navigationBarTitleText":"基础信息","titleNView":{"backgroundColor":"#FFFFFF","buttons":[{"text":"保存","fontSize":"16","width":"80","color":"#c82626"}]}}},{"path":"/pages/employees/list","meta":{},"window":{"navigationBarTitleText":"员工","titleNView":{"backgroundColor":"#FFFFFF","buttons":[{"text":"添加","fontSize":"16","width":"80","color":"#c82626"}]}}},{"path":"/pages/employees/add","meta":{},"window":{"navigationBarTitleText":"添加员工","navigationBarBackgroundColor":"#FFFFFF"}},{"path":"/pages/goods/management","meta":{},"window":{"navigationBarTitleText":"商品权证"}},{"path":"/pages/goods/add","meta":{},"window":{"navigationBarTitleText":"添加权证"}},{"path":"/pages/coupons/index","meta":{},"window":{"navigationBarTitleText":"优惠券"}},{"path":"/pages/coupons/management","meta":{},"window":{"navigationBarTitleText":"优惠券管理"}},{"path":"/pages/verification/index","meta":{},"window":{"navigationBarTitleText":"扫码验证"}},{"path":"/pages/verification/details","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.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()})}});
|
__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}}}});
|
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}}}});
|
||||||
|
|||||||
2839
unpackage/dist/dev/app-plus/app-service.js
vendored
2839
unpackage/dist/dev/app-plus/app-service.js
vendored
File diff suppressed because one or more lines are too long
3924
unpackage/dist/dev/app-plus/app-view.js
vendored
3924
unpackage/dist/dev/app-plus/app-view.js
vendored
File diff suppressed because one or more lines are too long
2
unpackage/dist/dev/app-plus/manifest.json
vendored
2
unpackage/dist/dev/app-plus/manifest.json
vendored
@@ -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":{},"Payment":{},"Share":{},"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":{"icons":{"android":{"hdpi":"unpackage/res/icons/72x72.png","xhdpi":"unpackage/res/icons/96x96.png","xxhdpi":"unpackage/res/icons/144x144.png","xxxhdpi":"unpackage/res/icons/192x192.png"},"ios":{"appstore":"unpackage/res/icons/1024x1024.png","ipad":{"app":"unpackage/res/icons/76x76.png","app@2x":"unpackage/res/icons/152x152.png","notification":"unpackage/res/icons/20x20.png","notification@2x":"unpackage/res/icons/40x40.png","proapp@2x":"unpackage/res/icons/167x167.png","settings":"unpackage/res/icons/29x29.png","settings@2x":"unpackage/res/icons/58x58.png","spotlight":"unpackage/res/icons/40x40.png","spotlight@2x":"unpackage/res/icons/80x80.png"},"iphone":{"app@2x":"unpackage/res/icons/120x120.png","app@3x":"unpackage/res/icons/180x180.png","notification@2x":"unpackage/res/icons/40x40.png","notification@3x":"unpackage/res/icons/60x60.png","settings@2x":"unpackage/res/icons/58x58.png","settings@3x":"unpackage/res/icons/87x87.png","spotlight@2x":"unpackage/res/icons/80x80.png","spotlight@3x":"unpackage/res/icons/120x120.png"}}},"splashscreen":{"androidStyle":"common"},"google":{"permissions":["<uses-feature android:name=\"android.hardware.camera\"/>","<uses-feature android:name=\"android.hardware.camera.autofocus\"/>","<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>","<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>","<uses-permission android:name=\"android.permission.CAMERA\"/>","<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>","<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>","<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>","<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>","<uses-permission android:name=\"android.permission.MODIFY_AUDIO_SETTINGS\"/>","<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>","<uses-permission android:name=\"android.permission.READ_LOGS\"/>","<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>","<uses-permission android:name=\"android.permission.VIBRATE\"/>","<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>","<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"]},"apple":{},"plugins":{"oauth":{"univerify":{},"weixin":{"appid":"wx222fbe58feee7819","appsecret":"3d24525a636d7573a8fae885097d5cf7","UniversalLinks":""}},"payment":{"weixin":{"__platform__":["ios","android"],"appid":"wx222fbe58feee7819","UniversalLinks":""}},"share":{"weixin":{"appid":"wx222fbe58feee7819","UniversalLinks":""}},"maps":{},"ad":{},"audio":{"mp3":{"description":"Android平台录音支持MP3格式文件"}}}},"arguments":"{\"name\":\"\",\"path\":\"\",\"query\":\"\",\"id\":0}","allowsInlineMediaPlayback":true,"uni-app":{"compilerVersion":"3.2.2","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","child":["lauchwebview"],"selected":0},"launch_path":"__uniappview.html"}}
|
{"@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":{},"Payment":{},"Share":{},"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":{"icons":{"android":{"hdpi":"unpackage/res/icons/72x72.png","xhdpi":"unpackage/res/icons/96x96.png","xxhdpi":"unpackage/res/icons/144x144.png","xxxhdpi":"unpackage/res/icons/192x192.png"},"ios":{"appstore":"unpackage/res/icons/1024x1024.png","ipad":{"app":"unpackage/res/icons/76x76.png","app@2x":"unpackage/res/icons/152x152.png","notification":"unpackage/res/icons/20x20.png","notification@2x":"unpackage/res/icons/40x40.png","proapp@2x":"unpackage/res/icons/167x167.png","settings":"unpackage/res/icons/29x29.png","settings@2x":"unpackage/res/icons/58x58.png","spotlight":"unpackage/res/icons/40x40.png","spotlight@2x":"unpackage/res/icons/80x80.png"},"iphone":{"app@2x":"unpackage/res/icons/120x120.png","app@3x":"unpackage/res/icons/180x180.png","notification@2x":"unpackage/res/icons/40x40.png","notification@3x":"unpackage/res/icons/60x60.png","settings@2x":"unpackage/res/icons/58x58.png","settings@3x":"unpackage/res/icons/87x87.png","spotlight@2x":"unpackage/res/icons/80x80.png","spotlight@3x":"unpackage/res/icons/120x120.png"}}},"splashscreen":{"androidStyle":"common"},"google":{"permissions":["<uses-feature android:name=\"android.hardware.camera\"/>","<uses-feature android:name=\"android.hardware.camera.autofocus\"/>","<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>","<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>","<uses-permission android:name=\"android.permission.CAMERA\"/>","<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>","<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>","<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>","<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>","<uses-permission android:name=\"android.permission.MODIFY_AUDIO_SETTINGS\"/>","<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>","<uses-permission android:name=\"android.permission.READ_LOGS\"/>","<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>","<uses-permission android:name=\"android.permission.VIBRATE\"/>","<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>","<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"]},"apple":{},"plugins":{"oauth":{"univerify":{},"weixin":{"appid":"wx222fbe58feee7819","appsecret":"3d24525a636d7573a8fae885097d5cf7","UniversalLinks":""}},"payment":{"weixin":{"__platform__":["android"],"appid":"wx222fbe58feee7819","UniversalLinks":""}},"share":{"weixin":{"appid":"wx222fbe58feee7819","UniversalLinks":""}},"maps":{},"ad":{},"audio":{"mp3":{"description":"Android平台录音支持MP3格式文件"}}}},"arguments":"{\"id\":1,\"name\":\"pages/store/index\",\"pathName\":\"pages/store/index\",\"query\":\"\"}","allowsInlineMediaPlayback":true,"uni-app":{"compilerVersion":"3.2.3","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","child":["lauchwebview"],"selected":2},"launch_path":"__uniappview.html"}}
|
||||||
Reference in New Issue
Block a user