Xiaobai! I would like to ask Mini Program picker multiple selector how to get the value of the selector? , not a subscript

Xiaobai! I would like to ask Mini Program picker multiple selector how to get the value of the selector? Instead of a subscript (indicate that this is a secondary linkage)

<view class="input">
  <text><text class="important">*</text></text>
  <view class="section">
    <picker mode="multiSelector" bindchange="bindMultiCatPickerChange" bindcolumnchange="bindMultiCatPickerColumnChange" value="{{multiCatIndex}}" range="{{multiCatArray}}">
      <view class="picker">
        :{{multiCatArray[0][multiCatIndex[0]]}}{{multiCatArray[1][multiCatIndex[1]]}}
      </view>
    </picker>
  </view>
</view>



  bindMultiCatPickerChange: function (e) {
    console.log("picker", e.detail.value)
    this.setData({
      "multiCatIndex[0]": e.detail.value[0],
      "multiCatIndex[1]": e.detail.value[1]
    })
    },
    
    


clipboard.png

Dec.06,2021

if you get the subscript, you won't go to the corresponding array to get the value

.

bindMultiPickerChange (e) {

let res = e.detail.value;
this.value1= this.multiCatArray[0][res[0]];
this.value2 = this.multiCatArray[1][res[1]]
this.$apply();

},

Menu