This commit is contained in:
liuyuan
2025-05-19 16:00:20 +08:00
parent fb96182e18
commit 30042fdfb9
2 changed files with 20 additions and 3 deletions

View File

@@ -2,8 +2,8 @@ let baseUrl = "";
let socketUrl = ""; let socketUrl = "";
if (process.env.NODE_ENV === 'development') { if (process.env.NODE_ENV === 'development') {
// 开发环境 // 开发环境
baseUrl = "https://api.nuttyreading.com/"; //线上正式 //baseUrl = "https://api.nuttyreading.com/"; //线上正式
//baseUrl = "http://192.168.110.100:9200/pb/"; //张川川 baseUrl = "http://192.168.110.100:9200/pb/"; //张川川
} else if (process.env.NODE_ENV === 'production') { } else if (process.env.NODE_ENV === 'production') {
// 生产环境11 // 生产环境11
baseUrl = "https://api.nuttyreading.com/"; baseUrl = "https://api.nuttyreading.com/";

View File

@@ -607,7 +607,9 @@ export default {
uni.hideTabBar(); uni.hideTabBar();
this.$nextTick(() => { this.$nextTick(() => {
this.getAdvertisement(); //提示评分
this.editScoreRemind();
this.getAdvertisement();
}); });
}, },
onHide() { onHide() {
@@ -707,6 +709,21 @@ export default {
//方法 //方法
methods: { methods: {
...mapMutations(["setUserInfo"]), ...mapMutations(["setUserInfo"]),
//提示去评分
async editScoreRemind() {
await $http
.request({
url: "common/class/editScoreRemind",
method: "POST",
data: { },
header: {
"Content-Type": "application/json",
},
})
.then(async (res) => {
});
},
async getAdvertisement() { async getAdvertisement() {
await $http await $http
.request({ .request({