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-row>
<el-col :span="24"><div class="grid-content bg-purple-dark"> <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="info" @click="test(myapi)"></el-button>
<el-button type="primary" @click="apply(myapi)"></el-button> <el-button type="primary" @click="apply(myapi)"></el-button>
</span>
</div></el-col> </div></el-col>
</el-row> </el-row>
</el-form> </el-form>
@ -183,7 +176,7 @@
</el-table> </el-table>
<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="dialogVisible1 = false"> </el-button> <el-button type="primary" @click="confirmSelection(row)"> </el-button>
</span> </span>
</el-dialog> </el-dialog>
@ -331,6 +324,8 @@ export default {
<p>Author: ${item.author_name}</p> <p>Author: ${item.author_name}</p>
<p>URL: <a href="${item.url.replace(/\\/g, '')}">${item.url}</a></p> <p>URL: <a href="${item.url.replace(/\\/g, '')}">${item.url}</a></p>
</div> </div>
`; `;
}); });
} else { } else {
@ -344,8 +339,27 @@ export default {
container.appendChild(resultDiv); 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", // - 访this",
created() { created() {
}, },