|
@@ -66,7 +66,7 @@
|
|
|
|
|
|
|
|
<image @click="back" src="/static/index/backBtnImg.png" mode="" class="rule_img"></image>
|
|
<image @click="back" src="/static/index/backBtnImg.png" mode="" class="rule_img"></image>
|
|
|
|
|
|
|
|
- <u-modal :show="showShare" title="分享链接" :content='content'></u-modal>
|
|
|
|
|
|
|
+ <!-- <u-modal :show="showShare" title="分享链接" :content='content'></u-modal> -->
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
</template>
|
|
</template>
|
|
@@ -85,7 +85,7 @@
|
|
|
},
|
|
},
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
- showShare: true,
|
|
|
|
|
|
|
+ // showShare: true,
|
|
|
|
|
|
|
|
picUrl: this.$picUrl,
|
|
picUrl: this.$picUrl,
|
|
|
selHx: null,
|
|
selHx: null,
|
|
@@ -98,41 +98,6 @@
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
async onLoad(o) {
|
|
async onLoad(o) {
|
|
|
- // o.orderId = '08e2d44b34b4bc182882242f02837797'
|
|
|
|
|
- const that = this;
|
|
|
|
|
- // 获取当前页面实例
|
|
|
|
|
- const pages = getCurrentPages();
|
|
|
|
|
- const currentPage = pages[pages.length - 1];
|
|
|
|
|
- // 获取页面链接携带的参数
|
|
|
|
|
- const urlParams = currentPage.options;
|
|
|
|
|
- console.log('urlParams', urlParams);
|
|
|
|
|
-
|
|
|
|
|
- this.$toast('全屋WiFi页面测试数o数据:' + o.orderId + '|' + o.testData + '|' + JSON.stringify(o) + '||' + JSON
|
|
|
|
|
- .stringify(urlParams), 'none', 5000)
|
|
|
|
|
- // this.options = o
|
|
|
|
|
- // this.options1 = JSON.stringify(o)
|
|
|
|
|
-
|
|
|
|
|
- // 获取小程序启动时的参数
|
|
|
|
|
- let obj = wx.getLaunchOptionsSync();
|
|
|
|
|
- let query = null;
|
|
|
|
|
-
|
|
|
|
|
- if (o.scene || obj.query.scene) {
|
|
|
|
|
- // 这里是用开发者工具模拟的时候要先用 encodeURIComponent 编译,模拟真实传递参数的效果,项目发布审核的时候这句话要注释掉
|
|
|
|
|
- // query = options ? encodeURIComponent(options.scene) : encodeURIComponent(obj.query.scene);
|
|
|
|
|
- query = o ? decodeURIComponent(o.scene) : decodeURIComponent(obj.query.scene);
|
|
|
|
|
- // query = decodeURIComponent(obj.query.scene);
|
|
|
|
|
- // this.query = query
|
|
|
|
|
- //解析参数
|
|
|
|
|
- let orderId = query.split("-")[0];
|
|
|
|
|
- let testData = query.split("-")[1];
|
|
|
|
|
-
|
|
|
|
|
- setTimeout(() => {
|
|
|
|
|
- this.$toast('全屋WiFi页面测试数o2数据:' + orderId + '|' + testData + '|' + JSON.stringify(query),
|
|
|
|
|
- 'none', 5000)
|
|
|
|
|
- }, 6000)
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- return
|
|
|
|
|
if (o.orderId) {
|
|
if (o.orderId) {
|
|
|
this.orderId = o.orderId
|
|
this.orderId = o.orderId
|
|
|
console.log('o.orderId', o.orderId);
|
|
console.log('o.orderId', o.orderId);
|
|
@@ -145,7 +110,7 @@
|
|
|
|
|
|
|
|
this.shareCon = res.data
|
|
this.shareCon = res.data
|
|
|
|
|
|
|
|
- this.selHx = res.data.config.house_type
|
|
|
|
|
|
|
+ this.selHx = res.data.config.house_type_data
|
|
|
} else {
|
|
} else {
|
|
|
uni.showToast({
|
|
uni.showToast({
|
|
|
title: res.message,
|
|
title: res.message,
|