diff --git a/main.js b/main.js
index 9dfdf5e..320b0f4 100644
--- a/main.js
+++ b/main.js
@@ -3,10 +3,10 @@ import store from './store/'
//配置公共方法(防止重复提交)
import common from './utils/common.js'
-// const baseURL = 'http://localhost:7010'
+const baseURL = 'http://localhost:7010'
//const baseURL = 'http://81.69.47.31:7010'
// const baseURL = 'http://bnyer.vaiwan.com'
-const baseURL = 'http://fu7avs.natappfree.cc'
+// const baseURL = 'http://x9uf7k.natappfree.cc'
Vue.prototype.$baseURL = baseURL;
diff --git a/pages-userInfo/about/about.vue b/pages-userInfo/about/about.vue
index 4d752c9..ae85dbb 100644
--- a/pages-userInfo/about/about.vue
+++ b/pages-userInfo/about/about.vue
@@ -102,10 +102,61 @@
}
-
diff --git a/pages-userInfo/notice/notice.vue b/pages-userInfo/notice/notice.vue
index 8fa8b0d..329bd28 100644
--- a/pages-userInfo/notice/notice.vue
+++ b/pages-userInfo/notice/notice.vue
@@ -4,8 +4,11 @@
- -----已经到底啦-----
-
+
+
+
+
+
-
+
diff --git a/pages/index/material/material.vue b/pages/index/material/material.vue
index 4a87c45..ace16fc 100644
--- a/pages/index/material/material.vue
+++ b/pages/index/material/material.vue
@@ -1,15 +1,34 @@
+
+
+ {{val}}
+
+
+
+
+ {{val}}
+
+
+
+
+
+ -----已经到底啦-----
+
@@ -38,7 +57,17 @@
flag: false
}
},
- onLoad() {
+ onLoad(option) {
+ if (option?.categoryId && option?.categoryIndex) {
+ this.statusCurrent = 2;
+ this.status = 2;
+ this.typeId = option.categoryId * 1;
+ this.typeCurrent = option.categoryIndex * 1;
+ }
+ if (option?.categoryId && option?.categoryIndex && option?.status) {
+ this.statusCurrent = option.status * 1;
+ this.status = option.status * 1;
+ }
this.listTiktokImgIn();
},
created(){
@@ -73,7 +102,6 @@
},
// 上划加载更多
onReachBottom() {
- console.log(2222)
if (this.creatorImgList.length > this.pageSize*this.pageNum-1) {
this.flag = false;
this.pageNum += 1
@@ -86,6 +114,7 @@
// 前往详情页
targetDetail(item) {
//console.log('跳转', item)
+ let that = this;
if (item.id) {
uni.setStorage({
key: 'detailId',
@@ -93,7 +122,7 @@
success() {
console.log(111111)
uni.navigateTo({
- url: '/pages/index/material/imgDetail',
+ url: `/pages/index/material/imgDetail?categoryId=${that.typeId}&categoryIndex=${that.typeCurrent}&status=${that.status}`,
success:function(){
console.log('跳转成功!')
},
@@ -111,7 +140,10 @@
that.flag = false;
that.creatorImgList = [];
that.status = e1.currentIndex;
- //console.log('status',that.status)
+ that.statusCurrent = e1.currentIndex;
+ // that.typeCurrent = 0;
+ // that.typeId = that.typeIdList[0];
+ // console.log('status',that.status)
uni.showLoading({
title: "加载中",
mask: true,
@@ -148,6 +180,7 @@
that.flag = false;
that.creatorImgList = [];
that.typeId = that.typeIdList[e2.currentIndex];
+ that.typeCurrent = e2.currentIndex;
//console.log('typeId',that.typeId)
uni.showLoading({
title: "加载中",
@@ -162,11 +195,11 @@
status: that.status
};
listTiktokImgIn(param).then(res => {
- console.log('that.typeId',that.typeId);
- console.log('that.status',that.status);
+ // console.log('that.typeId',that.typeId);
+ // console.log('that.status',that.status);
if(res.data.code === 200){
that.creatorImgList.push(...res.data.rows)
- console.log(that.creatorImgList)
+ // console.log(that.creatorImgList)
//console.log('调用成功2!', that.creatorImgList);
if(that.typeId === 1){
that.imgWidth = 750/3-20 + 'rpx'
@@ -208,7 +241,7 @@
if (res.data.code === 200) {
for (let s of res.data.data) {
this.typeList.push(s.typeName);
- this.typeIdList.push(s.id);
+ this.typeIdList.push(s.id);
}
//console.log('typeList', this.typeList)
console.log('typeIdList', this.typeIdList)
@@ -246,9 +279,69 @@
diff --git a/pages/login/login.vue b/pages/login/login.vue
index d80187c..67048cc 100644
--- a/pages/login/login.vue
+++ b/pages/login/login.vue
@@ -108,60 +108,51 @@
},
methods: {
login(e) {
- console.log(e)
+ // console.log(e)
let that = this
- console.log('that.phoneFlag', that.phoneFlag)
- console.log('that.passwordFlag', that.passwordFlag)
+ // console.log('that.phoneFlag', that.phoneFlag)
+ // console.log('that.passwordFlag', that.passwordFlag)
if (that.phoneFlag === true && that.passwordFlag === true) {
- console.log('全部达成')
+ // console.log('全部达成')
uni.showLoading({
title: '艺术家登录中!',
- duration: 3000,
- success() {
- let pwd = md5(that.formData.password)
- const param = {
- phone: that.formData.phone,
- password: pwd
- }
- console.log('form', param)
- login(param).then(response => {
- if (response.data.code === 200) {
- console.log('response',response)
- //登录成功,设置token、艺术家信息,页面跳转到主页
- uni.setStorage({
- key: 'userInfo',
- data: response.data.data.userInfo
- });
- uni.setStorage({
- key: 'token',
- data: response.data.data.access_token
- })
- uni.switchTab({
- url: '../index/index',
- success() {
- uni.showToast({
- title: '艺术家登录成功!',
- icon: 'success',
- duration: 1500
- })
- }
- });
- } else {
- uni.showToast({
- title: response.data.msg,
- icon: 'none'
- })
- }
- })
- },
- fail: () => {
- uni.hideLoading();
- uni.showToast("登录失败")
- },
- complete: function() {
- uni.hideLoading();
- }
})
+ let pwd = md5(that.formData.password)
+ const param = {
+ phone: that.formData.phone,
+ password: pwd
+ }
+ // console.log('form', param)
+ login(param).then(response => {
+ if (response.data.code === 200) {
+ // console.log('response',response)
+ //登录成功,设置token、艺术家信息,页面跳转到主页
+ uni.setStorage({
+ key: 'userInfo',
+ data: response.data.data.userInfo
+ });
+ uni.setStorage({
+ key: 'token',
+ data: response.data.data.access_token
+ })
+ uni.hideLoading();
+ uni.switchTab({
+ url: '../index/index',
+ success() {
+ uni.showToast({
+ title: '艺术家登录成功!',
+ icon: 'success',
+ duration: 1500
+ })
+ }
+ });
+ } else {
+ uni.showToast({
+ title: response.data.msg,
+ icon: 'none'
+ })
+ }
+ })
} else {
console.log('尚未全部达成')
}
diff --git a/pages/profit/profit.vue b/pages/profit/profit.vue
index 52d277e..37f7dcb 100644
--- a/pages/profit/profit.vue
+++ b/pages/profit/profit.vue
@@ -438,7 +438,7 @@ export default {
.income-categories{
.yesterday-income-title {
- height: 32rpx;
+ height: 28rpx;
font-size: 32rpx;
line-height: 32rpx;
background: #0a6375;
@@ -495,7 +495,7 @@ export default {
.segmented-con {
width: 100%;
height: 72rpx;
- font-size: 32rpx;
+ font-size: 28rpx;
line-height: 72rpx;
text-align: center;
background: #1d2734;
@@ -527,7 +527,7 @@ export default {
}
.adver-top-text {
- font-size: 32rpx;
+ font-size: 28rpx;
}
}
diff --git a/pages/profit/profitEndDetails.vue b/pages/profit/profitEndDetails.vue
index 7dca597..fc86911 100644
--- a/pages/profit/profitEndDetails.vue
+++ b/pages/profit/profitEndDetails.vue
@@ -1,13 +1,13 @@
-
-
+
+
+ {{val}}
+
@@ -275,6 +275,46 @@ export default {
+
+
+