Merge branch 'dev'

# Conflicts:
#	src/views/market/apitest/index.vue
pull/7/head^2
Aaaaaaaa 2024-09-05 11:29:43 +08:00
commit 5540e3e214
1 changed files with 25 additions and 11 deletions

View File

@ -19,15 +19,8 @@
<el-row>
<el-col :span="24"><div class="grid-content bg-purple-dark">
<span v-if="myapi.remark=='是'">
<el-button type="info" @click="test(myapi)">使</el-button>
<el-button type="primary" @click="apply(myapi)"></el-button>
</span>
<span v-if="myapi.remark=='否'">
<el-button type="info" @click="test(myapi)"></el-button>
<el-button type="primary" @click="apply(myapi)"></el-button>
</span>
</div></el-col>
</el-row>
</el-form>
@ -183,7 +176,7 @@
</el-table>
<span slot="footer" class="dialog-footer">
<el-button @click="dialogVisible1 = false"> </el-button>
<el-button type="primary" @click="dialogVisible1 = false"> </el-button>
<el-button type="primary" @click="confirmSelection(row)"> </el-button>
</span>
</el-dialog>
@ -331,6 +324,8 @@ export default {
<p>Author: ${item.author_name}</p>
<p>URL: <a href="${item.url.replace(/\\/g, '')}">${item.url}</a></p>
</div>
`;
});
} else {
@ -344,8 +339,27 @@ export default {
container.appendChild(resultDiv);
});
},
handleEdit(row) {
this.selectedRow = row;
},
confirmSelection(row) {
this.dialogVisible1=false
if (this.selectedRow) {
//
startPayment(this.selectedRow);
console.log(row)
window.open("http://localhost:9701/alipay/pay?middlePrice="+row.middlePrice)
this.$message.success('付款成功')
this.dialogVisible1 = false;
} else {
//
this.$message.warning('请先选择一项进行支付');
}
},
},
// - 访this",
created() {
},