e0216c56 by yyx

md5 32

1 parent ad3439b1
......@@ -38,7 +38,7 @@ const price = reactive({
// 座位禁用时图标地址
const disabledIconUrl =
"http://114.55.227.212:8083/images/20240511/unselect_default.png";
"https://radv4.gitliuyi.top/images/20240511/unselect_default.png";
const siteConfig = reactive({
loading: false,
......@@ -78,18 +78,14 @@ watch(
sendMsg("update-seat", {
id: it.id,
data: {
icon:
it.state == 1 && priceId == it.priceId
? it.active
? it.unSelectIcon
: it.selectIcon
: disabledIconUrl,
...getSeatRenderState(it),
},
});
});
moveToPriceArea(priceId)
console.log("update完成");
},
{ immediate: true }
// { immediate: true }
);
const sendMsg = (type, data) =>
......@@ -263,7 +259,7 @@ price.fetchData();
:class="{ tabActive: it.priceId == price.curPriceId }"
@click="price.onClickPrice(it)"
>
<img class="seat" :src="it.selectIcon" />
<img class="seat" :src="it.unSelectIcon" />
<span class="price">{{ it.price }}¥</span>
</div>
</div>
......
......@@ -22,13 +22,12 @@ const props = defineProps({
// 用户免登录
const login = async (userId) => {
const sign = md5(`uid=${userId}lgo1acfkw51jfo`);
const sign = md5(`uid=${userId}lgo1acfkw51jfo`, 32);
return loginFree({
userId: userId,
sign,
}).then((res) => {
setToken(res.data.token);
resolve(res.data);
});
};
......@@ -231,7 +230,12 @@ watch(
? dayjs(detail.data?.startTime).format("YYYY.MM.DD")
: ""
}}
{{ detail.data?.startTime ? dayjs(detail.data?.startTime).format("ddd") : "" }}
{{
detail.data?.startTime
? dayjs(detail.data?.startTime).format("ddd")
: ""
}}
{{
detail.data?.endTime
? dayjs(detail.data?.endTime).format("YYYY.MM.DD")
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!