|
@@ -1,4 +1,4 @@
|
|
|
-import { View, Text, Image } from "@tarojs/components";
|
|
|
|
|
|
|
+import { View, Image } from "@tarojs/components";
|
|
|
import Taro, { useRouter } from "@tarojs/taro";
|
|
import Taro, { useRouter } from "@tarojs/taro";
|
|
|
import { getPage, report } from "@src/server/index/index";
|
|
import { getPage, report } from "@src/server/index/index";
|
|
|
import { useEffect, useState } from "react";
|
|
import { useEffect, useState } from "react";
|
|
@@ -11,7 +11,7 @@ function LdPage() {
|
|
|
const router = useRouter()
|
|
const router = useRouter()
|
|
|
useEffect(() => {
|
|
useEffect(() => {
|
|
|
let params = router.params
|
|
let params = router.params
|
|
|
- if (params.pageId) {
|
|
|
|
|
|
|
+ if (params.pageId && params.openRead) {
|
|
|
setPageId(params.pageId)
|
|
setPageId(params.pageId)
|
|
|
Taro.showLoading({
|
|
Taro.showLoading({
|
|
|
title: '加载中',
|
|
title: '加载中',
|
|
@@ -118,8 +118,6 @@ function LdPage() {
|
|
|
{data["QR_CODE"] && data["QR_CODE"].map((qrObj) => {
|
|
{data["QR_CODE"] && data["QR_CODE"].map((qrObj) => {
|
|
|
return <Image src={qrObj.url} onLongPress={() => { onLongPress("QR_CODE") }} mode="widthFix" showMenuByLongpress style={{ height: "auto", width: "70vw", display: 'block', margin: '0 auto', order: qrObj.eq }} />
|
|
return <Image src={qrObj.url} onLongPress={() => { onLongPress("QR_CODE") }} mode="widthFix" showMenuByLongpress style={{ height: "auto", width: "70vw", display: 'block', margin: '0 auto', order: qrObj.eq }} />
|
|
|
})}
|
|
})}
|
|
|
- {/* 动图 */}
|
|
|
|
|
- {/* <Image src={"https://app-cloud-images.oss-cn-hangzhou.aliyuncs.com/1768559009681.gif"} mode="widthFix" style={{ height: "auto", width: "100vw", marginTop: -30, paddingBottom: 70 }} /> */}
|
|
|
|
|
{/* 底部浮选图 */}
|
|
{/* 底部浮选图 */}
|
|
|
{data["FLOAT_BUTTON"] && <Image src={data["FLOAT_BUTTON"].url} mode="widthFix" onLongPress={() => { onLongPress("FLOAT_BUTTON") }} showMenuByLongpress style={{ height: "auto", width: "100vw", position: 'fixed', bottom: 0, left: 0, zIndex: 999, order: data["FLOAT_BUTTON"].eq }} />}
|
|
{data["FLOAT_BUTTON"] && <Image src={data["FLOAT_BUTTON"].url} mode="widthFix" onLongPress={() => { onLongPress("FLOAT_BUTTON") }} showMenuByLongpress style={{ height: "auto", width: "100vw", position: 'fixed', bottom: 0, left: 0, zIndex: 999, order: data["FLOAT_BUTTON"].eq }} />}
|
|
|
</View>
|
|
</View>
|
|
@@ -128,21 +126,5 @@ function LdPage() {
|
|
|
</View>
|
|
</View>
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-// // 客服消息开始回调
|
|
|
|
|
-// const startMessage = (e) => {
|
|
|
|
|
-// console.log('客服消息开始', e);
|
|
|
|
|
-// };
|
|
|
|
|
-
|
|
|
|
|
-// // 客服消息完成回调
|
|
|
|
|
-// const completeMessage = (e) => {
|
|
|
|
|
-// console.log('客服消息完成', e);
|
|
|
|
|
-// if (e.detail.errcode === 0) {
|
|
|
|
|
-// console.log('客服人员姓名:', e.detail.name);
|
|
|
|
|
-// console.log('客服人员头像:', e.detail.headurl);
|
|
|
|
|
-// console.log('通知方式:', e.detail.notifytype === 0 ? '消息通知' : '二维码');
|
|
|
|
|
-// } else {
|
|
|
|
|
-// console.log('错误码:', e.detail.errcode);
|
|
|
|
|
-// }
|
|
|
|
|
-// };
|
|
|
|
|
|
|
|
|
|
export default LdPage;
|
|
export default LdPage;
|