submit
This commit is contained in:
parent
5a900e0378
commit
464dce8eaa
@ -162,6 +162,32 @@ export default {
|
|||||||
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
async signContract(){
|
||||||
|
const data1={
|
||||||
|
artworkName:this.orderingInfo.info.artworkName,
|
||||||
|
artworkNum:this.orderingInfo.info.artworkNum,
|
||||||
|
artistName:this.orderingInfo.info.artistName,
|
||||||
|
artworkSize:this.orderingInfo.info.artworkSize,
|
||||||
|
warehouseID:this.orderingInfo.warehouseID,
|
||||||
|
cycleID:this.orderingInfo.cycleID,
|
||||||
|
artworkImg:this.orderingInfo.info.artworkImg,
|
||||||
|
artworkSizeL:this.orderingInfo.info.artworkSizeL,
|
||||||
|
artworkSizeW:this.orderingInfo.info.artworkSizeW,
|
||||||
|
artworkSquareSize:this.orderingInfo.info.artworkSquareSize,
|
||||||
|
contractTransactionId:this.orderingInfo.transactionId
|
||||||
|
}
|
||||||
|
const res1 = await postDataByParams('/api/warehouse/create',data1)
|
||||||
|
if (res1.code===200){
|
||||||
|
const res2 = await postDataByParams('/api/warehouse/paid',{
|
||||||
|
ID:res1.data.ID
|
||||||
|
})
|
||||||
|
if (res2.code===200){
|
||||||
|
uni.navigateTo({
|
||||||
|
url: "/pages/paySuccess/paySuccess",
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
async obtainAmount(){
|
async obtainAmount(){
|
||||||
const data={
|
const data={
|
||||||
cycleID:this.cycleId,
|
cycleID:this.cycleId,
|
||||||
|
@ -249,6 +249,8 @@ export default {
|
|||||||
if (res.code===200){
|
if (res.code===200){
|
||||||
uni.setStorageSync("jumpUrl", res.data.jumpUrl)
|
uni.setStorageSync("jumpUrl", res.data.jumpUrl)
|
||||||
uni.setStorageSync("orderingInfo", {
|
uni.setStorageSync("orderingInfo", {
|
||||||
|
cycleID:this.cycleId,
|
||||||
|
warehouseID:this.warehouseID,
|
||||||
transactionId:res.data.transactionId,
|
transactionId:res.data.transactionId,
|
||||||
dayMoney:this.dayMoney,
|
dayMoney:this.dayMoney,
|
||||||
info:this.info,
|
info:this.info,
|
||||||
|
Loading…
Reference in New Issue
Block a user