除了数据分析和底边登录其余完成

This commit is contained in:
2026-04-15 00:40:21 +08:00
parent 4b6a45afb3
commit c87a4f63e3
11 changed files with 246 additions and 47 deletions

View File

@@ -6,7 +6,7 @@
<p>{{part_content}}</p>
</view>
<view class="detele" :style="{ transform: 'translateX('+ (movemax +rightoffsetx+5) + 'px)' }"
@click="deleteItem">
>
删除
</view>
</view>

View File

@@ -11,13 +11,13 @@
<p>学习笔记</p>
<p @click="if_none">删除</p>
</view>
<view v-show="true">
<view>
<textarea v-model="useInput" />
</view>
</view>
<view @click="insertShow()">
<image src="/static/template.png"></image>
<p>添加笔记</p>
<image :src="path[0]"></image>
<p :style="{color:path[1]}">添加笔记</p>
</view>
</view>
</template>
@@ -28,21 +28,84 @@
return {
useInput: "",
block_none: true,
write_none: false
write_none: false,
imagepath: [
["/static/experience_2.png", "orange"],
["/static/experience_1.png", "red"]
],
postif: true
}
},
methods: {
insertShow() {
this.write_none = true;
this.postif = !this.postif
if (this.postif) {
uni.showModal({
content: '是否保存',
success: res => {
if (res.confirm) {
console.log(this.useInput)
}
}
});
}
},
if_none() {
this.write_none = false;
this.useInput = ""
uni.showModal({
content: '是否删除',
success: res => {
if (res.confirm) {
this.write_none = false;
this.useInput = ""
} else if (res.cancel) {
this.write_none = true;
}
}
})
},
async request() {
const text = await fetch("http://124.93.196.45:10091/Neusoft/times-model/appNotice/app-o/loopMap",)
async requests(updown, path) {
let response
if (updown == "up") {
response = await fetch(`http://124.93.196.45:10091/Neusoft/times-model${path}`, {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({
"password": "0CYdq6Hn",
"username": "6dOMIgIU"
})
})
} else if (updown == "down") {
response = await fetch(`http://124.93.196.45:10091/Neusoft/times-model${path}`, {
method: "GET",
headers: {
"Content-Type": "application/json",
"Authorization": (await this.requests("up", "/app/login")).token
},
})
}
const data = await response.json()
console.log(data)
return data
}
}
},
async onLoad(){
await this.requests("down","")
},
computed: {
path() {
if (this.write_none) {
return this.imagepath[0]
} else {
return this.imagepath[1]
}
}
},
}
</script>
@@ -111,7 +174,7 @@
}
.page_div>view:last-child image {
width: 3vw;
height: 3vh
width: 4vw;
height: 2vh
}
</style>
</style>