Procházet zdrojové kódy

Merge branch 'localhost'

codeMan před 1 rokem
rodič
revize
189edbebca

+ 1 - 1
cloud/businessCard/index.vue

@@ -635,7 +635,7 @@ export default {
         flex-direction: column;
         align-items: center;
         align-content: center;
-
+        border-radius: 5px;
         image {
             width: 50px;
             height: 50px;

+ 4 - 0
cloud/feedback/detail.vue

@@ -145,6 +145,7 @@ export default {
                 },
             }).then(res => {
                 console.log("发送评论", res)
+                this.$Http.setCallCount()
                 this.loading = false
                 if (this.cutoff(res.msg, '评论成功')) return;
                 this.commentText = '';
@@ -166,6 +167,9 @@ export default {
         this.id = options.id
         this.getDetail(options.id)
         this.getComment(true)
+    },
+    onUnload () {
+        delete this.$Http.setCallCount
     }
 }
 </script>

+ 7 - 1
cloud/feedback/index.vue

@@ -2,7 +2,7 @@
     <view>
         <My_listbox ref="List" @getlist="getList" :bottomHeight="70">
             <view class="item-box">
-                <navigator :url="'/cloud/feedback/detail?id='+item.sa_feedbackid" class="item" v-for="item in list" :key="item.sa_feedbackid">   
+                <navigator @click="itemClick(item,index)" :url="'/cloud/feedback/detail?id='+item.sa_feedbackid" class="item" v-for="(item,index) in list" :key="item.sa_feedbackid">   
                     <view class="header">
                         <view class="header-left">
                             <text>{{ item.type }}</text>
@@ -67,6 +67,12 @@ export default {
                 })
             })
         },
+        async itemClick (data,index) {
+            this.$Http.setCallCount = function () {
+                let replycount = this.list[index].replycount + 1
+                this.$set(this.list[index],'replycount',replycount)
+            }.bind(this)
+        },
         updateList () {
             this.$Http.updateList = function(res) {
                 this.getList(true)

+ 1 - 1
cloud/feedback/insert.vue

@@ -57,7 +57,7 @@ export default {
                 type: "upload",
                 label: "图片/视频",
                 placeholder: "上传凭证(图片/视频)",
-                accept: "image*/,video*/",
+                accept: "media",
                 ownertable: "temporary",
                 ownerid: 999,
                 usetype: 'default',

+ 1 - 0
pages/index/cloud/workbench.vue

@@ -81,6 +81,7 @@ export default {
     },
     computed: {
         isSign () {
+            console.log(!uni.getStorageSync('authList').资料库,!uni.getStorageSync('authList').资料库.每日一签,11111)
             if (!uni.getStorageSync('authList').资料库) return false
             if (!uni.getStorageSync('authList').资料库.每日一签) return false
             return true