merge
This commit is contained in:
@@ -9,8 +9,8 @@ import store from '@/store'
|
|||||||
|
|
||||||
// 基础配置
|
// 基础配置
|
||||||
const config = {
|
const config = {
|
||||||
apiUrl : 'https://oapi.lianshang.vip/api/',
|
apiUrl : 'https://oapi.lianshang.vip/api/', // 正式环境
|
||||||
apiUrls : 'https://oapi.lianshang.vip/',
|
apiUrls : 'https://storage.lianshang.vip/', // 图片路径(测试/正式)
|
||||||
timeout : 60000
|
timeout : 60000
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -78,6 +78,15 @@ const companyStatus = () => {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 是否允许企业能开通
|
||||||
|
const companyIsallow = () => {
|
||||||
|
return request({
|
||||||
|
url: 'companies/applies/isallow',
|
||||||
|
method:'POST'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
export {
|
export {
|
||||||
login,
|
login,
|
||||||
@@ -88,5 +97,6 @@ export {
|
|||||||
resetUserInfo,
|
resetUserInfo,
|
||||||
getUserSettingInfo,
|
getUserSettingInfo,
|
||||||
aboutUs,
|
aboutUs,
|
||||||
companyStatus
|
companyStatus,
|
||||||
|
companyIsallow
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,7 +27,7 @@
|
|||||||
</block>
|
</block>
|
||||||
<block v-else>
|
<block v-else>
|
||||||
<view class="goods--null">
|
<view class="goods--null">
|
||||||
<view>{{toast}}</view>
|
<no-list name='no-goods' :txt="toast" />
|
||||||
</view>
|
</view>
|
||||||
</block>
|
</block>
|
||||||
</view>
|
</view>
|
||||||
@@ -129,7 +129,7 @@ export default {
|
|||||||
// 数据空
|
// 数据空
|
||||||
.goods--null{
|
.goods--null{
|
||||||
width: 100%;
|
width: 100%;
|
||||||
padding: 20vh 0;
|
padding: 200rpx 0;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-size: $title-size-m;
|
font-size: $title-size-m;
|
||||||
color: $text-gray;
|
color: $text-gray;
|
||||||
|
|||||||
@@ -1,72 +1,72 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="NOList">
|
<view class="NOList">
|
||||||
<view class="no-addr">
|
<view class="no-addr">
|
||||||
<image :src="`${webUrl}/storage/imageresource/no-image/${name}.png`" mode="widthFix" />
|
<image :src="`${webUrl}/no-list/${name}.png`" mode="widthFix" />
|
||||||
{{txt}}
|
{{txt}}
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {config} from '@/apis/index.js'
|
import {
|
||||||
export default {
|
config
|
||||||
name: "NOList",
|
} from '@/apis/index.js'
|
||||||
/**
|
export default {
|
||||||
* name 携带过来的图片名称 (与本地问图片文件相对应)
|
name: "NOList",
|
||||||
*
|
/**
|
||||||
* no-address(没有地址)
|
* name 携带过来的图片名称 (与本地问图片文件相对应)
|
||||||
* no-counpon(没有优惠券)
|
*
|
||||||
* no-goods(没有商品)
|
* no-address(没有地址)
|
||||||
* no-list(没有订单列表)
|
* no-counpon(没有优惠券)
|
||||||
* no-news(没有任何消息)
|
* no-goods(没有商品)
|
||||||
* no-new1(没有任何消息1)
|
* no-list(没有订单列表)
|
||||||
* no-chain (没有区块链信息)
|
* no-news(没有任何消息)
|
||||||
* no-collection(没有任何收藏信息)
|
* no-new1(没有任何消息1)
|
||||||
* no-foot (没有足迹信息)
|
* no-chain (没有区块链信息)
|
||||||
* no-in(没有收入信息)
|
* no-collection(没有任何收藏信息)
|
||||||
* no-out (没有任何支出信息)
|
* no-foot (没有足迹信息)
|
||||||
* no-order (没有任何订单信息)
|
* no-in(没有收入信息)
|
||||||
* no-order-list (没有任何订单信息)
|
* no-out (没有任何支出信息)
|
||||||
* no-record (没有任何收益信息)
|
* no-order (没有任何订单信息)
|
||||||
* no-records (没有任何收益信息2)
|
* no-order-list (没有任何订单信息)
|
||||||
* no-search (没有任何搜索信息)
|
* no-record (没有任何收益信息)
|
||||||
* no-shop (没有任何店铺信息)
|
* no-records (没有任何收益信息2)
|
||||||
*
|
* no-search (没有任何搜索信息)
|
||||||
*
|
* no-shop (没有任何店铺信息)
|
||||||
* txt 携带过来的提示语
|
*
|
||||||
*/
|
*
|
||||||
props: {
|
* txt 携带过来的提示语
|
||||||
name: String,
|
*/
|
||||||
txt: String
|
props: {
|
||||||
},
|
name: String,
|
||||||
data() {
|
txt: String
|
||||||
return {
|
},
|
||||||
webUrl:''
|
|
||||||
};
|
data() {
|
||||||
},
|
return {
|
||||||
mounted() {
|
webUrl: config.apiUrls
|
||||||
this.webUrl = config.apiUrls
|
};
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
// 无地址
|
// 无地址
|
||||||
.no-addr {
|
.no-addr {
|
||||||
padding-top: $padding*4;
|
padding-top: $padding*4;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
color: #999;
|
color: #999;
|
||||||
font-size: $title-size*0.9;
|
font-size: $title-size*0.9;
|
||||||
|
|
||||||
image {
|
image {
|
||||||
margin-bottom: $margin*2;
|
margin-bottom: $margin*2;
|
||||||
margin-top: $margin*1;
|
margin-top: $margin*1;
|
||||||
width: 400rpx;
|
width: 400rpx;
|
||||||
opacity: .4;
|
opacity: .4;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -304,7 +304,7 @@
|
|||||||
.btns{
|
.btns{
|
||||||
padding-top: $padding * 2;
|
padding-top: $padding * 2;
|
||||||
button{
|
button{
|
||||||
background: $mian-color-deep;
|
background: $mian-color;
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
height: 90rpx;
|
height: 90rpx;
|
||||||
line-height: 90rpx;
|
line-height: 90rpx;
|
||||||
|
|||||||
@@ -125,8 +125,8 @@
|
|||||||
],
|
],
|
||||||
timeIndex : 0,
|
timeIndex : 0,
|
||||||
times : [
|
times : [
|
||||||
{ type: 2, text: '固定时间(区间范围)' },
|
{ type: 1, text: '固定时间(区间范围)' },
|
||||||
{ type: 1, text: '延期券(用户领取后有效天数)' }
|
{ type: 2, text: '延期券(用户领取后有效天数)' }
|
||||||
],
|
],
|
||||||
showDatePicker : false, // 活动弹出层时间
|
showDatePicker : false, // 活动弹出层时间
|
||||||
datePickerValue : [], // 活动时间
|
datePickerValue : [], // 活动时间
|
||||||
@@ -211,7 +211,7 @@
|
|||||||
days : this.timeNumber,
|
days : this.timeNumber,
|
||||||
goodsable_ids : this.coupongoods
|
goodsable_ids : this.coupongoods
|
||||||
}
|
}
|
||||||
|
console.log(valuss)
|
||||||
pushCoupons(valuss).then(res => {
|
pushCoupons(valuss).then(res => {
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
title : '提示',
|
title : '提示',
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<block v-if="coupons.length > 0">
|
<block v-if="coupons.length > 0">
|
||||||
<view class="coupons">
|
<view class="coupons">
|
||||||
<view class="coupons-flex" v-for="(item, index) in coupons" :key="index" @click="$Router.push({name: 'magDetails', params: {couponId: item.coupon_id}})">
|
<view class="coupons-flex" v-for="(item, index) in coupons" :key="index" @click="$Router.push({name: 'couponsDetails', params: {couponId: item.coupon_id}})">
|
||||||
<view class="item cover">
|
<view class="item cover">
|
||||||
<view v-if="item.type.value === 2">
|
<view v-if="item.type.value === 2">
|
||||||
<view class="cover-price">{{item.price || 0}}<text>元</text></view>
|
<view class="cover-price">{{item.price || 0}}<text>元</text></view>
|
||||||
@@ -45,7 +45,7 @@
|
|||||||
</block>
|
</block>
|
||||||
<block v-else>
|
<block v-else>
|
||||||
<view class="list-null">
|
<view class="list-null">
|
||||||
<view class="sub-title">暂无相关优惠券</view>
|
<no-list name='no-counpon' txt="没有任何相关优惠券~" />
|
||||||
</view>
|
</view>
|
||||||
</block>
|
</block>
|
||||||
<view class="basisc-btn">
|
<view class="basisc-btn">
|
||||||
@@ -177,17 +177,8 @@
|
|||||||
// 空提示
|
// 空提示
|
||||||
.list-null{
|
.list-null{
|
||||||
width: 100vw;
|
width: 100vw;
|
||||||
height: 100vh;
|
// height: 100vh;
|
||||||
box-sizing: border-box;
|
padding-top: 200rpx;
|
||||||
text-align: center;
|
|
||||||
@extend .vertical;
|
|
||||||
.sub-title{
|
|
||||||
color: $text-gray;
|
|
||||||
font-size: $title-size-m;
|
|
||||||
}
|
|
||||||
.icon{
|
|
||||||
width: 288rpx;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
// 订单管理
|
// 订单管理
|
||||||
.coupons{
|
.coupons{
|
||||||
|
|||||||
@@ -1,35 +1,38 @@
|
|||||||
<template>
|
<template>
|
||||||
<view>
|
<view>
|
||||||
<!-- 商品列表 -->
|
<block>
|
||||||
<view class="lists">
|
<!-- 商品列表 -->
|
||||||
<view class="goods-item" v-for="(item, index) in goods" :key="index">
|
<view class="lists">
|
||||||
<checkbox class="checkbox" :checked="item.isSelect" @click="onSelect(index)"/>
|
<view class="goods-item" v-for="(item, index) in goods" :key="index">
|
||||||
<view class="mian">
|
<checkbox class="checkbox" :checked="item.isSelect" @click="onSelect(index)"/>
|
||||||
<image class="cover" :src="item.cover" mode="aspectFill" />
|
<view class="mian">
|
||||||
<view class="title">{{item.title}}</view>
|
<image class="cover" :src="item.cover" mode="aspectFill" />
|
||||||
<view class="subtitle">{{item.description}}</view>
|
<view class="title">{{item.title}}</view>
|
||||||
<view class="mian-flex">
|
<view class="subtitle">{{item.description}}</view>
|
||||||
<view class="price"><text>¥</text>{{item.price}}</view>
|
<view class="mian-flex">
|
||||||
<view class="inventory">权证剩余{{item.stock}}</view>
|
<view class="price"><text>¥</text>{{item.price}}</view>
|
||||||
|
<view class="inventory">权证剩余{{item.stock}}</view>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="ios-bottom"></view>
|
||||||
</view>
|
</view>
|
||||||
<view class="ios-bottom"></view>
|
<!-- footer -->
|
||||||
</view>
|
<view class="footer">
|
||||||
<!-- footer -->
|
<view class="footer-flex">
|
||||||
<view class="footer">
|
<view class="flex-checkbox">
|
||||||
<view class="footer-flex">
|
<checkbox class="checkbox" :checked="allSelect" @click="onAllSelect"/>
|
||||||
<view class="flex-checkbox">
|
<label for="all">
|
||||||
<checkbox class="checkbox" :checked="allSelect" @click="onAllSelect"/>
|
<view class="text">全选</view>
|
||||||
<label for="all">
|
<view class="sub-text">已选{{selectGoods.length}}件</view>
|
||||||
<view class="text">全选</view>
|
</label>
|
||||||
<view class="sub-text">已选{{selectGoods.length}}件</view>
|
</view>
|
||||||
</label>
|
<view class="flex-button" @click="setGoods">确定</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="flex-button" @click="setGoods">确定</view>
|
<view class="ios-bottom"></view>
|
||||||
</view>
|
</view>
|
||||||
<view class="ios-bottom"></view>
|
</block>
|
||||||
</view>
|
<no-list v-if="goods.length === 0" name='no-goods' txt="没有任何可选商品~" />
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
@@ -89,7 +89,8 @@
|
|||||||
wechatbind,
|
wechatbind,
|
||||||
resetUserInfo,
|
resetUserInfo,
|
||||||
getUserSettingInfo,
|
getUserSettingInfo,
|
||||||
companyStatus
|
companyStatus,
|
||||||
|
companyIsallow
|
||||||
} from '@/apis/interfaces/setting'
|
} from '@/apis/interfaces/setting'
|
||||||
import {
|
import {
|
||||||
uploads
|
uploads
|
||||||
@@ -141,9 +142,18 @@
|
|||||||
company(code) {
|
company(code) {
|
||||||
if (code === -1) {
|
if (code === -1) {
|
||||||
// 跳转到企业认证页面
|
// 跳转到企业认证页面
|
||||||
this.$Router.push({
|
companyIsallow().then(res=>{
|
||||||
name:'companyApprove'
|
this.$Router.push({
|
||||||
|
name:'companyApprove'
|
||||||
|
})
|
||||||
|
}).catch(err=>{
|
||||||
|
this.$refs.uToast.show({
|
||||||
|
title: err.message,
|
||||||
|
type: 'primary',
|
||||||
|
duration: 3000
|
||||||
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
} else if (code === 2) {
|
} else if (code === 2) {
|
||||||
// 跳转到企业认证页面
|
// 跳转到企业认证页面
|
||||||
this.$Router.push({
|
this.$Router.push({
|
||||||
|
|||||||
@@ -34,7 +34,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="total" v-if="total">≈ ¥{{total.toFixed(2)}} </view>
|
<view class="total" v-if="total">≈ ¥{{total.toFixed(2)}} </view>
|
||||||
<view class="btn" @click="actions">提现至银行卡</view>
|
<view class="btn" @click="actions">提现至银行卡</view>
|
||||||
<view class="des">预计5- 10个工作日到账 手续费: {{tax}}%</view>
|
<view class="des">预计5- 10个工作日到账 手续费: {{tax === '0'?'免手续费':tax+'%'}}</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -74,6 +74,7 @@
|
|||||||
this.cost = res.cost
|
this.cost = res.cost
|
||||||
this.bank_accounts = res.bank_accounts.length
|
this.bank_accounts = res.bank_accounts.length
|
||||||
this.withdraw_input = Number(res.balance)
|
this.withdraw_input = Number(res.balance)
|
||||||
|
this.total = Number(res.balance) * Number(res.cost)
|
||||||
uni.setStorageSync('refresh', false)
|
uni.setStorageSync('refresh', false)
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
@@ -148,7 +149,7 @@
|
|||||||
}
|
}
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
title: '温馨提示',
|
title: '温馨提示',
|
||||||
content: '您是否确认提现,将会扣除' + this.tax + '%手续费',
|
content:this.tax === '0'?'您是否确认提现,交易将免手续费':'您是否确认提现,将会扣除' + this.tax + '%手续费',
|
||||||
confirmColor: '#7c52fc',
|
confirmColor: '#7c52fc',
|
||||||
cancelColor: '#cacaca',
|
cancelColor: '#cacaca',
|
||||||
cancelText: '我再想想',
|
cancelText: '我再想想',
|
||||||
|
|||||||
@@ -11,17 +11,19 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="record-mouth-year">
|
<view class="record-mouth-year">
|
||||||
<view class="record-type-right">
|
<view class="record-type-right">
|
||||||
<view class="record-title">当前能量球</view>
|
<view class="record-title">当前能量球
|
||||||
|
<view class="record-type-left">
|
||||||
|
<u-picker mode="time" v-model="show" :params="params" @confirm='confirm' title='筛选日期'
|
||||||
|
start-year='2021' :end-year='currentYear' />
|
||||||
|
<view @click="show = true">
|
||||||
|
{{date?date:'选择日期'}}
|
||||||
|
<uni-icons type="arrowdown" color="#fff" size="12" />
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
<view class="record-money">{{account || '0.00'}} </view>
|
<view class="record-money">{{account || '0.00'}} </view>
|
||||||
</view>
|
</view>
|
||||||
<view class="record-type-left">
|
|
||||||
<u-picker mode="time" v-model="show" :params="params" @confirm='confirm' title='筛选日期'
|
|
||||||
start-year='2021' :end-year='currentYear' />
|
|
||||||
<view @click="show = true">
|
|
||||||
{{date?date:'选择日期'}}
|
|
||||||
<uni-icons type="arrowdown" color="#fff" size="12" />
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
</view>
|
</view>
|
||||||
<!-- <view class="record-title">碎片个数</view>
|
<!-- <view class="record-title">碎片个数</view>
|
||||||
<view class="record-money"><span>¥</span>{{account || '0.00'}}</view> -->
|
<view class="record-money"><span>¥</span>{{account || '0.00'}}</view> -->
|
||||||
@@ -337,6 +339,12 @@
|
|||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
padding: 0 0 20rpx 0;
|
padding: 0 0 20rpx 0;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
align-items: center;
|
||||||
|
width: 100%;
|
||||||
|
justify-content: space-between;
|
||||||
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
|
|
||||||
.record-money {
|
.record-money {
|
||||||
@@ -381,11 +389,13 @@
|
|||||||
font-size: 30rpx;
|
font-size: 30rpx;
|
||||||
padding-top: 10rpx;
|
padding-top: 10rpx;
|
||||||
color: $text-price;
|
color: $text-price;
|
||||||
.left-des{
|
|
||||||
|
.left-des {
|
||||||
color: #999;
|
color: #999;
|
||||||
font-size: 26rpx;
|
font-size: 26rpx;
|
||||||
margin-left: 20rpx;
|
margin-left: 20rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
span:nth-child(2) {
|
span:nth-child(2) {
|
||||||
color: #C0C0C0;
|
color: #C0C0C0;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
|
|||||||
Reference in New Issue
Block a user