拆分admin分包,修复会员卡支付bug
This commit is contained in:
Generated
+6
-2
@@ -1,10 +1,14 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<project version="4">
|
<project version="4">
|
||||||
<component name="cn.fjdmy.uniapp.UniappProjectDataService">
|
<component name="cn.fjdmy.uniapp.UniappProjectDataService">
|
||||||
|
<option name="basePath" value="$PROJECT_DIR$/src" />
|
||||||
<option name="generalBasePath" value="$PROJECT_DIR$" />
|
<option name="generalBasePath" value="$PROJECT_DIR$" />
|
||||||
<option name="manifestPath" value="$PROJECT_DIR$/manifest.json" />
|
<option name="manifestPath" value="$PROJECT_DIR$/src/manifest.json" />
|
||||||
<option name="pagesPath" value="$PROJECT_DIR$/pages.json" />
|
<option name="pagesPath" value="$PROJECT_DIR$/src/pages.json" />
|
||||||
<option name="scanNum" value="1" />
|
<option name="scanNum" value="1" />
|
||||||
<option name="type" value="store" />
|
<option name="type" value="store" />
|
||||||
|
<option name="uniapp" value="true" />
|
||||||
|
<option name="uniappCli" value="true" />
|
||||||
|
<option name="vueVersion" value="3" />
|
||||||
</component>
|
</component>
|
||||||
</project>
|
</project>
|
||||||
@@ -180,7 +180,7 @@ import { useCarStore } from '@/store/modules/car';
|
|||||||
import { useUserStore } from '@/store/modules/user';
|
import { useUserStore } from '@/store/modules/user';
|
||||||
const userStore = useUserStore();
|
const userStore = useUserStore();
|
||||||
const carStore = useCarStore();
|
const carStore = useCarStore();
|
||||||
const { merchantId, orderInfo, period, totalPrice, reducePrice, payPrice, childrenPrice, carNum, carNum2, merchant, type, dateTime } = storeToRefs(carStore);
|
const { merchantId, merchantCode, orderInfo, period, totalPrice, reducePrice, payPrice, childrenPrice, carNum, carNum2, merchant, type, dateTime } = storeToRefs(carStore);
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
@@ -197,6 +197,7 @@ export default {
|
|||||||
// 场馆信息
|
// 场馆信息
|
||||||
merchant,
|
merchant,
|
||||||
merchantId,
|
merchantId,
|
||||||
|
merchantCode,
|
||||||
orderInfo,
|
orderInfo,
|
||||||
carNum,
|
carNum,
|
||||||
carNum2: 0,
|
carNum2: 0,
|
||||||
@@ -386,9 +387,9 @@ export default {
|
|||||||
const app = this;
|
const app = this;
|
||||||
const { payPrice } = this
|
const { payPrice } = this
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
const { merchantId } = this;
|
const { merchantId,merchantCode } = this;
|
||||||
UserCardApi.findUseCard({
|
UserCardApi.findUseCard({
|
||||||
sid: merchantId,
|
sid: merchantCode,
|
||||||
payPrice
|
payPrice
|
||||||
})
|
})
|
||||||
.then((result) => {
|
.then((result) => {
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
<!-- 其他功能 -->
|
<!-- 其他功能 -->
|
||||||
<block v-for="(item, index) in list" :key="index">
|
<block v-for="(item, index) in list" :key="index">
|
||||||
<uni-card :border="false" :is-shadow="false" :padding="0">
|
<uni-card :border="false" :is-shadow="false" :padding="0">
|
||||||
<uv-cell :title="item.comments" :label="item.createTime" :value="`${item.price}`" :cellStyle="{ padding: '10px 0' }" :border="false"></uv-cell>
|
<uv-cell :title="item.comments" :label="item.createTime" :value="`¥${item.price}`" :cellStyle="{ padding: '10px 0' }" :border="false"></uv-cell>
|
||||||
</uni-card>
|
</uni-card>
|
||||||
</block>
|
</block>
|
||||||
<!-- 登录组件 -->
|
<!-- 登录组件 -->
|
||||||
@@ -48,7 +48,10 @@ export default {
|
|||||||
|
|
||||||
// 获取会员卡使用记录
|
// 获取会员卡使用记录
|
||||||
Api.pageUserCardLog({cardId}).then((res) => {
|
Api.pageUserCardLog({cardId}).then((res) => {
|
||||||
app.list = res.list;
|
app.list = res.list.map(d => {
|
||||||
|
d.createTime = uni.$uv.date(d.createTime,'yyyy-mm-dd hh:MM:ss')
|
||||||
|
return d;
|
||||||
|
});
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
navTo(item) {
|
navTo(item) {
|
||||||
|
|||||||
@@ -31,25 +31,25 @@
|
|||||||
</template>
|
</template>
|
||||||
</uv-cell>
|
</uv-cell>
|
||||||
</uv-form-item>
|
</uv-form-item>
|
||||||
<uv-form-item prop="form.idCard" borderBottom>
|
<!-- <uv-form-item prop="form.idCard" borderBottom>-->
|
||||||
<uv-cell title="上传证件">
|
<!-- <uv-cell title="上传证件">-->
|
||||||
<template v-slot:right-icon>
|
<!-- <template v-slot:right-icon>-->
|
||||||
<uv-icon size="40rpx" name="camera" @click="onIdCard(item)"></uv-icon>
|
<!-- <uv-icon size="40rpx" name="camera" @click="onIdCard(item)"></uv-icon>-->
|
||||||
</template>
|
<!-- </template>-->
|
||||||
</uv-cell>
|
<!-- </uv-cell>-->
|
||||||
</uv-form-item>
|
<!-- </uv-form-item>-->
|
||||||
<uv-form-item prop="form.idCard" borderBottom>
|
<!-- <uv-form-item prop="form.idCard" borderBottom>-->
|
||||||
<uv-cell>
|
<!-- <uv-cell>-->
|
||||||
<template v-slot:label>
|
<!-- <template v-slot:label>-->
|
||||||
<image src="https://oss.wsdns.cn/20240502/ec8c13037e7d4d40931b49fd45b23c61.png?x-oss-process=image/resize,m_fixed,w_100,h_100/quality,Q_90" style="width: 80rpx" mode="widthFix" />
|
<!-- <image src="https://oss.wsdns.cn/20240502/ec8c13037e7d4d40931b49fd45b23c61.png?x-oss-process=image/resize,m_fixed,w_100,h_100/quality,Q_90" style="width: 80rpx" mode="widthFix" />-->
|
||||||
</template>
|
<!-- </template>-->
|
||||||
</uv-cell>
|
<!-- </uv-cell>-->
|
||||||
<uv-cell>
|
<!-- <uv-cell>-->
|
||||||
<template v-slot:label>
|
<!-- <template v-slot:label>-->
|
||||||
<image src="https://oss.wsdns.cn/20240502/ec8c13037e7d4d40931b49fd45b23c61.png?x-oss-process=image/resize,m_fixed,w_100,h_100/quality,Q_90" style="width: 80rpx" mode="widthFix" />
|
<!-- <image src="https://oss.wsdns.cn/20240502/ec8c13037e7d4d40931b49fd45b23c61.png?x-oss-process=image/resize,m_fixed,w_100,h_100/quality,Q_90" style="width: 80rpx" mode="widthFix" />-->
|
||||||
</template>
|
<!-- </template>-->
|
||||||
</uv-cell>
|
<!-- </uv-cell>-->
|
||||||
</uv-form-item>
|
<!-- </uv-form-item>-->
|
||||||
</uv-form>
|
</uv-form>
|
||||||
</view>
|
</view>
|
||||||
</uni-card>
|
</uni-card>
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="page">
|
<view class="page">
|
||||||
<uv-gap height="20"></uv-gap>
|
<!-- <uv-gap height="20"></uv-gap>-->
|
||||||
<!-- <uni-nav-bar dark :fixed="true" shadow background-color="#2ba91c" status-bar left-icon="left" left-text="返回" title="场地管理" @clickLeft="goBack" /> -->
|
<!-- <uni-nav-bar dark :fixed="true" shadow background-color="#2ba91c" status-bar left-icon="left" left-text="返回" title="场地管理" @clickLeft="goBack" /> -->
|
||||||
<!-- 顶部距离 -->
|
<!-- 顶部距离 -->
|
||||||
<!-- <view class="header" :style="'margin-top: ' + statusBarHeight + 'px'"></view> -->
|
<!-- <view class="header" :style="'margin-top: ' + statusBarHeight + 'px'"></view> -->
|
||||||
<!-- 用户信息 -->
|
<!-- 用户信息 -->
|
||||||
<ws-admin-card :merchantList="merchantList" :merchantId="merchantId" :data="userInfo" :is-login="isLogin" @openLogin="openLogin" />
|
<!-- <ws-admin-card :merchantList="merchantList" :merchantId="merchantId" :data="userInfo" :is-login="isLogin" @openLogin="openLogin" />-->
|
||||||
<block v-if="hideTools">
|
<block v-if="hideTools">
|
||||||
<uni-card :border="false" :padding="'18px 8px'">
|
<uni-card :border="false" :padding="'18px 8px'">
|
||||||
<uv-skeleton rows="2" :loading="hideTools" :title="false"></uv-skeleton>
|
<uv-skeleton rows="2" :loading="hideTools" :title="false"></uv-skeleton>
|
||||||
@@ -55,7 +55,7 @@
|
|||||||
<script>
|
<script>
|
||||||
import { useUserStore } from '@/store/modules/user';
|
import { useUserStore } from '@/store/modules/user';
|
||||||
import * as UserApi from '@/api/booking/users';
|
import * as UserApi from '@/api/booking/users';
|
||||||
import * as MpMenuApi from '@/api/cms/mp-menu/index';
|
import * as MpMenuApi from '@/api/cms/mp-menu';
|
||||||
import * as MerchantApi from '@/api/shop/merchant';
|
import * as MerchantApi from '@/api/shop/merchant';
|
||||||
import { updateUsers } from '@/api/shop/users';
|
import { updateUsers } from '@/api/shop/users';
|
||||||
import { openUrl } from '@/utils/common';
|
import { openUrl } from '@/utils/common';
|
||||||
+428
-402
@@ -1,404 +1,430 @@
|
|||||||
{
|
{
|
||||||
"pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
|
"pages": [
|
||||||
{
|
//pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
|
||||||
"path": "pages/index/index",
|
{
|
||||||
"style": {
|
"path": "pages/index/index",
|
||||||
"navigationBarTitleText": "广西体育中心",
|
"style": {
|
||||||
"enablePullDownRefresh": false
|
"navigationBarTitleText": "广西体育中心",
|
||||||
}
|
"enablePullDownRefresh": false
|
||||||
},
|
}
|
||||||
{
|
},
|
||||||
"path": "pages/shop/shop",
|
{
|
||||||
"style": {
|
"path": "pages/shop/shop",
|
||||||
"navigationBarTitleText": "商城",
|
"style": {
|
||||||
"enablePullDownRefresh": false
|
"navigationBarTitleText": "商城",
|
||||||
}
|
"enablePullDownRefresh": false
|
||||||
},
|
}
|
||||||
{
|
},
|
||||||
"path": "pages/order/order",
|
{
|
||||||
"style": {
|
"path": "pages/order/order",
|
||||||
"navigationBarTitleText": "我的订单",
|
"style": {
|
||||||
"enablePullDownRefresh": false
|
"navigationBarTitleText": "我的订单",
|
||||||
}
|
"enablePullDownRefresh": false
|
||||||
},
|
}
|
||||||
{
|
},
|
||||||
"path": "pages/user/user",
|
{
|
||||||
"style": {
|
"path": "pages/user/user",
|
||||||
"navigationBarTitleText": "个人中心",
|
"style": {
|
||||||
"enablePullDownRefresh": false,
|
"navigationBarTitleText": "个人中心",
|
||||||
"navigationStyle": "custom"
|
"enablePullDownRefresh": false,
|
||||||
}
|
"navigationStyle": "custom"
|
||||||
}
|
}
|
||||||
],
|
}
|
||||||
"subPackages": [{
|
],
|
||||||
"root": "package",
|
"subPackages": [
|
||||||
"pages": [{
|
{
|
||||||
"path": "user/personal",
|
"root": "package",
|
||||||
"style": {
|
"pages": [
|
||||||
"navigationBarTitleText": "个人资料",
|
{
|
||||||
"enablePullDownRefresh": false
|
"path": "user/personal",
|
||||||
}
|
"style": {
|
||||||
}, {
|
"navigationBarTitleText": "个人资料",
|
||||||
"path": "user/emergency",
|
"enablePullDownRefresh": false
|
||||||
"style": {
|
}
|
||||||
"navigationBarTitleText": "紧急联系人",
|
},
|
||||||
"enablePullDownRefresh": false
|
{
|
||||||
}
|
"path": "user/emergency",
|
||||||
}, {
|
"style": {
|
||||||
"path": "user/coupon",
|
"navigationBarTitleText": "紧急联系人",
|
||||||
"style": {
|
"enablePullDownRefresh": false
|
||||||
"navigationBarTitleText": "我的券包",
|
}
|
||||||
"enablePullDownRefresh": false
|
},
|
||||||
}
|
{
|
||||||
}, {
|
"path": "user/coupon",
|
||||||
"path": "user/integral",
|
"style": {
|
||||||
"style": {
|
"navigationBarTitleText": "我的券包",
|
||||||
"navigationBarTitleText": "我的积分",
|
"enablePullDownRefresh": false
|
||||||
"enablePullDownRefresh": false
|
}
|
||||||
}
|
},
|
||||||
},
|
{
|
||||||
{
|
"path": "user/integral",
|
||||||
"path": "user/invoice",
|
"style": {
|
||||||
"style": {
|
"navigationBarTitleText": "我的积分",
|
||||||
"navigationBarTitleText": "开票发票",
|
"enablePullDownRefresh": false
|
||||||
"enablePullDownRefresh": false
|
}
|
||||||
}
|
},
|
||||||
},
|
{
|
||||||
{
|
"path": "user/invoice",
|
||||||
"path": "user/invoice-edit",
|
"style": {
|
||||||
"style": {
|
"navigationBarTitleText": "开票发票",
|
||||||
"navigationBarTitleText": "修改开票信息",
|
"enablePullDownRefresh": false
|
||||||
"enablePullDownRefresh": false
|
}
|
||||||
}
|
},
|
||||||
},
|
{
|
||||||
{
|
"path": "user/invoice-edit",
|
||||||
"path": "user/invoice-show",
|
"style": {
|
||||||
"style": {
|
"navigationBarTitleText": "修改开票信息",
|
||||||
"navigationBarTitleText": "查看开票信息",
|
"enablePullDownRefresh": false
|
||||||
"enablePullDownRefresh": false
|
}
|
||||||
}
|
},
|
||||||
}
|
{
|
||||||
,{
|
"path": "user/invoice-show",
|
||||||
"path": "user/balance-log",
|
"style": {
|
||||||
"style": {
|
"navigationBarTitleText": "查看开票信息",
|
||||||
"navigationBarTitleText": "余额明细",
|
"enablePullDownRefresh": false
|
||||||
"enablePullDownRefresh": false
|
}
|
||||||
}
|
},
|
||||||
}, {
|
{
|
||||||
"path": "user/card",
|
"path": "user/balance-log",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "我的卡包",
|
"navigationBarTitleText": "余额明细",
|
||||||
"enablePullDownRefresh": false
|
"enablePullDownRefresh": false
|
||||||
}
|
}
|
||||||
}, {
|
},
|
||||||
"path": "user/card-detail",
|
{
|
||||||
"style": {
|
"path": "user/card",
|
||||||
"navigationBarTitleText": "会员卡详情",
|
"style": {
|
||||||
"enablePullDownRefresh": false
|
"navigationBarTitleText": "我的卡包",
|
||||||
}
|
"enablePullDownRefresh": false
|
||||||
},
|
}
|
||||||
{
|
},
|
||||||
"path": "user/card-detail-merchant",
|
{
|
||||||
"style": {
|
"path": "user/card-detail",
|
||||||
"navigationBarTitleText": "适用场馆",
|
"style": {
|
||||||
"enablePullDownRefresh": false
|
"navigationBarTitleText": "会员卡详情",
|
||||||
}
|
"enablePullDownRefresh": false
|
||||||
},
|
}
|
||||||
{
|
},
|
||||||
"path": "user/card-detail-about",
|
{
|
||||||
"style": {
|
"path": "user/card-detail-merchant",
|
||||||
"navigationBarTitleText": "会员卡详情",
|
"style": {
|
||||||
"enablePullDownRefresh": false
|
"navigationBarTitleText": "适用场馆",
|
||||||
}
|
"enablePullDownRefresh": false
|
||||||
},
|
}
|
||||||
{
|
},
|
||||||
"path": "user/card-detail-record",
|
{
|
||||||
"style": {
|
"path": "user/card-detail-about",
|
||||||
"navigationBarTitleText": "使用记录",
|
"style": {
|
||||||
"enablePullDownRefresh": false
|
"navigationBarTitleText": "会员卡详情",
|
||||||
}
|
"enablePullDownRefresh": false
|
||||||
},
|
}
|
||||||
{
|
},
|
||||||
"path": "user/pay-password",
|
{
|
||||||
"style": {
|
"path": "user/card-detail-record",
|
||||||
"navigationBarTitleText": "设置支付密码",
|
"style": {
|
||||||
"enablePullDownRefresh": false
|
"navigationBarTitleText": "使用记录",
|
||||||
}
|
"enablePullDownRefresh": false
|
||||||
}, {
|
}
|
||||||
"path": "user/address",
|
},
|
||||||
"style": {
|
{
|
||||||
"navigationBarTitleText": "收货地址",
|
"path": "user/pay-password",
|
||||||
"enablePullDownRefresh": false
|
"style": {
|
||||||
}
|
"navigationBarTitleText": "设置支付密码",
|
||||||
}, {
|
"enablePullDownRefresh": false
|
||||||
"path": "user/ic-card",
|
}
|
||||||
"style": {
|
},
|
||||||
"navigationBarTitleText": "IC卡激活",
|
{
|
||||||
"enablePullDownRefresh": false
|
"path": "user/address",
|
||||||
}
|
"style": {
|
||||||
}, {
|
"navigationBarTitleText": "收货地址",
|
||||||
"path": "user/ic-card-order",
|
"enablePullDownRefresh": false
|
||||||
"style": {
|
}
|
||||||
"navigationBarTitleText": "支付卡订单",
|
},
|
||||||
"enablePullDownRefresh": false
|
{
|
||||||
}
|
"path": "user/ic-card",
|
||||||
},
|
"style": {
|
||||||
|
"navigationBarTitleText": "IC卡激活",
|
||||||
{
|
"enablePullDownRefresh": false
|
||||||
"path": "order/index",
|
}
|
||||||
"style": {
|
},
|
||||||
"navigationBarTitleText": "订单列表",
|
{
|
||||||
"enablePullDownRefresh": false
|
"path": "user/ic-card-order",
|
||||||
}
|
"style": {
|
||||||
},
|
"navigationBarTitleText": "支付卡订单",
|
||||||
{
|
"enablePullDownRefresh": false
|
||||||
"path": "user/qrcode",
|
}
|
||||||
"style": {
|
},
|
||||||
"navigationBarTitleText": "我的二维码名片",
|
{
|
||||||
"enablePullDownRefresh": false
|
"path": "order/index",
|
||||||
}
|
"style": {
|
||||||
},
|
"navigationBarTitleText": "订单列表",
|
||||||
{
|
"enablePullDownRefresh": false
|
||||||
"path": "goods/detail",
|
}
|
||||||
"style": {
|
},
|
||||||
"navigationBarTitleText": "商品详情",
|
{
|
||||||
"enablePullDownRefresh": false
|
"path": "user/qrcode",
|
||||||
}
|
"style": {
|
||||||
},
|
"navigationBarTitleText": "我的二维码名片",
|
||||||
{
|
"enablePullDownRefresh": false
|
||||||
"path": "goods/checkout",
|
}
|
||||||
"style": {
|
},
|
||||||
"navigationBarTitleText": "订单确认",
|
{
|
||||||
"enablePullDownRefresh": false
|
"path": "goods/detail",
|
||||||
}
|
"style": {
|
||||||
},
|
"navigationBarTitleText": "商品详情",
|
||||||
{
|
"enablePullDownRefresh": false
|
||||||
"path": "goods/order",
|
}
|
||||||
"style": {
|
},
|
||||||
"navigationBarTitleText": "商城订单"
|
{
|
||||||
}
|
"path": "goods/checkout",
|
||||||
},
|
"style": {
|
||||||
{
|
"navigationBarTitleText": "订单确认",
|
||||||
"path": "card/index",
|
"enablePullDownRefresh": false
|
||||||
"style": {
|
}
|
||||||
"navigationBarTitleText": "购买VIP会员卡"
|
},
|
||||||
}
|
{
|
||||||
},
|
"path": "goods/order",
|
||||||
{
|
"style": {
|
||||||
"path": "card/checkout",
|
"navigationBarTitleText": "商城订单"
|
||||||
"style": {
|
}
|
||||||
"navigationBarTitleText": "订单确认"
|
},
|
||||||
}
|
{
|
||||||
},
|
"path": "card/index",
|
||||||
{
|
"style": {
|
||||||
"path": "article/index",
|
"navigationBarTitleText": "购买VIP会员卡"
|
||||||
"style": {
|
}
|
||||||
"navigationBarTitleText": "文章列表",
|
},
|
||||||
"enablePullDownRefresh": false
|
{
|
||||||
}
|
"path": "card/checkout",
|
||||||
},
|
"style": {
|
||||||
{
|
"navigationBarTitleText": "订单确认"
|
||||||
"path": "article/detail",
|
}
|
||||||
"style": {
|
},
|
||||||
"navigationBarTitleText": "文章详情",
|
{
|
||||||
"enablePullDownRefresh": false
|
"path": "article/index",
|
||||||
}
|
"style": {
|
||||||
}, {
|
"navigationBarTitleText": "文章列表",
|
||||||
"path": "booking/merchant",
|
"enablePullDownRefresh": false
|
||||||
"style": {
|
}
|
||||||
"navigationBarTitleText": "订单核销",
|
},
|
||||||
"enablePullDownRefresh": false
|
{
|
||||||
}
|
"path": "article/detail",
|
||||||
},
|
"style": {
|
||||||
{
|
"navigationBarTitleText": "文章详情",
|
||||||
"path": "booking/index",
|
"enablePullDownRefresh": false
|
||||||
"style": {
|
}
|
||||||
"navigationBarTitleText": "场地信息"
|
},
|
||||||
}
|
{
|
||||||
},
|
"path": "booking/merchant",
|
||||||
{
|
"style": {
|
||||||
"path": "booking/checkout",
|
"navigationBarTitleText": "订单核销",
|
||||||
"style": {
|
"enablePullDownRefresh": false
|
||||||
"navigationBarTitleText": "场地预定"
|
}
|
||||||
}
|
},
|
||||||
},
|
{
|
||||||
{
|
"path": "booking/index",
|
||||||
"path": "booking/confirm",
|
"style": {
|
||||||
"style": {
|
"navigationBarTitleText": "场地信息"
|
||||||
"navigationBarTitleText": "订单确认"
|
}
|
||||||
}
|
},
|
||||||
},
|
{
|
||||||
{
|
"path": "booking/checkout",
|
||||||
"path": "booking/cashier",
|
"style": {
|
||||||
"style": {
|
"navigationBarTitleText": "场地预定"
|
||||||
"navigationBarTitleText": "订单确认"
|
}
|
||||||
}
|
},
|
||||||
},
|
{
|
||||||
{
|
"path": "booking/confirm",
|
||||||
"path": "order/detail",
|
"style": {
|
||||||
"style": {
|
"navigationBarTitleText": "订单确认"
|
||||||
"navigationBarTitleText": "订单详情"
|
}
|
||||||
}
|
},
|
||||||
}, {
|
{
|
||||||
"path": "course/index",
|
"path": "booking/cashier",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "培训课程",
|
"navigationBarTitleText": "订单确认"
|
||||||
"enablePullDownRefresh": false
|
}
|
||||||
}
|
},
|
||||||
}, {
|
{
|
||||||
"path": "course/list",
|
"path": "order/detail",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "课程列表",
|
"navigationBarTitleText": "订单详情"
|
||||||
"enablePullDownRefresh": false
|
}
|
||||||
}
|
},
|
||||||
}, {
|
{
|
||||||
"path": "course/detail",
|
"path": "course/index",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "课程详情",
|
"navigationBarTitleText": "培训课程",
|
||||||
"enablePullDownRefresh": false
|
"enablePullDownRefresh": false
|
||||||
}
|
}
|
||||||
}, {
|
},
|
||||||
"path": "course/checkout",
|
{
|
||||||
"style": {
|
"path": "course/list",
|
||||||
"navigationBarTitleText": "订单确认",
|
"style": {
|
||||||
"enablePullDownRefresh": false
|
"navigationBarTitleText": "课程列表",
|
||||||
}
|
"enablePullDownRefresh": false
|
||||||
},{
|
}
|
||||||
"path": "course/student",
|
},
|
||||||
"style": {
|
{
|
||||||
"navigationBarTitleText": "学员管理",
|
"path": "course/detail",
|
||||||
"enablePullDownRefresh": false
|
"style": {
|
||||||
}
|
"navigationBarTitleText": "课程详情",
|
||||||
},
|
"enablePullDownRefresh": false
|
||||||
{
|
}
|
||||||
"path": "admin/index",
|
},
|
||||||
"style": {
|
{
|
||||||
"navigationBarTitleText": "管理中心"
|
"path": "course/checkout",
|
||||||
}
|
"style": {
|
||||||
}, {
|
"navigationBarTitleText": "订单确认",
|
||||||
"path": "admin/order-scan",
|
"enablePullDownRefresh": false
|
||||||
"style": {
|
}
|
||||||
"navigationBarTitleText": "订单核销",
|
},
|
||||||
"enablePullDownRefresh": false,
|
{
|
||||||
"navigationStyle": "custom"
|
"path": "course/student",
|
||||||
}
|
"style": {
|
||||||
}, {
|
"navigationBarTitleText": "学员管理",
|
||||||
"path": "admin/field",
|
"enablePullDownRefresh": false
|
||||||
"style": {
|
}
|
||||||
"navigationBarTitleText": "场地管理",
|
},
|
||||||
"enablePullDownRefresh": false
|
{
|
||||||
}
|
"path": "teacher/detail",
|
||||||
},{
|
"style": {
|
||||||
"path": "admin/order-detail",
|
"navigationBarTitleText": "教练介绍",
|
||||||
"style": {
|
"enablePullDownRefresh": false
|
||||||
"navigationBarTitleText": "订单信息",
|
}
|
||||||
"enablePullDownRefresh": false
|
},
|
||||||
}
|
{
|
||||||
},{
|
"path": "match/index",
|
||||||
"path": "admin/search",
|
"style": {
|
||||||
"style": {
|
"navigationBarTitleText": "赛事活动"
|
||||||
"navigationBarTitleText": "订单查询",
|
}
|
||||||
"enablePullDownRefresh": false
|
},
|
||||||
}
|
{
|
||||||
},{
|
"path": "match/detail",
|
||||||
"path": "admin/count",
|
"style": {
|
||||||
"style": {
|
"navigationBarTitleText": "活动详情"
|
||||||
"navigationBarTitleText": "统计分析",
|
}
|
||||||
"enablePullDownRefresh": false
|
},
|
||||||
}
|
{
|
||||||
},
|
"path": "match/checkout",
|
||||||
{
|
"style": {
|
||||||
"path": "teacher/detail",
|
"navigationBarTitleText": "赛事活动报名"
|
||||||
"style": {
|
}
|
||||||
"navigationBarTitleText": "教练介绍",
|
},
|
||||||
"enablePullDownRefresh": false
|
{
|
||||||
}
|
"path": "cooperate/index",
|
||||||
},
|
"style": {
|
||||||
{
|
"navigationBarTitleText": "商务合作"
|
||||||
"path" : "match/index",
|
}
|
||||||
"style" :
|
},
|
||||||
{
|
{
|
||||||
"navigationBarTitleText" : "赛事活动"
|
"path": "coupon/index",
|
||||||
}
|
"style": {
|
||||||
},
|
"navigationBarTitleText": "领劵中心"
|
||||||
{
|
}
|
||||||
"path" : "match/detail",
|
}
|
||||||
"style" :
|
]
|
||||||
{
|
},
|
||||||
"navigationBarTitleText" : "活动详情"
|
{
|
||||||
}
|
"root": "packageAdmin",
|
||||||
},
|
"pages": [
|
||||||
{
|
{
|
||||||
"path" : "match/checkout",
|
"path": "/index",
|
||||||
"style" :
|
"style": {
|
||||||
{
|
"navigationBarTitleText": "管理中心"
|
||||||
"navigationBarTitleText" : "赛事活动报名"
|
}
|
||||||
}
|
},
|
||||||
},
|
{
|
||||||
{
|
"path": "admin/order-scan",
|
||||||
"path" : "cooperate/index",
|
"style": {
|
||||||
"style" :
|
"navigationBarTitleText": "订单核销",
|
||||||
{
|
"enablePullDownRefresh": false,
|
||||||
"navigationBarTitleText" : "商务合作"
|
"navigationStyle": "custom"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"path" : "coupon/index",
|
"path": "admin/field",
|
||||||
"style" :
|
"style": {
|
||||||
{
|
"navigationBarTitleText": "场地管理",
|
||||||
"navigationBarTitleText" : "领劵中心"
|
"enablePullDownRefresh": false
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
]
|
{
|
||||||
}],
|
"path": "admin/order-detail",
|
||||||
"tabBar": {
|
"style": {
|
||||||
"color": "#000000",
|
"navigationBarTitleText": "订单信息",
|
||||||
"selectedColor": "#d81e06",
|
"enablePullDownRefresh": false
|
||||||
"borderStyle": "black",
|
}
|
||||||
"backgroundColor": "#ffffff",
|
},
|
||||||
"fontSize": "14px",
|
{
|
||||||
"list": [{
|
"path": "admin/search",
|
||||||
"pagePath": "pages/index/index",
|
"style": {
|
||||||
"iconPath": "static/tabbar/home.png",
|
"navigationBarTitleText": "订单查询",
|
||||||
"selectedIconPath": "static/tabbar/home-active.png",
|
"enablePullDownRefresh": false
|
||||||
"text": "首页"
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"pagePath": "pages/shop/shop",
|
"path": "admin/count",
|
||||||
"iconPath": "static/tabbar/shop.png",
|
"style": {
|
||||||
"selectedIconPath": "static/tabbar/shop-active.png",
|
"navigationBarTitleText": "统计分析",
|
||||||
"text": "商城"
|
"enablePullDownRefresh": false
|
||||||
},
|
}
|
||||||
{
|
}
|
||||||
"pagePath": "pages/order/order",
|
]
|
||||||
"iconPath": "static/tabbar/order.png",
|
}
|
||||||
"selectedIconPath": "static/tabbar/order-active.png",
|
],
|
||||||
"text": "订单"
|
"tabBar": {
|
||||||
},
|
"color": "#000000",
|
||||||
{
|
"selectedColor": "#d81e06",
|
||||||
"pagePath": "pages/user/user",
|
"borderStyle": "black",
|
||||||
"iconPath": "static/tabbar/user.png",
|
"backgroundColor": "#ffffff",
|
||||||
"selectedIconPath": "static/tabbar/user-active.png",
|
"fontSize": "14px",
|
||||||
"text": "我的"
|
"list": [
|
||||||
}
|
{
|
||||||
]
|
"pagePath": "pages/index/index",
|
||||||
},
|
"iconPath": "static/tabbar/home.png",
|
||||||
"globalStyle": {
|
"selectedIconPath": "static/tabbar/home-active.png",
|
||||||
"navigationBarTextStyle": "black",
|
"text": "首页"
|
||||||
"navigationBarTitleText": "webSoft",
|
},
|
||||||
"navigationBarBackgroundColor": "#F8F8F8",
|
{
|
||||||
"backgroundColor": "#F8F8F8",
|
"pagePath": "pages/shop/shop",
|
||||||
// #ifdef H5
|
"iconPath": "static/tabbar/shop.png",
|
||||||
"maxWidth": 750,
|
"selectedIconPath": "static/tabbar/shop-active.png",
|
||||||
"rpxCalcMaxDeviceWidth": 750, // rpx 计算所支持的最大设备宽度,单位 px,默认值为 960
|
"text": "商城"
|
||||||
"rpxCalcBaseDeviceWidth": 560, // rpx 计算使用的基准设备宽度,设备实际宽度超出 rpx 计算所支持的最大设备宽度时将按基准宽度计算,单位 px,默认值为 375
|
},
|
||||||
"rpxCalcIncludeWidth": 9999 // rpx 计算特殊处理的值,始终按实际的设备宽度计算,单位 rpx,默认值为 750
|
{
|
||||||
// #endif
|
"pagePath": "pages/order/order",
|
||||||
},
|
"iconPath": "static/tabbar/order.png",
|
||||||
"uniIdRouter": {},
|
"selectedIconPath": "static/tabbar/order-active.png",
|
||||||
"permission": {
|
"text": "订单"
|
||||||
"scope.writeClipboard": {
|
},
|
||||||
"desc": "你的剪贴板将用于小程序的复制操作"
|
{
|
||||||
}
|
"pagePath": "pages/user/user",
|
||||||
}
|
"iconPath": "static/tabbar/user.png",
|
||||||
|
"selectedIconPath": "static/tabbar/user-active.png",
|
||||||
|
"text": "我的"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"globalStyle": {
|
||||||
|
"navigationBarTextStyle": "black",
|
||||||
|
"navigationBarTitleText": "webSoft",
|
||||||
|
"navigationBarBackgroundColor": "#F8F8F8",
|
||||||
|
"backgroundColor": "#F8F8F8",
|
||||||
|
// #ifdef H5
|
||||||
|
"maxWidth": 750,
|
||||||
|
"rpxCalcMaxDeviceWidth": 750,
|
||||||
|
// rpx 计算所支持的最大设备宽度,单位 px,默认值为 960
|
||||||
|
"rpxCalcBaseDeviceWidth": 560,
|
||||||
|
// rpx 计算使用的基准设备宽度,设备实际宽度超出 rpx 计算所支持的最大设备宽度时将按基准宽度计算,单位 px,默认值为 375
|
||||||
|
"rpxCalcIncludeWidth": 9999
|
||||||
|
// rpx 计算特殊处理的值,始终按实际的设备宽度计算,单位 rpx,默认值为 750
|
||||||
|
// #endif
|
||||||
|
},
|
||||||
|
"uniIdRouter": {},
|
||||||
|
"permission": {
|
||||||
|
"scope.writeClipboard": {
|
||||||
|
"desc": "你的剪贴板将用于小程序的复制操作"
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,6 +13,7 @@ export interface CarState {
|
|||||||
merchantId: Number | null;
|
merchantId: Number | null;
|
||||||
merchantName: String | null;
|
merchantName: String | null;
|
||||||
merchantCode: Number | null;
|
merchantCode: Number | null;
|
||||||
|
sid: String | null;
|
||||||
merchant: Merchant | null;
|
merchant: Merchant | null;
|
||||||
order: Order | null;
|
order: Order | null;
|
||||||
orderInfo: OrderInfo[] | null;
|
orderInfo: OrderInfo[] | null;
|
||||||
@@ -37,6 +38,8 @@ export const useCarStore = defineStore({
|
|||||||
merchantName: null,
|
merchantName: null,
|
||||||
// 场馆编号
|
// 场馆编号
|
||||||
merchantCode: null,
|
merchantCode: null,
|
||||||
|
// 场馆编号
|
||||||
|
sid: null,
|
||||||
// 场馆信息
|
// 场馆信息
|
||||||
merchant: null,
|
merchant: null,
|
||||||
// 订单信息
|
// 订单信息
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="user-card" @click="openLogin" v-if="form">
|
<view class="user-card" @click="openLogin">
|
||||||
<view class="userinfo" @click.stop="openPersonal">
|
<view class="userinfo" v-if="form">
|
||||||
<view class="avatar">
|
<view class="avatar">
|
||||||
<image v-if="isLogin" :src="form.avatarUrl" mode="aspectFill"></image>
|
<image v-if="isLogin" :src="form.avatarUrl" mode="aspectFill"></image>
|
||||||
<!-- <uni-icons v-else type="contact-filled" color="#f3f3f3" size="100"></uni-icons> -->
|
<!-- <uni-icons v-else type="contact-filled" color="#f3f3f3" size="100"></uni-icons> -->
|
||||||
@@ -114,7 +114,11 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
openLogin() {
|
openLogin() {
|
||||||
this.$emit('openLogin');
|
if(this.isLogin){
|
||||||
|
this.$refs.personal.open('center');
|
||||||
|
}else{
|
||||||
|
this.$emit('openLogin');
|
||||||
|
}
|
||||||
},
|
},
|
||||||
openPersonal() {
|
openPersonal() {
|
||||||
this.$refs.personal.open('center');
|
this.$refs.personal.open('center');
|
||||||
|
|||||||
Reference in New Issue
Block a user