123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232 |
- import { sup } from '../behavior-scene/scene-ready';
- import list from './data/index';
- let lastOpened = false;
- let lastCount = 0;
- let first = true;
- Page({
- data: {
- list,
- root: '',
- imgUrls:[
- 'https://gss0.baidu.com/9fo3dSag_xI4khGko9WTAnF6hhy/zhidao/wh%3D600%2C800/sign=8b20fba45e6034a829b7b087fb23656c/14ce36d3d539b60028f67d12eb50352ac65cb75e.jpg',
- 'https://gss0.baidu.com/9vo3dSag_xI4khGko9WTAnF6hhy/zhidao/wh%3D600%2C800/sign=3386e39a49fbfbeddc0c3e7948c0db0e/32fa828ba61ea8d3943606a1950a304e251f587a.jpg',
- 'http://img04.sogoucdn.com/app/a/100520093/ca86e620b9e623ff-d72d635343d5bade-dcf2acda7a45cb44f172db138bdf8d2d.jpg',
- ],
- sysheight:600,
- listShowModelDes:[
- {ModelName:'禺强',ModelIntroduce:'北海之渚中,有神,人面鸟身,珥两青蛇,践两赤蛇,名曰禺彊(禺强)',ModelPrice:'¥1.99'},
- {ModelName:'AAA',ModelIntroduce:'北海之渚中,有神,人面鸟身,珥两青蛇,践两赤蛇,名曰禺彊(AAA)',ModelPrice:'¥2.99'},
- {ModelName:'BBB',ModelIntroduce:'北海之渚中,有神,人面鸟身,珥两青蛇,践两赤蛇,名曰禺彊(BBB)',ModelPrice:'¥3.99'},
- ],
- products:[],
- },
- toupper:function(){
- console.log("触发了toupper");
- },
- onShow(){
-
- },
-
- onShareAppMessage() {
- return {
- title: 'XR-FRAME官方示例'
- }
- },
- onShareTimeline() {
- return {
- title: 'XR-FRAME官方示例'
- }
- },
- clickHandle(e) {
- wx.navigateTo({
-
- url: '/pages/ar-classic/scene-classic-saomiao/index',
- success: () => {
- },
- fail: () => {
- },
- });
- return;
-
- if (!path) {
- return;
- }
- if (path === '/pages/scene-last-record/index') {
- this.handleLastRecord();
- return;
- }
- if (path) {
-
- wx.navigateTo({
- url: root + path + `?path=${path}`,
- success: () => {
- },
- fail: () => {
- },
- });
- }
- },
- clickTuJian(e){
- console.log('clickTuJianAAAAAAAAAA');
- wx.navigateTo({
- url: '/pages/ar-classic/scene-classic-tujian/index',
-
- success: () => {
- },
- fail: (err) => {
- console.log(' 跳转失败 ',err);
- },
- });
- },
- handleLastRecord: async function () {
- return;
- if (lastOpened) {
- return;
- }
- lastCount += 1;
-
-
-
- let root = this.data.root;
- lastOpened = true;
- wx.request({
- url: 'https://mmbizwxaminiprogram-1258344707.cos.ap-guangzhou.myqcloud.com/xr-frame/demo/xr-frame-team/last-gate.txt',
- success: function (res) {
- wx.showModal({
- title: '一把钥匙',
- content: res.data,
- confirmText: '探寻真实',
- cancelText: '放下钥匙',
- success: function(res) {
- if (res.cancel) {
- wx.onAppShow((result) => {
- lastOpened = false;
- });
- return;
- }
- wx.navigateTo({
- url: root + '/pages/scene-last-record/index',
- success: () => {
- wx.onAppShow((result) => {
- lastOpened = false;
- });
- }
- });
- }
- });
- },
- fail: function (err) {
- lastOpened = false;
- }
- });
- },
- });
|