#
whycq
2023-11-22 3913b3c5c8cde03f8c92d1c738d28c4a9bae7e55
pages/business/goBusiness/goBusiness.vue
@@ -14,6 +14,11 @@
            </view>
         </block>
      </uni-nav-bar>
      <!-- 搜索框 -->
      <view class="search-bg">
         <u-search placeholder="输入" v-model="keyword" :clearabled="true" @custom="search()" @search="search()"></u-search>
      </view>
      <view class="main-box">
         <view class="box" v-for="item in list" @click="goDetl(item)">
@@ -30,6 +35,7 @@
         </view>
      </view>
      
      <u-empty v-if="true" icon="../../../static/image/emptyList.png" v-show="list.length <= 0" />
      <view class="fxbtn">
         <uni-icons type="plusempty" color="#fff" @click="add()" ></uni-icons>
      </view>
@@ -44,6 +50,7 @@
   export default {
      data() {
         return {
            keyword: '',
            user: {
               username: '',
               id: 0,
@@ -76,7 +83,6 @@
      onShow() {
         let that = this
         uni.$on('isRefresh',function(data){
            console.log(data);
            that.user.username = data.title
            that.user.id = data.id
            that.user.type = data.key
@@ -92,7 +98,6 @@
      methods: {
         async getDetail() {
            let res = await user.getDetail()
            console.log(res);
            if (res.code === 200) {
               this.user.username = res.data.username
               this.user.id = res.data.id