|
@@ -39,7 +39,7 @@
|
|
|
</view>
|
|
</view>
|
|
|
</template>
|
|
</template>
|
|
|
<script>
|
|
<script>
|
|
|
-import { codePay,codePayCheck,cancelOrderFn,getDetail} from "@/api/order";
|
|
|
|
|
|
|
+import { codePay,codePayCheck,cancelOrderFn,getDetail,paySuccessReport} from "@/api/order";
|
|
|
export default {
|
|
export default {
|
|
|
name:'toPayWay',
|
|
name:'toPayWay',
|
|
|
components:{
|
|
components:{
|
|
@@ -89,10 +89,13 @@ export default {
|
|
|
},
|
|
},
|
|
|
checkOrder(){
|
|
checkOrder(){
|
|
|
let that = this
|
|
let that = this
|
|
|
|
|
+ uni.showLoading({mask:true})
|
|
|
getDetail({id:this.orderId}).then(res=>{
|
|
getDetail({id:this.orderId}).then(res=>{
|
|
|
|
|
+ uni.hideLoading()
|
|
|
if(res.code == 1){
|
|
if(res.code == 1){
|
|
|
if(res.data.payStatus == 1){
|
|
if(res.data.payStatus == 1){
|
|
|
that.showSuccess = true
|
|
that.showSuccess = true
|
|
|
|
|
+ paySuccessReport({id:this.orderId})
|
|
|
setTimeout(function(){
|
|
setTimeout(function(){
|
|
|
that.payFinish()
|
|
that.payFinish()
|
|
|
},900)
|
|
},900)
|