| | |
| | | # api接口请求地址 |
| | | # VUE_APP_BASE_API = 'https://zhapi.coinbtcs.com' |
| | | # VUE_APP_BASE_API = 'http://192.168.10.7:8085' |
| | | VUE_APP_BASE_API = 'https://api.amcfcxn.org' |
| | | VUE_APP_BASE_API = 'https://api.amcfcxn.one' |
| | | # VUE_APP_BASE_API = 'https://syjysapi.yanshiz.com' |
| | | |
| | | # 静态资源文件url |
| | | VUE_APP_RESOURCES_URL = 'https://sysimg.yanshiz.com/' |
| | | VUE_APP_RESOURCES_URL = 'https://bzimg.amcfcxn.one/' |
| | |
| | | # VUE_APP_BASE_API = 'https://mini-admin.mall4j.com/apis' |
| | | |
| | | # VUE_APP_BASE_API = 'https://zhapi.coinbtcs.com/aip' |
| | | VUE_APP_BASE_API = 'https://api.amcfcxn.org' |
| | | VUE_APP_BASE_API = 'https://api.amcfcxn.one' |
| | | |
| | | |
| | | # 静态资源文件url app端的前端打開下 |
| | | VUE_APP_RESOURCES_URL = 'hhttps://sysimg.yanshiz.com/' |
| | | VUE_APP_RESOURCES_URL = 'hhttps://bzimg.amcfcxn.one/' |
| | | |
| | | |
| | |
| | | <span class="textFigTwo" v-if="roleList.param_value15">{{ roleList.param_value15 }}</span> |
| | | </div> |
| | | <div class="miniTitle" style="margin-top: 20px"> |
| | | <span class="titLeft">支付二维码</span> |
| | | <span class="titLeft">支付方真实姓名</span> |
| | | |
| | | <span class="titRight">支付二维码</span> |
| | | |
| | | </div> |
| | | <div> |
| | | <div style="display: flex;justify-content: space-between;width: 400px;"> |
| | | <el-input |
| | | v-model="payRealName" |
| | | placeholder="请输入支付方真实姓名" |
| | | style="width: 200px;" |
| | | size="small" |
| | | ></el-input> |
| | | <img :src="roleList.qrcode" alt="" width="150" height="150" /> |
| | | </div> |
| | | </div> |
| | |
| | | |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-button @click="closeDiog()">取消</el-button> |
| | | <el-button type="primary" @click="closeDiog()">确定</el-button> |
| | | <el-button type="primary" @click="updatePayRealName()">确定</el-button> |
| | | </span> |
| | | <!-- 取消订单 --> |
| | | <passtpn |
| | |
| | | id: "", |
| | | }, |
| | | roleList: [], |
| | | payRealName: "", // 支付方真实姓名 |
| | | page: { |
| | | total: 0, // 总页数 |
| | | currentPage: 1, // 当前页数 |
| | |
| | | }).then(({ data }) => { |
| | | if (data.code == 0) { |
| | | this.roleList = data.data; |
| | | // 回显支付方真实姓名 |
| | | this.payRealName = data.data.pay_real_name || ""; |
| | | } |
| | | }); |
| | | }, |
| | |
| | | this.visible = false |
| | | this.$emit('refreshDataList', this.page) |
| | | }, |
| | | // 更新支付方真实姓名 |
| | | updatePayRealName() { |
| | | this.$http({ |
| | | url: this.$http.adornUrl("/c2cOrder/update"), |
| | | method: "post", |
| | | data: this.$http.adornData({ |
| | | order_no: this.dataForm.order_no, |
| | | pay_real_name: this.payRealName, |
| | | }), |
| | | }).then(({ data }) => { |
| | | if (data.code == 0) { |
| | | this.$message({ |
| | | message: "操作成功", |
| | | type: "success", |
| | | duration: 1500, |
| | | onClose: () => { |
| | | this.visible = false; |
| | | this.$emit('refreshDataList', this.page); |
| | | }, |
| | | }); |
| | | } else { |
| | | this.$message({ |
| | | message: data.msg || "操作失败", |
| | | type: "error", |
| | | duration: 1500, |
| | | }); |
| | | } |
| | | }).catch(() => { |
| | | this.$message({ |
| | | message: "操作失败", |
| | | type: "error", |
| | | duration: 1500, |
| | | }); |
| | | }); |
| | | }, |
| | | }, |
| | | }; |
| | | </script> |
| | |
| | | this.dataListSelections = val; |
| | | }, |
| | | // 新增 / 修改 |
| | | addOrUpdateHandle(id) { |
| | | addOrUpdateHandle(uuid) { |
| | | this.addOrUpdateVisible = true; |
| | | this.$nextTick(() => { |
| | | this.$refs.addOrUpdate.init(id); |
| | | this.$refs.addOrUpdate.init(uuid); |
| | | }); |
| | | }, |
| | | // 删除 |
| | | deleteHandle(id) { |
| | | var ids = id |
| | | ? [id] |
| | | deleteHandle(uuid) { |
| | | var ids = uuid |
| | | ? [uuid] |
| | | : this.dataListSelections.map((item) => { |
| | | return item.roleId; |
| | | }); |
| | | this.$confirm(`确定进行[${id ? "删除" : "批量删除"}]操作?`, "提示", { |
| | | this.$confirm(`确定进行[${uuid ? "删除" : "批量删除"}]操作?`, "提示", { |
| | | confirmButtonText: "确定", |
| | | cancelButtonText: "取消", |
| | | type: "warning", |
| | |
| | | <template> |
| | | <el-dialog |
| | | :title="!dataForm.id ? '新增' : '修改'" |
| | | :title="!dataForm.uuid ? '新增' : '修改'" |
| | | :close-on-click-modal="false" |
| | | :visible.sync="visible"> |
| | | <el-form :model="dataForm" :rules="dataRule" ref="dataForm" @keyup.enter.native="dataFormSubmit()" label-width="80px"> |
| | | <el-form-item label="地址" prop="address"> |
| | | <el-input v-model="dataForm.address" placeholder="地址"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="加密密码" prop="password"> |
| | | <!-- <el-form-item label="加密密码" prop="password"> |
| | | <el-input v-model="dataForm.password" placeholder="加密密码"></el-input> |
| | | </el-form-item> |
| | | </el-form-item> --> |
| | | </el-form> |
| | | <span slot="footer" class="dialog-footer"> |
| | | <el-button @click="visible = false">取消</el-button> |
| | |
| | | }, |
| | | dataForm: { |
| | | coin: '', |
| | | chain: '', |
| | | blockchainName: '', |
| | | address: '', |
| | | password: '' |
| | | password: '', |
| | | uuid: '', |
| | | }, |
| | | dataRule: { |
| | | address: [ |
| | |
| | | this.dataForm.address = item.address |
| | | this.dataForm.password = item.password |
| | | this.dataForm.coin = item.coin |
| | | this.dataForm.chain = item.blockchain_name |
| | | this.dataForm.blockchainName = item.blockchain_name |
| | | this.dataForm.uuid = item.uuid |
| | | }, |
| | | // 表单提交 |
| | | dataFormSubmit: Debounce(function () { |
| | |
| | | method: 'post', |
| | | data: this.$http.adornData({ |
| | | 'coin': this.dataForm.coin, |
| | | 'chain': this.dataForm.chain, |
| | | 'blockchainName': this.dataForm.blockchainName, |
| | | 'address': this.dataForm.address, |
| | | 'password':this.dataForm.password, |
| | | 'id':this.dataForm.uuid, |
| | | }) |
| | | }).then(({data}) => { |
| | | if(data.code==0){ |