+
Link below
@@ -118,6 +118,23 @@ const cancelNft = async (val) => {
}
}
+// 下链使用
+const lockToGame = async() => {
+// console.log('lockToGame',toRaw(props.nftData).contract_address, [toRaw(props.nftData).token_id])
+// return
+ try {
+ const bc = new BlockChain()
+ let res = await bc.locker.lock(toRaw(props.nftData).contract_address, [toRaw(props.nftData).token_id])
+ console.log('lockToGame success', res)
+ message.success('lockToGame success')
+ router.go(-1)
+ } catch (e) {
+ console.log('lockToGame fail', e.message)
+ // message.error('lockToGame fail.')
+ }
+
+}
+
// 获取出售中价格价格
const nftPrice = ref()
diff --git a/src/components/marketplace/mktContent.vue b/src/components/marketplace/mktContent.vue
index bde6106..9257b00 100644
--- a/src/components/marketplace/mktContent.vue
+++ b/src/components/marketplace/mktContent.vue
@@ -61,11 +61,17 @@