feat:处理部分 todo 逻辑

pull/132/MERGE
YunaiV 2025-04-28 21:17:18 +08:00
parent 08e7b32fc3
commit 997404dfb4
12 changed files with 47 additions and 67 deletions

View File

@ -64,7 +64,7 @@
</uni-datetime-picker> </uni-datetime-picker>
<view class="total-box"> <view class="total-box">
<!-- TODO 芋艿这里暂时不考虑做 --> <!-- TODO 芋艿钱包-可优化这里暂时不考虑做 -->
<!-- <view class="ss-m-b-10">总收入{{ state.pagination.income.toFixed(2) }}</view> --> <!-- <view class="ss-m-b-10">总收入{{ state.pagination.income.toFixed(2) }}</view> -->
<!-- <view>总支出{{ (-state.pagination.expense).toFixed(2) }}</view> --> <!-- <view>总支出{{ (-state.pagination.expense).toFixed(2) }}</view> -->
</view> </view>

View File

@ -78,7 +78,7 @@
limit="1" limit="1"
mode="grid" mode="grid"
:imageStyles="{ width: '168rpx', height: '168rpx' }" :imageStyles="{ width: '168rpx', height: '168rpx' }"
@success="(payload) => state.accountInfo.accountQrCodeUrl = payload.tempFilePaths[0]" @success="(payload) => (state.accountInfo.accountQrCodeUrl = payload.tempFilePaths[0])"
/> />
</view> </view>
</view> </view>
@ -206,7 +206,6 @@
// //
const onConfirm = async () => { const onConfirm = async () => {
// //
//debugger;
if ( if (
!state.accountInfo.price || !state.accountInfo.price ||
state.accountInfo.price > state.brokerageInfo.price || state.accountInfo.price > state.brokerageInfo.price ||

View File

@ -85,7 +85,7 @@
loadStatus: '', loadStatus: '',
}); });
// TODO // TODO
const tabMaps = [ const tabMaps = [
{ {
name: '全部', name: '全部',

View File

@ -1,7 +1,6 @@
<!-- 订单详情 --> <!-- 订单详情 -->
<template> <template>
<s-layout title="订单详情" class="index-wrap" navbar="inner"> <s-layout title="订单详情" class="index-wrap" navbar="inner">
<!-- 订单状态 TODO -->
<view <view
class="state-box ss-flex-col ss-col-center ss-row-right" class="state-box ss-flex-col ss-col-center ss-row-right"
:style="[ :style="[
@ -12,37 +11,36 @@
]" ]"
> >
<view class="ss-flex ss-m-t-32 ss-m-b-20"> <view class="ss-flex ss-m-t-32 ss-m-b-20">
<!-- 待支付 -->
<image <image
v-if=" v-if="state.orderInfo.status === 0"
state.orderInfo.status_code == 'unpaid' || class="state-img"
state.orderInfo.status === 10 || // :src="sheep.$url.static('/static/img/shop/order/no_pay.png')"
state.orderInfo.status_code == 'nocomment' />
" <!-- 待发货 -->
<image
v-if="state.orderInfo.status === 10"
class="state-img" class="state-img"
:src="sheep.$url.static('/static/img/shop/order/order_loading.png')" :src="sheep.$url.static('/static/img/shop/order/order_loading.png')"
> />
</image> <!-- 已完成 -->
<image <image
v-if=" v-else-if="state.orderInfo.status === 30"
state.orderInfo.status_code == 'completed' ||
state.orderInfo.status_code == 'refund_agree'
"
class="state-img" class="state-img"
:src="sheep.$url.static('/static/img/shop/order/order_success.png')" :src="sheep.$url.static('/static/img/shop/order/order_success.png')"
> />
</image> <!-- 已关闭 -->
<image <image
v-if="state.orderInfo.status_code == 'cancel' || state.orderInfo.status_code == 'closed'" v-else-if="state.orderInfo.status === 40"
class="state-img" class="state-img"
:src="sheep.$url.static('/static/img/shop/order/order_close.png')" :src="sheep.$url.static('/static/img/shop/order/order_close.png')"
> />
</image> <!-- 已发货 -->
<image <image
v-if="state.orderInfo.status_code == 'noget'" v-else-if="state.orderInfo.status === 20"
class="state-img" class="state-img"
:src="sheep.$url.static('/static/img/shop/order/order_express.png')" :src="sheep.$url.static('/static/img/shop/order/order_express.png')"
> />
</image>
<view class="ss-font-30">{{ formatOrderStatus(state.orderInfo) }}</view> <view class="ss-font-30">{{ formatOrderStatus(state.orderInfo) }}</view>
</view> </view>
<view class="ss-font-26 ss-m-x-20 ss-m-b-70"> <view class="ss-font-26 ss-m-x-20 ss-m-b-70">
@ -331,7 +329,7 @@
// //
async function onConfirm(orderId, ignore = false) { async function onConfirm(orderId, ignore = false) {
// //
// todo: https://gitee.com/sheepjs/shopro-uniapp/commit/a6bbba49b84dd418b84c5fefc8b7463df8f4901f // todo: https://gitee.com/sheepjs/shopro-uniapp/commit/a6bbba49b84dd418b84c5fefc8b7463df8f4901f
// 1.return // 1.return
// 2.mpConfirm,App.vueshow // 2.mpConfirm,App.vueshow
let isOpenBusinessView = true; let isOpenBusinessView = true;
@ -406,7 +404,7 @@
// //
let res; let res;
if (state.comeinType === 'wechat') { if (state.comeinType === 'wechat') {
// TODO // TODO
res = await OrderApi.getOrderDetail(id, { res = await OrderApi.getOrderDetail(id, {
merchant_trade_no: state.merchantTradeNo, merchant_trade_no: state.merchantTradeNo,
}); });
@ -439,7 +437,7 @@
if (options.id) { if (options.id) {
id = options.id; id = options.id;
} }
// TODO // TODO
state.comeinType = options.comein_type; state.comeinType = options.comein_type;
if (state.comeinType === 'wechat') { if (state.comeinType === 'wechat') {
state.merchantTradeNo = options.merchant_trade_no; state.merchantTradeNo = options.merchant_trade_no;

View File

@ -206,10 +206,10 @@
}); });
} }
// TODO //
async function onConfirm(order, ignore = false) { async function onConfirm(order, ignore = false) {
// //
// todo: https://gitee.com/sheepjs/shopro-uniapp/commit/a6bbba49b84dd418b84c5fefc8b7463df8f4901f // todo: https://gitee.com/sheepjs/shopro-uniapp/commit/a6bbba49b84dd418b84c5fefc8b7463df8f4901f
// 1.return // 1.return
// 2.mpConfirm,App.vueshow // 2.mpConfirm,App.vueshow
let isOpenBusinessView = true; let isOpenBusinessView = true;
@ -241,7 +241,7 @@
} }
// #ifdef MP-WEIXIN // #ifdef MP-WEIXIN
// TODO // TODO
function mpConfirm(order) { function mpConfirm(order) {
if (!wx.openBusinessView) { if (!wx.openBusinessView) {
sheep.$helper.toast(`请升级微信版本`); sheep.$helper.toast(`请升级微信版本`);

View File

@ -18,12 +18,11 @@
</view> </view>
<view class="num">{{ orderInfo.pickUpVerifyCode }}</view> <view class="num">{{ orderInfo.pickUpVerifyCode }}</view>
<view class="rules"> <view class="rules">
<!-- TODO puhui999: 需要后端放回使用 receiveTime 即可 -->
<view class="item"> <view class="item">
<view class="rulesTitle flex flex-wrap align-center"> 核销时间 </view> <view class="rulesTitle flex flex-wrap align-center"> 核销时间 </view>
<view class="info"> <view class="info">
每日 每日
<text class="time">2020-2-+52</text> <text class="time">{{ systemStore.openingTime }} - {{ systemStore.closingTime }}</text>
</view> </view>
</view> </view>
<view class="item"> <view class="item">
@ -78,7 +77,6 @@
* 打开地图 * 打开地图
*/ */
const showMaoLocation = () => { const showMaoLocation = () => {
console.log(props.systemStore);
if (!props.systemStore.latitude || !props.systemStore.longitude) { if (!props.systemStore.latitude || !props.systemStore.longitude) {
sheep.$helper.toast('缺少经纬度信息无法查看地图!'); sheep.$helper.toast('缺少经纬度信息无法查看地图!');
return; return;
@ -91,6 +89,7 @@
address: props.systemStore.areaName + props.systemStore.detailAddress, address: props.systemStore.areaName + props.systemStore.detailAddress,
}); });
}; };
/** /**
* 拨打电话 * 拨打电话
*/ */

View File

@ -36,7 +36,7 @@
</button> </button>
</uni-datetime-picker> </uni-datetime-picker>
<!-- TODO 芋艿钱包可优化 --> <!-- TODO 芋艿钱包-可优化展示一下 -->
<!-- <view class="total-box">--> <!-- <view class="total-box">-->
<!-- <view class="ss-m-b-10">总收入{{ state.pagination.income }}</view>--> <!-- <view class="ss-m-b-10">总收入{{ state.pagination.income }}</view>-->
<!-- <view>总支出{{ -state.pagination.expense }}</view>--> <!-- <view>总支出{{ -state.pagination.expense }}</view>-->

View File

@ -1,6 +1,6 @@
import request from '@/sheep/request'; import request from '@/sheep/request';
// TODO 芋艿:小程序直播还不支持 // TODO 芋艿:【直播】小程序直播还不支持
export default { export default {
//小程序直播 //小程序直播
mplive: { mplive: {
@ -10,12 +10,12 @@ export default {
method: 'GET', method: 'GET',
params: { params: {
ids: ids.join(','), ids: ids.join(','),
} },
}), }),
getMpLink: () => getMpLink: () =>
request({ request({
url: 'app/mplive/getMpLink', url: 'app/mplive/getMpLink',
method: 'GET' method: 'GET',
}), }),
}, },
}; };

View File

@ -6,5 +6,5 @@ Object.keys(files).forEach((key) => {
[key.replace(/(.*\/)*([^.]+).*/gi, '$2')]: files[key].default, [key.replace(/(.*\/)*([^.]+).*/gi, '$2')]: files[key].default,
}; };
}); });
// TODO @芋艿:要不要删除
export default api; export default api;

View File

@ -63,7 +63,7 @@ const app = defineStore({
// 加载装修配置 // 加载装修配置
await adaptTemplate(this.template, templateId); await adaptTemplate(this.template, templateId);
// TODO 芋艿:未来支持管理后台可配;对应 https://api.shopro.sheepjs.com/shop/api/init // TODO 芋艿:【初始化优化】未来支持管理后台可配;对应 https://api.shopro.sheepjs.com/shop/api/init
if (true) { if (true) {
this.info = { this.info = {
name: '芋道商城', name: '芋道商城',

View File

@ -63,25 +63,6 @@ export const CouponTemplateValidityTypeEnum = {
}, },
}; };
/**
* 营销的商品范围枚举
*/
export const PromotionProductScopeEnum = {
ALL: {
scope: 1,
name: '通用劵',
},
SPU: {
scope: 2,
name: '商品劵',
},
CATEGORY: {
scope: 3,
name: '品类劵',
},
};
// 时间段的状态枚举 // 时间段的状态枚举
export const TimeStatusEnum = { export const TimeStatusEnum = {
WAIT_START: '即将开始', WAIT_START: '即将开始',
@ -142,31 +123,33 @@ export const SharePageEnum = {
HOME: { HOME: {
name: '首页', name: '首页',
page: '/pages/index/index', page: '/pages/index/index',
value: '1' value: '1',
}, },
GOODS: { GOODS: {
name: '普通商品页', name: '普通商品页',
page: '/pages/goods/index', page: '/pages/goods/index',
value: '2' value: '2',
}, },
GROUPON: { GROUPON: {
name: '拼团商品页', name: '拼团商品页',
page: '/pages/goods/groupon', page: '/pages/goods/groupon',
value: '3' value: '3',
}, },
SECKILL: { SECKILL: {
name: '秒杀商品页', name: '秒杀商品页',
page: '/pages/goods/seckill', page: '/pages/goods/seckill',
value: '4' value: '4',
}, },
GROUPON_DETAIL: { GROUPON_DETAIL: {
name: '参与拼团页', name: '参与拼团页',
page: '/pages/activity/groupon/detail', page: '/pages/activity/groupon/detail',
value: '5' value: '5',
}, },
POINT: { POINT: {
name: '积分商品页', name: '积分商品页',
page: '/pages/goods/point', page: '/pages/goods/point',
value: '6' value: '6',
} },
} };
// TODO @芋艿:融合下;

View File

@ -136,3 +136,4 @@ export function jsonParse(str) {
return str; return str;
} }
} }
// TODO @芋艿:融合下;