Browse Source

fix: bug修复;

pull/5/head
Fox-33 1 month ago
parent
commit
50a6103194
3 changed files with 29 additions and 7 deletions
  1. +8
    -2
      pages.json
  2. +3
    -3
      pages_order/auth/wxUserInfo.vue
  3. +18
    -2
      pages_order/report/test/answer.vue

+ 8
- 2
pages.json View File

@ -101,7 +101,10 @@
"path": "report/compare/result"
},
{
"path": "product/productList"
"path": "product/productList",
"style": {
"enablePullDownRefresh": true
}
},
{
"path": "product/productDetail"
@ -134,7 +137,10 @@
}
},
{
"path": "address/addressList"
"path": "address/addressList",
"style": {
"enablePullDownRefresh": true
}
},
{
"path": "comment/commentRecordsOfProduct",


+ 3
- 3
pages_order/auth/wxUserInfo.vue View File

@ -45,7 +45,7 @@
</uv-form-item>
</view>
<view class="form-item">
<uv-form-item prop="phone" :customStyle="formItemStyle">
<uv-form-item prop="avatar" :customStyle="formItemStyle">
<view class="form-item-label">头像</view>
<view class="form-item-content input">
<button class="btn btn-avatar" :plain="true" :hairline="false" open-type="chooseAvatar" @chooseavatar="onChooseAvatar">
@ -109,8 +109,8 @@
message: '请输入手机号',
},
'avatar': {
type: 'array',
required: true,
type: 'string',
required: false,
message: '请选择头像',
},
},


+ 18
- 2
pages_order/report/test/answer.vue View File

@ -149,6 +149,17 @@
return ['select-box-multiple', 'select-multiple','input', 'input-group'].includes(this.currentQuestion?.component)
},
},
watch: {
tabs: {
handler(val) {
console.log('watch-tabs', val)
},
deep: true
},
current(val) {
console.log('watch-current', val)
},
},
onLoad(arg) {
this.step = parseInt(arg.step)
// this.current = parseInt(arg.current || 0)
@ -223,6 +234,7 @@
console.log('answers', this.answers)
},
switchQuestion(current) {
console.log('current', this.current, 'target', current)
let { needTag } = this.questionsList[current]
console.log('needTag length', needTag?.length)
@ -262,10 +274,14 @@
this.$utils.redirectTo(`/pages_order/report/test/step?step=${this.step + 1}`)
},
pre() {
console.log('pre')
// this.current -= 1
this.current = this.preIdx
const preIdx = this.preIdx
this.current = this.tabs[this.preIdx]
this.value = this.answers[this.current]
this.noneFlag = false
this.tabs = this.tabs.slice(0, preIdx + 1)
console.log('tabs', this.tabs)
},
next() {
if (this.showSubmitBtn) {
@ -492,7 +508,7 @@
.main {
width: 100%;
padding: 70rpx 104rpx 0 104rpx;
padding: 70rpx 104rpx;
box-sizing: border-box;
}


Loading…
Cancel
Save