This commit is contained in:
huangjinming 2023-01-06 10:42:36 +08:00
parent a9556ea345
commit ec1d364ad8
4 changed files with 31 additions and 27 deletions

View File

@ -1,22 +1,22 @@
// module.exports = {
// plugins: {
// autoprefixer: {}, // 用来给不同的浏览器自动添加相应前缀,如-webkit--moz-等等
// "postcss-px-to-viewport": {
// unitToConvert: "px", // 要转化的单位
// viewportWidth: 1080, // UI设计稿的宽度
// unitPrecision: 6, // 转换后的精度,即小数点位数
// propList: ["*"], // 指定转换的css属性的单位*代表全部css属性的单位都进行转换
// viewportUnit: "vw", // 指定需要转换成的视窗单位默认vw
// fontViewportUnit: "vw", // 指定字体需要转换成的视窗单位默认vw
// selectorBlackList: ["wrap"], // 指定不转换为视窗单位的类名,
// minPixelValue: 1, // 默认值1小于或等于1px则不进行转换
// mediaQuery: true, // 是否在媒体查询的css代码中也进行转换默认false
// replace: true, // 是否转换后直接更换属性值
// exclude: [/\/src\/views\/desktop\//], // 设置忽略文件,用正则做目录名匹配
// landscape: false // 是否处理横屏情况
// },
module.exports = {
plugins: {
autoprefixer: {}, // 用来给不同的浏览器自动添加相应前缀,如-webkit--moz-等等
"postcss-px-to-viewport": {
unitToConvert: "px", // 要转化的单位
viewportWidth: 1080, // UI设计稿的宽度
unitPrecision: 6, // 转换后的精度,即小数点位数
propList: ["*"], // 指定转换的css属性的单位*代表全部css属性的单位都进行转换
viewportUnit: "vw", // 指定需要转换成的视窗单位默认vw
fontViewportUnit: "vw", // 指定字体需要转换成的视窗单位默认vw
selectorBlackList: ["wrap"], // 指定不转换为视窗单位的类名,
minPixelValue: 1, // 默认值1小于或等于1px则不进行转换
mediaQuery: true, // 是否在媒体查询的css代码中也进行转换默认false
replace: true, // 是否转换后直接更换属性值
exclude: [/\/src\/views\/desktop\//], // 设置忽略文件,用正则做目录名匹配
landscape: false // 是否处理横屏情况
},
// }
// };
}
};

View File

@ -61,18 +61,22 @@ export default {
data() {
return {
piece: "",
orderId:1,
orderId: 2,
chainManager: new ChainManager(),
dialogVisible: false,
};
},
methods: {
async haldBuy(){
async haldBuy() {
try {
const nftres = await this.chainManager.bc.beginBuy(
this.data.orderId,
this.data.s_price,
this.data.currency,
// this.data.orderId,
// this.data.s_price,
// this.data.currency,
5,
'1000000000000000000',
"0x8E7a8d3CAeEbbe9A92faC4db19424218aE6791a3",
CONTRACT_ADDRESS[AppModule.chainId].marketDddress
);
console.log(nftres, "beginSell");

View File

@ -346,7 +346,7 @@ export default {
return {
isTabs: false,
type: "hero",
orderId: 1,
orderId: 3,
chainManager: new ChainManager(),
};
},

View File

@ -17,7 +17,7 @@
<div class="piece-bottom-top">
<div class="price-input">
<el-form :rules="rules">
<el-form-item label="" prop="price">
<el-form-item label="" >
<el-input
placeholder="Input your price"
v-model="price"
@ -106,7 +106,7 @@ export default {
nft_Token: "",
chainManager: new ChainManager(),
cunout: 1,
orderId:1,
orderId:4,
dialogVisible: false,
isWeapon: false,
options: [],