xjc 2 yıl önce
ebeveyn
işleme
72a155f9f8
4 değiştirilmiş dosya ile 68 ekleme ve 61 silme
  1. 8 2
      pages/homepage/homepage.js
  2. 1 0
      pages/today/today.js
  3. 1 1
      pages/today/today.wxml
  4. 58 58
      project.config.json

+ 8 - 2
pages/homepage/homepage.js

@@ -34,7 +34,9 @@ Page({
       type:options.type?options.type:'',
       id: id,
       record_id: record_id,
-      player_id: options.player_id ? options.player_id:''
+      player_id: options.player_id ? options.player_id:'',
+      user_id: options.user_id ? options.user_id:'',
+      cur_user_id:options.cur_user_id
     })
     if(options.type){
         wx.setNavigationBarTitle({
@@ -62,6 +64,7 @@ Page({
     // match_id   player_id  month: "2021-12"
     $api.getCalendar({
       player_id: this.data.player_id,
+      user_id:this.data.cur_user_id,
       match_id:this.data.id,
       month: this.data.date
     }).then(res=>{
@@ -100,6 +103,9 @@ Page({
     if (this.data.player_id) {
       data.player_id = this.data.player_id
     }
+    if (this.data.cur_user_id) {
+      data.user_id = this.data.cur_user_id
+    }
     if (this.data.record_id) {
       // data.record_id = this.data.record_id
     }
@@ -131,7 +137,7 @@ Page({
     
     //每日持股
     var parm={
-      id: this.data.id, player_id: this.data.player_id?data.player_id:o
+      id: this.data.id, player_id: this.data.player_id?data.player_id:o,user_id: this.data.cur_user_id?this.data.cur_user_id:null
     }
     $api.getRecordList(parm).then(res=>{
         this.setData({

+ 1 - 0
pages/today/today.js

@@ -118,6 +118,7 @@ Page({
         date: stock_date[0] + '-' + stock_date[1],
         is_follow: res.data.data.is_follow,
         player_id: res.data.data.today_record.player_id,
+        cur_user_id: res.data.data.today_record.user_id,
         followers:res.data.data.followers,
         fans:res.data.data.fans,
         record_id: this.data.record_id ? this.data.record_id:res.data.data.today_record.id,

+ 1 - 1
pages/today/today.wxml

@@ -9,7 +9,7 @@
           <navigator url="../follow/follow?id={{player_id}}&type=1" style="display: inline-block;"><text style="margin-left: 20rpx;">{{followers}}</text>关注</navigator>
       </view>
     </view>
-    <navigator url="../homepage/homepage?id={{id}}&record_id={{record_id}}&player_id={{player_id}}">Ta的主页</navigator>
+    <navigator url="../homepage/homepage?id={{id}}&record_id={{record_id}}&player_id={{player_id}}&cur_user_id={{cur_user_id}}">Ta的主页</navigator>
 </view>
 <view class="per_info">
     <view class="rank">

+ 58 - 58
project.config.json

@@ -1,60 +1,60 @@
 {
-  "description": "项目配置文件,详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
-  "packOptions": {
-    "ignore": [],
-    "include": []
-  },
-  "setting": {
-    "urlCheck": true,
-    "es6": true,
-    "enhance": true,
-    "postcss": true,
-    "preloadBackgroundData": false,
-    "minified": true,
-    "newFeature": true,
-    "coverView": true,
-    "nodeModules": false,
-    "autoAudits": false,
-    "showShadowRootInWxmlPanel": true,
-    "scopeDataCheck": false,
-    "uglifyFileName": false,
-    "checkInvalidKey": true,
-    "checkSiteMap": true,
-    "uploadWithSourceMap": true,
-    "babelSetting": {
-      "ignore": [],
-      "disablePlugins": [],
-      "outputPath": ""
-    },
-    "useCompilerModule": false,
-    "userConfirmedUseCompilerModuleSwitch": false,
-    "compileHotReLoad": false,
-    "lazyloadPlaceholderEnable": false,
-    "useMultiFrameRuntime": true,
-    "useApiHook": true,
-    "useApiHostProcess": true,
-    "enableEngineNative": false,
-    "useIsolateContext": false,
-    "userConfirmedBundleSwitch": false,
-    "packNpmManually": false,
-    "packNpmRelationList": [],
-    "minifyWXSS": true,
-    "disableUseStrict": false,
-    "minifyWXML": true,
-    "showES6CompileOption": false,
-    "useCompilerPlugins": false,
-    "useStaticServer": true,
-    "ignoreUploadUnusedFiles": true
-  },
-  "compileType": "miniprogram",
-  "libVersion": "2.15.0",
-  "appid": "wxb299e10e65157301",
-  "projectname": "newwzb_xcx",
-  "simulatorType": "wechat",
-  "simulatorPluginLibVersion": {},
-  "editorSetting": {
-    "tabIndent": "insertSpaces",
-    "tabSize": 2
-  },
-  "condition": {}
+	"description": "项目配置文件,详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
+	"packOptions": {
+		"ignore": [],
+		"include": []
+	},
+	"setting": {
+		"urlCheck": true,
+		"es6": true,
+		"enhance": true,
+		"postcss": true,
+		"preloadBackgroundData": false,
+		"minified": true,
+		"newFeature": true,
+		"coverView": true,
+		"nodeModules": false,
+		"autoAudits": false,
+		"showShadowRootInWxmlPanel": true,
+		"scopeDataCheck": false,
+		"uglifyFileName": false,
+		"checkInvalidKey": true,
+		"checkSiteMap": true,
+		"uploadWithSourceMap": true,
+		"babelSetting": {
+			"ignore": [],
+			"disablePlugins": [],
+			"outputPath": ""
+		},
+		"useCompilerModule": false,
+		"userConfirmedUseCompilerModuleSwitch": false,
+		"compileHotReLoad": false,
+		"lazyloadPlaceholderEnable": false,
+		"useMultiFrameRuntime": true,
+		"useApiHook": true,
+		"useApiHostProcess": true,
+		"enableEngineNative": false,
+		"useIsolateContext": false,
+		"userConfirmedBundleSwitch": false,
+		"packNpmManually": false,
+		"packNpmRelationList": [],
+		"minifyWXSS": true,
+		"disableUseStrict": false,
+		"minifyWXML": true,
+		"showES6CompileOption": false,
+		"useCompilerPlugins": false,
+		"useStaticServer": true,
+		"ignoreUploadUnusedFiles": true
+	},
+	"compileType": "miniprogram",
+	"libVersion": "2.15.0",
+	"appid": "wxb299e10e65157301",
+	"projectname": "newwzb_xcx",
+	"simulatorType": "wechat",
+	"simulatorPluginLibVersion": {},
+	"editorSetting": {
+		"tabIndent": "insertSpaces",
+		"tabSize": 2
+	},
+	"condition": {}
 }