初始化商家端
This commit is contained in:
708
pages/tabBar/commodityManagement/commodityManagement.vue
Normal file
708
pages/tabBar/commodityManagement/commodityManagement.vue
Normal file
@ -0,0 +1,708 @@
|
||||
<template>
|
||||
<view class="page" :style="themeColor">
|
||||
<view
|
||||
class="flex flex-direction flex-wrap align-stretch justify-center benben-position-layout flex commodityManagement_flex_0"
|
||||
:style="{height:(88+StatusBarRpx)+'rpx',paddingTop:StatusBarRpx+'rpx'}">
|
||||
<view class='flex flex-wrap align-center justify-between commodityManagement_fd0_0'>
|
||||
<view class='flex flex-wrap align-center commodityManagement_fd0_0_c0' @tap.stop="handleJumpDiy"
|
||||
data-type="back" data-url="1">
|
||||
</view>
|
||||
<view class='flex flex-wrap align-center'>
|
||||
<text class='commodityManagement_fd0_0_c1_c0'>商品管理</text>
|
||||
</view>
|
||||
<view class='flex align-center justify-end commodityManagement_fd0_0_c2' @tap.stop="handleJumpDiy"
|
||||
data-type="navigateTo" :data-url="`/pages/spgl/addProduct/addProduct`">
|
||||
<image class='commodityManagement_fd0_0_c2_c0' mode="aspectFit" :src='STATIC_URL+"94.png"'></image>
|
||||
<text class='commodityManagement_fd0_0_c2_c1'>添加商品</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<view :style="{height: (88+StatusBarRpx)+'rpx'}"></view>
|
||||
|
||||
<view class="footer-select" :style="{height: pageHeight - 95 - StatusBar + 'px'}">
|
||||
<scroll-view scroll-y="true" class="left">
|
||||
<view class="menu-item text-sm" :class="cid==item.aid?'active':''" v-for="(item, index) in CategoryList"
|
||||
:key="index" @tap="CategoryClick(item)">
|
||||
<image v-if="item.aid==0" :src='STATIC_URL+"hot.png"'></image>
|
||||
<view class="">{{item.name}}</view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
<view class="right">
|
||||
<scroll-view scroll-y="true" class="right-scroll">
|
||||
<view class="right-scroll-menu">
|
||||
<view @tap="saleTapMenu(1)" :class="is_sale==1?'active':''">
|
||||
出售中
|
||||
<!-- <text></text> -->
|
||||
</view>
|
||||
<view @tap="saleTapMenu(2)" :class="is_sale!=1?'active':''">
|
||||
下架中
|
||||
<!-- <text></text> -->
|
||||
</view>
|
||||
</view>
|
||||
<view class="right-warp" v-if="batch_show" @click="handleCheckAll">
|
||||
<image v-if="all_choose" :src='STATIC_URL+"44.png"'></image>
|
||||
<image v-else :src='STATIC_URL+"49.png"'></image>
|
||||
<text> 全选</text>
|
||||
</view>
|
||||
<view class="goods-item" v-if="listData.length>0" v-for="(item, index) in listData" :key="index">
|
||||
<view class="goods-item-warp">
|
||||
<view class="goods-item-choose" v-if="batch_show">
|
||||
<image v-if="item.checked" @tap="checTap(item,index)" :src='STATIC_URL+"44.png"'>
|
||||
</image>
|
||||
<image v-else @tap="checTap(item,index)" :src='STATIC_URL+"49.png"'></image>
|
||||
</view>
|
||||
<view class="goods-item-image">
|
||||
<image mode="aspectFill" :src="item.thumb"></image>
|
||||
<!-- <view class="image-pic" v-if="item.is_sale!=1">
|
||||
<image src="/static/shop/xiajia.png"></image>
|
||||
</view> -->
|
||||
</view>
|
||||
<view class="goods-item-name" :class="batch_show?'':'goods-item-name1'">
|
||||
<text class="goods-name">{{item.name}}</text>
|
||||
<view class="goods-money">
|
||||
<text class="salse">月销{{item.sales_sum}} </text>
|
||||
<view class="goods-item-money">
|
||||
<text class="discount-price">¥<text>{{item.shop_price}}</text></text>
|
||||
<text class="original-price">¥{{item.market_price}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="goods-status" v-if="!batch_show">
|
||||
<view class="" @tap.stop="edit(item)">编辑</view>
|
||||
<view class="active" v-if="item.is_sale==1" @tap="saleTap(item,index)">下架</view>
|
||||
<view class="active1" v-else @tap="saleTap(item,index)">上架</view>
|
||||
</view>
|
||||
</view>
|
||||
<fu-empty-ui v-if="listData.length<=0"></fu-empty-ui>
|
||||
</scroll-view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="fotter" v-if="!batch_show">
|
||||
<view class="" @tap="handleJump" data-url="/pages/spgl/commodityManagement/commodityManagement">管理分类</view>
|
||||
<view class="active" @tap="batch(1)">批量管理</view>
|
||||
</view>
|
||||
<view class="fotter" v-if="batch_show">
|
||||
<view class="" @tap="batch(2)">取消</view>
|
||||
<view v-if="is_sale!=1" class="active1" @tap="batchTap(1)">上架</view>
|
||||
<view v-if="is_sale==1" class="active1" @tap="batchTap(2)">下架</view>
|
||||
<view class="active" @tap="batchTap(3)">删除</view>
|
||||
</view>
|
||||
<view :style="{height: '130rpx'}"></view>
|
||||
|
||||
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
components: {},
|
||||
|
||||
|
||||
data() {
|
||||
return {
|
||||
cid: 0,
|
||||
CategoryList: [],
|
||||
keyword: '',
|
||||
listData: [],
|
||||
batch_show: false,
|
||||
all_choose: false, //是否全选
|
||||
is_sale: '1', //1=上架,0=下架
|
||||
pageHeight: 0
|
||||
};
|
||||
},
|
||||
onLoad() {
|
||||
let platInfo = uni.getSystemInfoSync();
|
||||
console.log(platInfo)
|
||||
this.pageHeight = platInfo.windowHeight
|
||||
},
|
||||
computed: {
|
||||
themeColor() {
|
||||
return this.$store.getters.themeColor
|
||||
},
|
||||
|
||||
},
|
||||
onShow() {
|
||||
this.goodsCategoryFind()
|
||||
this.goodsList()
|
||||
},
|
||||
|
||||
methods: {
|
||||
//分类列表
|
||||
goodsCategoryFind() {
|
||||
this.CategoryList = [{
|
||||
name: '热卖',
|
||||
aid: 0
|
||||
}]
|
||||
this.$api.post(global.apiUrls.post6487d63dc3e21).then(res => {
|
||||
if (res.data.code == 1) {
|
||||
this.CategoryList = [...this.CategoryList,...res.data.data]
|
||||
console.log(this.CategoryList)
|
||||
}
|
||||
})
|
||||
},
|
||||
//商品列表
|
||||
goodsList() {
|
||||
this.$api.post(global.apiUrls.post6486d3d711b65, {
|
||||
cid: this.cid,
|
||||
keyword: this.keyword,
|
||||
is_sale: this.is_sale,
|
||||
pageSize: 100
|
||||
}).then(res => {
|
||||
console.log(res)
|
||||
if (res.data.code == 1) {
|
||||
if (res.data.data.data.length > 0) {
|
||||
this.listData = res.data.data.data;
|
||||
this.listData.forEach(res => {
|
||||
res.checked = false
|
||||
})
|
||||
} else {
|
||||
this.listData = []
|
||||
}
|
||||
console.log(this.listData)
|
||||
} else {
|
||||
this.listData = []
|
||||
}
|
||||
})
|
||||
},
|
||||
//上下架操作
|
||||
saleTap(item, index) {
|
||||
let content = item.is_sale == 1 ? '您确定下架该商品吗?' : '您确定上架该商品吗?';
|
||||
let that = this;
|
||||
uni.showModal({
|
||||
title: '温馨提示',
|
||||
content: content,
|
||||
cancelText: '取消',
|
||||
confirmText: '确定',
|
||||
success(res) {
|
||||
if (res.confirm) {
|
||||
that.$api.post(global.apiUrls.post6486d6892d380, {
|
||||
id: item.aid
|
||||
}).then(res => {
|
||||
console.log(res)
|
||||
that.$message.info(res.data.msg)
|
||||
if (res.data.code == 1) {
|
||||
that.listData.splice(index, 1)
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
//编辑商品跳转
|
||||
edit(item) {
|
||||
console.log(item)
|
||||
uni.navigateTo({
|
||||
url: '/pages/spgl/addProduct/addProduct?id=' + item.aid
|
||||
})
|
||||
},
|
||||
//商品是否选中的切换
|
||||
checTap(item, index) {
|
||||
let list = this.listData;
|
||||
this.listData[index].checked = !this.listData[index].checked;
|
||||
list = list.map((item) => {
|
||||
item.checked = item.checked;
|
||||
return item;
|
||||
})
|
||||
this.all_choose = list.every(i => i.checked);
|
||||
console.log(this.all_choose)
|
||||
this.listData = list
|
||||
},
|
||||
//点击全选
|
||||
handleCheckAll() {
|
||||
this.all_choose = !this.all_choose;
|
||||
this.listData = this.listData.map(item => {
|
||||
item.checked = this.all_choose;
|
||||
return item;
|
||||
})
|
||||
},
|
||||
//批量上下架
|
||||
batchTap(index) {
|
||||
console.log(this.listData)
|
||||
let list = this.listData;
|
||||
let ids = [];
|
||||
list.forEach(item => {
|
||||
if (item.checked) {
|
||||
ids.push(item.aid);
|
||||
}
|
||||
});
|
||||
const cart_ids = ids.join(',');
|
||||
console.log(index)
|
||||
|
||||
if (index == 3) {
|
||||
if (!cart_ids) return this.$message.info('请选择删除的商品')
|
||||
this.$api.post(global.apiUrls.post6486d7cae40ad, {
|
||||
ids: cart_ids,
|
||||
}).then(res => {
|
||||
this.$message.info(res.data.msg)
|
||||
if (res.data.code == 1) {
|
||||
this.goodsList()
|
||||
}
|
||||
})
|
||||
} else {
|
||||
if (!cart_ids) return this.$message.info('请选择上下架的商品')
|
||||
this.$api.post(global.apiUrls.post6486d6daa3505, {
|
||||
ids: cart_ids,
|
||||
is_sale: index
|
||||
}).then(res => {
|
||||
this.$message.info(res.data.msg)
|
||||
if (res.data.code == 1) {
|
||||
this.goodsList()
|
||||
this.all_choose = false
|
||||
}
|
||||
})
|
||||
}
|
||||
},
|
||||
saleTapMenu(type) {
|
||||
this.is_sale = type;
|
||||
this.all_choose = false
|
||||
this.goodsList()
|
||||
},
|
||||
//搜索
|
||||
searchTap() {
|
||||
if (!this.keyword) return this.$message.info(`${this.LANGUAGE_DATA['请输入商品名称'][this.LANGUAGE]}`);
|
||||
this.goodsList()
|
||||
},
|
||||
clearTap() {
|
||||
this.keyword = "";
|
||||
this.goodsList()
|
||||
},
|
||||
//分类切换
|
||||
CategoryClick(item) {
|
||||
this.cid = item.aid;
|
||||
this.all_choose = false;
|
||||
this.listData = []
|
||||
this.goodsList()
|
||||
},
|
||||
//批量管理
|
||||
batch(index) {
|
||||
this.batch_show = !this.batch_show
|
||||
if (index == 2 && this.all_choose) {
|
||||
this.all_choose = !this.all_choose;
|
||||
this.listData = this.listData.map(item => {
|
||||
item.checked = this.all_choose;
|
||||
return item;
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.page {
|
||||
width: 100vw;
|
||||
overflow-x: hidden;
|
||||
min-height: calc(100vh - var(--window-bottom));
|
||||
background: rgba(248, 248, 248, 1);
|
||||
background-size: 100% auto !important;
|
||||
}
|
||||
|
||||
page {
|
||||
// padding-bottom: 240rpx;
|
||||
background-color: #F8F8F8;
|
||||
|
||||
.serach {
|
||||
width: 750rpx;
|
||||
padding: 20rpx 32rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
background-color: #F2F2F2;
|
||||
|
||||
.search-warp {
|
||||
width: 702rpx;
|
||||
height: 72rpx;
|
||||
padding: 0 24rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
background-color: #fff;
|
||||
border-radius: 36rpx;
|
||||
|
||||
image {
|
||||
width: 26rpx;
|
||||
height: 26rpx;
|
||||
}
|
||||
|
||||
input {
|
||||
width: 540rpx;
|
||||
padding-left: 16rpx;
|
||||
font-size: 28rpx;
|
||||
}
|
||||
|
||||
.iconfont {
|
||||
color: #999;
|
||||
}
|
||||
}
|
||||
|
||||
.search-box {
|
||||
font-size: 32rpx;
|
||||
color: #F64722;
|
||||
}
|
||||
}
|
||||
|
||||
//底部筛选
|
||||
.footer-select {
|
||||
display: flex;
|
||||
height: 100vh;
|
||||
padding-top: 24rpx;
|
||||
background-color: #F8F8F8;
|
||||
.left {
|
||||
flex-shrink: 0;
|
||||
height: 100%;
|
||||
width: 174rpx;
|
||||
background-color: #fff;
|
||||
|
||||
.menu-item {
|
||||
height: 100rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
text-align: center;
|
||||
border-top: none;
|
||||
border-left: none;
|
||||
font-size: 28rpx;
|
||||
color: #666;
|
||||
background-color: #fff;
|
||||
|
||||
image {
|
||||
width: 26rpx;
|
||||
height: 30rpx;
|
||||
margin-right: 8rpx;
|
||||
}
|
||||
|
||||
view {
|
||||
width: 110rpx;
|
||||
word-break: break-all;
|
||||
overflow-wrap: break-word;
|
||||
word-wrap: break-word;
|
||||
display: -webkit-box;
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-line-clamp: 1;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
&:first-child {}
|
||||
}
|
||||
|
||||
.active {
|
||||
font-weight: bold;
|
||||
color: #FF9300;
|
||||
font-size: 32rpx;
|
||||
background-color: #F8F8F8;
|
||||
border-radius: 0px 0px 0px 0rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.right {
|
||||
width: 544rpx;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding-left: 32rpx;
|
||||
// padding-bottom: 20rpx;
|
||||
|
||||
.right-warp {
|
||||
height: 100rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: flex-start;
|
||||
|
||||
image {
|
||||
width: 36rpx;
|
||||
height: 36rpx;
|
||||
margin-right: 24rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.right-scroll {
|
||||
// height: calc(100% - 42rpx);
|
||||
height: 100%;
|
||||
|
||||
.right-scroll-menu {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin-bottom: 10rpx;
|
||||
view {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
margin-left: 80rpx;
|
||||
font-weight: bold;
|
||||
color: #8E8E93;
|
||||
}
|
||||
|
||||
image {
|
||||
width: 40rpx;
|
||||
height: 15rpx;
|
||||
display: none;
|
||||
}
|
||||
|
||||
text {
|
||||
margin-top: 15rpx;
|
||||
}
|
||||
|
||||
.active {
|
||||
font-weight: bold;
|
||||
color: #0E0E0C;
|
||||
|
||||
image {
|
||||
display: block;
|
||||
}
|
||||
|
||||
text {
|
||||
margin-top: 0rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.goods-item {
|
||||
padding: 24rpx;
|
||||
display: flex;
|
||||
margin-bottom: 24rpx;
|
||||
flex-direction: column;
|
||||
background: #fff;
|
||||
.goods-item-warp {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
|
||||
.goods-item-image {
|
||||
position: relative;
|
||||
|
||||
image {
|
||||
height: 168rpx;
|
||||
width: 168rpx;
|
||||
border-radius: 16rpx;
|
||||
}
|
||||
|
||||
.image-pic {
|
||||
height: 160rpx;
|
||||
width: 160rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
top: 0;
|
||||
left: 0;
|
||||
position: absolute;
|
||||
z-index: 99;
|
||||
opacity: 0.7;
|
||||
background-color: #333;
|
||||
border-radius: 16rpx;
|
||||
|
||||
image {
|
||||
height: 80rpx;
|
||||
width: 80rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.goods-item-name {
|
||||
width: 250rpx;
|
||||
height: 160rpx;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
|
||||
.goods-name {
|
||||
width: 250rpx;
|
||||
font-weight: bold;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.salse {
|
||||
font-size: 24rpx;
|
||||
color: #999999;
|
||||
}
|
||||
|
||||
.goods-item-money {
|
||||
margin-top: 11rpx;
|
||||
|
||||
.discount-price {
|
||||
color: #FD501E;
|
||||
font-size: 24rpx;
|
||||
line-height: 36rpx;
|
||||
|
||||
text {
|
||||
font-size: 32rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.original-price {
|
||||
font-size: 22rpx;
|
||||
color: #999999;
|
||||
line-height: 34rpx;
|
||||
text-decoration: line-through;
|
||||
padding-left: 16rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.goods-item-zhe {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
font-size: 20rpx;
|
||||
color: #FD501E;
|
||||
|
||||
image {
|
||||
width: 18rpx;
|
||||
height: 18rpx;
|
||||
margin-right: 5rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.goods-item-name1 {
|
||||
width: 280rpx;
|
||||
}
|
||||
|
||||
.goods-item-choose {
|
||||
image {
|
||||
width: 36rpx;
|
||||
height: 36rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.goods-status {
|
||||
margin-top: 24rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
view {
|
||||
width: 188rpx;
|
||||
height:64rpx;
|
||||
margin-right: 24rpx;
|
||||
text-align: center;
|
||||
line-height: 64rpx;
|
||||
font-size: 24rpx;
|
||||
color: #FF9300;
|
||||
border-radius: 8rpx;
|
||||
background-color: #FFEACC;
|
||||
}
|
||||
|
||||
.active {
|
||||
color: #666666;
|
||||
background-color: #F2F2F2;
|
||||
// border: 1rpx solid #BFBFBF;
|
||||
}
|
||||
|
||||
.active1 {
|
||||
color: #666666;
|
||||
background-color: #F2F2F2;
|
||||
// border: 1rpx solid #BFBFBF;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.goods-item-img {
|
||||
margin-top: 100rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
|
||||
image {
|
||||
width: 369.6rpx;
|
||||
height: 261.6rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.fotter {
|
||||
width: 100%;
|
||||
height: 100rpx;
|
||||
padding: 0 104rpx;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
position: fixed;
|
||||
|
||||
/* #ifdef APP-PLUS */
|
||||
bottom: calc(constant(safe-area-inset-bottom) + 0rpx);
|
||||
bottom: calc(env(safe-area-inset-bottom) + 0rpx);
|
||||
/* #endif */
|
||||
|
||||
/* #ifdef H5 */
|
||||
bottom: calc(constant(safe-area-inset-bottom) + 100rpx);
|
||||
bottom: calc(env(safe-area-inset-bottom) + 100rpx);
|
||||
/* #endif */
|
||||
|
||||
|
||||
z-index: 999999;
|
||||
background-color: #fff;
|
||||
|
||||
view {
|
||||
width: 240rpx;
|
||||
height: 64rpx;
|
||||
margin-left: 24rpx;
|
||||
text-align: center;
|
||||
line-height: 64rpx;
|
||||
font-size: 24rpx;
|
||||
color: #fff;
|
||||
font-weight: bold;
|
||||
border-radius: 32rpx;
|
||||
background: #FF9300;
|
||||
}
|
||||
|
||||
.active {
|
||||
color: #FF9300;
|
||||
background: #FFFFFF;
|
||||
border: 1rpx solid #FF9300;
|
||||
}
|
||||
|
||||
.active1 {
|
||||
color: #666666;
|
||||
background: #E5E5E5;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
.commodityManagement_flex_0 {
|
||||
background: #fff;
|
||||
width: 750rpx;
|
||||
height: 88rpx;
|
||||
overflow: hidden;
|
||||
z-index: 10;
|
||||
top: 0rpx;
|
||||
background-size: 100% auto !important;
|
||||
}
|
||||
|
||||
.commodityManagement_fd0_0_c2_c1 {
|
||||
font-size: 28rpx;
|
||||
font-weight: 500;
|
||||
color: #373737;
|
||||
line-height: 28rpx;
|
||||
}
|
||||
|
||||
.commodityManagement_fd0_0_c2_c0 {
|
||||
width: 28rpx;
|
||||
height: 28rpx;
|
||||
border-radius: 0rpx 0rpx 0rpx 0rpx;
|
||||
margin: 0rpx 10rpx 0rpx 0rpx;
|
||||
}
|
||||
|
||||
.commodityManagement_fd0_0_c2 {
|
||||
padding: 0rpx 0rpx 0rpx 0rpx;
|
||||
width: 200rpx;
|
||||
}
|
||||
|
||||
.commodityManagement_fd0_0_c1_c0 {
|
||||
font-size: 36rpx;
|
||||
font-weight: 600;
|
||||
color: #373737;
|
||||
line-height: 36rpx;
|
||||
}
|
||||
|
||||
.commodityManagement_fd0_0_c0 {
|
||||
width: 200rpx;
|
||||
}
|
||||
|
||||
.commodityManagement_fd0_0 {
|
||||
padding: 0rpx 32rpx 0rpx 32rpx;
|
||||
}
|
||||
</style>
|
||||
1174
pages/tabBar/myPage/myPage.vue
Normal file
1174
pages/tabBar/myPage/myPage.vue
Normal file
File diff suppressed because it is too large
Load Diff
32
pages/tabBar/no-login/index.vue
Normal file
32
pages/tabBar/no-login/index.vue
Normal file
@ -0,0 +1,32 @@
|
||||
<template>
|
||||
<view class="warp">
|
||||
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default{
|
||||
data(){
|
||||
return{}
|
||||
},
|
||||
onReady() {
|
||||
let token = global.token
|
||||
console.log(token)
|
||||
if(!token){
|
||||
uni.reLaunch({
|
||||
url:'/pages/tabBar/passwordLogi/passwordLogi'
|
||||
})
|
||||
}else{
|
||||
uni.switchTab({
|
||||
url:"/pages/tabBar/takeouTorders/takeouTorders"
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
page{
|
||||
background-color: #fff;
|
||||
}
|
||||
</style>
|
||||
615
pages/tabBar/passwordLogi/passwordLogi.vue
Normal file
615
pages/tabBar/passwordLogi/passwordLogi.vue
Normal file
@ -0,0 +1,615 @@
|
||||
<template>
|
||||
<view class="page" :style="themeColor">
|
||||
<!---flex布局flex布局开始-->
|
||||
<view class="flex flex-direction flex-wrap align-stretch benben-flex-layout passwordLogi_flex_0">
|
||||
<view class='flex flex-wrap align-center passwordLogi_fd0_0'>
|
||||
<text class='passwordLogi_fd0_0_c0'>欢迎来到萬家商超商家端</text>
|
||||
</view>
|
||||
<view class='flex flex-direction flex-wrap align-stretch passwordLogi_fd0_1'>
|
||||
<text class='passwordLogi_fd0_1_c0'>账号</text>
|
||||
<view class='flex flex-wrap align-center justify-between'>
|
||||
<input style="width: 100%;" type="number" placeholder="请输入手机号" confirm-type="done" :maxlength="11"
|
||||
placeholder-style="color:rgba(191, 191, 191, 1);font-size:32rpx" v-model="mible" />
|
||||
</view>
|
||||
</view>
|
||||
<view class='flex flex-direction flex-wrap align-stretch passwordLogi_fd0_2'>
|
||||
<text class='passwordLogi_fd0_2_c0'>密码</text>
|
||||
<view class='flex flex-wrap align-center justify-between'>
|
||||
<benben-flex-password-diy v-model="Passworld"
|
||||
class-name="flex flex align-center passwordLogi_fd0_2_c1_c0" :placeholder="'请输入密码(6~12位字母+数字)'"
|
||||
:maxlength="12" :default-type='true' placeholder-style="color:#999;font-size:32rpx">
|
||||
<template #show>
|
||||
<text class='fu-iconfont2 passwordLogi_fd0_2_c1_c0_icon1' data-type="show"></text>
|
||||
</template>
|
||||
<template #hide>
|
||||
<text class='fu-iconfont2 passwordLogi_fd0_2_c1_c0_icon2' data-type="hide"></text>
|
||||
</template>
|
||||
</benben-flex-password-diy>
|
||||
</view>
|
||||
</view>
|
||||
<view class='flex flex-direction-row-reverse flex-wrap align-center passwordLogi_fd0_3'>
|
||||
<text v-if="isPublish!=1" class='passwordLogi_fd0_3_c0' @tap.stop="handleJumpDiy" data-type="navigateTo"
|
||||
:data-url="`/pages/dl/codeLogin/codeLogin`">验证码登录</text>
|
||||
</view>
|
||||
<view class='flex flex-wrap align-center passwordLogi_fd0_4'>
|
||||
<button class='flex-sub passwordLogi_fd0_4_c0' @tap.stop="validationLoginFunc()">立即登录</button>
|
||||
</view>
|
||||
<view class='flex flex-wrap align-center justify-center passwordLogi_fd0_5' v-if="isPublish!=1">
|
||||
<text class='passwordLogi_fd0_5_c0' @tap.stop="handleJumpDiy" data-type="navigateTo"
|
||||
:data-url="`/pages/dl/registerPage/registerPage`">注册账号</text>
|
||||
|
||||
<view class='flex passwordLogi_fd0_5_c1'></view>
|
||||
<text class='passwordLogi_fd0_5_c2' @tap.stop="handleJumpDiy" data-type="navigateTo"
|
||||
:data-url="`/pages/dl/forgotPassword/forgotPassword`">忘记密码</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!---flex布局flex布局结束-->
|
||||
<!-- <view class="flex flex-direction align-center benben-position-layout flex passwordLogi_flex_1">
|
||||
<view class='flex flex-wrap align-center'>
|
||||
<view class='flex flex-wrap align-center passwordLogi_fd1_0_c0'>
|
||||
</view>
|
||||
<text class='passwordLogi_fd1_0_c1'>快捷登录</text>
|
||||
<view class='flex flex-wrap align-center passwordLogi_fd1_0_c2'>
|
||||
</view>
|
||||
</view>
|
||||
<image class='passwordLogi_fd1_1' :src='STATIC_URL+"119.png"' @tap.stop="wxLogin"></image>
|
||||
|
||||
</view> -->
|
||||
<view class='flex flex-wrap align-center justify-center registerPage_fd1_5'>
|
||||
<benben-flex-switch-new class-name='flex flex registerPage_fd1_5_c0' v-model="is_tick" :disabled='false'
|
||||
:auto='true'>
|
||||
<template v-slot:checked>
|
||||
|
||||
<view class='flex flex position-relative align-center'>
|
||||
<image class='registerPage_checkfd1_5_c0_c0_c0' mode="aspectFit" :src='STATIC_URL+"44.png"'>
|
||||
</image>
|
||||
</view>
|
||||
|
||||
</template>
|
||||
<template v-slot:unchecked>
|
||||
|
||||
<view class='flex flex position-relative justify-end align-center'>
|
||||
<image class='registerPage_noCheckfd1_5_c0_c1_c0' mode="aspectFit"
|
||||
:src='STATIC_URL+"117.png"'></image>
|
||||
</view>
|
||||
|
||||
</template>
|
||||
</benben-flex-switch-new>
|
||||
<text class='registerPage_fd1_5_c1'>已阅读并同意</text>
|
||||
<text class='registerPage_fd1_5_c2' @tap.stop="handleJumpDiy" data-type="navigateTo"
|
||||
:data-url="`/pages/dl/registrationAgreemen/registrationAgreemen?type=9`">《用户注册协议》</text>
|
||||
<text class='registerPage_fd1_5_c3'>与</text>
|
||||
<text class='registerPage_fd1_5_c4' @tap.stop="handleJumpDiy" data-type="navigateTo"
|
||||
:data-url="`/pages/dl/registrationAgreemen/registrationAgreemen?type=10`">《隐私政策》</text>
|
||||
</view>
|
||||
<view :style="{height: '300rpx'}"></view>
|
||||
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
import {
|
||||
validate
|
||||
} from '@/common/utils/validate.js'
|
||||
import {ACCEPT_PLATFORM } from '@/common/config.js';
|
||||
export default {
|
||||
components: {},
|
||||
|
||||
|
||||
data() {
|
||||
return {
|
||||
"mible": "",
|
||||
"Passworld": "",
|
||||
"token": "",
|
||||
is_click: "",
|
||||
is_tick: false,
|
||||
isPublish:"" //0已上架 1上架中
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
themeColor() {
|
||||
return this.$store.getters.themeColor
|
||||
},
|
||||
|
||||
},
|
||||
watch: {},
|
||||
onLoad(options) {
|
||||
|
||||
},
|
||||
onShow() {
|
||||
this.getPublishStatus()
|
||||
},
|
||||
methods: {
|
||||
getPublishStatus() {
|
||||
console.log(SYSTEM_CONFIG.appVersion);
|
||||
let _platform = uni.getSystemInfoSync().platform;
|
||||
this.$api.post(global.apiUrls.post673572b0bebd7, {
|
||||
app_version: SYSTEM_CONFIG.appVersion,
|
||||
type: ACCEPT_PLATFORM == 'IOS' ? 'ios' : 'android'},
|
||||
) .then(res => {
|
||||
if (res.data.code == 1) {
|
||||
this.isPublish = res.data.data.is_listing;
|
||||
console.log('上架状态', res.data.data.is_listing);
|
||||
}
|
||||
})
|
||||
},
|
||||
//效验登录
|
||||
validationLoginFunc() {
|
||||
if (!validate(this.mible, 'require')) {
|
||||
this.$message.info('手机号不能为空');
|
||||
return false;
|
||||
}
|
||||
if (!validate(this.mible, 'phone')) {
|
||||
this.$message.info('请输入正确的手机号');
|
||||
return false;
|
||||
}
|
||||
if (!validate(this.Passworld, 'require')) {
|
||||
this.$message.info('密码不能为空');
|
||||
return false;
|
||||
}
|
||||
if (!validate(this.Passworld, 'password')) {
|
||||
this.$message.info('请输入密码(6~12位字母+数字)');
|
||||
return false;
|
||||
}
|
||||
if (this.is_tick === false) {
|
||||
this.$message.info('请先阅读并同意《用户协议》和 《隐私政策》');
|
||||
return false;
|
||||
}
|
||||
let clientId = 'clientId';
|
||||
let appSystem = 'appSystem';
|
||||
|
||||
// #ifdef APP-PLUS
|
||||
clientId = plus.push.getClientInfo().clientid || '';
|
||||
console.log('getClientInfo', plus.push.getClientInfo());
|
||||
appSystem = uni.getSystemInfoSync().platform == 'ios' ? 1 : 2;
|
||||
// #endif
|
||||
this.is_click = true;
|
||||
// postloginByAccount 账号密码登录接口
|
||||
this.$api.post(global.apiUrls.postloginByAccount, {
|
||||
account: this.mible,
|
||||
password:this.Passworld,
|
||||
client_id: clientId,
|
||||
appSystem,
|
||||
account_type:"mobile"
|
||||
}).then(res => {
|
||||
this.is_click = false;
|
||||
if (res.data.code == 1 && res.data.data) {
|
||||
global.tokenres=res.data.data.userinfo.user_token
|
||||
console.log(global.tokenres)
|
||||
this.authInfoCheck(res)
|
||||
// this.$message.info(res.data.msg); // 提示框
|
||||
// this.$store.commit('updateUserInfo', res.data.data.userinfo); // 修改vuex储存的用户信息
|
||||
// setTimeout(() => {
|
||||
// uni.navigateBack(); // 返回上一页
|
||||
// }, 800);
|
||||
} else {
|
||||
this.$message.info(res.data.msg); // 错误提示框
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
authInfoCheck(){
|
||||
console.log(global.apiUrls.authInfoCheck);
|
||||
this.$api.post(global.apiUrls.authInfoCheck).then(res=>{
|
||||
if(res.data.code==1){
|
||||
this._loginSuccess(res)
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
Get5d8b062aefc08(userInfo){
|
||||
let clientId = '8989898989';
|
||||
let appSystem = 'appSystem';
|
||||
// #ifdef APP-PLUS
|
||||
clientId = plus.push.getClientInfo().clientid || '';
|
||||
console.log('getClientInfo', plus.push.getClientInfo());
|
||||
appSystem = uni.getSystemInfoSync().platform == 'ios' ? 1 : 2;
|
||||
// #endif
|
||||
this.$api.post(global.apiUrls.Get5d8b062aefc08,{
|
||||
client_id:clientId
|
||||
}).then(res=>{
|
||||
if(res.data.code==1){
|
||||
this.$message.info('登录成功');
|
||||
global.token = global.tokenres
|
||||
global.userInfo = userInfo
|
||||
this.$store.commit('updateUserInfo', userInfo); // 修改vuex储存的用户信息
|
||||
try {
|
||||
uni.setStorageSync('USER_TOKEN', global.token)
|
||||
uni.setStorageSync('USER_INFO', global.userInfo)
|
||||
uni.$emit('appLoginSuccess')
|
||||
console.log(222222222)
|
||||
setTimeout(() => {
|
||||
uni.switchTab({
|
||||
url: '/pages/tabBar/takeouTorders/takeouTorders'
|
||||
})
|
||||
}, 1000)
|
||||
} catch (e) {
|
||||
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
// 登录成功
|
||||
_loginSuccess(res) {
|
||||
console.log(res.data.data)
|
||||
if (res.data.code == 1) {
|
||||
// global.token = res.data.data.userinfo.user_token;
|
||||
// 状态:-1=未提交 0=审核中 1=通过 2=驳回
|
||||
if (res.data.data.status == 0) {
|
||||
uni.navigateTo({
|
||||
url: '/pages/dl/certificationAudit/certificationAudit?stateUS=1'
|
||||
})
|
||||
} else if (res.data.data.status == 1) {
|
||||
|
||||
this.Get5d8b062aefc08(res.data.data)
|
||||
|
||||
|
||||
} else if (res.data.data.status == 2) {
|
||||
// global.tokenres = res.data.data.userinfo.user_token
|
||||
setTimeout(() => {
|
||||
uni.navigateTo({
|
||||
url: '/pages/dl/certificationAudit/certificationAudit?stateUS=' + '2' +
|
||||
'&reason=' + res.data.data.reason,
|
||||
})
|
||||
}, 300)
|
||||
} else {
|
||||
// global.tokenres = res.data.data.userinfo.user_token
|
||||
uni.navigateTo({
|
||||
url: '/pages/dl/certifiedMerchant/certifiedMerchant?type=' + 0
|
||||
})
|
||||
}
|
||||
} else {
|
||||
this.$message.info(res.data.msg);
|
||||
}
|
||||
},
|
||||
/**
|
||||
* @func 微信登录
|
||||
*/
|
||||
wxLogin() {
|
||||
let _this = this;
|
||||
// #ifdef APP-PLUS
|
||||
if (
|
||||
plus.runtime.isApplicationExist({
|
||||
pname: 'com.tencent.mm',
|
||||
action: 'weixin://'
|
||||
})
|
||||
) {
|
||||
uni.getProvider({
|
||||
service: 'oauth',
|
||||
success: function(res) {
|
||||
//支持微信、qq和微博等
|
||||
if (~res.provider.indexOf('weixin')) {
|
||||
_this.wx_login_fn(); // 去微信授权
|
||||
}
|
||||
},
|
||||
fail: function(err) {
|
||||
console.log(err);
|
||||
}
|
||||
});
|
||||
} else {
|
||||
_this.$api.msg(this.i18n['请安装微信后再使用此功能']);
|
||||
}
|
||||
// #endif
|
||||
},
|
||||
/**
|
||||
* @func 微信授权登录
|
||||
*/
|
||||
wx_login_fn() {
|
||||
let _this = this;
|
||||
console.log(1111111111)
|
||||
uni.login({
|
||||
provider: 'weixin',
|
||||
success: function(loginRes) {
|
||||
// 获取用户信息
|
||||
uni.getUserInfo({
|
||||
provider: 'weixin',
|
||||
success: function(infoRes) {
|
||||
let {
|
||||
nickName,
|
||||
avatarUrl,
|
||||
gender
|
||||
} = infoRes.userInfo;
|
||||
// #ifdef APP-PLUS
|
||||
let clientId = plus.push.getClientInfo().clientid || '';
|
||||
let appSystem = uni.getSystemInfoSync().platform == 'ios' ? 1 : 2;
|
||||
// #endif
|
||||
// postUserSocialLogin 第三方登录接口
|
||||
_this.$api.post(global.apiUrls.postUserSocialLogin, {
|
||||
type: 1,
|
||||
wx_unionid: infoRes.userInfo.unionId,
|
||||
qq_unionid: '',
|
||||
wb_unionid: '',
|
||||
clientId: clientId || '',
|
||||
appSystem: appSystem || '',
|
||||
nickname: nickName,
|
||||
avatar: avatarUrl,
|
||||
gender: gender
|
||||
}).then(res => {
|
||||
console.log(res)
|
||||
global.tempUserLoginInfo = infoRes
|
||||
.userInfo; // 修改global 的用户信息
|
||||
uni.hideLoading(); // 关闭loading
|
||||
if (res.data.code == 1) {
|
||||
if (res.data.data.userinfo.approve_status == 0) {
|
||||
uni.navigateTo({
|
||||
url: '/pages/dl/certificationAudit/certificationAudit?stateUS=1'
|
||||
})
|
||||
} else if (res.data.data.userinfo.approve_status ==1) {
|
||||
_this.$message.info(_this.i18n['登录成功']);
|
||||
global.token = res.data.data.userinfo.user_token
|
||||
global.userInfo = res.data.data.userinfo
|
||||
_this.$store.commit('updateUserInfo', res.data
|
||||
.data.userinfo); // 修改vuex储存的用户信息
|
||||
try {
|
||||
uni.setStorageSync('USER_TOKEN', global.token)
|
||||
uni.setStorageSync('USER_INFO', global.userInfo)
|
||||
uni.$emit('appLoginSuccess')
|
||||
console.log(222222222)
|
||||
setTimeout(() => {
|
||||
uni.switchTab({
|
||||
url: '/pages/tabBar/takeouTorders/takeouTorders'
|
||||
})
|
||||
}, 1000)
|
||||
} catch (e) {
|
||||
|
||||
}
|
||||
} else if (res.data.data.userinfo.approve_status ==2) {
|
||||
global.tokenres = res.data.data.userinfo.user_token
|
||||
setTimeout(() => {
|
||||
uni.navigateTo({
|
||||
url: '/pages/dl/certificationAudit/certificationAudit?stateUS=' +
|
||||
'2' +
|
||||
'&reason=' + res
|
||||
.data.data.userinfo
|
||||
.reason,
|
||||
})
|
||||
}, 300)
|
||||
} else {
|
||||
global.tokenres = res.data.data.userinfo.user_token
|
||||
uni.navigateTo({
|
||||
url: '/pages/dl/certifiedMerchant/certifiedMerchant?type=' +0
|
||||
})
|
||||
}
|
||||
} else if (res.data.code == -999) {
|
||||
_this.$urouter.navigateTo({
|
||||
url: '/pages/dl/Bindphonenumber/Bindphonenumber',
|
||||
params: {
|
||||
unionId: infoRes.userInfo.unionId,
|
||||
openId: infoRes.userInfo.openId,
|
||||
sex: infoRes.userInfo.gender,
|
||||
nickName: infoRes.userInfo.nickName,
|
||||
avatarUrl: infoRes.userInfo.avatarUrl,
|
||||
authType: 'wx_unionid'
|
||||
}
|
||||
});
|
||||
// 点击手机号账号登录按钮 -1 hash参数无效
|
||||
} else if (res.code == -1) {
|
||||
_this.$message.info(res.data.msg); //
|
||||
return;
|
||||
}
|
||||
}).catch(err => {
|
||||
uni.hideLoading(); // 关闭loading
|
||||
console.log(err);
|
||||
});
|
||||
}
|
||||
});
|
||||
},
|
||||
fail: function(err) {
|
||||
console.log(err);
|
||||
uni.hideLoading(); // 关闭loading
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.page {
|
||||
width: 100vw;
|
||||
overflow-x: hidden;
|
||||
min-height: calc(100vh - var(--window-bottom));
|
||||
background: url(/static/images/81.png) no-repeat, rgba(255, 255, 255, 1);
|
||||
background-size: 100% auto !important;
|
||||
}
|
||||
.registerPage_fd1_5_c4 {
|
||||
color: #59A6F4;
|
||||
font-size: 22rpx;
|
||||
font-weight: 400;
|
||||
line-height: 32rpx;
|
||||
}
|
||||
|
||||
.registerPage_fd1_5_c3 {
|
||||
color: rgba(102, 102, 102, 1);
|
||||
font-size: 22rpx;
|
||||
font-weight: 400;
|
||||
line-height: 32rpx;
|
||||
}
|
||||
|
||||
.registerPage_fd1_5_c2 {
|
||||
color: #59A6F4;
|
||||
font-size: 22rpx;
|
||||
font-weight: 400;
|
||||
line-height: 32rpx;
|
||||
}
|
||||
|
||||
.registerPage_fd1_5_c1 {
|
||||
color: rgba(102, 102, 102, 1);
|
||||
font-size: 22rpx;
|
||||
font-weight: 400;
|
||||
line-height: 32rpx;
|
||||
}
|
||||
|
||||
.registerPage_noCheckfd1_5_c0_c1_c0 {
|
||||
border-radius: 24rpx 24rpx 24rpx 24rpx;
|
||||
width: 24rpx;
|
||||
height: 24rpx;
|
||||
}
|
||||
|
||||
.registerPage_checkfd1_5_c0_c0_c0 {
|
||||
width: 24rpx;
|
||||
height: 24rpx;
|
||||
border-radius: 24rpx 24rpx 24rpx 24rpx;
|
||||
}
|
||||
|
||||
::v-deep .registerPage_fd1_5_c0 {
|
||||
margin: 0rpx 8rpx 0rpx 0rpx;
|
||||
}
|
||||
|
||||
.registerPage_fd1_5 {
|
||||
position: fixed;
|
||||
bottom: 40rpx;
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
padding: 32rpx 0rpx 0rpx 0rpx;
|
||||
}
|
||||
.passwordLogi_flex_0 {
|
||||
padding: 296rpx 75rpx 0rpx 75rpx;
|
||||
}
|
||||
|
||||
.passwordLogi_fd0_5_c2 {
|
||||
color: #999999;
|
||||
font-size: 28rpx;
|
||||
font-weight: 400;
|
||||
line-height: 34rpx;
|
||||
}
|
||||
|
||||
.passwordLogi_fd0_5_c1 {
|
||||
background: rgba(171, 163, 163, 1);
|
||||
width: 1rpx;
|
||||
height: 30rpx;
|
||||
margin: 0rpx 20rpx 0rpx 20rpx;
|
||||
transform: scaleX(0.5);
|
||||
}
|
||||
|
||||
.passwordLogi_fd0_5_c0 {
|
||||
color: #999999;
|
||||
font-size: 28rpx;
|
||||
font-weight: 400;
|
||||
line-height: 34rpx;
|
||||
}
|
||||
|
||||
.passwordLogi_fd0_5 {
|
||||
margin: 40rpx 0rpx 0rpx 0rpx;
|
||||
}
|
||||
|
||||
.passwordLogi_fd0_4_c0 {
|
||||
background: rgba(255, 147, 0, 1);
|
||||
border-radius: 44rpx 44rpx 44rpx 44rpx;
|
||||
font-size: 32rpx;
|
||||
color: #fff;
|
||||
height: 80rpx;
|
||||
line-height: 80rpx;
|
||||
}
|
||||
|
||||
.passwordLogi_fd0_4 {
|
||||
padding: 48rpx 0rpx 0rpx 0rpx;
|
||||
}
|
||||
|
||||
.passwordLogi_fd0_3_c0 {
|
||||
color: #333333;
|
||||
font-size: 28rpx;
|
||||
font-weight: 400;
|
||||
line-height: 38rpx;
|
||||
}
|
||||
|
||||
.passwordLogi_fd0_3 {
|
||||
margin: 32rpx 0rpx 0rpx 0rpx;
|
||||
}
|
||||
|
||||
.passwordLogi_fd0_2_c1_c0_icon2 {
|
||||
width: 88rpx;
|
||||
line-height: 88rpx;
|
||||
text-align: center;
|
||||
font-size: 40rpx;
|
||||
}
|
||||
|
||||
.passwordLogi_fd0_2_c1_c0_icon1 {
|
||||
width: 88rpx;
|
||||
line-height: 88rpx;
|
||||
text-align: center;
|
||||
font-size: 40rpx;
|
||||
}
|
||||
|
||||
::v-deep .passwordLogi_fd0_2_c1_c0 {
|
||||
width: 600rpx;
|
||||
font-size: 32rpx;
|
||||
height: 50rpx;
|
||||
}
|
||||
|
||||
.passwordLogi_fd0_2_c0 {
|
||||
margin: 0rpx 0rpx 24rpx 0rpx;
|
||||
color: #333333;
|
||||
font-size: 30rpx;
|
||||
font-weight: 600;
|
||||
line-height: 32rpx;
|
||||
}
|
||||
|
||||
.passwordLogi_fd0_2 {
|
||||
border-bottom: 1px solid #eee;
|
||||
padding: 40rpx 0rpx 20rpx 0rpx;
|
||||
}
|
||||
|
||||
.passwordLogi_fd0_1_c0 {
|
||||
margin: 0rpx 0rpx 24rpx 0rpx;
|
||||
color: #333333;
|
||||
font-size: 30rpx;
|
||||
font-weight: 600;
|
||||
line-height: 32rpx;
|
||||
}
|
||||
|
||||
.passwordLogi_fd0_1 {
|
||||
border-bottom: 1px solid #eee;
|
||||
padding: 40rpx 0rpx 20rpx 0rpx;
|
||||
}
|
||||
|
||||
.passwordLogi_fd0_0_c0 {
|
||||
color: #333333;
|
||||
font-size: 50rpx;
|
||||
font-weight: 600;
|
||||
line-height: 50rpx;
|
||||
}
|
||||
|
||||
.passwordLogi_fd0_0 {
|
||||
margin: 0rpx 0rpx 24rpx 0rpx;
|
||||
}
|
||||
|
||||
.passwordLogi_flex_1 {
|
||||
background: #fff;
|
||||
width: 750rpx;
|
||||
height: 300rpx;
|
||||
overflow: hidden;
|
||||
z-index: 10;
|
||||
bottom: calc(0rpx + var(--window-bottom));
|
||||
background-size: 100% auto !important;
|
||||
}
|
||||
|
||||
.passwordLogi_fd1_1 {
|
||||
width: 80rpx;
|
||||
height: 80rpx;
|
||||
border-radius: 0rpx 0rpx 0rpx 0rpx;
|
||||
margin: 40rpx 0rpx 0rpx 0rpx;
|
||||
}
|
||||
|
||||
.passwordLogi_fd1_0_c2 {
|
||||
background: rgba(238, 238, 238, 1);
|
||||
background-size: 100% auto !important;
|
||||
height: 1rpx;
|
||||
width: 157rpx;
|
||||
}
|
||||
|
||||
.passwordLogi_fd1_0_c1 {
|
||||
line-height: 32rpx;
|
||||
font-size: 26rpx;
|
||||
font-weight: 400;
|
||||
color: #999999;
|
||||
padding: 0rpx 7rpx 0rpx 7rpx;
|
||||
}
|
||||
|
||||
.passwordLogi_fd1_0_c0 {
|
||||
background: rgba(238, 238, 238, 1);
|
||||
background-size: 100% auto !important;
|
||||
height: 1rpx;
|
||||
width: 157rpx;
|
||||
}
|
||||
</style>
|
||||
588
pages/tabBar/storeManagement/storeManagement.vue
Normal file
588
pages/tabBar/storeManagement/storeManagement.vue
Normal file
@ -0,0 +1,588 @@
|
||||
<template>
|
||||
<view class="page" :style="themeColor">
|
||||
<!---flex布局flex布局开始-->
|
||||
<view class="flex benben-flex-layout flex-wrap align-center storeManagement_flex_0">
|
||||
<view class='flex flex-direction flex-wrap align-stretch flex-sub storeManagement_fd0_0'>
|
||||
<view class='flex flex-wrap align-center justify-between'>
|
||||
<view class='flex flex-wrap align-center'>
|
||||
<text class='storeManagement_fd0_0_c0_c0_c0'>今日营业统计</text>
|
||||
</view>
|
||||
<view class='flex flex-wrap align-center' @tap.stop="handleJumpDiy" data-type="navigateTo"
|
||||
:data-url="`/pages/dpgl/statisticalDetails/statisticalDetails`">
|
||||
<text class='storeManagement_fd0_0_c0_c1_c0'>资金统计</text>
|
||||
<text class='fu-iconfont2 storeManagement_fd0_0_c0_c1_c1'></text>
|
||||
</view>
|
||||
</view>
|
||||
<view class='flex flex-wrap align-center justify-around storeManagement_fd0_0_c1'>
|
||||
<view class='flex flex-direction flex-wrap align-center'>
|
||||
<view class='flex flex-wrap align-center'>
|
||||
<text class='storeManagement_fd0_0_c1_c0_c0_c0'>¥</text>
|
||||
<view class=' storeManagement_fd0_0_c1_c0_c0_c1'>
|
||||
<text class=' storeManagement_price1_fd0_0_c1_c0_c0_c1'>{{ details.order_money | frontPrice }}</text>
|
||||
<text class=' storeManagement_price2_fd0_0_c1_c0_c0_c1'>{{ details.order_money | laterPrice }}</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class='flex flex-wrap align-center storeManagement_fd0_0_c1_c0_c1'>
|
||||
<text class='storeManagement_fd0_0_c1_c0_c1_c0'>今日营业额</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class='flex flex-direction flex-wrap align-center'>
|
||||
<view class='flex flex-wrap align-center'>
|
||||
<text class='storeManagement_fd0_0_c1_c1_c0_c0'>{{details.order_num}}</text>
|
||||
</view>
|
||||
<view class='flex flex-wrap align-center'>
|
||||
<text class='storeManagement_fd0_0_c1_c1_c1_c0'>订单数(单)</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!---flex布局flex布局结束-->
|
||||
<!---flex布局flex布局开始-->
|
||||
<view class="flex benben-flex-layout flex-wrap align-center storeManagement_flex_1">
|
||||
<view class='flex flex-direction flex-wrap align-center justify-center storeManagement_fd1_0'
|
||||
@tap.stop="handleJumpDiy" data-type="navigateTo"
|
||||
:data-url="`/pages/dpgl/businessSettings/businessSettings`">
|
||||
<image class='storeManagement_fd1_0_c0' mode="aspectFit" :src='STATIC_URL+"34.png"'></image>
|
||||
<text class='storeManagement_fd1_0_c1'>营业设置</text>
|
||||
</view>
|
||||
<view class='flex flex-direction flex-wrap align-center justify-center storeManagement_fd1_1'
|
||||
@tap.stop="handleJumpDiy" data-type="navigateTo"
|
||||
:data-url="`/pages/dpgl/evaluationManagement/evaluationManagement`">
|
||||
<image class='storeManagement_fd1_1_c0' mode="aspectFit" :src='STATIC_URL+"35.png"'></image>
|
||||
<text class='storeManagement_fd1_1_c1'>评价管理</text>
|
||||
</view>
|
||||
<view class='flex flex-direction flex-wrap align-center justify-center storeManagement_fd1_2'
|
||||
@tap.stop="handleJumpDiy" data-type="navigateTo"
|
||||
:data-url="`/pages/dpgl/historicalOrders/historicalOrders`">
|
||||
<image class='storeManagement_fd1_2_c0' mode="aspectFit" :src='STATIC_URL+"36.png"'></image>
|
||||
<text class='storeManagement_fd1_2_c1'>历史订单</text>
|
||||
</view>
|
||||
<view class='flex flex-direction flex-wrap align-center justify-center storeManagement_fd1_3'
|
||||
@tap.stop="popupShow1684207265519=true">
|
||||
<image class='storeManagement_fd1_3_c0' mode="aspectFit" :src='STATIC_URL+"37.png"'></image>
|
||||
<text class='storeManagement_fd1_3_c1'>配送方式</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!---flex布局flex布局结束-->
|
||||
<benben-popup v-model="popupShow1684207265519" :mask="true" mode='bottom'>
|
||||
<!---配送方式flex布局开始-->
|
||||
<view class="flex flex-direction flex-wrap align-stretch benben-flex-layout storeManagement_flex_2">
|
||||
<view class='flex flex-direction-row-reverse flex-wrap align-center'>
|
||||
<view class='flex flex-wrap align-center storeManagement_fd2_0_c0'>
|
||||
<image class='storeManagement_fd2_0_c0_c0' :src='STATIC_URL+"2.png"'
|
||||
@tap.stop="popupShow1684207265519=false"></image>
|
||||
</view>
|
||||
<view class='flex flex-wrap align-center storeManagement_fd2_0_c1'>
|
||||
<text class='storeManagement_fd2_0_c1_c0'>配送方式</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class='flex flex-wrap align-center storeManagement_fd2_1'>
|
||||
<text class='storeManagement_fd2_1_c0'>提示:更换配送方式需要后台审核,更换配送方式前请谨慎。</text>
|
||||
</view>
|
||||
<view class='flex flex-wrap align-center'>
|
||||
<benben-select-diy ref="showSelectPopup1684207996151"
|
||||
class-name='flex flex-direction flex storeManagement_fd2_2_c0' :items.sync="delivery_list"
|
||||
v-model="delivery_id" default-type="value" default-label="name" :allow-cancel='false'
|
||||
type="radio" :disabled='false'>
|
||||
<template v-for='(item,key0) in delivery_list'>
|
||||
<view v-if="item.isSelected" class='flex justify-between flex storeManagement_fd2_2_c0_c0'
|
||||
:key="key0" @tap="$refs.showSelectPopup1684207996151.tapHandle(key0)">
|
||||
<text class='storeManagement_fd2_2_c0_c0_c0'>{{item.name}}</text>
|
||||
<image class='storeManagement_fd2_2_c0_c0_c1' mode="aspectFit"
|
||||
:src='STATIC_URL+"44.png"'></image>
|
||||
</view>
|
||||
<view v-else class='flex justify-between flex storeManagement_fd2_2_c0_c1' :key="key0"
|
||||
@tap="$refs.showSelectPopup1684207996151.tapHandle(key0)">
|
||||
<text class='storeManagement_fd2_2_c0_c1_c0'>{{item.name}}</text>
|
||||
<image class='storeManagement_fd2_2_c0_c1_c1' mode="aspectFit"
|
||||
:src='STATIC_URL+"49.png"'></image>
|
||||
</view>
|
||||
</template>
|
||||
</benben-select-diy>
|
||||
</view>
|
||||
<view class='flex flex-wrap align-center storeManagement_fd2_3'>
|
||||
<button class='flex-sub storeManagement_fd2_3_c0' @tap.stop="submitIntoFunc()">提交</button>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!---配送方式flex布局结束-->
|
||||
|
||||
</benben-popup>
|
||||
<benben-popup v-model="popupShow1684208556254" :mask="true" mode='center'>
|
||||
<!---审核中flex布局开始-->
|
||||
<view class="flex flex-wrap align-stretch benben-flex-layout storeManagement_flex_3">
|
||||
<view class='flex flex-direction flex-wrap align-stretch flex-sub storeManagement_fd3_0'>
|
||||
<view class='flex flex-wrap align-stretch justify-center storeManagement_fd3_0_c0'>
|
||||
<text class='storeManagement_fd3_0_c0_c0'>提示</text>
|
||||
</view>
|
||||
<view class='flex flex-direction flex-wrap align-center storeManagement_fd3_0_c1'>
|
||||
<text class='storeManagement_fd3_0_c1_c0'>{{content}}</text>
|
||||
<button class='storeManagement_fd3_0_c1_c1'
|
||||
@tap.stop="popupShow1684208556254=false">我知道了</button>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!---审核中flex布局结束-->
|
||||
|
||||
</benben-popup>
|
||||
|
||||
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
import {
|
||||
validate
|
||||
} from '@/common/utils/validate.js'
|
||||
export default {
|
||||
components: {},
|
||||
|
||||
|
||||
data() {
|
||||
return {
|
||||
"popupShow1684208556254": false,
|
||||
"popupShow1684207265519": false,
|
||||
"delivery_list": [{
|
||||
"name": "仅自提",
|
||||
"value": "1",
|
||||
"image": ""
|
||||
}, {
|
||||
"name": "骑手配送/自提",
|
||||
"value": "2",
|
||||
"image": ""
|
||||
}],
|
||||
"delivery_id": "1",
|
||||
details:"",
|
||||
content:""
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
themeColor() {
|
||||
return this.$store.getters.themeColor
|
||||
},
|
||||
|
||||
},
|
||||
watch: {},
|
||||
onLoad(options) {
|
||||
|
||||
},
|
||||
onShow() {
|
||||
this.post6486e03b64354()
|
||||
this.postGetShopInfo()
|
||||
this.post648c1964854c9()
|
||||
},
|
||||
|
||||
methods: {
|
||||
//获取营业统计
|
||||
post6486e03b64354(){
|
||||
this.$api.post(global.apiUrls.post6486e03b64354,{
|
||||
type:1
|
||||
}).then(res=>{
|
||||
if(res.data.code==1){
|
||||
this.details=res.data.data
|
||||
}
|
||||
})
|
||||
},
|
||||
//获取店铺信息
|
||||
postGetShopInfo(){
|
||||
this.$api.post(global.apiUrls.postGetShopInfo).then(res=>{
|
||||
if(res.data.code==1){
|
||||
this.delivery_id=res.data.data.send_mode
|
||||
}
|
||||
})
|
||||
},
|
||||
//修改配送方式
|
||||
submitIntoFunc(){
|
||||
let that=this
|
||||
that.popupShow1684207265519=false
|
||||
uni.showModal({
|
||||
title:"提示",
|
||||
content:"确定修改配送方式吗",
|
||||
confirmColor:"#FF9300",
|
||||
success(res) {
|
||||
if(res.confirm){
|
||||
console.log(that.delivery_id)
|
||||
let content="";
|
||||
if(that.delivery_id==2){
|
||||
content="您提交的配送方式由自提变更为骑手配送/自提,后台正在审核请耐心等耐!"
|
||||
}else{
|
||||
content="您提交的配送方式由骑手配送/自提变更为自提,后台正在审核请耐心等耐!"
|
||||
}
|
||||
that.content = content
|
||||
that.$api.post(global.apiUrls.editShopMode,{
|
||||
after:that.delivery_id
|
||||
}).then(res=>{
|
||||
that.$message.info(res.data.msg)
|
||||
if(res.data.code==1){
|
||||
that.popupShow1684208556254 = true;
|
||||
that.postGetShopInfo()
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
post648c1964854c9(){
|
||||
this.$api.post(global.apiUrls.post648c1964854c9).then(res=>{
|
||||
if(res.data.code==1){
|
||||
console.log(res.data.data)
|
||||
if(res.data.data.status==0){
|
||||
uni.showModal({
|
||||
title:'提示',
|
||||
content:'您的配送方式正在审核中',
|
||||
showCancel:false,
|
||||
confirmText:'我知道了',
|
||||
confirmColor:"#ff9300",
|
||||
success(data) {
|
||||
if(data.confirm){
|
||||
}
|
||||
}
|
||||
})
|
||||
}else if(res.data.data.status==2){
|
||||
uni.showModal({
|
||||
title:'提示',
|
||||
content:'您的配送方式修改失败:' + res.data.data.reason,
|
||||
showCancel:false,
|
||||
confirmText:'我知道了',
|
||||
confirmColor:"#ff9300",
|
||||
success(data) {
|
||||
if(data.confirm){
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
}
|
||||
};
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
.page {
|
||||
width: 100vw;
|
||||
overflow-x: hidden;
|
||||
min-height: calc(100vh - var(--window-bottom));
|
||||
background: url(/static/images/11.png) no-repeat, rgba(248, 248, 248, 1);
|
||||
background-size: 100% auto !important;
|
||||
}
|
||||
|
||||
.storeManagement_flex_0 {
|
||||
padding: 120rpx 32rpx 0rpx 32rpx;
|
||||
}
|
||||
|
||||
.storeManagement_fd0_0_c1_c1_c1_c0 {
|
||||
color: #999999;
|
||||
font-size: 24rpx;
|
||||
font-weight: 400;
|
||||
line-height: 24rpx;
|
||||
margin: 10rpx 0rpx 0rpx 0rpx;
|
||||
}
|
||||
|
||||
.storeManagement_fd0_0_c1_c1_c0_c0 {
|
||||
color: #333333;
|
||||
font-size: 40rpx;
|
||||
font-weight: 700;
|
||||
line-height: 40rpx;
|
||||
}
|
||||
|
||||
.storeManagement_fd0_0_c1_c0_c1_c0 {
|
||||
color: #999999;
|
||||
font-size: 24rpx;
|
||||
font-weight: 400;
|
||||
line-height: 24rpx;
|
||||
}
|
||||
|
||||
.storeManagement_fd0_0_c1_c0_c1 {
|
||||
margin: 10rpx 0rpx 0rpx 0rpx;
|
||||
}
|
||||
|
||||
.storeManagement_price2_fd0_0_c1_c0_c0_c1 {
|
||||
font-size: 40rpx;
|
||||
color: #333333;
|
||||
font-weight: 700;
|
||||
line-height: 40rpx;
|
||||
}
|
||||
|
||||
.storeManagement_price1_fd0_0_c1_c0_c0_c1 {
|
||||
font-size: 40rpx;
|
||||
color: #333333;
|
||||
font-weight: 700;
|
||||
line-height: 40rpx;
|
||||
}
|
||||
|
||||
.storeManagement_fd0_0_c1_c0_c0_c1 {
|
||||
color: #ff5536;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.storeManagement_fd0_0_c1_c0_c0_c0 {
|
||||
color: #333333;
|
||||
font-size: 40rpx;
|
||||
font-weight: 700;
|
||||
line-height: 40rpx;
|
||||
}
|
||||
|
||||
.storeManagement_fd0_0_c1 {
|
||||
margin: 39rpx 0rpx 0rpx 0rpx;
|
||||
}
|
||||
|
||||
.storeManagement_fd0_0_c0_c1_c1 {
|
||||
font-size: 18rpx;
|
||||
color: rgba(14, 14, 12, 1);
|
||||
margin: 0rpx 0rpx 0rpx 16rpx;
|
||||
}
|
||||
|
||||
.storeManagement_fd0_0_c0_c1_c0 {
|
||||
color: #0E0E0C;
|
||||
font-size: 28rpx;
|
||||
font-weight: 400;
|
||||
line-height: 30rpx;
|
||||
}
|
||||
|
||||
.storeManagement_fd0_0_c0_c0_c0 {
|
||||
color: #0E0E0C;
|
||||
font-size: 28rpx;
|
||||
font-weight: 400;
|
||||
line-height: 30rpx;
|
||||
}
|
||||
|
||||
.storeManagement_fd0_0 {
|
||||
background: rgba(255, 255, 255, 1);
|
||||
border-radius: 16rpx 16rpx 16rpx 16rpx;
|
||||
background-size: 100% auto !important;
|
||||
padding: 32rpx 24rpx 32rpx 24rpx;
|
||||
}
|
||||
|
||||
.storeManagement_flex_1 {
|
||||
padding: 24rpx 23rpx 0rpx 23rpx;
|
||||
}
|
||||
|
||||
.storeManagement_fd1_3_c1 {
|
||||
color: #0E0E0C;
|
||||
font-size: 28rpx;
|
||||
font-weight: 500;
|
||||
line-height: 30rpx;
|
||||
margin: 32rpx 0rpx 0rpx 0rpx;
|
||||
}
|
||||
|
||||
.storeManagement_fd1_3_c0 {
|
||||
width: 57rpx;
|
||||
height: 56rpx;
|
||||
border-radius: 0rpx 0rpx 0rpx 0rpx;
|
||||
}
|
||||
|
||||
.storeManagement_fd1_3 {
|
||||
background: rgba(255, 255, 255, 1);
|
||||
width: 334rpx;
|
||||
height: 216rpx;
|
||||
margin: 9rpx 9rpx 9rpx 9rpx;
|
||||
background-size: 100% auto !important;
|
||||
}
|
||||
|
||||
.storeManagement_fd1_2_c1 {
|
||||
color: #0E0E0C;
|
||||
font-size: 28rpx;
|
||||
font-weight: 500;
|
||||
line-height: 30rpx;
|
||||
margin: 32rpx 0rpx 0rpx 0rpx;
|
||||
}
|
||||
|
||||
.storeManagement_fd1_2_c0 {
|
||||
width: 57rpx;
|
||||
height: 56rpx;
|
||||
border-radius: 0rpx 0rpx 0rpx 0rpx;
|
||||
}
|
||||
|
||||
.storeManagement_fd1_2 {
|
||||
background: rgba(255, 255, 255, 1);
|
||||
width: 334rpx;
|
||||
height: 216rpx;
|
||||
margin: 9rpx 9rpx 9rpx 9rpx;
|
||||
background-size: 100% auto !important;
|
||||
}
|
||||
|
||||
.storeManagement_fd1_1_c1 {
|
||||
color: #0E0E0C;
|
||||
font-size: 28rpx;
|
||||
font-weight: 500;
|
||||
line-height: 30rpx;
|
||||
margin: 32rpx 0rpx 0rpx 0rpx;
|
||||
}
|
||||
|
||||
.storeManagement_fd1_1_c0 {
|
||||
width: 57rpx;
|
||||
height: 56rpx;
|
||||
border-radius: 0rpx 0rpx 0rpx 0rpx;
|
||||
}
|
||||
|
||||
.storeManagement_fd1_1 {
|
||||
background: rgba(255, 255, 255, 1);
|
||||
width: 334rpx;
|
||||
height: 216rpx;
|
||||
margin: 9rpx 9rpx 9rpx 9rpx;
|
||||
background-size: 100% auto !important;
|
||||
}
|
||||
|
||||
.storeManagement_fd1_0_c1 {
|
||||
color: #0E0E0C;
|
||||
font-size: 28rpx;
|
||||
font-weight: 500;
|
||||
line-height: 30rpx;
|
||||
margin: 32rpx 0rpx 0rpx 0rpx;
|
||||
}
|
||||
|
||||
.storeManagement_fd1_0_c0 {
|
||||
width: 57rpx;
|
||||
height: 56rpx;
|
||||
border-radius: 0rpx 0rpx 0rpx 0rpx;
|
||||
}
|
||||
|
||||
.storeManagement_fd1_0 {
|
||||
background: rgba(255, 255, 255, 1);
|
||||
width: 334rpx;
|
||||
height: 216rpx;
|
||||
margin: 9rpx 9rpx 9rpx 9rpx;
|
||||
background-size: 100% auto !important;
|
||||
}
|
||||
|
||||
.storeManagement_flex_2 {
|
||||
background: #fff;
|
||||
border-radius: 24rpx 24rpx 0rpx 0rpx;
|
||||
background-size: 100% auto !important;
|
||||
padding: 32rpx 32rpx 40rpx 32rpx;
|
||||
}
|
||||
|
||||
.storeManagement_fd2_3_c0 {
|
||||
background: rgba(255, 147, 0, 1);
|
||||
border-radius: 44rpx 44rpx 44rpx 44rpx;
|
||||
font-size: 32rpx;
|
||||
color: #fff;
|
||||
height: 88rpx;
|
||||
line-height: 88rpx;
|
||||
}
|
||||
|
||||
.storeManagement_fd2_3 {
|
||||
margin: 16rpx 0rpx 0rpx 0rpx;
|
||||
}
|
||||
|
||||
.storeManagement_fd2_2_c0_c1_c1 {
|
||||
width: 36rpx;
|
||||
height: 36rpx;
|
||||
border-radius: 0rpx 0rpx 0rpx 0rpx;
|
||||
}
|
||||
|
||||
.storeManagement_fd2_2_c0_c1_c0 {
|
||||
color: #333333;
|
||||
font-size: 28rpx;
|
||||
font-weight: 400;
|
||||
line-height: 53rpx;
|
||||
}
|
||||
|
||||
.storeManagement_fd2_2_c0_c1 {
|
||||
padding: 40rpx 0rpx 40rpx 0rpx;
|
||||
}
|
||||
|
||||
.storeManagement_fd2_2_c0_c0_c1 {
|
||||
width: 36rpx;
|
||||
height: 36rpx;
|
||||
border-radius: 0rpx 0rpx 0rpx 0rpx;
|
||||
}
|
||||
|
||||
.storeManagement_fd2_2_c0_c0_c0 {
|
||||
color: #333333;
|
||||
font-size: 28rpx;
|
||||
font-weight: 400;
|
||||
line-height: 53rpx;
|
||||
}
|
||||
|
||||
.storeManagement_fd2_2_c0_c0 {
|
||||
padding: 40rpx 0rpx 40rpx 0rpx;
|
||||
}
|
||||
|
||||
::v-deep .storeManagement_fd2_2_c0 {
|
||||
width: 686rpx;
|
||||
}
|
||||
|
||||
.storeManagement_fd2_1_c0 {
|
||||
color: #ED4040;
|
||||
font-size: 24rpx;
|
||||
font-weight: 400;
|
||||
line-height: 40rpx;
|
||||
}
|
||||
|
||||
.storeManagement_fd2_1 {
|
||||
margin: 24rpx 0rpx 0rpx 0rpx;
|
||||
}
|
||||
|
||||
.storeManagement_fd2_0_c1_c0 {
|
||||
color: #333333;
|
||||
font-size: 32rpx;
|
||||
font-weight: 500;
|
||||
line-height: 53rpx;
|
||||
}
|
||||
|
||||
.storeManagement_fd2_0_c1 {
|
||||
margin: 8rpx 239rpx 0rpx 0rpx;
|
||||
}
|
||||
|
||||
.storeManagement_fd2_0_c0_c0 {
|
||||
width: 40rpx;
|
||||
height: 40rpx;
|
||||
border-radius: 0rpx 0rpx 0rpx 0rpx;
|
||||
}
|
||||
|
||||
.storeManagement_fd2_0_c0 {
|
||||
margin: -10rpx 0rpx 0rpx 0rpx;
|
||||
}
|
||||
|
||||
.storeManagement_flex_3 {
|
||||
padding: 0rpx rpx 0rpx rpx;
|
||||
}
|
||||
|
||||
.storeManagement_fd3_0_c1_c1 {
|
||||
background: rgba(255, 147, 0, 1);
|
||||
border-radius: 16rpx 16rpx 16rpx 16rpx;
|
||||
font-size: 28rpx;
|
||||
color: rgba(255, 255, 255, 1);
|
||||
width: 234rpx;
|
||||
height: 72rpx;
|
||||
line-height: 72rpx;
|
||||
margin: 44rpx 0rpx 0rpx 0rpx;
|
||||
}
|
||||
|
||||
.storeManagement_fd3_0_c1_c0 {
|
||||
line-height: 52rpx;
|
||||
font-size: 28rpx;
|
||||
font-weight: 400;
|
||||
color: #333333;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.storeManagement_fd3_0_c1 {
|
||||
margin: 24rpx 0rpx 32rpx 0rpx;
|
||||
}
|
||||
|
||||
.storeManagement_fd3_0_c0_c0 {
|
||||
line-height: 52rpx;
|
||||
font-size: 32rpx;
|
||||
font-weight: 700;
|
||||
color: #333333;
|
||||
margin: 32rpx 0rpx 0rpx 0rpx;
|
||||
}
|
||||
|
||||
.storeManagement_fd3_0_c0 {
|
||||
margin: 0rpx 16rpx 0rpx 16rpx;
|
||||
}
|
||||
|
||||
.storeManagement_fd3_0 {
|
||||
background: #fff;
|
||||
background-size: 100% auto !important;
|
||||
border-radius: 16rpx 16rpx 16rpx 16rpx;
|
||||
width: 540rpx;
|
||||
padding: 0rpx 32rpx 0rpx 32rpx;
|
||||
}
|
||||
</style>
|
||||
3379
pages/tabBar/takeouTorders/takeouTorders.vue
Normal file
3379
pages/tabBar/takeouTorders/takeouTorders.vue
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user