Commit a51a58f6 by LJM

css

parent 00c05b7d
Showing with 29 additions and 3 deletions
...@@ -22,6 +22,9 @@ uni-page-head { ...@@ -22,6 +22,9 @@ uni-page-head {
body { body {
background: #f5f5f5; background: #f5f5f5;
} }
::v-deep uni-toast {
z-index: 9999;
}
::v-deep uni-modal .uni-modal { ::v-deep uni-modal .uni-modal {
border-radius: 10rpx; border-radius: 10rpx;
} }
......
...@@ -105,8 +105,8 @@ ...@@ -105,8 +105,8 @@
</view> </view>
<view class="right row"><text class="iconfont icon-xxx" @click="close()"></text></view> <view class="right row"><text class="iconfont icon-xxx" @click="close()"></text></view>
</view> </view>
<view class="textarea-box row bothSide verCenter"><textarea placeholder="输入你的留言内容" class="uni-textarea"></textarea></view> <view class="textarea-box row bothSide verCenter"><textarea placeholder="输入你的留言内容" class="uni-textarea" v-model="content"></textarea></view>
<view class="save row rowCenter verCenter">留言</view> <view class="save row rowCenter verCenter" @click="createArticleMessage()">留言</view>
</view> </view>
</uni-popup> </uni-popup>
</view> </view>
...@@ -133,6 +133,7 @@ export default { ...@@ -133,6 +133,7 @@ export default {
daily_download_count: '', //每日下载次数 daily_download_count: '', //每日下载次数
remain_download_count: '', //当前剩下下载数量 remain_download_count: '', //当前剩下下载数量
message: [], //留言列表 message: [], //留言列表
content: '', //留言内容
searchParams: { searchParams: {
title: '', title: '',
class_id: '', class_id: '',
...@@ -184,6 +185,9 @@ export default { ...@@ -184,6 +185,9 @@ export default {
} }
}); });
}, },
/**
* 获取下载数据
*/
getShowData() { getShowData() {
this.request(Api_Url + '/article/showData', 'POST', this.searchParams, true, true).then(res => { this.request(Api_Url + '/article/showData', 'POST', this.searchParams, true, true).then(res => {
if (res.err_code === 0) { if (res.err_code === 0) {
...@@ -207,7 +211,26 @@ export default { ...@@ -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> </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