frontend_h5/static/js/pages-product-detail.552194...

1 line
22 KiB
JavaScript
Raw Normal View History

2024-06-17 15:25:46 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-product-detail"],{"0283":function(i,t,e){var n=e("24fb");t=n(!1),t.push([i.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场https://ext.dcloud.net.cn上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者建议你使用scss预处理并在插件代码中直接使用这些变量无需 import 这个文件方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者插件使用者你可以通过修改这些变量来定制自己的插件主题实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */uni-view[data-v-59765974], uni-scroll-view[data-v-59765974], uni-swiper-item[data-v-59765974]{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}@font-face{font-family:uicon-iconfont;src:url(https://at.alicdn.com/t/font_2225171_8kdcwk4po24.ttf) format("truetype")}.u-icon[data-v-59765974]{display:flex;align-items:center}.u-icon--left[data-v-59765974]{flex-direction:row-reverse;align-items:center}.u-icon--right[data-v-59765974]{flex-direction:row;align-items:center}.u-icon--top[data-v-59765974]{flex-direction:column-reverse;justify-content:center}.u-icon--bottom[data-v-59765974]{flex-direction:column;justify-content:center}.u-icon__icon[data-v-59765974]{font-family:uicon-iconfont;position:relative;display:flex;flex-direction:row;align-items:center}.u-icon__icon--primary[data-v-59765974]{color:#3c9cff}.u-icon__icon--success[data-v-59765974]{color:#5ac725}.u-icon__icon--error[data-v-59765974]{color:#f56c6c}.u-icon__icon--warning[data-v-59765974]{color:#f9ae3d}.u-icon__icon--info[data-v-59765974]{color:#909399}.u-icon__img[data-v-59765974]{height:auto;will-change:transform}.u-icon__label[data-v-59765974]{line-height:1}',""]),i.exports=t},"23af":function(i,t,e){"use strict";e.r(t);var n=e("eca6"),o=e("6c4f");for(var c in o)["default"].indexOf(c)<0&&function(i){e.d(t,i,(function(){return o[i]}))}(c);e("e49d");var l=e("f0c5"),a=Object(l["a"])(o["default"],n["b"],n["c"],!1,null,"67201155",null,!1,n["a"],void 0);t["default"]=a.exports},"3ef4":function(i,t,e){var n=e("92a3");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[i.i,n,""]]),n.locals&&(i.exports=n.locals);var o=e("4f06").default;o("06546327",n,!0,{sourceMap:!1,shadowMode:!1})},"452d":function(i,t,e){"use strict";e("7a82");var n=e("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,e("14d9"),e("e9c4");var o=n(e("5b98")),c={data:function(){return{list:[{name:"商品简介"},{name:"商品参数"},{name:"购买须知"}],current:0,curindex:0,show:!1,tags:[{tt:"10元"},{tt:"20元"},{tt:"特惠微信100元立减金"}],istrue:!1,id:"",info:{},imgUrl:""}},components:{xz:o.default},onLoad:function(i){this.id=i.id,this.imgUrl=this.api.imgUrl,this.getData()},methods:{getData:function(){var i=this;uni.showLoading({title:"加载中..."}),this.api.getdetail({id:this.id}).then((function(t){console.log(t),200==t.data.code?(i.info=t.data.data,i.info.detail_image=JSON.parse(i.info.detail_image),i.tags=[],i.tags.push(t.data.data.spec_name),uni.hideLoading(),i.istrue=!0):uni.showToast({icon:"none",title:t.data.message})}))},change:function(i){this.current=i},goup:function(){this.show=!0},chosem:function(i){this.curindex=i},gomyorder:function(){uni.switchTab({url:"/pages/order/index"})},okdiu:function(){var i={img:this.info.main_image,name:this.info.name,price:this.info.price,real_price:this.info.real_price,id