Commit a51a58f6 by LJM

css

parent 00c05b7d
Showing with 29 additions and 3 deletions
......@@ -22,6 +22,9 @@ uni-page-head {
body {
background: #f5f5f5;
}
::v-deep uni-toast {
z-index: 9999;
}
::v-deep uni-modal .uni-modal {
border-radius: 10rpx;
}
......
......@@ -105,8 +105,8 @@
</view>
<view class="right row"><text class="iconfont icon-xxx" @click="close()"></text></view>
</view>
<view class="textarea-box row bothSide verCenter"><textarea placeholder="输入你的留言内容" class="uni-textarea"></textarea></view>
<view class="save row rowCenter verCenter">留言</view>
<view class="textarea-box row bothSide verCenter"><textarea placeholder="输入你的留言内容" class="uni-textarea" v-model="content"></textarea></view>
<view class="save row rowCenter verCenter" @click="createArticleMessage()">留言</view>
</view>
</uni-popup>
</view>
......@@ -133,6 +133,7 @@ export default {
daily_download_count: '', //每日下载次数
remain_download_count: '', //当前剩下下载数量
message: [], //留言列表
content: '', //留言内容
searchParams: {
title: '',
class_id: '',
......@@ -184,6 +185,9 @@ export default {
}
});
},
/**
* 获取下载数据
*/
getShowData() {
this.request(Api_Url + '/article/showData', 'POST', this.searchParams, true, true).then(res => {
if (res.err_code === 0) {
......@@ -207,7 +211,26 @@ export default {
/**
* 提交留言
*/
createArticleMessage() {}
createArticleMessage() {
this.request(Api_Url + '/article/createArticleMessage', 'GET', { content: this.content, user_id: getCookie('Yo4teW_uid') }, true, true).then(res => {
if (res.err_code === 0) {
uni.showToast({
title: '留言成功',
icon: 'success',
duration: 10000000
});
setTimeout(() => {
// this.getShowData();
// this.close();
}, 2000);
} else {
uni.showToast({
title: res.err_msg,
icon: 'none'
});
}
});
}
}
};
</script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment