tanyanfei 2 years ago
parent
commit
fb46ff9b84

+ 2 - 2
pages/login/user.wxml

@@ -45,8 +45,8 @@
     <view class='avatar'>
             <image src="../../images/logo.png"></image>
     </view>
-  <navigator url="../apply/apply?type=2"><image style="width: 24px;" mode="widthFix" src="../../images/bs.png"></image>选手报名</navigator>
-  <navigator wx:if="{{player_type==0}}"  style="background: none;color:#D94B24;" url="../apply/apply?type=1"><image style="width: 24px;" mode="widthFix" src="../../images/yk.png"></image>游客报名</navigator>
+  <navigator url="../apply/apply?type=2"><image style="width: 24px;" mode="widthFix" src="../../images/bs.png"></image>报名参数(做选手)</navigator>
+  <navigator wx:if="{{player_type==0}}"  style="background: none;color:#D94B24;" url="../apply/apply?type=1"><image style="width: 24px;" mode="widthFix" src="../../images/yk.png"></image>访问系统(不参赛)</navigator>
   <navigator style="background: none;color:#D94B24;" url="../message/message"><image style="width: 18px;" mode="widthFix" src="../../images/zx.png"></image>顽主咨询</navigator>
 </view>
 

+ 3 - 0
pages/login/user.wxss

@@ -100,6 +100,9 @@ page{
   font-size: 32rpx;
   border-radius: 8rpx;
   position: relative;
+  text-align: left;
+  padding-left: 38%;
+  box-sizing: border-box;
 }
 .no_login navigator image{
   position: absolute;

+ 7 - 2
pages/message/message.js

@@ -12,7 +12,8 @@ Page({
         focus:false,
         scrollTop:0,
         template_id:"S7423qLZ0QBhHAI6lfqYwc6CILw5EtADmN3m_5oMnts",
-        subscribe:false
+        subscribe:false,
+        disable:false
     },
 
     /**
@@ -74,10 +75,14 @@ Page({
         if(!data.cotent){
             return
         }
+        this.setData({
+          disable:true
+        })
         $api.consult(data).then(res=>{
           this.getData()
           this.setData({
-            comment:''
+            comment:'',
+            disable: false
           })
         })
     },

+ 2 - 2
pages/message/message.wxml

@@ -14,8 +14,8 @@
     </view>
     <view class="post">
         <input confirm-type='send' bindconfirm='post' value="{{comment}}" placeholder-style="color:#999" maxlength="500" bindinput="inputchange" type="text" placeholder="我要咨询"/>
-        <button wx:if="{{!subscribe}}" bindtap="subscribe">提交</button>
-        <button wx:else bindtap="post">提交</button>
+        <button wx:if="{{!subscribe}}" disabled="{{disable}}" bindtap="subscribe">提交</button>
+        <button wx:else bindtap="post" disabled="{{disable}}">提交</button>
     </view>
     <view style="clear: both;"></view>
 </view>

+ 1 - 1
pages/stock/stock.js

@@ -12,7 +12,7 @@ Page({
     type:'',
     page:1,
     total:0,
-    cur:0,
+    cur:1,
     text:'留下你的观点',
     comment:'',
     list:[],

+ 2 - 1
pages/stock/stock.wxml

@@ -15,8 +15,9 @@
   <image wx:if='{{info.img}}' mode="withFix" src="{{info.img}}"></image>
   <view wx:if='{{info.desc}}' class="desc">{{info.desc}}</view>
   <view class="tab">
+   <view bindtap="tab"   data-id='1' class="{{cur==1?'act':''}}">今日持仓 {{info.list.length}}<text></text></view>
       <view bindtap="tab" data-id='0' class="{{cur==0?'act':''}}">留言 {{comment_count}} <text></text></view>
-      <view bindtap="tab"   data-id='1' class="{{cur==1?'act':''}}">今日持仓 {{info.list.length}}<text></text></view>
+     
       <view bindtap="tab"   data-id='2' class="{{cur==2?'act':''}}">自选 {{myList.length}}<text></text></view>
   </view>
   <scroll-view bindtap="blur"  scroll-y='{{true}}' style="height:calc(100vh - 380rpx);background: #fff;padding: 30rpx;">

+ 1 - 1
pages/upload/upload.wxml

@@ -53,7 +53,7 @@
         <text>7、数据提交有误可直接修改,再点击上传。</text>
     </view>
     
-    <button   bindtap="post">上传</button>
+    <button disabled='{{disable}}'  bindtap="post">上传</button>
     <!-- <button wx:else disabled>上传</button> -->
     
     <!-- <button wx:if='{{!change}}' disable='{{disable}}' bindtap="post">上传</button>

+ 3 - 3
pages/user/user.wxml

@@ -67,12 +67,12 @@
 
 
 
-<view class="no_login" wx:else>
+<view class="no_login" wx:if="{{!userinfo.id}}">
   <view class="title">欢迎来到湖南顽主杯实盘大赛</view>
     <view class='avatar'>
             <image src="../../images/logo.png"></image>
     </view>
-  <navigator url="../login/user"><image style="width: 24px;" mode="widthFix" src="../../images/bs.png"></image>选手报名</navigator>
-  <navigator style="background: none;color:#D94B24;" url="../login/user"><image style="width: 24px;" mode="widthFix" src="../../images/yk.png"></image>游客报名</navigator>
+  <navigator url="../login/user"><image style="width: 24px;" mode="widthFix" src="../../images/bs.png"></image>报名参数(做选手)</navigator>
+  <navigator style="background: none;color:#D94B24;" url="../login/user"><image style="width: 24px;" mode="widthFix" src="../../images/yk.png"></image>访问系统(不参赛)</navigator>
   <navigator style="background: none;color:#D94B24;" url="../login/user"><image style="width: 18px;" mode="widthFix" src="../../images/zx.png"></image>顽主咨询</navigator>
 </view>

+ 3 - 0
pages/user/user.wxss

@@ -238,6 +238,9 @@ page{
   font-size: 32rpx;
   border-radius: 8rpx;
   position: relative;
+  text-align: left;
+  padding-left: 38%;
+  box-sizing: border-box;
 }
 .no_login navigator image{
   position: absolute;

+ 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": {}
 }