فهرست منبع

修改支付加密功能

zhangdan 4 سال پیش
والد
کامیت
8c57642133

+ 2 - 1
pages/userCenter/userInfo/changePayPwd.vue

@@ -16,6 +16,7 @@
 
 <script>
 	import { checkPayPwd } from '@/api/order.js'
+	import md5 from 'md5'
 	export default {
 		data() {
 			return {
@@ -30,7 +31,7 @@
 			//  确定
 			submit(){
 				if(this.oldPwd){
-					checkPayPwd({oldPayPassword:this.oldPwd}).then(res=>{
+					checkPayPwd({oldPayPassword:md5(this.oldPwd)}).then(res=>{
 						if(res.status == 200) {
 							//  跳转到设置密码
 							uni.redirectTo({

+ 5 - 3
pages/userCenter/userInfo/paymentPwd.vue

@@ -11,6 +11,7 @@
 
 <script>
 	import {setPayPwd, changePayPwd} from '@/api/order.js'
+	import md5 from 'md5'
 	export default {
 		data() {
 			return {
@@ -103,8 +104,9 @@
 				let params = {
 					mobile: this.mobile,
 					verifiCode: this.verifiCode,
-					payPassword: this.value
+					payPassword: md5(this.value)
 				}
+				console.log(params,'--------mima')
 				setPayPwd(params).then(res=>{
 					if(res.status==200) {
 						uni.showToast({ title: res.message, icon: 'none' })
@@ -120,8 +122,8 @@
 			// 修改密码
 			changePsw () {
 				let params = {
-					oldPayPassword: this.oldPwd,
-					payPassword: this.value
+					oldPayPassword: md5(this.oldPwd),
+					payPassword: md5(this.value)
 				}
 				changePayPwd(params).then(res=>{
 					if(res.status==200) {

+ 2 - 1
pagesA/luckDraw/myJp.vue

@@ -76,7 +76,8 @@
 					 		<Address ref="applyAddress" @onConfirm="areaConfirm"></Address>
 					 	</u-form-item>
 					 	<u-form-item label="详细地址" :border-bottom="false" required prop="receiveAddress">
-					 		<u-input type="textarea" :height="100" auto-height placeholder="请输入收货详细地址(最多100个字符)" :maxlength="100" v-model="form.receiveAddress" class="receiveAddress"/>
+					 		<!-- <u-input type="textarea" :height="100" auto-height placeholder="请输入收货详细地址(最多100个字符)" :maxlength="100" v-model="form.receiveAddress" class="receiveAddress"/> -->
+							<textarea :auto-height="true" placeholder="请输入收货详细地址(最多100个字符)" :maxlength="100" v-model="form.receiveAddress" class="receiveAddress"/>
 					 	</u-form-item>
 					 </u-form>
 				</view>

+ 1 - 1
pagesA/order/order.vue

@@ -404,7 +404,7 @@
 				}
 				let params = {
 					payPwd: md5(this.password),
-					id: md5(this.orderId)
+					id: this.orderId
 				}
 				console.log(params,'pppppppppp')
 				signPay(params).then(res=>{

+ 1 - 1
pagesA/toOrder/index.vue

@@ -289,7 +289,7 @@
 				}
 				let params = {
 					payPwd: md5(this.password),
-					id: md5(this.orderId)
+					id: this.orderId
 				}
 				console.log(params,'pppppppppp')
 				this.payBtn = true