3.25提交
This commit is contained in:
@@ -141,7 +141,8 @@ const email = ref('')
|
||||
const editingId = ref(null)
|
||||
const goodsUuid = ref('')
|
||||
const type = ref(1)
|
||||
const goodsNum = ref(1)
|
||||
const goodsNum = ref(1);
|
||||
const goodsName = ref('');
|
||||
const goBack = () => uni.navigateBack()
|
||||
|
||||
// 省市区数据(适配树形数组:[{code,label,value,children:[...] }...])
|
||||
@@ -213,6 +214,7 @@ onLoad((opts) => {
|
||||
goodsUuid.value = opts.goodsUuid
|
||||
goodsNum.value = opts.goodsNum;
|
||||
type.value = opts.type;
|
||||
goodsName.value = opts.goodsName;
|
||||
getAddress()
|
||||
})
|
||||
const saveAddress = () => {
|
||||
@@ -256,6 +258,20 @@ const submit = () => {
|
||||
address: regionText.value+detail.value
|
||||
}).then(res => {
|
||||
if(res.code == 1 || res.code == 200){
|
||||
uni.sendNativeEvent("portraitReport",{
|
||||
msg:{
|
||||
event_nickname: "boint_jifengood",
|
||||
page_type: "积分商城",
|
||||
resource_name:goodsName.value,
|
||||
event_val:points.value,
|
||||
event_unit:'积分',
|
||||
number:goodsNum.value,
|
||||
belong:type.value,
|
||||
},
|
||||
},
|
||||
(ret) => {
|
||||
console.log(ret);
|
||||
});
|
||||
points.value = res.data.pionts;
|
||||
freeVisible.value = true
|
||||
goods_order_id.value = res.data.goods_order_id
|
||||
|
||||
@@ -146,7 +146,7 @@ const goAddress = () => {
|
||||
freeVisible.value = true
|
||||
}else{
|
||||
uni.navigateTo({
|
||||
url: '/pages_goods/exchange/address?goodsUuid='+id.value+'&type='+type.value+'&goodsNum='+qty.value
|
||||
url: '/pages_goods/exchange/address?goodsUuid='+id.value+'&type='+type.value+'&goodsNum='+qty.value+'&goodsName='+title.value
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@@ -263,6 +263,15 @@ onBackPress(() => {
|
||||
if(opts.name){
|
||||
name.value = opts.name;
|
||||
}
|
||||
uni.sendNativeEvent("portraitReport",{
|
||||
msg:{
|
||||
event_nickname: "list_page",
|
||||
page_type: "积分商城",
|
||||
},
|
||||
},
|
||||
(ret) => {
|
||||
console.log(ret);
|
||||
});
|
||||
});
|
||||
// 方法
|
||||
const goBack = () => {
|
||||
|
||||
Reference in New Issue
Block a user