初始化商家端

This commit is contained in:
wangxiaowei
2025-04-30 14:08:39 +08:00
commit 68b408b1e7
568 changed files with 118884 additions and 0 deletions

View 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'>&#xe7f2;</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>