12345678910111213141516171819202122232425262728293031323334353637383940 |
- const util = require("../../utils/util.js");
- Component({
- properties: {
- text: {
- type: String,
- observer: function (newVal, oldVal) {
- this.setData({ text: newVal });
- }
- },
- make:{
- type: Boolean,
- observer: function (newVal, oldVal) {
- this.setData({ make: newVal });
- }
- }
- },
- data: {
- text:'',
- make: false
- },
- pageLifetimes:{
- hide(){
- this.setData({ make: false });
- }
- },
- methods: {
- navigatorTo(e) {
- util.navigator(e.currentTarget.dataset.url);
- },
- cancel() {
- this.setData({ make: false });
- },
- confirm() {
- let url="/pages/public/swiper/web?url=https://mp.weixin.qq.com/s/e20v-4tPUv52n51I9DDrGw&title=宝贝走天下服务号"
- util.navigator(url);
- this.setData({ make: false });
- }
- }
- })
|