添加新文件
This commit is contained in:
@@ -0,0 +1,96 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const common_assets = require("../../common/assets.js");
|
||||
const _sfc_main = {
|
||||
data() {
|
||||
return {
|
||||
lightImages: ["/static/turntable/zz.png", "/static/turntable/turntable.png"],
|
||||
prizes: [
|
||||
{
|
||||
name: "积分",
|
||||
image: "/static/turntable/record.png",
|
||||
pro: "50积分"
|
||||
},
|
||||
{
|
||||
name: "积分",
|
||||
image: "/static/turntable/record.png",
|
||||
pro: "100积分"
|
||||
},
|
||||
{
|
||||
name: "优惠券",
|
||||
image: "/static/turntable/record.png",
|
||||
pro: "15元优惠券"
|
||||
},
|
||||
{
|
||||
name: "家用电器",
|
||||
image: "/static/turntable/record.png",
|
||||
pro: "微波炉"
|
||||
},
|
||||
{
|
||||
name: "谢谢参与",
|
||||
image: "/static/turntable/record.png",
|
||||
pro: "15元优惠券"
|
||||
},
|
||||
{
|
||||
name: "办公用品",
|
||||
image: "/static/turntable/record.png",
|
||||
pro: "机械键盘"
|
||||
},
|
||||
{
|
||||
name: "生活用品",
|
||||
image: "/static/turntable/record.png",
|
||||
pro: "化妆刷"
|
||||
}
|
||||
]
|
||||
};
|
||||
},
|
||||
onLoad() {
|
||||
},
|
||||
methods: {
|
||||
startWheel() {
|
||||
this.$refs.luckyWheel.run(2);
|
||||
},
|
||||
Click() {
|
||||
common_vendor.index.__f__("log", "at pages/LuckyWheel/LuckyWheel.vue:68", "用户点击了转盘");
|
||||
this.$refs.luckyWheel.run(2);
|
||||
},
|
||||
Done(prize) {
|
||||
common_vendor.index.__f__("log", "at pages/LuckyWheel/LuckyWheel.vue:72", "抽奖结束,中奖奖品:", prize);
|
||||
}
|
||||
}
|
||||
};
|
||||
if (!Array) {
|
||||
const _easycom_up_image2 = common_vendor.resolveComponent("up-image");
|
||||
const _easycom_dengbo_lotteryWheel2 = common_vendor.resolveComponent("dengbo-lotteryWheel");
|
||||
(_easycom_up_image2 + _easycom_dengbo_lotteryWheel2)();
|
||||
}
|
||||
const _easycom_up_image = () => "../../uni_modules/uview-plus/components/u-image/u-image.js";
|
||||
const _easycom_dengbo_lotteryWheel = () => "../../uni_modules/dengbo-lotteryWheel/components/dengbo-lotteryWheel/dengbo-lotteryWheel.js";
|
||||
if (!Math) {
|
||||
(_easycom_up_image + _easycom_dengbo_lotteryWheel)();
|
||||
}
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return {
|
||||
a: common_assets._imports_0,
|
||||
b: common_vendor.o($options.startWheel),
|
||||
c: common_vendor.p({
|
||||
src: "/static/turntable/zz.png",
|
||||
width: "40",
|
||||
height: "40",
|
||||
mode: "widthFix"
|
||||
}),
|
||||
d: common_vendor.sr("luckyWheel", "664c6c6b-0"),
|
||||
e: common_vendor.o($options.Click),
|
||||
f: common_vendor.o($options.Done),
|
||||
g: common_vendor.p({
|
||||
prizes: $data.prizes,
|
||||
size: 626,
|
||||
duration: 5e3,
|
||||
lightImgs: $data.lightImages,
|
||||
customStyle: "borderRadius: 50%;"
|
||||
})
|
||||
};
|
||||
}
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/LuckyWheel/LuckyWheel.js.map
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"navigationBarTitleText": "",
|
||||
"usingComponents": {
|
||||
"up-image": "../../uni_modules/uview-plus/components/u-image/u-image",
|
||||
"dengbo-lottery-wheel": "../../uni_modules/dengbo-lotteryWheel/components/dengbo-lotteryWheel/dengbo-lotteryWheel"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<view class="content"><view class="lottery"><dengbo-lottery-wheel wx:if="{{g}}" class="r" u-s="{{['bg','pointer']}}" bindrun="{{e}}" binddone="{{f}}" u-r="luckyWheel" u-i="664c6c6b-0" bind:__l="__l" u-p="{{g}}"><image src="{{a}}" style="width:100%;height:100%" slot="bg"/><up-image bindclick="{{b}}" u-i="664c6c6b-1,664c6c6b-0" bind:__l="__l" u-p="{{c}}" slot="pointer"></up-image></dengbo-lottery-wheel></view></view>
|
||||
@@ -0,0 +1,13 @@
|
||||
|
||||
.content{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
.lottery {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
width: 626rpx;
|
||||
height: 626rpx;
|
||||
margin-top: 100rpx;
|
||||
}
|
||||
@@ -0,0 +1,132 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const api_raffle = require("../../api/raffle.js");
|
||||
common_vendor.dayjs.extend(common_vendor.duration);
|
||||
const _sfc_main = {
|
||||
data() {
|
||||
return {
|
||||
timeData: {
|
||||
days: 0,
|
||||
hours: 0,
|
||||
minutes: 0,
|
||||
seconds: 0
|
||||
},
|
||||
sumTimes: 0,
|
||||
// 总加速次数
|
||||
quickenTimes: 0,
|
||||
// 剩余加速次数
|
||||
lockTimes: 0,
|
||||
// 冻结抽奖次数
|
||||
nextClearTime: null,
|
||||
// 下次清零时间
|
||||
timesValue: 0
|
||||
// 倒计时
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
this.getQuickenTimes();
|
||||
},
|
||||
methods: {
|
||||
jumpMine() {
|
||||
common_vendor.index.switchTab({
|
||||
// 首页
|
||||
url: "/pages/mine/mine"
|
||||
});
|
||||
},
|
||||
async getQuickenTimes() {
|
||||
const resp = await api_raffle.getQuickenTimes();
|
||||
if (resp && resp.bizcode === 100) {
|
||||
const data = resp.data || {};
|
||||
if (data && Object.keys(data).length !== 0) {
|
||||
this.sumTimes = data.sumTimes;
|
||||
this.lockTimes = data.lockTimes;
|
||||
this.quickenTimes = data.quickenTimes;
|
||||
this.nextClearTime = common_vendor.dayjs(data.nextClearTime).format("YYYY-MM-DD HH:mm:ss");
|
||||
if (data.nextReleaseTime) {
|
||||
let oldTime = new Date(data.nextReleaseTime).getTime();
|
||||
let nowTime = (/* @__PURE__ */ new Date()).getTime();
|
||||
let Time = oldTime - nowTime;
|
||||
let day = Math.floor(Time / (1e3 * 60 * 60 * 24));
|
||||
let hour = Math.floor(Time / (1e3 * 60 * 60) % 24);
|
||||
let minute = Math.floor(Time / (1e3 * 60) % 60);
|
||||
let second = Math.floor(Time / 1e3 % 60);
|
||||
this.timeData = {
|
||||
days: day,
|
||||
hours: hour,
|
||||
minutes: minute,
|
||||
seconds: second
|
||||
};
|
||||
const millisecond = Number(day * 24 * 3600 * 1e3) + Number(hour * 3600 * 1e3) + Number(minute * 60 * 1e3) + Number(second * 1e3);
|
||||
this.timesValue = millisecond;
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
// 定义 onChange 方法
|
||||
onChange(e) {
|
||||
this.timeData = e;
|
||||
},
|
||||
// 截取字符串的第一位数字
|
||||
getFirstDigit(str) {
|
||||
if (str) {
|
||||
return Math.floor(str / 10) % 10;
|
||||
}
|
||||
return 0;
|
||||
},
|
||||
// 截取字符串的最后一位数字
|
||||
getLastDigit(str) {
|
||||
if (str) {
|
||||
return str % 10;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
};
|
||||
if (!Array) {
|
||||
const _easycom_up_image2 = common_vendor.resolveComponent("up-image");
|
||||
const _easycom_up_count_down2 = common_vendor.resolveComponent("up-count-down");
|
||||
(_easycom_up_image2 + _easycom_up_count_down2)();
|
||||
}
|
||||
const _easycom_up_image = () => "../../uni_modules/uview-plus/components/u-image/u-image.js";
|
||||
const _easycom_up_count_down = () => "../../uni_modules/uview-plus/components/u-count-down/u-count-down.js";
|
||||
if (!Math) {
|
||||
(_easycom_up_image + _easycom_up_count_down)();
|
||||
}
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return common_vendor.e({
|
||||
a: common_vendor.o($options.jumpMine),
|
||||
b: common_vendor.p({
|
||||
src: "/static/common/left_b.png",
|
||||
width: "18",
|
||||
height: "18",
|
||||
bgColor: "#f1f6ff00"
|
||||
}),
|
||||
c: common_vendor.t($data.timeData.days > 10 ? $options.getFirstDigit($data.timeData.days) : 0),
|
||||
d: common_vendor.t($data.timeData.days > 10 ? $options.getLastDigit($data.timeData.days) : $data.timeData.days),
|
||||
e: common_vendor.t($data.timeData.hours > 10 ? $options.getFirstDigit($data.timeData.hours) : 0),
|
||||
f: common_vendor.t($data.timeData.hours > 10 ? $options.getLastDigit($data.timeData.hours) : $data.timeData.hours),
|
||||
g: common_vendor.t($data.timeData.minutes > 10 ? $options.getFirstDigit($data.timeData.minutes) : 0),
|
||||
h: common_vendor.t($data.timeData.minutes > 10 ? $options.getLastDigit($data.timeData.minutes) : $data.timeData.minutes),
|
||||
i: common_vendor.t($data.timeData.seconds > 10 ? $options.getFirstDigit($data.timeData.seconds) : 0),
|
||||
j: common_vendor.t($data.timeData.seconds > 10 ? $options.getLastDigit($data.timeData.seconds) : $data.timeData.seconds),
|
||||
k: common_vendor.o($options.onChange),
|
||||
l: common_vendor.p({
|
||||
time: $data.timesValue,
|
||||
format: "DD:HH:mm:ss",
|
||||
autoStart: true,
|
||||
millisecond: true
|
||||
}),
|
||||
m: common_vendor.t($data.sumTimes),
|
||||
n: common_vendor.t($data.quickenTimes),
|
||||
o: $data.nextClearTime
|
||||
}, $data.nextClearTime ? {} : {}, {
|
||||
p: $data.nextClearTime
|
||||
}, $data.nextClearTime ? {
|
||||
q: common_vendor.t($data.nextClearTime)
|
||||
} : {}, {
|
||||
r: common_vendor.t($data.lockTimes)
|
||||
});
|
||||
}
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-b4339e76"]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/accelerate/accelerate.js.map
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {
|
||||
"up-image": "../../uni_modules/uview-plus/components/u-image/u-image",
|
||||
"up-count-down": "../../uni_modules/uview-plus/components/u-count-down/u-count-down"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<view class="accelerate_warp data-v-b4339e76"><view class="accelerate_header data-v-b4339e76"><view class="header_ data-v-b4339e76"><up-image wx:if="{{b}}" class="data-v-b4339e76" bindclick="{{a}}" u-i="b4339e76-0" bind:__l="__l" u-p="{{b}}"/></view><view class="title_ data-v-b4339e76">冻结倒计时</view><up-count-down wx:if="{{l}}" class="data-v-b4339e76" u-s="{{['d']}}" bindchange="{{k}}" u-i="b4339e76-1" bind:__l="__l" u-p="{{l}}"><view class="time data-v-b4339e76"><view class="time__custom data-v-b4339e76"><text class="time__custom__item data-v-b4339e76">{{c}}</text></view><view class="time__custom data-v-b4339e76"><text class="time__custom__item data-v-b4339e76">{{d}}</text></view><view class="time__doc data-v-b4339e76">天</view><view class="time__custom data-v-b4339e76"><text class="time__custom__item data-v-b4339e76">{{e}}</text></view><view class="time__custom data-v-b4339e76"><text class="time__custom__item data-v-b4339e76">{{f}}</text></view><view class="time__doc data-v-b4339e76">:</view><view class="time__custom data-v-b4339e76"><text class="time__custom__item data-v-b4339e76">{{g}}</text></view><view class="time__custom data-v-b4339e76"><text class="time__custom__item data-v-b4339e76">{{h}}</text></view><view class="time__doc data-v-b4339e76">:</view><view class="time__custom data-v-b4339e76"><text class="time__custom__item data-v-b4339e76">{{i}}</text></view><view class="time__custom data-v-b4339e76"><text class="time__custom__item data-v-b4339e76">{{j}}</text></view></view></up-count-down><view class="list_ data-v-b4339e76"><view class="list_item data-v-b4339e76"><view class="list_item_title data-v-b4339e76">{{m}}</view><view class="list_item_msg data-v-b4339e76">累计加速次数</view></view><view class="list_fg data-v-b4339e76"></view><view class="list_item data-v-b4339e76"><view class="list_item_title data-v-b4339e76">{{n}}</view><view class="list_item_msg data-v-b4339e76">剩余加速次数</view><view wx:if="{{o}}" class="list_item_clear_msg data-v-b4339e76">清零时间</view><view wx:if="{{p}}" class="list_item_clear_msg data-v-b4339e76">({{q}})</view></view><view class="list_fg data-v-b4339e76"></view><view class="list_item data-v-b4339e76"><view class="list_item_title data-v-b4339e76">{{r}}</view><view class="list_item_msg data-v-b4339e76">冻结抽奖次数</view></view></view></view><view class="instructions_warp data-v-b4339e76"><view class="instructions_title data-v-b4339e76">加速说明</view><view class="instructions_content data-v-b4339e76"><view class="data-v-b4339e76">获取方式:</view><view class="data-v-b4339e76">(1)通过购买报单区和好物区商品的直推和间推奖励获得</view><view class="data-v-b4339e76">(2)转盘抽奖获得</view><view class="data-v-b4339e76">逻辑说明:</view><view class="data-v-b4339e76">(1)通过内购购买商品获得的是抽奖次数,并不能直接用于抽奖,能够抽奖的次数需要每天进行释放,或者直推间推下线的奖励获得可抽奖的次数</view><view class="data-v-b4339e76">(2)当可抽奖次数大于抽奖次数时,可抽奖次数将会被冻结24个小时,内购商品解冻,否则冻结的抽奖次数会消失。</view><view class="data-v-b4339e76">最终解释权归商城所有!!!</view></view></view></view>
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,13 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const _sfc_main = {
|
||||
data() {
|
||||
return {};
|
||||
}
|
||||
};
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return {};
|
||||
}
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/brand_settlement/brand_settlement.js.map
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"navigationBarTitleText": "企业/品牌入驻",
|
||||
"navigationBarBackgroundColor": "#FFFFFF",
|
||||
"navigationBarTextStyle": "black",
|
||||
"enablePullDownRefresh": false,
|
||||
"navigationStyle": "default",
|
||||
"usingComponents": {}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<view> 品牌入驻 </view>
|
||||
@@ -0,0 +1,323 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const api_raffle = require("../../api/raffle.js");
|
||||
const api_address = require("../../api/address.js");
|
||||
const api_common = require("../../api/common.js");
|
||||
const Address = () => "../../components/address.js";
|
||||
const _sfc_main = {
|
||||
components: {
|
||||
Address
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
form: {
|
||||
id: 0,
|
||||
name: null,
|
||||
// 收货人
|
||||
mobile: null,
|
||||
// 手机号码
|
||||
regionStr: null,
|
||||
// 所属地区
|
||||
countryId: null,
|
||||
// 国家ID
|
||||
provinceId: null,
|
||||
// 省份ID
|
||||
cityId: null,
|
||||
// 城市ID
|
||||
areaId: null,
|
||||
// 区域ID
|
||||
address: null
|
||||
// 详细地址
|
||||
},
|
||||
regionShow: false,
|
||||
regionColumns: [],
|
||||
regionLoading: false,
|
||||
addressShow: false,
|
||||
// 收件地址选择
|
||||
selectAddress: {},
|
||||
// 选中的地址
|
||||
prizeForm: {
|
||||
id: 0,
|
||||
addressId: 0,
|
||||
//
|
||||
remark: ""
|
||||
// 备注
|
||||
}
|
||||
};
|
||||
},
|
||||
onLoad(option) {
|
||||
const id = option.id;
|
||||
if (id && id !== 0) {
|
||||
this.prizeForm.id = id;
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
// 选择地址的弹框
|
||||
async regionShowCheck(status) {
|
||||
if (status) {
|
||||
const nation = await this.getRegion(0);
|
||||
const province = nation && nation.length !== 0 ? await this.getRegion(nation[0].id) : [];
|
||||
const city = province && province.length !== 0 ? await this.getRegion(province[0].id) : [];
|
||||
const area = city && city.length !== 0 ? await this.getRegion(city[0].id) : [];
|
||||
this.regionColumns = [nation, province, city, area];
|
||||
} else {
|
||||
this.regionColumns = [[], [], [], []];
|
||||
}
|
||||
this.regionShow = status;
|
||||
},
|
||||
// 数据交互
|
||||
async getRegion(pId) {
|
||||
this.regionLoading = true;
|
||||
const params = {
|
||||
parentId: pId
|
||||
};
|
||||
const resp = await api_common.getCascadeRegion(params);
|
||||
const arrOption = [];
|
||||
if (resp.bizcode === 100) {
|
||||
const data = resp.data;
|
||||
if (data && data.length !== 0) {
|
||||
data.map((item) => {
|
||||
arrOption.push({
|
||||
id: item.id,
|
||||
label: item.name,
|
||||
pId
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
this.regionLoading = false;
|
||||
return arrOption;
|
||||
},
|
||||
// 地区改变
|
||||
async regionChange(e) {
|
||||
const {
|
||||
columnIndex,
|
||||
index,
|
||||
picker
|
||||
} = e;
|
||||
const selectData = this.regionColumns[columnIndex][index];
|
||||
const resultData = await this.getRegion(selectData.id);
|
||||
if (resultData && resultData.length !== 0) {
|
||||
const index2 = columnIndex + 1;
|
||||
this.regionColumns[index2] = resultData;
|
||||
}
|
||||
},
|
||||
// 提交地址
|
||||
regionConfirm(e) {
|
||||
const {
|
||||
columnIndex,
|
||||
value,
|
||||
values,
|
||||
index
|
||||
} = e;
|
||||
const regionStr = [];
|
||||
const regionId = [];
|
||||
value.map((item) => {
|
||||
if (item) {
|
||||
regionStr.push(item.label);
|
||||
regionId.push(item.id);
|
||||
}
|
||||
});
|
||||
this.form.regionStr = regionStr;
|
||||
if (regionId && regionId.length !== 0) {
|
||||
this.form.countryId = regionId[0] ? regionId[0] : null;
|
||||
this.form.provinceId = regionId[1] ? regionId[1] : null;
|
||||
this.form.cityId = regionId[2] ? regionId[2] : null;
|
||||
this.form.areaId = regionId[3] ? regionId[3] : null;
|
||||
}
|
||||
this.regionShowCheck(false);
|
||||
},
|
||||
// 添加地址
|
||||
async addAddress() {
|
||||
const params = {
|
||||
...this.form
|
||||
};
|
||||
if (!params.name) {
|
||||
this.$refs.uToastRef.show({
|
||||
type: "error",
|
||||
message: "请输入收货人"
|
||||
});
|
||||
return;
|
||||
}
|
||||
if (!params.mobile) {
|
||||
this.$refs.uToastRef.show({
|
||||
type: "error",
|
||||
message: "请输入收货人手机号"
|
||||
});
|
||||
return;
|
||||
}
|
||||
if (!params.regionStr) {
|
||||
this.$refs.uToastRef.show({
|
||||
type: "error",
|
||||
message: "请选择所在地区"
|
||||
});
|
||||
return;
|
||||
}
|
||||
if (!params.address) {
|
||||
this.$refs.uToastRef.show({
|
||||
type: "error",
|
||||
message: "请输入详细地址"
|
||||
});
|
||||
return;
|
||||
}
|
||||
const selectAddress = this.selectAddress;
|
||||
if (selectAddress && selectAddress.id !== 0) {
|
||||
params.id = selectAddress.id;
|
||||
} else {
|
||||
delete params.id;
|
||||
}
|
||||
if (!params.areaId || params.areaId === 0) {
|
||||
delete params.areaId;
|
||||
}
|
||||
delete params.regionStr;
|
||||
const res = await api_address.editAddress(params);
|
||||
if (res && res.bizcode === 100) {
|
||||
const goodsParams = {
|
||||
...this.prizeForm,
|
||||
addressId: res.data
|
||||
};
|
||||
const goodsRes = await api_raffle.takeGoods(goodsParams);
|
||||
if (goodsRes && goodsRes.bizcode === 100) {
|
||||
this.$refs.uToastRef.show({
|
||||
type: "success",
|
||||
message: "领取成功"
|
||||
});
|
||||
setTimeout(() => {
|
||||
common_vendor.index.navigateTo({
|
||||
url: "/pages/mine_winning_record/mine_winning_record"
|
||||
});
|
||||
}, 1500);
|
||||
}
|
||||
}
|
||||
},
|
||||
// 地址类型
|
||||
checkAddressShow(status, type, addIndex, index) {
|
||||
this.addressShow = status;
|
||||
},
|
||||
// 地址选中
|
||||
getAddressValueFunc(item) {
|
||||
this.selectAddress = item;
|
||||
},
|
||||
// 地址选中OK
|
||||
addressOk() {
|
||||
const item = this.selectAddress;
|
||||
common_vendor.index.__f__("log", "at pages/get_prize/get_prize.vue:291", "item", item);
|
||||
this.form.name = item.name;
|
||||
this.form.mobile = item.phone;
|
||||
this.form.countryId = item.countryId;
|
||||
this.form.provinceId = item.provinceId;
|
||||
this.form.cityId = item.cityId;
|
||||
this.form.areaId = item.areaId;
|
||||
this.form.address = item.address;
|
||||
const regionStr = [];
|
||||
if (item.countryName) {
|
||||
regionStr.push(item.countryName);
|
||||
}
|
||||
if (item.provinceName) {
|
||||
regionStr.push(item.provinceName);
|
||||
}
|
||||
if (item.cityName) {
|
||||
regionStr.push(item.cityName);
|
||||
}
|
||||
if (item.areaName) {
|
||||
regionStr.push(item.areaName);
|
||||
}
|
||||
this.form.regionStr = regionStr;
|
||||
this.addressShow = false;
|
||||
}
|
||||
}
|
||||
};
|
||||
if (!Array) {
|
||||
const _easycom_up_input2 = common_vendor.resolveComponent("up-input");
|
||||
const _easycom_up_image2 = common_vendor.resolveComponent("up-image");
|
||||
const _easycom_up_textarea2 = common_vendor.resolveComponent("up-textarea");
|
||||
const _easycom_up_toast2 = common_vendor.resolveComponent("up-toast");
|
||||
const _easycom_up_picker2 = common_vendor.resolveComponent("up-picker");
|
||||
const _component_Address = common_vendor.resolveComponent("Address");
|
||||
const _easycom_up_popup2 = common_vendor.resolveComponent("up-popup");
|
||||
(_easycom_up_input2 + _easycom_up_image2 + _easycom_up_textarea2 + _easycom_up_toast2 + _easycom_up_picker2 + _component_Address + _easycom_up_popup2)();
|
||||
}
|
||||
const _easycom_up_input = () => "../../uni_modules/uview-plus/components/u-input/u-input.js";
|
||||
const _easycom_up_image = () => "../../uni_modules/uview-plus/components/u-image/u-image.js";
|
||||
const _easycom_up_textarea = () => "../../uni_modules/uview-plus/components/u-textarea/u-textarea.js";
|
||||
const _easycom_up_toast = () => "../../uni_modules/uview-plus/components/u-toast/u-toast.js";
|
||||
const _easycom_up_picker = () => "../../uni_modules/uview-plus/components/u-picker/u-picker.js";
|
||||
const _easycom_up_popup = () => "../../uni_modules/uview-plus/components/u-popup/u-popup.js";
|
||||
if (!Math) {
|
||||
(_easycom_up_input + _easycom_up_image + _easycom_up_textarea + _easycom_up_toast + _easycom_up_picker + _easycom_up_popup)();
|
||||
}
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return {
|
||||
a: common_vendor.o(($event) => $data.form.name = $event),
|
||||
b: common_vendor.p({
|
||||
placeholder: "收货人",
|
||||
border: "surround",
|
||||
customStyle: {
|
||||
"border": "0rpx"
|
||||
},
|
||||
modelValue: $data.form.name
|
||||
}),
|
||||
c: common_vendor.o(($event) => $data.form.mobile = $event),
|
||||
d: common_vendor.p({
|
||||
placeholder: "请填写收货人手机号",
|
||||
border: "surround",
|
||||
customStyle: {
|
||||
"border": "0rpx"
|
||||
},
|
||||
type: "number",
|
||||
modelValue: $data.form.mobile
|
||||
}),
|
||||
e: common_vendor.t($data.form.regionStr && $data.form.regionStr.join("/") || "所在地区"),
|
||||
f: common_vendor.p({
|
||||
src: "/static/common/right_soild.png",
|
||||
width: "14",
|
||||
height: "14",
|
||||
bgColor: "#f1f6ff00"
|
||||
}),
|
||||
g: common_vendor.o(($event) => $options.regionShowCheck(true)),
|
||||
h: common_vendor.o(($event) => $data.form.address = $event),
|
||||
i: common_vendor.p({
|
||||
placeholder: "门牌号、小区、楼栋号、单元室等",
|
||||
border: "surround",
|
||||
customStyle: {
|
||||
"border": "0rpx",
|
||||
"height": "100rpx"
|
||||
},
|
||||
modelValue: $data.form.address
|
||||
}),
|
||||
j: common_vendor.o(($event) => $data.prizeForm.remark = $event),
|
||||
k: common_vendor.p({
|
||||
placeholder: "请输入内容",
|
||||
modelValue: $data.prizeForm.remark
|
||||
}),
|
||||
l: common_vendor.o(($event) => $data.addressShow = true),
|
||||
m: common_vendor.o((...args) => $options.addAddress && $options.addAddress(...args)),
|
||||
n: common_vendor.sr("uToastRef", "7383e91f-5"),
|
||||
o: common_vendor.sr("uPickerRef", "7383e91f-6"),
|
||||
p: common_vendor.o($options.regionConfirm),
|
||||
q: common_vendor.o($options.regionChange),
|
||||
r: common_vendor.o(($event) => $data.regionShow = false),
|
||||
s: common_vendor.o(($event) => $data.regionShow = false),
|
||||
t: common_vendor.p({
|
||||
show: $data.regionShow,
|
||||
columns: $data.regionColumns,
|
||||
loading: $data.regionLoading,
|
||||
keyName: "label",
|
||||
itemHeight: "34"
|
||||
}),
|
||||
v: common_vendor.o($options.getAddressValueFunc),
|
||||
w: common_vendor.o((...args) => $options.addressOk && $options.addressOk(...args)),
|
||||
x: common_vendor.o(($event) => $options.checkAddressShow(false)),
|
||||
y: common_vendor.o(($event) => $data.addressShow = $event),
|
||||
z: common_vendor.p({
|
||||
round: 10,
|
||||
closeOnClickOverlay: false,
|
||||
closeable: true,
|
||||
safeAreaInsetBottom: false,
|
||||
show: $data.addressShow
|
||||
})
|
||||
};
|
||||
}
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/get_prize/get_prize.js.map
|
||||
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"navigationBarTitleText": "领取奖品",
|
||||
"navigationBarBackgroundColor": "#FFFFFF",
|
||||
"navigationBarTextStyle": "black",
|
||||
"enablePullDownRefresh": false,
|
||||
"navigationStyle": "default",
|
||||
"usingComponents": {
|
||||
"address": "../../components/address",
|
||||
"up-input": "../../uni_modules/uview-plus/components/u-input/u-input",
|
||||
"up-image": "../../uni_modules/uview-plus/components/u-image/u-image",
|
||||
"up-textarea": "../../uni_modules/uview-plus/components/u-textarea/u-textarea",
|
||||
"up-toast": "../../uni_modules/uview-plus/components/u-toast/u-toast",
|
||||
"up-picker": "../../uni_modules/uview-plus/components/u-picker/u-picker",
|
||||
"up-popup": "../../uni_modules/uview-plus/components/u-popup/u-popup"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<view class="get_prize_warp"><view class="address_add_warp"><view class="address_form"><view class="add_form_item add_form_item_but"><view class="add_form_title">收货人</view><up-input wx:if="{{b}}" u-i="7383e91f-0" bind:__l="__l" bindupdateModelValue="{{a}}" u-p="{{b}}"></up-input></view><view class="add_form_item add_form_item_but"><view class="add_form_title">手机号码</view><up-input wx:if="{{d}}" u-i="7383e91f-1" bind:__l="__l" bindupdateModelValue="{{c}}" u-p="{{d}}"></up-input></view><view class="add_form_item add_form_item_but"><view class="add_form_title">所在地区</view><view class="region_warp" bindtap="{{g}}"><view style="color:#808080;margin-left:22rpx;font-size:28rpx">{{e}}</view><up-image wx:if="{{f}}" u-i="7383e91f-2" bind:__l="__l" u-p="{{f}}"></up-image></view></view><view class="add_form_item"><view class="add_form_title">详细地址</view><up-input wx:if="{{i}}" u-i="7383e91f-3" bind:__l="__l" bindupdateModelValue="{{h}}" u-p="{{i}}"></up-input></view><view class="add_form_item"><view class="add_form_title">备注</view><up-textarea wx:if="{{k}}" u-i="7383e91f-4" bind:__l="__l" bindupdateModelValue="{{j}}" u-p="{{k}}"></up-textarea></view></view><view class="address_select"><view class="msg_">注:此收货地址会默认添加到地址列表</view><view class="address_" bindtap="{{l}}">使用收货地址</view></view><view class="add_but" bindtap="{{m}}"> 确认领取 </view><up-toast class="r" u-r="uToastRef" u-i="7383e91f-5" bind:__l="__l"></up-toast><up-picker wx:if="{{t}}" class="r" u-r="uPickerRef" bindconfirm="{{p}}" bindchange="{{q}}" bindcancel="{{r}}" bindclose="{{s}}" u-i="7383e91f-6" bind:__l="__l" u-p="{{t}}"></up-picker></view><up-popup wx:if="{{z}}" u-s="{{['d']}}" bindclose="{{x}}" u-i="7383e91f-7" bind:__l="__l" bindupdateShow="{{y}}" u-p="{{z}}"><view class="address_popup_warp"><view class="address_popup_title">收件地址</view><view class="address_popup_content"><address bindvalueFunc="{{v}}" u-i="7383e91f-8,7383e91f-7" bind:__l="__l"/></view><view class="popup_but" bindtap="{{w}}"> 确认 </view></view></up-popup></view>
|
||||
@@ -0,0 +1,42 @@
|
||||
/**
|
||||
* 这里是uni-app内置的常用样式变量
|
||||
*
|
||||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||||
*
|
||||
*/
|
||||
/* uni.scss */
|
||||
/**
|
||||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||||
*
|
||||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||||
*/
|
||||
/* 颜色变量 */
|
||||
/* 行为相关颜色 */
|
||||
/* 文字基本颜色 */
|
||||
/* 背景颜色 */
|
||||
/* 边框颜色 */
|
||||
/* 尺寸变量 */
|
||||
/* 文字尺寸 */
|
||||
/* 图片尺寸 */
|
||||
/* Border Radius */
|
||||
/* 水平间距 */
|
||||
/* 垂直间距 */
|
||||
.get_prize_warp {
|
||||
height: 100vh;
|
||||
background-color: #F5F5F5;
|
||||
}
|
||||
.address_select {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-top: 20rpx;
|
||||
}
|
||||
.address_select .msg_ {
|
||||
color: #BDBDBD;
|
||||
font-size: 24rpx;
|
||||
}
|
||||
.address_select .address_ {
|
||||
color: #03A9F4;
|
||||
font-size: 28rpx;
|
||||
}
|
||||
+154
@@ -0,0 +1,154 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const CommonCard = () => "../../components/common_card.js";
|
||||
const _sfc_main = {
|
||||
components: { CommonCard },
|
||||
data() {
|
||||
return {
|
||||
form: {
|
||||
name: "",
|
||||
// 店铺名称
|
||||
address: "",
|
||||
// 店铺地址
|
||||
name: null,
|
||||
mobile: null,
|
||||
number: null,
|
||||
bankOpening: null,
|
||||
// 开户银行
|
||||
bankNumber: null,
|
||||
// 银行卡号
|
||||
bankName: null,
|
||||
// 所属银行
|
||||
bankMobile: null
|
||||
// 银行预留手机号码
|
||||
},
|
||||
formList: [
|
||||
{
|
||||
id: 1,
|
||||
title: "真实姓名",
|
||||
formName: "name",
|
||||
placeholder: "请输入您的真实姓名",
|
||||
type: "text"
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "手机号",
|
||||
formName: "mobile",
|
||||
placeholder: "请输入手机号",
|
||||
type: "number"
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "证件号码",
|
||||
formName: "number",
|
||||
placeholder: "请输入证件号码",
|
||||
type: "text"
|
||||
}
|
||||
],
|
||||
inputCss: {
|
||||
"height": "80rpx",
|
||||
"border-radius": "30rpx",
|
||||
"border": "0rpx"
|
||||
},
|
||||
bankList: [
|
||||
{
|
||||
id: 1,
|
||||
title: "开户行",
|
||||
formName: "bankOpening",
|
||||
placeholder: "请输入开户行",
|
||||
type: "text"
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
title: "银行卡号",
|
||||
formName: "bankNumber",
|
||||
placeholder: "请输入银行卡号",
|
||||
type: "number"
|
||||
},
|
||||
{
|
||||
id: 3,
|
||||
title: "所属银行",
|
||||
formName: "bankName",
|
||||
placeholder: "请输入所属银行",
|
||||
type: "text"
|
||||
},
|
||||
{
|
||||
id: 4,
|
||||
title: "预留手机号",
|
||||
formName: "bankMobile",
|
||||
placeholder: "请输入银行预留手机号",
|
||||
type: "number"
|
||||
}
|
||||
]
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
// 确认提交
|
||||
addFun() {
|
||||
common_vendor.index.__f__("log", "at pages/merchant_settlement/merchant_settlement.vue:162", "确认提交....");
|
||||
}
|
||||
}
|
||||
};
|
||||
if (!Array) {
|
||||
const _easycom_up_input2 = common_vendor.resolveComponent("up-input");
|
||||
const _component_CommonCard = common_vendor.resolveComponent("CommonCard");
|
||||
(_easycom_up_input2 + _component_CommonCard)();
|
||||
}
|
||||
const _easycom_up_input = () => "../../uni_modules/uview-plus/components/u-input/u-input.js";
|
||||
if (!Math) {
|
||||
_easycom_up_input();
|
||||
}
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return {
|
||||
a: common_vendor.o(($event) => $data.form.name = $event),
|
||||
b: common_vendor.p({
|
||||
placeholder: "请输入店铺名称",
|
||||
clearable: true,
|
||||
border: "none",
|
||||
modelValue: $data.form.name
|
||||
}),
|
||||
c: common_vendor.o(($event) => $data.form.address = $event),
|
||||
d: common_vendor.p({
|
||||
placeholder: "请输入店铺名称",
|
||||
clearable: true,
|
||||
border: "none",
|
||||
modelValue: $data.form.address
|
||||
}),
|
||||
e: common_vendor.f($data.formList, (item, k0, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(item.title),
|
||||
b: "2001dd84-2-" + i0,
|
||||
c: common_vendor.o(($event) => $data.form[item.formName] = $event, item.id),
|
||||
d: common_vendor.p({
|
||||
placeholder: item.placeholder,
|
||||
border: "surround",
|
||||
customStyle: $data.inputCss,
|
||||
type: item.type,
|
||||
modelValue: $data.form[item.formName]
|
||||
}),
|
||||
e: common_vendor.n(item.id < $data.formList.length ? "add_form_item add_form_item_but" : "add_form_item"),
|
||||
f: item.id
|
||||
};
|
||||
}),
|
||||
f: common_vendor.f($data.bankList, (item, k0, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(item.title),
|
||||
b: "2001dd84-4-" + i0,
|
||||
c: common_vendor.o(($event) => $data.form[item.formName] = $event, item.id),
|
||||
d: common_vendor.p({
|
||||
placeholder: item.placeholder,
|
||||
border: "surround",
|
||||
customStyle: $data.inputCss,
|
||||
type: item.type,
|
||||
modelValue: $data.form[item.formName]
|
||||
}),
|
||||
e: common_vendor.n(item.id < $data.bankList.length ? "add_form_item add_form_item_but" : "add_form_item"),
|
||||
f: item.id
|
||||
};
|
||||
}),
|
||||
g: common_vendor.o((...args) => $options.addFun && $options.addFun(...args))
|
||||
};
|
||||
}
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-2001dd84"]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/merchant_settlement/merchant_settlement.js.map
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"navigationBarTitleText": "商家入驻",
|
||||
"navigationBarBackgroundColor": "#FFFFFF",
|
||||
"navigationBarTextStyle": "black",
|
||||
"enablePullDownRefresh": false,
|
||||
"navigationStyle": "default",
|
||||
"usingComponents": {
|
||||
"common-card": "../../components/common_card",
|
||||
"up-input": "../../uni_modules/uview-plus/components/u-input/u-input"
|
||||
}
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
<view class="merchant_settlement_warp data-v-2001dd84"><view class="card_comm data-v-2001dd84"><view class="title_ data-v-2001dd84">上传店铺LOGO</view><view class="msg_ data-v-2001dd84">上传店铺LOGO、品牌标志。</view><view class="upload_comm data-v-2001dd84"><view class="upload_msg_ data-v-2001dd84">上传LOGO</view></view></view><view class="card_comm card_hang_comm data-v-2001dd84"><view class="title_ data-v-2001dd84">店铺名称</view><up-input wx:if="{{b}}" class="data-v-2001dd84" u-i="2001dd84-0" bind:__l="__l" bindupdateModelValue="{{a}}" u-p="{{b}}"></up-input></view><view class="card_comm card_hang_comm data-v-2001dd84"><view class="title_ data-v-2001dd84">店铺地址</view><up-input wx:if="{{d}}" class="data-v-2001dd84" u-i="2001dd84-1" bind:__l="__l" bindupdateModelValue="{{c}}" u-p="{{d}}"></up-input></view><view class="card_comm data-v-2001dd84"><view class="title_ data-v-2001dd84">上传店铺环境照片</view><view class="msg_ data-v-2001dd84">上传店铺背景图片,用于装修店铺主页。</view><view class="upload_comm data-v-2001dd84"><view class="upload_msg_ data-v-2001dd84">上传照片</view></view></view><view class="card_comm data-v-2001dd84"><view class="title_ data-v-2001dd84">营业执照</view><view class="msg_ data-v-2001dd84">上传店铺营业执照</view><view class="business_license_upload_comm data-v-2001dd84"><view class="upload_msg_ data-v-2001dd84">上传营业执照</view></view></view><view class="data_common_warp data-v-2001dd84"><view class="data_msg data-v-2001dd84">请填写商户本人的相关信息</view><view wx:for="{{e}}" wx:for-item="item" wx:key="f" class="{{['data-v-2001dd84', item.e]}}"><view class="add_form_title data-v-2001dd84">{{item.a}}</view><up-input wx:if="{{item.d}}" class="data-v-2001dd84" u-i="{{item.b}}" bind:__l="__l" bindupdateModelValue="{{item.c}}" u-p="{{item.d}}"></up-input></view></view><common-card class="data-v-2001dd84" u-i="2001dd84-3" bind:__l="__l"/><view class="data_common_warp data-v-2001dd84"><view class="data_msg data-v-2001dd84">商户银行账户信息</view><view wx:for="{{f}}" wx:for-item="item" wx:key="f" class="{{['data-v-2001dd84', item.e]}}"><view class="add_form_title data-v-2001dd84">{{item.a}}</view><up-input wx:if="{{item.d}}" class="data-v-2001dd84" u-i="{{item.b}}" bind:__l="__l" bindupdateModelValue="{{item.c}}" u-p="{{item.d}}"></up-input></view></view><view class="add_but data-v-2001dd84" bindtap="{{g}}"> 提交 </view></view>
|
||||
+83
File diff suppressed because one or more lines are too long
@@ -0,0 +1,195 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const utils_index = require("../../utils/index.js");
|
||||
const api_common = require("../../api/common.js");
|
||||
const _sfc_main = {
|
||||
data() {
|
||||
return {
|
||||
localAppVersonName: null,
|
||||
localAppVerson: null,
|
||||
isNewVersion: false,
|
||||
// 是否需要跟新
|
||||
platformType: null,
|
||||
// 当前版本号
|
||||
updateApkObj: {},
|
||||
// 后台数据
|
||||
bannerShow: false,
|
||||
bannerPercentageShow: false,
|
||||
// 是否显示进度条
|
||||
bannerPercentage: 0
|
||||
// 进度条
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
const localAppVersonName = common_vendor.index.getStorageSync("version");
|
||||
if (localAppVersonName) {
|
||||
this.localAppVersonName = localAppVersonName;
|
||||
}
|
||||
const localAppVerson = common_vendor.index.getStorageSync("versionCode");
|
||||
if (localAppVerson) {
|
||||
this.localAppVerson = localAppVerson;
|
||||
}
|
||||
common_vendor.index.getStorageSync("platform");
|
||||
},
|
||||
methods: {
|
||||
/**
|
||||
* 检查最新的版本
|
||||
*/
|
||||
async checkVersion() {
|
||||
const params = {
|
||||
terminal: this.platformType,
|
||||
versionCode: this.localAppVerson
|
||||
};
|
||||
const res = await api_common.checkAppVersion(params);
|
||||
if (res && res.bizcode === 100) {
|
||||
const data = res.data || {};
|
||||
if (data && Object.keys(data).length !== 0 && utils_index.comparisonVersionHandler(this.localAppVerson, data.versionCode)) {
|
||||
this.isNewVersion = true;
|
||||
}
|
||||
this.updateApkObj = data;
|
||||
}
|
||||
},
|
||||
async getNewVersion() {
|
||||
const params = {
|
||||
terminal: this.platformType,
|
||||
versionCode: this.localAppVerson
|
||||
};
|
||||
const res = await api_common.checkAppVersion(params);
|
||||
if (res && res.bizcode === 100) {
|
||||
const data = res.data || {};
|
||||
if (data && Object.keys(data).length !== 0 && utils_index.comparisonVersionHandler(this.localAppVerson, data.versionCode)) {
|
||||
this.updateApkObj = data;
|
||||
this.isNewVersion = true;
|
||||
this.bannerShow = true;
|
||||
} else {
|
||||
this.$refs.uToastRef.show({
|
||||
type: "sesses",
|
||||
message: "当前已为最新版本~"
|
||||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
// 安装
|
||||
goUpdate(updateApkObj, platformType) {
|
||||
const self = this;
|
||||
if (platformType === "ANDROID") {
|
||||
var dtask = plus.downloader.createDownload(updateApkObj.downloadUrl, {}, function(d, status) {
|
||||
if (status == 200) {
|
||||
plus.runtime.install(plus.io.convertLocalFileSystemURL(d.filename), { force: true }, function(resp) {
|
||||
common_vendor.index.setStorageSync("versionUpdateTime", common_vendor.dayjs().valueOf());
|
||||
plus.runtime.restart();
|
||||
}, function(error) {
|
||||
common_vendor.index.__f__("log", "at pages/mine_about_us/mine_about_us.vue:140", "error", error);
|
||||
common_vendor.index.showToast({
|
||||
title: error.message,
|
||||
mask: false,
|
||||
duration: 1500
|
||||
});
|
||||
});
|
||||
} else {
|
||||
common_vendor.index.showToast({
|
||||
title: "更新失败",
|
||||
mask: false,
|
||||
duration: 1500
|
||||
});
|
||||
}
|
||||
});
|
||||
try {
|
||||
dtask.start();
|
||||
let prg = 0;
|
||||
self.bannerPercentageShow = true;
|
||||
dtask.addEventListener("statechanged", function(task, status) {
|
||||
switch (task.state) {
|
||||
case 1:
|
||||
break;
|
||||
case 2:
|
||||
break;
|
||||
case 3:
|
||||
prg = parseInt(parseFloat(task.downloadedSize) / parseFloat(task.totalSize) * 100);
|
||||
common_vendor.index.__f__("log", "at pages/mine_about_us/mine_about_us.vue:168", "prg", +prg);
|
||||
self.bannerPercentage = prg;
|
||||
break;
|
||||
case 4:
|
||||
plus.nativeUI.closeWaiting();
|
||||
self.bannerShow = false;
|
||||
break;
|
||||
}
|
||||
});
|
||||
} catch (err) {
|
||||
common_vendor.index.__f__("log", "at pages/mine_about_us/mine_about_us.vue:179", "更新失败-03err", err);
|
||||
plus.nativeUI.closeWaiting();
|
||||
common_vendor.index.showToast({
|
||||
title: "更新失败-03",
|
||||
mask: false,
|
||||
duration: 1500
|
||||
});
|
||||
}
|
||||
} else if (platformType === "IOS") {
|
||||
plus.runtime.openURL(updateApkObj.downloadUrl);
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
if (!Array) {
|
||||
const _easycom_up_image2 = common_vendor.resolveComponent("up-image");
|
||||
const _easycom_up_line_progress2 = common_vendor.resolveComponent("up-line-progress");
|
||||
const _easycom_up_overlay2 = common_vendor.resolveComponent("up-overlay");
|
||||
const _easycom_up_toast2 = common_vendor.resolveComponent("up-toast");
|
||||
(_easycom_up_image2 + _easycom_up_line_progress2 + _easycom_up_overlay2 + _easycom_up_toast2)();
|
||||
}
|
||||
const _easycom_up_image = () => "../../uni_modules/uview-plus/components/u-image/u-image.js";
|
||||
const _easycom_up_line_progress = () => "../../uni_modules/uview-plus/components/u-line-progress/u-line-progress.js";
|
||||
const _easycom_up_overlay = () => "../../uni_modules/uview-plus/components/u-overlay/u-overlay.js";
|
||||
const _easycom_up_toast = () => "../../uni_modules/uview-plus/components/u-toast/u-toast.js";
|
||||
if (!Math) {
|
||||
(_easycom_up_image + _easycom_up_line_progress + _easycom_up_overlay + _easycom_up_toast)();
|
||||
}
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return common_vendor.e({
|
||||
a: common_vendor.p({
|
||||
src: "/static/logo.png",
|
||||
width: "100",
|
||||
height: "100",
|
||||
bgColor: "#f1f6ff00",
|
||||
shape: "square",
|
||||
radius: "10"
|
||||
}),
|
||||
b: $data.isNewVersion
|
||||
}, $data.isNewVersion ? {} : {}, {
|
||||
c: common_vendor.p({
|
||||
src: "/static/common/right.png",
|
||||
width: "16",
|
||||
height: "16",
|
||||
bgColor: "#f1f6ff00"
|
||||
}),
|
||||
d: common_vendor.o((...args) => $options.getNewVersion && $options.getNewVersion(...args)),
|
||||
e: common_vendor.t($data.localAppVersonName),
|
||||
f: common_vendor.t($data.localAppVerson),
|
||||
g: common_vendor.t($data.updateApkObj.versionCode),
|
||||
h: common_vendor.t($data.updateApkObj.content),
|
||||
i: !$data.bannerPercentageShow
|
||||
}, !$data.bannerPercentageShow ? common_vendor.e({
|
||||
j: common_vendor.o(($event) => $options.goUpdate($data.updateApkObj, $data.platformType)),
|
||||
k: !$data.updateApkObj.isForce
|
||||
}, !$data.updateApkObj.isForce ? {
|
||||
l: common_vendor.o(($event) => {
|
||||
$data.bannerShow = false;
|
||||
})
|
||||
} : {}) : {
|
||||
m: common_vendor.p({
|
||||
percentage: $data.bannerPercentage,
|
||||
activeColor: "#009A4F"
|
||||
}),
|
||||
n: common_vendor.t($data.bannerPercentage)
|
||||
}, {
|
||||
o: common_vendor.o(() => {
|
||||
}),
|
||||
p: common_vendor.p({
|
||||
show: $data.bannerShow
|
||||
}),
|
||||
q: common_vendor.sr("uToastRef", "52ca5205-4")
|
||||
});
|
||||
}
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/mine_about_us/mine_about_us.js.map
|
||||
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"navigationBarTitleText": "关于我们",
|
||||
"navigationBarBackgroundColor": "#FFFFFF",
|
||||
"navigationBarTextStyle": "black",
|
||||
"enablePullDownRefresh": false,
|
||||
"navigationStyle": "default",
|
||||
"usingComponents": {
|
||||
"up-image": "../../uni_modules/uview-plus/components/u-image/u-image",
|
||||
"up-line-progress": "../../uni_modules/uview-plus/components/u-line-progress/u-line-progress",
|
||||
"up-overlay": "../../uni_modules/uview-plus/components/u-overlay/u-overlay",
|
||||
"up-toast": "../../uni_modules/uview-plus/components/u-toast/u-toast"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<view class="mine_about_us"><view class="about_us_image"><up-image wx:if="{{a}}" u-i="52ca5205-0" bind:__l="__l" u-p="{{a}}"></up-image><view class="msg_">德商汇优品</view></view><view class="content_"> 德商汇优品是一款集线上商城、线下联盟商家的DAO聚合商城;通过“有趣”“有利”“有希望”的卖货玩法,吸引消费者、推广者、商家、投资人参与生态,共同打造共创共享的全球产业生态。 </view><view class="version_"><view class="version_fg"></view><view class="version_item_" bindtap="{{d}}"><view class="title_">检查版本</view><view class="value_ check_version"><view wx:if="{{b}}" class="check_version_msg">发现新版本</view><view style="margin-top:14rpx"><up-image wx:if="{{c}}" u-i="52ca5205-1" bind:__l="__l" u-p="{{c}}"/></view></view></view><view class="version_fg"></view><view class="version_item_"><view class="title_">当前版本</view><view class="value_">v{{e}}.{{f}}</view></view></view><up-overlay wx:if="{{p}}" u-s="{{['d']}}" u-i="52ca5205-2" bind:__l="__l" u-p="{{p}}"><view class="up_content" catchtap="{{o}}"><view class="uni-banner"><view class="banner_box"><view class="title_">发现新版本</view><view class="version_"><view class="version_item">V{{g}}</view></view><view class="conter">{{h}}</view><view wx:if="{{i}}" class="banner_foot"><button bindtap="{{j}}" class="banner_foot_button">立即更新</button><view wx:if="{{k}}" bindtap="{{l}}" class="banner_foot_button_no">暂不更新</view></view><view wx:else><up-line-progress wx:if="{{m}}" u-i="52ca5205-3,52ca5205-2" bind:__l="__l" u-p="{{m}}"></up-line-progress><view class="banner_loading_msg"> 更新中{{n}}% </view></view></view></view></view></up-overlay><up-toast class="r" u-r="uToastRef" u-i="52ca5205-4" bind:__l="__l"></up-toast></view>
|
||||
@@ -0,0 +1,71 @@
|
||||
/**
|
||||
* 这里是uni-app内置的常用样式变量
|
||||
*
|
||||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||||
*
|
||||
*/
|
||||
/* uni.scss */
|
||||
/**
|
||||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||||
*
|
||||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||||
*/
|
||||
/* 颜色变量 */
|
||||
/* 行为相关颜色 */
|
||||
/* 文字基本颜色 */
|
||||
/* 背景颜色 */
|
||||
/* 边框颜色 */
|
||||
/* 尺寸变量 */
|
||||
/* 文字尺寸 */
|
||||
/* 图片尺寸 */
|
||||
/* Border Radius */
|
||||
/* 水平间距 */
|
||||
/* 垂直间距 */
|
||||
.mine_about_us {
|
||||
background-color: #F5F5F5;
|
||||
padding: 30rpx;
|
||||
height: calc(100% - 60rpx);
|
||||
overflow: auto;
|
||||
}
|
||||
.mine_about_us .about_us_image {
|
||||
display: grid;
|
||||
justify-content: center;
|
||||
margin-top: 100rpx;
|
||||
}
|
||||
.mine_about_us .about_us_image .msg_ {
|
||||
text-align: center;
|
||||
margin-top: 20rpx;
|
||||
font-size: 31rpx;
|
||||
color: rgba(0, 0, 0, 0.85);
|
||||
}
|
||||
.mine_about_us .content_ {
|
||||
padding: 60rpx 0;
|
||||
}
|
||||
.mine_about_us .version_ {
|
||||
margin-top: 20rpx;
|
||||
}
|
||||
.mine_about_us .version_ .version_fg {
|
||||
width: 100%;
|
||||
border-bottom: 1rpx solid rgba(0, 0, 0, 0.16);
|
||||
}
|
||||
.mine_about_us .version_ .version_item_ {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
font-size: 28rpx;
|
||||
line-height: 80rpx;
|
||||
}
|
||||
.mine_about_us .version_ .title_ {
|
||||
color: rgba(0, 0, 0, 0.85);
|
||||
}
|
||||
.mine_about_us .version_ .value_ {
|
||||
color: rgba(0, 0, 0, 0.26);
|
||||
}
|
||||
.mine_about_us .version_ .check_version {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.mine_about_us .version_ .check_version_msg {
|
||||
color: #FF7C41;
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const _sfc_main = {
|
||||
data() {
|
||||
return {};
|
||||
}
|
||||
};
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return {};
|
||||
}
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/mine_collection_alipay/mine_collection_alipay.js.map
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"navigationBarTitleText": "",
|
||||
"usingComponents": {}
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
<view></view>
|
||||
@@ -0,0 +1,61 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const _sfc_main = {
|
||||
data() {
|
||||
return {
|
||||
selectType: 0,
|
||||
// 0:待使用,1:已使用,2:已过期
|
||||
tabList: [
|
||||
{
|
||||
id: 0,
|
||||
name: "全部"
|
||||
},
|
||||
{
|
||||
id: 1,
|
||||
name: "优惠卷"
|
||||
},
|
||||
{
|
||||
id: 2,
|
||||
name: "平台"
|
||||
}
|
||||
],
|
||||
selTab: 0
|
||||
//
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
checkType(tab) {
|
||||
this.selectType = tab;
|
||||
},
|
||||
jumpTab(item) {
|
||||
this.selTab = item.id;
|
||||
}
|
||||
}
|
||||
};
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return common_vendor.e({
|
||||
a: $data.selectType === 0
|
||||
}, $data.selectType === 0 ? {} : {}, {
|
||||
b: common_vendor.n($data.selectType === 0 ? "tab_item tab_item_sel" : "tab_item"),
|
||||
c: common_vendor.o(($event) => $options.checkType(0)),
|
||||
d: $data.selectType === 1
|
||||
}, $data.selectType === 1 ? {} : {}, {
|
||||
e: common_vendor.n($data.selectType === 1 ? "tab_item tab_item_sel" : "tab_item"),
|
||||
f: common_vendor.o(($event) => $options.checkType(1)),
|
||||
g: $data.selectType === 2
|
||||
}, $data.selectType === 2 ? {} : {}, {
|
||||
h: common_vendor.n($data.selectType === 2 ? "tab_item tab_item_sel" : "tab_item"),
|
||||
i: common_vendor.o(($event) => $options.checkType(2)),
|
||||
j: common_vendor.f($data.tabList, (item, k0, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(item.name),
|
||||
b: item.id,
|
||||
c: common_vendor.n($data.selTab === item.id ? "tab_item tab_item_sel" : "tab_item"),
|
||||
d: common_vendor.o(($event) => $options.jumpTab(item), item.id)
|
||||
};
|
||||
})
|
||||
});
|
||||
}
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/mine_coupon/mine_coupon.js.map
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"navigationBarTitleText": "优惠卷",
|
||||
"navigationBarBackgroundColor": "#FFFFFF",
|
||||
"navigationBarTextStyle": "black",
|
||||
"enablePullDownRefresh": false,
|
||||
"navigationStyle": "default",
|
||||
"usingComponents": {}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<view class="mine_coupon"><view class="tab_header"><view class="{{b}}" bindtap="{{c}}"><view>待使用</view><view wx:if="{{a}}" class="tab_item_but"></view></view><view class="{{e}}" bindtap="{{f}}"><view>已使用</view><view wx:if="{{d}}" class="tab_item_but"></view></view><view class="{{h}}" bindtap="{{i}}"><view>已过期</view><view wx:if="{{g}}" class="tab_item_but"></view></view></view><view class="tab_content"><view class="tab_list"><view wx:for="{{j}}" wx:for-item="item" wx:key="b" class="{{item.c}}" bindtap="{{item.d}}">{{item.a}}</view></view><view class="tab_list_content"><view class="tab_list_content_item"><view class="left_"><view class="title">玩具乐器部分商品</view><view class="time">2025.03.01-2025.04.31</view></view><view class="right_"><view class="amount_"><text>¥</text><text style="font-size:70rpx">20</text></view><view class="max_out">满¥59使用</view><view class="use_but">立即使用</view></view></view></view></view></view>
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,299 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const api_team = require("../../api/team.js");
|
||||
const utils_index = require("../../utils/index.js");
|
||||
const utils_enumUtils = require("../../utils/enumUtils.js");
|
||||
const utils_auth = require("../../utils/auth.js");
|
||||
const api_auth = require("../../api/auth.js");
|
||||
const _sfc_main = {
|
||||
computed: {
|
||||
BALANCE_TYPE() {
|
||||
return utils_enumUtils.BALANCE_TYPE;
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
royaltyForm: {
|
||||
page: 1,
|
||||
pageSize: 15,
|
||||
category: null
|
||||
},
|
||||
royaltyList: [],
|
||||
// 提成来源
|
||||
royaltyLoading: false,
|
||||
currencyShow: false,
|
||||
currencyColumns: [],
|
||||
currencyLoading: false,
|
||||
performanceData: {},
|
||||
selAcctCategory: {},
|
||||
// 选择的账户
|
||||
rewardSummary: {},
|
||||
// 提成统计
|
||||
openTeamShow: false,
|
||||
// 团队业绩的提示
|
||||
openTcShow: false,
|
||||
// 提成统计
|
||||
userData: {}
|
||||
// 当前登录对象
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
this.getUserInfo();
|
||||
this.getPerformance();
|
||||
this.getAcctCategory();
|
||||
},
|
||||
methods: {
|
||||
formatDate: utils_index.formatDate,
|
||||
getValue: utils_enumUtils.getValue,
|
||||
jumpMine() {
|
||||
common_vendor.index.switchTab({
|
||||
// 首页
|
||||
url: "/pages/mine/mine"
|
||||
});
|
||||
},
|
||||
jumpMyTeam() {
|
||||
utils_auth.getStorageFun(utils_auth.USER_DATA);
|
||||
common_vendor.index.navigateTo({
|
||||
url: "/pages/mine_my_team_list/mine_my_team_list"
|
||||
});
|
||||
},
|
||||
// 查询用户信息
|
||||
async getUserInfo() {
|
||||
const result = await api_auth.getUserInfo();
|
||||
if (result && result.bizcode === 100) {
|
||||
result.data;
|
||||
this.userData = result.data || {};
|
||||
}
|
||||
},
|
||||
// 查询团队业绩
|
||||
async getPerformance() {
|
||||
const resp = await api_team.getPerformance();
|
||||
if (resp && resp.bizcode === 100) {
|
||||
this.performanceData = resp.data;
|
||||
}
|
||||
},
|
||||
// 查询账户类型
|
||||
async getAcctCategory() {
|
||||
const resp = await api_team.getAcctCategory();
|
||||
if (resp && resp.bizcode === 100) {
|
||||
const data = resp.data || [];
|
||||
this.currencyColumns = [data];
|
||||
if (data && data.length !== 0) {
|
||||
this.selAcctCategory = data[0];
|
||||
this.royaltyForm.category = data[0].key;
|
||||
this.getRewardSummary();
|
||||
this.loadData();
|
||||
}
|
||||
}
|
||||
},
|
||||
// 选择地址的弹框
|
||||
currencyShowCheck(status) {
|
||||
this.currencyShow = status;
|
||||
},
|
||||
// 提交地址
|
||||
currencyConfirm(e) {
|
||||
const {
|
||||
columnIndex,
|
||||
value,
|
||||
values,
|
||||
index
|
||||
} = e;
|
||||
const data = value[0];
|
||||
this.royaltyList = [];
|
||||
this.royaltyForm.page = 1;
|
||||
this.selAcctCategory = data;
|
||||
this.royaltyForm.category = data.key;
|
||||
this.getRewardSummary();
|
||||
this.loadData();
|
||||
this.currencyShowCheck(false);
|
||||
},
|
||||
// 查询提成概括
|
||||
async getRewardSummary() {
|
||||
const params = {
|
||||
category: this.royaltyForm.category
|
||||
};
|
||||
const resp = await api_team.getRewardSummary(params);
|
||||
if (resp && resp.bizcode === 100) {
|
||||
this.rewardSummary = resp.data || [];
|
||||
}
|
||||
},
|
||||
// 加载数据的方法
|
||||
async loadData() {
|
||||
if (this.royaltyLoading)
|
||||
return;
|
||||
this.royaltyLoading = true;
|
||||
try {
|
||||
const newData = await this.fetchData();
|
||||
if (newData.entitys && newData.entitys.length !== 0) {
|
||||
this.royaltyList = [...this.royaltyList, ...newData.entitys];
|
||||
this.royaltyForm.page++;
|
||||
}
|
||||
} catch (error) {
|
||||
common_vendor.index.__f__("error", "at pages/mine_my_team/mine_my_team.vue:306", "加载数据失败:", error);
|
||||
} finally {
|
||||
this.royaltyLoading = false;
|
||||
}
|
||||
},
|
||||
// 模拟获取数据的方法,实际应用中应该替换为你的数据获取逻辑,例如从服务器获取数据
|
||||
async fetchData() {
|
||||
const params = {
|
||||
...this.royaltyForm
|
||||
};
|
||||
const data = await api_team.getRewardSummaryRecord(params);
|
||||
if (data && data.bizcode === 100 && data.data) {
|
||||
return data.data;
|
||||
} else {
|
||||
return [];
|
||||
}
|
||||
},
|
||||
// 当滚动到底部时触发的方法
|
||||
loadMore() {
|
||||
this.loadData();
|
||||
}
|
||||
}
|
||||
};
|
||||
if (!Array) {
|
||||
const _easycom_up_image2 = common_vendor.resolveComponent("up-image");
|
||||
const _easycom_up_picker2 = common_vendor.resolveComponent("up-picker");
|
||||
const _easycom_up_modal2 = common_vendor.resolveComponent("up-modal");
|
||||
(_easycom_up_image2 + _easycom_up_picker2 + _easycom_up_modal2)();
|
||||
}
|
||||
const _easycom_up_image = () => "../../uni_modules/uview-plus/components/u-image/u-image.js";
|
||||
const _easycom_up_picker = () => "../../uni_modules/uview-plus/components/u-picker/u-picker.js";
|
||||
const _easycom_up_modal = () => "../../uni_modules/uview-plus/components/u-modal/u-modal.js";
|
||||
if (!Math) {
|
||||
(_easycom_up_image + _easycom_up_picker + _easycom_up_modal)();
|
||||
}
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return common_vendor.e({
|
||||
a: common_vendor.o($options.jumpMine),
|
||||
b: common_vendor.p({
|
||||
src: "/static/common/left_b.png",
|
||||
width: "18",
|
||||
height: "20",
|
||||
bgColor: "#f1f6ff00"
|
||||
}),
|
||||
c: common_vendor.p({
|
||||
src: "/static/logo_y.png",
|
||||
width: "50",
|
||||
height: "50",
|
||||
bgColor: "#f1f6ff00",
|
||||
shape: "circle"
|
||||
}),
|
||||
d: common_vendor.t($data.userData.name || "三荣优品用户"),
|
||||
e: common_vendor.t($data.userData.gradeName),
|
||||
f: $data.performanceData && $data.performanceData.seniorId
|
||||
}, $data.performanceData && $data.performanceData.seniorId ? {
|
||||
g: common_vendor.t($data.performanceData.seniorId || 0)
|
||||
} : {}, {
|
||||
h: common_vendor.t($data.performanceData && $data.performanceData.teamCount || 0),
|
||||
i: common_vendor.p({
|
||||
src: "/static/common/right.png",
|
||||
width: "16",
|
||||
height: "16",
|
||||
bgColor: "#f1f6ff00"
|
||||
}),
|
||||
j: common_vendor.o((...args) => $options.jumpMyTeam && $options.jumpMyTeam(...args)),
|
||||
k: common_vendor.o(($event) => {
|
||||
$data.openTeamShow = true;
|
||||
}),
|
||||
l: common_vendor.p({
|
||||
src: "/static/common/tips.png",
|
||||
width: "16",
|
||||
height: "16",
|
||||
bgColor: "#f1f6ff00"
|
||||
}),
|
||||
m: common_vendor.t($data.performanceData && $data.performanceData.teamAmount || 0),
|
||||
n: common_vendor.t($data.performanceData && $data.performanceData.teamNum || 0),
|
||||
o: common_vendor.t($data.performanceData && $data.performanceData.myAmount || 0),
|
||||
p: common_vendor.t($data.performanceData && $data.performanceData.myNum || 0),
|
||||
q: common_vendor.t($data.selAcctCategory && Object.keys($data.selAcctCategory).length !== 0 ? $data.selAcctCategory.value : "请选择"),
|
||||
r: common_vendor.p({
|
||||
src: "/static/common/right.png",
|
||||
width: "16",
|
||||
height: "16",
|
||||
bgColor: "#f1f6ff00"
|
||||
}),
|
||||
s: common_vendor.o(($event) => $options.currencyShowCheck(true)),
|
||||
t: common_vendor.o(($event) => {
|
||||
$data.openTcShow = true;
|
||||
}),
|
||||
v: common_vendor.p({
|
||||
src: "/static/common/tips.png",
|
||||
width: "16",
|
||||
height: "16",
|
||||
bgColor: "#f1f6ff00"
|
||||
}),
|
||||
w: common_vendor.t($data.rewardSummary && $data.rewardSummary.todayAmount || 0),
|
||||
x: common_vendor.t($data.rewardSummary && $data.rewardSummary.unSettleAmount || 0),
|
||||
y: common_vendor.t($data.rewardSummary && $data.rewardSummary.settleAmount || 0),
|
||||
z: $data.royaltyList && $data.royaltyList.length !== 0
|
||||
}, $data.royaltyList && $data.royaltyList.length !== 0 ? {
|
||||
A: common_vendor.f($data.royaltyList, (item, index, i0) => {
|
||||
return {
|
||||
a: common_vendor.t($options.getValue($options.BALANCE_TYPE, item.bizType)),
|
||||
b: common_vendor.t($options.formatDate(item.ctdate)),
|
||||
c: common_vendor.t(item.amount),
|
||||
d: common_vendor.t(item.status ? "已结算" : "未结算"),
|
||||
e: index
|
||||
};
|
||||
})
|
||||
} : {
|
||||
B: common_vendor.p({
|
||||
src: "/static/common/not_order.png",
|
||||
width: "80",
|
||||
height: "80",
|
||||
bgColor: "#f1f6ff00"
|
||||
})
|
||||
}, {
|
||||
C: $data.royaltyLoading
|
||||
}, $data.royaltyLoading ? {} : {}, {
|
||||
D: common_vendor.o((...args) => $options.loadMore && $options.loadMore(...args)),
|
||||
E: common_vendor.sr("uPickerRef", "4dcaa8a8-7"),
|
||||
F: common_vendor.o($options.currencyConfirm),
|
||||
G: common_vendor.o(($event) => $data.currencyShow = false),
|
||||
H: common_vendor.o(($event) => $data.currencyShow = false),
|
||||
I: common_vendor.p({
|
||||
show: $data.currencyShow,
|
||||
columns: $data.currencyColumns,
|
||||
loading: $data.currencyLoading,
|
||||
keyName: "value",
|
||||
itemHeight: "34"
|
||||
}),
|
||||
J: common_vendor.p({
|
||||
src: "/static/common/close.png",
|
||||
width: "20",
|
||||
height: "20",
|
||||
bgColor: "#f1f6ff00"
|
||||
}),
|
||||
K: common_vendor.o(($event) => {
|
||||
$data.openTeamShow = false;
|
||||
}),
|
||||
L: common_vendor.o(($event) => {
|
||||
$data.openTeamShow = false;
|
||||
}),
|
||||
M: common_vendor.p({
|
||||
show: $data.openTeamShow,
|
||||
showConfirmButton: false
|
||||
}),
|
||||
N: common_vendor.p({
|
||||
src: "/static/common/close.png",
|
||||
width: "20",
|
||||
height: "20",
|
||||
bgColor: "#f1f6ff00"
|
||||
}),
|
||||
O: common_vendor.o(($event) => {
|
||||
$data.openTcShow = false;
|
||||
}),
|
||||
P: common_vendor.o(($event) => {
|
||||
$data.openTcShow = false;
|
||||
}),
|
||||
Q: common_vendor.p({
|
||||
show: $data.openTcShow,
|
||||
showConfirmButton: false
|
||||
})
|
||||
});
|
||||
}
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-4dcaa8a8"]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/mine_my_team/mine_my_team.js.map
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {
|
||||
"up-image": "../../uni_modules/uview-plus/components/u-image/u-image",
|
||||
"up-picker": "../../uni_modules/uview-plus/components/u-picker/u-picker",
|
||||
"up-modal": "../../uni_modules/uview-plus/components/u-modal/u-modal"
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,182 @@
|
||||
/**
|
||||
* 这里是uni-app内置的常用样式变量
|
||||
*
|
||||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||||
*
|
||||
*/
|
||||
/* uni.scss */
|
||||
/**
|
||||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||||
*
|
||||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||||
*/
|
||||
/* 颜色变量 */
|
||||
/* 行为相关颜色 */
|
||||
/* 文字基本颜色 */
|
||||
/* 背景颜色 */
|
||||
/* 边框颜色 */
|
||||
/* 尺寸变量 */
|
||||
/* 文字尺寸 */
|
||||
/* 图片尺寸 */
|
||||
/* Border Radius */
|
||||
/* 水平间距 */
|
||||
/* 垂直间距 */
|
||||
.my_team_warp.data-v-4dcaa8a8 {
|
||||
background-color: #FF7C41;
|
||||
height: calc(100vh - 144rpx);
|
||||
overflow: hidden;
|
||||
padding: 114rpx 30rpx 30rpx;
|
||||
}
|
||||
.my_team_warp .header_.data-v-4dcaa8a8 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.my_team_warp .title_.data-v-4dcaa8a8 {
|
||||
font-weight: bold;
|
||||
font-size: 36rpx;
|
||||
color: #FFFFFF;
|
||||
margin-left: 20rpx;
|
||||
}
|
||||
.my_team_warp .my_info.data-v-4dcaa8a8 {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
color: #FFFFFF;
|
||||
margin-top: 30rpx;
|
||||
}
|
||||
.my_team_warp .my_info .left_.data-v-4dcaa8a8 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.my_team_warp .my_info .left_msg.data-v-4dcaa8a8 {
|
||||
margin-left: 10rpx;
|
||||
font-weight: bold;
|
||||
font-size: 28rpx;
|
||||
color: #FFFFFF;
|
||||
}
|
||||
.my_team_warp .my_info .left_msg_title.data-v-4dcaa8a8 {
|
||||
font-weight: 400;
|
||||
font-size: 24rpx;
|
||||
color: #FFFFFF;
|
||||
margin-top: 10rpx;
|
||||
}
|
||||
.my_team_warp .my_info .right_.data-v-4dcaa8a8 {
|
||||
font-size: 23rpx;
|
||||
color: rgba(255, 255, 255, 0.9);
|
||||
line-height: 33rpx;
|
||||
}
|
||||
.my_team_warp .card_comm.data-v-4dcaa8a8 {
|
||||
background: #FFFFFF;
|
||||
border-radius: 30rpx;
|
||||
padding: 30rpx;
|
||||
margin-top: 20rpx;
|
||||
}
|
||||
.my_team_warp .card_title_comm.data-v-4dcaa8a8 {
|
||||
font-weight: bold;
|
||||
font-size: 32rpx;
|
||||
color: #111111;
|
||||
}
|
||||
.my_team_warp .card_title_comm2.data-v-4dcaa8a8 {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.my_team_warp .card_fg_comm.data-v-4dcaa8a8 {
|
||||
height: 10rpx;
|
||||
background: #EEEEEE;
|
||||
width: 100%;
|
||||
}
|
||||
.my_team_warp .title_comm.data-v-4dcaa8a8 {
|
||||
font-weight: bold;
|
||||
font-size: 28rpx;
|
||||
color: #111111;
|
||||
}
|
||||
.my_team_warp .fg_comm.data-v-4dcaa8a8 {
|
||||
width: 1rpx;
|
||||
height: 40rpx;
|
||||
background: #EEEEEE;
|
||||
}
|
||||
.my_team_warp .data_comm.data-v-4dcaa8a8 {
|
||||
font-size: 24rpx;
|
||||
color: #999999;
|
||||
margin-top: 10rpx;
|
||||
}
|
||||
.my_team_warp .card_item_comm.data-v-4dcaa8a8 {
|
||||
padding: 30rpx;
|
||||
}
|
||||
.my_team_warp .my_team.data-v-4dcaa8a8 {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.my_team_warp .my_team .my_team_count.data-v-4dcaa8a8 {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.my_team_warp .performance.data-v-4dcaa8a8 {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-top: 20rpx;
|
||||
}
|
||||
.my_team_warp .performance .performance_item.data-v-4dcaa8a8 {
|
||||
width: 24%;
|
||||
text-align: center;
|
||||
}
|
||||
.my_team_warp .royalty_warp.data-v-4dcaa8a8 {
|
||||
border-radius: 30rpx;
|
||||
margin-top: 20rpx;
|
||||
background: #FFFFFF;
|
||||
}
|
||||
.my_team_warp .royalty_warp .amount_item.data-v-4dcaa8a8 {
|
||||
width: 30%;
|
||||
text-align: center;
|
||||
}
|
||||
.my_team_warp .royalty_warp .amount_fg.data-v-4dcaa8a8 {
|
||||
width: 100%;
|
||||
height: 1rpx;
|
||||
background: #EEEEEE;
|
||||
border-radius: 1rpx;
|
||||
margin: 20rpx 0;
|
||||
}
|
||||
.my_team_warp .royalty_list.data-v-4dcaa8a8 {
|
||||
margin-top: 20rpx;
|
||||
}
|
||||
.my_team_warp .royalty_list .royalty_item.data-v-4dcaa8a8 {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
background: #F5F5F5;
|
||||
border-radius: 20rpx;
|
||||
padding: 20rpx;
|
||||
margin-bottom: 20rpx;
|
||||
}
|
||||
.my_team_warp .royalty_list .royalty_title_.data-v-4dcaa8a8 {
|
||||
font-weight: bold;
|
||||
font-size: 28rpx;
|
||||
color: #111111;
|
||||
}
|
||||
.my_team_warp .royalty_list .royalty_title_amount.data-v-4dcaa8a8 {
|
||||
color: #FF7C41;
|
||||
}
|
||||
.my_team_warp .royalty_list .royalty_data_.data-v-4dcaa8a8 {
|
||||
font-size: 24rpx;
|
||||
color: #999999;
|
||||
margin-top: 10rpx;
|
||||
}
|
||||
.my_team_warp .content_1.data-v-4dcaa8a8 {
|
||||
margin-bottom: 40rpx;
|
||||
}
|
||||
.my_team_warp .content_2.data-v-4dcaa8a8 {
|
||||
text-align: left;
|
||||
margin-top: 10rpx;
|
||||
}
|
||||
.commission_count.data-v-4dcaa8a8 {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
background: rgba(0, 0, 0, 0.06);
|
||||
border-radius: 8rpx;
|
||||
padding: 16rpx 10rpx 16rpx 26rpx;
|
||||
margin-top: 20rpx;
|
||||
font-size: 27rpx;
|
||||
color: rgba(0, 0, 0, 0.4);
|
||||
line-height: 38rpx;
|
||||
}
|
||||
@@ -0,0 +1,184 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const api_team = require("../../api/team.js");
|
||||
const utils_index = require("../../utils/index.js");
|
||||
const Header = () => "../../components/header.js";
|
||||
const _sfc_main = {
|
||||
components: { Header },
|
||||
data() {
|
||||
return {
|
||||
form: {
|
||||
userId: 0,
|
||||
page: 1,
|
||||
pageSize: 15
|
||||
},
|
||||
loading: false,
|
||||
listData: [],
|
||||
juniorSummaryData: {},
|
||||
// 统计
|
||||
leftPath: "/pages/mine_my_team_list/mine_my_team_list",
|
||||
openTcShow: false
|
||||
};
|
||||
},
|
||||
onLoad(option) {
|
||||
const id = option.id;
|
||||
if (id && id !== "null") {
|
||||
this.form.userId = id;
|
||||
} else {
|
||||
this.leftPath = "/pages/mine_my_team/mine_my_team";
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.loadData();
|
||||
this.getJuniorSummary();
|
||||
},
|
||||
methods: {
|
||||
formatDate: utils_index.formatDate,
|
||||
jumpNextLevel(item) {
|
||||
const path = "/pages/mine_my_team_list/mine_my_team_list?id=" + item.userId;
|
||||
this.leftPath = path;
|
||||
common_vendor.index.navigateTo({
|
||||
url: path
|
||||
});
|
||||
},
|
||||
/**
|
||||
* 查询统计数据
|
||||
*/
|
||||
async getJuniorSummary() {
|
||||
const resp = await api_team.getJuniorSummary();
|
||||
common_vendor.index.__f__("log", "at pages/mine_my_team_list/mine_my_team_list.vue:130", "getJuniorSummary", resp);
|
||||
if (resp && resp.bizcode === 100) {
|
||||
this.juniorSummaryData = resp.data;
|
||||
}
|
||||
},
|
||||
// 加载数据的方法
|
||||
async loadData() {
|
||||
if (this.loading)
|
||||
return;
|
||||
this.loading = true;
|
||||
try {
|
||||
const newData = await this.fetchData();
|
||||
if (newData.entitys && newData.entitys.length !== 0) {
|
||||
this.listData = [...this.listData, ...newData.entitys];
|
||||
this.form.page++;
|
||||
}
|
||||
} catch (error) {
|
||||
common_vendor.index.__f__("error", "at pages/mine_my_team_list/mine_my_team_list.vue:148", "加载数据失败:", error);
|
||||
} finally {
|
||||
this.loading = false;
|
||||
}
|
||||
},
|
||||
// 模拟获取数据的方法,实际应用中应该替换为你的数据获取逻辑,例如从服务器获取数据
|
||||
async fetchData() {
|
||||
const params = {
|
||||
...this.form
|
||||
};
|
||||
const data = await api_team.getCascadeJunior(params);
|
||||
if (data && data.bizcode === 100 && data.data) {
|
||||
return data.data;
|
||||
} else {
|
||||
return [];
|
||||
}
|
||||
},
|
||||
// 当滚动到底部时触发的方法
|
||||
loadMore() {
|
||||
this.loadData();
|
||||
}
|
||||
}
|
||||
};
|
||||
if (!Array) {
|
||||
const _component_Header = common_vendor.resolveComponent("Header");
|
||||
const _easycom_up_image2 = common_vendor.resolveComponent("up-image");
|
||||
const _easycom_up_modal2 = common_vendor.resolveComponent("up-modal");
|
||||
(_component_Header + _easycom_up_image2 + _easycom_up_modal2)();
|
||||
}
|
||||
const _easycom_up_image = () => "../../uni_modules/uview-plus/components/u-image/u-image.js";
|
||||
const _easycom_up_modal = () => "../../uni_modules/uview-plus/components/u-modal/u-modal.js";
|
||||
if (!Math) {
|
||||
(_easycom_up_image + _easycom_up_modal)();
|
||||
}
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return common_vendor.e({
|
||||
a: common_vendor.p({
|
||||
leftTitle: _ctx.$t("mine.my.team.title"),
|
||||
["left-path-type"]: "navigateTo",
|
||||
leftPath: $data.leftPath
|
||||
}),
|
||||
b: common_vendor.t($data.juniorSummaryData && $data.juniorSummaryData.teamAmount || 0),
|
||||
c: common_vendor.t($data.juniorSummaryData && $data.juniorSummaryData.teamCount || 0),
|
||||
d: common_vendor.t($data.juniorSummaryData && $data.juniorSummaryData.ztCount || 0),
|
||||
e: common_vendor.t($data.juniorSummaryData && $data.juniorSummaryData.jtCount || 0),
|
||||
f: $data.form.userId
|
||||
}, $data.form.userId ? {
|
||||
g: common_vendor.t($data.form.userId)
|
||||
} : {}, {
|
||||
h: common_vendor.o(($event) => {
|
||||
$data.openTcShow = true;
|
||||
}),
|
||||
i: common_vendor.p({
|
||||
src: "/static/common/tips_b.png",
|
||||
width: "20",
|
||||
height: "20",
|
||||
bgColor: "#f1f6ff00"
|
||||
}),
|
||||
j: $data.listData && $data.listData.length
|
||||
}, $data.listData && $data.listData.length ? {
|
||||
k: common_vendor.f($data.listData, (item, index, i0) => {
|
||||
return {
|
||||
a: "9f12fd33-2-" + i0,
|
||||
b: common_vendor.p({
|
||||
src: item.userUrl || "/static/logo.png",
|
||||
width: "50",
|
||||
height: "50",
|
||||
bgColor: "#f1f6ff00",
|
||||
shape: "circle",
|
||||
radius: "16"
|
||||
}),
|
||||
c: common_vendor.t(item.userName || "三荣优品用户"),
|
||||
d: common_vendor.t(item.gradeName),
|
||||
e: common_vendor.t(item.userId),
|
||||
f: common_vendor.t($options.formatDate(item.registTime)),
|
||||
g: "9f12fd33-3-" + i0,
|
||||
h: common_vendor.o(($event) => $options.jumpNextLevel(item), item.id),
|
||||
i: item.id
|
||||
};
|
||||
}),
|
||||
l: common_vendor.p({
|
||||
src: "/static/common/right_x.png",
|
||||
width: "20",
|
||||
height: "20",
|
||||
bgColor: "#f1f6ff00",
|
||||
radius: "16"
|
||||
})
|
||||
} : {
|
||||
m: common_vendor.p({
|
||||
src: "/static/common/not_order.png",
|
||||
width: "80",
|
||||
height: "80",
|
||||
bgColor: "#f1f6ff00"
|
||||
})
|
||||
}, {
|
||||
n: _ctx.royaltyLoading
|
||||
}, _ctx.royaltyLoading ? {} : {}, {
|
||||
o: common_vendor.o((...args) => $options.loadMore && $options.loadMore(...args)),
|
||||
p: common_vendor.p({
|
||||
src: "/static/common/close.png",
|
||||
width: "20",
|
||||
height: "20",
|
||||
bgColor: "#f1f6ff00"
|
||||
}),
|
||||
q: common_vendor.o(($event) => {
|
||||
$data.openTcShow = false;
|
||||
}),
|
||||
r: common_vendor.o(($event) => {
|
||||
$data.openTcShow = false;
|
||||
}),
|
||||
s: common_vendor.p({
|
||||
show: $data.openTcShow,
|
||||
showConfirmButton: false
|
||||
})
|
||||
});
|
||||
}
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-9f12fd33"]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/mine_my_team_list/mine_my_team_list.js.map
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {
|
||||
"header": "../../components/header",
|
||||
"up-image": "../../uni_modules/uview-plus/components/u-image/u-image",
|
||||
"up-modal": "../../uni_modules/uview-plus/components/u-modal/u-modal"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<view class="my_team_list data-v-9f12fd33"><header wx:if="{{a}}" class="data-v-9f12fd33" u-i="9f12fd33-0" bind:__l="__l" u-p="{{a}}"/><view class="my_team_list_content data-v-9f12fd33"><view class="team_list_card data-v-9f12fd33"><view class="amount_ data-v-9f12fd33">{{b}}</view><view class="amount_sum data-v-9f12fd33">总订单金额</view><view class="comm_fg data-v-9f12fd33"></view><view class="people_number data-v-9f12fd33"><view class="people_number_item data-v-9f12fd33"><view class="title_ data-v-9f12fd33">总人数</view><view class="value_ data-v-9f12fd33">{{c}}</view></view><view class="comm_fg_s data-v-9f12fd33"></view><view class="people_number_item data-v-9f12fd33"><view class="title_ data-v-9f12fd33">直推人数</view><view class="value_ data-v-9f12fd33">{{d}}</view></view><view class="comm_fg_s data-v-9f12fd33"></view><view class="people_number_item data-v-9f12fd33"><view class="title_ data-v-9f12fd33">间推人数</view><view class="value_ data-v-9f12fd33">{{e}}</view></view></view><view wx:if="{{f}}" class="current_user_id data-v-9f12fd33">当前用户ID:{{g}}</view><view class="current_user_tips data-v-9f12fd33"><up-image wx:if="{{i}}" class="data-v-9f12fd33" bindclick="{{h}}" u-i="9f12fd33-1" bind:__l="__l" u-p="{{i}}"/></view></view><view class="team_list_remarks data-v-9f12fd33"><view class="data-v-9f12fd33">注:所有数据均截至到进入页面的时间为止,返回再进入页面数据会更新</view><view class="data-v-9f12fd33" style="margin-left:40rpx">总订单金额统计的为所有已支付的订单金额</view></view><scroll-view class="data-v-9f12fd33" scroll-y="true" bindscrolltolower="{{o}}" style="{{'height:' + 'calc(100vh - 500rpx)'}}"><block wx:if="{{j}}"><view wx:for="{{k}}" wx:for-item="item" wx:key="i" class="team_item data-v-9f12fd33"><view class="team_header data-v-9f12fd33" bindtap="{{item.h}}"><view class="header_left_ data-v-9f12fd33"><view class="data-v-9f12fd33" style="margin-top:10rpx"><up-image wx:if="{{item.b}}" class="data-v-9f12fd33" u-i="{{item.a}}" bind:__l="__l" u-p="{{item.b}}"></up-image></view><view class="right_data data-v-9f12fd33"><view class="name_ data-v-9f12fd33">{{item.c}}({{item.d}})</view><view class="msg_ data-v-9f12fd33"> ID:{{item.e}}</view><view class="msg_ data-v-9f12fd33"> 注册时间:{{item.f}}</view></view></view><view class="data-v-9f12fd33"><up-image wx:if="{{l}}" class="data-v-9f12fd33" u-i="{{item.g}}" bind:__l="__l" u-p="{{l}}"></up-image></view></view></view></block><view wx:else class="not_order_warp data-v-9f12fd33"><up-image wx:if="{{m}}" class="data-v-9f12fd33" u-i="9f12fd33-4" bind:__l="__l" u-p="{{m}}"></up-image><view class="not_order_msg_warp data-v-9f12fd33">团队暂无数据</view></view><view wx:if="{{n}}" class="data-v-9f12fd33" style="text-align:center">加载中...</view></scroll-view></view><up-modal wx:if="{{s}}" class="data-v-9f12fd33" u-s="{{['d']}}" u-i="9f12fd33-5" bind:__l="__l" u-p="{{s}}"><view class="slot-content data-v-9f12fd33"><view class="close_warp data-v-9f12fd33" bindtap="{{q}}"><up-image wx:if="{{p}}" class="data-v-9f12fd33" u-i="9f12fd33-6,9f12fd33-5" bind:__l="__l" u-p="{{p}}"></up-image></view><view class="content_ data-v-9f12fd33"><view class="content_1 data-v-9f12fd33">温馨提示</view><view class="content_2 data-v-9f12fd33">1、页面数据截至到进入该页面的时间统计</view><view class="content_2 data-v-9f12fd33">2、当前页面数据为主用户的数据</view><view class="content_2 data-v-9f12fd33">3、下方显示为全部的直推用户,点击后可跳转他/她的团队数据页,查看他/她的直推数据(也就是我的间推)</view></view><view class="but_ data-v-9f12fd33"><view class="but_copy data-v-9f12fd33" bindtap="{{r}}">确定</view></view></view></up-modal></view>
|
||||
@@ -0,0 +1,157 @@
|
||||
/**
|
||||
* 这里是uni-app内置的常用样式变量
|
||||
*
|
||||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||||
*
|
||||
*/
|
||||
/* uni.scss */
|
||||
/**
|
||||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||||
*
|
||||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||||
*/
|
||||
/* 颜色变量 */
|
||||
/* 行为相关颜色 */
|
||||
/* 文字基本颜色 */
|
||||
/* 背景颜色 */
|
||||
/* 边框颜色 */
|
||||
/* 尺寸变量 */
|
||||
/* 文字尺寸 */
|
||||
/* 图片尺寸 */
|
||||
/* Border Radius */
|
||||
/* 水平间距 */
|
||||
/* 垂直间距 */
|
||||
.my_team_list.data-v-9f12fd33 {
|
||||
background-color: #F5F5F5;
|
||||
}
|
||||
.my_team_list .my_team_list_content.data-v-9f12fd33 {
|
||||
padding: 30rpx;
|
||||
}
|
||||
.my_team_list .team_list_card.data-v-9f12fd33 {
|
||||
background-color: #FF7C41;
|
||||
text-align: center;
|
||||
color: rgba(255, 255, 255, 0.9);
|
||||
padding: 40rpx;
|
||||
border-radius: 15rpx;
|
||||
margin-bottom: 20rpx;
|
||||
position: relative;
|
||||
}
|
||||
.my_team_list .team_list_card .current_user_id.data-v-9f12fd33 {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
background-color: #33333340;
|
||||
padding: 10rpx;
|
||||
font-size: 22rpx;
|
||||
border-radius: 10rpx 0;
|
||||
}
|
||||
.my_team_list .team_list_card .current_user_tips.data-v-9f12fd33 {
|
||||
position: absolute;
|
||||
top: 20rpx;
|
||||
right: 20rpx;
|
||||
}
|
||||
.my_team_list .team_list_card .amount_.data-v-9f12fd33 {
|
||||
font-weight: 500;
|
||||
font-size: 58rpx;
|
||||
color: rgba(255, 255, 255, 0.9);
|
||||
}
|
||||
.my_team_list .team_list_card .amount_sum.data-v-9f12fd33 {
|
||||
font-size: 23rpx;
|
||||
color: rgba(255, 255, 255, 0.55);
|
||||
}
|
||||
.my_team_list .team_list_card .comm_fg.data-v-9f12fd33 {
|
||||
border: 2rpx dashed rgba(255, 255, 255, 0.55);
|
||||
margin: 20rpx 0;
|
||||
}
|
||||
.my_team_list .team_list_card .comm_fg_s.data-v-9f12fd33 {
|
||||
width: 1rpx;
|
||||
height: 35rpx;
|
||||
background-color: rgba(255, 255, 255, 0.9);
|
||||
}
|
||||
.my_team_list .team_list_card .people_number.data-v-9f12fd33 {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
.my_team_list .team_list_card .people_number_item.data-v-9f12fd33 {
|
||||
width: 30%;
|
||||
text-align: center;
|
||||
}
|
||||
.my_team_list .team_list_card .people_number_item .title_.data-v-9f12fd33 {
|
||||
font-size: 23rpx;
|
||||
color: rgba(255, 255, 255, 0.55);
|
||||
line-height: 33rpx;
|
||||
}
|
||||
.my_team_list .team_list_card .people_number_item .value_.data-v-9f12fd33 {
|
||||
font-size: 38rpx;
|
||||
color: rgba(255, 255, 255, 0.9);
|
||||
line-height: 54rpx;
|
||||
}
|
||||
.my_team_list .team_list_remarks.data-v-9f12fd33 {
|
||||
font-size: 20rpx;
|
||||
color: #9E9E9E;
|
||||
margin-bottom: 10rpx;
|
||||
}
|
||||
.my_team_list .team_item.data-v-9f12fd33 {
|
||||
padding: 20rpx;
|
||||
background: #FFFFFF;
|
||||
border-radius: 30rpx;
|
||||
margin-bottom: 20rpx;
|
||||
}
|
||||
.my_team_list .team_header.data-v-9f12fd33 {
|
||||
display: flex;
|
||||
align-content: center;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
margin-bottom: 10rpx;
|
||||
}
|
||||
.my_team_list .team_header .header_left_.data-v-9f12fd33 {
|
||||
display: flex;
|
||||
align-items: inherit;
|
||||
width: calc(100% - 70rpx);
|
||||
}
|
||||
.my_team_list .team_header .right_data.data-v-9f12fd33 {
|
||||
margin-left: 10rpx;
|
||||
}
|
||||
.my_team_list .team_header .name_.data-v-9f12fd33 {
|
||||
font-weight: bold;
|
||||
font-size: 30rpx;
|
||||
color: #333333;
|
||||
}
|
||||
.my_team_list .team_header .msg_.data-v-9f12fd33 {
|
||||
font-weight: 500;
|
||||
font-size: 24rpx;
|
||||
color: #999999;
|
||||
margin-top: 10rpx;
|
||||
}
|
||||
.my_team_list .team_content.data-v-9f12fd33 {
|
||||
border-top: 1rpx solid #EEEEEE;
|
||||
padding: 20rpx 0 0;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.my_team_list .team_content .team_content_item.data-v-9f12fd33 {
|
||||
width: 50%;
|
||||
font-weight: 500;
|
||||
display: flex;
|
||||
margin-bottom: 10rpx;
|
||||
}
|
||||
.my_team_list .team_content .team_content2_item.data-v-9f12fd33 {
|
||||
width: 100%;
|
||||
}
|
||||
.my_team_list .team_content .title_.data-v-9f12fd33 {
|
||||
font-size: 24rpx;
|
||||
color: #999999;
|
||||
}
|
||||
.my_team_list .team_content .content_.data-v-9f12fd33 {
|
||||
font-size: 26rpx;
|
||||
color: #333333;
|
||||
}
|
||||
.my_team_list .content_1.data-v-9f12fd33 {
|
||||
margin-bottom: 40rpx;
|
||||
}
|
||||
.my_team_list .content_2.data-v-9f12fd33 {
|
||||
text-align: left;
|
||||
margin-top: 10rpx;
|
||||
}
|
||||
+36
@@ -0,0 +1,36 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const Header = () => "../../components/header.js";
|
||||
const _sfc_main = {
|
||||
components: { Header },
|
||||
data() {
|
||||
return {
|
||||
leftPath: "/pages/mine_settings/mine_settings"
|
||||
};
|
||||
},
|
||||
onLoad(option) {
|
||||
const backPath = option.backPath;
|
||||
if (backPath && backPath === "login") {
|
||||
this.leftPath = "/pages/login/login";
|
||||
}
|
||||
if (backPath && backPath === "register") {
|
||||
this.leftPath = "/pages/register/register";
|
||||
}
|
||||
}
|
||||
};
|
||||
if (!Array) {
|
||||
const _component_Header = common_vendor.resolveComponent("Header");
|
||||
_component_Header();
|
||||
}
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return {
|
||||
a: common_vendor.p({
|
||||
leftTitle: _ctx.$t("mine.privacy.agreement.title"),
|
||||
leftPathType: "navigateTo",
|
||||
leftPath: $data.leftPath
|
||||
})
|
||||
};
|
||||
}
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/mine_privacy_agreement/mine_privacy_agreement.js.map
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {
|
||||
"header": "../../components/header"
|
||||
}
|
||||
}
|
||||
+1
File diff suppressed because one or more lines are too long
+39
@@ -0,0 +1,39 @@
|
||||
/**
|
||||
* 这里是uni-app内置的常用样式变量
|
||||
*
|
||||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||||
*
|
||||
*/
|
||||
/* uni.scss */
|
||||
/**
|
||||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||||
*
|
||||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||||
*/
|
||||
/* 颜色变量 */
|
||||
/* 行为相关颜色 */
|
||||
/* 文字基本颜色 */
|
||||
/* 背景颜色 */
|
||||
/* 边框颜色 */
|
||||
/* 尺寸变量 */
|
||||
/* 文字尺寸 */
|
||||
/* 图片尺寸 */
|
||||
/* Border Radius */
|
||||
/* 水平间距 */
|
||||
/* 垂直间距 */
|
||||
.privacy_agreement_warp {
|
||||
background-color: #F5F5F5;
|
||||
overflow: hidden;
|
||||
}
|
||||
.privacy_agreement_warp .privacy_agreement_content_warp {
|
||||
padding: 40rpx;
|
||||
height: calc(100vh - 242rpx);
|
||||
overflow: auto;
|
||||
}
|
||||
.privacy_agreement_warp .interval {
|
||||
margin-left: 20rpx;
|
||||
}
|
||||
.privacy_agreement_warp .interval2 {
|
||||
margin-left: 40rpx;
|
||||
}
|
||||
+37
@@ -0,0 +1,37 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const Header = () => "../../components/header.js";
|
||||
const _sfc_main = {
|
||||
components: { Header },
|
||||
data() {
|
||||
return {
|
||||
leftPath: "/pages/mine_settings/mine_settings"
|
||||
};
|
||||
},
|
||||
onLoad(option) {
|
||||
const backPath = option.backPath;
|
||||
if (backPath && backPath === "login") {
|
||||
this.leftPath = "/pages/login/login";
|
||||
}
|
||||
if (backPath && backPath === "register") {
|
||||
this.leftPath = "/pages/register/register";
|
||||
}
|
||||
},
|
||||
methods: {}
|
||||
};
|
||||
if (!Array) {
|
||||
const _component_Header = common_vendor.resolveComponent("Header");
|
||||
_component_Header();
|
||||
}
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return {
|
||||
a: common_vendor.p({
|
||||
leftTitle: _ctx.$t("mine.user.product.title"),
|
||||
["left-path-type"]: "navigateTo",
|
||||
leftPath: $data.leftPath
|
||||
})
|
||||
};
|
||||
}
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-461f3671"]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/mine_product_agreement/mine_product_agreement.js.map
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {
|
||||
"header": "../../components/header"
|
||||
}
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
<view class="user_agreement_warp data-v-461f3671"><header wx:if="{{a}}" class="data-v-461f3671" u-i="461f3671-0" bind:__l="__l" u-p="{{a}}"/><view class="user_agreement_content_warp data-v-461f3671"> 生效日期:2025/4/01<view class="data-v-461f3671"/> 最后更新日期:2025/04/24<view class="data-v-461f3671"/> 本协议适用于在 (德商汇)(以下简称“本商城”)购买商品的用户(以下简称“您”或“买家”)。为确保您的合法权益,本商城特制定本售后保障协议,明确售后服务范围、责任及处理流程。请您仔细阅读并确认同意后使用本商城服务。 <view class="data-v-461f3671"/> 一、售后服务范围<view class="data-v-461f3671"/> 1. 商品质量保障 <view class="data-v-461f3671"/> 您在本商城购买的商品如存在 质量问题(如功能故障、破损、与描述不符等),可申请 退货、换货或维修。 <view class="data-v-461f3671"/> 质量问题需在 收货后7天内 提出,并提供相关证明(如照片、视频等)。 <view class="data-v-461f3671"/> 2. 物流问题保障 <view class="data-v-461f3671"/> 若因物流原因导致商品 未送达、损坏或丢失,本商城将协助您联系物流公司处理,或提供补发/退款服务。 <view class="data-v-461f3671"/> 3. 售后时效<view class="data-v-461f3671"/> 本商城承诺在收到您的售后申请后 13个工作日内 响应,并在符合条件的情况下 715个工作日内 完成退换货或退款流程。<view class="data-v-461f3671"/> 二、售后申请流程<view class="data-v-461f3671"/> 1. 提交申请 <view class="data-v-461f3671"/> 您可通过 商城APP/网站 → 订单中心 → 申请售后 提交申请,或联系客服(电话/在线客服)提供 订单号、问题描述及相关证明。<view class="data-v-461f3671"/> 2. 审核处理 <view class="data-v-461f3671"/> 本商城将在 13个工作日内 审核您的申请,并告知处理结果。 <view class="data-v-461f3671"/> 如需退货/换货,您需按商城提供的地址寄回商品(保持商品完好,不影响二次销售)。 <view class="data-v-461f3671"/> 3. 退款/换货/维修 <view class="data-v-461f3671"/> 退款:审核通过后,款项将按原支付方式退回(17个工作日到账)。<view class="data-v-461f3671"/> 换货:本商城将重新发货,运费由责任方承担(质量问题由商城承担,个人原因由买家承担)。 <view class="data-v-461f3671"/> 维修:部分商品(如电子产品)可提供 官方保修服务,具体以品牌售后政策为准。<view class="data-v-461f3671"/> 三、不适用售后保障的情形<view class="data-v-461f3671"/> 1. 人为损坏(如自行拆修、进水、摔坏等)。 <view class="data-v-461f3671"/> 2. 超过售后期限(如收货超过15天未反馈问题)。 <view class="data-v-461f3671"/> 3. 定制类商品(如刻字、专属设计等)。 <view class="data-v-461f3671"/> 4. 虚拟商品(如电子书、会员卡等)。<view class="data-v-461f3671"/> 5. 因个人原因不想要(如不喜欢、买错等),除非商城支持“7天无理由退货”。 <view class="data-v-461f3671"/> 四、责任划分<view class="data-v-461f3671"/> 1. 商城责任 <view class="data-v-461f3671"/> 因商品质量问题或物流问题导致的售后需求,本商城承担退换货费用。<view class="data-v-461f3671"/> 若因商城原因导致售后延迟,将提供适当补偿(如优惠券、积分等)。<view class="data-v-461f3671"/> 2. 买家责任 <view class="data-v-461f3671"/> 提供虚假售后信息(如伪造质量问题),本商城有权拒绝售后并保留法律追责权利。<view class="data-v-461f3671"/> 因个人原因(如不喜欢、买错)申请退货,需自行承担退货运费(如适用)。 <view class="data-v-461f3671"/> 五、争议解决<view class="data-v-461f3671"/> 1. 如对售后处理结果有异议,可联系本商城客服协商解决。 <view class="data-v-461f3671"/> 2. 协商不成,可向 (商城所在地) 消费者协会或法院提起诉讼。 <view class="data-v-461f3671"/> 六、其他说明<view class="data-v-461f3671"/> 1. 本商城有权根据法律法规或运营需求调整本协议,并通过公告通知用户。 <view class="data-v-461f3671"/> 2. 本协议自您首次使用本商城服务时生效。 <view class="data-v-461f3671"/> 客服联系方式:<view class="data-v-461f3671"/> 电话:18888888888<view class="data-v-461f3671"/> 邮箱:deshanghui2025@163.com <view class="data-v-461f3671"/> 在线客服:商城APP/网站内联系<view class="data-v-461f3671"/> 本协议最终解释权归 (德商汇) 所有。<view class="data-v-461f3671"/></view></view>
|
||||
+33
@@ -0,0 +1,33 @@
|
||||
/**
|
||||
* 这里是uni-app内置的常用样式变量
|
||||
*
|
||||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||||
*
|
||||
*/
|
||||
/* uni.scss */
|
||||
/**
|
||||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||||
*
|
||||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||||
*/
|
||||
/* 颜色变量 */
|
||||
/* 行为相关颜色 */
|
||||
/* 文字基本颜色 */
|
||||
/* 背景颜色 */
|
||||
/* 边框颜色 */
|
||||
/* 尺寸变量 */
|
||||
/* 文字尺寸 */
|
||||
/* 图片尺寸 */
|
||||
/* Border Radius */
|
||||
/* 水平间距 */
|
||||
/* 垂直间距 */
|
||||
.user_agreement_warp.data-v-461f3671 {
|
||||
background-color: #F5F5F5;
|
||||
overflow: hidden;
|
||||
}
|
||||
.user_agreement_warp .user_agreement_content_warp.data-v-461f3671 {
|
||||
padding: 40rpx;
|
||||
height: calc(100vh - 242rpx);
|
||||
overflow: auto;
|
||||
}
|
||||
+230
@@ -0,0 +1,230 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const api_finance = require("../../api/finance.js");
|
||||
const api_bank = require("../../api/bank.js");
|
||||
const _sfc_main = {
|
||||
data() {
|
||||
return {
|
||||
form: {
|
||||
category: null,
|
||||
//账户类型
|
||||
amount: null,
|
||||
// 提现金额
|
||||
dzAmount: 0,
|
||||
// 到账金额
|
||||
rateAmount: 0,
|
||||
// 手续费
|
||||
bankId: null,
|
||||
// 提现银行卡
|
||||
bankName: null
|
||||
// 提现银行卡名称
|
||||
},
|
||||
withdrawAmount: 0,
|
||||
ruleObj: {},
|
||||
// 规则
|
||||
bankOption: [],
|
||||
bankShow: false,
|
||||
bankLoading: false
|
||||
};
|
||||
},
|
||||
onLoad(option) {
|
||||
const amount = option.amount || 0;
|
||||
if (amount && amount !== "null") {
|
||||
this.withdrawAmount = amount || 0;
|
||||
}
|
||||
const category = option.category;
|
||||
if (category && category !== "null") {
|
||||
this.form.category = category;
|
||||
this.getWithdrawalRule();
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
jumpPurse() {
|
||||
common_vendor.index.navigateTo({
|
||||
url: "/pages/mine_purse/mine_purse"
|
||||
});
|
||||
},
|
||||
allFun() {
|
||||
const amount = this.withdrawAmount;
|
||||
this.form.amount = amount;
|
||||
this.amountChange(amount);
|
||||
},
|
||||
jumpLog() {
|
||||
common_vendor.index.navigateTo({
|
||||
url: "/pages/mine_purse_bonus_withdraw_log/mine_purse_bonus_withdraw_log?category=" + this.form.category
|
||||
});
|
||||
},
|
||||
async withdrawFun() {
|
||||
const params = {
|
||||
...this.form
|
||||
};
|
||||
if (!params.bankId) {
|
||||
this.$refs.uToastRef.show({
|
||||
type: "error",
|
||||
message: "请选择提现银行卡"
|
||||
});
|
||||
return;
|
||||
}
|
||||
if (!params.amount) {
|
||||
this.$refs.uToastRef.show({
|
||||
type: "error",
|
||||
message: "请输入需要提现余额"
|
||||
});
|
||||
return;
|
||||
}
|
||||
delete params.bankName;
|
||||
const resp = await api_finance.withdrawal(params);
|
||||
if (resp && resp.bizcode === 100) {
|
||||
this.$refs.uToastRef.show({
|
||||
type: "success",
|
||||
message: "已成功申请提现"
|
||||
});
|
||||
setTimeout(() => {
|
||||
common_vendor.index.navigateTo({
|
||||
url: "/pages/mine_purse/mine_purse"
|
||||
});
|
||||
}, 1500);
|
||||
}
|
||||
},
|
||||
/**
|
||||
* 查询规则
|
||||
*/
|
||||
async getWithdrawalRule() {
|
||||
const params = {
|
||||
category: this.form.category
|
||||
};
|
||||
const resp = await api_finance.getWithdrawalRule(params);
|
||||
if (resp && resp.bizcode === 100) {
|
||||
this.ruleObj = resp.data;
|
||||
}
|
||||
},
|
||||
// 选择银行的弹框
|
||||
async bankShowCheck(status) {
|
||||
if (status) {
|
||||
this.bankLoading = true;
|
||||
const resp = await api_bank.getBankList();
|
||||
if (resp && resp.bizcode === 100) {
|
||||
if (!resp.data) {
|
||||
this.$refs.uToastRef.show({
|
||||
type: "warring",
|
||||
message: "请先去银行卡管理绑定银行卡"
|
||||
});
|
||||
return;
|
||||
}
|
||||
this.bankOption = [resp.data || []];
|
||||
}
|
||||
this.bankLoading = false;
|
||||
} else {
|
||||
this.bankOption = [[]];
|
||||
}
|
||||
this.bankShow = status;
|
||||
},
|
||||
// 提交地址
|
||||
bankConfirm(e) {
|
||||
const {
|
||||
columnIndex,
|
||||
value,
|
||||
values,
|
||||
index
|
||||
} = e;
|
||||
const data = value[0];
|
||||
this.form.bankId = data.id;
|
||||
this.form.bankName = data.bankName;
|
||||
this.bankShowCheck(false);
|
||||
},
|
||||
amountChange(amount) {
|
||||
const rate = this.ruleObj.rate;
|
||||
if (rate && amount) {
|
||||
const rateAmount = amount * (rate / 100);
|
||||
this.form.rateAmount = rateAmount.toFixed(2);
|
||||
this.form.dzAmount = (amount - rateAmount).toFixed(2);
|
||||
} else {
|
||||
this.form.rateAmount = 0;
|
||||
this.form.dzAmount = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
if (!Array) {
|
||||
const _easycom_up_image2 = common_vendor.resolveComponent("up-image");
|
||||
const _easycom_up_input2 = common_vendor.resolveComponent("up-input");
|
||||
const _easycom_up_picker2 = common_vendor.resolveComponent("up-picker");
|
||||
const _easycom_up_toast2 = common_vendor.resolveComponent("up-toast");
|
||||
(_easycom_up_image2 + _easycom_up_input2 + _easycom_up_picker2 + _easycom_up_toast2)();
|
||||
}
|
||||
const _easycom_up_image = () => "../../uni_modules/uview-plus/components/u-image/u-image.js";
|
||||
const _easycom_up_input = () => "../../uni_modules/uview-plus/components/u-input/u-input.js";
|
||||
const _easycom_up_picker = () => "../../uni_modules/uview-plus/components/u-picker/u-picker.js";
|
||||
const _easycom_up_toast = () => "../../uni_modules/uview-plus/components/u-toast/u-toast.js";
|
||||
if (!Math) {
|
||||
(_easycom_up_image + _easycom_up_input + _easycom_up_picker + _easycom_up_toast)();
|
||||
}
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return {
|
||||
a: common_vendor.p({
|
||||
src: "/static/common/left.png",
|
||||
width: "18",
|
||||
height: "18",
|
||||
bgColor: "#f1f6ff00"
|
||||
}),
|
||||
b: common_vendor.o((...args) => $options.jumpPurse && $options.jumpPurse(...args)),
|
||||
c: common_vendor.o((...args) => $options.jumpLog && $options.jumpLog(...args)),
|
||||
d: common_vendor.t($data.form.bankName || "请选择"),
|
||||
e: common_vendor.p({
|
||||
src: "/static/common/right.png",
|
||||
width: "16",
|
||||
height: "16",
|
||||
bgColor: "#f1f6ff00"
|
||||
}),
|
||||
f: common_vendor.o(($event) => $options.bankShowCheck(true)),
|
||||
g: common_vendor.o((...args) => $options.allFun && $options.allFun(...args)),
|
||||
h: common_vendor.o($options.amountChange),
|
||||
i: common_vendor.o(($event) => $data.form.amount = $event),
|
||||
j: common_vendor.p({
|
||||
placeholder: "请输入提现金额",
|
||||
border: "none",
|
||||
customStyle: {
|
||||
"height": "110rpx",
|
||||
"background-color": "#F8F8F8",
|
||||
"margin": "10rpx 0",
|
||||
"padding": "0 20rpx"
|
||||
},
|
||||
type: "number",
|
||||
modelValue: $data.form.amount
|
||||
}),
|
||||
k: common_vendor.o(($event) => $data.form.dzAmount = $event),
|
||||
l: common_vendor.p({
|
||||
placeholder: "请输入需要提现金额",
|
||||
border: "none",
|
||||
customStyle: {
|
||||
"height": "110rpx",
|
||||
"background-color": "#F8F8F8",
|
||||
"margin": "10rpx 0",
|
||||
"padding": "0 20rpx"
|
||||
},
|
||||
disabled: true,
|
||||
modelValue: $data.form.dzAmount
|
||||
}),
|
||||
m: common_vendor.t($data.withdrawAmount),
|
||||
n: common_vendor.t($data.form.rateAmount),
|
||||
o: common_vendor.t($data.ruleObj && $data.ruleObj.rate || 0),
|
||||
p: common_vendor.o((...args) => $options.withdrawFun && $options.withdrawFun(...args)),
|
||||
q: common_vendor.t($data.ruleObj && $data.ruleObj.minAmount || 0),
|
||||
r: common_vendor.t($data.ruleObj && $data.ruleObj.dayAmount || 0),
|
||||
s: common_vendor.t($data.ruleObj && $data.ruleObj.dayTimes || 0),
|
||||
t: common_vendor.o($options.bankConfirm),
|
||||
v: common_vendor.o(($event) => $data.bankShow = false),
|
||||
w: common_vendor.o(($event) => $data.bankShow = false),
|
||||
x: common_vendor.p({
|
||||
show: $data.bankShow,
|
||||
columns: $data.bankOption,
|
||||
keyName: "bankName",
|
||||
itemHeight: "34",
|
||||
loading: $data.bankLoading
|
||||
}),
|
||||
y: common_vendor.sr("uToastRef", "9f7e0d0e-5")
|
||||
};
|
||||
}
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/mine_purse_bonus_withdraw/mine_purse_bonus_withdraw.js.map
|
||||
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {
|
||||
"up-image": "../../uni_modules/uview-plus/components/u-image/u-image",
|
||||
"up-input": "../../uni_modules/uview-plus/components/u-input/u-input",
|
||||
"up-picker": "../../uni_modules/uview-plus/components/u-picker/u-picker",
|
||||
"up-toast": "../../uni_modules/uview-plus/components/u-toast/u-toast"
|
||||
}
|
||||
}
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
<view class="mine_purse_bonus_waithdraw"><view class="waithdraw_header_"><view style="margin-top:10rpx" bindtap="{{b}}"><up-image wx:if="{{a}}" u-i="9f7e0d0e-0" bind:__l="__l" u-p="{{a}}"></up-image></view><view>提现</view><view bindtap="{{c}}">提现记录</view></view><view class="waithdraw_content_"><view class="content_bank_item"><view class="title_comm">提现账户</view><view class="bank_" bindtap="{{f}}"><view>{{d}}</view><up-image wx:if="{{e}}" u-i="9f7e0d0e-1" bind:__l="__l" u-p="{{e}}"></up-image></view></view><view class="content_amout_item"><view class="title_comm">提现金额</view><up-input wx:if="{{j}}" u-s="{{['suffix']}}" bindchange="{{h}}" u-i="9f7e0d0e-2" bind:__l="__l" bindupdateModelValue="{{i}}" u-p="{{j}}"><view slot="suffix"><text>元</text><text class="all_" bindtap="{{g}}">全部</text></view></up-input></view><view class="content_amout_item" style="margin-top:20rpx"><view class="title_comm">实际到账</view><up-input wx:if="{{l}}" u-s="{{['suffix']}}" u-i="9f7e0d0e-3" bind:__l="__l" bindupdateModelValue="{{k}}" u-p="{{l}}"><text slot="suffix">元</text></up-input><view class="amount_"><view>可提现金额:¥{{m}}</view><view>手续费:{{n}}({{o}}%)</view></view></view></view><view class="withdraw_but" bindtap="{{p}}">提现</view><view class="warm_reminder"><view>温馨提示</view><view><view>单笔最小提现金额:{{q}}</view><view>单日最大提现金额:{{r}}</view><view>单日最大提现次数:{{s}}</view></view></view><up-picker wx:if="{{x}}" bindconfirm="{{t}}" bindcancel="{{v}}" bindclose="{{w}}" u-i="9f7e0d0e-4" bind:__l="__l" u-p="{{x}}"></up-picker><up-toast class="r" u-r="uToastRef" u-i="9f7e0d0e-5" bind:__l="__l"></up-toast></view>
|
||||
Vendored
+88
@@ -0,0 +1,88 @@
|
||||
/**
|
||||
* 这里是uni-app内置的常用样式变量
|
||||
*
|
||||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||||
*
|
||||
*/
|
||||
/* uni.scss */
|
||||
/**
|
||||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||||
*
|
||||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||||
*/
|
||||
/* 颜色变量 */
|
||||
/* 行为相关颜色 */
|
||||
/* 文字基本颜色 */
|
||||
/* 背景颜色 */
|
||||
/* 边框颜色 */
|
||||
/* 尺寸变量 */
|
||||
/* 文字尺寸 */
|
||||
/* 图片尺寸 */
|
||||
/* Border Radius */
|
||||
/* 水平间距 */
|
||||
/* 垂直间距 */
|
||||
.mine_purse_bonus_waithdraw {
|
||||
background-color: #F5F5F5;
|
||||
height: calc(100vh - 130rpx);
|
||||
padding: 100rpx 30rpx 30rpx;
|
||||
overflow: auto;
|
||||
}
|
||||
.mine_purse_bonus_waithdraw .waithdraw_header_ {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
.mine_purse_bonus_waithdraw .waithdraw_content_ {
|
||||
margin-top: 40rpx;
|
||||
background: #FFFFFF;
|
||||
border-radius: 24rpx;
|
||||
padding: 30rpx;
|
||||
}
|
||||
.mine_purse_bonus_waithdraw .waithdraw_content_ .content_bank_item {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
border-bottom: 1rpx solid #EEEEEE;
|
||||
padding-bottom: 30rpx;
|
||||
}
|
||||
.mine_purse_bonus_waithdraw .waithdraw_content_ .content_bank_item .bank_ {
|
||||
display: flex;
|
||||
font-weight: 500;
|
||||
font-size: 26rpx;
|
||||
color: #999999;
|
||||
}
|
||||
.mine_purse_bonus_waithdraw .waithdraw_content_ .content_bank_item .title_comm {
|
||||
font-weight: bold;
|
||||
font-size: 30rpx;
|
||||
color: #333333;
|
||||
}
|
||||
.mine_purse_bonus_waithdraw .waithdraw_content_ .content_amout_item {
|
||||
margin: 20rpx 0;
|
||||
}
|
||||
.mine_purse_bonus_waithdraw .waithdraw_content_ .content_amout_item .amount_ {
|
||||
font-weight: 500;
|
||||
font-size: 24rpx;
|
||||
color: #808080;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.mine_purse_bonus_waithdraw .waithdraw_content_ .content_amout_item .all_ {
|
||||
font-weight: bold;
|
||||
font-size: 36rpx;
|
||||
color: #FF7C41;
|
||||
margin-left: 10rpx;
|
||||
}
|
||||
.mine_purse_bonus_waithdraw .withdraw_but {
|
||||
width: 100%;
|
||||
padding: 20rpx 0;
|
||||
text-align: center;
|
||||
color: #FFFFFF;
|
||||
background-color: #FF7C41;
|
||||
margin-top: 100rpx;
|
||||
border-radius: 10rpx;
|
||||
font-size: 28rpx;
|
||||
}
|
||||
.mine_purse_bonus_waithdraw .warm_reminder {
|
||||
margin: 60rpx 0;
|
||||
}
|
||||
Vendored
+126
@@ -0,0 +1,126 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const utils_index = require("../../utils/index.js");
|
||||
const utils_enumUtils = require("../../utils/enumUtils.js");
|
||||
const api_finance = require("../../api/finance.js");
|
||||
const Header = () => "../../components/header.js";
|
||||
const _sfc_main = {
|
||||
computed: {
|
||||
ACCOUNT_CATEGORY() {
|
||||
return utils_enumUtils.ACCOUNT_CATEGORY;
|
||||
},
|
||||
ACCOUNT_TYPE() {
|
||||
return utils_enumUtils.ACCOUNT_TYPE;
|
||||
},
|
||||
FINANCE_WITHDRAWAL_STATUS() {
|
||||
return utils_enumUtils.FINANCE_WITHDRAWAL_STATUS;
|
||||
}
|
||||
},
|
||||
components: { Header },
|
||||
data() {
|
||||
return {
|
||||
logList: [],
|
||||
form: {
|
||||
category: null,
|
||||
page: 1,
|
||||
pageSize: 20
|
||||
},
|
||||
loading: false
|
||||
// 加载状态标志
|
||||
};
|
||||
},
|
||||
onLoad(option) {
|
||||
const category = option.category;
|
||||
if (category && category !== "null") {
|
||||
this.form.category = category;
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.loadData();
|
||||
},
|
||||
methods: {
|
||||
handleAmount: utils_index.handleAmount,
|
||||
formatDate: utils_index.formatDate,
|
||||
getValue: utils_enumUtils.getValue,
|
||||
getBankNumber: utils_index.getBankNumber,
|
||||
// 加载数据的方法
|
||||
async loadData() {
|
||||
if (this.loading)
|
||||
return;
|
||||
this.loading = true;
|
||||
try {
|
||||
const newData = await this.fetchData(this.form.page, this.form.pageSize);
|
||||
if (newData.entitys) {
|
||||
this.logList = [...this.logList, ...newData.entitys];
|
||||
this.form.page++;
|
||||
}
|
||||
} catch (error) {
|
||||
common_vendor.index.__f__("error", "at pages/mine_purse_bonus_withdraw_log/mine_purse_bonus_withdraw_log.vue:82", "加载数据失败:", error);
|
||||
} finally {
|
||||
this.loading = false;
|
||||
}
|
||||
},
|
||||
// 模拟获取数据的方法,实际应用中应该替换为你的数据获取逻辑,例如从服务器获取数据
|
||||
async fetchData(page, pageSize) {
|
||||
const params = {
|
||||
page,
|
||||
pageSize,
|
||||
category: this.form.category
|
||||
};
|
||||
const data = await api_finance.getWithdrawalList(params);
|
||||
if (data && data.bizcode === 100) {
|
||||
return data.data;
|
||||
} else {
|
||||
return [];
|
||||
}
|
||||
},
|
||||
// 当滚动到底部时触发的方法
|
||||
loadMore() {
|
||||
this.loadData();
|
||||
}
|
||||
}
|
||||
};
|
||||
if (!Array) {
|
||||
const _component_Header = common_vendor.resolveComponent("Header");
|
||||
const _easycom_up_image2 = common_vendor.resolveComponent("up-image");
|
||||
(_component_Header + _easycom_up_image2)();
|
||||
}
|
||||
const _easycom_up_image = () => "../../uni_modules/uview-plus/components/u-image/u-image.js";
|
||||
if (!Math) {
|
||||
_easycom_up_image();
|
||||
}
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return common_vendor.e({
|
||||
a: common_vendor.p({
|
||||
leftTitle: "提现记录(" + $options.getValue($options.ACCOUNT_CATEGORY, $data.form.category) + ")",
|
||||
["left-path-type"]: "navigateTo",
|
||||
leftPath: "/pages/mine_purse_bonus_withdraw/mine_purse_bonus_withdraw?category=" + $data.form.category
|
||||
}),
|
||||
b: $data.logList && $data.logList.length !== 0
|
||||
}, $data.logList && $data.logList.length !== 0 ? {
|
||||
c: common_vendor.f($data.logList, (item, index, i0) => {
|
||||
return {
|
||||
a: common_vendor.t(item.bankName),
|
||||
b: common_vendor.t($options.getBankNumber(item.bankNo)),
|
||||
c: common_vendor.t($options.formatDate(item.ctdate)),
|
||||
d: common_vendor.t($options.handleAmount(item.amount)),
|
||||
e: common_vendor.t($options.getValue($options.FINANCE_WITHDRAWAL_STATUS, item.status)),
|
||||
f: index
|
||||
};
|
||||
})
|
||||
} : {
|
||||
d: common_vendor.p({
|
||||
src: "/static/common/not_order.png",
|
||||
width: "80",
|
||||
height: "80",
|
||||
bgColor: "#f1f6ff00"
|
||||
})
|
||||
}, {
|
||||
e: $data.loading
|
||||
}, $data.loading ? {} : {}, {
|
||||
f: common_vendor.o((...args) => $options.loadMore && $options.loadMore(...args))
|
||||
});
|
||||
}
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-d522464c"]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/mine_purse_bonus_withdraw_log/mine_purse_bonus_withdraw_log.js.map
|
||||
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {
|
||||
"header": "../../components/header",
|
||||
"up-image": "../../uni_modules/uview-plus/components/u-image/u-image"
|
||||
}
|
||||
}
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
<view class="purse_bonus_withdraw_log data-v-d522464c"><header wx:if="{{a}}" class="data-v-d522464c" u-i="d522464c-0" bind:__l="__l" u-p="{{a}}"/><scroll-view class="data-v-d522464c" scroll-y="true" bindscrolltolower="{{f}}" style="{{'height:' + 'calc(100vh - 200rpx)'}}"><view wx:if="{{b}}" class="purse_bonus_withdraw_log_content data-v-d522464c"><view wx:for="{{c}}" wx:for-item="item" wx:key="f" class="log_item data-v-d522464c"><view class="data-v-d522464c"><view class="title_ data-v-d522464c">{{item.a}}(**** {{item.b}})</view><view class="msg_ data-v-d522464c">{{item.c}}</view></view><view class="data-v-d522464c" style="text-align:right"><view class="title_ data-v-d522464c">{{item.d}}</view><view class="msg_ data-v-d522464c">{{item.e}}</view></view></view></view><view wx:else class="not_order_warp data-v-d522464c"><up-image wx:if="{{d}}" class="data-v-d522464c" u-i="d522464c-1" bind:__l="__l" u-p="{{d}}"></up-image><view class="not_order_msg_warp data-v-d522464c">还没有提现记录哦~</view></view><view wx:if="{{e}}" class="data-v-d522464c" style="text-align:center">加载中...</view></scroll-view></view>
|
||||
Vendored
+46
@@ -0,0 +1,46 @@
|
||||
/**
|
||||
* 这里是uni-app内置的常用样式变量
|
||||
*
|
||||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||||
*
|
||||
*/
|
||||
/* uni.scss */
|
||||
/**
|
||||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||||
*
|
||||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||||
*/
|
||||
/* 颜色变量 */
|
||||
/* 行为相关颜色 */
|
||||
/* 文字基本颜色 */
|
||||
/* 背景颜色 */
|
||||
/* 边框颜色 */
|
||||
/* 尺寸变量 */
|
||||
/* 文字尺寸 */
|
||||
/* 图片尺寸 */
|
||||
/* Border Radius */
|
||||
/* 水平间距 */
|
||||
/* 垂直间距 */
|
||||
.purse_bonus_withdraw_log.data-v-d522464c {
|
||||
background-color: #F5F5F5;
|
||||
padding: 30rpx;
|
||||
}
|
||||
.purse_bonus_withdraw_log .log_item.data-v-d522464c {
|
||||
padding: 30rpx;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
margin-bottom: 20rpx;
|
||||
background: #FFFFFF;
|
||||
border-radius: 20rpx;
|
||||
}
|
||||
.purse_bonus_withdraw_log .title_.data-v-d522464c {
|
||||
font-weight: 500;
|
||||
font-size: 28rpx;
|
||||
color: #333333;
|
||||
}
|
||||
.purse_bonus_withdraw_log .msg_.data-v-d522464c {
|
||||
font-size: 24rpx;
|
||||
color: #808080;
|
||||
margin-top: 10rpx;
|
||||
}
|
||||
+167
@@ -0,0 +1,167 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const api_finance = require("../../api/finance.js");
|
||||
const utils_enumUtils = require("../../utils/enumUtils.js");
|
||||
const Header = () => "../../components/header.js";
|
||||
const _sfc_main = {
|
||||
computed: {
|
||||
ACCOUNT_CATEGORY() {
|
||||
return utils_enumUtils.ACCOUNT_CATEGORY;
|
||||
}
|
||||
},
|
||||
components: { Header },
|
||||
data() {
|
||||
return {
|
||||
form: {
|
||||
amount: null,
|
||||
//充值金额
|
||||
fromCategory: null,
|
||||
toCategory: null
|
||||
},
|
||||
wayOption: [],
|
||||
proAmount: 0
|
||||
// 可兑换的金额
|
||||
};
|
||||
},
|
||||
onLoad(option) {
|
||||
const category = option.category;
|
||||
if (category && category !== "null") {
|
||||
this.form.fromCategory = category;
|
||||
}
|
||||
const amount = option.amount;
|
||||
if (amount && amount !== "null") {
|
||||
this.proAmount = amount;
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.getWayOption();
|
||||
},
|
||||
methods: {
|
||||
getValue: utils_enumUtils.getValue,
|
||||
async getWayOption() {
|
||||
const params = {
|
||||
category: this.form.fromCategory
|
||||
};
|
||||
const result = await api_finance.getExchangeRule(params);
|
||||
if (result && result.bizcode === 100) {
|
||||
this.wayOption = result.data;
|
||||
}
|
||||
},
|
||||
// 立即提现
|
||||
async rechargeOk() {
|
||||
const params = this.form;
|
||||
if (!params.amount) {
|
||||
this.$refs.uToastRef.show({
|
||||
type: "error",
|
||||
message: "请输入需要兑换金额"
|
||||
});
|
||||
return;
|
||||
}
|
||||
if (!params.toCategory) {
|
||||
this.$refs.uToastRef.show({
|
||||
type: "error",
|
||||
message: "请选择目标账户"
|
||||
});
|
||||
return;
|
||||
}
|
||||
common_vendor.index.__f__("log", "at pages/mine_purse_exchange/mine_purse_exchange.vue:134", "params", params);
|
||||
const result = await api_finance.exchange(params);
|
||||
common_vendor.index.__f__("log", "at pages/mine_purse_exchange/mine_purse_exchange.vue:136", "result", result);
|
||||
if (result && result.bizcode === 100) {
|
||||
this.$refs.uToastRef.show({
|
||||
type: "success",
|
||||
message: "已成功申请兑换"
|
||||
});
|
||||
setTimeout(() => {
|
||||
common_vendor.index.navigateTo({
|
||||
url: "/pages/mine_purse/mine_purse"
|
||||
});
|
||||
}, 1500);
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
if (!Array) {
|
||||
const _component_Header = common_vendor.resolveComponent("Header");
|
||||
const _easycom_up_image2 = common_vendor.resolveComponent("up-image");
|
||||
const _easycom_up_input2 = common_vendor.resolveComponent("up-input");
|
||||
const _easycom_up_radio2 = common_vendor.resolveComponent("up-radio");
|
||||
const _easycom_up_radio_group2 = common_vendor.resolveComponent("up-radio-group");
|
||||
const _easycom_up_toast2 = common_vendor.resolveComponent("up-toast");
|
||||
(_component_Header + _easycom_up_image2 + _easycom_up_input2 + _easycom_up_radio2 + _easycom_up_radio_group2 + _easycom_up_toast2)();
|
||||
}
|
||||
const _easycom_up_image = () => "../../uni_modules/uview-plus/components/u-image/u-image.js";
|
||||
const _easycom_up_input = () => "../../uni_modules/uview-plus/components/u-input/u-input.js";
|
||||
const _easycom_up_radio = () => "../../uni_modules/uview-plus/components/u-radio/u-radio.js";
|
||||
const _easycom_up_radio_group = () => "../../uni_modules/uview-plus/components/u-radio-group/u-radio-group.js";
|
||||
const _easycom_up_toast = () => "../../uni_modules/uview-plus/components/u-toast/u-toast.js";
|
||||
if (!Math) {
|
||||
(_easycom_up_image + _easycom_up_input + _easycom_up_radio + _easycom_up_radio_group + _easycom_up_toast)();
|
||||
}
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return common_vendor.e({
|
||||
a: common_vendor.p({
|
||||
leftTitle: $options.getValue($options.ACCOUNT_CATEGORY, $data.form.fromCategory) + "兑换",
|
||||
["left-path-type"]: "navigateTo",
|
||||
["left-path"]: "/pages/mine_purse/mine_purse"
|
||||
}),
|
||||
b: common_vendor.p({
|
||||
src: "/static/mine/exchange.png",
|
||||
width: "20",
|
||||
height: "20",
|
||||
bgColor: "#f1f6ff00"
|
||||
}),
|
||||
c: common_vendor.t($data.proAmount),
|
||||
d: common_vendor.o(($event) => $data.form.amount = $event),
|
||||
e: common_vendor.p({
|
||||
placeholder: "输入需要兑换的金额",
|
||||
border: "surround",
|
||||
clearable: true,
|
||||
customStyle: {
|
||||
"margin-top": "20rpx",
|
||||
"background": "#FFFFFF",
|
||||
"box-shadow": "0rpx 4rpx 8rpx 0rpx rgba(0,0,0,0.06)",
|
||||
"border-radius": "8rpx",
|
||||
"height": "80rpx"
|
||||
},
|
||||
type: "number",
|
||||
modelValue: $data.form.amount
|
||||
}),
|
||||
f: $data.wayOption && $data.wayOption.length !== 0
|
||||
}, $data.wayOption && $data.wayOption.length !== 0 ? {
|
||||
g: common_vendor.f($data.wayOption, (item, index, i0) => {
|
||||
return common_vendor.e({
|
||||
a: common_vendor.t($options.getValue($options.ACCOUNT_CATEGORY, item.category)),
|
||||
b: item.rate
|
||||
}, item.rate ? {
|
||||
c: common_vendor.t(item.rate)
|
||||
} : {}, {
|
||||
d: "3627492b-4-" + i0 + ",3627492b-3",
|
||||
e: common_vendor.p({
|
||||
name: item.category,
|
||||
activeColor: "#03AD27"
|
||||
}),
|
||||
f: common_vendor.n(index + 1 < $data.wayOption.length ? "way_item way_item_but" : "way_item"),
|
||||
g: item.id
|
||||
});
|
||||
}),
|
||||
h: common_vendor.o(($event) => $data.form.toCategory = $event),
|
||||
i: common_vendor.p({
|
||||
placement: "column",
|
||||
modelValue: $data.form.toCategory
|
||||
})
|
||||
} : {
|
||||
j: common_vendor.p({
|
||||
src: "/static/common/not_order.png",
|
||||
width: "80",
|
||||
height: "80",
|
||||
bgColor: "#f1f6ff00"
|
||||
})
|
||||
}, {
|
||||
k: common_vendor.o((...args) => $options.rechargeOk && $options.rechargeOk(...args)),
|
||||
l: common_vendor.sr("uToastRef", "3627492b-6")
|
||||
});
|
||||
}
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/mine_purse_exchange/mine_purse_exchange.js.map
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"navigationBarTitleText": "",
|
||||
"usingComponents": {
|
||||
"header": "../../components/header",
|
||||
"up-image": "../../uni_modules/uview-plus/components/u-image/u-image",
|
||||
"up-input": "../../uni_modules/uview-plus/components/u-input/u-input",
|
||||
"up-radio": "../../uni_modules/uview-plus/components/u-radio/u-radio",
|
||||
"up-radio-group": "../../uni_modules/uview-plus/components/u-radio-group/u-radio-group",
|
||||
"up-toast": "../../uni_modules/uview-plus/components/u-toast/u-toast"
|
||||
}
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
<view class="purse_recharge_warp"><header wx:if="{{a}}" style="background-color:#FFFFFF" u-i="3627492b-0" bind:__l="__l" u-p="{{a}}"/><view class="purse_recharge_cntent"><view class="recharge_balance"><view class="recharge_balance_image"><view style="margin-top:6rpx"><up-image wx:if="{{b}}" u-i="3627492b-1" bind:__l="__l" u-p="{{b}}"/></view><view class="msg_">可兑换余额</view></view><view class="recharge_balance_">{{c}}</view></view><view class="form_item"><view class="form_item_title">兑换金额</view><up-input wx:if="{{e}}" u-i="3627492b-2" bind:__l="__l" bindupdateModelValue="{{d}}" u-p="{{e}}"></up-input></view><view class="form_item"><view class="form_item_title">目标账户</view><view class="recharge_way_warp"><up-radio-group wx:if="{{f}}" u-s="{{['d']}}" u-i="3627492b-3" bind:__l="__l" bindupdateModelValue="{{h}}" u-p="{{i}}"><view wx:for="{{g}}" wx:for-item="item" wx:key="g" class="{{item.f}}"><view class="way_item_"><view class="way_item_val">{{item.a}}<text wx:if="{{item.b}}"> (汇率 1:{{item.c}})</text></view></view><up-radio wx:if="{{item.e}}" u-i="{{item.d}}" bind:__l="__l" u-p="{{item.e}}"></up-radio></view></up-radio-group><view wx:else class="not_order_warp"><up-image wx:if="{{j}}" u-i="3627492b-5" bind:__l="__l" u-p="{{j}}"></up-image><view class="not_order_msg_warp">暂无兑换选项</view></view></view></view><view class="add_but_" bindtap="{{k}}"> 立即兑换 </view></view><up-toast class="r" u-r="uToastRef" u-i="3627492b-6" bind:__l="__l"></up-toast></view>
|
||||
@@ -0,0 +1,182 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const api_finance = require("../../api/finance.js");
|
||||
const utils_enumUtils = require("../../utils/enumUtils.js");
|
||||
const utils_index = require("../../utils/index.js");
|
||||
const Header = () => "../../components/header.js";
|
||||
const winningRecord = () => "../../components/winning_record.js";
|
||||
const _sfc_main = {
|
||||
computed: {
|
||||
BALANCE_TYPE() {
|
||||
return utils_enumUtils.BALANCE_TYPE;
|
||||
}
|
||||
},
|
||||
components: { winningRecord, Header },
|
||||
data() {
|
||||
return {
|
||||
infoList: [
|
||||
{
|
||||
name: "活期账户",
|
||||
key: "cur"
|
||||
},
|
||||
{
|
||||
name: "锁定账户",
|
||||
key: "lock"
|
||||
}
|
||||
],
|
||||
selInfo: "cur",
|
||||
form: {
|
||||
id: 0,
|
||||
page: 1,
|
||||
pageSize: 15,
|
||||
category: null
|
||||
},
|
||||
orderList: [],
|
||||
lockId: 0,
|
||||
curId: 0
|
||||
};
|
||||
},
|
||||
onLoad(option) {
|
||||
const category = option.category;
|
||||
if (category && category !== 0) {
|
||||
this.form.category = category;
|
||||
}
|
||||
const lockId = option.lockId;
|
||||
const curId = option.curId;
|
||||
if (lockId && lockId !== "null") {
|
||||
this.lockId = lockId;
|
||||
this.selectInfo(this.infoList[1]);
|
||||
}
|
||||
if (curId && curId !== "null") {
|
||||
this.curId = curId;
|
||||
this.selectInfo(this.infoList[0]);
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
getValue: utils_enumUtils.getValue,
|
||||
formatDate: utils_index.formatDate,
|
||||
handleAmount: utils_index.handleAmount,
|
||||
selectInfo(item) {
|
||||
this.orderList = [];
|
||||
this.form.page = 1;
|
||||
this.selInfo = item.key;
|
||||
let id = 0;
|
||||
if (item.key === "cur") {
|
||||
id = this.curId;
|
||||
}
|
||||
if (item.key === "lock") {
|
||||
id = this.lockId;
|
||||
}
|
||||
this.form.id = id;
|
||||
this.loadData();
|
||||
},
|
||||
// 加载数据的方法
|
||||
async loadData() {
|
||||
if (this.loading)
|
||||
return;
|
||||
this.loading = true;
|
||||
try {
|
||||
const newData = await this.fetchData(this.form.page, this.form.pageSize);
|
||||
this.orderList = [...this.orderList, ...newData];
|
||||
this.form.page++;
|
||||
} catch (error) {
|
||||
common_vendor.index.__f__("error", "at pages/mine_purse_log/mine_purse_log.vue:135", "加载数据失败:", error);
|
||||
} finally {
|
||||
this.loading = false;
|
||||
}
|
||||
},
|
||||
// 模拟获取数据的方法,实际应用中应该替换为你的数据获取逻辑,例如从服务器获取数据
|
||||
async fetchData(page, pageSize) {
|
||||
if (!this.form.id || this.form.id === 0) {
|
||||
return [];
|
||||
}
|
||||
const params = {
|
||||
id: this.form.id,
|
||||
category: this.form.category,
|
||||
page,
|
||||
pageSize
|
||||
};
|
||||
common_vendor.index.__f__("log", "at pages/mine_purse_log/mine_purse_log.vue:151", "params", params);
|
||||
const resp = await api_finance.getAcctFlow(params);
|
||||
common_vendor.index.__f__("log", "at pages/mine_purse_log/mine_purse_log.vue:153", "resp", resp);
|
||||
if (resp && resp.bizcode === 100) {
|
||||
const data = resp.data && resp.data.entitys || [];
|
||||
return data;
|
||||
} else {
|
||||
return [];
|
||||
}
|
||||
},
|
||||
// 当滚动到底部时触发的方法
|
||||
loadMore(selInfo) {
|
||||
let id = 0;
|
||||
if (selInfo === "cur") {
|
||||
id = this.curId;
|
||||
}
|
||||
if (selInfo === "lock") {
|
||||
id = this.lockId;
|
||||
}
|
||||
this.form.id = id;
|
||||
this.loadData();
|
||||
}
|
||||
}
|
||||
};
|
||||
if (!Array) {
|
||||
const _component_Header = common_vendor.resolveComponent("Header");
|
||||
const _easycom_up_image2 = common_vendor.resolveComponent("up-image");
|
||||
(_component_Header + _easycom_up_image2)();
|
||||
}
|
||||
const _easycom_up_image = () => "../../uni_modules/uview-plus/components/u-image/u-image.js";
|
||||
if (!Math) {
|
||||
_easycom_up_image();
|
||||
}
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return common_vendor.e({
|
||||
a: common_vendor.p({
|
||||
leftTitle: _ctx.$t("mine.purse.mine_purse_log.title"),
|
||||
["left-path-type"]: "navigateTo",
|
||||
["left-path"]: "/pages/mine_purse/mine_purse"
|
||||
}),
|
||||
b: common_vendor.f($data.infoList, (item, k0, i0) => {
|
||||
return common_vendor.e({
|
||||
a: common_vendor.t(item.name),
|
||||
b: $data.selInfo === item.key
|
||||
}, $data.selInfo === item.key ? {} : {}, {
|
||||
c: common_vendor.n($data.selInfo === item.key ? "info_title_item_warp info_title_item_sel_warp" : "info_title_item_warp"),
|
||||
d: item.key,
|
||||
e: common_vendor.o(($event) => $options.selectInfo(item), item.key)
|
||||
});
|
||||
}),
|
||||
c: $data.orderList && $data.orderList.length !== 0
|
||||
}, $data.orderList && $data.orderList.length !== 0 ? {
|
||||
d: common_vendor.f($data.orderList, (item, k0, i0) => {
|
||||
return {
|
||||
a: "dd837133-1-" + i0,
|
||||
b: common_vendor.t($options.getValue($options.BALANCE_TYPE, item.type)),
|
||||
c: common_vendor.t($options.formatDate(item.ctdate)),
|
||||
d: common_vendor.t($options.handleAmount(item.amount)),
|
||||
e: common_vendor.t(item.remark),
|
||||
f: item.id
|
||||
};
|
||||
}),
|
||||
e: common_vendor.p({
|
||||
src: "/static/mine/purse_sf.png",
|
||||
width: "40",
|
||||
height: "40",
|
||||
bgColor: "#f1f6ff00"
|
||||
})
|
||||
} : {
|
||||
f: common_vendor.p({
|
||||
src: "/static/common/not_order.png",
|
||||
width: "80",
|
||||
height: "80",
|
||||
bgColor: "#f1f6ff00"
|
||||
})
|
||||
}, {
|
||||
g: _ctx.loading
|
||||
}, _ctx.loading ? {} : {}, {
|
||||
h: common_vendor.o(($event) => $options.loadMore($data.selInfo))
|
||||
});
|
||||
}
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-dd837133"]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/mine_purse_log/mine_purse_log.js.map
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {
|
||||
"header": "../../components/header",
|
||||
"up-image": "../../uni_modules/uview-plus/components/u-image/u-image"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<view class="purse_log_warp data-v-dd837133"><header wx:if="{{a}}" class="data-v-dd837133" u-i="dd837133-0" bind:__l="__l" u-p="{{a}}"/><view class="info_warp data-v-dd837133"><view class="info_title_warp data-v-dd837133"><view wx:for="{{b}}" wx:for-item="item" wx:key="d" class="{{['data-v-dd837133', item.c]}}" bindtap="{{item.e}}"><text class="data-v-dd837133">{{item.a}}</text><view wx:if="{{item.b}}" class="info_title_item_sel_but_warp data-v-dd837133"></view></view></view><view class="info_list_warp data-v-dd837133"><scroll-view class="data-v-dd837133" scroll-y="true" bindscrolltolower="{{h}}" style="height:calc(100vh - 308rpx)"><block wx:if="{{c}}"><view wx:for="{{d}}" wx:for-item="item" wx:key="f" class="purse_info_item data-v-dd837133"><view class="purse_info_left data-v-dd837133"><up-image wx:if="{{e}}" class="data-v-dd837133" u-i="{{item.a}}" bind:__l="__l" u-p="{{e}}"></up-image><view class="purse_data_warp data-v-dd837133"><view class="purse_info_name data-v-dd837133">{{item.b}}</view><view class="purse_info_value data-v-dd837133">{{item.c}}</view></view></view><view class="ipurse_nfo_right data-v-dd837133"><view class="purse_info_title data-v-dd837133">{{item.d}}</view><view class="purse_info_value data-v-dd837133">{{item.e}}</view></view></view></block><view wx:else class="not_order_warp data-v-dd837133"><up-image wx:if="{{f}}" class="data-v-dd837133" u-i="dd837133-2" bind:__l="__l" u-p="{{f}}"></up-image><view class="not_order_msg_warp data-v-dd837133">暂无记录~</view></view><view wx:if="{{g}}" class="data-v-dd837133" style="text-align:center">加载中...</view></scroll-view></view></view></view>
|
||||
@@ -0,0 +1,54 @@
|
||||
/**
|
||||
* 这里是uni-app内置的常用样式变量
|
||||
*
|
||||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||||
*
|
||||
*/
|
||||
/* uni.scss */
|
||||
/**
|
||||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||||
*
|
||||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||||
*/
|
||||
/* 颜色变量 */
|
||||
/* 行为相关颜色 */
|
||||
/* 文字基本颜色 */
|
||||
/* 背景颜色 */
|
||||
/* 边框颜色 */
|
||||
/* 尺寸变量 */
|
||||
/* 文字尺寸 */
|
||||
/* 图片尺寸 */
|
||||
/* Border Radius */
|
||||
/* 水平间距 */
|
||||
/* 垂直间距 */
|
||||
.purse_log_warp.data-v-dd837133 {
|
||||
height: calc(100vh - 58rpx);
|
||||
padding: 30rpx;
|
||||
overflow-y: hidden;
|
||||
}
|
||||
.purse_log_warp .info_title_warp.data-v-dd837133 {
|
||||
display: flex;
|
||||
padding-left: 10rpx;
|
||||
}
|
||||
.purse_log_warp .info_title_item_warp.data-v-dd837133 {
|
||||
margin-right: 40rpx;
|
||||
font-weight: 500;
|
||||
font-size: 28rpx;
|
||||
color: #666666;
|
||||
}
|
||||
.purse_log_warp .info_title_item_sel_warp.data-v-dd837133 {
|
||||
font-weight: bold;
|
||||
font-size: 32rpx;
|
||||
color: #000000;
|
||||
}
|
||||
.purse_log_warp .info_title_item_sel_but_warp.data-v-dd837133 {
|
||||
background: #FF7C41;
|
||||
border-radius: 4rpx;
|
||||
width: 80rpx;
|
||||
height: 8rpx;
|
||||
margin-left: 18rpx;
|
||||
}
|
||||
.purse_log_warp .info_list_warp.data-v-dd837133 {
|
||||
margin-top: 30rpx;
|
||||
}
|
||||
+195
@@ -0,0 +1,195 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const api_finance = require("../../api/finance.js");
|
||||
const api_payment = require("../../api/payment.js");
|
||||
const utils_payUtils = require("../../utils/payUtils.js");
|
||||
const Header = () => "../../components/header.js";
|
||||
const _sfc_main = {
|
||||
components: { Header },
|
||||
data() {
|
||||
return {
|
||||
form: {
|
||||
category: null,
|
||||
amount: null,
|
||||
//充值金额
|
||||
payway: null
|
||||
// 支付当时
|
||||
},
|
||||
wayOption: [],
|
||||
proAmount: 0
|
||||
};
|
||||
},
|
||||
onLoad(option) {
|
||||
const category = option.category;
|
||||
if (category && category !== "null") {
|
||||
this.form.category = category;
|
||||
}
|
||||
const amount = option.amount;
|
||||
if (amount && amount !== "null") {
|
||||
this.proAmount = amount;
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.getWayOption();
|
||||
},
|
||||
methods: {
|
||||
async getWayOption() {
|
||||
const result = await api_finance.getRechargeSupportPay();
|
||||
if (result && result.bizcode === 100) {
|
||||
this.wayOption = result.data;
|
||||
}
|
||||
},
|
||||
// 立即充值
|
||||
async rechargeOk() {
|
||||
const params = this.form;
|
||||
if (!params.amount) {
|
||||
this.$refs.uToastRef.show({
|
||||
type: "error",
|
||||
message: "请输入需要充值的金额"
|
||||
});
|
||||
return;
|
||||
}
|
||||
if (!params.payway) {
|
||||
this.$refs.uToastRef.show({
|
||||
type: "error",
|
||||
message: "请选择支付方式"
|
||||
});
|
||||
return;
|
||||
}
|
||||
common_vendor.index.__f__("log", "at pages/mine_purse_recharge/mine_purse_recharge.vue:119", "params", params);
|
||||
const result = await api_finance.recharge(params);
|
||||
common_vendor.index.__f__("log", "at pages/mine_purse_recharge/mine_purse_recharge.vue:121", "result", result);
|
||||
if (result && result.bizcode === 100) {
|
||||
const item = result.data;
|
||||
common_vendor.index.__f__("log", "at pages/mine_purse_recharge/mine_purse_recharge.vue:124", "item", item);
|
||||
if (item.wechat && Object.keys(item.wechat).length !== 0) {
|
||||
this.appWxpay(item.wechat, item.orderId, item.orderNum);
|
||||
} else if (item.alipay && Object.keys(item.alipay).length !== 0 && item.alipay) {
|
||||
this.zfbPay(item.alipay, item.orderId, item.orderNum);
|
||||
} else {
|
||||
this.$refs.uToastRef.show({
|
||||
type: "error",
|
||||
message: "充值失败"
|
||||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
// app 微信支付
|
||||
async appWxpay(alipay, orderId, orderNum) {
|
||||
try {
|
||||
const result = await utils_payUtils.appWxpayFun(alipay, orderId, orderNum);
|
||||
common_vendor.index.__f__("log", "at pages/mine_purse_recharge/mine_purse_recharge.vue:142", "支付成功", result);
|
||||
} catch (error) {
|
||||
common_vendor.index.__f__("error", "at pages/mine_purse_recharge/mine_purse_recharge.vue:145", "支付失败", error);
|
||||
}
|
||||
},
|
||||
// 支付宝支付
|
||||
async zfbPay(alipay, orderId, orderNum) {
|
||||
try {
|
||||
const result = await utils_payUtils.zfbPayFun(alipay, orderId, orderNum);
|
||||
common_vendor.index.__f__("log", "at pages/mine_purse_recharge/mine_purse_recharge.vue:182", "支付成功", result);
|
||||
} catch (error) {
|
||||
common_vendor.index.__f__("error", "at pages/mine_purse_recharge/mine_purse_recharge.vue:185", "支付失败", error);
|
||||
}
|
||||
},
|
||||
// 跳转到支付成功页面
|
||||
jumpWayOk() {
|
||||
this.$refs.uToastRef.show({
|
||||
type: "success",
|
||||
message: "充值成功"
|
||||
});
|
||||
setTimeout(() => {
|
||||
common_vendor.index.navigateTo({
|
||||
url: "/pages/mine_purse/mine_purse"
|
||||
});
|
||||
}, 1500);
|
||||
},
|
||||
// 支付结果回调
|
||||
async payFeedbackFun(orderId, orderNum, status) {
|
||||
const params = {
|
||||
orderId,
|
||||
orderNum,
|
||||
status
|
||||
};
|
||||
const response = await api_payment.feedback(params);
|
||||
common_vendor.index.__f__("log", "at pages/mine_purse_recharge/mine_purse_recharge.vue:228", "response", response);
|
||||
if (response && response.bizcode !== 100) {
|
||||
common_vendor.index.__f__("error", "at pages/mine_purse_recharge/mine_purse_recharge.vue:230", "反馈结果", response);
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
if (!Array) {
|
||||
const _component_Header = common_vendor.resolveComponent("Header");
|
||||
const _easycom_up_image2 = common_vendor.resolveComponent("up-image");
|
||||
const _easycom_up_input2 = common_vendor.resolveComponent("up-input");
|
||||
const _easycom_up_radio2 = common_vendor.resolveComponent("up-radio");
|
||||
const _easycom_up_radio_group2 = common_vendor.resolveComponent("up-radio-group");
|
||||
const _easycom_up_toast2 = common_vendor.resolveComponent("up-toast");
|
||||
(_component_Header + _easycom_up_image2 + _easycom_up_input2 + _easycom_up_radio2 + _easycom_up_radio_group2 + _easycom_up_toast2)();
|
||||
}
|
||||
const _easycom_up_image = () => "../../uni_modules/uview-plus/components/u-image/u-image.js";
|
||||
const _easycom_up_input = () => "../../uni_modules/uview-plus/components/u-input/u-input.js";
|
||||
const _easycom_up_radio = () => "../../uni_modules/uview-plus/components/u-radio/u-radio.js";
|
||||
const _easycom_up_radio_group = () => "../../uni_modules/uview-plus/components/u-radio-group/u-radio-group.js";
|
||||
const _easycom_up_toast = () => "../../uni_modules/uview-plus/components/u-toast/u-toast.js";
|
||||
if (!Math) {
|
||||
(_easycom_up_image + _easycom_up_input + _easycom_up_radio + _easycom_up_radio_group + _easycom_up_toast)();
|
||||
}
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return {
|
||||
a: common_vendor.p({
|
||||
leftTitle: _ctx.$t("purse.recharge.title"),
|
||||
["left-path-type"]: "navigateTo",
|
||||
["left-path"]: "/pages/mine_purse/mine_purse"
|
||||
}),
|
||||
b: common_vendor.p({
|
||||
src: "/static/mine/recharge.png",
|
||||
width: "20",
|
||||
height: "20",
|
||||
bgColor: "#f1f6ff00"
|
||||
}),
|
||||
c: common_vendor.t($data.proAmount),
|
||||
d: common_vendor.o(($event) => $data.form.amount = $event),
|
||||
e: common_vendor.p({
|
||||
placeholder: "输入需要充值的金额",
|
||||
border: "surround",
|
||||
clearable: true,
|
||||
customStyle: {
|
||||
"margin-top": "20rpx",
|
||||
"background": "#FFFFFF",
|
||||
"box-shadow": "0rpx 4rpx 8rpx 0rpx rgba(0,0,0,0.06)",
|
||||
"border-radius": "8rpx",
|
||||
"height": "80rpx"
|
||||
},
|
||||
type: "number",
|
||||
modelValue: $data.form.amount
|
||||
}),
|
||||
f: common_vendor.f($data.wayOption, (item, index, i0) => {
|
||||
return common_vendor.e({
|
||||
a: common_vendor.t(item.name),
|
||||
b: item.balance
|
||||
}, item.balance ? {
|
||||
c: common_vendor.t(item.balance)
|
||||
} : {}, {
|
||||
d: "b986079a-4-" + i0 + ",b986079a-3",
|
||||
e: common_vendor.p({
|
||||
name: item.type,
|
||||
activeColor: "#03AD27"
|
||||
}),
|
||||
f: common_vendor.n(index + 1 < $data.wayOption.length ? "way_item way_item_but" : "way_item"),
|
||||
g: item.id
|
||||
});
|
||||
}),
|
||||
g: common_vendor.o(($event) => $data.form.payway = $event),
|
||||
h: common_vendor.p({
|
||||
placement: "column",
|
||||
modelValue: $data.form.payway
|
||||
}),
|
||||
i: common_vendor.o((...args) => $options.rechargeOk && $options.rechargeOk(...args)),
|
||||
j: common_vendor.sr("uToastRef", "b986079a-5")
|
||||
};
|
||||
}
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/mine_purse_recharge/mine_purse_recharge.js.map
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"navigationBarTitleText": "",
|
||||
"usingComponents": {
|
||||
"header": "../../components/header",
|
||||
"up-image": "../../uni_modules/uview-plus/components/u-image/u-image",
|
||||
"up-input": "../../uni_modules/uview-plus/components/u-input/u-input",
|
||||
"up-radio": "../../uni_modules/uview-plus/components/u-radio/u-radio",
|
||||
"up-radio-group": "../../uni_modules/uview-plus/components/u-radio-group/u-radio-group",
|
||||
"up-toast": "../../uni_modules/uview-plus/components/u-toast/u-toast"
|
||||
}
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
<view class="purse_recharge_warp"><header wx:if="{{a}}" style="background-color:#FFFFFF" u-i="b986079a-0" bind:__l="__l" u-p="{{a}}"/><view class="purse_recharge_cntent"><view class="recharge_balance"><view class="recharge_balance_image"><up-image wx:if="{{b}}" u-i="b986079a-1" bind:__l="__l" u-p="{{b}}"/><view class="msg_">现金余额</view></view><view class="recharge_balance_">{{c}}</view></view><view class="form_item"><view class="form_item_title">充值金额</view><up-input wx:if="{{e}}" u-i="b986079a-2" bind:__l="__l" bindupdateModelValue="{{d}}" u-p="{{e}}"></up-input></view><view class="form_item"><view class="form_item_title">支付方式</view><view class="recharge_way_warp"><up-radio-group wx:if="{{h}}" u-s="{{['d']}}" u-i="b986079a-3" bind:__l="__l" bindupdateModelValue="{{g}}" u-p="{{h}}"><view wx:for="{{f}}" wx:for-item="item" wx:key="g" class="{{item.f}}"><view class="way_item_"><view class="way_item_val">{{item.a}}<text wx:if="{{item.b}}"> ({{item.c}})</text></view></view><up-radio wx:if="{{item.e}}" u-i="{{item.d}}" bind:__l="__l" u-p="{{item.e}}"></up-radio></view></up-radio-group></view></view><view class="add_but_" bindtap="{{i}}"> 立即充值 </view></view><up-toast class="r" u-r="uToastRef" u-i="b986079a-5" bind:__l="__l"></up-toast></view>
|
||||
@@ -0,0 +1,121 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const utils_auth = require("../../utils/auth.js");
|
||||
const Header = () => "../../components/header.js";
|
||||
const _sfc_main = {
|
||||
components: { Header },
|
||||
data() {
|
||||
return {
|
||||
userData: {}
|
||||
// 当前登录对象
|
||||
};
|
||||
},
|
||||
onShow() {
|
||||
this.userData = utils_auth.getStorageFun(utils_auth.USER_DATA);
|
||||
},
|
||||
methods: {
|
||||
// 退出登录
|
||||
loginOutFun() {
|
||||
utils_auth.clear();
|
||||
common_vendor.index.navigateTo({
|
||||
url: "/pages/login/login"
|
||||
});
|
||||
},
|
||||
cancelAccount() {
|
||||
utils_auth.clear();
|
||||
common_vendor.index.navigateTo({
|
||||
url: "/pages/login/login"
|
||||
});
|
||||
},
|
||||
jumpInfo(type) {
|
||||
if (type === "address") {
|
||||
common_vendor.index.navigateTo({
|
||||
url: "/pages/mine_address/mine_address"
|
||||
});
|
||||
} else if (type === "aboutUs") {
|
||||
common_vendor.index.navigateTo({
|
||||
url: "/pages/mine_about_us/mine_about_us"
|
||||
});
|
||||
} else if (type === "userAgreement") {
|
||||
common_vendor.index.navigateTo({
|
||||
url: "/pages/mine_user_agreement/mine_user_agreement"
|
||||
});
|
||||
} else if (type === "privacyAgreement") {
|
||||
common_vendor.index.navigateTo({
|
||||
url: "/pages/mine_privacy_agreement/mine_privacy_agreement"
|
||||
});
|
||||
} else if (type === "productAgreement") {
|
||||
common_vendor.index.navigateTo({
|
||||
url: "/pages/mine_product_agreement/mine_product_agreement"
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
if (!Array) {
|
||||
const _component_Header = common_vendor.resolveComponent("Header");
|
||||
const _easycom_up_image2 = common_vendor.resolveComponent("up-image");
|
||||
(_component_Header + _easycom_up_image2)();
|
||||
}
|
||||
const _easycom_up_image = () => "../../uni_modules/uview-plus/components/u-image/u-image.js";
|
||||
if (!Math) {
|
||||
_easycom_up_image();
|
||||
}
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return {
|
||||
a: common_vendor.p({
|
||||
leftTitle: _ctx.$t("mine.settings.title"),
|
||||
["left-path-type"]: "switchTab",
|
||||
leftPath: "/pages/mine/mine"
|
||||
}),
|
||||
b: common_vendor.p({
|
||||
src: "/static/logo_y.png",
|
||||
shape: "circle",
|
||||
width: "60",
|
||||
height: "60",
|
||||
bgColor: "#f1f6ff00"
|
||||
}),
|
||||
c: common_vendor.t($data.userData.name || "德商汇用户"),
|
||||
d: common_vendor.t($data.userData.inviteCode),
|
||||
e: common_vendor.p({
|
||||
src: "/static/common/right.png",
|
||||
width: "20",
|
||||
height: "20",
|
||||
bgColor: "#f1f6ff00"
|
||||
}),
|
||||
f: common_vendor.o(($event) => $options.jumpInfo("address")),
|
||||
g: common_vendor.p({
|
||||
src: "/static/common/right.png",
|
||||
width: "20",
|
||||
height: "20",
|
||||
bgColor: "#f1f6ff00"
|
||||
}),
|
||||
h: common_vendor.o(($event) => $options.jumpInfo("userAgreement")),
|
||||
i: common_vendor.p({
|
||||
src: "/static/common/right.png",
|
||||
width: "20",
|
||||
height: "20",
|
||||
bgColor: "#f1f6ff00"
|
||||
}),
|
||||
j: common_vendor.o(($event) => $options.jumpInfo("privacyAgreement")),
|
||||
k: common_vendor.p({
|
||||
src: "/static/common/right_x.png",
|
||||
width: "20",
|
||||
height: "20",
|
||||
bgColor: "#f1f6ff00"
|
||||
}),
|
||||
l: common_vendor.o(($event) => $options.jumpInfo("productAgreement")),
|
||||
m: common_vendor.p({
|
||||
src: "/static/common/right.png",
|
||||
width: "20",
|
||||
height: "20",
|
||||
bgColor: "#f1f6ff00"
|
||||
}),
|
||||
n: common_vendor.o(($event) => $options.jumpInfo("aboutUs")),
|
||||
o: common_vendor.o((...args) => $options.loginOutFun && $options.loginOutFun(...args)),
|
||||
p: common_vendor.o((...args) => $options.cancelAccount && $options.cancelAccount(...args))
|
||||
};
|
||||
}
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/mine_settings/mine_settings.js.map
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {
|
||||
"header": "../../components/header",
|
||||
"up-image": "../../uni_modules/uview-plus/components/u-image/u-image"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<view class="mine_setting"><header wx:if="{{a}}" u-i="1bcbce2a-0" bind:__l="__l" u-p="{{a}}"/><view class="mine_setting_content"><view class="setting_comm"><view class="header_user"><view class="mine_data"><up-image wx:if="{{b}}" u-i="1bcbce2a-1" bind:__l="__l" u-p="{{b}}"></up-image><view class="mine_info"><view class="mine_info_name">{{c}}</view><view class="mine_info_id">邀请码:{{d}}</view></view></view></view><view class="header_fg"></view><view class="item_comm" bindtap="{{f}}"><view>地址管理</view><up-image wx:if="{{e}}" u-i="1bcbce2a-2" bind:__l="__l" u-p="{{e}}"></up-image></view></view><view class="setting_comm"><view class="item_comm" bindtap="{{h}}"><view>用户协议</view><up-image wx:if="{{g}}" u-i="1bcbce2a-3" bind:__l="__l" u-p="{{g}}"></up-image></view><view class="header_fg"></view><view class="item_comm" bindtap="{{j}}"><view>隐私协议</view><up-image wx:if="{{i}}" u-i="1bcbce2a-4" bind:__l="__l" u-p="{{i}}"></up-image></view><view class="header_fg"></view><view class="item_comm" bindtap="{{l}}"><view>售后保障协议</view><up-image wx:if="{{k}}" u-i="1bcbce2a-5" bind:__l="__l" u-p="{{k}}"></up-image></view><view class="header_fg"></view><view class="item_comm" bindtap="{{n}}"><view>关于我们</view><up-image wx:if="{{m}}" u-i="1bcbce2a-6" bind:__l="__l" u-p="{{m}}"></up-image></view></view><view class="login_out_warp" bindtap="{{o}}"> 退出登录 </view><view class="cancel_but" bindtap="{{p}}"> 注销账号 </view></view></view>
|
||||
@@ -0,0 +1,98 @@
|
||||
/**
|
||||
* 这里是uni-app内置的常用样式变量
|
||||
*
|
||||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||||
*
|
||||
*/
|
||||
/* uni.scss */
|
||||
/**
|
||||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||||
*
|
||||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||||
*/
|
||||
/* 颜色变量 */
|
||||
/* 行为相关颜色 */
|
||||
/* 文字基本颜色 */
|
||||
/* 背景颜色 */
|
||||
/* 边框颜色 */
|
||||
/* 尺寸变量 */
|
||||
/* 文字尺寸 */
|
||||
/* 图片尺寸 */
|
||||
/* Border Radius */
|
||||
/* 水平间距 */
|
||||
/* 垂直间距 */
|
||||
.mine_setting {
|
||||
background-color: #F5F5F5;
|
||||
height: calc(100% - 60rpx);
|
||||
}
|
||||
.mine_setting .mine_setting_content {
|
||||
padding: 30rpx;
|
||||
}
|
||||
.mine_setting .setting_comm {
|
||||
background: #FFFFFF;
|
||||
border-radius: 30rpx;
|
||||
padding: 30rpx;
|
||||
margin-bottom: 20rpx;
|
||||
}
|
||||
.mine_setting .mine_data {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.mine_setting .mine_info_not_login {
|
||||
font-weight: bold;
|
||||
font-size: 40rpx;
|
||||
color: #111111;
|
||||
}
|
||||
.mine_setting .mine_info {
|
||||
margin-left: 20rpx;
|
||||
}
|
||||
.mine_setting .mine_info_name {
|
||||
font-weight: bold;
|
||||
font-size: 40rpx;
|
||||
color: #111111;
|
||||
display: flex;
|
||||
}
|
||||
.mine_setting .mine_info_id {
|
||||
font-weight: 500;
|
||||
font-size: 24rpx;
|
||||
color: #666666;
|
||||
display: flex;
|
||||
margin-top: 10rpx;
|
||||
}
|
||||
.mine_setting .header_user {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.mine_setting .header_fg {
|
||||
width: 100%;
|
||||
height: 2rpx;
|
||||
background: #E7E7E7;
|
||||
margin: 30rpx 0;
|
||||
}
|
||||
.mine_setting .item_comm {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.login_out_warp {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
text-align: center;
|
||||
color: #FFFFFF;
|
||||
background-color: #FF7C41;
|
||||
padding: 20rpx;
|
||||
width: calc(100% - 40rpx);
|
||||
border-radius: 10rpx;
|
||||
margin: 140rpx 0 0rpx;
|
||||
}
|
||||
.cancel_but {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
text-align: center;
|
||||
width: calc(100% - 40rpx);
|
||||
margin-top: 20rpx;
|
||||
font-size: 30rpx;
|
||||
color: #999999;
|
||||
padding: 20rpx;
|
||||
}
|
||||
+36
@@ -0,0 +1,36 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const Header = () => "../../components/header.js";
|
||||
const _sfc_main = {
|
||||
components: { Header },
|
||||
data() {
|
||||
return {
|
||||
leftPath: "/pages/mine_settings/mine_settings"
|
||||
};
|
||||
},
|
||||
onLoad(option) {
|
||||
const backPath = option.backPath;
|
||||
if (backPath && backPath === "login") {
|
||||
this.leftPath = "/pages/login/login";
|
||||
}
|
||||
if (backPath && backPath === "register") {
|
||||
this.leftPath = "/pages/register/register";
|
||||
}
|
||||
}
|
||||
};
|
||||
if (!Array) {
|
||||
const _component_Header = common_vendor.resolveComponent("Header");
|
||||
_component_Header();
|
||||
}
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return {
|
||||
a: common_vendor.p({
|
||||
leftTitle: _ctx.$t("mine.user.agreement.title"),
|
||||
["left-path-type"]: "navigateTo",
|
||||
leftPath: $data.leftPath
|
||||
})
|
||||
};
|
||||
}
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-213482f1"]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/mine_user_agreement/mine_user_agreement.js.map
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {
|
||||
"header": "../../components/header"
|
||||
}
|
||||
}
|
||||
+1
File diff suppressed because one or more lines are too long
+33
@@ -0,0 +1,33 @@
|
||||
/**
|
||||
* 这里是uni-app内置的常用样式变量
|
||||
*
|
||||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||||
*
|
||||
*/
|
||||
/* uni.scss */
|
||||
/**
|
||||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||||
*
|
||||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||||
*/
|
||||
/* 颜色变量 */
|
||||
/* 行为相关颜色 */
|
||||
/* 文字基本颜色 */
|
||||
/* 背景颜色 */
|
||||
/* 边框颜色 */
|
||||
/* 尺寸变量 */
|
||||
/* 文字尺寸 */
|
||||
/* 图片尺寸 */
|
||||
/* Border Radius */
|
||||
/* 水平间距 */
|
||||
/* 垂直间距 */
|
||||
.user_agreement_warp.data-v-213482f1 {
|
||||
background-color: #F5F5F5;
|
||||
overflow: hidden;
|
||||
}
|
||||
.user_agreement_warp .user_agreement_content_warp.data-v-213482f1 {
|
||||
padding: 40rpx;
|
||||
height: calc(100vh - 242rpx);
|
||||
overflow: auto;
|
||||
}
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const winningRecord = () => "../../components/winning_record.js";
|
||||
const _sfc_main = {
|
||||
components: { winningRecord },
|
||||
data() {
|
||||
return {};
|
||||
}
|
||||
};
|
||||
if (!Array) {
|
||||
const _component_winningRecord = common_vendor.resolveComponent("winningRecord");
|
||||
_component_winningRecord();
|
||||
}
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return {};
|
||||
}
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-d6e3bd52"]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/mine_winning_record/mine_winning_record.js.map
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"navigationBarTitleText": "中奖记录",
|
||||
"navigationBarBackgroundColor": "#F5F5F5",
|
||||
"navigationBarTextStyle": "black",
|
||||
"enablePullDownRefresh": false,
|
||||
"navigationStyle": "default",
|
||||
"usingComponents": {
|
||||
"winning-record": "../../components/winning_record"
|
||||
}
|
||||
}
|
||||
+1
@@ -0,0 +1 @@
|
||||
<view class="mine_winning_record data-v-d6e3bd52"><winning-record class="data-v-d6e3bd52" u-i="d6e3bd52-0" bind:__l="__l"/></view>
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
/**
|
||||
* 这里是uni-app内置的常用样式变量
|
||||
*
|
||||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||||
*
|
||||
*/
|
||||
/* uni.scss */
|
||||
/**
|
||||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||||
*
|
||||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||||
*/
|
||||
/* 颜色变量 */
|
||||
/* 行为相关颜色 */
|
||||
/* 文字基本颜色 */
|
||||
/* 背景颜色 */
|
||||
/* 边框颜色 */
|
||||
/* 尺寸变量 */
|
||||
/* 文字尺寸 */
|
||||
/* 图片尺寸 */
|
||||
/* Border Radius */
|
||||
/* 水平间距 */
|
||||
/* 垂直间距 */
|
||||
.mine_winning_record.data-v-d6e3bd52 {
|
||||
padding: 30rpx;
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const Header = () => "../../components/header.js";
|
||||
const _sfc_main = {
|
||||
components: { Header },
|
||||
data() {
|
||||
return {};
|
||||
},
|
||||
methods: {
|
||||
jumpHome() {
|
||||
common_vendor.index.switchTab({
|
||||
url: "/pages/home/home"
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
if (!Array) {
|
||||
const _component_Header = common_vendor.resolveComponent("Header");
|
||||
const _easycom_up_image2 = common_vendor.resolveComponent("up-image");
|
||||
(_component_Header + _easycom_up_image2)();
|
||||
}
|
||||
const _easycom_up_image = () => "../../uni_modules/uview-plus/components/u-image/u-image.js";
|
||||
if (!Math) {
|
||||
_easycom_up_image();
|
||||
}
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return {
|
||||
a: common_vendor.p({
|
||||
leftTitle: "",
|
||||
["left-path-type"]: "switchTab",
|
||||
["left-path"]: "/pages/mine/mine"
|
||||
}),
|
||||
b: common_vendor.p({
|
||||
src: "/static/product/error.png",
|
||||
width: "120",
|
||||
height: "120",
|
||||
bgColor: "#f1f6ff00"
|
||||
}),
|
||||
c: common_vendor.o((...args) => $options.jumpHome && $options.jumpHome(...args))
|
||||
};
|
||||
}
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-aaf4c377"]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/order_submit_error/order_submit_error.js.map
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {
|
||||
"header": "../../components/header",
|
||||
"up-image": "../../uni_modules/uview-plus/components/u-image/u-image"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<view class="order_sumbit_ok_warp data-v-aaf4c377"><header wx:if="{{a}}" class="data-v-aaf4c377" u-i="aaf4c377-0" bind:__l="__l" u-p="{{a}}"/><view class="order_sumbit_ok_content data-v-aaf4c377"><view class="ok_img data-v-aaf4c377"><up-image wx:if="{{b}}" class="data-v-aaf4c377" u-i="aaf4c377-1" bind:__l="__l" u-p="{{b}}"></up-image><view class="ok_img_msg data-v-aaf4c377">支付失败</view></view><view class="ok_but data-v-aaf4c377" bindtap="{{c}}">确认</view></view></view>
|
||||
+48
@@ -0,0 +1,48 @@
|
||||
/**
|
||||
* 这里是uni-app内置的常用样式变量
|
||||
*
|
||||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||||
*
|
||||
*/
|
||||
/* uni.scss */
|
||||
/**
|
||||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||||
*
|
||||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||||
*/
|
||||
/* 颜色变量 */
|
||||
/* 行为相关颜色 */
|
||||
/* 文字基本颜色 */
|
||||
/* 背景颜色 */
|
||||
/* 边框颜色 */
|
||||
/* 尺寸变量 */
|
||||
/* 文字尺寸 */
|
||||
/* 图片尺寸 */
|
||||
/* Border Radius */
|
||||
/* 水平间距 */
|
||||
/* 垂直间距 */
|
||||
.order_sumbit_ok_warp.data-v-aaf4c377 {
|
||||
height: calc(100vh - 80rpx);
|
||||
text-align: center;
|
||||
}
|
||||
.order_sumbit_ok_warp .order_sumbit_ok_content.data-v-aaf4c377 {
|
||||
padding: 40rpx;
|
||||
}
|
||||
.order_sumbit_ok_warp .ok_img.data-v-aaf4c377 {
|
||||
display: grid;
|
||||
}
|
||||
.order_sumbit_ok_warp .ok_img .ok_img_msg.data-v-aaf4c377 {
|
||||
font-weight: bold;
|
||||
font-size: 36rpx;
|
||||
color: #222222;
|
||||
}
|
||||
.order_sumbit_ok_warp .ok_but.data-v-aaf4c377 {
|
||||
margin-top: 100rpx;
|
||||
background: #FF7C41;
|
||||
border-radius: 16rpx;
|
||||
text-align: center;
|
||||
padding: 20rpx 0;
|
||||
height: 46rpx;
|
||||
color: #FFF;
|
||||
}
|
||||
@@ -0,0 +1,101 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const api_payment = require("../../api/payment.js");
|
||||
const Header = () => "../../components/header.js";
|
||||
const _sfc_main = {
|
||||
components: {
|
||||
Header
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
orderNum: 0,
|
||||
// 支付处理ID
|
||||
paymentLink: null,
|
||||
// H5支付处理页面
|
||||
orderMsg: "支付处理中...",
|
||||
loadingShow: true
|
||||
};
|
||||
},
|
||||
onLoad(options) {
|
||||
common_vendor.index.__f__("log", "at pages/payment_processing/payment_processing.vue:28", "options", options);
|
||||
this.orderNum = options.orderNum || 0;
|
||||
const paymentLink = options.link;
|
||||
if (paymentLink && paymentLink !== "null") {
|
||||
this.paymentLink = paymentLink;
|
||||
common_vendor.index.navigateTo({
|
||||
url: `/pages/zfb_payment/zfb_payment?link=${paymentLink}`
|
||||
// 假设有一个专门的支付页面来处理支付链接
|
||||
});
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
if (this.orderNum) {
|
||||
this.getOrderById();
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
async getOrderById() {
|
||||
const params = {
|
||||
orderNum: this.orderNum
|
||||
};
|
||||
common_vendor.index.__f__("log", "at pages/payment_processing/payment_processing.vue:48", "params", params);
|
||||
const resp = await api_payment.queryResult(params);
|
||||
common_vendor.index.__f__("log", "at pages/payment_processing/payment_processing.vue:50", "queryResult resp", resp);
|
||||
if (resp && resp.bizcode === 100) {
|
||||
const data = resp.data || {};
|
||||
if (data.state === 0) {
|
||||
this.loadingShow = false;
|
||||
this.orderMsg = "订单不存在";
|
||||
} else if (data.state === 1) {
|
||||
this.orderMsg = "支付处理中...";
|
||||
} else if (data.state === 2) {
|
||||
this.loadingShow = false;
|
||||
this.orderMsg = "支付成功";
|
||||
this.jumpWayOk();
|
||||
} else if (data.state === 3) {
|
||||
this.loadingShow = false;
|
||||
this.orderMsg = "支付失败";
|
||||
this.jumpWayError();
|
||||
}
|
||||
}
|
||||
},
|
||||
// 跳转到支付成功页面
|
||||
jumpWayOk() {
|
||||
common_vendor.index.navigateTo({
|
||||
url: "/pages/order_submit_ok/order_submit_ok"
|
||||
});
|
||||
},
|
||||
// 跳转到支付失败页面
|
||||
jumpWayError() {
|
||||
common_vendor.index.navigateTo({
|
||||
url: "/pages/order_submit_error/order_submit_error"
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
if (!Array) {
|
||||
const _component_Header = common_vendor.resolveComponent("Header");
|
||||
const _easycom_up_loading_icon2 = common_vendor.resolveComponent("up-loading-icon");
|
||||
(_component_Header + _easycom_up_loading_icon2)();
|
||||
}
|
||||
const _easycom_up_loading_icon = () => "../../uni_modules/uview-plus/components/u-loading-icon/u-loading-icon.js";
|
||||
if (!Math) {
|
||||
_easycom_up_loading_icon();
|
||||
}
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return {
|
||||
a: common_vendor.p({
|
||||
leftTitle: "H5支付",
|
||||
leftPathType: "switchTab",
|
||||
leftPath: "/pages/mine/mine"
|
||||
}),
|
||||
b: common_vendor.p({
|
||||
show: $data.loadingShow,
|
||||
color: "#009A4F"
|
||||
}),
|
||||
c: common_vendor.t($data.orderMsg)
|
||||
};
|
||||
}
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-f7613669"]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/payment_processing/payment_processing.js.map
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"navigationStyle": "custom",
|
||||
"usingComponents": {
|
||||
"header": "../../components/header",
|
||||
"up-loading-icon": "../../uni_modules/uview-plus/components/u-loading-icon/u-loading-icon"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<view class="data-v-f7613669"><header wx:if="{{a}}" class="data-v-f7613669" u-i="f7613669-0" bind:__l="__l" u-p="{{a}}"/><view class="payment_processing_warp data-v-f7613669"><up-loading-icon wx:if="{{b}}" class="data-v-f7613669" u-i="f7613669-1" bind:__l="__l" u-p="{{b}}"></up-loading-icon><view class="payment_processing_msg data-v-f7613669">{{c}}</view></view></view>
|
||||
+31
@@ -0,0 +1,31 @@
|
||||
/**
|
||||
* 这里是uni-app内置的常用样式变量
|
||||
*
|
||||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||||
*
|
||||
*/
|
||||
/* uni.scss */
|
||||
/**
|
||||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||||
*
|
||||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||||
*/
|
||||
/* 颜色变量 */
|
||||
/* 行为相关颜色 */
|
||||
/* 文字基本颜色 */
|
||||
/* 背景颜色 */
|
||||
/* 边框颜色 */
|
||||
/* 尺寸变量 */
|
||||
/* 文字尺寸 */
|
||||
/* 图片尺寸 */
|
||||
/* Border Radius */
|
||||
/* 水平间距 */
|
||||
/* 垂直间距 */
|
||||
.payment_processing_warp.data-v-f7613669 {
|
||||
text-align: center;
|
||||
margin-top: 200rpx;
|
||||
}
|
||||
.payment_processing_warp .payment_processing_msg.data-v-f7613669 {
|
||||
margin-top: 20rpx;
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
"use strict";
|
||||
const common_vendor = require("../../common/vendor.js");
|
||||
const _sfc_main = {
|
||||
data() {
|
||||
return {
|
||||
paymentLink: ""
|
||||
};
|
||||
},
|
||||
onLoad(options) {
|
||||
common_vendor.index.__f__("log", "at pages/zfb_payment/zfb_payment.vue:15", "options", options);
|
||||
this.paymentLink = decodeURIComponent(options.link);
|
||||
},
|
||||
methods: {}
|
||||
};
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return {
|
||||
a: $data.paymentLink
|
||||
};
|
||||
}
|
||||
const MiniProgramPage = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render]]);
|
||||
wx.createPage(MiniProgramPage);
|
||||
//# sourceMappingURL=../../../.sourcemap/mp-weixin/pages/zfb_payment/zfb_payment.js.map
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"navigationBarTitleText": "支付",
|
||||
"navigationBarBackgroundColor": "#FFFFFF",
|
||||
"navigationBarTextStyle": "black",
|
||||
"enablePullDownRefresh": false,
|
||||
"navigationStyle": "default",
|
||||
"usingComponents": {}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<view><web-view src="{{a}}"></web-view></view>
|
||||
Reference in New Issue
Block a user