Browse Source

Signed-off-by: liuboyan <632697560@qq.com>
bug

liuboyan 4 years ago
parent
commit
b2390eb122
4 changed files with 7 additions and 3 deletions
  1. 4 0
      pages/login/index.vue
  2. 1 1
      pages/news/index.vue
  3. 1 1
      pagesClass/classList.vue
  4. 1 1
      pagesMain/studentInfo.vue

+ 4 - 0
pages/login/index.vue

@@ -13,9 +13,13 @@
 					</u-cell-item>
 				</u-cell-group>
 				<u-button type="warning" :ripple="true" :custom-style="{...customStyle, margin: '10px 0'}" @click="login()">登录</u-button>
+				<!-- #ifdef APP-PLUS -->
 				<u-button type="warning" :ripple="true" :custom-style="{...customStyle, margin: '10px 0'}" @click="login1()">app微信授权登录</u-button>
+				<!-- #endif -->
+				<!-- #ifdef MP-WEIXIN -->
 				<u-button type="warning" :ripple="true" :custom-style="{...customStyle, backgroundColor: '#07c160'}" open-type="getPhoneNumber"
 				 @getphonenumber="getUserinfoWechat" withCredentials="true">微信一键登录</u-button>
+				<!-- #endif -->
 			</view>
 		</u-card>
 		<u-top-tips ref="uTips"></u-top-tips>

+ 1 - 1
pages/news/index.vue

@@ -8,7 +8,7 @@
 				 :refresher-triggered="triggered" :refresher-threshold="100" refresher-background="white" @refresherrefresh="onRefresh"
 				 @refresherrestore="onRestore">
 					<u-card :head-border-bottom="false" :foot-border-top="false" padding="0px" margin="10px" borderRadius="40" v-for="(site, index2) in item.tableList"
-					 :key="index" class="class-card" @click="goToMyClass(site)">
+					 :key="index2" class="class-card" @click="goToMyClass(site)">
 						<view class="class-content" slot="head" style="padding-top: 10px; display: flex; justify-content: space-between;">
 							<view class="student-name">{{site.studentName}}</view>
 							<view class="class-date">{{site.time}}</view>

+ 1 - 1
pagesClass/classList.vue

@@ -8,7 +8,7 @@
 				 :refresher-triggered="triggered" :refresher-threshold="100" refresher-background="white" @refresherrefresh="onRefresh"
 				 @refresherrestore="onRestore">
 					<u-card :head-border-bottom="false" :foot-border-top="false" padding="0px" margin="10px" borderRadius="40" v-for="(site, index2) in item.tableList"
-					 :key="index" class="card-box" @click="goToClassDetail(site)">
+					 :key="index2" class="card-box" @click="goToClassDetail(site)">
 						<view class="card-content" slot="head" style="padding-top: 10px;">
 							<view class="card-name">{{site.name}}</view>
 						</view>

+ 1 - 1
pagesMain/studentInfo.vue

@@ -16,7 +16,7 @@
 				<u-cell-item title="手机号码" :value="studentInfo.phone" :arrow="false"></u-cell-item>
 				<u-cell-item :title="type == 1 ? '成长历程' : '沟通记录'" :arrow="false" :title-style="{fontSize: '16px',fontWeight: 'bold'}"></u-cell-item>
 				<u-cell-item :title="type == 1 ? item.name : item.coachName" :value="item.time" :label="item.content" :arrow="false"
-				 v-for="(item, index1) in tableList" :key="index" :title-style="{fontSize: '14px',fontWeight: 'bold'}"></u-cell-item>
+				 v-for="(item, index1) in tableList" :key="index1" :title-style="{fontSize: '14px',fontWeight: 'bold'}"></u-cell-item>
 			</u-cell-group>
 			<u-divider v-if="item.isOver" bg-color="transparent">没有更多了</u-divider>
 		</scroll-view>