修复bug
This commit is contained in:
parent
2043fd0071
commit
f4f5a471e6
|
@ -85,6 +85,12 @@
|
||||||
"navigationBarTitleText": "采购车"
|
"navigationBarTitleText": "采购车"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"path": "pages/nongKe/supply_chain/shopping_trolley_a",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "采购车"
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"path": "pages/moreProject/moreProject",
|
"path": "pages/moreProject/moreProject",
|
||||||
"style": {
|
"style": {
|
||||||
|
|
|
@ -31,14 +31,17 @@
|
||||||
<view class="bar_code">条形码:{{item.bar_code?item.bar_code : '无'}}</view>
|
<view class="bar_code">条形码:{{item.bar_code?item.bar_code : '无'}}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="right_goods_msg">
|
<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 class="add_goods" @click="getGoodsDetails(item)">加入购物单</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</block>
|
</block>
|
||||||
<u-loadmore :status="status" :loading-text="loadingText" :loadmore-text="loadmoreText" :nomore-text="nomoreText" />
|
<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>
|
<goodsPopup :goodsStatu="isPopupShow" @colses="isPopupShow=false" :goods_info="goodsInfo"></goodsPopup>
|
||||||
<u-popup :show="show" @close="close">
|
<u-popup :show="show" @close="close">
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -227,7 +227,6 @@
|
||||||
authorize,
|
authorize,
|
||||||
easyLoadimage,
|
easyLoadimage,
|
||||||
mTabbar,
|
mTabbar,
|
||||||
|
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
@ -440,6 +439,11 @@
|
||||||
uni.chooseImage({
|
uni.chooseImage({
|
||||||
count: 1,
|
count: 1,
|
||||||
sizeType: ['original'],
|
sizeType: ['original'],
|
||||||
|
crop:{
|
||||||
|
width: 1024,
|
||||||
|
height: 1024,
|
||||||
|
resize: false
|
||||||
|
},
|
||||||
success: (res) => {
|
success: (res) => {
|
||||||
// console.log(res)
|
// console.log(res)
|
||||||
let tempFilePaths = res.tempFilePaths[0]
|
let tempFilePaths = res.tempFilePaths[0]
|
||||||
|
@ -453,24 +457,28 @@
|
||||||
src: tempFilePaths,
|
src: tempFilePaths,
|
||||||
quality: 80, // 仅对jpg有效
|
quality: 80, // 仅对jpg有效
|
||||||
success: res => {
|
success: res => {
|
||||||
that.imageSrc = res.tempFilePath;
|
that.doUpload(res.tempFilePath)
|
||||||
that.showCd = true;
|
// that.imageSrc = res.tempFilePath;
|
||||||
|
// that.showCd = true;
|
||||||
},
|
},
|
||||||
fail: err => {
|
fail: err => {
|
||||||
// console.log('失败了compressImage', tempFilePaths);
|
// console.log('失败了compressImage', tempFilePaths);
|
||||||
that.imageSrc = tempFilePaths
|
that.doUpload(tempFilePaths)
|
||||||
that.showCd = true
|
// that.imageSrc = tempFilePaths
|
||||||
|
// that.showCd = true
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
that.imageSrc = tempFilePaths
|
that.doUpload(tempFilePaths)
|
||||||
that.showCd = true
|
// that.imageSrc = tempFilePaths
|
||||||
|
// that.showCd = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//#endif
|
//#endif
|
||||||
//#ifndef APP-PLUS
|
//#ifndef APP-PLUS
|
||||||
that.imageSrc = tempFilePaths
|
// that.imageSrc = tempFilePaths
|
||||||
that.showCd = true
|
// that.showCd = true
|
||||||
|
that.doUpload(tempFilePaths)
|
||||||
//#endif
|
//#endif
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue