init
This commit is contained in:
23
xhs-mini-demos/component-case/include/include.js
Normal file
23
xhs-mini-demos/component-case/include/include.js
Normal file
@@ -0,0 +1,23 @@
|
||||
Page({
|
||||
|
||||
onShareAppMessage() {
|
||||
return {
|
||||
title: navigationBarTitleText,
|
||||
path: '/api-case/webview/webview',
|
||||
};
|
||||
},
|
||||
|
||||
data: {
|
||||
color: 'red',
|
||||
num: 0
|
||||
},
|
||||
|
||||
|
||||
onChangeColor() {
|
||||
console.log('onChangeColor');
|
||||
this.setData({
|
||||
color: this.data.color === 'red' ? 'blue': 'red',
|
||||
num: this.data.num+1
|
||||
});
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user