fix(custom): 修复若干问题
This commit is contained in:
@@ -50,7 +50,7 @@ const config = {
|
|||||||
prebundle: { enable: false },
|
prebundle: { enable: false },
|
||||||
},
|
},
|
||||||
cache: {
|
cache: {
|
||||||
enable: false, // Webpack 持久化缓存配置,建议开启。默认配置请参考:https://docs.taro.zone/docs/config-detail#cache
|
enable: true, // Webpack 持久化缓存配置,建议开启。默认配置请参考:https://docs.taro.zone/docs/config-detail#cache
|
||||||
},
|
},
|
||||||
sass: {
|
sass: {
|
||||||
data: `@import "@nutui/nutui-taro/dist/styles/variables.scss";`,
|
data: `@import "@nutui/nutui-taro/dist/styles/variables.scss";`,
|
||||||
|
|||||||
@@ -66,4 +66,8 @@ export const editAfterOrder = (data: object) =>
|
|||||||
|
|
||||||
// 生成付款二维码
|
// 生成付款二维码
|
||||||
export const createPayQr = (data: object) =>
|
export const createPayQr = (data: object) =>
|
||||||
request("/later/order/pay", data, "POST");
|
request("/later/order/pay", data, "POST");
|
||||||
|
|
||||||
|
// 检查手机号码是否存在
|
||||||
|
export const checkPhone = (data: object) =>
|
||||||
|
request("/user/find/phone", data, "POST");
|
||||||
@@ -140,7 +140,7 @@ const create_order = async () => {
|
|||||||
res = await createAfterOrder(data);
|
res = await createAfterOrder(data);
|
||||||
await get_cart_list();
|
await get_cart_list();
|
||||||
Taro.navigateTo({
|
Taro.navigateTo({
|
||||||
url: `/pages/admin/add_order/pending_order/pending_order_detail/index?oid=${props.merInfo.oid}&bid=${props.merInfo.bid}`,
|
url: `/pages/admin/add_order/pending_order/pending_order_detail/index?oid=${res.data.oid}&bid=${props.merInfo.bid}`,
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
res = await createActiveOrder({
|
res = await createActiveOrder({
|
||||||
@@ -175,13 +175,13 @@ defineExpose({
|
|||||||
<view class="container">
|
<view class="container">
|
||||||
<view>购物车数量: {{ cartInfo.count }}</view>
|
<view>购物车数量: {{ cartInfo.count }}</view>
|
||||||
<view v-if="cartInfo.count > 0">
|
<view v-if="cartInfo.count > 0">
|
||||||
<text>总金额: {{ cartInfo.price.toFixed(2) }}</text
|
<text>总金额: {{ cartInfo.price.toFixed(2) }}元</text
|
||||||
>,
|
>
|
||||||
<text>总积分: {{ cartInfo.exchange.toFixed(2) }}</text>
|
<text v-if="!IsPendingOrder">,总积分: {{ cartInfo.exchange.toFixed(2) }}</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view v-if="cartInfo.count > 0" class="payBtn" @click.stop="create_order"
|
<view v-if="cartInfo.count > 0" class="payBtn" @click.stop="create_order"
|
||||||
>立即结算</view
|
>立即下单</view
|
||||||
>
|
>
|
||||||
</view>
|
</view>
|
||||||
<!-- 购物车弹窗 -->
|
<!-- 购物车弹窗 -->
|
||||||
|
|||||||
@@ -33,3 +33,14 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.nut-dialog__header {
|
||||||
|
text-align: left;
|
||||||
|
font-weight: bold;
|
||||||
|
font-size: 36px;
|
||||||
|
height: auto;
|
||||||
|
}
|
||||||
|
.nut-dialog__content {
|
||||||
|
text-align: left !important;
|
||||||
|
font-size: 28px;
|
||||||
|
}
|
||||||
@@ -42,6 +42,15 @@
|
|||||||
>
|
>
|
||||||
</form>
|
</form>
|
||||||
</view>
|
</view>
|
||||||
|
<nut-dialog v-model:visible="visible" no-cancel-btn>
|
||||||
|
<template #header>提示</template>
|
||||||
|
<template #default
|
||||||
|
>客户手机号:
|
||||||
|
<text style="color: #fd0100">{{ formVal.phone }}</text>
|
||||||
|
没有注册捷兑
|
||||||
|
通,请通知他登录捷兑通小程序注册。</template
|
||||||
|
>
|
||||||
|
</nut-dialog>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -49,6 +58,7 @@
|
|||||||
import { ref } from "vue";
|
import { ref } from "vue";
|
||||||
import Taro from "@tarojs/taro";
|
import Taro from "@tarojs/taro";
|
||||||
import BackComponent from "../../../../components/Back.vue";
|
import BackComponent from "../../../../components/Back.vue";
|
||||||
|
import { checkPhone } from "../../../../api/admin";
|
||||||
|
|
||||||
const formVal = ref({
|
const formVal = ref({
|
||||||
seat: "",
|
seat: "",
|
||||||
@@ -56,23 +66,41 @@ const formVal = ref({
|
|||||||
notes: "",
|
notes: "",
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const visible = ref(false);
|
||||||
|
|
||||||
const formSubmit = async ({ detail }: any) => {
|
const formSubmit = async ({ detail }: any) => {
|
||||||
if (!detail.value.seat || !detail.value.phone)
|
if (!detail.value.seat)
|
||||||
return Taro.showToast({
|
return Taro.showToast({
|
||||||
title: "请填写完整信息",
|
title: "请填写台号",
|
||||||
icon: "none",
|
icon: "none",
|
||||||
});
|
});
|
||||||
const user_info = await Taro.getStorageSync("userInfo");
|
if (
|
||||||
Taro.navigateTo({
|
!/^1(3\d|4[5-9]|5[0-35-9]|6[567]|7[0-8]|8\d|9[0-35-9])\d{8}$/.test(
|
||||||
url: `/pages/admin/add_order/add_menu/index?type=1&bid=${user_info.data.bid}&seat=${formVal.value.seat}&phone=${formVal.value.phone}¬es=${formVal.value.notes}`,
|
detail.value.phone
|
||||||
success: () => {
|
)
|
||||||
formVal.value = {
|
)
|
||||||
seat: "",
|
return Taro.showToast({
|
||||||
phone: "",
|
title: "请输入正确的手机号码",
|
||||||
notes: "",
|
icon: "none",
|
||||||
};
|
});
|
||||||
},
|
try {
|
||||||
});
|
const res = await checkPhone({ phone: detail.value.phone });
|
||||||
|
console.log(res);
|
||||||
|
const user_info = await Taro.getStorageSync("userInfo");
|
||||||
|
Taro.navigateTo({
|
||||||
|
url: `/pages/admin/add_order/add_menu/index?type=1&bid=${user_info.data.bid}&seat=${formVal.value.seat}&phone=${formVal.value.phone}¬es=${formVal.value.notes}`,
|
||||||
|
success: () => {
|
||||||
|
formVal.value = {
|
||||||
|
seat: "",
|
||||||
|
phone: "",
|
||||||
|
notes: "",
|
||||||
|
};
|
||||||
|
},
|
||||||
|
});
|
||||||
|
} catch (error) {
|
||||||
|
console.log(error);
|
||||||
|
visible.value = true;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
export default definePageConfig({
|
export default definePageConfig({
|
||||||
navigationBarTitleText: "挂帐订单",
|
navigationBarTitleText: "后结订单",
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -108,7 +108,7 @@ const ok = async () => {
|
|||||||
});
|
});
|
||||||
Taro.setStorageSync("pay_code", res.data.data.code_url);
|
Taro.setStorageSync("pay_code", res.data.data.code_url);
|
||||||
Taro.navigateTo({
|
Taro.navigateTo({
|
||||||
url: `/pages/admin/add_order/pending_order/wx_pay_code/index`,
|
url: `/pages/admin/add_order/pending_order/wx_pay_code/index?oid=${data.value.oid}&bid=${data.value.bid}`,
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
export default definePageConfig({
|
export default definePageConfig({
|
||||||
navigationBarTitleText: "订单详情",
|
navigationBarTitleText: "订单详情",
|
||||||
|
navigationStyle: "custom",
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
width: 710px;
|
width: 710px;
|
||||||
background: #ffffff;
|
background: #ffffff;
|
||||||
border-radius: 12px;
|
border-radius: 12px;
|
||||||
margin: 20px auto;
|
margin: auto;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
|
||||||
.header {
|
.header {
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<view>
|
<view>
|
||||||
<view class="card">
|
<back-component title="订单详情" />
|
||||||
|
<view class="card" style="margin-top: 115px">
|
||||||
<view class="header">
|
<view class="header">
|
||||||
<view>
|
<view>
|
||||||
<text>台号: {{ data.seat }}</text>
|
<text>台号: {{ data.seat }}</text>
|
||||||
@@ -43,8 +44,16 @@
|
|||||||
<nut-cell title="订单号" :desc="data.oid"></nut-cell>
|
<nut-cell title="订单号" :desc="data.oid"></nut-cell>
|
||||||
<nut-cell title="点单人" :desc="data.PlaceUser?.nickName"></nut-cell>
|
<nut-cell title="点单人" :desc="data.PlaceUser?.nickName"></nut-cell>
|
||||||
<nut-cell title="下单时间" :desc="data.add_time"></nut-cell>
|
<nut-cell title="下单时间" :desc="data.add_time"></nut-cell>
|
||||||
<nut-cell title="收款时间" :desc="data.payment_time"></nut-cell>
|
<nut-cell
|
||||||
<nut-cell title="挂帐时间" :desc="data.payment_time"></nut-cell>
|
v-if="data.status !== 0"
|
||||||
|
title="收款时间"
|
||||||
|
:desc="data.payment_time"
|
||||||
|
></nut-cell>
|
||||||
|
<nut-cell
|
||||||
|
v-if="data.status !== 0 && data.status !== 1"
|
||||||
|
title="挂帐时间"
|
||||||
|
:desc="data.payment_time"
|
||||||
|
></nut-cell>
|
||||||
<nut-cell
|
<nut-cell
|
||||||
title="订单状态"
|
title="订单状态"
|
||||||
:desc="get_status_text(data.status)"
|
:desc="get_status_text(data.status)"
|
||||||
@@ -52,9 +61,21 @@
|
|||||||
<nut-cell title="下单数量" :desc="String(data.count)"></nut-cell>
|
<nut-cell title="下单数量" :desc="String(data.count)"></nut-cell>
|
||||||
<nut-cell title="订单金额" :desc="String(data.payments)"></nut-cell>
|
<nut-cell title="订单金额" :desc="String(data.payments)"></nut-cell>
|
||||||
<nut-cell title="应收金额" :desc="String(data.payments)"></nut-cell>
|
<nut-cell title="应收金额" :desc="String(data.payments)"></nut-cell>
|
||||||
<nut-cell title="实收金额" :desc="String(data.pay_amount)"></nut-cell>
|
<nut-cell
|
||||||
<nut-cell title="抹零" :desc="String(data.zero)"></nut-cell>
|
v-if="data.status !== 0"
|
||||||
<nut-cell title="收款方式" desc="微信"></nut-cell>
|
title="实收金额"
|
||||||
|
:desc="String(data.pay_amount)"
|
||||||
|
></nut-cell>
|
||||||
|
<nut-cell
|
||||||
|
v-if="data.status !== 0"
|
||||||
|
title="抹零"
|
||||||
|
:desc="String(data.zero)"
|
||||||
|
></nut-cell>
|
||||||
|
<nut-cell
|
||||||
|
v-if="data.status !== 0"
|
||||||
|
title="收款方式"
|
||||||
|
desc="微信"
|
||||||
|
></nut-cell>
|
||||||
<nut-cell title="备注" :desc="data.notes"></nut-cell>
|
<nut-cell title="备注" :desc="data.notes"></nut-cell>
|
||||||
</nut-cell-group>
|
</nut-cell-group>
|
||||||
</view>
|
</view>
|
||||||
@@ -65,6 +86,7 @@ import { ref } from "vue";
|
|||||||
import Taro from "@tarojs/taro";
|
import Taro from "@tarojs/taro";
|
||||||
import Footer from "../components/Footer.vue";
|
import Footer from "../components/Footer.vue";
|
||||||
import { getAfterOrder } from "@/api/admin";
|
import { getAfterOrder } from "@/api/admin";
|
||||||
|
import BackComponent from "../../../../../components/Back.vue";
|
||||||
|
|
||||||
const data = ref<any>({});
|
const data = ref<any>({});
|
||||||
|
|
||||||
|
|||||||
@@ -13,11 +13,39 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref } from "vue";
|
import { ref } from "vue";
|
||||||
import Taro from "@tarojs/taro";
|
import Taro from "@tarojs/taro";
|
||||||
|
import { getAfterOrder } from "@/api/admin";
|
||||||
|
|
||||||
const code = ref("");
|
const code = ref("");
|
||||||
|
|
||||||
Taro.useLoad(() => {
|
const time_id = ref();
|
||||||
|
|
||||||
|
const info = ref<any>({});
|
||||||
|
|
||||||
|
Taro.useLoad((e) => {
|
||||||
|
info.value = e;
|
||||||
code.value = Taro.getStorageSync("pay_code");
|
code.value = Taro.getStorageSync("pay_code");
|
||||||
|
time_id.value = setInterval(async () => {
|
||||||
|
const { data } = await getAfterOrder({
|
||||||
|
bid: info.value.bid,
|
||||||
|
oid: info.value.oid,
|
||||||
|
});
|
||||||
|
if (data.data.status !== 0) {
|
||||||
|
clearInterval(time_id.value);
|
||||||
|
Taro.showToast({
|
||||||
|
title: "支付成功",
|
||||||
|
icon: "success",
|
||||||
|
});
|
||||||
|
setTimeout(() => {
|
||||||
|
Taro.navigateTo({
|
||||||
|
url: `/pages/admin/add_order/pending_order/pending_order_detail/index?oid=${info.value.oid}&bid=${info.value.bid}`
|
||||||
|
});
|
||||||
|
}, 3000);
|
||||||
|
}
|
||||||
|
}, 1000);
|
||||||
|
});
|
||||||
|
|
||||||
|
Taro.useDidHide(() => {
|
||||||
|
clearInterval(time_id.value);
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
85
src/pages/admin/order_manage/list/index.scss
Normal file
85
src/pages/admin/order_manage/list/index.scss
Normal file
@@ -0,0 +1,85 @@
|
|||||||
|
.tabs-1 {
|
||||||
|
display: flex;
|
||||||
|
box-sizing: border-box;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
background-color: #fff;
|
||||||
|
padding: 10px;
|
||||||
|
overflow-x: scroll;
|
||||||
|
.item {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
align-items: center;
|
||||||
|
.line {
|
||||||
|
margin-top: 10px auto;
|
||||||
|
width: 50px;
|
||||||
|
height: 5px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.order-card {
|
||||||
|
width: 95%;
|
||||||
|
box-sizing: border-box;
|
||||||
|
margin: 15px auto;
|
||||||
|
background-color: #fff;
|
||||||
|
border-radius: 10px;
|
||||||
|
padding: 20px;
|
||||||
|
|
||||||
|
.line {
|
||||||
|
width: 100%;
|
||||||
|
height: 1px;
|
||||||
|
background-color: #f5f5f5;
|
||||||
|
margin: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.top {
|
||||||
|
// display: flex;
|
||||||
|
// justify-content: space-between;
|
||||||
|
// align-items: center;
|
||||||
|
|
||||||
|
.name {
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sub {
|
||||||
|
color: #999;
|
||||||
|
font-size: 30px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn {
|
||||||
|
display: flex;
|
||||||
|
justify-content: flex-end;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.center {
|
||||||
|
.top {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
// align-items: flex-start;
|
||||||
|
|
||||||
|
image {
|
||||||
|
width: 150px;
|
||||||
|
height: 150px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.title {
|
||||||
|
margin-left: 10px;
|
||||||
|
display: -webkit-box;
|
||||||
|
overflow: hidden;
|
||||||
|
-webkit-line-clamp: 2;
|
||||||
|
-webkit-box-orient: vertical;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
width: 350px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.right {
|
||||||
|
margin-left: 10px;
|
||||||
|
font-size: 28px;
|
||||||
|
text-align: right;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,13 +1,13 @@
|
|||||||
<template>
|
<template>
|
||||||
<view>
|
<view>
|
||||||
<view class="tabs">
|
<view class="tabs-1">
|
||||||
<view
|
<view
|
||||||
class="item"
|
class="item"
|
||||||
v-for="item in opt"
|
v-for="(item, index) in opt"
|
||||||
:key="item.value"
|
:key="index"
|
||||||
@click="tabChange(item.value)"
|
@click="tabChange(item.value)"
|
||||||
>
|
>
|
||||||
<view class="title">{{ item.text }}</view>
|
<view>{{ item.text }}</view>
|
||||||
<view
|
<view
|
||||||
class="line"
|
class="line"
|
||||||
:style="{
|
:style="{
|
||||||
@@ -119,6 +119,7 @@ const getData = async () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const tabChange = (e: number) => {
|
const tabChange = (e: number) => {
|
||||||
|
console.log(e);
|
||||||
tabVal.value = e;
|
tabVal.value = e;
|
||||||
getData();
|
getData();
|
||||||
};
|
};
|
||||||
@@ -132,88 +133,5 @@ const toDetailPage = (item: any) => {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
.tabs {
|
@import "./index.scss";
|
||||||
display: flex;
|
|
||||||
justify-content: space-evenly;
|
|
||||||
align-items: center;
|
|
||||||
background-color: #fff;
|
|
||||||
padding: 10px;
|
|
||||||
.item {
|
|
||||||
width: 100%;
|
|
||||||
display: flex;
|
|
||||||
flex-direction: column;
|
|
||||||
align-items: center;
|
|
||||||
.line {
|
|
||||||
margin-top: 10px;
|
|
||||||
width: 50px;
|
|
||||||
height: 5px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.order-card {
|
|
||||||
width: 95%;
|
|
||||||
box-sizing: border-box;
|
|
||||||
margin: 15px auto;
|
|
||||||
background-color: #fff;
|
|
||||||
border-radius: 10px;
|
|
||||||
padding: 20px;
|
|
||||||
|
|
||||||
.line {
|
|
||||||
width: 100%;
|
|
||||||
height: 1px;
|
|
||||||
background-color: #f5f5f5;
|
|
||||||
margin: 10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.top {
|
|
||||||
// display: flex;
|
|
||||||
// justify-content: space-between;
|
|
||||||
// align-items: center;
|
|
||||||
|
|
||||||
.name {
|
|
||||||
font-weight: bold;
|
|
||||||
}
|
|
||||||
|
|
||||||
.sub {
|
|
||||||
color: #999;
|
|
||||||
font-size: 30px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.btn {
|
|
||||||
display: flex;
|
|
||||||
justify-content: flex-end;
|
|
||||||
align-items: center;
|
|
||||||
}
|
|
||||||
|
|
||||||
.center {
|
|
||||||
.top {
|
|
||||||
display: flex;
|
|
||||||
justify-content: space-between;
|
|
||||||
// align-items: flex-start;
|
|
||||||
|
|
||||||
image {
|
|
||||||
width: 150px;
|
|
||||||
height: 150px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.title {
|
|
||||||
margin-left: 10px;
|
|
||||||
display: -webkit-box;
|
|
||||||
overflow: hidden;
|
|
||||||
-webkit-line-clamp: 2;
|
|
||||||
-webkit-box-orient: vertical;
|
|
||||||
text-overflow: ellipsis;
|
|
||||||
width: 350px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.right {
|
|
||||||
margin-left: 10px;
|
|
||||||
font-size: 28px;
|
|
||||||
text-align: right;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -125,12 +125,47 @@
|
|||||||
<nut-grid :gutter="10" :border="false">
|
<nut-grid :gutter="10" :border="false">
|
||||||
<nut-grid-item
|
<nut-grid-item
|
||||||
:border="false"
|
:border="false"
|
||||||
v-for="(item, index) in store_menu_list"
|
v-if="userInfo.data.permission.dd"
|
||||||
:key="index"
|
text="点单"
|
||||||
:text="item.text"
|
@click="toPage('/pages/admin/add_order/index')"
|
||||||
@click="toPage(item.path)"
|
|
||||||
>
|
>
|
||||||
<IconFont size="50" :name="item.icon"></IconFont>
|
<IconFont
|
||||||
|
size="50"
|
||||||
|
:name="require('../../static/user/1-1.png')"
|
||||||
|
></IconFont>
|
||||||
|
</nut-grid-item>
|
||||||
|
<nut-grid-item
|
||||||
|
:border="false"
|
||||||
|
v-if="userInfo.data.permission.hx"
|
||||||
|
text="订单核销"
|
||||||
|
@click="toPage('/pages/admin/verify/index')"
|
||||||
|
>
|
||||||
|
<IconFont
|
||||||
|
size="50"
|
||||||
|
:name="require('../../static/user/1-2.png')"
|
||||||
|
></IconFont>
|
||||||
|
</nut-grid-item>
|
||||||
|
<nut-grid-item
|
||||||
|
:border="false"
|
||||||
|
v-if="userInfo.data.permission.tj"
|
||||||
|
text="订单统计"
|
||||||
|
@click="toPage('/pages/admin/order_manage/index')"
|
||||||
|
>
|
||||||
|
<IconFont
|
||||||
|
size="50"
|
||||||
|
:name="require('../../static/user/1-3.png')"
|
||||||
|
></IconFont>
|
||||||
|
</nut-grid-item>
|
||||||
|
<nut-grid-item
|
||||||
|
:border="false"
|
||||||
|
v-if="userInfo.data.permission.tx"
|
||||||
|
text="收益提现"
|
||||||
|
@click="toPage('/pages/admin/withdrawal/index')"
|
||||||
|
>
|
||||||
|
<IconFont
|
||||||
|
size="50"
|
||||||
|
:name="require('../../static/user/1-4.png')"
|
||||||
|
></IconFont>
|
||||||
</nut-grid-item>
|
</nut-grid-item>
|
||||||
</nut-grid>
|
</nut-grid>
|
||||||
</view>
|
</view>
|
||||||
@@ -166,6 +201,7 @@ interface UserInfo {
|
|||||||
bid?: string;
|
bid?: string;
|
||||||
phone?: string;
|
phone?: string;
|
||||||
uid?: string;
|
uid?: string;
|
||||||
|
permission?: any;
|
||||||
};
|
};
|
||||||
store_status?: number;
|
store_status?: number;
|
||||||
store_name?: string;
|
store_name?: string;
|
||||||
@@ -189,8 +225,14 @@ const getUserInfo = async () => {
|
|||||||
title: "加载中",
|
title: "加载中",
|
||||||
});
|
});
|
||||||
const res = await getPersonalInfo();
|
const res = await getPersonalInfo();
|
||||||
userInfo.value = res.data;
|
userInfo.value = {
|
||||||
Taro.setStorageSync("userInfo", res.data);
|
...res.data,
|
||||||
|
data: {
|
||||||
|
...res.data.data,
|
||||||
|
permission: JSON.parse(res.data.data.permission),
|
||||||
|
},
|
||||||
|
};
|
||||||
|
Taro.setStorageSync("userInfo", userInfo.value);
|
||||||
isLogin.value = true;
|
isLogin.value = true;
|
||||||
cancelLogin();
|
cancelLogin();
|
||||||
Taro.hideLoading();
|
Taro.hideLoading();
|
||||||
@@ -218,9 +260,9 @@ const toOrderList = (e: number) => {
|
|||||||
const userMenuList = ref([
|
const userMenuList = ref([
|
||||||
{
|
{
|
||||||
id: 0,
|
id: 0,
|
||||||
label: "挂帐订单",
|
label: "后结订单",
|
||||||
url: "/pages/users/pending_order/index",
|
url: "/pages/users/pending_order/index",
|
||||||
icon: "http://article.biliimg.com/bfs/article/131eda0add8662808d97ffb1191d19bf3e420647.png",
|
icon: require("../../static/user/dd.png"),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 1,
|
id: 1,
|
||||||
@@ -254,34 +296,6 @@ const userMenuList = ref([
|
|||||||
// }
|
// }
|
||||||
]);
|
]);
|
||||||
|
|
||||||
const store_menu_list = ref([
|
|
||||||
{
|
|
||||||
text: "点单",
|
|
||||||
path: "/pages/admin/add_order/index",
|
|
||||||
icon: "https://img11.360buyimg.com/imagetools/jfs/t1/137646/13/7132/1648/5f4c748bE43da8ddd/a3f06d51dcae7b60.png",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
text: "订单核销",
|
|
||||||
path: "/pages/admin/verify/index",
|
|
||||||
icon: "https://img11.360buyimg.com/imagetools/jfs/t1/137646/13/7132/1648/5f4c748bE43da8ddd/a3f06d51dcae7b60.png",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
text: "订单统计",
|
|
||||||
path: "/pages/admin/order_manage/index",
|
|
||||||
icon: "https://img11.360buyimg.com/imagetools/jfs/t1/137646/13/7132/1648/5f4c748bE43da8ddd/a3f06d51dcae7b60.png",
|
|
||||||
},
|
|
||||||
{
|
|
||||||
text: "收益提现",
|
|
||||||
path: "/pages/admin/withdrawal/index",
|
|
||||||
icon: "https://img11.360buyimg.com/imagetools/jfs/t1/137646/13/7132/1648/5f4c748bE43da8ddd/a3f06d51dcae7b60.png",
|
|
||||||
},
|
|
||||||
// {
|
|
||||||
// text: '商品管理',
|
|
||||||
// path: '/pages/product/list/index',
|
|
||||||
// icon: 'https://img11.360buyimg.com/imagetools/jfs/t1/137646/13/7132/1648/5f4c748bE43da8ddd/a3f06d51dcae7b60.png'
|
|
||||||
// },
|
|
||||||
]);
|
|
||||||
|
|
||||||
const toSetting = () => {
|
const toSetting = () => {
|
||||||
Taro.navigateTo({
|
Taro.navigateTo({
|
||||||
url: "/pages/users/setting/index",
|
url: "/pages/users/setting/index",
|
||||||
|
|||||||
@@ -3,7 +3,21 @@ page {
|
|||||||
padding-bottom: constant(safe-area-inset-bottom);
|
padding-bottom: constant(safe-area-inset-bottom);
|
||||||
padding-bottom: env(safe-area-inset-bottom);
|
padding-bottom: env(safe-area-inset-bottom);
|
||||||
}
|
}
|
||||||
|
.topTips {
|
||||||
|
box-sizing: border-box;
|
||||||
|
width: 100%;
|
||||||
|
background-color: #ff0000;
|
||||||
|
color: #ffffff;
|
||||||
|
padding: 20px;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
|
||||||
|
image {
|
||||||
|
width: 150px;
|
||||||
|
height: 150px;
|
||||||
|
}
|
||||||
|
}
|
||||||
.tabs {
|
.tabs {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
|
|||||||
@@ -1,5 +1,17 @@
|
|||||||
<template>
|
<template>
|
||||||
<view>
|
<view>
|
||||||
|
<view class="topTips">
|
||||||
|
<view>
|
||||||
|
<view style="font-weight: bold">订单信息</view>
|
||||||
|
<view style="font-size: 15px"
|
||||||
|
>总赠送游戏豆:{{ 0 }}
|
||||||
|
</view>
|
||||||
|
<view style="font-size: 15px"
|
||||||
|
>总计积分:{{ 0 }}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<image src="../static/user/order_list_top.png" />
|
||||||
|
</view>
|
||||||
<view class="tabs">
|
<view class="tabs">
|
||||||
<view
|
<view
|
||||||
class="item"
|
class="item"
|
||||||
|
|||||||
BIN
src/static/user/1-1.png
Executable file
BIN
src/static/user/1-1.png
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 4.9 KiB |
BIN
src/static/user/1-2.png
Executable file
BIN
src/static/user/1-2.png
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 4.6 KiB |
BIN
src/static/user/1-3.png
Executable file
BIN
src/static/user/1-3.png
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 3.7 KiB |
BIN
src/static/user/1-4.png
Executable file
BIN
src/static/user/1-4.png
Executable file
Binary file not shown.
|
After Width: | Height: | Size: 4.2 KiB |
BIN
src/static/user/dd.png
Normal file
BIN
src/static/user/dd.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.3 KiB |
Reference in New Issue
Block a user