Browse Source

2021-5-14 提币最小单位

hwq 3 years ago
parent
commit
e8d06c82b4

+ 2 - 2
manifest.json

@@ -4,8 +4,8 @@
     // __UNI__6FC8B70
     // "appid" : "__UNI__6FC8B70",
     "description" : "",
-    "versionName" : "1.0.5",
-    "versionCode" : 105,
+    "versionName" : "1.0.7",
+    "versionCode" : 107,
     "transformPx" : false,
     "app-plus" : {
         /* 5+App特有相关 */

+ 3 - 1
pages/finance/details.vue

@@ -119,12 +119,14 @@
 				way: [],
 				address: '',
 				waypath: '',
+				less: '',
 			};
 		},
 		onLoad(option) {
 			console.log(option,"detail-option")
 			this.waypath = option.waypath
 			this.way = option.way
+			this.less = option.less
 			console.log("detail",this.way)
 			this.code = option.code;
 			this.logo = option.logo;
@@ -234,7 +236,7 @@
 			},
 			withdraw(){
 				uni.navigateTo({
-					url:'/pages/finance/withdraw?logo='+this.logo+'&name='+this.name+'&code='+this.code+'&money='+this.price
+					url:'/pages/finance/withdraw?logo='+this.logo+'&name='+this.name+'&code='+this.code+'&money='+this.price+'&less='+this.less
 				})
 			},
 			navTo(url) {

+ 3 - 1
pages/finance/index.vue

@@ -233,7 +233,9 @@ export default {
 					'&way=' +
 					ls.way +
 					'&waypath=' +
-					waypath
+					waypath+
+					'&less=' +
+					ls.less
 			});
 		}
 	}

+ 9 - 5
pages/finance/withdraw.vue

@@ -20,12 +20,12 @@
 			<input class="input-box" type="text" v-model="addr" placeholder="请输入提币地址"/>
 			<view class="from-title">数量</view>
 			<view class="flex input-tpl">
-				<input class="input-box" type="number" v-model="num" :placeholder="'最低数量 1.0'+name"/>
+				<input class="input-box" type="number" v-model="num" :placeholder="'最低数量 '+less+name"/>
 				<view class="all" @click="num = money">全部</view>
 			</view>
 			<view class="all-num">可用<text>{{money *1 }}</text>{{name}}</view>
 			<view class="submit" @click="cash">确定</view>
-			<view class="tpl-box" v-show="showText == true">提币数量在1.0-10000.0个之间,认真核对提币地址;手续费:{{data.service}}{{data.service_type}}</view>
+			<view class="tpl-box" v-show="showText == true">提币数量在{{less}}-10000.0个之间,认真核对提币地址;手续费:{{data.service}}{{data.service_type}}</view>
 		</view>
 	</view>
 </template>
@@ -43,7 +43,7 @@
 				code: '',
 				logo: '',
 				money:'',
-				
+				less: '',
 				addr: '',
 				num: '',
 				
@@ -52,11 +52,13 @@
 			};
 		},
 		onLoad(option) {
+			console.log(option)
 			if (option.name) {
 				this.name = option.name;
 				this.logo = option.logo;
 				this.code = option.code;
 				this.money = option.money;
+				this.less = option.less;
 			}
 			this.moneyType();
 		},
@@ -81,6 +83,7 @@
 						obj.name = obj.moneyTypeList[0].name;
 						obj.code = obj.moneyTypeList[0].code;
 						obj.money = obj.moneyTypeList[0].wallet.money;
+						obj.less = obj.moneyTypeList[0].less;
 					}
 				});
 			},
@@ -108,8 +111,8 @@
 					obj.$api.msg('请输入提币数量!');
 					return;
 				}
-				if(obj.num < 1 ){
-					obj.$api.msg('最低数量不能低于1!');
+				if(obj.num < obj.less ){
+					obj.$api.msg('最低数量不能低于'+obj.less + '!');
 					return;
 				}
 				cash({
@@ -127,6 +130,7 @@
 				this.name = options.name;
 				this.code = options.code;
 				this.money = options.wallet.money;
+				this.less = options.less;
 			},
 			useOutClickSide() {
 				this.$refs.easySelect.hideOptions && this.$refs.easySelect.hideOptions()

File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/dev/app-plus/app-service.js


File diff suppressed because it is too large
+ 34 - 14
unpackage/dist/dev/app-plus/app-view.js


BIN
unpackage/dist/dev/app-plus/static/img/jiazai.gif


Some files were not shown because too many files changed in this diff