@@ -70,10 +70,10 @@
}
.currentType {
- border: none;
color: white;
box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.06) 0px 2px 4px -1px;
background-color: #00C657;
+ border-color: #00C657;
font-weight: bold;
@@ -60,10 +60,10 @@
font-size: 28rpx;
.recommend .selectType .currentType {
.recommend .selectType .search {
@@ -22,6 +22,11 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad(options) {
+ if (wx.getStorageSync('uid') == options.uid) {
+ wx.setNavigationBarTitle({
+ title: '我的主页'
+ })
+ }
this.setData({
type: options.type || 'user',
uid: options.uid
@@ -18,9 +18,9 @@
@@ -16,9 +16,9 @@
.worksBox .selectType .currentType {
@@ -6,13 +6,14 @@ const {
envVersion
} = wx.getAccountInfoSync();
-// if (envVersion == 'develop') {
-baseUrl = 'https://reader-api.efunbox.cn/wx'
-oldUrl = 'https://reader-api.efunbox.cn'
-// } else {
-// baseUrl = 'https://reader-api.ai160.com/wx'
-// oldUrl = 'https://reader-api.ai160.com'
-// }
+if (envVersion == 'develop') {
+ baseUrl = 'https://reader-api.efunbox.cn/wx'
+ oldUrl = 'https://reader-api.efunbox.cn'
+} else {
+ baseUrl = 'https://reader-api.ai160.com/wx'
+ oldUrl = 'https://reader-api.ai160.com'
+}
+
function request(url, method, data, oldBaseUrl = false) {
let header = {
'uid': wx.getStorageSync('uid') || ''