AI销管
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

244 lines
7.0 KiB

  1. <template>
  2. <view class="message_list">
  3. <u-tabs :list="list" :show-bar="false" :is-scroll="false" :current="current" @change="change"></u-tabs>
  4. <view class="listMain">
  5. <view class="systemList" v-if="current==0">
  6. <view class="sysItem">
  7. <image class="headpic" src="../../static/images/function1.png"></image>
  8. <view class="right">
  9. <view class="headInfo">
  10. <view class="title">优秀案例</view>
  11. <view class="info">恭喜你,你的接待记录被设为了优秀案例!</view>
  12. </view>
  13. <view class="content">
  14. 我的评论:非常好,品牌价值观还需要补充我的评论:非常好,品牌价值观还需要补充我的评论:非常好,品牌价值观还需要补充我的评论:非常好,品牌价值观还需要补充
  15. </view>
  16. <view class="time">
  17. 2021-01-12 12:23:01
  18. </view>
  19. </view>
  20. </view>
  21. <view class="sysItem">
  22. <image class="headpic" src="../../static/images/function1.png"></image>
  23. <view class="right">
  24. <view class="headInfo">
  25. <view class="title">优秀案例</view>
  26. <view class="info">赞了你的接待</view>
  27. </view>
  28. <view class="content">
  29. 我的评论:非常好,品牌价值观还需要补充我的评论:非常好,品牌价值观还需要补充我的评论:非常好,品牌价值观还需要补充我的评论:非常好,品牌价值观还需要补充
  30. </view>
  31. <view class="time">
  32. 2021-01-12 12:23:01
  33. </view>
  34. </view>
  35. </view>
  36. <view class="sysItem">
  37. <image class="headpic" src="../../static/images/function1.png"></image>
  38. <view class="right">
  39. <view class="headInfo">
  40. <view class="title">优秀案例</view>
  41. <view class="info">评价你:非常好,品牌价值观还需要补充</view>
  42. </view>
  43. <view class="content">
  44. 我的评论:非常好,品牌价值观还需要补充我的评论:非常好,品牌价值观还需要补充我的评论:非常好,品牌价值观还需要补充我的评论:非常好,品牌价值观还需要补充
  45. </view>
  46. <view class="time">
  47. 2021-01-12 12:23:01
  48. </view>
  49. </view>
  50. </view>
  51. <view class="sysItem">
  52. <image class="headpic" src="../../static/images/function1.png"></image>
  53. <view class="right">
  54. <view class="headInfo">
  55. <view class="title">优秀案例</view>
  56. <view class="info">回复你:非常好,品牌价值观还需要补充</view>
  57. </view>
  58. <view class="content">
  59. 我的评论:非常好,品牌价值观还需要补充我的评论:非常好,品牌价值观还需要补充我的评论:非常好,品牌价值观还需要补充我的评论:非常好,品牌价值观还需要补充
  60. </view>
  61. <view class="time">
  62. 2021-01-12 12:23:01
  63. </view>
  64. </view>
  65. </view>
  66. <view class="sysItem">
  67. <image class="headpic" src="../../static/images/function1.png"></image>
  68. <view class="right">
  69. <view class="headInfo">
  70. <view class="title">优秀案例</view>
  71. <view class="info">赞了你的接待</view>
  72. </view>
  73. <view class="content">
  74. 我的评论:非常好,品牌价值观还需要补充我的评论:非常好,品牌价值观还需要补充我的评论:非常好,品牌价值观还需要补充我的评论:非常好,品牌价值观还需要补充
  75. </view>
  76. <view class="time">
  77. 2021-01-12 12:23:01
  78. </view>
  79. </view>
  80. </view>
  81. <view class="sysItem">
  82. <image class="headpic" src="../../static/images/function1.png"></image>
  83. <view class="right">
  84. <view class="headInfo">
  85. <view class="title">优秀案例</view>
  86. <view class="info">评价你:非常好,品牌价值观还需要补充</view>
  87. </view>
  88. <view class="content">
  89. 我的评论:非常好,品牌价值观还需要补充我的评论:非常好,品牌价值观还需要补充我的评论:非常好,品牌价值观还需要补充我的评论:非常好,品牌价值观还需要补充
  90. </view>
  91. <view class="time">
  92. 2021-01-12 12:23:01
  93. </view>
  94. </view>
  95. </view>
  96. </view>
  97. <view class="upgradeList" v-if="current==1">
  98. <block v-for="(item,index) in updateAnnList" :key="index">
  99. <view class="upgradeItem" @click="goDetail(item.content,item.id)">
  100. <view class="notRead">
  101. <view v-if="item.readFlag==0" class="red"></view>
  102. </view>
  103. <view class="right">
  104. <view class="title">{{item.title}}</view>
  105. <view class="time">{{item.createTime}}</view>
  106. </view>
  107. </view>
  108. </block>
  109. </view>
  110. </view>
  111. </view>
  112. </template>
  113. <script>
  114. var util = require("../../utils/util.js");
  115. var config = require("../../config");
  116. export default {
  117. data() {
  118. return {
  119. updateAnnList:[],
  120. list: [{
  121. name: '系统消息'
  122. },{
  123. name: `升级公告`,
  124. count:"",
  125. }],
  126. current: 0
  127. };
  128. },
  129. onShow() {
  130. this.updateInit()
  131. },
  132. methods:{
  133. change(index) {
  134. this.current = index;
  135. if(this.current==1){
  136. this.updateInit()
  137. }
  138. },
  139. updateInit(){
  140. uni.request({
  141. url: config.service.updateList,
  142. method: "GET",
  143. header: {
  144. 'content-type': 'application/json',
  145. 'Authorization': 'Bearer '+uni.getStorageSync('weapp_session_login_data').token
  146. },
  147. success: (res) => {
  148. this.updateAnnList = res.data.data.list
  149. this.list[1].count = res.data.data.count
  150. }
  151. })
  152. },
  153. goDetail(text,id){
  154. let link=encodeURIComponent(JSON.stringify(text))
  155. uni.navigateTo({
  156. url:"./messageDetail?content="+link+"&id="+id
  157. })
  158. },
  159. }
  160. }
  161. </script>
  162. <style lang="scss">
  163. .message_list{
  164. .u-tab-item{
  165. border: 0.5rpx solid #dedede;
  166. }
  167. .listMain{
  168. margin-top: 20rpx;
  169. .systemList{
  170. .sysItem{
  171. padding: 20rpx;
  172. border: 1rpx solid #ccc;
  173. display: flex;
  174. margin: 16rpx 0;
  175. .headpic{
  176. width: 70rpx;
  177. height: 70rpx;
  178. border-radius: 100%;
  179. margin-right: 30rpx;
  180. }
  181. .right{
  182. .headInfo{
  183. .title{
  184. font-size: 32rpx;
  185. font-weight: bold;
  186. margin-bottom: 8rpx;
  187. }
  188. }
  189. .content{
  190. width: 600rpx;
  191. background: #e6e6e6;
  192. padding: 10rpx;
  193. margin: 14rpx 0;
  194. overflow: hidden;
  195. text-overflow: ellipsis;
  196. white-space: nowrap;
  197. }
  198. .time{
  199. color: #6f6f6f;
  200. font-size: 24rpx;
  201. }
  202. }
  203. }
  204. }
  205. .upgradeList{
  206. .upgradeItem{
  207. padding: 20rpx;
  208. border: 1rpx solid #ccc;
  209. margin: 16rpx 0;
  210. display: flex;
  211. .notRead{
  212. width: 14rpx;
  213. height: 14rpx;
  214. margin-right: 20rpx;
  215. margin-top: 16rpx;
  216. .red{
  217. background: #FF0000;
  218. width: 100%;
  219. height: 100%;
  220. border-radius: 100%;
  221. }
  222. }
  223. .right{
  224. .title{
  225. font-size: 32rpx;
  226. font-weight: bold;
  227. margin-bottom: 8rpx;
  228. }
  229. .time{
  230. color: #6f6f6f;
  231. font-size: 24rpx;
  232. }
  233. }
  234. }
  235. }
  236. }
  237. }
  238. </style>