[转让权证加转让价格判断]

This commit is contained in:
2021-10-19 09:15:13 +08:00
parent 9156029027
commit 1b41b40de9
6 changed files with 217 additions and 196 deletions

View File

@@ -408,7 +408,7 @@
"path": "pages/store/deliver",
"name": "Deliver",
"style": {
"navigationBarTitleText": "货单处理",
"navigationBarTitleText": "货单处理",
"navigationBarBackgroundColor": "#FFFFFF"
}
}, {

View File

@@ -33,6 +33,7 @@
</view>
</view>
<button class="buy-btn" type="default" @click="onCreate">确认转让</button>
<u-toast ref="uToast" />
</view>
</template>
@@ -75,26 +76,34 @@
},
// 提交转让市场
onCreate(){
marketsCreate({
symbol : this.$Route.query.symbol,
qty : this.stock,
price : this.pirce || 0
}).then(res => {
uni.showModal({
title : '提示',
content : res,
showCancel : false,
success : () => {
this.$Router.back()
}
if(this.pirce === ''){
this.$refs.uToast.show({
title: '请校验转让价格',
type: 'error',icon:false,
duration: 3000
})
}).catch(err => {
console.log(err)
uni.showToast({
title: err.message,
icon : 'none'
}else{
marketsCreate({
symbol : this.$Route.query.symbol,
qty : this.stock,
price : this.pirce || 0
}).then(res => {
uni.showModal({
title : '提示',
content : res,
showCancel : false,
success : () => {
this.$Router.back()
}
})
}).catch(err => {
console.log(err)
uni.showToast({
title: err.message,
icon : 'none'
})
})
})
}
}
}
}

View File

@@ -23,8 +23,8 @@
</view>
</view>
<view class="total" v-if="total"> {{total.toFixed(2)}} </view>
<view class="btn" @click="actions">提现至现金红包</view>
<view class="des">提现至红包可在红包中提现到银行卡 手续费: </view>
<view class="btn" @click="actions">提现至现金零钱</view>
<view class="des">提现至零钱可在零钱中提现到银行卡 手续费: </view>
</view>
</template>
@@ -127,7 +127,7 @@
}
uni.showModal({
title: '温馨提示',
content:'您是否确认提现到现金红包账户,交易将免手续费',
content:'您是否确认提现到现金零钱账户,交易将免手续费',
confirmColor: '#7c52fc',
cancelColor: '#cacaca',
cancelText: '我再想想',

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -48480,7 +48480,8 @@ try {
uniIcons: __webpack_require__(/*! @/uni_modules/uni-icons/components/uni-icons/uni-icons.vue */ 91)
.default,
uniNumberBox: __webpack_require__(/*! @/uni_modules/uni-number-box/components/uni-number-box/uni-number-box.vue */ 529)
.default
.default,
uToast: __webpack_require__(/*! uview-ui/components/u-toast/u-toast.vue */ 124).default
}
} catch (e) {
if (
@@ -48669,7 +48670,8 @@ var render = function() {
}
},
[_vm._v("确认转让")]
)
),
_c("u-toast", { ref: "uToast", attrs: { _i: 24 } })
],
1
)
@@ -50228,10 +50230,10 @@ var render = function() {
}
}
},
[_vm._v("提现至现金红包")]
[_vm._v("提现至现金零钱")]
),
_c("v-uni-view", { staticClass: _vm._$g(15, "sc"), attrs: { _i: 15 } }, [
_vm._v("提现至红包,可在红包中提现到银行卡 手续费: 无")
_vm._v("提现至零钱,可在零钱中提现到银行卡 手续费: 无")
])
],
1