
Some checks are pending
Actions / Litemall-all (11) (push) Waiting to run
Actions / Litemall-all (11.0.3) (push) Waiting to run
Actions / Litemall-all (8) (push) Waiting to run
Actions / Litemall-all (8.0.192) (push) Waiting to run
Actions / Litemall-admin (10.x) (push) Waiting to run
Actions / Litemall-admin (12.x) (push) Waiting to run
Actions / Litemall-admin (14.x) (push) Waiting to run
Actions / Litemall-vue (10.x) (push) Waiting to run
Actions / Litemall-vue (12.x) (push) Waiting to run
Actions / Litemall-vue (14.x) (push) Waiting to run
18 lines
364 B
JavaScript
18 lines
364 B
JavaScript
export const link = Behavior({
|
|
properties: {
|
|
url: String,
|
|
linkType: {
|
|
type: String,
|
|
value: 'navigateTo'
|
|
}
|
|
},
|
|
methods: {
|
|
jumpLink(urlKey = 'url') {
|
|
const url = this.data[urlKey];
|
|
if (url) {
|
|
wx[this.data.linkType]({ url });
|
|
}
|
|
}
|
|
}
|
|
});
|