This commit is contained in:
2022-07-07 11:10:52 +08:00
parent 6cdf4f21ef
commit 9f6c343d05
4 changed files with 50 additions and 81 deletions

View File

@@ -3,7 +3,9 @@
<!-- 设置支付密码 -->
<view class="password">
<view class="prompt">
<view class="prompt-code">验证码已发送至{{phone}} <button size="mini" :disabled="getCodeState" @click="getCode">{{sendCode}}</button></view>
<view class="prompt-code">验证码已发送至{{phone}}
<!-- <button size="mini" :disabled="getCodeState" @click="getCode">{{sendCode}}</button> -->
</view>
<view>请设置6位数字密码建议不要使用连续的数字</view>
</view>
<view class="group">
@@ -40,7 +42,7 @@
return {
sendCode : '获取验证码',
canGet : true,
getCodeState: false,
getCodeState: true,
phone : '',
code : '',
password : '',
@@ -58,7 +60,7 @@
// 获取验证码
getCode(){
let smsTime = 3;
let smsTime = 60;
getSms().then(res => {
this.canGet = false
uni.showToast({

View File

@@ -77,7 +77,6 @@
methods:{
getGoods(){
goods(this.$Route.query.id).then(res => {
console.log(res);
this.goods = res
})
},

File diff suppressed because one or more lines are too long

View File

@@ -22334,28 +22334,9 @@ var render = function() {
_c(
"v-uni-view",
{ staticClass: _vm._$g(3, "sc"), attrs: { _i: 3 } },
[
_vm._v("验证码已发送至" + _vm._$g(3, "t0-0")),
_c(
"v-uni-button",
{
attrs: {
size: "mini",
disabled: _vm._$g(4, "a-disabled"),
_i: 4
},
on: {
click: function($event) {
return _vm.$handleViewEvent($event)
}
}
},
[_vm._v(_vm._$g(4, "t0-0"))]
)
],
1
[_vm._v("验证码已发送至" + _vm._$g(3, "t0-0"))]
),
_c("v-uni-view", { attrs: { _i: 5 } }, [
_c("v-uni-view", { attrs: { _i: 4 } }, [
_vm._v("请设置6位数字密码。建议不要使用连续的数字。")
])
],
@@ -22363,13 +22344,13 @@ var render = function() {
),
_c(
"v-uni-view",
{ staticClass: _vm._$g(6, "sc"), attrs: { _i: 6 } },
{ staticClass: _vm._$g(5, "sc"), attrs: { _i: 5 } },
[
_c(
"v-uni-view",
{ staticClass: _vm._$g(7, "sc"), attrs: { _i: 7 } },
{ staticClass: _vm._$g(6, "sc"), attrs: { _i: 6 } },
[
_c("v-uni-label", { attrs: { _i: 8 } }, [
_c("v-uni-label", { attrs: { _i: 7 } }, [
_vm._v("设置支付密码")
]),
_c("v-uni-input", {
@@ -22378,12 +22359,12 @@ var render = function() {
maxlength: "6",
password: true,
placeholder: "请设置支付密码",
_i: 9
_i: 8
},
model: {
value: _vm._$g(9, "v-model"),
value: _vm._$g(8, "v-model"),
callback: function($$v) {
_vm.$handleVModelEvent(9, $$v)
_vm.$handleVModelEvent(8, $$v)
},
expression: "password"
}
@@ -22393,9 +22374,9 @@ var render = function() {
),
_c(
"v-uni-view",
{ staticClass: _vm._$g(10, "sc"), attrs: { _i: 10 } },
{ staticClass: _vm._$g(9, "sc"), attrs: { _i: 9 } },
[
_c("v-uni-label", { attrs: { _i: 11 } }, [
_c("v-uni-label", { attrs: { _i: 10 } }, [
_vm._v("确认支付密码")
]),
_c("v-uni-input", {
@@ -22404,12 +22385,12 @@ var render = function() {
maxlength: "6",
password: true,
placeholder: "请确认支付密码",
_i: 12
_i: 11
},
model: {
value: _vm._$g(12, "v-model"),
value: _vm._$g(11, "v-model"),
callback: function($$v) {
_vm.$handleVModelEvent(12, $$v)
_vm.$handleVModelEvent(11, $$v)
},
expression: "verify"
}
@@ -22419,13 +22400,13 @@ var render = function() {
),
_c(
"v-uni-view",
{ staticClass: _vm._$g(13, "sc"), attrs: { _i: 13 } },
{ staticClass: _vm._$g(12, "sc"), attrs: { _i: 12 } },
[
_c(
"v-uni-view",
{ staticClass: _vm._$g(14, "sc"), attrs: { _i: 14 } },
{ staticClass: _vm._$g(13, "sc"), attrs: { _i: 13 } },
[
_c("v-uni-label", { attrs: { _i: 15 } }, [
_c("v-uni-label", { attrs: { _i: 14 } }, [
_vm._v("验证码")
]),
_c("v-uni-input", {
@@ -22433,12 +22414,12 @@ var render = function() {
type: "number",
maxlength: "4",
placeholder: "请输入验证码",
_i: 16
_i: 15
},
model: {
value: _vm._$g(16, "v-model"),
value: _vm._$g(15, "v-model"),
callback: function($$v) {
_vm.$handleVModelEvent(16, $$v)
_vm.$handleVModelEvent(15, $$v)
},
expression: "code"
}
@@ -22449,15 +22430,15 @@ var render = function() {
_c(
"v-uni-view",
{
staticClass: _vm._$g(17, "sc"),
attrs: { _i: 17 },
staticClass: _vm._$g(16, "sc"),
attrs: { _i: 16 },
on: {
click: function($event) {
return _vm.$handleViewEvent($event)
}
}
},
[_vm._v(_vm._$g(17, "t0-0"))]
[_vm._v(_vm._$g(16, "t0-0"))]
)
],
1
@@ -22470,12 +22451,12 @@ var render = function() {
),
_c(
"v-uni-view",
{ staticClass: _vm._$g(18, "sc"), attrs: { _i: 18 } },
{ staticClass: _vm._$g(17, "sc"), attrs: { _i: 17 } },
[
_c(
"v-uni-button",
{
attrs: { type: "default", "form-type": "submit", _i: 19 },
attrs: { type: "default", "form-type": "submit", _i: 18 },
on: {
click: function($event) {
return _vm.$handleViewEvent($event)