|
@@ -4,12 +4,13 @@
|
|
<view class="uni-body view-content">{{ data?.infoContent || "" }}</view>
|
|
<view class="uni-body view-content">{{ data?.infoContent || "" }}</view>
|
|
<text class="uni-body view-time">{{ data?.createTime ? data.createTime.replace("T", " ") : "" }}</text>
|
|
<text class="uni-body view-time">{{ data?.createTime ? data.createTime.replace("T", " ") : "" }}</text>
|
|
</uni-card>
|
|
</uni-card>
|
|
|
|
+ <baPing />
|
|
</view>
|
|
</view>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
<script setup>
|
|
/*----------------------------------依赖引入-----------------------------------*/
|
|
/*----------------------------------依赖引入-----------------------------------*/
|
|
-import { onReady, onLoad, onShow, onNavigationBarButtonTap } from "@dcloudio/uni-app";
|
|
|
|
|
|
+import { onReady, onLoad, onShow, onNavigationBarButtonTap, onBackPress } from "@dcloudio/uni-app";
|
|
import { ref, onMounted, inject, shallowRef, reactive, getCurrentInstance, toRefs } from "vue";
|
|
import { ref, onMounted, inject, shallowRef, reactive, getCurrentInstance, toRefs } from "vue";
|
|
/*----------------------------------接口引入-----------------------------------*/
|
|
/*----------------------------------接口引入-----------------------------------*/
|
|
import { getMceList } from "@/api/mine/info.js";
|
|
import { getMceList } from "@/api/mine/info.js";
|
|
@@ -30,7 +31,10 @@ function init(options) {
|
|
data.value = requset.data.records[0];
|
|
data.value = requset.data.records[0];
|
|
});
|
|
});
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+onBackPress((event) => {
|
|
|
|
+ console.log("backbutton",new Date().getTime())
|
|
|
|
+ uni.setStorageSync("backbutton", "top");
|
|
|
|
+})
|
|
onLoad((options) => {
|
|
onLoad((options) => {
|
|
init(options);
|
|
init(options);
|
|
});
|
|
});
|