You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
6.8 KiB
1 lines
6.8 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-question-buyOne"],{3656:function(n,e,t){"use strict";t.r(e);var i=t("8783"),a=t.n(i);for(var o in i)["default"].indexOf(o)<0&&function(n){t.d(e,n,(function(){return i[n]}))}(o);e["default"]=a.a},"3c6c":function(n,e,t){var i=t("c86c");e=i(!1),e.push([n.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/* 文章场景相关 */.buyOne[data-v-6f9b65f6]{width:100%;padding:0 %?25?% %?280?%;overflow:hidden;box-sizing:border-box}.buyOne-con[data-v-6f9b65f6]{margin-top:%?20?%;background:#fff;border-radius:%?20?%;box-sizing:border-box;padding:0 %?30?%}.buyOne-con .name[data-v-6f9b65f6]{font-size:%?34?%;font-weight:700;padding-top:%?20?%;display:flex;align-items:center;justify-content:space-between}.buyOne-con .name .r[data-v-6f9b65f6]{font-weight:400;width:%?100?%;height:%?40?%;line-height:%?40?%;background:#fff;border:1px solid #f01b1b;border-radius:%?40?%;font-size:%?22?%;color:#f01b1b;display:block;text-align:center;margin-left:%?20?%}.buyOne-con .name .r-on[data-v-6f9b65f6]{width:%?100?%;padding:0;border-color:#eaeaea;background:#eaeaea;color:#222}.buyOne-con .a[data-v-6f9b65f6]{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #eaeaea;padding:%?20?% 0}.buyOne-con .a .l[data-v-6f9b65f6]{display:flex;align-items:center;font-size:%?30?%;font-weight:400;color:#222;line-height:%?40?%}.buyOne-con .a .l uni-image[data-v-6f9b65f6]{width:%?40?%;height:%?40?%;margin-right:%?18?%}.buyOne-con .a .r[data-v-6f9b65f6]{height:%?40?%;width:%?100?%;line-height:%?40?%;background:#fff;border:1px solid #f01b1b;border-radius:%?40?%;font-size:%?22?%;color:#f01b1b;display:block;text-align:center;margin-left:%?20?%}.buyOne-con .a .r-on[data-v-6f9b65f6]{width:%?100?%;padding:0;border-color:#eaeaea;background:#eaeaea;color:#222}.buyOne-con .b .li[data-v-6f9b65f6]{display:flex;align-items:center;justify-content:space-between;padding:%?20?% 0}.buyOne-con .b .l[data-v-6f9b65f6]{display:flex;align-items:center;font-size:%?30?%;font-weight:400;color:#222;line-height:%?40?%}.buyOne-con .b .l uni-image[data-v-6f9b65f6]{width:%?40?%;height:%?40?%;margin-right:%?18?%}.buyOne-con .b .r[data-v-6f9b65f6]{height:%?40?%;width:%?100?%;line-height:%?40?%;background:#fff;border:1px solid #f01b1b;border-radius:%?40?%;font-size:%?22?%;color:#f01b1b;display:block;text-align:center;margin-left:%?20?%}.buyOne-con .b .r-on[data-v-6f9b65f6]{width:%?100?%;padding:0;border-color:#eaeaea;background:#eaeaea;color:#222}.buyOne-bottom[data-v-6f9b65f6]{position:fixed;bottom:0;width:100%;text-align:right}.buyOne-bottom uni-image[data-v-6f9b65f6]{width:%?151?%;height:%?151?%;margin-right:5%}',""]),n.exports=e},"76f4":function(n,e,t){"use strict";t.r(e);var i=t("e960"),a=t("3656");for(var o in a)["default"].indexOf(o)<0&&function(n){t.d(e,n,(function(){return a[n]}))}(o);t("ed80");var r=t("828b"),s=Object(r["a"])(a["default"],i["b"],i["c"],!1,null,"6f9b65f6",null,!1,i["a"],void 0);e["default"]=s.exports},8783:function(n,e,t){"use strict";t("6a54");var i=t("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=i(t("2634")),o=i(t("2fdc")),r={data:function(){return{categoryList:[]}},onShow:function(n){this.getList()},methods:{openPage:function(n,e,t,i,a){if(1==n){if(!uni.getStorageSync("userToken"))return void uni.navigateTo({url:"/pages/login/login"});e.idx=i,e.idx1=a,e.type=t,console.log(n,e,t,i,a),uni.setStorageSync("teamInfo",e),uni.navigateTo({url:"/pages/question/buyTwo"})}else if(2==n){if(!uni.getStorageSync("userToken"))return void uni.navigateTo({url:"/pages/login/login"});uni.navigateTo({url:"/pages/question/list"})}},getList:function(){var n=this;return(0,o.default)((0,a.default)().mark((function e(){var t,i,o,r;return(0,a.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return uni.showLoading({title:"加载中"}),e.next=3,n.$api.categoryTreeList({});case 3:t=e.sent,i=t.code,o=t.data,r=t.msg,200==i?(uni.hideLoading(),n.categoryList=o):(uni.hideLoading(),uni.showToast({icon:"none",title:r}));case 8:case"end":return e.stop()}}),e)})))()}}};e.default=r},a7bb:function(n,e,t){var i=t("3c6c");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[n.i,i,""]]),i.locals&&(n.exports=i.locals);var a=t("967d").default;a("9a356a4e",i,!0,{sourceMap:!1,shadowMode:!1})},e960:function(n,e,t){"use strict";t.d(e,"b",(function(){return i})),t.d(e,"c",(function(){return a})),t.d(e,"a",(function(){}));var i=function(){var n=this,e=n.$createElement,t=n._self._c||e;return t("v-uni-view",{staticClass:"buyOne"},[n._l(n.categoryList,(function(e,i){return t("v-uni-view",{key:i,staticClass:"buyOne-con"},[t("v-uni-view",{staticClass:"name"},[n._v(n._s(e.name)),t("v-uni-view",{staticClass:"r",class:1==e.is_buy?"r-on":"",on:{click:function(t){arguments[0]=t=n.$handleEvent(t),0==e.is_buy&&n.openPage(1,e,1)}}},[n._v(n._s(1==e.is_buy?"已购买":"¥"+e.price))])],1),n._l(e.children,(function(i,a){return t("v-uni-view",{key:a,staticClass:"ul"},[t("v-uni-view",{staticClass:"a"},[t("v-uni-view",{staticClass:"l"},[n._v(n._s(i.name))]),t("v-uni-view",{staticClass:"r",class:1==i.is_buy?"r-on":"",on:{click:function(t){arguments[0]=t=n.$handleEvent(t),0==i.is_buy&&n.openPage(1,e,2,a)}}},[n._v(n._s(1==i.is_buy?"已购买":"¥"+i.price))])],1),t("v-uni-view",{staticClass:"b"},n._l(i.children,(function(e,o){return t("v-uni-view",{key:o,staticClass:"li"},[t("v-uni-view",{staticClass:"l"},[n._v(n._s(e.name))]),t("v-uni-view",{staticClass:"r",class:1==e.is_buy?"r-on":"",on:{click:function(t){arguments[0]=t=n.$handleEvent(t),0==e.is_buy&&n.openPage(1,i,3,a,o)}}},[n._v(n._s(1==e.is_buy?"已购买":"¥"+e.price))])],1)})),1)],1)}))],2)})),t("v-uni-view",{staticClass:"buyOne-bottom"},[t("v-uni-image",{attrs:{src:n.staticUrl("/static/buy-01.png")},on:{click:function(e){arguments[0]=e=n.$handleEvent(e),n.openPage(2)}}})],1)],2)},a=[]},ed80:function(n,e,t){"use strict";var i=t("a7bb"),a=t.n(i);a.a}}]); |