This commit is contained in:
parent
90cb3619f5
commit
60f72cf533
|
@ -2,8 +2,8 @@
|
||||||
"name" : "养殖溯源",
|
"name" : "养殖溯源",
|
||||||
"appid" : "__UNI__C509A32",
|
"appid" : "__UNI__C509A32",
|
||||||
"description" : "",
|
"description" : "",
|
||||||
"versionName" : "1.0.3",
|
"versionName" : "1.0.4",
|
||||||
"versionCode" : 103,
|
"versionCode" : 104,
|
||||||
"transformPx" : false,
|
"transformPx" : false,
|
||||||
/* 5+App特有相关 */
|
/* 5+App特有相关 */
|
||||||
"app-plus" : {
|
"app-plus" : {
|
||||||
|
|
|
@ -221,7 +221,9 @@
|
||||||
|
|
||||||
if (res.code == 1) {
|
if (res.code == 1) {
|
||||||
|
|
||||||
datalist.splice(0, datalist.length, ...res.data)
|
res.data.forEach(item=>{
|
||||||
|
datalist.push(item)
|
||||||
|
})
|
||||||
res.data.detai
|
res.data.detai
|
||||||
// console.log(res.data)
|
// console.log(res.data)
|
||||||
}
|
}
|
||||||
|
|
|
@ -213,9 +213,9 @@
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
|
|
||||||
if (res.code == 1) {
|
if (res.code == 1) {
|
||||||
dataList.splice(0, dataList.length, ...res.data);
|
res.data.forEach(item=>{
|
||||||
dataList.forEach(item => {
|
|
||||||
item.showCode = false
|
item.showCode = false
|
||||||
|
dataList.push(item)
|
||||||
})
|
})
|
||||||
console.log(dataList)
|
console.log(dataList)
|
||||||
}
|
}
|
||||||
|
|
|
@ -298,7 +298,9 @@
|
||||||
item.pic = JSON.parse(item.pic||'[]');
|
item.pic = JSON.parse(item.pic||'[]');
|
||||||
return item
|
return item
|
||||||
})
|
})
|
||||||
dataList.splice(0, dataList.length, ...res.data.lists);
|
res.data.lists.forEach(item=>{
|
||||||
|
dataList.push(item)
|
||||||
|
})
|
||||||
// console.log(dataList)
|
// console.log(dataList)
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
|
@ -8,10 +8,13 @@
|
||||||
<view class="left">
|
<view class="left">
|
||||||
<u--image @click="perviewFn(item.pic[0])" radius='10' :src="item.pic[0]" width="250rpx"
|
<u--image @click="perviewFn(item.pic[0])" radius='10' :src="item.pic[0]" width="250rpx"
|
||||||
height="250rpx"></u--image>
|
height="250rpx"></u--image>
|
||||||
<u---image class="qr-code" @click="showBarCode(item)" src="/static/main/house/su_yuan_ma_btn.png" width="60rpx" height="60rpx"></u---image>
|
<u---image class="qr-code" @click="showBarCode(item)" src="/static/main/house/su_yuan_ma_btn.png"
|
||||||
|
width="60rpx" height="60rpx"></u---image>
|
||||||
</view>
|
</view>
|
||||||
<u--image src="/static/main/house/xia_yi_ji_btn.png" class="next" width="38rpx" height="38rpx" @click="navTo(`/pages/plantAdmin/breedDetail?id=${item.id}&house_id=${item.fence_house_id}`)"></u--image>
|
<u--image src="/static/main/house/xia_yi_ji_btn.png" class="next" width="38rpx" height="38rpx"
|
||||||
<view class="right" style="color: #7B7B7B;" @click="navTo(`/pages/plantAdmin/breedDetail?id=${item.id}&house_id=${item.fence_house_id}`)">
|
@click="navTo(`/pages/plantAdmin/breedDetail?id=${item.id}&house_id=${item.fence_house_id}`)"></u--image>
|
||||||
|
<view class="right" style="color: #7B7B7B;"
|
||||||
|
@click="navTo(`/pages/plantAdmin/breedDetail?id=${item.id}&house_id=${item.fence_house_id}`)">
|
||||||
<view class="name">{{item.sn}}</view>
|
<view class="name">{{item.sn}}</view>
|
||||||
<view class="r-item">
|
<view class="r-item">
|
||||||
<view class="item-title">品类:</view>
|
<view class="item-title">品类:</view>
|
||||||
|
@ -60,7 +63,6 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
|
|
||||||
import {
|
import {
|
||||||
ref,
|
ref,
|
||||||
reactive
|
reactive
|
||||||
|
@ -160,7 +162,9 @@
|
||||||
item.pic = JSON.parse(item.pic || '[]');
|
item.pic = JSON.parse(item.pic || '[]');
|
||||||
return item
|
return item
|
||||||
})
|
})
|
||||||
dataList.splice(0, dataList, ...res.data.lists);
|
res.data.lists.forEach(item => {
|
||||||
|
dataList.push(item)
|
||||||
|
})
|
||||||
// console.log(dataList)
|
// console.log(dataList)
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -289,6 +293,7 @@
|
||||||
.left {
|
.left {
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|
||||||
.qr-code {
|
.qr-code {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 10rpx;
|
right: 10rpx;
|
||||||
|
@ -382,11 +387,13 @@
|
||||||
align-items: center;
|
align-items: center;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
|
||||||
.title {
|
.title {
|
||||||
font-size: 32rpx;
|
font-size: 32rpx;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
margin-bottom: 15rpx;
|
margin-bottom: 15rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn {
|
.btn {
|
||||||
background-color: rgba(#999, 0.2);
|
background-color: rgba(#999, 0.2);
|
||||||
font-size: 24rpx;
|
font-size: 24rpx;
|
||||||
|
|
|
@ -210,8 +210,9 @@
|
||||||
item.pic = JSON.parse(item.pic||'[]');
|
item.pic = JSON.parse(item.pic||'[]');
|
||||||
return item
|
return item
|
||||||
})
|
})
|
||||||
dataList.splice(0, dataList, ...res.data.lists);
|
res.data.lists.forEach(item=>{
|
||||||
// console.log(dataList)
|
dataList.push(item)
|
||||||
|
})
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -7,8 +7,8 @@
|
||||||
"id": "__UNI__C509A32",
|
"id": "__UNI__C509A32",
|
||||||
"name": "养殖溯源",
|
"name": "养殖溯源",
|
||||||
"version": {
|
"version": {
|
||||||
"name": "1.0.3",
|
"name": "1.0.4",
|
||||||
"code": 103
|
"code": 104
|
||||||
},
|
},
|
||||||
"description": "",
|
"description": "",
|
||||||
"developer": {
|
"developer": {
|
||||||
|
|
Loading…
Reference in New Issue