@@ -163,22 +163,32 @@
},
// 挂出
submission() {
- sellPush({
- type: 'USDT',
- num: this.number,
- price: this.price,
- phone: '',
- trade_psw: '',
- sell_type: 'money',
-
- }).then(({
- data
- }) => {
- })
- .catch(e => {
- console.log(e);
- });
+ let obj = this;
+ uni.showModal({
+ title: '请输入支付密码',
+ editable:true,
+ success: res => {
+ if(res.confirm){
+ sellPush({
+ type: 'USDT',
+ num: obj.number,
+ price: obj.price,
+ phone: '',
+ trade_psw: res.content,
+ sell_type: 'money',
+ }).then(({
+ data
+ }) => {
+
+ })
+ .catch(e => {
+ console.log(e);
+ });
+ }
+ },
+ fail: () => {},
+ complete: () => {}
init() {
this.page = 1;
@@ -66,12 +66,13 @@
num: that.number,
to_user_address: that.address,
trade_psw: res.content,
- }).then(
- (res) => {
+ }).then((res) => {
uni.showToast({
- title: e.msg,
+ title: res.msg,
duration: 1500,
});
+ that.number = ''
+ that.qianBao();
}
).catch(
(res) => {