瀏覽代碼

选择产品

zhaoxiaohai 2 年之前
父節點
當前提交
ef75493735
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      select/product/index.js

+ 1 - 1
select/product/index.js

@@ -83,7 +83,7 @@ Page({
 			obj = this.data.radio ? {
 				id: result,
 				item: this.data.list.find(value => value[this.data.idname] == result),
-				value: [this.data.list.find(value => value[this.data.idname] == result), result]
+				value: [this.data.list.find(value => value[this.data.idname] == result)[this.data.showName], result]
 			} : {
 				result,
 				list: result.map(v => this.data.list.find(value => value[this.data.idname] == v)),