e0216c56 by yyx

md5 32

1 parent ad3439b1
...@@ -38,7 +38,7 @@ const price = reactive({ ...@@ -38,7 +38,7 @@ const price = reactive({
38 38
39 // 座位禁用时图标地址 39 // 座位禁用时图标地址
40 const disabledIconUrl = 40 const disabledIconUrl =
41 "http://114.55.227.212:8083/images/20240511/unselect_default.png"; 41 "https://radv4.gitliuyi.top/images/20240511/unselect_default.png";
42 42
43 const siteConfig = reactive({ 43 const siteConfig = reactive({
44 loading: false, 44 loading: false,
...@@ -78,18 +78,14 @@ watch( ...@@ -78,18 +78,14 @@ watch(
78 sendMsg("update-seat", { 78 sendMsg("update-seat", {
79 id: it.id, 79 id: it.id,
80 data: { 80 data: {
81 icon: 81 ...getSeatRenderState(it),
82 it.state == 1 && priceId == it.priceId
83 ? it.active
84 ? it.unSelectIcon
85 : it.selectIcon
86 : disabledIconUrl,
87 }, 82 },
88 }); 83 });
89 }); 84 });
85 moveToPriceArea(priceId)
90 console.log("update完成"); 86 console.log("update完成");
91 }, 87 },
92 { immediate: true } 88 // { immediate: true }
93 ); 89 );
94 90
95 const sendMsg = (type, data) => 91 const sendMsg = (type, data) =>
...@@ -263,7 +259,7 @@ price.fetchData(); ...@@ -263,7 +259,7 @@ price.fetchData();
263 :class="{ tabActive: it.priceId == price.curPriceId }" 259 :class="{ tabActive: it.priceId == price.curPriceId }"
264 @click="price.onClickPrice(it)" 260 @click="price.onClickPrice(it)"
265 > 261 >
266 <img class="seat" :src="it.selectIcon" /> 262 <img class="seat" :src="it.unSelectIcon" />
267 <span class="price">{{ it.price }}¥</span> 263 <span class="price">{{ it.price }}¥</span>
268 </div> 264 </div>
269 </div> 265 </div>
......
...@@ -22,13 +22,12 @@ const props = defineProps({ ...@@ -22,13 +22,12 @@ const props = defineProps({
22 22
23 // 用户免登录 23 // 用户免登录
24 const login = async (userId) => { 24 const login = async (userId) => {
25 const sign = md5(`uid=${userId}lgo1acfkw51jfo`); 25 const sign = md5(`uid=${userId}lgo1acfkw51jfo`, 32);
26 return loginFree({ 26 return loginFree({
27 userId: userId, 27 userId: userId,
28 sign, 28 sign,
29 }).then((res) => { 29 }).then((res) => {
30 setToken(res.data.token); 30 setToken(res.data.token);
31 resolve(res.data);
32 }); 31 });
33 }; 32 };
34 33
...@@ -231,7 +230,12 @@ watch( ...@@ -231,7 +230,12 @@ watch(
231 ? dayjs(detail.data?.startTime).format("YYYY.MM.DD") 230 ? dayjs(detail.data?.startTime).format("YYYY.MM.DD")
232 : "" 231 : ""
233 }} 232 }}
234 {{ detail.data?.startTime ? dayjs(detail.data?.startTime).format("ddd") : "" }} 233 {{
234 detail.data?.startTime
235 ? dayjs(detail.data?.startTime).format("ddd")
236 : ""
237 }}
238
235 {{ 239 {{
236 detail.data?.endTime 240 detail.data?.endTime
237 ? dayjs(detail.data?.endTime).format("YYYY.MM.DD") 241 ? 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!