pages-index-buy.81fdd662.js 13.4 KB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-index-buy"],{"0a07":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAYCAYAAADzoH0MAAAAAXNSR0IArs4c6QAAASJJREFUOE+l1M0qRlEUxvHfi0LKxERyCQaug6GEMjFSpgbiBt4oZaJcADOZ+Cj3YKLchJmkUL7atbd22znH6T1ncnZrr/6t9axnr57qrxfD3zX3v+GUmOeVsUZIFSDAJhDuXuK/FpIDwjkkjuMEY9jEUxOkCjCKCyygjz0M4atKj7KFlDiPM8xiK56H8VlCqjRIiauxlUcs4QF/IHUipkr2sY0brOO51KMOkASdxCkWcYDdUo86QGg1lTuHc0xjBbd5K02AHLKBY1xGSKMTS1cGb0zhLo4yVPSakv6rINfiHu8II35rCxjBR3TkEa6w3PRw8rtSxBms4bqNiOUYg60PsdPWB52M1MnKnR5T6nvg59x5oeQjHGil1ZlroKXaeq3/AFrAUhlDyk/FAAAAAElFTkSuQmCC"},"14ba":function(t,e,a){"use strict";a("d3b7"),Object.defineProperty(e,"__esModule",{value:!0}),e.request=e.baseURL=void 0;var i="http://yuanjie.n.broing.cn/api/";e.baseURL=i;var r=function(t){return new Promise((function(e,a){uni.request({url:i+t.url,method:t.method||"GET",data:t.data||{},header:{"Content-Type":"application/x-www-form-urlencoded",token:uni.getStorageSync("token")||""},success:function(t){console.log(t,uni.getStorageSync("token")),1==t.data.code?e(t.data.data):(401==t.data.code&&(uni.navigateTo({url:"/login/login"}),uni.clearStorageSync()),a(t.data.msg))},fail:function(t){console.log(t),a(t)}})}))};e.request=r},"1de5":function(t,e,a){"use strict";t.exports=function(t,e){return e||(e={}),t=t&&t.__esModule?t.default:t,"string"!==typeof t?t:(/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),e.hash&&(t+=e.hash),/["'() \t\n]/.test(t)||e.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t)}},"250a":function(t,e,a){"use strict";var i=a("28bf"),r=a.n(i);r.a},"28bf":function(t,e,a){var i=a("c545");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var r=a("4f06").default;r("888f6ae8",i,!0,{sourceMap:!1,shadowMode:!1})},"2f15":function(t,e,a){"use strict";a.r(e);var i=a("ec36"),r=a.n(i);for(var n in i)"default"!==n&&function(t){a.d(e,t,(function(){return i[t]}))}(n);e["default"]=r.a},"55c5":function(t,e,a){"use strict";var i;a.d(e,"b",(function(){return r})),a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){return i}));var r=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"buydetail"},[i("v-uni-view",{staticClass:"buytop"},[i("v-uni-text",{staticClass:"buytitle"},[t._v("数字货币")]),i("v-uni-view",{staticClass:"buybox flexA"},[i("v-uni-image",{attrs:{src:t.list1[0],mode:""}}),i("v-uni-view",{staticClass:"buymiss"},[i("v-uni-view",{staticClass:"title"},[t._v(t._s(t.topdetail.name))]),i("v-uni-view",{staticClass:"money"},[i("v-uni-text",[t._v("¥")]),t._v(t._s(t.topdetail.price))],1)],1)],1)],1),i("v-uni-view",{staticClass:"paymiss"},[i("v-uni-view",{staticClass:"paybox"},[i("v-uni-view",{staticClass:"boxtitle"},[t._v("买家信息")]),i("v-uni-view",{staticClass:"paybar"},[i("v-uni-view",{staticClass:"left"},[i("v-uni-text",[t._v("*")]),t._v("接收账户:")],1),i("v-uni-view",{staticClass:"right"},[i("v-uni-input",{attrs:{type:"text",placeholder:"请输入手机号或钱包地址","placeholder-style":"color: rgba(0,0,0,0.26);font-size: 28rpx;"},model:{value:t.detail.buyer_package,callback:function(e){t.$set(t.detail,"buyer_package",e)},expression:"detail.buyer_package"}})],1)],1),i("v-uni-view",{staticClass:"paybar"},[i("v-uni-view",{staticClass:"left"},[i("v-uni-text",[t._v("*")]),t._v("微信号:")],1),i("v-uni-view",{staticClass:"right"},[i("v-uni-input",{attrs:{type:"text",placeholder:"请输入","placeholder-style":"color: rgba(0,0,0,0.26);font-size: 28rpx;"},model:{value:t.detail.buyer_wechat,callback:function(e){t.$set(t.detail,"buyer_wechat",e)},expression:"detail.buyer_wechat"}})],1)],1),i("v-uni-view",{staticClass:"paybar"},[i("v-uni-view",{staticClass:"left"},[t._v("联系人:")]),i("v-uni-view",{staticClass:"right"},[i("v-uni-input",{attrs:{type:"text",placeholder:"选填","placeholder-style":"color: rgba(0,0,0,0.26);font-size: 28rpx;"},model:{value:t.detail.buyer_name,callback:function(e){t.$set(t.detail,"buyer_name",e)},expression:"detail.buyer_name"}})],1)],1),i("v-uni-view",{staticClass:"paybar"},[i("v-uni-view",{staticClass:"left"},[t._v("联系电话:")]),i("v-uni-view",{staticClass:"right"},[i("v-uni-input",{attrs:{type:"text",placeholder:"选填","placeholder-style":"color: rgba(0,0,0,0.26);font-size: 28rpx;"},model:{value:t.detail.buyer_mobile,callback:function(e){t.$set(t.detail,"buyer_mobile",e)},expression:"detail.buyer_mobile"}})],1)],1),i("v-uni-view",{staticClass:"paybar"},[i("v-uni-view",{staticClass:"left"},[t._v("实名认证:"),0==t.detail.is_cert?i("v-uni-text",[t._v("(未通过)")]):i("v-uni-text",{staticClass:"ok"},[t._v("(已通过)")])],1),i("v-uni-view",{staticClass:"right flexA",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.tocart.apply(void 0,arguments)}}},[0==t.detail.is_cert?i("v-uni-text",[t._v("去认证")]):i("v-uni-text",{staticClass:"ok"},[t._v("已认证")]),i("v-uni-image",{attrs:{src:a("0a07"),mode:""}})],1)],1)],1)],1),i("v-uni-view",{staticClass:"btn"},[0==t.detail.is_cert?i("v-uni-view",{staticClass:"paybtn"},[t._v("确认支付")]):i("v-uni-view",{staticClass:"paybtn none",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.product_buy.apply(void 0,arguments)}}},[t._v("确认支付")])],1)],1)},n=[]},c545:function(t,e,a){var i=a("24fb"),r=a("1de5"),n=a("e4cc");e=i(!1);var o=r(n);e.push([t.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-page-body[data-v-5a5c1464]{background-color:#f0f0f0}.buydetail .buytop[data-v-5a5c1464]{width:100%;padding:0 %?32?%;height:%?294?%;background-image:url('+o+");background-size:100%;background-repeat:no-repeat;padding-top:%?68?%;box-sizing:border-box}.buydetail .buytop .buytitle[data-v-5a5c1464]{color:#000;font-size:%?36?%;font-weight:600;font-family:PingFang SC}.buydetail .buytop .buybox[data-v-5a5c1464]{margin-top:%?24?%;background-color:#fff;padding:%?24?%;border-radius:%?16?%;box-sizing:border-box}.buydetail .buytop .buybox uni-image[data-v-5a5c1464]{margin-right:%?12?%;width:%?120?%;height:%?120?%;border-radius:%?16?%}.buydetail .buytop .buybox .buymiss .title[data-v-5a5c1464]{color:rgba(0,0,0,.9);font-size:%?28?%;font-weight:400;font-family:PingFang SC}.buydetail .buytop .buybox .buymiss .money[data-v-5a5c1464]{margin-top:%?32?%;color:#f85317;font-size:%?32?%;font-weight:700}.buydetail .buytop .buybox .buymiss .money uni-text[data-v-5a5c1464]{font-size:%?24?%;font-weight:500}.buydetail .paymiss[data-v-5a5c1464]{padding:0 %?32?%;margin-top:%?24?%}.buydetail .paymiss .paybox[data-v-5a5c1464]{background-color:#fff;padding:%?24?%}.buydetail .paymiss .paybox .boxtitle[data-v-5a5c1464]{color:rgba(0,0,0,.9);font-size:%?30?%;font-weight:600;font-family:PingFang SC}.buydetail .paymiss .paybox .paybar[data-v-5a5c1464]{padding:%?16?% 0;display:flex;align-items:center;justify-content:space-between}.buydetail .paymiss .paybox .paybar .left[data-v-5a5c1464]{flex:1;color:rgba(0,0,0,.9);font-size:%?28?%;font-weight:400;font-family:PingFang SC}.buydetail .paymiss .paybox .paybar .left uni-text[data-v-5a5c1464]{opacity:1;color:#fc4338;font-size:%?28?%;font-weight:400;font-family:PingFang SC}.buydetail .paymiss .paybox .paybar .left .ok[data-v-5a5c1464]{color:#18d18e;font-size:%?28?%;font-weight:400;font-family:PingFang SC}.buydetail .paymiss .paybox .paybar .right[data-v-5a5c1464]{text-align:right}.buydetail .paymiss .paybox .paybar .right uni-text[data-v-5a5c1464]{color:#2153d4;font-size:%?28?%;font-weight:400;font-family:PingFang SC}.buydetail .paymiss .paybox .paybar .right .ok[data-v-5a5c1464]{color:#18d18e;font-size:%?28?%;font-weight:400;font-family:PingFang SC}.buydetail .paymiss .paybox .paybar .right uni-image[data-v-5a5c1464]{width:%?16?%;height:%?32?%}.buydetail .btn[data-v-5a5c1464]{position:fixed;bottom:0;left:0;width:100%;height:%?128?%;padding:%?16?% %?32?%;box-sizing:border-box;opacity:1;background:#fff}.buydetail .btn .paybtn[data-v-5a5c1464]{width:100%;height:%?96?%;line-height:%?96?%;text-align:center;border-radius:%?28?%;opacity:1;color:rgba(0,0,0,.9);font-size:%?32?%;font-weight:600;font-family:PingFang SC;background:#f0f2f5}.buydetail .btn .none[data-v-5a5c1464]{background:linear-gradient(134.8deg,#ffe864,#ffd800)}body.?%PAGE?%[data-v-5a5c1464]{background-color:#f0f0f0}",""]),t.exports=e},d089:function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.upload=e.user_cert=e.product_report=e.last_buy_data=e.report_list=e.product_favorite=e.product_buy=e.product_detail=e.product_list=e.arcList=e.sortList=e.getBanner=void 0;var i=a("14ba"),r=function(){return(0,i.request)({url:"index/banner",method:"post",data:{}})};e.getBanner=r;var n=function(t){return(0,i.request)({url:"index/sort_index",method:"post",data:{type:t}})};e.sortList=n;var o=function(){return(0,i.request)({url:"index/arc_list",method:"post",data:{}})};e.arcList=o;var u=function(t){return(0,i.request)({url:"product/product_list",method:"post",data:t})};e.product_list=u;var s=function(t){return(0,i.request)({url:"product/product_detail",method:"post",data:{product_id:t}})};e.product_detail=s;var c=function(t){return(0,i.request)({url:"product/product_buy",method:"post",data:t})};e.product_buy=c;var d=function(t){return(0,i.request)({url:"product/product_favorite",method:"post",data:{product_id:t}})};e.product_favorite=d;var l=function(t){return(0,i.request)({url:"product/report_list",method:"post",data:t})};e.report_list=l;var p=function(t){return(0,i.request)({url:"product/last_buy_data",method:"post",data:t})};e.last_buy_data=p;var b=function(t){return(0,i.request)({url:"product/product_report",method:"post",data:t})};e.product_report=b;var v=function(t){return(0,i.request)({url:"user/user_cert",method:"post",data:t})};e.user_cert=v;var y=function(t){return(0,i.request)({url:"common/upload",method:"post",data:t})};e.upload=y},d30d:function(t,e,a){"use strict";a.r(e);var i=a("55c5"),r=a("2f15");for(var n in r)"default"!==n&&function(t){a.d(e,t,(function(){return r[t]}))}(n);a("250a");var o,u=a("f0c5"),s=Object(u["a"])(r["default"],i["b"],i["c"],!1,null,"5a5c1464",null,!1,i["a"],o);e["default"]=s.exports},e4cc:function(t,e,a){t.exports=a.p+"static/img/ic_back3.89c125a5.png"},ec36:function(t,e,a){"use strict";var i=a("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("96cf");var r=i(a("1da1")),n=a("d089"),o={data:function(){return{product_id:"",String:"",topdetail:"",list1:[],detail:{product_id:"",buyer_package:"",buyer_wechat:"",buyer_name:"",buyer_mobile:"",is_cert:""},objk:{}}},onLoad:function(t){this.product_id=t.id,this.product_detail(),this.last_buy_data()},onShow:function(){uni.getStorageSync("showlist")&&(this.detail=uni.getStorageSync("showlist"))},methods:{tocart:function(){var t={product_id:this.product_id,buyer_package:this.detail.buyer_package,buyer_wechat:this.detail.buyer_wechat,buyer_name:this.detail.buyer_name,buyer_mobile:this.detail.buyer_mobile,is_cert:this.detail.is_cert};uni.setStorageSync("showlist",t),uni.navigateTo({url:"/pages/index/realName"})},product_detail:function(){var t=this;return(0,r.default)(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,n.product_detail)(t.product_id);case 3:a=e.sent,console.log("product_detail",a),t.topdetail=a.detail,t.list1=a.detail.images_preview,e.next=13;break;case 9:e.prev=9,e.t0=e["catch"](0),uni.showToast({title:e.t0,icon:"none"}),console.log("product_detail",e.t0);case 13:case"end":return e.stop()}}),e,null,[[0,9]])})))()},product_buy:function(){var t=this;return(0,r.default)(regeneratorRuntime.mark((function e(){var a,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return console.log(t.detail,"000000"),a={product_id:t.product_id,buyer_package:t.detail.buyer_package,buyer_wechat:t.detail.buyer_wechat,buyer_name:t.detail.buyer_name,buyer_mobile:t.detail.buyer_mobile},e.prev=2,e.next=5,(0,n.product_buy)(a);case 5:i=e.sent,console.log("product_buy",i),e.next=13;break;case 9:e.prev=9,e.t0=e["catch"](2),uni.showToast({title:e.t0,icon:"none"}),console.log("product_buy",e.t0);case 13:case"end":return e.stop()}}),e,null,[[2,9]])})))()},last_buy_data:function(){var t=this;return(0,r.default)(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,(0,n.last_buy_data)();case 3:a=e.sent,console.log("last_buy_data",a),t.detail=a.detail,e.next=12;break;case 8:e.prev=8,e.t0=e["catch"](0),uni.showToast({title:e.t0,icon:"none"}),console.log("last_buy_data",e.t0);case 12:case"end":return e.stop()}}),e,null,[[0,8]])})))()}}};e.default=o}}]);