修复bug

This commit is contained in:
weipengfei 2023-10-30 18:49:25 +08:00
parent 2043fd0071
commit f4f5a471e6
4 changed files with 1381 additions and 11 deletions

View File

@ -85,6 +85,12 @@
"navigationBarTitleText": "采购车"
}
},
{
"path": "pages/nongKe/supply_chain/shopping_trolley_a",
"style": {
"navigationBarTitleText": "采购车"
}
},
{
"path": "pages/moreProject/moreProject",
"style": {

View File

@ -31,14 +31,17 @@
<view class="bar_code">条形码{{item.bar_code?item.bar_code : '无'}}</view>
</view>
<view class="right_goods_msg">
<view class="num">订货价{{item.price}}</view>
<view class="num">
<text>订货价:</text>
<text>{{' '+item.price}}</text>
</view>
<view class="add_goods" @click="getGoodsDetails(item)">加入购物单</view>
</view>
</view>
</block>
<u-loadmore :status="status" :loading-text="loadingText" :loadmore-text="loadmoreText" :nomore-text="nomoreText" />
<navigator class="bottom_purchase" url="./shopping_trolley" open-type="switchTab">采购清单</navigator>
<navigator class="bottom_purchase" url="./shopping_trolley_a" open-type="navigate">采购清单</navigator>
<goodsPopup :goodsStatu="isPopupShow" @colses="isPopupShow=false" :goods_info="goodsInfo"></goodsPopup>
<u-popup :show="show" @close="close">

File diff suppressed because it is too large Load Diff

View File

@ -227,7 +227,6 @@
authorize,
easyLoadimage,
mTabbar,
},
data() {
return {
@ -440,6 +439,11 @@
uni.chooseImage({
count: 1,
sizeType: ['original'],
crop:{
width: 1024,
height: 1024,
resize: false
},
success: (res) => {
// console.log(res)
let tempFilePaths = res.tempFilePaths[0]
@ -453,24 +457,28 @@
src: tempFilePaths,
quality: 80, // jpg
success: res => {
that.imageSrc = res.tempFilePath;
that.showCd = true;
that.doUpload(res.tempFilePath)
// that.imageSrc = res.tempFilePath;
// that.showCd = true;
},
fail: err => {
// console.log('compressImage', tempFilePaths);
that.imageSrc = tempFilePaths
that.showCd = true
that.doUpload(tempFilePaths)
// that.imageSrc = tempFilePaths
// that.showCd = true
}
})
} else {
that.imageSrc = tempFilePaths
that.showCd = true
that.doUpload(tempFilePaths)
// that.imageSrc = tempFilePaths
// that.showCd = true
}
}
//#endif
//#ifndef APP-PLUS
that.imageSrc = tempFilePaths
that.showCd = true
// that.imageSrc = tempFilePaths
// that.showCd = true
that.doUpload(tempFilePaths)
//#endif
}
})