Commit cb85f152 by chenwq

增值‘

1 parent eb45aed8
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
"pages/applySuccess/applySuccess", "pages/applySuccess/applySuccess",
"pages/tab/introduction/introduction", "pages/tab/introduction/introduction",
"pages/addTransform/addTransform/addTransform", "pages/addTransform/addTransform/addTransform",
"pages/addTransform/detail/detail" "pages/addTransform/addTransformDetail/addTransformDetail"
], ],
"window": { "window": {
"backgroundTextStyle": "light", "backgroundTextStyle": "light",
......
...@@ -107,13 +107,13 @@ Page({ ...@@ -107,13 +107,13 @@ Page({
}, },
handleCardClick(e) { handleCardClick(e) {
console.log(e.detail)
var obj = e.detail var obj = e.detail
if(!this.data.detailKeyList.includes(obj.detailAttrName)) { if(!this.data.detailKeyList.includes(obj.detailAttrName)) {
wx.$util.showToast('敬请期待') wx.$util.showToast('敬请期待')
return true return true
} }
wx.$router.go('pages.detail', { proName: obj.proName, attrName: obj.detailAttrName }) console.log(e.detail)
wx.$router.go('addTransformDetail', { proName: obj.proName, attrName: obj.detailAttrName })
}, },
handleIntroduceClick() { handleIntroduceClick() {
......
...@@ -17,11 +17,6 @@ Page({ ...@@ -17,11 +17,6 @@ Page({
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad(options) { onLoad(options) {
this.setData({
proName: options.proName,
attrName: options.attrName,
detailObj: this.data.addDatailObj[options.attrName]
})
wx.$router.getData(({ wx.$router.getData(({
attrName, attrName,
proName proName
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!