gengx
This commit is contained in:
+1
-39
@@ -1,40 +1,2 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const color = "#8a8a8a";
|
||||
const activeColor = "#204e2b";
|
||||
const _sfc_main = {
|
||||
__name: "tab-bar-dock",
|
||||
props: {
|
||||
/** 0 血糖 1 我的 */
|
||||
active: {
|
||||
type: Number,
|
||||
default: 0
|
||||
}
|
||||
},
|
||||
setup(__props) {
|
||||
const props = __props;
|
||||
function goUser() {
|
||||
if (props.active === 1)
|
||||
return;
|
||||
common_vendor.index.redirectTo({ url: "/pages/user/user" });
|
||||
}
|
||||
function goWeekly() {
|
||||
if (props.active === 0)
|
||||
return;
|
||||
common_vendor.index.redirectTo({ url: "/tongji/pages/weekly" });
|
||||
}
|
||||
return (_ctx, _cache) => {
|
||||
return {
|
||||
a: __props.active === 0 ? 1 : "",
|
||||
b: __props.active === 0 ? activeColor : color,
|
||||
c: common_vendor.o(goWeekly, "40"),
|
||||
d: __props.active === 1 ? "/static/user/user_no.png" : "/static/user/user.png",
|
||||
e: __props.active === 1 ? activeColor : color,
|
||||
f: common_vendor.o(goUser, "79")
|
||||
};
|
||||
};
|
||||
}
|
||||
};
|
||||
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["__scopeId", "data-v-c3efacf5"]]);
|
||||
wx.createComponent(Component);
|
||||
"use strict";const t=require("../../common/vendor.js"),r="#8a8a8a",n="#204e2b",i={__name:"tab-bar-dock",props:{active:{type:Number,default:0}},setup(e){const c=e;function o(){c.active!==1&&t.index.redirectTo({url:"/pages/user/user"})}function a(){c.active!==0&&t.index.redirectTo({url:"/tongji/pages/weekly"})}return(u,d)=>({a:e.active===0?1:"",b:e.active===0?n:r,c:t.o(a,"40"),d:e.active===1?"/static/user/user_no.png":"/static/user/user.png",e:e.active===1?n:r,f:t.o(o,"79")})}},s=t._export_sfc(i,[["__scopeId","data-v-c3efacf5"]]);wx.createComponent(s);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/components/app-tab-bar/tab-bar-dock.js.map
|
||||
|
||||
Reference in New Issue
Block a user