瀏覽代碼

style: logo

chenlei 1 年之前
父節點
當前提交
74f8a22c97

+ 3 - 0
src/api/index.ts

@@ -20,6 +20,9 @@ export const checkLoginApi = () => {
   return requestByGet("/api/show/checkLogin");
 };
 
+/**
+ * 检查昵称是否违规
+ */
 export const setVistorName = (name: string) => {
   return requestByPost(`/api/show/saveNickname/${name}`);
 };

+ 7 - 1
src/components/Video/index.tsx

@@ -1,5 +1,5 @@
 import { Video, VideoProps, View } from "@tarojs/components";
-import { FC } from "@tarojs/taro";
+import Taro, { FC } from "@tarojs/taro";
 import "./index.scss";
 
 export interface VideoWrapProps extends Omit<VideoProps, "onEnded"> {
@@ -12,6 +12,12 @@ export const VideoWrap: FC<VideoWrapProps> = ({ onEnded, ...props }) => {
       <Video
         className="video-wrap__video"
         enableProgressGesture={false}
+        onWaiting={() => {
+          Taro.showLoading();
+        }}
+        onPlay={() => {
+          Taro.hideLoading();
+        }}
         {...props}
         onEnded={() => onEnded()}
       />

二進制
src/images/logo-min.png


二進制
src/images/logo@2x-min.png


二進制
src/images/pop_menu@2x-min.png


+ 1 - 1
src/pages/home/components/SightDetailLayout/index.scss

@@ -32,7 +32,7 @@
       bottom: 0;
       width: 685px;
       height: 722px;
-      background: url("../../../../images/logo-min.png") no-repeat center /
+      background: url("../../../../images/logo@2x-min.png") no-repeat center /
         contain;
       z-index: -1;
     }

+ 6 - 0
src/pages/home/components/VisitCard/index.tsx

@@ -78,6 +78,8 @@ export const VisitCard: FC<VisitCardProps> = (props) => {
         await login();
       }
 
+      await setVistorName(name);
+
       await setUserInfoApi({
         id: baseStore.userInfo.id,
         nickName: name,
@@ -100,6 +102,10 @@ export const VisitCard: FC<VisitCardProps> = (props) => {
       setLoading(true);
 
       await setVistorName(name);
+      await setUserInfoApi({
+        id: baseStore.userInfo.id,
+        nickName: name,
+      });
 
       Taro.setStorageSync(NICKNAME_KEY, name);
       baseStore.name = name;

二進制
src/pages/home/components/VisitCard/pop_bg@2x-min.png


二進制
src/subModule/pages/shopmall/components/Ranking/default-avatar-min.png