parent
b985e92595
commit
9de57b7347
|
@ -13,7 +13,7 @@ export default function GenerateLink({ params }) {
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
var QRCode = require("qrcode");
|
var QRCode = require("qrcode");
|
||||||
QRCode.toDataURL(
|
QRCode.toDataURL(
|
||||||
`https://www.tiefen.fun/${params.user_id}`,
|
`https://tiefen.fun/${params.user_id}`,
|
||||||
function (err, url) {
|
function (err, url) {
|
||||||
setQrcodeUrl(url);
|
setQrcodeUrl(url);
|
||||||
}
|
}
|
||||||
|
@ -91,7 +91,7 @@ export default function GenerateLink({ params }) {
|
||||||
window.ReactNativeWebView.postMessage(
|
window.ReactNativeWebView.postMessage(
|
||||||
JSON.stringify({
|
JSON.stringify({
|
||||||
type: "COPY_URL",
|
type: "COPY_URL",
|
||||||
data: `https://www.tiefen.fun/${params.user_id}`,
|
data: `https://tiefen.fun/${params.user_id}`,
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
|
@ -14,7 +14,7 @@ export default function Purchased() {
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const prepare = async () => {
|
const prepare = async () => {
|
||||||
if (window.location.origin === "https://shop.tiefen.fun") {
|
if (window.location.origin === "https://shop.tiefen.fun") {
|
||||||
router.replace("https://www.tiefen.fun/purchased");
|
router.replace("https://tiefen.fun/purchased");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
const isLogined = await checkAuth();
|
const isLogined = await checkAuth();
|
||||||
|
|
|
@ -14,7 +14,7 @@ export default function StreamerDetail({ params }) {
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
var QRCode = require("qrcode");
|
var QRCode = require("qrcode");
|
||||||
QRCode.toDataURL(
|
QRCode.toDataURL(
|
||||||
`https://www.tiefen.fun/${params.user_id}`,
|
`https://tiefen.fun/${params.user_id}`,
|
||||||
function (err, url) {
|
function (err, url) {
|
||||||
setQrcodeUrl(url);
|
setQrcodeUrl(url);
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,7 +10,7 @@ export default function Share({ params }) {
|
||||||
//获取页面数据、生成二维码
|
//获取页面数据、生成二维码
|
||||||
const [data, setData] = useState({});
|
const [data, setData] = useState({});
|
||||||
const [qrcodeUrl, setQrcodeUrl] = useState("");
|
const [qrcodeUrl, setQrcodeUrl] = useState("");
|
||||||
const [shareWebUrl, setShareWebUrl] = useState("https://www.tiefen.fun");
|
const [shareWebUrl, setShareWebUrl] = useState("https://tiefen.fun");
|
||||||
const [isFetching, setIsFetching] = useState(true);
|
const [isFetching, setIsFetching] = useState(true);
|
||||||
|
|
||||||
function generateRandomString(length = 10) {
|
function generateRandomString(length = 10) {
|
||||||
|
@ -148,7 +148,7 @@ export default function Share({ params }) {
|
||||||
<span className="whitespace-nowrap">铁粉空间</span>
|
<span className="whitespace-nowrap">铁粉空间</span>
|
||||||
</div>
|
</div>
|
||||||
<span className="text-[#ffffff80] whitespace-nowrap">
|
<span className="text-[#ffffff80] whitespace-nowrap">
|
||||||
|官网:tiefen.space
|
|官网:tiefen.fun
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue