123 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["setting-defaultDisplaySelection"],{"033a":function(t,e,o){"use strict";o("6a54");var n=o("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.AddMerchandise=l,e.Editcategory=w,e.RenderQueue=d,e.changeGoodsSort=L,e.default=void 0,e.delCategory=x,e.deleteGoods=p,e.displayorder=_,e.editCategorySub=b,e.editGoodsDisplayorder=h,e.editGoodsHot=y,e.editGoodsStuta=g,e.editGoodsSub=f,e.editGoodsTotal=v,e.editGoodsTruncate=m,e.getDefaultDisplaySelection=C,e.goodsList=i,e.goodsListNoLoginApi=E,e.importCloudGoods=D,e.onChangeStatus=c,e.searchCloudGoods=S,e.searchGoodsImageByName=G,e.turnNotify=s,e.updateDefaultDisplaySelection=O,e.waitingList=u;var r=n(o("9b1b")),a=n(o("5b42"));function i(t){return a.default.get("api/manage.goods.goods/list",{params:t})}function u(t,e){return util.request((0,r.default)({method:"get",url:"manage/tangshi/assign/index",data:t},e))}function s(t,e){return util.request((0,r.default)({method:"post",url:"manage/tangshi/assign/status",data:t},e))}function c(t,e){return util.request((0,r.default)({method:"post",url:"manage/tangshi/assign/status",data:t},e))}function d(t,e){return util.request((0,r.default)({method:"post",url:"manage/tangshi/assign/queue_post",data:t},e))}function l(t){return a.default.get("api/manage.goods.goods/editDetail",{params:t})}function f(t){return a.default.post("api/manage.goods.goods/edit",t)}function p(t){return a.default.get("api/manage.goods.goods/delete",{params:t})}function g(t){return a.default.post("api/manage.goods.goods/status",t)}function h(t){return a.default.post("api/manage.goods.goods/displayorder",t)}function v(t){return a.default.post("api/manage.goods.goods/total",t)}function y(t){return a.default.post("api/manage.goods.goods/hot",t)}function m(t){return a.default.post("api/manage.goods.goods/truncate",t)}function w(t){return a.default.get("api/manage.goods.category/editDetail",{params:t})}function b(t){return a.default.post("api/manage.goods.category/edit",t)}function x(t){return a.default.get("api/manage.goods.category/delete",{params:t})}function _(t){return a.default.post("api/manage.goods.category/displayorders",t)}function L(t){return a.default.post("api/manage.goods.goods/changeGoodsSort",t)}function G(t){return a.default.post("api/manage.goods.goods/searchGoodsImageByName",t)}function S(t){return a.default.post("api/manage.goods.goods/searchCloudGoods",t)}function D(t){return a.default.post("api/manage.goods.goods/importCloudGoods",t)}function O(t){return a.default.post("api/manage.shop.config/updateDefaultDisplaySelection",t)}function C(t){return a.default.get("api/manage.shop.config/getDefaultDisplaySelection",{params:t})}function E(t){return a.default.get("api/manage.goods.goods/listNoLogin",{params:t})}var k={delCategory:x,editCategorySub:b,deleteGoods:p,editGoodsTruncate:m,editGoodsStuta:g,editGoodsSub:f,goodsList:i,waitingList:u,turnNotify:s,onChangeStatus:c,RenderQueue:d,AddMerchandise:l,Editcategory:w,displayorder:_,changeGoodsSort:L,searchGoodsImageByName:G,searchCloudGoods:S,importCloudGoods:D,updateDefaultDisplaySelection:O,getDefaultDisplaySelection:C,editGoodsDisplayorder:h,editGoodsTotal:v,editGoodsHot:y,goodsListNoLoginApi:E};e.default=k},"08e7":function(t,e,o){var n=o("c86c");e=n(!1),e.push([t.i,"uni-page-body[data-v-15f6b7a2]{background-color:#f5f5f5}body.?%PAGE?%[data-v-15f6b7a2]{background-color:#f5f5f5}.header[data-v-15f6b7a2]{width:100%;position:-webkit-sticky;position:sticky;top:0;z-index:1000;padding-top:%?80?%;padding-bottom:%?30?%;background-color:#fff}.header_title[data-v-15f6b7a2]{font-size:%?36?%;font-weight:700;color:#333}.btn_box[data-v-15f6b7a2]{width:100%;margin:auto;margin-top:%?20?%;display:flex;justify-content:space-between;align-items:center;border-radius:8px}.option[data-v-15f6b7a2]{flex:1;display:flex;flex-direction:column;align-items:center;text-align:center}.option-text[data-v-15f6b7a2]{color:#333}.image-container[data-v-15f6b7a2]{width:42.5vw;height:60vw;border-radius:8px;display:flex;align-items:center;justify-content:center;overflow:hidden}.image-container img[data-v-15f6b7a2]{object-fit:cover}.footer[data-v-15f6b7a2]{position:absolute;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);bottom:50px;border-radius:10px;background:#d60200;color:#fff;width:90%;text-align:center;padding:%?20?% 0}",""]),t.exports=e},2634:function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){
- /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
- e.default=function(){return t};var t={},o=Object.prototype,r=o.hasOwnProperty,a=Object.defineProperty||function(t,e,o){t[e]=o.value},i="function"==typeof Symbol?Symbol:{},u=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function d(t,e,o){return Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{d({},"")}catch(k){d=function(t,e,o){return t[e]=o}}function l(t,e,o,n){var r=e&&e.prototype instanceof g?e:g,i=Object.create(r.prototype),u=new O(n||[]);return a(i,"_invoke",{value:L(t,o,u)}),i}function f(t,e,o){try{return{type:"normal",arg:t.call(e,o)}}catch(k){return{type:"throw",arg:k}}}t.wrap=l;var p={};function g(){}function h(){}function v(){}var y={};d(y,u,(function(){return this}));var m=Object.getPrototypeOf,w=m&&m(m(C([])));w&&w!==o&&r.call(w,u)&&(y=w);var b=v.prototype=g.prototype=Object.create(y);function x(t){["next","throw","return"].forEach((function(e){d(t,e,(function(t){return this._invoke(e,t)}))}))}function _(t,e){var o;a(this,"_invoke",{value:function(a,i){function u(){return new e((function(o,u){(function o(a,i,u,s){var c=f(t[a],t,i);if("throw"!==c.type){var d=c.arg,l=d.value;return l&&"object"==(0,n.default)(l)&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){o("next",t,u,s)}),(function(t){o("throw",t,u,s)})):e.resolve(l).then((function(t){d.value=t,u(d)}),(function(t){return o("throw",t,u,s)}))}s(c.arg)})(a,i,o,u)}))}return o=o?o.then(u,u):u()}})}function L(t,e,o){var n="suspendedStart";return function(r,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===r)throw a;return E()}for(o.method=r,o.arg=a;;){var i=o.delegate;if(i){var u=G(i,o);if(u){if(u===p)continue;return u}}if("next"===o.method)o.sent=o._sent=o.arg;else if("throw"===o.method){if("suspendedStart"===n)throw n="completed",o.arg;o.dispatchException(o.arg)}else"return"===o.method&&o.abrupt("return",o.arg);n="executing";var s=f(t,e,o);if("normal"===s.type){if(n=o.done?"completed":"suspendedYield",s.arg===p)continue;return{value:s.arg,done:o.done}}"throw"===s.type&&(n="completed",o.method="throw",o.arg=s.arg)}}}function G(t,e){var o=e.method,n=t.iterator[o];if(void 0===n)return e.delegate=null,"throw"===o&&t.iterator["return"]&&(e.method="return",e.arg=void 0,G(t,e),"throw"===e.method)||"return"!==o&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+o+"' method")),p;var r=f(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,p;var a=r.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,p):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,p)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function D(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function C(t){if(t){var e=t[u];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,n=function e(){for(;++o<t.length;)if(r.call(t,o))return e.value=t[o],e.done=!1,e;return e.value=void 0,e.done=!0,e};return n.next=n}}return{next:E}}function E(){return{value:void 0,done:!0}}return h.prototype=v,a(b,"constructor",{value:v,configurable:!0}),a(v,"constructor",{value:h,configurable:!0}),h.displayName=d(v,c,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===h||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,d(t,c,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},x(_.prototype),d(_.prototype,s,(function(){return this})),t.AsyncIterator=_,t.async=function(e,o,n,r,a){void 0===a&&(a=Promise);var i=new _(l(e,o,n,r),a);return t.isGeneratorFunction(o)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},x(b),d(b,c,"Generator"),d(b,u,(function(){return this})),d(b,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),o=[];for(var n in e)o.push(n);return o.reverse(),function t(){for(;o.length;){var n=o.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},t.values=C,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(D),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function o(o,n){return i.type="throw",i.arg=t,e.next=o,n&&(e.method="next",e.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n],i=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),s=r.call(a,"finallyLoc");if(u&&s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var o=this.tryEntries.length-1;o>=0;--o){var n=this.tryEntries[o];if(n.tryLoc<=this.prev&&r.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var a=n;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,p):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),p},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var o=this.tryEntries[e];if(o.finallyLoc===t)return this.complete(o.completion,o.afterLoc),D(o),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var o=this.tryEntries[e];if(o.tryLoc===t){var n=o.completion;if("throw"===n.type){var r=n.arg;D(o)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,o){return this.delegate={iterator:C(t),resultName:e,nextLoc:o},"next"===this.method&&(this.arg=void 0),p}},t},o("6a54"),o("01a2"),o("e39c"),o("bf0f"),o("844d"),o("18f7"),o("de6c"),o("3872e"),o("4e9b"),o("114e"),o("c240"),o("926e"),o("7a76"),o("c9b5"),o("aa9c"),o("2797"),o("8a8d"),o("dc69"),o("f7a5");var n=function(t){return t&&t.__esModule?t:{default:t}}(o("fcf3"))},"2fdc":function(t,e,o){"use strict";function n(t,e,o,n,r,a,i){try{var u=t[a](i),s=u.value}catch(c){return void o(c)}u.done?e(s):Promise.resolve(s).then(n,r)}o("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return function(){var e=this,o=arguments;return new Promise((function(r,a){var i=t.apply(e,o);function u(t){n(i,r,a,u,s,"next",t)}function s(t){n(i,r,a,u,s,"throw",t)}u(void 0)}))}},o("bf0f")},5108:function(t,e,o){"use strict";o("6a54");var n=o("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(o("2634")),a=n(o("2fdc")),i=n(o("033a")),u={data:function(){return{someData:{page:1},selectedOptionNum:1}},methods:{onLoad:function(){this.selectedOption()},updateDefaultDisplaySelection:function(){var t=this;return(0,a.default)((0,r.default)().mark((function e(){var o;return(0,r.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,i.default.updateDefaultDisplaySelection({sid:t.util.getStorageSync("__sid"),defaultDisplaySelection:t.selectedOptionNum});case 3:o=e.sent,o&&1===o.code?(o.data&&o.data.page&&(t.someData.page=o.data.page),uni.showToast({title:"修改成功",icon:"success"})):uni.showToast({title:o.msg,icon:"error"}),console.log("修改成:",o.data.data),t.selectedOption(),e.next=13;break;case 9:e.prev=9,e.t0=e["catch"](0),console.error("Error updating display selection:",e.t0),uni.showToast({title:"操作失败",icon:"error"});case 13:case"end":return e.stop()}}),e,null,[[0,9]])})))()},selectedOption:function(){var t=this;return(0,a.default)((0,r.default)().mark((function e(){var o;return(0,r.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,i.default.getDefaultDisplaySelection({sid:t._sid});case 2:o=e.sent,console.log("当前:",o.data.data),t.selectedOptionNum=+o.data.data;case 5:case"end":return e.stop()}}),e)})))()}}};e.default=u},"9d63":function(t,e,o){"use strict";o.d(e,"b",(function(){return r})),o.d(e,"c",(function(){return a})),o.d(e,"a",(function(){return n}));var n={tnRadioGroup:o("439e").default,tnRadio:o("bc0f").default},r=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("v-uni-view",{staticClass:"body"},[o("v-uni-view",{staticClass:"header"},[o("v-uni-view",{staticClass:"header_title"},[o("v-uni-view",{staticClass:"tn-icon-left",staticStyle:{position:"absolute",left:"10px"}}),o("v-uni-view",{staticClass:"tn-text-center"},[t._v("默认显示选择")])],1)],1),o("tn-radio-group",{staticClass:"tn-flex btn_box",model:{value:t.selectedOptionNum,callback:function(e){t.selectedOptionNum=e},expression:"selectedOptionNum"}},[o("v-uni-view",{staticClass:"option"},[o("v-uni-view",{staticClass:"image-container"},[o("v-uni-image",{staticStyle:{width:"42.5vw",height:"74.687vw"},attrs:{src:"https://qny.wdsp666.com/福袋背景图/agent/单排展示.png"}})],1),o("v-uni-view",{staticClass:"tn-flex tn-flex-col-center tn-margin-top-sm"},[o("tn-radio",{attrs:{name:1,activeColor:"#D60200"}}),o("v-uni-view",{staticClass:"option-text"},[t._v("单排展示")])],1)],1),o("v-uni-view",{staticClass:"option"},[o("v-uni-view",{staticClass:"image-container"},[o("v-uni-image",{staticStyle:{width:"42.5vw",height:"73.667vw"},attrs:{src:"https://qny.wdsp666.com/福袋背景图/agent/双排展示.png"}})],1),o("v-uni-view",{staticClass:"tn-flex tn-flex-col-center tn-margin-top-sm"},[o("tn-radio",{attrs:{name:2,activeColor:"#D60200"}}),o("v-uni-view",{staticClass:"option-text"},[t._v("双排展示")])],1)],1)],1),o("v-uni-view",{staticClass:"footer",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.updateDefaultDisplaySelection.apply(void 0,arguments)}}},[t._v("确认保存")])],1)},a=[]},c71c:function(t,e,o){"use strict";var n=o("d53e"),r=o.n(n);r.a},d53e:function(t,e,o){var n=o("08e7");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var r=o("967d").default;r("db127bcc",n,!0,{sourceMap:!1,shadowMode:!1})},e535:function(t,e,o){"use strict";o.r(e);var n=o("5108"),r=o.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){o.d(e,t,(function(){return n[t]}))}(a);e["default"]=r.a},f453:function(t,e,o){"use strict";o.r(e);var n=o("9d63"),r=o("e535");for(var a in r)["default"].indexOf(a)<0&&function(t){o.d(e,t,(function(){return r[t]}))}(a);o("c71c");var i=o("828b"),u=Object(i["a"])(r["default"],n["b"],n["c"],!1,null,"15f6b7a2",null,!1,n["a"],void 0);e["default"]=u.exports}}]);
|