|
|
@@ -76,6 +76,7 @@
|
|
|
<view :class="[orderInfo.status==1 || orderInfo.status==5 ? '' : 'active']" @click="printFn(orderInfo)">打印</view>
|
|
|
<view :class="[orderInfo.status==1 ? 'active' : '']" @click="selectFn(orderInfo,0)">查微信</view>
|
|
|
<view :class="[orderInfo.status==1 ? 'active' : '']" @click="cancelShow()">取消</view>
|
|
|
+ <view class="active" @click="openPf()">批发</view>
|
|
|
</view>
|
|
|
|
|
|
<!-- 选数量金额 -->
|
|
|
@@ -159,6 +160,35 @@ export default {
|
|
|
|
|
|
},
|
|
|
methods:{
|
|
|
+ openPf(){
|
|
|
+ let type = uni.getSystemInfoSync().platform
|
|
|
+ if(type == 'android'){
|
|
|
+ if (plus.runtime.isApplicationExist({pname: 'huahuibao.xhbsy'})) {
|
|
|
+ let senddata = {}
|
|
|
+ //调用第三方app
|
|
|
+ plus.runtime.launchApplication({
|
|
|
+ pname: "huahuibao.xhbsy",
|
|
|
+ extra: senddata
|
|
|
+ },
|
|
|
+ (e)=> {
|
|
|
+ uni.showToast({ title: "打开失败", icon: "none" })
|
|
|
+ },
|
|
|
+ );
|
|
|
+ } else {
|
|
|
+ uni.showModal({
|
|
|
+ title: '提示',
|
|
|
+ content: '没有安装,请先下载安装',
|
|
|
+ success: function (res){
|
|
|
+ if (res.confirm){
|
|
|
+ plus.runtime.openURL('http://www.wixhb.com/main/app')
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }else{
|
|
|
+ this.$msg('暂不支持打开')
|
|
|
+ }
|
|
|
+ },
|
|
|
confirmLock(){
|
|
|
|
|
|
},
|