123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107 |
- let app = getApp();
- let host = app.globalData.servsers;
- Page({
-
- data: {
- detail: {},
- host: host
- },
-
- onLoad: function (options) {
- },
-
- onReady: function () {
- },
-
- onShow: function () {
- let detail = wx.getStorageSync('detail');
- this.setData({
- detail: detail
- })
- },
-
- onHide: function () {
- },
-
- onUnload: function () {
- },
-
- onPullDownRefresh: function () {
- },
-
- onReachBottom: function () {
- },
-
- onShareAppMessage: function () {
- },
- hrefBtn() {
- let detail = wx.getStorageSync('detail')
- if (detail.customgoodsNo == '2'){
- if (detail.id >= 7 && detail.id <= 10){
- wx.navigateTo({
- url: "/customized/pages/oneMade/oneMade?id=" + JSON.stringify(detail.id*1+2),
- })
- } else {
- let id = detail.id, dataId='5,6';
- switch (detail.id){
- case 5:
- id='5';
- dataId = '5,6';
- break;
- case 6:
- id='7';
- dataId = '7,8';
- break;
- default:
- break;
- }
- console.log(id,"id")
- wx.navigateTo({
- url: `/customized/pages/boxMade/boxMade?id=${id}&dataId=${dataId}`,
- })
- }
-
- }
- if (detail.customgoodsNo == '1') {
- wx.navigateTo({
- url: "/customized/pages/made/made",
- })
- }
-
- }
- })
|