绿满眶商城微信小程序-uniapp
zhanghua
2025-05-28 da6e8d611e421a5195138d0da7610c1fc6227855
Merge branch 'dev' of http://42.193.1.25:9521/r/lmk-shop-wx into dev
5个文件已修改
54 ■■■■■ 已修改文件
manifest.json 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages.json 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/mine/set/personMsg.vue 11 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/passport/wechatMPLogin.vue 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
pages/tabbar/index/home.vue 27 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
manifest.json
@@ -192,7 +192,7 @@
    "mp-weixin" : {
        /* 小程序特有相关 */
        "usingComponents" : true,
        "appid" : "wx4d124729082dda27",
        "appid" : "wx68b8b82ae4ebc63a",
        "optimization" : {
            "subPackages" : true
        },
pages.json
@@ -566,6 +566,14 @@
                                    "color": "#FFFFFF"
                                }]
                            }
                        },
                        "componentPlaceholder": {
                            "u-form": "view",
                            "u-form-item": "view",
                            "u-input": "view",
                            "u-radio-group": "view",
                            "u-radio": "view",
                            "u-picker": "view"
                        }
                    }
                }, {
pages/mine/set/personMsg.vue
@@ -41,14 +41,19 @@
  </view>
</template>
<script>
import '@/uview-components/uview-ui'
import UForm from "@/uview-components/uview-ui/components/u-form/u-form.vue";
import UFormItem from "@/uview-components/uview-ui/components/u-form-item/u-form-item.vue";
import UInput from "@/uview-components/uview-ui/components/u-input/u-input.vue";
import URadioGroup from "@/uview-components/uview-ui/components/u-radio-group/u-radio-group.vue";
import URadio from "@/uview-components/uview-ui/components/u-radio/u-radio.vue";
import UPicker from "@/uview-components/uview-ui/components/u-picker/u-picker.vue";
import { saveUserInfo, getUserInfo } from "@/api/members.js";
import { upload } from "@/api/common.js";
import storage from "@/utils/storage.js";
import uFormItem from "@/uview-components/uview-ui/components/u-form-item/u-form-item.vue";
import city from "@/components/m-city/m-city.vue";
export default {
  components: { uFormItem, "m-city": city },
  components: { UForm,UFormItem,UInput,URadioGroup,URadio,UPicker, "m-city": city },
  data() {
    return {
      lightColor: this.$lightColor, //高亮颜色
pages/passport/wechatMPLogin.vue
@@ -38,9 +38,9 @@
</template>
<script>
    import UCheckBox from '@/uview-components/uview-ui/components/u-checkbox/u-checkbox.vue';
    import UCheckbox from '@/uview-components/uview-ui/components/u-checkbox/u-checkbox.vue';
    import UNavbar from '@/uview-components/uview-ui/components/u-navbar/u-navbar.vue';
    import UModel from '@/uview-components/uview-ui/components/u-modal/u-modal.vue';
    import UModal from '@/uview-components/uview-ui/components/u-modal/u-modal.vue';
    import {
        mpAutoLogin
    } from "@/api/connect.js";
@@ -54,7 +54,7 @@
    import storage from "@/utils/storage.js";
    import config from '@/config/config'
    export default {
        components: {UCheckBox, UModel,UNavbar},
        components: {UCheckbox, UModal,UNavbar},
        data() {
            return {
                lightColor:this.$lightColor,
pages/tabbar/index/home.vue
@@ -101,7 +101,7 @@
          <text class="iconfont close-icon" @click="closeCommentPopup">&#xe675;</text>
        </view>
        
        <scroll-view class="comment-list" scroll-y>
        <scroll-view class="comment-list" scroll-y :show-scrollbar="false" @scrolltolower="getCommentPage">
          <view v-if="commentLoading" class="loading">
            <uni-load-more status="loading"></uni-load-more>
          </view>
@@ -111,10 +111,10 @@
          </view>
          
          <view v-else class="comment-item" v-for="comment in comments" :key="comment.id">
            <image class="avatar" :src="comment.user.avatar || '/static/default-avatar.png'"></image>
            <image class="avatar" :src="comment.userAvatar || '/static/default-avatar.png'"></image>
            <view class="comment-content">
              <text class="nickname">{{comment.user.nickname}}</text>
              <text class="content">{{comment.content}}</text>
              <text class="nickname">{{comment.userNickname}}</text>
              <text class="content">{{comment.commentContent}}</text>
              <text class="time">{{formatTime(comment.createTime)}}</text>
            </view>
          </view>
@@ -260,12 +260,19 @@
              replyId: null
          }
        },
        async getCommentPage() {
            this.commentQuery.pageNumber += 1;
            getVideoComments(this.commentQuery).then(res => {
                this.comments.push(res.data.data)
            })
        },
        // 显示评论弹窗
        async showComments(item) {
          this.commentForm.videoId = item.id;
          this.$refs.commentPopup.open();
          this.commentLoading = true;
          this.commentQuery.videoId = item.id
          // 首次加载评论分页大小增加一倍,以产生滚动条,后续可触发
          getVideoComments(this.commentQuery).then(res => {
              this.comments = res.data.data
          }).catch(() => {
@@ -620,7 +627,7 @@
      background-color: #fff;
      border-radius: 20rpx 20rpx 0 0;
      padding-bottom: env(safe-area-inset-bottom);
      height: 50vh;
      height: 60vh;
      display: flex;
      flex-direction: column;
    }
@@ -645,14 +652,14 @@
    .comment-list {
      flex: 1;
      padding: 20rpx;
      padding: 0rpx 20rpx 20rpx 20rpx;
      box-sizing: border-box;
      height: calc(60vh - 260rpx);
    }
    .comment-item {
      display: flex;
      padding: 20rpx 0;
      border-bottom: 1rpx solid #f5f5f5;
      padding: 10rpx 0;
    }
    .avatar {
@@ -667,14 +674,14 @@
    }
    .nickname {
      font-size: 26rpx;
      font-size: 24rpx;
      color: #666;
      display: block;
      margin-bottom: 10rpx;
    }
    .content {
      font-size: 30rpx;
      font-size: 24rpx;
      color: #333;
      display: block;
      margin-bottom: 10rpx;