|
@@ -7,20 +7,38 @@
|
|
|
<!-- top的高度等于悬浮菜单tabs的高度 -->
|
|
<!-- top的高度等于悬浮菜单tabs的高度 -->
|
|
|
<mescroll-uni :ref="'mescrollRef' + i" @init="mescrollInit" :height="height" :down="downOption" @down="downCallback"
|
|
<mescroll-uni :ref="'mescrollRef' + i" @init="mescrollInit" :height="height" :down="downOption" @down="downCallback"
|
|
|
:up="upOption" @up="upCallback" @emptyclick="emptyClick">
|
|
:up="upOption" @up="upCallback" @emptyclick="emptyClick">
|
|
|
- <view class="flex-row justify-between item" v-for="(item,index) in list">
|
|
|
|
|
|
|
+ <view class="flex-row justify-between item" v-for="(item,index) in list" :key="index">
|
|
|
<view class="flex-row avatar">
|
|
<view class="flex-row avatar">
|
|
|
<image :src="'/static/ud4.png'"></image>
|
|
<image :src="'/static/ud4.png'"></image>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="flex-row justify-between userMsg">
|
|
<view class="flex-row justify-between userMsg">
|
|
|
<view class="flex-col justify-center">
|
|
<view class="flex-col justify-center">
|
|
|
- <text class="name">{{item.ncikName}}</text>
|
|
|
|
|
|
|
+ <text class="name">{{item.ncikName}}{{item.expand3 ? '('+item.expand3+')' : ''}}</text>
|
|
|
<text class="no">{{item.no}}</text>
|
|
<text class="no">{{item.no}}</text>
|
|
|
|
|
+ <text class="time">2020-12-25 12:00:00</text>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="flex-col justify-around">
|
|
<view class="flex-col justify-around">
|
|
|
- <text class="time">{{item.createTime}}</text>
|
|
|
|
|
|
|
+ <text class="bzBtn" @click="addRemark(item.bindId)">备注</text>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
+
|
|
|
|
|
+ <uni-popup ref="remarkPopup" type="center">
|
|
|
|
|
+ <view class="remarkPopup">
|
|
|
|
|
+ <view class="flex-row justify-center"><text>添加备注</text></view>
|
|
|
|
|
+
|
|
|
|
|
+ <view class="mt20 borde">
|
|
|
|
|
+ <input v-model="bindParam.expand3" focus placeholder="请输入备注" />
|
|
|
|
|
+ </view>
|
|
|
|
|
+
|
|
|
|
|
+ <view class="flex-row justify-between mt20">
|
|
|
|
|
+ <button size="mini" @click="closePup">取消</button>
|
|
|
|
|
+ <button size="mini" type="primary" @click="bind">确定</button>
|
|
|
|
|
+ </view>
|
|
|
|
|
+
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </uni-popup>
|
|
|
|
|
+
|
|
|
</mescroll-uni>
|
|
</mescroll-uni>
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
@@ -34,6 +52,10 @@
|
|
|
|
|
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
|
|
+ bindParam:{
|
|
|
|
|
+ id:null,
|
|
|
|
|
+ expand3:null
|
|
|
|
|
+ },
|
|
|
downOption: {
|
|
downOption: {
|
|
|
auto: false // 不自动加载 (mixin已处理第一个tab触发downCallback)
|
|
auto: false // 不自动加载 (mixin已处理第一个tab触发downCallback)
|
|
|
},
|
|
},
|
|
@@ -76,6 +98,31 @@
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+
|
|
|
|
|
+ bind(){
|
|
|
|
|
+ this.$api.service.bind(this.bindParam).then((res)=>{
|
|
|
|
|
+ this.$refs.remarkPopup.close()
|
|
|
|
|
+ this.downCallback()
|
|
|
|
|
+ })
|
|
|
|
|
+
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ closePup(){
|
|
|
|
|
+ this.bindParam = {
|
|
|
|
|
+ id:null,
|
|
|
|
|
+ expand3:null
|
|
|
|
|
+ }
|
|
|
|
|
+ this.$refs.remarkPopup.close()
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ addRemark(id){
|
|
|
|
|
+ this.bindParam = {
|
|
|
|
|
+ id:id,
|
|
|
|
|
+ expand3:null
|
|
|
|
|
+ }
|
|
|
|
|
+ this.$refs.remarkPopup.open()
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
/*下拉刷新的回调 */
|
|
/*下拉刷新的回调 */
|
|
|
downCallback() {
|
|
downCallback() {
|
|
|
// 这里加载你想下拉刷新的数据, 比如刷新轮播数据
|
|
// 这里加载你想下拉刷新的数据, 比如刷新轮播数据
|