# 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>
<span slot="footer" class="dialog-footer">
<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>
</el-dialog>
@ -552,6 +552,16 @@ export default {
confirmSelection(row) {
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');
//
@ -576,18 +586,11 @@ export default {
resultDiv.innerHTML += '<p>Result: ' + jsonData.result.res + '</p>';
} else {
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
container.appendChild(resultDiv);
}
//-1
reducetestcount(this.myapi).then(response=>{})
}

View File

@ -97,6 +97,7 @@
<el-button
type="primary"
size="small"
v-if="scope.row.ordersState !== 1"
@click="pay(scope.row)" >支付</el-button>
<!-- v-if="scope.row.status === '待支付'"-->
</template>
@ -160,10 +161,11 @@ import {
ordersDelete,
pay,
getOut,
updateByeExist
updateByeExist, updateByordersState1
} from '@/api/market/orders'
import { diGui } from "@/api/market/orders";
import axios from 'axios'
import item from '@/layout/components/Sidebar/Item.vue'
//jsjsjson,
@ -217,7 +219,11 @@ export default {
};
},
// data",
computed: {},
computed: {
item() {
return item
}
},
//data",
watch: {},
//",
@ -308,9 +314,13 @@ export default {
pay(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('付款成功')
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"})
}
// getOut(){
// axios.get('/market/orders/getOutAll').
// then(response =>{

View File

@ -190,10 +190,10 @@ export default {
insertmoney(moneyForm){
if (moneyForm.pay==1){
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('付款成功')
}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('付款成功')
}