# Conflicts:
#	src/views/market/apitest/index.vue
#	src/views/market/orders/index.vue
wr
WeiRan 2024-09-09 21:06:35 +08:00
commit 4883f0834e
3 changed files with 53 additions and 39 deletions

View File

@ -286,7 +286,7 @@
</el-form> </el-form>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button @click="dialogVisible1 = false"> </el-button> <el-button @click="dialogVisible1 = false"> </el-button>
<el-button type="primary" @click=" confirmSelection"> </el-button> <el-button type="primary" @click=" confirmSelection(row)"> </el-button>
</span> </span>
</el-dialog> </el-dialog>
@ -552,6 +552,16 @@ export default {
confirmSelection(row) { confirmSelection(row) {
if (this.selectedRow) { if (this.selectedRow) {
//
// startPayment(this.selectedRow);
console.log(row)
window.open("http://localhost:9701/alipay/pay?ordersPrice=" + row.middlePrice)
this.$message.success('付款成功')
}
},
show(){
// //
var container = document.getElementById('news-list'); var container = document.getElementById('news-list');
// //
@ -576,18 +586,11 @@ export default {
resultDiv.innerHTML += '<p>Result: ' + jsonData.result.res + '</p>'; resultDiv.innerHTML += '<p>Result: ' + jsonData.result.res + '</p>';
} else { } else {
resultDiv.innerHTML += '<p>Result information is not available.</p>'; resultDiv.innerHTML += '<p>Result information is not available.</p>';
//
// startPayment(this.selectedRow);
console.log(row)
window.open("http://localhost:9701/alipay/pay?middlePrice="+row.middlePrice)
this.$message.success('付款成功')
} }
// div // div
container.appendChild(resultDiv); container.appendChild(resultDiv);
}
//-1 //-1
reducetestcount(this.myapi).then(response=>{}) reducetestcount(this.myapi).then(response=>{})
} }

View File

@ -97,6 +97,7 @@
<el-button <el-button
type="primary" type="primary"
size="small" size="small"
v-if="scope.row.ordersState !== 1"
@click="pay(scope.row)" >支付</el-button> @click="pay(scope.row)" >支付</el-button>
<!-- v-if="scope.row.status === '待支付'"--> <!-- v-if="scope.row.status === '待支付'"-->
</template> </template>
@ -160,10 +161,11 @@ import {
ordersDelete, ordersDelete,
pay, pay,
getOut, getOut,
updateByeExist updateByeExist, updateByordersState1
} from '@/api/market/orders' } from '@/api/market/orders'
import { diGui } from "@/api/market/orders"; import { diGui } from "@/api/market/orders";
import axios from 'axios' import axios from 'axios'
import item from '@/layout/components/Sidebar/Item.vue'
//jsjsjson, //jsjsjson,
@ -217,7 +219,11 @@ export default {
}; };
}, },
// data", // data",
computed: {}, computed: {
item() {
return item
}
},
//data", //data",
watch: {}, watch: {},
//", //",
@ -308,9 +314,13 @@ export default {
pay(row){ pay(row){
console.log(row) console.log(row)
window.open("http://localhost:9701/alipay/pay?productName="+row.productName +"&ordersNum="+row.ordersNum+"&ordersPrice="+row.ordersPrice) window.open("http://21.12.0.10:80/prod-api/market/alipay/pay?productName="+row.productName +"&ordersNum="+row.ordersNum+"&ordersPrice="+row.ordersPrice)
this.$message.success('付款成功') this.$message.success('付款成功')
updateByordersState1(ordersForm).then(response=>{
alert(response.msg)
if (response.code==200){}
this.addordersoff=false
})
}, },
@ -326,6 +336,7 @@ export default {
this.$router.push({path:"/reclaim/index"}) this.$router.push({path:"/reclaim/index"})
} }
// getOut(){ // getOut(){
// axios.get('/market/orders/getOutAll'). // axios.get('/market/orders/getOutAll').
// then(response =>{ // then(response =>{

View File

@ -190,10 +190,10 @@ export default {
insertmoney(moneyForm){ insertmoney(moneyForm){
if (moneyForm.pay==1){ if (moneyForm.pay==1){
if (moneyForm.resource!=''){ if (moneyForm.resource!=''){
window.open("http://localhost:9701/alipay/pay?ordersPrice="+moneyForm.resource) window.open("http://21.12.0.10:80/prod-api/market/alipay/pay?ordersPrice="+moneyForm.resource)
this.$message.success('付款成功') this.$message.success('付款成功')
}else { }else {
window.open("http://localhost:9701/alipay/pay?ordersPrice="+moneyForm.resource) window.open("http://21.12.0.10:80/prod-api/market/alipay/pay?ordersPrice="+moneyForm.resource)
this.$message.success('付款成功') this.$message.success('付款成功')
} }