From b4965d0068789ef718538a90ac00b96857637a2e Mon Sep 17 00:00:00 2001
From: abu <3109389044@qq.com>
Date: Tue, 18 Mar 2025 16:49:28 +0800
Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96=E4=B8=AD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
App.vue | 4 +-
README.md | 464 +++++----
api/message.js | 4 +-
api/vlog.js | 3 +-
changelog.md | 149 +++
.../vlog/{videoComp.vue => videoComp.nvue} | 42 +-
.../{videoDetail.vue => videoDetail.nvue} | 0
...deoFollowComp.vue => videoFollowComp.nvue} | 23 +-
main.js | 2 +-
package.json | 18 +
pages.json | 252 ++++-
pages/me/me.nvue | 672 +++++++++++++
pages/me/vlogerInfo.nvue | 724 ++++++++++++++
pages/publish/preview.nvue | 55 +
pages/publish/publish.nvue | 369 +++++++
pages/tabbar/vlog/index.nvue | 941 +++++++++++-------
plugins/APPUpdate/index.js | 3 +-
utils/request.js | 3 +-
.../u-tabs-swiper/u-tabs-swiper.vue | 4 +-
19 files changed, 3170 insertions(+), 562 deletions(-)
create mode 100644 changelog.md
rename components/vlog/{videoComp.vue => videoComp.nvue} (92%)
rename components/vlog/{videoDetail.vue => videoDetail.nvue} (100%)
rename components/vlog/{videoFollowComp.vue => videoFollowComp.nvue} (96%)
create mode 100644 package.json
create mode 100755 pages/me/me.nvue
create mode 100755 pages/me/vlogerInfo.nvue
create mode 100755 pages/publish/preview.nvue
create mode 100755 pages/publish/publish.nvue
diff --git a/App.vue b/App.vue
index 0b302ef3..5f27d78d 100644
--- a/App.vue
+++ b/App.vue
@@ -14,7 +14,7 @@
import provinceList from "./json/area_province.js";
import cityList from "./json/area_city.js";
import districtList from "./json/area_district.js";
-
+ import storage from "@/utils/storage.js"; //缓存
export default {
data() {
return {
@@ -82,7 +82,7 @@
uni.onTabBarMidButtonTap(() => {
console.log('center')
// 未登录不能发布视频
- let myUserInfo = null
+ let myUserInfo = storage.getVlogUserInfo()||null;
if (myUserInfo == null) {
uni.navigateTo({
// url: "../loginRegist/loginRegist",
diff --git a/README.md b/README.md
index 6e5ea9db..7a9cff85 100644
--- a/README.md
+++ b/README.md
@@ -1,218 +1,276 @@
-## 🔥 Lilishop B2B2C商城系统
+## 插件说明
-##### 🌹 开源不易,如有帮助请点Star
+> 这是 `v-tabs` 插件的升级版本,参数上有很大变动,支持 `H5` `小程序` `手机端`,如果是在之前的插件上升级的话,请注意参数的变更,触发的事件没有变更。
+## 使用说明
+### 1、最基本用法
-#### 欢迎交流需求,交流业务,交流技术(基础问题自行解决,进群先看文档后提问)
+- 视图文件
-##### 交流 qq 1群 961316482(已满)
-
-##### 交流 qq 2群 875294241
-
-
-
-##### 商城 公众号/小程序体验,扫描二维码
-
-
-
-[](https://gitee.com/beijing_hongye_huicheng/lilishop/stargazers)
- 
-
-
-### 🔥 商城介绍
-**官网**:https://pickmall.cn
-
-Lilishop 商城系统 基于SpringBoot 研发,B2B2C多用户商城系统,前端使用 Vue、uniapp开发 **系统全端全部代码开源**
-
-业务兼容O2O商城/B2B商城/B2B2C商城/F2B2C商城/S2B2C商城。支持小程序商城、H5商城、APP商城、 PC商城。
-
-
-商城前后端分离、支持分布式部署。
-
-商城包含 会员模块、**第三方登录模块**、**第三方支付模块**、**楼层装修模块**、订单模块、分销模块、文章模块、系统设置模块、流量分析模块
-
-商城包含各种中间件、搜索引擎、多级缓存、分布式事务、分布式任务调度等,支持Docker,支持k8s。是一款高性能,支持高并发的商城系统。
-
-##### 商城 API/消费者 聚合版
-api不需要单独部署,只需启动一个jar包就可以正常运转 如有需要,可以点击跳转https://gitee.com/beijing_hongye_huicheng/lilishop-simplify
-
-### ☃️ 商城 开发/使用/常见问题 帮助文档
-
-https://docs.pickmall.cn
-
-### 💧 开源商城项目地址(gitee)
-
-**API(商城所有API)**:https://gitee.com/beijing_hongye_huicheng/lilishop.git
-
-**UI(商城管理端/商家端/买家PC端)**: https://gitee.com/beijing_hongye_huicheng/lilishop-ui.git
-
-**uniapp(商城移动端,支持小程序/APP/H5)**:https://gitee.com/beijing_hongye_huicheng/lilishop-uniapp.git
-
-**docker一键部署(商城部署脚本)**:https://gitee.com/beijing_hongye_huicheng/docker.git
-
-### 💧 开源商城项目地址(github)
-
-**API(商城所有API)**:https://github.com/hongyehuicheng/lilishop.git
-
-**UI(商城管理端/商家端/买家PC端)**: https://github.com/hongyehuicheng/lilishop-ui.git
-
-**uniapp(商城移动端,支持小程序/APP/H5)**:https://github.com/hongyehuicheng/lilishop-uniapp.git
-
-**docker一键部署(商城部署脚本)**:https://github.com/hongyehuicheng/docker.git
-
-
-☃️ UI 项目下3个文件夹 buyer:买家PC端,seller:商家端,manager:后台管理端
-
-
-### 💧 演示地址(手机验证码为 ‘111111’)
-
-**商城管理端**:https://admin-b2b2c.pickmall.cn 账号:admin/123456
-
-**商城店铺后台**:https://store-b2b2c.pickmall.cn 账号:13011111111/111111
-
-**商城PC页面**:https://pc-b2b2c.pickmall.cn
-
-**商城移动端(请使浏览器手机模式,或者用手机浏览器打开)**:https://m-b2b2c.pickmall.cn
-
-**小程序/公众号**:扫描二维码
-
-
-
-### 🚙 3行命令搭建本地商城(注:只能本机访问,如需调整,请自行操作镜像)
-
-温馨提示:由于服务中间件较多,如果笔记本环境启动内存没有32g可能无法启动成功(macbookpro 2020 16g内存启动无法成功),台式机在16g内存、AMD 3700x 的ubuntu系统成功运行。
-
-
-
-##### docker环境安装 [点击跳转](https://docs.pickmall.cn/deploy/%E8%BF%90%E8%A1%8C%E7%8E%AF%E5%A2%83%E5%87%86%E5%A4%87.html)
-
-
-
-##### 下载docker-compose脚本
-`git clone https://gitee.com/beijing_hongye_huicheng/docker.git `
-
-##### 部署商城所需中间件
-`docker-compose up -d`
-
-##### 部署商城应用
-`docker-compose -f docker-compose-application.yml up -d`
-
-
-
-PS:商城数据库单独部署 https://gitee.com/beijing_hongye_huicheng/docker/tree/master/init/mysql 这里有与tag版本一致的sql,根据tag获取sql,如果使用master代码,则需要在lilishop项目根目录的DB目录中,获取对应的升级sql。
-
-##### 商城 API/UI 地址
-
-| API | 地址 |
-| -------------- | --------------- |
-| 商城买家API | http://127.0.0.1:8888 |
-| 商城商家API | http://127.0.0.1:8889 |
-| 商城管理端API | http://127.0.0.1:8887 |
-| 商城基础API | http://127.0.0.1:8890 |
-
-| 前端演示 | 地址 |
-| -------------- | --------------- |
-| 商城PC端 | http://127.0.0.1:10000 |
-| 商城WAP端 | http://127.0.0.1:10001 |
-| 商城卖家端 | http://127.0.0.1:10002 |
-| 商城管理端 | http://127.0.0.1:10003 |
-
-
-
-
-
-### ⚾️ 功能列表
-
-
-
-#### 🥎 商城平台功能
-
-
-
-
-
-#### 🥎 商城卖家功能
-
-
-
-
-
-
-
-### 🧩 商城前端功能展示
-
-
-
-#### ⚽️ 商城移动端
-
-
-
-
-
-#### ⚽️ 商城管理端
-
-
-
-
-### 商城技术选型
-
-#### 🥅 架构图
-
-
-
-##### 🕹 后台技术选型
-
-| 说明 | 框架 | 说明 | |
-| -------------- | --------------- | -------------- | ------------- |
-| 基础框架 | Spring Boot | MVC框架 | Spring MVC |
-| 持久框架 | Mybatis-Plus | 程序构建 | Maven |
-| 关系型数据库 | MySQL | 消息中间件AMQP | RocketMQ |
-| 缓存 | Redis +MongoDB | 搜索引擎 | Elasticsearch |
-| 安全框架 | Spring Security | 数据库连接池 | Druid |
-| 数据库分库分表 | sharding | 定时任务 | xxl-job |
-| 负载均衡 | Nginx | 静态资源 | 阿里云OSS |
-| 短信 | 阿里云短信 | 认证 | JWT |
-| 日志处理 | Log4j | 接口规范 | RESTful |
-
-##### 🖥 前端-运营后台、店铺后台
-
-| 说明 | 框架 | 说明 | 框架 |
-| ---------- | ---------- | ---------- | ------- |
-| 构建工具 | webpack | JS版本 | ES6 |
-| 基础JS框架 | Vue.js | 视频播放器 | Dplayer |
-| 路由管理 | Vue Router | 状态管理 | Vuex |
-| 基础UI库 | iView | UI界面基于 | iView |
-| 网络请求 | axios | | |
-
-##### 📱前端-移动端
-
-| 说明 | 架构 | 说明 | 架构 |
-| --------- | ------- | -------- | ------- |
-| 基础UI库 | uViewui | 基础框架 | uni-app |
-| CSS预处理 | scss | 地图引擎 | amap |
-
-### 🌟 版本升级
-
-```
-商城后续会持续版本升级,修复bug,完善功能,覆盖更多业务场景 o2o/b2b/s2b2b2c/跨境电商
-
-后续会考虑推出微服务商城系统/商城中台等
+```html
+
```
+- 脚本文件
-### ⚠️ 开源须知
-1.仅允许用于个人学习研究使用.
+```js
+export default {
+ data() {
+ return {
+ current: 0,
+ tabs: ['军事', '国内', '新闻新闻', '军事', '国内', '新闻', '军事', '国内', '新闻']
+ }
+ },
+ methods: {
+ changeTab(index) {
+ console.log('当前选中的项:' + index)
+ }
+ }
+}
+```
-2.禁止将本开源的代码和资源进行任何形式任何名义的出售.
+### 2、平铺整个屏幕
-3.软件受国家计算机软件著作权保护(登记号:2021SR0805085)。
+- 视图文件
-4.限制商用,如果需要商业使用请联系我们。QQ3409056806.
+```html
+
+```
+- 脚本文件
-### 🐧 交流群
+```js
+export default {
+ data() {
+ return {
+ activeTab: 0
+ }
+ }
+}
+```
-##### 官方qq 1群 961316482(已满)
-##### 官方qq 2群 875294241
+### 3、胶囊用法
+- 视图文件
+
+```html
+
+```
+
+- 脚本文件
+
+```js
+data() {
+ return {
+ current: 2,
+ tabs: [
+ '军事',
+ '国内',
+ '新闻新闻',
+ '军事',
+ '国内',
+ '新闻',
+ '军事',
+ '国内',
+ '新闻',
+ ],
+ },
+ methods: {
+ changeTab(index) {
+ console.log('当前选中索引:' + index)
+ }
+ }
+}
+```
+
+## 文档说明
+
+### 1、属性说明
+
+| 参数 | 类型 | 默认值 | 说明 |
+| :---------------: | :-----: | :-------: | :-----------------------------------------------------------------------: |
+| tabs | Array | [] | 控制 tab 的列表 |
+| value | Number | 0 | 必传(双向绑定的值) |
+| color | String | '#333' | 默认文字颜色 |
+| activeColor | String | '#2979ff' | 选中文字的颜色 |
+| fontSize | String | '28rpx' | 默认文字大小(rpx 或 px)(弃用) |
+| bold | Boolean | true | 是否加粗选中项 |
+| scroll | Boolean | true | 是否显示滚动条,平铺设置 false |
+| height | String | '70rpx' | tab 高度(rpx 或 px) |
+| lineHeight | String | '10rpx' | 滑块高度(rpx 或 px) |
+| lineColor | String | '#2979ff' | 滑块的颜色 |
+| lineScale | Number | 0.5 | 滑块宽度缩放值 |
+| lineRadius | String | '10rpx' | 滑块圆角宽度(rpx 或 px) |
+| pills | Boolean | false | 是否开启胶囊 |
+| pillsColor | String | '#2979ff' | 胶囊背景颜色(rpx 或 px) |
+| pillsBorderRadius | String | '10rpx' | 胶囊圆角宽度(rpx 或 px) |
+| field | String | '' | 如果 tabs 子项是对象,输入需要展示的键名 |
+| bgColor | String | '#fff' | 背景色,支持 linear-gradient 渐变 |
+| padding | String | '0' | 整个 tab padding 属性 |
+| fixed | Boolean | false | 是否固定在顶部 |
+| paddingItem | String | '0 22rpx' | 选项的边距(设置上下不生效,需要设置高度) |
+| lineAnimation | Boolean | true | 是否需要 line 和 pills 的动画,在隐藏页面后默认移动到第一个的时候比较实用 |
+| zIndex | Number | 1993 | 控制 tab 的层级,默认1993 |
+
+### 1.1 `tabs`参数展开说明
+
+#### 1.1.1 当`tabs`仅仅是单纯的数组时候,没有什么特别的地方
+
+```js
+export default {
+ data() {
+ return {
+ tabs: ['全部', '待付款', '待消费', '已完成', '已评价', '已过期', '已退款']
+ }
+ }
+}
+```
+
+#### 1.1.2 当`tabs`使用的数组对象的方式,特定参数需要注意一下
+
+- `disabled` 参数,可以控制按钮是否可以点击
+
+```js
+export default {
+ data() {
+ return {
+ tabs: [
+ { id: 1, name: '待付款', disabled: false },
+ { id: 2, name: '待收货', disabled: false },
+ { id: 3, name: '待评价', disabled: false },
+ { id: 4, name: '退款/售后', disabled: true },
+ { id: 5, name: '我的订单', disabled: false }
+ ]
+ }
+ }
+}
+```
+
+### 2、事件说明
+
+| 名称 | 参数 | 说明 |
+| :----: | :---: | :--------------------------------: |
+| change | index | 改变选中项触发, index 选中项的下标 |
+
+## 更新日志
+
+### 2.2.2(2024-12-10)
+1. [修复]修复`change`事件不生效的bug
+
+### 2.2.1(2024-11-13)
+1. [修复]修复摇树打包出现的bug
+
+### 2.2.0(2024-07-19)
+1. [修改]增加节流函数,控制tab的点击间隔
+
+### 2.1.9(2024-06-14)
+1. [修改]当`current`初始值大于`tabs.length`或者小于`0`,自动设置`current`的值为`0`
+2. [抛弃]压缩包方式的源码不提供维护了,只维护`uni_modules`中的源码
+
+### 2.1.8(2024-06-06)
+1. [新增]支持`vue3`了
+
+### 2.1.6(2024-06-06)
+1. [修复]使用`fixed`属性之后,在支付宝小程序无法滚动的bug
+
+### 2.1.5(2023-11-02)
+1. [修复]修复`change`和`v-model`绑定的值不同步
+2. [修复]暂时停用`activeFontSize`选项
+3. [修改]修改默认激活的文字不加粗
+
+### 2.1.4(2023-10-12)
+1. [修改]修改计算方式
+2. [新增]外部可以通过`this.$refs.tabs.update()`方法主动更新
+
+### 2.1.3(2023-09-11)
+1. [新增]支持自定义插槽模式,具体可以查看示例代码使用方式。[gitee demo](https://github.com/xfjpeter/uni-plugins/blob/master/pages/tabs/tabs.vue#L47-L50) 或 [github demo](https://github.com/xfjpeter/uni-plugins/blob/master/pages/tabs/tabs.vue#L47-L50)
+
+### 2.1.2(2023-06-12)
+1. [新增]添加`z-index`参数控制层级大小,默认1993
+2. [说明]以后该插件只更新`uni_modules`方式的,`zip`方式的不提供更新了,如果需要的请到 [gitee uni-plugins](https://gitee.com/xfjpeter/uni-plugins) 或 [github uni-plugins](https://github.com/xfjpeter/uni-plugins)下载源码,自行使用
+
+### 2.1.1(2022-09-16)
+
+1. 将插件更新为`uni_modules`方式
+
+### 2022-08-12
+
+1. 增加`disable`参数,控制是否可以点击,只能应用在数组对象中,见[disabled 的用法](#112-当tabs使用的数组对象的方式特定参数需要注意一下)
+
+```js
+export default {
+ data() {
+ return {
+ tabs: [{ id: 1, name: '' }]
+ }
+ }
+}
+```
+
+### 2022-01-27
+
+1. 更新属性`line-animation`设置为`false`可以不要动画,这是好多朋友问到,特此加上
+
+### 2020-09-24
+
+1. 修复 `v-tabs` 第一次可能出现第一个标签显示不完整的情况
+2. 修改了 `pages/tabs/order` 示例文件
+
+### 2020-09-21
+
+1. 修复添加 `fixed` 属性后,滚动条无效
+2. 修复选项很少的情况下,下划线计算计算错误
+3. 新增 `paddingItem` 属性,设置选项左右边距(上下边距需要设置 `height` 属性,或者设置 `padding` 属性)
+
+**写在最后:**
+欢迎各位老铁反馈 bug ,本人后端 PHP 一枚,只是应为感兴趣前端,自己琢磨,自己搞。如果你在使用的过程中有什么不合理,需要优化的,都可以在下面评论(或加我 QQ: 1207791534),本人看见后回复、修正,感谢。
+
+### 2020-09-17
+
+1. 紧急修复 bug,横向滑动不了的情况
+
+### 2020-09-16
+
+1. 新增 `fixed` 属性,是否固定在顶部,示例地址:`pages/tabs/tabs-static`
+2. 优化之前的页面结构
+
+**注意:**
+
+1. 使用 `padding` 属性的时候,尽量不要左右边距,会导致下划线位置不对
+2. 如果不绑定 `v-model` 会导致 `change` 事件改变的时候,下划线不跟随问题
+
+### 2020-09-09
+
+1. 修复 `width` 错误,dom 加载的时候没有及时获取到 `data` 属性导致的。
+
+### 2020-08-29
+
+1. 优化异步改变 `tabs` 后,下划线不初始化问题
+2. `github` 地址上有图 2 的源码,需要的自行下载,页面路径:`pages/tabs/order`
+
+### 2020-08-20
+
+1. 优化 `节点查询` 和 `选中渲染`
+2. 优化支付宝中 `createSelectorQuery()` 的影响
+
+### 2020-08-19
+
+1. 优化 `change` 事件触发机制
+
+### 2020-08-16
+
+1. 修改默认高度为 `70rpx`
+2. 新增属性 `bgColor`,可设置背景颜色,默认 `#fff`
+3. 新增整个 `tab` 的 `padding` 属性,默认 `0`
+
+### 2020-08-13
+
+1. 全新的 `v-tabs 2.0`
+2. 支持 `H5` `小程序` `APP`
+3. 属性高度可配置
+
+## 预览
+
+
+
diff --git a/api/message.js b/api/message.js
index b7cc5e82..c935e9a1 100644
--- a/api/message.js
+++ b/api/message.js
@@ -73,7 +73,7 @@ export function getLogisticsMessages(params) {
*/
export function getAppVersion(appType) {
return http.request({
- url: `/appVersion/${appType}`,
+ url: `/other/appVersion/${appType}`,
method: Method.GET,
type:"manager"
});
@@ -86,7 +86,7 @@ export function getLogisticsMessages(params) {
*/
export function getAppVersionList(type,data) {
return http.request({
- url: `/appVersion/appVersion/${type}`,
+ url: `/other/appVersion/appVersion/${type}`,
method: Method.GET,
type:"manager",
data
diff --git a/api/vlog.js b/api/vlog.js
index 26c8f4c0..8b6459b7 100644
--- a/api/vlog.js
+++ b/api/vlog.js
@@ -8,8 +8,9 @@ import api from "@/config/api.js";
+
/**
- * 短视频列表
+ * 短视频列表-true
*/
export function vlogList(page, pageSize) {
return http.request({
diff --git a/changelog.md b/changelog.md
new file mode 100644
index 00000000..4f9bd3df
--- /dev/null
+++ b/changelog.md
@@ -0,0 +1,149 @@
+## 2.2.2(2024-12-10)
+1. [修复]修复`change`事件不生效的bug
+## 2.2.1(2024-11-13)
+1. [修复]修复摇树打包出现的bug
+## 2.2.0(2024-07-19)
+1. [修改]增加节流函数,控制tab的点击间隔
+## 2.1.9(2024-06-14)
+1. [修改]当`current`初始值大于`tabs.length`或者小于`0`,自动设置`current`的值为`0`
+2. [抛弃]压缩包方式的源码不提供维护了,只维护`uni_modules`中的源码
+## 2.1.8(2024-06-07)
+1. [新增]支持`vue3`了
+## 2.1.6(2024-06-06)
+1. [修复]当有`fixed`属性之后,在支付宝小程序无法滚动的bug
+## 2.1.5(2023-11-02)
+1. [修复]修复`change`和`v-model`绑定的值不同步
+2. [修复]暂时停用`activeFontSize`选项
+3. [修改]修改默认激活的文字不加粗
+## 2.1.4(2023-10-12)
+1. [修改]修改计算方式
+2. [新增]外部可以通过`this.$refs.tabs.update()`方法主动更新
+## 2.1.3(2023-09-11)
+1. [新增]支持自定义插槽模式,具体可以查看示例代码使用方式。[gitee demo](https://github.com/xfjpeter/uni-plugins/blob/3e2bd062163f664889122fd74b8bd6ccad6a97f1/pages/tabs/tabs.vue#L47C10-L50C16) 或 [github demo](https://github.com/xfjpeter/uni-plugins/blob/3e2bd062163f664889122fd74b8bd6ccad6a97f1/pages/tabs/tabs.vue#L47C10-L50C16)
+## 2.1.2(2023-06-12)
+1. [新增]添加`z-index`参数控制层级大小,默认1993
+2. [说明]以后该插件只更新`uni_modules`方式的,`zip`方式的不提供更新了
+## 2.1.1(2022-09-16)
+1. 将插件更新为`uni_modules`方式
+## 2.1.0(2022-08-12)
+1. 增加`disable`参数,控制是否可以点击,只能应用在数组对象中,见[disabled 的用法](#112-当tabs使用的数组对象的方式特定参数需要注意一下)
+
+```js
+export default {
+ data() {
+ return {
+ tabs: [{ id: 1, name: '' }]
+ }
+ }
+}
+```
+
+## 2.0.10(2022-01-27)
+
+1. 更新属性line-animation设置为false可以不要动画,这是好多朋友问到,特此加上
+
+## 2.0.9(2020-10-12)
+
+1. 修复 v-tabs 第一次可能出现第一个标签显示不完整的情况
+2. 修改了 pages/tabs/order 示例文件
+
+## 2.0.8(2020-09-21)
+
+1. 修复添加 fixed 属性后,滚动条无效
+2. 修复选项很少的情况下,下划线计算计算错误
+3. 新增 paddingItem 属性,设置选项左右边距(上下边距需要设置 height 属性,或者设置 padding 属性)
+
+## 2.0.7(2020-09-17)
+
+1. 紧急修复 bug,横向滑动不了的情况
+
+## 2.0.6(2020-09-16)
+
+1. 新增 fixed 属性,是否固定在顶部,示例地址:pages/tabs/tabs-static
+2. 优化之前的页面结构
+
+## 2.0.5(2020-09-09)
+
+1. 修复 width 错误,dom 加载的时候没有及时获取到 data 属性导致的 。
+
+## 2.0.4(2020-08-29)
+
+1. 优化异步改变 tabs 后,下划线不初始化问题
+2. github 地址上有图 2 的源码,需要的自行下载,页面路径:pages/tabs/order.vue
+
+## 2.0.3(2020-08-20)
+
+1. 优化 节点查询 和 选中渲染
+2. 优化支付宝中 createSelectorQuery() 的影响
+
+**特别说明:**
+
+> 支付宝中平铺方法和其他方法不能在一个页面中出现,不然有一个显示错误(具体什么原因没查到,有好心的人发现了,望告知一下,感谢
+
+## 2.0.2(2020-08-19)
+
+1. 优化 change 事件触发机制
+
+## 2.0.1(2020-08-16)
+
+1. 修改默认高度为 70rpx
+2. 新增属性 bgColor,可设置背景颜色,默认 #fff
+3. 新增整个 tab 的 padding 属性,默认 0
+
+## 2.0.0(2020-08-13)
+
+1. 全新的 v-tabs 2.0
+2. 支持 H5 小程序 APP
+3. 属性高度可配置
+
+## 1.3.2(2020-07-21)
+
+1. 新增 auto 的配置,是否平铺 tab
+2. 修复文档上的错误示例(感谢 lushgwe@163.com 的反馈)
+
+## 1.3.0(2020-07-05)
+
+1. 新增 padding 的可配置
+2. 修复 v-model 双向绑定问题
+3. 修复初始化下划线没定位的为题
+
+## 1.2.0(2020-06-19)
+
+1. 添加注释
+2. 修复 bug
+
+## 1.1.8(2020-06-11)
+
+1. 添加 change 事件
+2. 修复插件内容问题
+3. 修复下划线不居中问题
+
+## 1.1.6(2020-06-11)
+
+1. 添加 change 事件
+2. 修复插件内容问题
+
+## 1.1.4(2020-06-11)
+
+1. 添加 change 事件
+2. 修复插件内容问题
+
+## 1.1.2(2020-06-11)
+
+1. 添加 change 事件
+
+## 1.1.1(2020-06-09)
+
+1. 修复小程序端选中的下划线不显示问题
+2. 新增 tab 高度设置
+3. lineHeight 修改为只支持 String 方式
+
+## 1.1.0(2020-06-09)
+
+1. 修复小程序端选中的下划线不显示问题
+2. 新增 tab 高度设置
+3. lineHeight 修改为只支持 String 方式
+
+## 1.0.0(2020-06-04)
+
+1. 更新插件1.0.0
\ No newline at end of file
diff --git a/components/vlog/videoComp.vue b/components/vlog/videoComp.nvue
similarity index 92%
rename from components/vlog/videoComp.vue
rename to components/vlog/videoComp.nvue
index 64369152..c3b7e05c 100755
--- a/components/vlog/videoComp.vue
+++ b/components/vlog/videoComp.nvue
@@ -1,7 +1,7 @@
-
+
@@ -116,7 +116,16 @@
},
pagingList: {
default: [],
- },
+ },
+ //
+ pid: {
+ type: [Number, String],
+ default: ''
+ },
+ parentId: {
+ type: String,
+ default: ''
+ }
},
data() {
return {
@@ -131,7 +140,8 @@
playerCur: 0,
page: 0,
totalPage: 0,
- playerList: this.videoList,
+ playerList: [],
+ // playerList: this.videoList,
thisVlogTotalComentCounts: 0,
videoContext: {},
@@ -187,7 +197,25 @@
}
},
},
- methods: {
+ methods: {
+ //------------addd
+ setScrollRef(height) {
+ if (this.$refs['list'].setSpecialEffects) {
+ this.$refs['list'].setSpecialEffects({
+ id: this.parentId,
+ headerHeight: height
+ });
+ }
+ },
+ loadData() {
+ // 首次激活时被调用
+ this.displayVideoPaging(this.page + 1, true);
+ },
+ clear() {
+ // 释放数据时被调用,参考 swiper-list 缓存配置
+ this.playerList.length = 0;
+ },
+ //---------------------------------
// 把超过1000或10000的数字调整,比如1.3k/6.8w
getGraceNumber(num) {
return graceNumber(num);
@@ -352,13 +380,13 @@
// 查看用户详情
goUserInfoSeeSee(userId) {
uni.setStorageSync("userPageId", userId);
- const info = storage.getVlogUserInfo()
+ const info = storage.getVlogUserInfo()||null
// 是否是当前登录的用户
let myUserId = "";
- if (info) {
+ if (info==null) {
myUserId = info.id;
}
- if (myUserId == userId) {
+ if (myUserId == userId) {
uni.switchTab({
url: "/pages/me/me",
});
diff --git a/components/vlog/videoDetail.vue b/components/vlog/videoDetail.nvue
similarity index 100%
rename from components/vlog/videoDetail.vue
rename to components/vlog/videoDetail.nvue
diff --git a/components/vlog/videoFollowComp.vue b/components/vlog/videoFollowComp.nvue
similarity index 96%
rename from components/vlog/videoFollowComp.vue
rename to components/vlog/videoFollowComp.nvue
index b002a753..75ea57a4 100755
--- a/components/vlog/videoFollowComp.vue
+++ b/components/vlog/videoFollowComp.nvue
@@ -104,7 +104,7 @@
-
+
@@ -248,7 +248,8 @@
playerCur: 0,
page: 0,
totalPage: 0,
- playerList: this.videoList,
+ // playerList: this.videoList,
+ playerList: [],
thisVlogTotalComentCounts: 0,
videoContext: {},
@@ -298,6 +299,24 @@
}
},
methods: {
+ //------------addd
+ setScrollRef(height) {
+ if (this.$refs['list'].setSpecialEffects) {
+ this.$refs['list'].setSpecialEffects({
+ id: this.parentId,
+ headerHeight: height
+ });
+ }
+ },
+ loadData() {
+ // 首次激活时被调用
+ this.displayVideoPaging(this.page + 1, true);
+ },
+ clear() {
+ // 释放数据时被调用,参考 swiper-list 缓存配置
+ this.playerList.length = 0;
+ },
+ //---------------------------------
freshCommentCounts() {
var me = this;
var userId = getApp().getUserInfoSession().id;
diff --git a/main.js b/main.js
index e02f7740..adb9322a 100644
--- a/main.js
+++ b/main.js
@@ -27,7 +27,7 @@ Object.keys(filters).forEach((key) => {
// 引入Vuex
Vue.prototype.$store = store;
-Vue.use(uView);
+Vue.use(uView);
Vue.config.productionTip = false;
diff --git a/package.json b/package.json
new file mode 100644
index 00000000..ac16a516
--- /dev/null
+++ b/package.json
@@ -0,0 +1,18 @@
+{
+ "id": "ir-tabs",
+ "name": "ir-tabs tabs tab选项卡组件",
+ "version": "1.0.3",
+ "description": "用于展示同一页面不同标题下内容,可通过左右滑动和点击tab的方式切换页面,支持自定义颜色、下拉刷新",
+ "keywords": [
+ "tab",
+ "tabs",
+ "选项卡",
+ "导航栏"
+ ],
+ "dcloudext": {
+ "category": [
+ "前端组件",
+ "通用组件"
+ ]
+ }
+}
\ No newline at end of file
diff --git a/pages.json b/pages.json
index 87816702..248f7be0 100644
--- a/pages.json
+++ b/pages.json
@@ -86,7 +86,257 @@
"style": {
}
- }
+ },
+ {
+ "path" : "pages/publish/publish",
+ "style" : {
+ "navigationBarTitleText" : "发布视频",
+ "navigationBarBackgroundColor" : "#181b27",
+ "navigationBarTextStyle": "#FFFFFF"
+ }
+ },
+ {
+ "path" : "pages/publish/preview",
+ "style" : {
+ "navigationBarTitleText" : "预览视频",
+ "navigationBarBackgroundColor" : "#181b27",
+ "enablePullDownRefresh" : false
+ }
+ }
+ // {
+ // "path" : "pages/me/vlogerInfo",
+ // "style" : {
+ // "app-plus" : {
+ // "titleNView" : false //禁用原生导航栏
+ // }
+ // }
+ // }
+ // {
+ // "path" : "pages/me/me",
+ // "style" : {
+ // "app-plus" : {
+ // "titleNView" : false //禁用原生导航栏
+ // }
+ // }
+ // }
+ // {
+ // "path" : "pages/me/myBackImg",
+ // "style" : {
+ // "app-plus" : {
+ // "titleNView" : false //禁用原生导航栏
+ // }
+ // }
+ // },
+ // {
+ // "path" : "pages/me/myFace",
+ // "style" : {
+ // "app-plus" : {
+ // "titleNView" : false //禁用原生导航栏
+ // }
+ // }
+ // },
+ // {
+ // "path" : "pages/me/myInfo",
+ // "style" : {
+ // "navigationBarTitleText" : "修改个人资料",
+ // "navigationBarBackgroundColor" : "#181b27"
+ // }
+ // },
+ // {
+ // "path" : "pages/me/modifyNickname",
+ // "style" : {
+ // "navigationBarTitleText" : "修改昵称",
+ // "navigationBarTextStyle" : "white",
+ // "navigationBarBackgroundColor" : "#181b27",
+ // "app-plus" : {
+ // "titleNView" : {
+ // "buttons" : [
+ // {
+ // "text" : "保存",
+ // "color" : "#ef274d",
+ // "width" : "60px",
+ // "fontSize" : "15px",
+ // "fontWeight" : "bold"
+ // }
+ // ]
+ // }
+ // }
+ // }
+ // },
+ // {
+ // "path" : "pages/me/modifyPass",
+ // "style" : {
+ // "navigationBarTitleText" : "修改密码",
+ // "navigationBarTextStyle" : "white",
+ // "navigationBarBackgroundColor" : "#181b27",
+ // "app-plus" : {
+ // "titleNView" : {
+ // "buttons" : [
+ // {
+ // "text" : "保存",
+ // "color" : "#ef274d",
+ // "width" : "60px",
+ // "fontSize" : "15px",
+ // "fontWeight" : "bold"
+ // }
+ // ]
+ // }
+ // }
+ // }
+ // },
+ // {
+ // "path" : "pages/me/modifyTioktokNum",
+ // "style" : {
+ // "navigationBarTitleText" : "修改视频号",
+ // "navigationBarTextStyle" : "white",
+ // "navigationBarBackgroundColor" : "#181b27",
+ // "app-plus" : {
+ // "titleNView" : {
+ // "buttons" : [
+ // {
+ // "text" : "保存",
+ // "color" : "#ef274d",
+ // "width" : "60px",
+ // "fontSize" : "15px",
+ // "fontWeight" : "bold"
+ // }
+ // ]
+ // }
+ // }
+ // }
+ // },
+ // {
+ // "path" : "pages/me/modifyDesc",
+ // "style" : {
+ // "navigationBarTitleText" : "修改简介",
+ // "navigationBarTextStyle" : "white",
+ // "navigationBarBackgroundColor" : "#181b27",
+ // "app-plus" : {
+ // "titleNView" : {
+ // "buttons" : [
+ // {
+ // "text" : "保存",
+ // "color" : "#ef274d",
+ // "width" : "60px",
+ // "fontSize" : "15px",
+ // "fontWeight" : "bold"
+ // }
+ // ]
+ // }
+ // }
+ // }
+ // },
+ // {
+ // "path" : "pages/me/modifySex",
+ // "style" : {
+ // "navigationBarTitleText" : "修改性别",
+ // "navigationBarTextStyle" : "white",
+ // "navigationBarBackgroundColor" : "#181b27",
+ // "app-plus" : {
+ // "titleNView" : {
+ // "buttons" : [
+ // {
+ // "text" : "保存",
+ // "color" : "#ef274d",
+ // "width" : "60px",
+ // "fontSize" : "15px",
+ // "fontWeight" : "bold"
+ // }
+ // ]
+ // }
+ // }
+ // }
+ // },
+ // {
+ // "path" : "pages/me/modifyBirthday",
+ // "style" : {
+ // "navigationBarTitleText" : "修改生日",
+ // "navigationBarTextStyle" : "white",
+ // "navigationBarBackgroundColor" : "#181b27",
+ // "app-plus" : {
+ // "titleNView" : {
+ // "buttons" : [
+ // {
+ // "text" : "保存",
+ // "color" : "#ef274d",
+ // "width" : "60px",
+ // "fontSize" : "15px",
+ // "fontWeight" : "bold"
+ // }
+ // ]
+ // }
+ // }
+ // }
+ // },
+ // {
+ // "path" : "pages/me/modifyLocation",
+ // "style" : {
+ // "navigationBarTitleText" : "修改所在地",
+ // "navigationBarTextStyle" : "white",
+ // "navigationBarBackgroundColor" : "#181b27",
+ // "app-plus" : {
+ // "titleNView" : {
+ // "buttons" : [
+ // {
+ // "text" : "保存",
+ // "color" : "#ef274d",
+ // "width" : "60px",
+ // "fontSize" : "15px",
+ // "fontWeight" : "bold"
+ // }
+ // ]
+ // }
+ // }
+ // }
+ // },
+ // {
+ // "path" : "pages/me/chooseProvince",
+ // "style" : {
+ // "navigationBarTitleText" : "选择省份",
+ // "navigationBarTextStyle" : "white",
+ // "navigationBarBackgroundColor" : "#181b27"
+ // }
+ // },
+ // {
+ // "path" : "pages/me/chooseCity",
+ // "style" : {
+ // "navigationBarTitleText" : "选择城市",
+ // "navigationBarTextStyle" : "white",
+ // "navigationBarBackgroundColor" : "#181b27"
+ // }
+ // },
+ // {
+ // "path" : "pages/me/settings",
+ // "style" : {
+ // "navigationBarTitleText" : "设置",
+ // "navigationBarTextStyle" : "white",
+ // "navigationBarBackgroundColor" : "#181b27"
+ // }
+ // },
+ // {
+ // "path" : "pages/me/myFans",
+ // "style" : {
+ // "navigationBarTitleText" : "粉丝",
+ // "navigationBarTextStyle" : "white",
+ // "navigationBarBackgroundColor" : "#181b27"
+ // }
+ // },
+ // {
+ // "path" : "pages/me/myFollows",
+ // "style" : {
+ // "navigationBarTitleText" : "关注",
+ // "navigationBarTextStyle" : "white",
+ // "navigationBarBackgroundColor" : "#181b27"
+ // }
+ // },
+ // {
+ // "path" : "pages/me/chooseDistrict",
+ // "style" : {
+ // "navigationBarTitleText" : "选择地区",
+ // "navigationBarTextStyle" : "white",
+ // "navigationBarBackgroundColor" : "#181b27"
+ // }
+ // }
],
"subPackages": [
diff --git a/pages/me/me.nvue b/pages/me/me.nvue
new file mode 100755
index 00000000..1e9be31d
--- /dev/null
+++ b/pages/me/me.nvue
@@ -0,0 +1,672 @@
+
+
+
+
+
+ {{ loginWords }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ pageUserInfo.nickname }}
+
+
+ 视频号:
+
+ {{ pageUserInfo.tiktokNum }}
+
+
+
+ 所在地:
+
+ {{ pageUserInfo.city == "" ? "中国" : "" + pageUserInfo.city
+ }}{{
+ pageUserInfo.district == "" ? "" : "·" + pageUserInfo.district
+ }}
+
+
+
+
+
+
+
+ {{ astro }}座
+
+
+
+ {{ animal }}
+
+
+
+
+
+
+
+ {{ pageUserInfo.description }}
+
+
+
+
+
+
+ {{ getGraceNumber(pageUserInfo.myFollowsCounts) }}
+
+ 关注
+
+
+
+ {{ getGraceNumber(pageUserInfo.myFansCounts) }}
+
+ 粉丝
+
+
+
+ {{ getGraceNumber(pageUserInfo.totalLikeMeCounts) }}
+
+ 获赞
+
+
+
+
+
+ 编辑资料
+
+
+
+
+
+
+
+
+
+
+ 作品
+
+
+
+
+
+ 私密
+
+
+
+
+
+ 赞过
+
+
+
+
+
+
+
+
+
+
+
+
+ ~ 空空如也 ~
+
+
+
+ ~ 没有更多了 ~
+
+
+
+
+
+
+
+
diff --git a/pages/me/vlogerInfo.nvue b/pages/me/vlogerInfo.nvue
new file mode 100755
index 00000000..29da601e
--- /dev/null
+++ b/pages/me/vlogerInfo.nvue
@@ -0,0 +1,724 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ pageUserInfo.nickname }}
+
+
+ 视频号:
+
+ {{ pageUserInfo.tiktokNum }}
+
+
+
+ 所在地:
+
+ {{ pageUserInfo.city == "" ? "中国" : "" + pageUserInfo.city
+ }}{{
+ pageUserInfo.district == "" ? "" : "·" + pageUserInfo.district
+ }}
+
+
+
+
+
+
+
+ {{ astro }}座
+
+
+
+ {{ animal }}
+
+
+
+
+
+
+
+ {{ pageUserInfo.description }}
+
+
+
+
+
+
+ {{ getGraceNumber(pageUserInfo.myFollowsCounts) }}
+
+ 关注
+
+
+
+ {{ getGraceNumber(pageUserInfo.myFansCounts) }}
+
+ 粉丝
+
+
+
+ {{ getGraceNumber(pageUserInfo.totalLikeMeCounts) }}
+
+ 获赞
+
+
+
+
+
+ 已关注
+
+
+ 相互关注
+
+
+ 关注我
+
+
+
+
+
+
+
+ 作品
+
+
+
+
+
+ 私密
+
+
+
+
+
+ 赞过
+
+
+
+
+
+
+
+
+
+
+
+
+ ~ 空空如也 ~
+
+
+
+ ~ 没有更多了 ~
+
+
+
+
+
+
+
+
diff --git a/pages/publish/preview.nvue b/pages/publish/preview.nvue
new file mode 100755
index 00000000..ee9a8374
--- /dev/null
+++ b/pages/publish/preview.nvue
@@ -0,0 +1,55 @@
+
+
+
+
+
+
+
+
+
diff --git a/pages/publish/publish.nvue b/pages/publish/publish.nvue
new file mode 100755
index 00000000..f978f5f7
--- /dev/null
+++ b/pages/publish/publish.nvue
@@ -0,0 +1,369 @@
+
+
+
+
+
+
+ 视频上传中,请耐心等待~~
+
+
+
+
+
+
+
+
+
+ 预览视频
+
+
+ 选择封面
+
+
+
+
+ 发布视频
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/tabbar/vlog/index.nvue b/pages/tabbar/vlog/index.nvue
index 15b430f6..371341ac 100644
--- a/pages/tabbar/vlog/index.nvue
+++ b/pages/tabbar/vlog/index.nvue
@@ -1,341 +1,602 @@
-
-
-
-
-
-
- 暂未开放,敬请期待!
-
-
-
-
- 请登录后查看!
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/plugins/APPUpdate/index.js b/plugins/APPUpdate/index.js
index 7a15aa48..8520ea0d 100644
--- a/plugins/APPUpdate/index.js
+++ b/plugins/APPUpdate/index.js
@@ -850,7 +850,8 @@ function downloadPopup(data, callback, cancelCallback, rebootCallback) {
popupView.hide();
},
});
-}
+}
+// APPUpdate
export default function (isPrompt = false) {
getCurrentNo((version) => {
getServerNo((res) => {
diff --git a/utils/request.js b/utils/request.js
index 51649e07..d19083aa 100644
--- a/utils/request.js
+++ b/utils/request.js
@@ -124,7 +124,8 @@ let isRefreshing = false;
let requests = [];
// 必须使用异步函数,注意
http.interceptors.response.use(
- async (response) => {
+ async (response) => {
+ console.log(isRefreshing)
console.log(response)
/* 请求之后拦截器。可以使用async await 做异步操作 */
// token存在并且token过期
diff --git a/uview-ui/components/u-tabs-swiper/u-tabs-swiper.vue b/uview-ui/components/u-tabs-swiper/u-tabs-swiper.vue
index 0a8863f5..bc4fb263 100644
--- a/uview-ui/components/u-tabs-swiper/u-tabs-swiper.vue
+++ b/uview-ui/components/u-tabs-swiper/u-tabs-swiper.vue
@@ -410,7 +410,9 @@
}
.u-tabs-scroll-box {
- position: relative;
+ position: relative;
+ display: flex;
+ flex-direction: row;
}
.u-tabs-scorll-flex {