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